blob: 9de057bf176a557ab9637f576571099599db8198 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristybf083432009-09-13 04:31:08 +00003# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.6.
cristy3ed852e2009-09-05 21:47:34 +00004#
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'
cristybf083432009-09-13 04:31:08 +0000752PACKAGE_VERSION='6.5.6'
753PACKAGE_STRING='ImageMagick 6.5.6'
cristy3ed852e2009-09-05 21:47:34 +0000754PACKAGE_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
cristy3ed852e2009-09-05 21:47:34 +0000987BZLIB_LIBS
988BZLIB_DELEGATE_FALSE
989BZLIB_DELEGATE_TRUE
990MATH_LIBS
991CCMALLOCDelegate
992UMEM_LIBS
993HasUMEM_FALSE
994HasUMEM_TRUE
995THREAD_LIBS
996GOMP_LIBS
997WITH_MAGICK_PLUS_PLUS_FALSE
998WITH_MAGICK_PLUS_PLUS_TRUE
999OPENMP_CXXFLAGS
1000POW_LIB
1001LIBOBJS
1002UINTPTR_T
1003UINTMAX_T
1004UINT64_T
1005INT64_T
1006UINT32_T
1007INT32_T
1008UINT16_T
1009INT16_T
1010UINT8_T
1011INT8_T
1012LIBRARY_EXTRA_CPPFLAGS
1013MODULE_EXTRA_CPPFLAGS
1014LIBSTDCLDFLAGS
1015PERL_MAKE_OPTIONS
1016QUANTUM_DEPTH
1017MAINT
1018MAINTAINER_MODE_FALSE
1019MAINTAINER_MODE_TRUE
1020MAGICK_HDRI
1021DLLDFLAGS
1022WITH_LTDL_FALSE
1023WITH_LTDL_TRUE
1024WITH_MODULES_FALSE
1025WITH_MODULES_TRUE
1026LTCXXLIBOPTS
1027LTDLOPEN
1028LT_CONFIG_H
1029CONVENIENCE_LTDL_FALSE
1030CONVENIENCE_LTDL_TRUE
1031INSTALL_LTDL_FALSE
1032INSTALL_LTDL_TRUE
1033ARGZ_H
1034sys_symbol_underscore
1035LIBADD_DL
1036LT_DLPREOPEN
1037LIBADD_DLD_LINK
1038LIBADD_SHL_LOAD
1039LIBADD_DLOPEN
1040LT_DLLOADERS
1041INCLTDL
1042LTDLINCL
1043LTDLDEPS
1044LIBLTDL
1045LIBTOOL_DEPS
1046CXXCPP
1047OTOOL64
1048OTOOL
1049LIPO
1050NMEDIT
1051DSYMUTIL
1052lt_ECHO
1053AR
1054NM
1055ac_ct_DUMPBIN
1056DUMPBIN
1057LIBTOOL
1058OBJDUMP
1059DLLTOOL
1060AS
1061LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001062CL_LIBS
1063CL_CFLAGS
1064XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001065OPENMP_CFLAGS
1066PTHREAD_CFLAGS
1067PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001068PTHREAD_CC
1069acx_pthread_config
1070WinPathScript
1071USING_CL_FALSE
1072USING_CL_TRUE
1073CYGWIN_BUILD_FALSE
1074CYGWIN_BUILD_TRUE
1075WIN32_NATIVE_BUILD_FALSE
1076WIN32_NATIVE_BUILD_TRUE
1077WINGDI32_DELEGATE_FALSE
1078WINGDI32_DELEGATE_TRUE
1079GDI32_LIBS
1080PKG_CONFIG
1081LN_S
1082am__fastdepCXX_FALSE
1083am__fastdepCXX_TRUE
1084CXXDEPMODE
1085ac_ct_CXX
1086CXXFLAGS
1087CXX
1088RANLIB
1089LD
1090FGREP
1091EGREP
1092GREP
1093SED
1094CPP
1095am__fastdepCC_FALSE
1096am__fastdepCC_TRUE
1097CCDEPMODE
1098AMDEPBACKSLASH
1099AMDEP_FALSE
1100AMDEP_TRUE
1101am__quote
1102am__include
1103DEPDIR
1104OBJEXT
1105EXEEXT
1106ac_ct_CC
1107CPPFLAGS
1108LDFLAGS
1109CFLAGS
1110CC
1111DIRSEP
1112MAGICK_FILTER_MODULE_PATH
1113MAGICK_CONFIGURE_BUILD_PATH
1114MAGICK_CONFIGURE_SRC_PATH
1115MAGICK_CODER_MODULE_PATH
1116MAN_DIR
1117INFO_DIR
1118PERSISTINCLUDE_DIR
1119INCLUDE_DIR
1120LIB_DIR
1121LOCALSTATE_DIR
1122SHAREDSTATE_DIR
1123SYSCONF_DIR
1124DATA_DIR
1125LIBEXEC_DIR
1126SBIN_DIR
1127BIN_DIR
1128EXEC_PREFIX_DIR
1129PREFIX_DIR
1130CONFIG_STATUS_DEPENDENCIES
1131MAGICK_LIB_VERSION_NUMBER
1132MAGICK_LIB_VERSION_TEXT
1133MAGICK_LIB_VERSION
1134AM_BACKSLASH
1135AM_DEFAULT_VERBOSITY
1136am__untar
1137am__tar
1138AMTAR
1139am__leading_dot
1140SET_MAKE
1141AWK
1142mkdir_p
1143MKDIR_P
1144INSTALL_STRIP_PROGRAM
1145STRIP
1146install_sh
1147MAKEINFO
1148AUTOHEADER
1149AUTOMAKE
1150AUTOCONF
1151ACLOCAL
1152VERSION
1153PACKAGE
1154CYGPATH_W
1155am__isrc
1156INSTALL_DATA
1157INSTALL_SCRIPT
1158INSTALL_PROGRAM
1159PACKAGE_LIB_SUBVERSION
1160PACKAGE_RELEASE_DATE
1161PACKAGE_LIB_VERSION_NUMBER
1162PACKAGE_LIB_VERSION
1163PACKAGE_CHANGE_DATE
1164PACKAGE_RELEASE
1165MAGICK_LIBRARY_AGE
1166MAGICK_LIBRARY_REVISION
1167MAGICK_LIBRARY_CURRENT
1168target_os
1169target_vendor
1170target_cpu
1171target
1172host_os
1173host_vendor
1174host_cpu
1175host
1176build_os
1177build_vendor
1178build_cpu
1179build
1180CONFIGURE_ARGS
1181DISTCHECK_CONFIG_FLAGS
1182target_alias
1183host_alias
1184build_alias
1185LIBS
1186ECHO_T
1187ECHO_N
1188ECHO_C
1189DEFS
1190mandir
1191localedir
1192libdir
1193psdir
1194pdfdir
1195dvidir
1196htmldir
1197infodir
1198docdir
1199oldincludedir
1200includedir
1201localstatedir
1202sharedstatedir
1203sysconfdir
1204datadir
1205datarootdir
1206libexecdir
1207sbindir
1208bindir
1209program_transform_name
1210prefix
1211exec_prefix
1212PACKAGE_BUGREPORT
1213PACKAGE_STRING
1214PACKAGE_VERSION
1215PACKAGE_TARNAME
1216PACKAGE_NAME
1217PATH_SEPARATOR
1218SHELL'
1219ac_subst_files=''
1220ac_user_opts='
1221enable_option_checking
1222enable_silent_rules
1223enable_dependency_tracking
1224with_gnu_ld
1225with_maximum_compile_warnings
1226with_dmalloc
1227enable_bounds_checking
1228enable_osx_universal_binary
1229with_threads
1230enable_openmp
cristy736173a2009-09-20 21:18:22 +00001231with_x
cristy3ed852e2009-09-05 21:47:34 +00001232enable_largefile
1233enable_shared
1234enable_static
1235with_pic
1236enable_fast_install
1237enable_libtool_lock
1238with_included_ltdl
1239with_ltdl_include
1240with_ltdl_lib
1241enable_ltdl_install
1242with_modules
1243enable_delegate_build
1244enable_deprecated
1245enable_installed
1246enable_cipher
1247enable_embeddable
1248enable_hdri
1249enable_libtool_verbose
1250enable_assert
1251enable_maintainer_mode
1252enable_ccmalloc
1253enable_efence
1254enable_prof
1255enable_gprof
1256enable_gcov
1257with_method_prefix
1258with_quantum_depth
1259with_cache
1260with_frozenpaths
1261with_magick_plus_plus
1262with_perl
1263with_perl_options
1264with_umem
1265with_libstdc
1266with_bzlib
cristy3ed852e2009-09-05 21:47:34 +00001267with_zlib
1268with_autotrace
1269with_dps
1270with_djvu
1271with_fftw
1272with_fpx
1273with_fontconfig
1274with_freetype
1275with_gslib
1276with_fontpath
1277with_gs_font_dir
1278with_gvc
1279with_jbig
1280with_jpeg
1281with_jp2
1282with_lcms
1283with_lqr
1284with_openexr
1285with_png
1286with_rsvg
1287with_tiff
1288with_windows_font_dir
1289with_wmf
1290with_xml
1291'
1292 ac_precious_vars='build_alias
1293host_alias
1294target_alias
1295CC
1296CFLAGS
1297LDFLAGS
1298LIBS
1299CPPFLAGS
1300CPP
1301CXX
1302CXXFLAGS
1303CCC
1304PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +00001305XMKMF
cristy736173a2009-09-20 21:18:22 +00001306CXXCPP
cristy3ed852e2009-09-05 21:47:34 +00001307AUTOTRACE_CFLAGS
1308AUTOTRACE_LIBS
1309FONTCONFIG_CFLAGS
1310FONTCONFIG_LIBS
1311GVC_CFLAGS
1312GVC_LIBS
1313LQR_CFLAGS
1314LQR_LIBS
1315OPENEXR_CFLAGS
1316OPENEXR_LIBS
1317RSVG_CFLAGS
1318RSVG_LIBS
1319CAIRO_SVG_CFLAGS
1320CAIRO_SVG_LIBS'
1321
1322
1323# Initialize some variables set by options.
1324ac_init_help=
1325ac_init_version=false
1326ac_unrecognized_opts=
1327ac_unrecognized_sep=
1328# The variables have the same names as the options, with
1329# dashes changed to underlines.
1330cache_file=/dev/null
1331exec_prefix=NONE
1332no_create=
1333no_recursion=
1334prefix=NONE
1335program_prefix=NONE
1336program_suffix=NONE
1337program_transform_name=s,x,x,
1338silent=
1339site=
1340srcdir=
1341verbose=
1342x_includes=NONE
1343x_libraries=NONE
1344
1345# Installation directory options.
1346# These are left unexpanded so users can "make install exec_prefix=/foo"
1347# and all the variables that are supposed to be based on exec_prefix
1348# by default will actually change.
1349# Use braces instead of parens because sh, perl, etc. also accept them.
1350# (The list follows the same order as the GNU Coding Standards.)
1351bindir='${exec_prefix}/bin'
1352sbindir='${exec_prefix}/sbin'
1353libexecdir='${exec_prefix}/libexec'
1354datarootdir='${prefix}/share'
1355datadir='${datarootdir}'
1356sysconfdir='${prefix}/etc'
1357sharedstatedir='${prefix}/com'
1358localstatedir='${prefix}/var'
1359includedir='${prefix}/include'
1360oldincludedir='/usr/include'
1361docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1362infodir='${datarootdir}/info'
1363htmldir='${docdir}'
1364dvidir='${docdir}'
1365pdfdir='${docdir}'
1366psdir='${docdir}'
1367libdir='${exec_prefix}/lib'
1368localedir='${datarootdir}/locale'
1369mandir='${datarootdir}/man'
1370
1371ac_prev=
1372ac_dashdash=
1373for ac_option
1374do
1375 # If the previous option needs an argument, assign it.
1376 if test -n "$ac_prev"; then
1377 eval $ac_prev=\$ac_option
1378 ac_prev=
1379 continue
1380 fi
1381
1382 case $ac_option in
1383 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1384 *) ac_optarg=yes ;;
1385 esac
1386
1387 # Accept the important Cygnus configure options, so we can diagnose typos.
1388
1389 case $ac_dashdash$ac_option in
1390 --)
1391 ac_dashdash=yes ;;
1392
1393 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1394 ac_prev=bindir ;;
1395 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1396 bindir=$ac_optarg ;;
1397
1398 -build | --build | --buil | --bui | --bu)
1399 ac_prev=build_alias ;;
1400 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1401 build_alias=$ac_optarg ;;
1402
1403 -cache-file | --cache-file | --cache-fil | --cache-fi \
1404 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1405 ac_prev=cache_file ;;
1406 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1407 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1408 cache_file=$ac_optarg ;;
1409
1410 --config-cache | -C)
1411 cache_file=config.cache ;;
1412
1413 -datadir | --datadir | --datadi | --datad)
1414 ac_prev=datadir ;;
1415 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1416 datadir=$ac_optarg ;;
1417
1418 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1419 | --dataroo | --dataro | --datar)
1420 ac_prev=datarootdir ;;
1421 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1422 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1423 datarootdir=$ac_optarg ;;
1424
1425 -disable-* | --disable-*)
1426 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1429 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1430 { (exit 1); exit 1; }; }
1431 ac_useropt_orig=$ac_useropt
1432 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1433 case $ac_user_opts in
1434 *"
1435"enable_$ac_useropt"
1436"*) ;;
1437 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1438 ac_unrecognized_sep=', ';;
1439 esac
1440 eval enable_$ac_useropt=no ;;
1441
1442 -docdir | --docdir | --docdi | --doc | --do)
1443 ac_prev=docdir ;;
1444 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1445 docdir=$ac_optarg ;;
1446
1447 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1448 ac_prev=dvidir ;;
1449 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1450 dvidir=$ac_optarg ;;
1451
1452 -enable-* | --enable-*)
1453 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1457 { (exit 1); exit 1; }; }
1458 ac_useropt_orig=$ac_useropt
1459 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460 case $ac_user_opts in
1461 *"
1462"enable_$ac_useropt"
1463"*) ;;
1464 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1465 ac_unrecognized_sep=', ';;
1466 esac
1467 eval enable_$ac_useropt=\$ac_optarg ;;
1468
1469 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1470 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1471 | --exec | --exe | --ex)
1472 ac_prev=exec_prefix ;;
1473 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1474 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1475 | --exec=* | --exe=* | --ex=*)
1476 exec_prefix=$ac_optarg ;;
1477
1478 -gas | --gas | --ga | --g)
1479 # Obsolete; use --with-gas.
1480 with_gas=yes ;;
1481
1482 -help | --help | --hel | --he | -h)
1483 ac_init_help=long ;;
1484 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1485 ac_init_help=recursive ;;
1486 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1487 ac_init_help=short ;;
1488
1489 -host | --host | --hos | --ho)
1490 ac_prev=host_alias ;;
1491 -host=* | --host=* | --hos=* | --ho=*)
1492 host_alias=$ac_optarg ;;
1493
1494 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1495 ac_prev=htmldir ;;
1496 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1497 | --ht=*)
1498 htmldir=$ac_optarg ;;
1499
1500 -includedir | --includedir | --includedi | --included | --include \
1501 | --includ | --inclu | --incl | --inc)
1502 ac_prev=includedir ;;
1503 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1504 | --includ=* | --inclu=* | --incl=* | --inc=*)
1505 includedir=$ac_optarg ;;
1506
1507 -infodir | --infodir | --infodi | --infod | --info | --inf)
1508 ac_prev=infodir ;;
1509 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1510 infodir=$ac_optarg ;;
1511
1512 -libdir | --libdir | --libdi | --libd)
1513 ac_prev=libdir ;;
1514 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1515 libdir=$ac_optarg ;;
1516
1517 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1518 | --libexe | --libex | --libe)
1519 ac_prev=libexecdir ;;
1520 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1521 | --libexe=* | --libex=* | --libe=*)
1522 libexecdir=$ac_optarg ;;
1523
1524 -localedir | --localedir | --localedi | --localed | --locale)
1525 ac_prev=localedir ;;
1526 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1527 localedir=$ac_optarg ;;
1528
1529 -localstatedir | --localstatedir | --localstatedi | --localstated \
1530 | --localstate | --localstat | --localsta | --localst | --locals)
1531 ac_prev=localstatedir ;;
1532 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1533 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1534 localstatedir=$ac_optarg ;;
1535
1536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1537 ac_prev=mandir ;;
1538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1539 mandir=$ac_optarg ;;
1540
1541 -nfp | --nfp | --nf)
1542 # Obsolete; use --without-fp.
1543 with_fp=no ;;
1544
1545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1546 | --no-cr | --no-c | -n)
1547 no_create=yes ;;
1548
1549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1551 no_recursion=yes ;;
1552
1553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1555 | --oldin | --oldi | --old | --ol | --o)
1556 ac_prev=oldincludedir ;;
1557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1560 oldincludedir=$ac_optarg ;;
1561
1562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1563 ac_prev=prefix ;;
1564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1565 prefix=$ac_optarg ;;
1566
1567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1568 | --program-pre | --program-pr | --program-p)
1569 ac_prev=program_prefix ;;
1570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1572 program_prefix=$ac_optarg ;;
1573
1574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1575 | --program-suf | --program-su | --program-s)
1576 ac_prev=program_suffix ;;
1577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1579 program_suffix=$ac_optarg ;;
1580
1581 -program-transform-name | --program-transform-name \
1582 | --program-transform-nam | --program-transform-na \
1583 | --program-transform-n | --program-transform- \
1584 | --program-transform | --program-transfor \
1585 | --program-transfo | --program-transf \
1586 | --program-trans | --program-tran \
1587 | --progr-tra | --program-tr | --program-t)
1588 ac_prev=program_transform_name ;;
1589 -program-transform-name=* | --program-transform-name=* \
1590 | --program-transform-nam=* | --program-transform-na=* \
1591 | --program-transform-n=* | --program-transform-=* \
1592 | --program-transform=* | --program-transfor=* \
1593 | --program-transfo=* | --program-transf=* \
1594 | --program-trans=* | --program-tran=* \
1595 | --progr-tra=* | --program-tr=* | --program-t=*)
1596 program_transform_name=$ac_optarg ;;
1597
1598 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1599 ac_prev=pdfdir ;;
1600 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1601 pdfdir=$ac_optarg ;;
1602
1603 -psdir | --psdir | --psdi | --psd | --ps)
1604 ac_prev=psdir ;;
1605 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1606 psdir=$ac_optarg ;;
1607
1608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609 | -silent | --silent | --silen | --sile | --sil)
1610 silent=yes ;;
1611
1612 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1613 ac_prev=sbindir ;;
1614 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1615 | --sbi=* | --sb=*)
1616 sbindir=$ac_optarg ;;
1617
1618 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1619 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1620 | --sharedst | --shareds | --shared | --share | --shar \
1621 | --sha | --sh)
1622 ac_prev=sharedstatedir ;;
1623 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1624 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1625 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1626 | --sha=* | --sh=*)
1627 sharedstatedir=$ac_optarg ;;
1628
1629 -site | --site | --sit)
1630 ac_prev=site ;;
1631 -site=* | --site=* | --sit=*)
1632 site=$ac_optarg ;;
1633
1634 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1635 ac_prev=srcdir ;;
1636 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1637 srcdir=$ac_optarg ;;
1638
1639 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1640 | --syscon | --sysco | --sysc | --sys | --sy)
1641 ac_prev=sysconfdir ;;
1642 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1643 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1644 sysconfdir=$ac_optarg ;;
1645
1646 -target | --target | --targe | --targ | --tar | --ta | --t)
1647 ac_prev=target_alias ;;
1648 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1649 target_alias=$ac_optarg ;;
1650
1651 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1652 verbose=yes ;;
1653
1654 -version | --version | --versio | --versi | --vers | -V)
1655 ac_init_version=: ;;
1656
1657 -with-* | --with-*)
1658 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1659 # Reject names that are not valid shell variable names.
1660 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1661 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1662 { (exit 1); exit 1; }; }
1663 ac_useropt_orig=$ac_useropt
1664 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1665 case $ac_user_opts in
1666 *"
1667"with_$ac_useropt"
1668"*) ;;
1669 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1670 ac_unrecognized_sep=', ';;
1671 esac
1672 eval with_$ac_useropt=\$ac_optarg ;;
1673
1674 -without-* | --without-*)
1675 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1676 # Reject names that are not valid shell variable names.
1677 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1678 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1679 { (exit 1); exit 1; }; }
1680 ac_useropt_orig=$ac_useropt
1681 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1683 *"
1684"with_$ac_useropt"
1685"*) ;;
1686 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1687 ac_unrecognized_sep=', ';;
1688 esac
1689 eval with_$ac_useropt=no ;;
1690
1691 --x)
1692 # Obsolete; use --with-x.
1693 with_x=yes ;;
1694
1695 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1696 | --x-incl | --x-inc | --x-in | --x-i)
1697 ac_prev=x_includes ;;
1698 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1699 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1700 x_includes=$ac_optarg ;;
1701
1702 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1703 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1704 ac_prev=x_libraries ;;
1705 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1706 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1707 x_libraries=$ac_optarg ;;
1708
1709 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1710Try \`$0 --help' for more information." >&2
1711 { (exit 1); exit 1; }; }
1712 ;;
1713
1714 *=*)
1715 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1716 # Reject names that are not valid shell variable names.
1717 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1718 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1719 { (exit 1); exit 1; }; }
1720 eval $ac_envvar=\$ac_optarg
1721 export $ac_envvar ;;
1722
1723 *)
1724 # FIXME: should be removed in autoconf 3.0.
1725 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1726 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1727 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1728 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1729 ;;
1730
1731 esac
1732done
1733
1734if test -n "$ac_prev"; then
1735 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1736 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1737 { (exit 1); exit 1; }; }
1738fi
1739
1740if test -n "$ac_unrecognized_opts"; then
1741 case $enable_option_checking in
1742 no) ;;
1743 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1744 { (exit 1); exit 1; }; } ;;
1745 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1746 esac
1747fi
1748
1749# Check all directory arguments for consistency.
1750for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1751 datadir sysconfdir sharedstatedir localstatedir includedir \
1752 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1753 libdir localedir mandir
1754do
1755 eval ac_val=\$$ac_var
1756 # Remove trailing slashes.
1757 case $ac_val in
1758 */ )
1759 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1760 eval $ac_var=\$ac_val;;
1761 esac
1762 # Be sure to have absolute directory names.
1763 case $ac_val in
1764 [\\/$]* | ?:[\\/]* ) continue;;
1765 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1766 esac
1767 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1768 { (exit 1); exit 1; }; }
1769done
1770
1771# There might be people who depend on the old broken behavior: `$host'
1772# used to hold the argument of --host etc.
1773# FIXME: To remove some day.
1774build=$build_alias
1775host=$host_alias
1776target=$target_alias
1777
1778# FIXME: To remove some day.
1779if test "x$host_alias" != x; then
1780 if test "x$build_alias" = x; then
1781 cross_compiling=maybe
1782 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1783 If a cross compiler is detected then cross compile mode will be used." >&2
1784 elif test "x$build_alias" != "x$host_alias"; then
1785 cross_compiling=yes
1786 fi
1787fi
1788
1789ac_tool_prefix=
1790test -n "$host_alias" && ac_tool_prefix=$host_alias-
1791
1792test "$silent" = yes && exec 6>/dev/null
1793
1794
1795ac_pwd=`pwd` && test -n "$ac_pwd" &&
1796ac_ls_di=`ls -di .` &&
1797ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1798 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1799 { (exit 1); exit 1; }; }
1800test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1801 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1802 { (exit 1); exit 1; }; }
1803
1804
1805# Find the source files, if location was not specified.
1806if test -z "$srcdir"; then
1807 ac_srcdir_defaulted=yes
1808 # Try the directory containing this script, then the parent directory.
1809 ac_confdir=`$as_dirname -- "$as_myself" ||
1810$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1811 X"$as_myself" : 'X\(//\)[^/]' \| \
1812 X"$as_myself" : 'X\(//\)$' \| \
1813 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1814$as_echo X"$as_myself" |
1815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1816 s//\1/
1817 q
1818 }
1819 /^X\(\/\/\)[^/].*/{
1820 s//\1/
1821 q
1822 }
1823 /^X\(\/\/\)$/{
1824 s//\1/
1825 q
1826 }
1827 /^X\(\/\).*/{
1828 s//\1/
1829 q
1830 }
1831 s/.*/./; q'`
1832 srcdir=$ac_confdir
1833 if test ! -r "$srcdir/$ac_unique_file"; then
1834 srcdir=..
1835 fi
1836else
1837 ac_srcdir_defaulted=no
1838fi
1839if test ! -r "$srcdir/$ac_unique_file"; then
1840 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1841 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1842 { (exit 1); exit 1; }; }
1843fi
1844ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1845ac_abs_confdir=`(
1846 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1847 { (exit 1); exit 1; }; }
1848 pwd)`
1849# When building in place, set srcdir=.
1850if test "$ac_abs_confdir" = "$ac_pwd"; then
1851 srcdir=.
1852fi
1853# Remove unnecessary trailing slashes from srcdir.
1854# Double slashes in file names in object file debugging info
1855# mess up M-x gdb in Emacs.
1856case $srcdir in
1857*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1858esac
1859for ac_var in $ac_precious_vars; do
1860 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1861 eval ac_env_${ac_var}_value=\$${ac_var}
1862 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1863 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1864done
1865
1866#
1867# Report the --help message.
1868#
1869if test "$ac_init_help" = "long"; then
1870 # Omit some internal or obsolete options to make the list less imposing.
1871 # This message is too long to be a string in the A/UX 3.1 sh.
1872 cat <<_ACEOF
cristybf083432009-09-13 04:31:08 +00001873\`configure' configures ImageMagick 6.5.6 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001874
1875Usage: $0 [OPTION]... [VAR=VALUE]...
1876
1877To assign environment variables (e.g., CC, CFLAGS...), specify them as
1878VAR=VALUE. See below for descriptions of some of the useful variables.
1879
1880Defaults for the options are specified in brackets.
1881
1882Configuration:
1883 -h, --help display this help and exit
1884 --help=short display options specific to this package
1885 --help=recursive display the short help of all the included packages
1886 -V, --version display version information and exit
1887 -q, --quiet, --silent do not print \`checking...' messages
1888 --cache-file=FILE cache test results in FILE [disabled]
1889 -C, --config-cache alias for \`--cache-file=config.cache'
1890 -n, --no-create do not create output files
1891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1892
1893Installation directories:
1894 --prefix=PREFIX install architecture-independent files in PREFIX
1895 [$ac_default_prefix]
1896 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1897 [PREFIX]
1898
1899By default, \`make install' will install all the files in
1900\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1901an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1902for instance \`--prefix=\$HOME'.
1903
1904For better control, use the options below.
1905
1906Fine tuning of the installation directories:
1907 --bindir=DIR user executables [EPREFIX/bin]
1908 --sbindir=DIR system admin executables [EPREFIX/sbin]
1909 --libexecdir=DIR program executables [EPREFIX/libexec]
1910 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1911 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1912 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1913 --libdir=DIR object code libraries [EPREFIX/lib]
1914 --includedir=DIR C header files [PREFIX/include]
1915 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1916 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1917 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1918 --infodir=DIR info documentation [DATAROOTDIR/info]
1919 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1920 --mandir=DIR man documentation [DATAROOTDIR/man]
1921 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1922 --htmldir=DIR html documentation [DOCDIR]
1923 --dvidir=DIR dvi documentation [DOCDIR]
1924 --pdfdir=DIR pdf documentation [DOCDIR]
1925 --psdir=DIR ps documentation [DOCDIR]
1926_ACEOF
1927
1928 cat <<\_ACEOF
1929
1930Program names:
1931 --program-prefix=PREFIX prepend PREFIX to installed program names
1932 --program-suffix=SUFFIX append SUFFIX to installed program names
1933 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1934
1935X features:
1936 --x-includes=DIR X include files are in DIR
1937 --x-libraries=DIR X library files are in DIR
1938
1939System types:
1940 --build=BUILD configure for building on BUILD [guessed]
1941 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1942 --target=TARGET configure for building compilers for TARGET [HOST]
1943_ACEOF
1944fi
1945
1946if test -n "$ac_init_help"; then
1947 case $ac_init_help in
cristybf083432009-09-13 04:31:08 +00001948 short | recursive ) echo "Configuration of ImageMagick 6.5.6:";;
cristy3ed852e2009-09-05 21:47:34 +00001949 esac
1950 cat <<\_ACEOF
1951
1952Optional Features:
1953 --disable-option-checking ignore unrecognized --enable/--with options
1954 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1955 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1956 --enable-silent-rules less verbose build output (undo: `make V=1')
1957 --disable-silent-rules verbose build output (undo: `make V=0')
1958 --disable-dependency-tracking speeds up one-time build
1959 --enable-dependency-tracking do not reject slow dependency extractors
1960 --bounds-checking enable run-time bounds-checking
1961 --enable-osx-universal-binary
1962 build universal binary on OS X [default=no]
1963 --disable-openmp do not use OpenMP
1964 --disable-largefile omit support for large files
1965 --enable-shared[=PKGS] build shared libraries [default=yes]
1966 --enable-static[=PKGS] build static libraries [default=yes]
1967 --enable-fast-install[=PKGS]
1968 optimize for fast installation [default=yes]
1969 --disable-libtool-lock avoid locking (might break parallel builds)
1970 --enable-ltdl-install install libltdl
1971 --enable-delegate-build look for delegate libraries in build directory
1972 --disable-deprecated exclude deprecated methods in MagickCore and
1973 MagickWand API's
1974 --disable-installed Formally install ImageMagick under PREFIX
1975 --disable-cipher disable enciphering and deciphering image pixels
1976 --enable-embeddable enable self-contained, embeddable,
1977 zero-configuration ImageMagick
1978 --enable-hdri accurately represent the wide range of intensity
1979 levels found in real scenes
1980 --enable-libtool-verbose
1981 enable verbose libtool output
1982 --disable-assert disable assert() statements in build
1983 --enable-maintainer-mode enable make rules and dependencies not useful
1984 (and sometimes confusing) to the casual installer
1985 --enable-ccmalloc enable 'ccmalloc' memory debug support
1986 --enable-efence enable 'efence' memory debug support
1987 --enable-prof enable 'prof' profiling support
1988 --enable-gprof enable 'gprof' profiling support
1989 --enable-gcov enable 'gcov' profiling support
1990
1991Optional Packages:
1992 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1993 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1994 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1995 --without-maximum-compile-warnings
1996 Disable maximum warning verbosity
1997 --with-dmalloc use dmalloc, as in
1998 http://www.dmalloc.com/dmalloc.tar.gz
1999 --without-threads disable threads support
cristy736173a2009-09-20 21:18:22 +00002000 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00002001 --with-pic try to use only PIC/non-PIC objects [default=use
2002 both]
2003 --with-included-ltdl use the GNU ltdl sources included here
2004 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2005 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2006 --with-modules enable building dynamically loadable modules
2007 --with-method-prefix=PREFIX
2008 prefix MagickCore API methods
2009 --with-quantum-depth=DEPTH
2010 number of bits in a pixel quantum (default 16)
2011 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2012 memory)
2013 --with-frozenpaths freeze delegate paths
2014 --without-magick-plus-plus
2015 disable build/install of Magick++
2016 --with-perl enable build/install of PerlMagick
2017 --with-perl-options=OPTIONS
2018 options to pass on command-line when generating
2019 PerlMagick's build file
2020 --with-umem enable umem memory allocation library support
2021 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2022 --without-bzlib disable BZLIB support
cristy3ed852e2009-09-05 21:47:34 +00002023 --without-zlib disable ZLIB support
2024 --with-autotrace enable autotrace support
2025 --without-dps disable Display Postscript support
2026 --without-djvu disable DjVu support
2027 --without-fftw disable FFTW support
2028 --without-fpx disable FlashPIX support
2029 --without-fontconfig disable fontconfig support
2030 --without-freetype disable Freetype support
2031 --without-gslib enable Ghostscript library support
2032 --with-fontpath=DIR prepend to default font search path
2033 --with-gs-font-dir=DIR Ghostscript font directory
2034 --without-gvc disable GVC support
2035 --without-jbig disable JBIG support
2036 --without-jpeg disable JPEG support
2037 --without-jp2 disable JPEG-2000 support
2038 --without-lcms disable LCMS support
2039 --without-lqr disable Liquid Rescale support (experimental)
2040 --without-openexr disable OpenEXR support
2041 --without-png disable PNG support
2042 --without-rsvg disable RSVG support
2043 --without-tiff disable TIFF support
2044 --with-windows-font-dir=DIR
2045 directory containing MS-Windows fonts
2046 --without-wmf disable WMF support
2047 --without-xml disable XML support
2048
2049Some influential environment variables:
2050 CC C compiler command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2053 nonstandard directory <lib dir>
2054 LIBS libraries to pass to the linker, e.g. -l<library>
2055 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2056 you have headers in a nonstandard directory <include dir>
2057 CPP C preprocessor
2058 CXX C++ compiler command
2059 CXXFLAGS C++ compiler flags
2060 PKG_CONFIG path to pkg-config utility
cristy3ed852e2009-09-05 21:47:34 +00002061 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy736173a2009-09-20 21:18:22 +00002062 CXXCPP C++ preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002063 AUTOTRACE_CFLAGS
2064 C compiler flags for AUTOTRACE, overriding pkg-config
2065 AUTOTRACE_LIBS
2066 linker flags for AUTOTRACE, overriding pkg-config
2067 FONTCONFIG_CFLAGS
2068 C compiler flags for FONTCONFIG, overriding pkg-config
2069 FONTCONFIG_LIBS
2070 linker flags for FONTCONFIG, overriding pkg-config
2071 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2072 GVC_LIBS linker flags for GVC, overriding pkg-config
2073 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2074 LQR_LIBS linker flags for LQR, overriding pkg-config
2075 OPENEXR_CFLAGS
2076 C compiler flags for OPENEXR, overriding pkg-config
2077 OPENEXR_LIBS
2078 linker flags for OPENEXR, overriding pkg-config
2079 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2080 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2081 CAIRO_SVG_CFLAGS
2082 C compiler flags for CAIRO_SVG, overriding pkg-config
2083 CAIRO_SVG_LIBS
2084 linker flags for CAIRO_SVG, overriding pkg-config
2085
2086Use these variables to override the choices made by `configure' or to help
2087it to find libraries and programs with nonstandard names/locations.
2088
2089Report bugs to <http://www.imagemagick.org>.
2090_ACEOF
2091ac_status=$?
2092fi
2093
2094if test "$ac_init_help" = "recursive"; then
2095 # If there are subdirs, report their specific --help.
2096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2097 test -d "$ac_dir" ||
2098 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2099 continue
2100 ac_builddir=.
2101
2102case "$ac_dir" in
2103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104*)
2105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2106 # A ".." for each directory in $ac_dir_suffix.
2107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2108 case $ac_top_builddir_sub in
2109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2111 esac ;;
2112esac
2113ac_abs_top_builddir=$ac_pwd
2114ac_abs_builddir=$ac_pwd$ac_dir_suffix
2115# for backward compatibility:
2116ac_top_builddir=$ac_top_build_prefix
2117
2118case $srcdir in
2119 .) # We are building in place.
2120 ac_srcdir=.
2121 ac_top_srcdir=$ac_top_builddir_sub
2122 ac_abs_top_srcdir=$ac_pwd ;;
2123 [\\/]* | ?:[\\/]* ) # Absolute name.
2124 ac_srcdir=$srcdir$ac_dir_suffix;
2125 ac_top_srcdir=$srcdir
2126 ac_abs_top_srcdir=$srcdir ;;
2127 *) # Relative name.
2128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2129 ac_top_srcdir=$ac_top_build_prefix$srcdir
2130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2131esac
2132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133
2134 cd "$ac_dir" || { ac_status=$?; continue; }
2135 # Check for guested configure.
2136 if test -f "$ac_srcdir/configure.gnu"; then
2137 echo &&
2138 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2139 elif test -f "$ac_srcdir/configure"; then
2140 echo &&
2141 $SHELL "$ac_srcdir/configure" --help=recursive
2142 else
2143 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2144 fi || ac_status=$?
2145 cd "$ac_pwd" || { ac_status=$?; break; }
2146 done
2147fi
2148
2149test -n "$ac_init_help" && exit $ac_status
2150if $ac_init_version; then
2151 cat <<\_ACEOF
cristybf083432009-09-13 04:31:08 +00002152ImageMagick configure 6.5.6
cristy3ed852e2009-09-05 21:47:34 +00002153generated by GNU Autoconf 2.63
2154
2155Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21562002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2157This configure script is free software; the Free Software Foundation
2158gives unlimited permission to copy, distribute and modify it.
2159_ACEOF
2160 exit
2161fi
2162cat >config.log <<_ACEOF
2163This file contains any messages produced by compilers while
2164running configure, to aid debugging if configure makes a mistake.
2165
cristybf083432009-09-13 04:31:08 +00002166It was created by ImageMagick $as_me 6.5.6, which was
cristy3ed852e2009-09-05 21:47:34 +00002167generated by GNU Autoconf 2.63. Invocation command line was
2168
2169 $ $0 $@
2170
2171_ACEOF
2172exec 5>>config.log
2173{
2174cat <<_ASUNAME
2175## --------- ##
2176## Platform. ##
2177## --------- ##
2178
2179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196_ASUNAME
2197
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204done
2205IFS=$as_save_IFS
2206
2207} >&5
2208
2209cat >&5 <<_ACEOF
2210
2211
2212## ----------- ##
2213## Core tests. ##
2214## ----------- ##
2215
2216_ACEOF
2217
2218
2219# Keep a trace of the command line.
2220# Strip out --no-create and --no-recursion so they do not pile up.
2221# Strip out --silent because we don't want to record it for future runs.
2222# Also quote any args containing shell meta-characters.
2223# Make two passes to allow for proper duplicate-argument suppression.
2224ac_configure_args=
2225ac_configure_args0=
2226ac_configure_args1=
2227ac_must_keep_next=false
2228for ac_pass in 1 2
2229do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2242 2)
2243 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 ac_configure_args="$ac_configure_args '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263done
2264$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2265$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2266
2267# When interrupted or exit'd, cleanup temporary files, and complete
2268# config.log. We remove comments because anyway the quotes in there
2269# would cause problems or look ugly.
2270# WARNING: Use '\'' to represent an apostrophe within the trap.
2271# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 cat <<\_ASBOX
2278## ---------------- ##
2279## Cache variables. ##
2280## ---------------- ##
2281_ASBOX
2282 echo
2283 # The following way of writing the cache mishandles newlines in values,
2284(
2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in #(
2288 *${as_nl}*)
2289 case $ac_var in #(
2290 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 esac
2293 case $ac_var in #(
2294 _ | IFS | as_nl) ;; #(
2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) $as_unset $ac_var ;;
2297 esac ;;
2298 esac
2299 done
2300 (set) 2>&1 |
2301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
2303 sed -n \
2304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 ;; #(
2307 *)
2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309 ;;
2310 esac |
2311 sort
2312)
2313 echo
2314
2315 cat <<\_ASBOX
2316## ----------------- ##
2317## Output variables. ##
2318## ----------------- ##
2319_ASBOX
2320 echo
2321 for ac_var in $ac_subst_vars
2322 do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 $as_echo "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2330
2331 if test -n "$ac_subst_files"; then
2332 cat <<\_ASBOX
2333## ------------------- ##
2334## File substitutions. ##
2335## ------------------- ##
2336_ASBOX
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 cat <<\_ASBOX
2351## ----------- ##
2352## confdefs.h. ##
2353## ----------- ##
2354_ASBOX
2355 echo
2356 cat confdefs.h
2357 echo
2358 fi
2359 test "$ac_signal" != 0 &&
2360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
2362 } >&5
2363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 exit $exit_status
2366' 0
2367for ac_signal in 1 2 13 15; do
2368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2369done
2370ac_signal=0
2371
2372# confdefs.h avoids OS command line length limits that DEFS can exceed.
2373rm -f -r conftest* confdefs.h
2374
2375# Predefined preprocessor variables.
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_NAME "$PACKAGE_NAME"
2379_ACEOF
2380
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384_ACEOF
2385
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_VERSION "$PACKAGE_VERSION"
2389_ACEOF
2390
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_STRING "$PACKAGE_STRING"
2394_ACEOF
2395
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399_ACEOF
2400
2401
2402# Let the site file select an alternate cache file if it wants to.
2403# Prefer an explicitly selected file to automatically selected ones.
2404ac_site_file1=NONE
2405ac_site_file2=NONE
2406if test -n "$CONFIG_SITE"; then
2407 ac_site_file1=$CONFIG_SITE
2408elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2411else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2414fi
2415for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416do
2417 test "x$ac_site_file" = xNONE && continue
2418 if test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2420$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2422 . "$ac_site_file"
2423 fi
2424done
2425
2426if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special
2428 # files actually), so we avoid doing that.
2429 if test -f "$cache_file"; then
2430 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2431$as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2436 fi
2437else
2438 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2439$as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2441fi
2442
2443# Check that the precious variables saved in the cache have kept the same
2444# value.
2445ac_cache_corrupted=false
2446for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2461 *)
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2468$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2474 fi
2475 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2476$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2478$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2490 esac
2491 fi
2492done
2493if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2497$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2499$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2500 { (exit 1); exit 1; }; }
2501fi
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534
2535ac_aux_dir=
2536for ac_dir in config "$srcdir"/config; do
2537 if test -f "$ac_dir/install-sh"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/install-sh -c"
2540 break
2541 elif test -f "$ac_dir/install.sh"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/install.sh -c"
2544 break
2545 elif test -f "$ac_dir/shtool"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/shtool install -c"
2548 break
2549 fi
2550done
2551if test -z "$ac_aux_dir"; then
2552 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2553$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2554 { (exit 1); exit 1; }; }
2555fi
2556
2557# These three variables are undocumented and unsupported,
2558# and are intended to be withdrawn in a future Autoconf release.
2559# They can cause serious problems if a builder's source tree is in a directory
2560# whose full name contains unusual characters.
2561ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
2566
2567
2568ac_config_headers="$ac_config_headers config/config.h"
2569
2570ac_config_commands="$ac_config_commands magick/magick-config.h"
2571
2572ac_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"
2573
2574
2575#
2576# Save initial user-tunable values
2577#
2578USER_LIBS=$LIBS
2579for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2580 eval isset=\${$var+set}
2581 if test "$isset" = 'set'; then
2582 eval val=$`echo $var`
2583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2584 fi
2585done
2586
2587
2588CONFIGURE_ARGS="$0 ${ac_configure_args}"
2589
2590
2591# Source file containing package/library versioning information.
2592. ${srcdir}/version.sh
2593
2594echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2595# Make sure we can run config.sub.
2596$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2597 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2598$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2599 { (exit 1); exit 1; }; }
2600
2601{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2602$as_echo_n "checking build system type... " >&6; }
2603if test "${ac_cv_build+set}" = set; then
2604 $as_echo_n "(cached) " >&6
2605else
2606 ac_build_alias=$build_alias
2607test "x$ac_build_alias" = x &&
2608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609test "x$ac_build_alias" = x &&
2610 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2611$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612 { (exit 1); exit 1; }; }
2613ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2614 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2615$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2616 { (exit 1); exit 1; }; }
2617
2618fi
2619{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2620$as_echo "$ac_cv_build" >&6; }
2621case $ac_cv_build in
2622*-*-*) ;;
2623*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2624$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2625 { (exit 1); exit 1; }; };;
2626esac
2627build=$ac_cv_build
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_build
2630shift
2631build_cpu=$1
2632build_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636build_os=$*
2637IFS=$ac_save_IFS
2638case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2642$as_echo_n "checking host system type... " >&6; }
2643if test "${ac_cv_host+set}" = set; then
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648else
2649 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2651$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2652 { (exit 1); exit 1; }; }
2653fi
2654
2655fi
2656{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2657$as_echo "$ac_cv_host" >&6; }
2658case $ac_cv_host in
2659*-*-*) ;;
2660*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2661$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2662 { (exit 1); exit 1; }; };;
2663esac
2664host=$ac_cv_host
2665ac_save_IFS=$IFS; IFS='-'
2666set x $ac_cv_host
2667shift
2668host_cpu=$1
2669host_vendor=$2
2670shift; shift
2671# Remember, the first character of IFS is used to create $*,
2672# except with old shells:
2673host_os=$*
2674IFS=$ac_save_IFS
2675case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676
2677
2678{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2679$as_echo_n "checking target system type... " >&6; }
2680if test "${ac_cv_target+set}" = set; then
2681 $as_echo_n "(cached) " >&6
2682else
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2685else
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2688$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2689 { (exit 1); exit 1; }; }
2690fi
2691
2692fi
2693{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2694$as_echo "$ac_cv_target" >&6; }
2695case $ac_cv_target in
2696*-*-*) ;;
2697*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2698$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2699 { (exit 1); exit 1; }; };;
2700esac
2701target=$ac_cv_target
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_target
2704shift
2705target_cpu=$1
2706target_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710target_os=$*
2711IFS=$ac_save_IFS
2712case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2713
2714
2715# The aliases save the names the user supplied, while $host etc.
2716# will get canonicalized.
2717test -n "$target_alias" &&
2718 test "$program_prefix$program_suffix$program_transform_name" = \
2719 NONENONEs,x,x, &&
2720 program_prefix=${target_alias}-
2721
2722# Substitute library versioning
2723
2724
2725# Ensure that make can run correctly
2726{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2727$as_echo_n "checking whether build environment is sane... " >&6; }
2728# Just in case
2729sleep 1
2730echo timestamp > conftest.file
2731# Reject unsafe characters in $srcdir or the absolute working directory
2732# name. Accept space and tab only in the latter.
2733am_lf='
2734'
2735case `pwd` in
2736 *[\\\"\#\$\&\'\`$am_lf]*)
2737 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2738$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2739 { (exit 1); exit 1; }; };;
2740esac
2741case $srcdir in
2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2743 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2744$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2745 { (exit 1); exit 1; }; };;
2746esac
2747
2748# Do `set' in a subshell so we don't clobber the current shell's
2749# arguments. Must try -L first in case configure is actually a
2750# symlink; some systems play weird games with the mod time of symlinks
2751# (eg FreeBSD returns the mod time of the symlink's containing
2752# directory).
2753if (
2754 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2755 if test "$*" = "X"; then
2756 # -L didn't work.
2757 set X `ls -t "$srcdir/configure" conftest.file`
2758 fi
2759 rm -f conftest.file
2760 if test "$*" != "X $srcdir/configure conftest.file" \
2761 && test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763 # If neither matched, then we have a broken ls. This can happen
2764 # if, for instance, CONFIG_SHELL is bash and it inherits a
2765 # broken ls alias from the environment. This has actually
2766 # happened. Such a system could not be considered "sane".
2767 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2768alias in your environment" >&5
2769$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2770alias in your environment" >&2;}
2771 { (exit 1); exit 1; }; }
2772 fi
2773
2774 test "$2" = conftest.file
2775 )
2776then
2777 # Ok.
2778 :
2779else
2780 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781Check your system clock" >&5
2782$as_echo "$as_me: error: newly created file is older than distributed files!
2783Check your system clock" >&2;}
2784 { (exit 1); exit 1; }; }
2785fi
2786{ $as_echo "$as_me:$LINENO: result: yes" >&5
2787$as_echo "yes" >&6; }
2788
2789am__api_version='1.11'
2790
2791# Find a good install program. We prefer a C program (faster),
2792# so one script is as good as another. But avoid the broken or
2793# incompatible versions:
2794# SysV /etc/install, /usr/sbin/install
2795# SunOS /usr/etc/install
2796# IRIX /sbin/install
2797# AIX /bin/install
2798# AmigaOS /C/install, which installs bootblocks on floppy discs
2799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2802# OS/2's system install, which has a completely different semantic
2803# ./install, which can be erroneously created by make from ./install.sh.
2804# Reject install programs that cannot install multiple files.
2805{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2806$as_echo_n "checking for a BSD-compatible install... " >&6; }
2807if test -z "$INSTALL"; then
2808if test "${ac_cv_path_install+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2810else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 # Account for people who put trailing slashes in PATH elements.
2817case $as_dir/ in
2818 ./ | .// | /cC/* | \
2819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2820 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2821 /usr/ucb/* ) ;;
2822 *)
2823 # OSF1 and SCO ODT 3.0 have their own names for install.
2824 # Don't use installbsd from OSF since it installs stuff as root
2825 # by default.
2826 for ac_prog in ginstall scoinst install; do
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2829 if test $ac_prog = install &&
2830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831 # AIX install. It has an incompatible calling convention.
2832 :
2833 elif test $ac_prog = install &&
2834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2835 # program-specific install script used by HP pwplus--don't use.
2836 :
2837 else
2838 rm -rf conftest.one conftest.two conftest.dir
2839 echo one > conftest.one
2840 echo two > conftest.two
2841 mkdir conftest.dir
2842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2843 test -s conftest.one && test -s conftest.two &&
2844 test -s conftest.dir/conftest.one &&
2845 test -s conftest.dir/conftest.two
2846 then
2847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2848 break 3
2849 fi
2850 fi
2851 fi
2852 done
2853 done
2854 ;;
2855esac
2856
2857done
2858IFS=$as_save_IFS
2859
2860rm -rf conftest.one conftest.two conftest.dir
2861
2862fi
2863 if test "${ac_cv_path_install+set}" = set; then
2864 INSTALL=$ac_cv_path_install
2865 else
2866 # As a last resort, use the slow shell script. Don't cache a
2867 # value for INSTALL within a source directory, because that will
2868 # break other packages using the cache if that directory is
2869 # removed, or if the value is a relative name.
2870 INSTALL=$ac_install_sh
2871 fi
2872fi
2873{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2874$as_echo "$INSTALL" >&6; }
2875
2876# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2877# It thinks the first close brace ends the variable substitution.
2878test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2879
2880test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2881
2882test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2883
2884test "$program_prefix" != NONE &&
2885 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2886# Use a double $ so make ignores it.
2887test "$program_suffix" != NONE &&
2888 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2889# Double any \ or $.
2890# By default was `s,x,x', remove it if useless.
2891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2893
2894# expand $ac_aux_dir to an absolute path
2895am_aux_dir=`cd $ac_aux_dir && pwd`
2896
2897if test x"${MISSING+set}" != xset; then
2898 case $am_aux_dir in
2899 *\ * | *\ *)
2900 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2901 *)
2902 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2903 esac
2904fi
2905# Use eval to expand $SHELL
2906if eval "$MISSING --run true"; then
2907 am_missing_run="$MISSING --run "
2908else
2909 am_missing_run=
2910 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2911$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2912fi
2913
2914if test x"${install_sh}" != xset; then
2915 case $am_aux_dir in
2916 *\ * | *\ *)
2917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2918 *)
2919 install_sh="\${SHELL} $am_aux_dir/install-sh"
2920 esac
2921fi
2922
2923# Installed binaries are usually stripped using `strip' when the user
2924# run `make install-strip'. However `strip' might not be the right
2925# tool to use in cross-compilation environments, therefore Automake
2926# will honor the `STRIP' environment variable to overrule this program.
2927if test "$cross_compiling" != no; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}strip; ac_word=$2
2931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if test "${ac_cv_prog_STRIP+set}" = set; then
2934 $as_echo_n "(cached) " >&6
2935else
2936 if test -n "$STRIP"; then
2937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956STRIP=$ac_cv_prog_STRIP
2957if test -n "$STRIP"; then
2958 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2959$as_echo "$STRIP" >&6; }
2960else
2961 { $as_echo "$as_me:$LINENO: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966fi
2967if test -z "$ac_cv_prog_STRIP"; then
2968 ac_ct_STRIP=$STRIP
2969 # Extract the first word of "strip", so it can be a program name with args.
2970set dummy strip; ac_word=$2
2971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2975else
2976 if test -n "$ac_ct_STRIP"; then
2977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_STRIP="strip"
2987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997if test -n "$ac_ct_STRIP"; then
2998 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2999$as_echo "$ac_ct_STRIP" >&6; }
3000else
3001 { $as_echo "$as_me:$LINENO: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005 if test "x$ac_ct_STRIP" = x; then
3006 STRIP=":"
3007 else
3008 case $cross_compiling:$ac_tool_warned in
3009yes:)
3010{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014 STRIP=$ac_ct_STRIP
3015 fi
3016else
3017 STRIP="$ac_cv_prog_STRIP"
3018fi
3019
3020fi
3021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3022
3023{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3025if test -z "$MKDIR_P"; then
3026 if test "${ac_cv_path_mkdir+set}" = set; then
3027 $as_echo_n "(cached) " >&6
3028else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in mkdir gmkdir; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3037 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3038 'mkdir (GNU coreutils) '* | \
3039 'mkdir (coreutils) '* | \
3040 'mkdir (fileutils) '4.1*)
3041 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3042 break 3;;
3043 esac
3044 done
3045 done
3046done
3047IFS=$as_save_IFS
3048
3049fi
3050
3051 if test "${ac_cv_path_mkdir+set}" = set; then
3052 MKDIR_P="$ac_cv_path_mkdir -p"
3053 else
3054 # As a last resort, use the slow shell script. Don't cache a
3055 # value for MKDIR_P within a source directory, because that will
3056 # break other packages using the cache if that directory is
3057 # removed, or if the value is a relative name.
3058 test -d ./--version && rmdir ./--version
3059 MKDIR_P="$ac_install_sh -d"
3060 fi
3061fi
3062{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3063$as_echo "$MKDIR_P" >&6; }
3064
3065mkdir_p="$MKDIR_P"
3066case $mkdir_p in
3067 [\\/$]* | ?:[\\/]*) ;;
3068 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3069esac
3070
3071for ac_prog in gawk mawk nawk awk
3072do
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074set dummy $ac_prog; ac_word=$2
3075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if test "${ac_cv_prog_AWK+set}" = set; then
3078 $as_echo_n "(cached) " >&6
3079else
3080 if test -n "$AWK"; then
3081 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_AWK="$ac_prog"
3091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094done
3095done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100AWK=$ac_cv_prog_AWK
3101if test -n "$AWK"; then
3102 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3103$as_echo "$AWK" >&6; }
3104else
3105 { $as_echo "$as_me:$LINENO: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110 test -n "$AWK" && break
3111done
3112
3113{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3114$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3115set x ${MAKE-make}
3116ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3117if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3118 $as_echo_n "(cached) " >&6
3119else
3120 cat >conftest.make <<\_ACEOF
3121SHELL = /bin/sh
3122all:
3123 @echo '@@@%%%=$(MAKE)=@@@%%%'
3124_ACEOF
3125# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3126case `${MAKE-make} -f conftest.make 2>/dev/null` in
3127 *@@@%%%=?*=@@@%%%*)
3128 eval ac_cv_prog_make_${ac_make}_set=yes;;
3129 *)
3130 eval ac_cv_prog_make_${ac_make}_set=no;;
3131esac
3132rm -f conftest.make
3133fi
3134if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3135 { $as_echo "$as_me:$LINENO: result: yes" >&5
3136$as_echo "yes" >&6; }
3137 SET_MAKE=
3138else
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140$as_echo "no" >&6; }
3141 SET_MAKE="MAKE=${MAKE-make}"
3142fi
3143
3144rm -rf .tst 2>/dev/null
3145mkdir .tst 2>/dev/null
3146if test -d .tst; then
3147 am__leading_dot=.
3148else
3149 am__leading_dot=_
3150fi
3151rmdir .tst 2>/dev/null
3152
3153if test "`cd $srcdir && pwd`" != "`pwd`"; then
3154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3155 # is not polluted with repeated "-I."
3156 am__isrc=' -I$(srcdir)'
3157 # test to see if srcdir already configured
3158 if test -f $srcdir/config.status; then
3159 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3160$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163fi
3164
3165# test whether we have cygpath
3166if test -z "$CYGPATH_W"; then
3167 if (cygpath --version) >/dev/null 2>/dev/null; then
3168 CYGPATH_W='cygpath -w'
3169 else
3170 CYGPATH_W=echo
3171 fi
3172fi
3173
3174
3175# Define the identity of the package.
3176 PACKAGE=$PACKAGE_NAME
3177 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3178
3179
3180# Some tools Automake needs.
3181
3182ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3183
3184
3185AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3186
3187
3188AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3189
3190
3191AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3192
3193
3194MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3195
3196# We need awk for the "check" target. The system "awk" is bad on
3197# some platforms.
3198# Always define AMTAR for backward compatibility.
3199
3200AMTAR=${AMTAR-"${am_missing_run}tar"}
3201
3202am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3203
3204
3205
3206
3207
3208
3209# Enable support for silent build rules
3210# Check whether --enable-silent-rules was given.
3211if test "${enable_silent_rules+set}" = set; then
3212 enableval=$enable_silent_rules;
3213fi
3214
3215case $enable_silent_rules in
3216yes) AM_DEFAULT_VERBOSITY=0;;
3217no) AM_DEFAULT_VERBOSITY=1;;
3218*) AM_DEFAULT_VERBOSITY=0;;
3219esac
3220AM_BACKSLASH='\'
3221
3222
3223MAGICK_LIB_VERSION="0x"
3224if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3225 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3226fi
3227MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3228if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3229 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3230fi
3231MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3232if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3233 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3234fi
3235MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3236
3237
3238# Definition used to define MagickLibVersionText in version.h
3239MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3240
3241
3242# Definition used to define MagickLibVersionNumber in version.h
3243MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3244
3245
3246# Regenerate config.status if ChangeLog or version.sh is updated.
3247CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3248
3249
3250PERLMAINCC=$CC
3251
3252MAGICK_CFLAGS=''
3253MAGICK_CPPFLAGS=$CPPFLAGS_USER
3254MAGICK_PCFLAGS=$CPPFLAGS_USER
3255MAGICK_LDFLAGS=''
3256MAGICK_LIBS=''
3257
3258#
3259# Evaluate shell variable equivalents to Makefile directory variables
3260#
3261if test "x$prefix" = xNONE; then
3262 prefix=$ac_default_prefix
3263fi
3264# Let make expand exec_prefix.
3265if test "x$exec_prefix" = xNONE; then
3266 exec_prefix='${prefix}'
3267fi
3268
3269#
3270eval "eval PREFIX_DIR=${prefix}"
3271
3272eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3273
3274eval "eval BIN_DIR=$bindir"
3275
3276eval "eval SBIN_DIR=$sbindir"
3277
3278eval "eval LIBEXEC_DIR=$libexecdir"
3279
3280eval "eval DATA_DIR=$datadir"
3281
3282eval "eval SYSCONF_DIR=$sysconfdir"
3283
3284eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3285
3286eval "eval LOCALSTATE_DIR=$localstatedir"
3287
3288eval "eval LIB_DIR=$libdir"
3289
3290eval "eval INCLUDE_DIR=$includedir"
3291
3292eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3293
3294eval "eval INFO_DIR=$infodir"
3295
3296eval "eval MAN_DIR=$mandir"
3297
3298
3299# Get full paths to source and build directories
3300srcdirfull="`cd $srcdir && pwd`"
3301builddir="`pwd`"
3302
3303#
3304# Compute variables useful for running uninstalled software.
3305#
3306MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3307MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3308MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3309MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3310DIRSEP=':'
3311case "${build_os}" in
3312 mingw* )
3313 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3314 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3315 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3316 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3317 DIRSEP=';'
3318 ;;
3319esac
3320case "${host_os}" in
3321 mingw* )
3322 DIRSEP=';'
3323 ;;
3324esac
3325
3326
3327
3328
3329
3330
3331# Check for programs
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if test "${ac_cv_prog_CC+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:$LINENO: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375fi
3376if test -z "$ac_cv_prog_CC"; then
3377 ac_ct_CC=$CC
3378 # Extract the first word of "gcc", so it can be a program name with args.
3379set dummy gcc; ac_word=$2
3380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CC="gcc"
3396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399done
3400done
3401IFS=$as_save_IFS
3402
3403fi
3404fi
3405ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408$as_echo "$ac_ct_CC" >&6; }
3409else
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3411$as_echo "no" >&6; }
3412fi
3413
3414 if test "x$ac_ct_CC" = x; then
3415 CC=""
3416 else
3417 case $cross_compiling:$ac_tool_warned in
3418yes:)
3419{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421ac_tool_warned=yes ;;
3422esac
3423 CC=$ac_ct_CC
3424 fi
3425else
3426 CC="$ac_cv_prog_CC"
3427fi
3428
3429if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3432set dummy ${ac_tool_prefix}cc; ac_word=$2
3433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
3435if test "${ac_cv_prog_CC+set}" = set; then
3436 $as_echo_n "(cached) " >&6
3437else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}cc"
3449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452done
3453done
3454IFS=$as_save_IFS
3455
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463 { $as_echo "$as_me:$LINENO: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468 fi
3469fi
3470if test -z "$CC"; then
3471 # Extract the first word of "cc", so it can be a program name with args.
3472set dummy cc; ac_word=$2
3473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474$as_echo_n "checking for $ac_word... " >&6; }
3475if test "${ac_cv_prog_CC+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3477else
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480else
3481 ac_prog_rejected=no
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490 ac_prog_rejected=yes
3491 continue
3492 fi
3493 ac_cv_prog_CC="cc"
3494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497done
3498done
3499IFS=$as_save_IFS
3500
3501if test $ac_prog_rejected = yes; then
3502 # We found a bogon in the path, so make sure we never use it.
3503 set dummy $ac_cv_prog_CC
3504 shift
3505 if test $# != 0; then
3506 # We chose a different compiler from the bogus one.
3507 # However, it has the same basename, so the bogon will be chosen
3508 # first if we set CC to just the basename; use the full file name.
3509 shift
3510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511 fi
3512fi
3513fi
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3518$as_echo "$CC" >&6; }
3519else
3520 { $as_echo "$as_me:$LINENO: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525fi
3526if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog in cl.exe
3529 do
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if test "${ac_cv_prog_CC+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3536else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3560$as_echo "$CC" >&6; }
3561else
3562 { $as_echo "$as_me:$LINENO: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567 test -n "$CC" && break
3568 done
3569fi
3570if test -z "$CC"; then
3571 ac_ct_CC=$CC
3572 for ac_prog in cl.exe
3573do
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575set dummy $ac_prog; ac_word=$2
3576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579 $as_echo_n "(cached) " >&6
3580else
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 ac_cv_prog_ac_ct_CC="$ac_prog"
3592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595done
3596done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602if test -n "$ac_ct_CC"; then
3603 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604$as_echo "$ac_ct_CC" >&6; }
3605else
3606 { $as_echo "$as_me:$LINENO: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611 test -n "$ac_ct_CC" && break
3612done
3613
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618yes:)
3619{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621ac_tool_warned=yes ;;
3622esac
3623 CC=$ac_ct_CC
3624 fi
3625fi
3626
3627fi
3628
3629
3630test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3633See \`config.log' for more details." >&5
3634$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }; }
3637
3638# Provide some information about the compiler.
3639$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3640set X $ac_compile
3641ac_compiler=$2
3642{ (ac_try="$ac_compiler --version >&5"
3643case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
3647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648$as_echo "$ac_try_echo") >&5
3649 (eval "$ac_compiler --version >&5") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }
3653{ (ac_try="$ac_compiler -v >&5"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659$as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compiler -v >&5") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }
3664{ (ac_try="$ac_compiler -V >&5"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670$as_echo "$ac_try_echo") >&5
3671 (eval "$ac_compiler -V >&5") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }
3675
3676cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691ac_clean_files_save=$ac_clean_files
3692ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693# Try to create an executable without -o first, disregard a.out.
3694# It will help us diagnose broken compilers, and finding out an intuition
3695# of exeext.
3696{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3697$as_echo_n "checking for C compiler default output file name... " >&6; }
3698ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700# The possible output files:
3701ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703ac_rmfiles=
3704for ac_file in $ac_files
3705do
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709 esac
3710done
3711rm -f $ac_rmfiles
3712
3713if { (ac_try="$ac_link_default"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719$as_echo "$ac_try_echo") >&5
3720 (eval "$ac_link_default") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726# in a Makefile. We should not override ac_cv_exeext if it was cached,
3727# so that the user can short-circuit this test for compilers unknown to
3728# Autoconf.
3729for ac_file in $ac_files ''
3730do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753done
3754test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756else
3757 ac_file=''
3758fi
3759
3760{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3761$as_echo "$ac_file" >&6; }
3762if test -z "$ac_file"; then
3763 $as_echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3769See \`config.log' for more details." >&5
3770$as_echo "$as_me: error: C compiler cannot create executables
3771See \`config.log' for more details." >&2;}
3772 { (exit 77); exit 77; }; }; }
3773fi
3774
3775ac_exeext=$ac_cv_exeext
3776
3777# Check that the compiler produces executables we can run. If not, either
3778# the compiler is broken, or we cross compile.
3779{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3780$as_echo_n "checking whether the C compiler works... " >&6; }
3781# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3782# If not cross compiling, check that we can run a simple program.
3783if test "$cross_compiling" != yes; then
3784 if { ac_try='./$ac_file'
3785 { (case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3790$as_echo "$ac_try_echo") >&5
3791 (eval "$ac_try") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 cross_compiling=no
3796 else
3797 if test "$cross_compiling" = maybe; then
3798 cross_compiling=yes
3799 else
3800 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3803If you meant to cross compile, use \`--host'.
3804See \`config.log' for more details." >&5
3805$as_echo "$as_me: error: cannot run C compiled programs.
3806If you meant to cross compile, use \`--host'.
3807See \`config.log' for more details." >&2;}
3808 { (exit 1); exit 1; }; }; }
3809 fi
3810 fi
3811fi
3812{ $as_echo "$as_me:$LINENO: result: yes" >&5
3813$as_echo "yes" >&6; }
3814
3815rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3816ac_clean_files=$ac_clean_files_save
3817# Check that the compiler produces executables we can run. If not, either
3818# the compiler is broken, or we cross compile.
3819{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3820$as_echo_n "checking whether we are cross compiling... " >&6; }
3821{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3822$as_echo "$cross_compiling" >&6; }
3823
3824{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3825$as_echo_n "checking for suffix of executables... " >&6; }
3826if { (ac_try="$ac_link"
3827case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832$as_echo "$ac_try_echo") >&5
3833 (eval "$ac_link") 2>&5
3834 ac_status=$?
3835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3839# work properly (i.e., refer to `conftest.exe'), while it won't with
3840# `rm'.
3841for ac_file in conftest.exe conftest conftest.*; do
3842 test -f "$ac_file" || continue
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 break;;
3847 * ) break;;
3848 esac
3849done
3850else
3851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3854See \`config.log' for more details." >&5
3855$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3856See \`config.log' for more details." >&2;}
3857 { (exit 1); exit 1; }; }; }
3858fi
3859
3860rm -f conftest$ac_cv_exeext
3861{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3862$as_echo "$ac_cv_exeext" >&6; }
3863
3864rm -f conftest.$ac_ext
3865EXEEXT=$ac_cv_exeext
3866ac_exeext=$EXEEXT
3867{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3868$as_echo_n "checking for suffix of object files... " >&6; }
3869if test "${ac_cv_objext+set}" = set; then
3870 $as_echo_n "(cached) " >&6
3871else
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.o conftest.obj
3888if { (ac_try="$ac_compile"
3889case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894$as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; then
3899 for ac_file in conftest.o conftest.obj conftest.*; do
3900 test -f "$ac_file" || continue;
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 break;;
3905 esac
3906done
3907else
3908 $as_echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3914See \`config.log' for more details." >&5
3915$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3916See \`config.log' for more details." >&2;}
3917 { (exit 1); exit 1; }; }; }
3918fi
3919
3920rm -f conftest.$ac_cv_objext conftest.$ac_ext
3921fi
3922{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3923$as_echo "$ac_cv_objext" >&6; }
3924OBJEXT=$ac_cv_objext
3925ac_objext=$OBJEXT
3926{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3927$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3928if test "${ac_cv_c_compiler_gnu+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3930else
3931 cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h. */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h. */
3937
3938int
3939main ()
3940{
3941#ifndef __GNUC__
3942 choke me
3943#endif
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (ac_try="$ac_compile"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956$as_echo "$ac_try_echo") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3967 ac_compiler_gnu=yes
3968else
3969 $as_echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_compiler_gnu=no
3973fi
3974
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977
3978fi
3979{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3980$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981if test $ac_compiler_gnu = yes; then
3982 GCC=yes
3983else
3984 GCC=
3985fi
3986ac_test_CFLAGS=${CFLAGS+set}
3987ac_save_CFLAGS=$CFLAGS
3988{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3989$as_echo_n "checking whether $CC accepts -g... " >&6; }
3990if test "${ac_cv_prog_cc_g+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992else
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3995 ac_cv_prog_cc_g=no
3996 CFLAGS="-g"
3997 cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
4003
4004int
4005main ()
4006{
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (ac_try="$ac_compile"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019$as_echo "$ac_try_echo") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 ac_cv_prog_cc_g=yes
4031else
4032 $as_echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 CFLAGS=""
4036 cat >conftest.$ac_ext <<_ACEOF
4037/* confdefs.h. */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058$as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 :
4070else
4071 $as_echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g"
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext
4092if { (ac_try="$ac_compile"
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098$as_echo "$ac_try_echo") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4109 ac_cv_prog_cc_g=yes
4110else
4111 $as_echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114
4115fi
4116
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118fi
4119
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122
4123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125fi
4126{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4127$as_echo "$ac_cv_prog_cc_g" >&6; }
4128if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4132 CFLAGS="-g -O2"
4133 else
4134 CFLAGS="-g"
4135 fi
4136else
4137 if test "$GCC" = yes; then
4138 CFLAGS="-O2"
4139 else
4140 CFLAGS=
4141 fi
4142fi
4143{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4144$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145if test "${ac_cv_prog_cc_c89+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4147else
4148 ac_cv_prog_cc_c89=no
4149ac_save_CC=$CC
4150cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156#include <stdarg.h>
4157#include <stdio.h>
4158#include <sys/types.h>
4159#include <sys/stat.h>
4160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161struct buf { int x; };
4162FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163static char *e (p, i)
4164 char **p;
4165 int i;
4166{
4167 return p[i];
4168}
4169static char *f (char * (*g) (char **, int), char **p, ...)
4170{
4171 char *s;
4172 va_list v;
4173 va_start (v,p);
4174 s = g (p, va_arg (v,int));
4175 va_end (v);
4176 return s;
4177}
4178
4179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187
4188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4190#define FOO(x) 'x'
4191int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192
4193int test (int i, double x);
4194struct s1 {int (*f) (int a);};
4195struct s2 {int (*f) (double a);};
4196int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197int argc;
4198char **argv;
4199int
4200main ()
4201{
4202return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209do
4210 CC="$ac_save_CC $ac_arg"
4211 rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218$as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_prog_cc_c89=$ac_arg
4230else
4231 $as_echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234
4235fi
4236
4237rm -f core conftest.err conftest.$ac_objext
4238 test "x$ac_cv_prog_cc_c89" != "xno" && break
4239done
4240rm -f conftest.$ac_ext
4241CC=$ac_save_CC
4242
4243fi
4244# AC_CACHE_VAL
4245case "x$ac_cv_prog_cc_c89" in
4246 x)
4247 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4248$as_echo "none needed" >&6; } ;;
4249 xno)
4250 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4251$as_echo "unsupported" >&6; } ;;
4252 *)
4253 CC="$CC $ac_cv_prog_cc_c89"
4254 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4255$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4256esac
4257
4258
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264DEPDIR="${am__leading_dot}deps"
4265
4266ac_config_commands="$ac_config_commands depfiles"
4267
4268
4269am_make=${MAKE-make}
4270cat > confinc << 'END'
4271am__doit:
4272 @echo this is the am__doit target
4273.PHONY: am__doit
4274END
4275# If we don't find an include directive, just comment out the code.
4276{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4277$as_echo_n "checking for style of include used by $am_make... " >&6; }
4278am__include="#"
4279am__quote=
4280_am_result=none
4281# First try GNU make style include.
4282echo "include confinc" > confmf
4283# Ignore all kinds of additional output from `make'.
4284case `$am_make -s -f confmf 2> /dev/null` in #(
4285*the\ am__doit\ target*)
4286 am__include=include
4287 am__quote=
4288 _am_result=GNU
4289 ;;
4290esac
4291# Now try BSD make style include.
4292if test "$am__include" = "#"; then
4293 echo '.include "confinc"' > confmf
4294 case `$am_make -s -f confmf 2> /dev/null` in #(
4295 *the\ am__doit\ target*)
4296 am__include=.include
4297 am__quote="\""
4298 _am_result=BSD
4299 ;;
4300 esac
4301fi
4302
4303
4304{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4305$as_echo "$_am_result" >&6; }
4306rm -f confinc confmf
4307
4308# Check whether --enable-dependency-tracking was given.
4309if test "${enable_dependency_tracking+set}" = set; then
4310 enableval=$enable_dependency_tracking;
4311fi
4312
4313if test "x$enable_dependency_tracking" != xno; then
4314 am_depcomp="$ac_aux_dir/depcomp"
4315 AMDEPBACKSLASH='\'
4316fi
4317 if test "x$enable_dependency_tracking" != xno; then
4318 AMDEP_TRUE=
4319 AMDEP_FALSE='#'
4320else
4321 AMDEP_TRUE='#'
4322 AMDEP_FALSE=
4323fi
4324
4325
4326
4327depcc="$CC" am_compiler_list=
4328
4329{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4330$as_echo_n "checking dependency style of $depcc... " >&6; }
4331if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4333else
4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335 # We make a subdir and do the tests there. Otherwise we can end up
4336 # making bogus files that we don't know about and never remove. For
4337 # instance it was reported that on HP-UX the gcc test will end up
4338 # making a dummy file named `D' -- because `-MD' means `put the output
4339 # in D'.
4340 mkdir conftest.dir
4341 # Copy depcomp to subdir because otherwise we won't find it if we're
4342 # using a relative directory.
4343 cp "$am_depcomp" conftest.dir
4344 cd conftest.dir
4345 # We will build objects and dependencies in a subdirectory because
4346 # it helps to detect inapplicable dependency modes. For instance
4347 # both Tru64's cc and ICC support -MD to output dependencies as a
4348 # side effect of compilation, but ICC will put the dependencies in
4349 # the current directory while Tru64 will put them in the object
4350 # directory.
4351 mkdir sub
4352
4353 am_cv_CC_dependencies_compiler_type=none
4354 if test "$am_compiler_list" = ""; then
4355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 fi
4357 am__universal=false
4358 case " $depcc " in #(
4359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4360 esac
4361
4362 for depmode in $am_compiler_list; do
4363 # Setup a source with many dependencies, because some compilers
4364 # like to wrap large dependency lists on column 80 (with \), and
4365 # we should not choose a depcomp mode which is confused by this.
4366 #
4367 # We need to recreate these files for each test, as the compiler may
4368 # overwrite some of them when testing with obscure command lines.
4369 # This happens at least with the AIX C compiler.
4370 : > sub/conftest.c
4371 for i in 1 2 3 4 5 6; do
4372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374 # Solaris 8's {/usr,}/bin/sh.
4375 touch sub/conftst$i.h
4376 done
4377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378
4379 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4380 # mode. It turns out that the SunPro C++ compiler does not properly
4381 # handle `-M -o', and we need to detect this. Also, some Intel
4382 # versions had trouble with output in subdirs
4383 am__obj=sub/conftest.${OBJEXT-o}
4384 am__minus_obj="-o $am__obj"
4385 case $depmode in
4386 gcc)
4387 # This depmode causes a compiler race in universal mode.
4388 test "$am__universal" = false || continue
4389 ;;
4390 nosideeffect)
4391 # after this tag, mechanisms are not by side-effect, so they'll
4392 # only be used when explicitly requested
4393 if test "x$enable_dependency_tracking" = xyes; then
4394 continue
4395 else
4396 break
4397 fi
4398 ;;
4399 msvisualcpp | msvcmsys)
4400 # This compiler won't grok `-c -o', but also, the minuso test has
4401 # not run yet. These depmodes are late enough in the game, and
4402 # so weak that their functioning should not be impacted.
4403 am__obj=conftest.${OBJEXT-o}
4404 am__minus_obj=
4405 ;;
4406 none) break ;;
4407 esac
4408 if depmode=$depmode \
4409 source=sub/conftest.c object=$am__obj \
4410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4412 >/dev/null 2>conftest.err &&
4413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4427 break
4428 fi
4429 fi
4430 done
4431
4432 cd ..
4433 rm -rf conftest.dir
4434else
4435 am_cv_CC_dependencies_compiler_type=none
4436fi
4437
4438fi
4439{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442
4443 if
4444 test "x$enable_dependency_tracking" != xno \
4445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4446 am__fastdepCC_TRUE=
4447 am__fastdepCC_FALSE='#'
4448else
4449 am__fastdepCC_TRUE='#'
4450 am__fastdepCC_FALSE=
4451fi
4452
4453
4454 case $ac_cv_prog_cc_stdc in
4455 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4456 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4457$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4458if test "${ac_cv_prog_cc_c99+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4460else
4461 ac_cv_prog_cc_c99=no
4462ac_save_CC=$CC
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <stdarg.h>
4470#include <stdbool.h>
4471#include <stdlib.h>
4472#include <wchar.h>
4473#include <stdio.h>
4474
4475// Check varargs macros. These examples are taken from C99 6.10.3.5.
4476#define debug(...) fprintf (stderr, __VA_ARGS__)
4477#define showlist(...) puts (#__VA_ARGS__)
4478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4479static void
4480test_varargs_macros (void)
4481{
4482 int x = 1234;
4483 int y = 5678;
4484 debug ("Flag");
4485 debug ("X = %d\n", x);
4486 showlist (The first, second, and third items.);
4487 report (x>y, "x is %d but y is %d", x, y);
4488}
4489
4490// Check long long types.
4491#define BIG64 18446744073709551615ull
4492#define BIG32 4294967295ul
4493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4494#if !BIG_OK
4495 your preprocessor is broken;
4496#endif
4497#if BIG_OK
4498#else
4499 your preprocessor is broken;
4500#endif
4501static long long int bignum = -9223372036854775807LL;
4502static unsigned long long int ubignum = BIG64;
4503
4504struct incomplete_array
4505{
4506 int datasize;
4507 double data[];
4508};
4509
4510struct named_init {
4511 int number;
4512 const wchar_t *name;
4513 double average;
4514};
4515
4516typedef const char *ccp;
4517
4518static inline int
4519test_restrict (ccp restrict text)
4520{
4521 // See if C++-style comments work.
4522 // Iterate through items via the restricted pointer.
4523 // Also check for declarations in for loops.
4524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4525 continue;
4526 return 0;
4527}
4528
4529// Check varargs and va_copy.
4530static void
4531test_varargs (const char *format, ...)
4532{
4533 va_list args;
4534 va_start (args, format);
4535 va_list args_copy;
4536 va_copy (args_copy, args);
4537
4538 const char *str;
4539 int number;
4540 float fnumber;
4541
4542 while (*format)
4543 {
4544 switch (*format++)
4545 {
4546 case 's': // string
4547 str = va_arg (args_copy, const char *);
4548 break;
4549 case 'd': // int
4550 number = va_arg (args_copy, int);
4551 break;
4552 case 'f': // float
4553 fnumber = va_arg (args_copy, double);
4554 break;
4555 default:
4556 break;
4557 }
4558 }
4559 va_end (args_copy);
4560 va_end (args);
4561}
4562
4563int
4564main ()
4565{
4566
4567 // Check bool.
4568 _Bool success = false;
4569
4570 // Check restrict.
4571 if (test_restrict ("String literal") == 0)
4572 success = true;
4573 char *restrict newvar = "Another string";
4574
4575 // Check varargs.
4576 test_varargs ("s, d' f .", "string", 65, 34.234);
4577 test_varargs_macros ();
4578
4579 // Check flexible array members.
4580 struct incomplete_array *ia =
4581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4582 ia->datasize = 10;
4583 for (int i = 0; i < ia->datasize; ++i)
4584 ia->data[i] = i * 1.234;
4585
4586 // Check named initializers.
4587 struct named_init ni = {
4588 .number = 34,
4589 .name = L"Test wide string",
4590 .average = 543.34343,
4591 };
4592
4593 ni.number = 58;
4594
4595 int dynamic_array[ni.number];
4596 dynamic_array[ni.number - 1] = 543;
4597
4598 // work around unused variable warnings
4599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4600 || dynamic_array[ni.number - 1] != 543);
4601
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4607do
4608 CC="$ac_save_CC $ac_arg"
4609 rm -f conftest.$ac_objext
4610if { (ac_try="$ac_compile"
4611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
4615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616$as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 ac_cv_prog_cc_c99=$ac_arg
4628else
4629 $as_echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632
4633fi
4634
4635rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c99" != "xno" && break
4637done
4638rm -f conftest.$ac_ext
4639CC=$ac_save_CC
4640
4641fi
4642# AC_CACHE_VAL
4643case "x$ac_cv_prog_cc_c99" in
4644 x)
4645 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4646$as_echo "none needed" >&6; } ;;
4647 xno)
4648 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4649$as_echo "unsupported" >&6; } ;;
4650 *)
4651 CC="$CC $ac_cv_prog_cc_c99"
4652 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4653$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4654esac
4655if test "x$ac_cv_prog_cc_c99" != xno; then
4656 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4657else
4658 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660if test "${ac_cv_prog_cc_c89+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4662else
4663 ac_cv_prog_cc_c89=no
4664ac_save_CC=$CC
4665cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h. */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h. */
4671#include <stdarg.h>
4672#include <stdio.h>
4673#include <sys/types.h>
4674#include <sys/stat.h>
4675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4676struct buf { int x; };
4677FILE * (*rcsopen) (struct buf *, struct stat *, int);
4678static char *e (p, i)
4679 char **p;
4680 int i;
4681{
4682 return p[i];
4683}
4684static char *f (char * (*g) (char **, int), char **p, ...)
4685{
4686 char *s;
4687 va_list v;
4688 va_start (v,p);
4689 s = g (p, va_arg (v,int));
4690 va_end (v);
4691 return s;
4692}
4693
4694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4695 function prototypes and stuff, but not '\xHH' hex character constants.
4696 These don't provoke an error unfortunately, instead are silently treated
4697 as 'x'. The following induces an error, until -std is added to get
4698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4699 array size at least. It's necessary to write '\x00'==0 to get something
4700 that's true only with -std. */
4701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4702
4703/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4704 inside strings and character constants. */
4705#define FOO(x) 'x'
4706int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4707
4708int test (int i, double x);
4709struct s1 {int (*f) (int a);};
4710struct s2 {int (*f) (double a);};
4711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4712int argc;
4713char **argv;
4714int
4715main ()
4716{
4717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4724do
4725 CC="$ac_save_CC $ac_arg"
4726 rm -f conftest.$ac_objext
4727if { (ac_try="$ac_compile"
4728case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731esac
4732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733$as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
4744 ac_cv_prog_cc_c89=$ac_arg
4745else
4746 $as_echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749
4750fi
4751
4752rm -f core conftest.err conftest.$ac_objext
4753 test "x$ac_cv_prog_cc_c89" != "xno" && break
4754done
4755rm -f conftest.$ac_ext
4756CC=$ac_save_CC
4757
4758fi
4759# AC_CACHE_VAL
4760case "x$ac_cv_prog_cc_c89" in
4761 x)
4762 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4763$as_echo "none needed" >&6; } ;;
4764 xno)
4765 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4766$as_echo "unsupported" >&6; } ;;
4767 *)
4768 CC="$CC $ac_cv_prog_cc_c89"
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4770$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4771esac
4772if test "x$ac_cv_prog_cc_c89" != xno; then
4773 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4774else
4775 ac_cv_prog_cc_stdc=no
4776fi
4777
4778
4779fi
4780
4781 ;;
4782esac
4783 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4784$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4785 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4787fi
4788
4789 case $ac_cv_prog_cc_stdc in
4790 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4791$as_echo "unsupported" >&6; } ;;
4792 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4793$as_echo "none needed" >&6; } ;;
4794 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4795$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4796esac
4797
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4805$as_echo_n "checking how to run the C preprocessor... " >&6; }
4806# On Suns, sometimes $CPP names a directory.
4807if test -n "$CPP" && test -d "$CPP"; then
4808 CPP=
4809fi
4810if test -z "$CPP"; then
4811 if test "${ac_cv_prog_CPP+set}" = set; then
4812 $as_echo_n "(cached) " >&6
4813else
4814 # Double quotes because CPP needs to be expanded
4815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4816 do
4817 ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.$ac_ext <<_ACEOF
4827/* confdefs.h. */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h. */
4832#ifdef __STDC__
4833# include <limits.h>
4834#else
4835# include <assert.h>
4836#endif
4837 Syntax error
4838_ACEOF
4839if { (ac_try="$ac_cpp conftest.$ac_ext"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845$as_echo "$ac_try_echo") >&5
4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null && {
4853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 }; then
4856 :
4857else
4858 $as_echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 # Broken: fails on valid input.
4862continue
4863fi
4864
4865rm -f conftest.err conftest.$ac_ext
4866
4867 # OK, works on sane cases. Now check whether nonexistent headers
4868 # can be detected and how.
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include <ac_nonexistent.h>
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883$as_echo "$ac_try_echo") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 }; then
4894 # Broken: success on invalid input.
4895continue
4896else
4897 $as_echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 # Passes both tests.
4901ac_preproc_ok=:
4902break
4903fi
4904
4905rm -f conftest.err conftest.$ac_ext
4906
4907done
4908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909rm -f conftest.err conftest.$ac_ext
4910if $ac_preproc_ok; then
4911 break
4912fi
4913
4914 done
4915 ac_cv_prog_CPP=$CPP
4916
4917fi
4918 CPP=$ac_cv_prog_CPP
4919else
4920 ac_cv_prog_CPP=$CPP
4921fi
4922{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4923$as_echo "$CPP" >&6; }
4924ac_preproc_ok=false
4925for ac_c_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944 Syntax error
4945_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4952$as_echo "$ac_try_echo") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 }; then
4963 :
4964else
4965 $as_echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 # Broken: fails on valid input.
4969continue
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982#include <ac_nonexistent.h>
4983_ACEOF
4984if { (ac_try="$ac_cpp conftest.$ac_ext"
4985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
4989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990$as_echo "$ac_try_echo") >&5
4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
5001 # Broken: success on invalid input.
5002continue
5003else
5004 $as_echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 # Passes both tests.
5008ac_preproc_ok=:
5009break
5010fi
5011
5012rm -f conftest.err conftest.$ac_ext
5013
5014done
5015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016rm -f conftest.err conftest.$ac_ext
5017if $ac_preproc_ok; then
5018 :
5019else
5020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5023See \`config.log' for more details." >&5
5024$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5025See \`config.log' for more details." >&2;}
5026 { (exit 1); exit 1; }; }; }
5027fi
5028
5029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5036$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5037if test "${ac_cv_path_SED+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039else
5040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5041 for ac_i in 1 2 3 4 5 6 7; do
5042 ac_script="$ac_script$as_nl$ac_script"
5043 done
5044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5045 $as_unset ac_script || ac_script=
5046 if test -z "$SED"; then
5047 ac_path_SED_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in sed gsed; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5058# Check for GNU ac_path_SED and select it if it is found.
5059 # Check for GNU $ac_path_SED
5060case `"$ac_path_SED" --version 2>&1` in
5061*GNU*)
5062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5063*)
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5067 do
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo '' >> "conftest.nl"
5072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 ac_count=`expr $ac_count + 1`
5075 if test $ac_count -gt ${ac_path_SED_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_SED="$ac_path_SED"
5078 ac_path_SED_max=$ac_count
5079 fi
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084esac
5085
5086 $ac_path_SED_found && break 3
5087 done
5088 done
5089done
5090IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_SED"; then
5092 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5093$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5094 { (exit 1); exit 1; }; }
5095 fi
5096else
5097 ac_cv_path_SED=$SED
5098fi
5099
5100fi
5101{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5102$as_echo "$ac_cv_path_SED" >&6; }
5103 SED="$ac_cv_path_SED"
5104 rm -f conftest.sed
5105
5106test -z "$SED" && SED=sed
5107Xsed="$SED -e 1s/^X//"
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5120$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5121if test "${ac_cv_path_GREP+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5123else
5124 if test -z "$GREP"; then
5125 ac_path_GREP_found=false
5126 # Loop through the user's path and test for each of PROGNAME-LIST
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_prog in grep ggrep; do
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5135 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5136# Check for GNU ac_path_GREP and select it if it is found.
5137 # Check for GNU $ac_path_GREP
5138case `"$ac_path_GREP" --version 2>&1` in
5139*GNU*)
5140 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5141*)
5142 ac_count=0
5143 $as_echo_n 0123456789 >"conftest.in"
5144 while :
5145 do
5146 cat "conftest.in" "conftest.in" >"conftest.tmp"
5147 mv "conftest.tmp" "conftest.in"
5148 cp "conftest.in" "conftest.nl"
5149 $as_echo 'GREP' >> "conftest.nl"
5150 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152 ac_count=`expr $ac_count + 1`
5153 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5154 # Best one so far, save it but keep looking for a better one
5155 ac_cv_path_GREP="$ac_path_GREP"
5156 ac_path_GREP_max=$ac_count
5157 fi
5158 # 10*(2^10) chars as input seems more than enough
5159 test $ac_count -gt 10 && break
5160 done
5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5162esac
5163
5164 $ac_path_GREP_found && break 3
5165 done
5166 done
5167done
5168IFS=$as_save_IFS
5169 if test -z "$ac_cv_path_GREP"; then
5170 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5171$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5172 { (exit 1); exit 1; }; }
5173 fi
5174else
5175 ac_cv_path_GREP=$GREP
5176fi
5177
5178fi
5179{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5180$as_echo "$ac_cv_path_GREP" >&6; }
5181 GREP="$ac_cv_path_GREP"
5182
5183
5184{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5185$as_echo_n "checking for egrep... " >&6; }
5186if test "${ac_cv_path_EGREP+set}" = set; then
5187 $as_echo_n "(cached) " >&6
5188else
5189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5190 then ac_cv_path_EGREP="$GREP -E"
5191 else
5192 if test -z "$EGREP"; then
5193 ac_path_EGREP_found=false
5194 # Loop through the user's path and test for each of PROGNAME-LIST
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_prog in egrep; do
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5203 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5204# Check for GNU ac_path_EGREP and select it if it is found.
5205 # Check for GNU $ac_path_EGREP
5206case `"$ac_path_EGREP" --version 2>&1` in
5207*GNU*)
5208 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5209*)
5210 ac_count=0
5211 $as_echo_n 0123456789 >"conftest.in"
5212 while :
5213 do
5214 cat "conftest.in" "conftest.in" >"conftest.tmp"
5215 mv "conftest.tmp" "conftest.in"
5216 cp "conftest.in" "conftest.nl"
5217 $as_echo 'EGREP' >> "conftest.nl"
5218 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220 ac_count=`expr $ac_count + 1`
5221 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5222 # Best one so far, save it but keep looking for a better one
5223 ac_cv_path_EGREP="$ac_path_EGREP"
5224 ac_path_EGREP_max=$ac_count
5225 fi
5226 # 10*(2^10) chars as input seems more than enough
5227 test $ac_count -gt 10 && break
5228 done
5229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5230esac
5231
5232 $ac_path_EGREP_found && break 3
5233 done
5234 done
5235done
5236IFS=$as_save_IFS
5237 if test -z "$ac_cv_path_EGREP"; then
5238 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5239$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5240 { (exit 1); exit 1; }; }
5241 fi
5242else
5243 ac_cv_path_EGREP=$EGREP
5244fi
5245
5246 fi
5247fi
5248{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5249$as_echo "$ac_cv_path_EGREP" >&6; }
5250 EGREP="$ac_cv_path_EGREP"
5251
5252
5253{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5254$as_echo_n "checking for fgrep... " >&6; }
5255if test "${ac_cv_path_FGREP+set}" = set; then
5256 $as_echo_n "(cached) " >&6
5257else
5258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5259 then ac_cv_path_FGREP="$GREP -F"
5260 else
5261 if test -z "$FGREP"; then
5262 ac_path_FGREP_found=false
5263 # Loop through the user's path and test for each of PROGNAME-LIST
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_prog in fgrep; do
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5272 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5273# Check for GNU ac_path_FGREP and select it if it is found.
5274 # Check for GNU $ac_path_FGREP
5275case `"$ac_path_FGREP" --version 2>&1` in
5276*GNU*)
5277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5278*)
5279 ac_count=0
5280 $as_echo_n 0123456789 >"conftest.in"
5281 while :
5282 do
5283 cat "conftest.in" "conftest.in" >"conftest.tmp"
5284 mv "conftest.tmp" "conftest.in"
5285 cp "conftest.in" "conftest.nl"
5286 $as_echo 'FGREP' >> "conftest.nl"
5287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289 ac_count=`expr $ac_count + 1`
5290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5291 # Best one so far, save it but keep looking for a better one
5292 ac_cv_path_FGREP="$ac_path_FGREP"
5293 ac_path_FGREP_max=$ac_count
5294 fi
5295 # 10*(2^10) chars as input seems more than enough
5296 test $ac_count -gt 10 && break
5297 done
5298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301 $ac_path_FGREP_found && break 3
5302 done
5303 done
5304done
5305IFS=$as_save_IFS
5306 if test -z "$ac_cv_path_FGREP"; then
5307 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5308$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5309 { (exit 1); exit 1; }; }
5310 fi
5311else
5312 ac_cv_path_FGREP=$FGREP
5313fi
5314
5315 fi
5316fi
5317{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5318$as_echo "$ac_cv_path_FGREP" >&6; }
5319 FGREP="$ac_cv_path_FGREP"
5320
5321
5322test -z "$GREP" && GREP=grep
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342# Check whether --with-gnu-ld was given.
5343if test "${with_gnu_ld+set}" = set; then
5344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5345else
5346 with_gnu_ld=no
5347fi
5348
5349ac_prog=ld
5350if test "$GCC" = yes; then
5351 # Check if gcc -print-prog-name=ld gives a path.
5352 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5353$as_echo_n "checking for ld used by $CC... " >&6; }
5354 case $host in
5355 *-*-mingw*)
5356 # gcc leaves a trailing carriage return which upsets mingw
5357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5358 *)
5359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5360 esac
5361 case $ac_prog in
5362 # Accept absolute paths.
5363 [\\/]* | ?:[\\/]*)
5364 re_direlt='/[^/][^/]*/\.\./'
5365 # Canonicalize the pathname of ld
5366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5369 done
5370 test -z "$LD" && LD="$ac_prog"
5371 ;;
5372 "")
5373 # If it fails, then pretend we aren't using GCC.
5374 ac_prog=ld
5375 ;;
5376 *)
5377 # If it is relative, then search for the first ld in PATH.
5378 with_gnu_ld=unknown
5379 ;;
5380 esac
5381elif test "$with_gnu_ld" = yes; then
5382 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5383$as_echo_n "checking for GNU ld... " >&6; }
5384else
5385 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5386$as_echo_n "checking for non-GNU ld... " >&6; }
5387fi
5388if test "${lt_cv_path_LD+set}" = set; then
5389 $as_echo_n "(cached) " >&6
5390else
5391 if test -z "$LD"; then
5392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5393 for ac_dir in $PATH; do
5394 IFS="$lt_save_ifs"
5395 test -z "$ac_dir" && ac_dir=.
5396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5397 lt_cv_path_LD="$ac_dir/$ac_prog"
5398 # Check to see if the program is GNU ld. I'd rather use --version,
5399 # but apparently some variants of GNU ld only accept -v.
5400 # Break only if it was the GNU/non-GNU ld that we prefer.
5401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403 test "$with_gnu_ld" != no && break
5404 ;;
5405 *)
5406 test "$with_gnu_ld" != yes && break
5407 ;;
5408 esac
5409 fi
5410 done
5411 IFS="$lt_save_ifs"
5412else
5413 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5414fi
5415fi
5416
5417LD="$lt_cv_path_LD"
5418if test -n "$LD"; then
5419 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5420$as_echo "$LD" >&6; }
5421else
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5426$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5427 { (exit 1); exit 1; }; }
5428{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5429$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5430if test "${lt_cv_prog_gnu_ld+set}" = set; then
5431 $as_echo_n "(cached) " >&6
5432else
5433 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5434case `$LD -v 2>&1 </dev/null` in
5435*GNU* | *'with BFD'*)
5436 lt_cv_prog_gnu_ld=yes
5437 ;;
5438*)
5439 lt_cv_prog_gnu_ld=no
5440 ;;
5441esac
5442fi
5443{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5444$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5445with_gnu_ld=$lt_cv_prog_gnu_ld
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if test "${ac_cv_prog_RANLIB+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5462else
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483RANLIB=$ac_cv_prog_RANLIB
5484if test -n "$RANLIB"; then
5485 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5486$as_echo "$RANLIB" >&6; }
5487else
5488 { $as_echo "$as_me:$LINENO: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492
5493fi
5494if test -z "$ac_cv_prog_RANLIB"; then
5495 ac_ct_RANLIB=$RANLIB
5496 # Extract the first word of "ranlib", so it can be a program name with args.
5497set dummy ranlib; ac_word=$2
5498{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -n "$ac_ct_RANLIB"; then
5504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_RANLIB="ranlib"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5524if test -n "$ac_ct_RANLIB"; then
5525 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5526$as_echo "$ac_ct_RANLIB" >&6; }
5527else
5528 { $as_echo "$as_me:$LINENO: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532 if test "x$ac_ct_RANLIB" = x; then
5533 RANLIB=":"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541 RANLIB=$ac_ct_RANLIB
5542 fi
5543else
5544 RANLIB="$ac_cv_prog_RANLIB"
5545fi
5546
5547
5548if test "x$CC" != xcc; then
5549 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5550$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5551else
5552 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5553$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5554fi
5555set dummy $CC; ac_cc=`$as_echo "$2" |
5556 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5557if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5558 $as_echo_n "(cached) " >&6
5559else
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566
5567int
5568main ()
5569{
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575# Make sure it works both with $CC and with simple cc.
5576# We do the test twice because some compilers refuse to overwrite an
5577# existing .o file with -o, though they will create one.
5578ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5579rm -f conftest2.*
5580if { (case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585$as_echo "$ac_try_echo") >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595$as_echo "$ac_try_echo") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); };
5600then
5601 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602 if test "x$CC" != xcc; then
5603 # Test first that cc exists at all.
5604 if { ac_try='cc -c conftest.$ac_ext >&5'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608esac
5609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5610$as_echo "$ac_try_echo") >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5616 rm -f conftest2.*
5617 if { (case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622$as_echo "$ac_try_echo") >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632$as_echo "$ac_try_echo") >&5
5633 (eval "$ac_try") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); };
5637 then
5638 # cc works too.
5639 :
5640 else
5641 # cc exists but doesn't like -o.
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5643 fi
5644 fi
5645 fi
5646else
5647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5648fi
5649rm -f core conftest*
5650
5651fi
5652if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5653 { $as_echo "$as_me:$LINENO: result: yes" >&5
5654$as_echo "yes" >&6; }
5655else
5656 { $as_echo "$as_me:$LINENO: result: no" >&5
5657$as_echo "no" >&6; }
5658
5659cat >>confdefs.h <<\_ACEOF
5660#define NO_MINUS_C_MINUS_O 1
5661_ACEOF
5662
5663fi
5664
5665# FIXME: we rely on the cache variable name because
5666# there is no other way.
5667set dummy $CC
5668am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5669eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5670if test "$am_t" != yes; then
5671 # Losing compiler, so override with the script.
5672 # FIXME: It is wrong to rewrite CC.
5673 # But if we don't then we get into trouble of one sort or another.
5674 # A longer-term fix would be to have automake use am__CC in this case,
5675 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5676 CC="$am_aux_dir/compile $CC"
5677fi
5678
5679
5680# Find a good install program. We prefer a C program (faster),
5681# so one script is as good as another. But avoid the broken or
5682# incompatible versions:
5683# SysV /etc/install, /usr/sbin/install
5684# SunOS /usr/etc/install
5685# IRIX /sbin/install
5686# AIX /bin/install
5687# AmigaOS /C/install, which installs bootblocks on floppy discs
5688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5691# OS/2's system install, which has a completely different semantic
5692# ./install, which can be erroneously created by make from ./install.sh.
5693# Reject install programs that cannot install multiple files.
5694{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5695$as_echo_n "checking for a BSD-compatible install... " >&6; }
5696if test -z "$INSTALL"; then
5697if test "${ac_cv_path_install+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 # Account for people who put trailing slashes in PATH elements.
5706case $as_dir/ in
5707 ./ | .// | /cC/* | \
5708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5710 /usr/ucb/* ) ;;
5711 *)
5712 # OSF1 and SCO ODT 3.0 have their own names for install.
5713 # Don't use installbsd from OSF since it installs stuff as root
5714 # by default.
5715 for ac_prog in ginstall scoinst install; do
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5718 if test $ac_prog = install &&
5719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5720 # AIX install. It has an incompatible calling convention.
5721 :
5722 elif test $ac_prog = install &&
5723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5724 # program-specific install script used by HP pwplus--don't use.
5725 :
5726 else
5727 rm -rf conftest.one conftest.two conftest.dir
5728 echo one > conftest.one
5729 echo two > conftest.two
5730 mkdir conftest.dir
5731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5732 test -s conftest.one && test -s conftest.two &&
5733 test -s conftest.dir/conftest.one &&
5734 test -s conftest.dir/conftest.two
5735 then
5736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5737 break 3
5738 fi
5739 fi
5740 fi
5741 done
5742 done
5743 ;;
5744esac
5745
5746done
5747IFS=$as_save_IFS
5748
5749rm -rf conftest.one conftest.two conftest.dir
5750
5751fi
5752 if test "${ac_cv_path_install+set}" = set; then
5753 INSTALL=$ac_cv_path_install
5754 else
5755 # As a last resort, use the slow shell script. Don't cache a
5756 # value for INSTALL within a source directory, because that will
5757 # break other packages using the cache if that directory is
5758 # removed, or if the value is a relative name.
5759 INSTALL=$ac_install_sh
5760 fi
5761fi
5762{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5763$as_echo "$INSTALL" >&6; }
5764
5765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5766# It thinks the first close brace ends the variable substitution.
5767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5768
5769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5770
5771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5772
5773{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5774$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5775set x ${MAKE-make}
5776ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5777if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5778 $as_echo_n "(cached) " >&6
5779else
5780 cat >conftest.make <<\_ACEOF
5781SHELL = /bin/sh
5782all:
5783 @echo '@@@%%%=$(MAKE)=@@@%%%'
5784_ACEOF
5785# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5786case `${MAKE-make} -f conftest.make 2>/dev/null` in
5787 *@@@%%%=?*=@@@%%%*)
5788 eval ac_cv_prog_make_${ac_make}_set=yes;;
5789 *)
5790 eval ac_cv_prog_make_${ac_make}_set=no;;
5791esac
5792rm -f conftest.make
5793fi
5794if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5795 { $as_echo "$as_me:$LINENO: result: yes" >&5
5796$as_echo "yes" >&6; }
5797 SET_MAKE=
5798else
5799 { $as_echo "$as_me:$LINENO: result: no" >&5
5800$as_echo "no" >&6; }
5801 SET_MAKE="MAKE=${MAKE-make}"
5802fi
5803
5804ac_ext=cpp
5805ac_cpp='$CXXCPP $CPPFLAGS'
5806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809if test -z "$CXX"; then
5810 if test -n "$CCC"; then
5811 CXX=$CCC
5812 else
5813 if test -n "$ac_tool_prefix"; then
5814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5815 do
5816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if test "${ac_cv_prog_CXX+set}" = set; then
5821 $as_echo_n "(cached) " >&6
5822else
5823 if test -n "$CXX"; then
5824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837done
5838done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843CXX=$ac_cv_prog_CXX
5844if test -n "$CXX"; then
5845 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5846$as_echo "$CXX" >&6; }
5847else
5848 { $as_echo "$as_me:$LINENO: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852
5853 test -n "$CXX" && break
5854 done
5855fi
5856if test -z "$CXX"; then
5857 ac_ct_CXX=$CXX
5858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5859do
5860 # Extract the first word of "$ac_prog", so it can be a program name with args.
5861set dummy $ac_prog; ac_word=$2
5862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5865 $as_echo_n "(cached) " >&6
5866else
5867 if test -n "$ac_ct_CXX"; then
5868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_ac_ct_CXX="$ac_prog"
5878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881done
5882done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5888if test -n "$ac_ct_CXX"; then
5889 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5890$as_echo "$ac_ct_CXX" >&6; }
5891else
5892 { $as_echo "$as_me:$LINENO: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897 test -n "$ac_ct_CXX" && break
5898done
5899
5900 if test "x$ac_ct_CXX" = x; then
5901 CXX="g++"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909 CXX=$ac_ct_CXX
5910 fi
5911fi
5912
5913 fi
5914fi
5915# Provide some information about the compiler.
5916$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5917set X $ac_compile
5918ac_compiler=$2
5919{ (ac_try="$ac_compiler --version >&5"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5925$as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compiler --version >&5") 2>&5
5927 ac_status=$?
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }
5930{ (ac_try="$ac_compiler -v >&5"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936$as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compiler -v >&5") 2>&5
5938 ac_status=$?
5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941{ (ac_try="$ac_compiler -V >&5"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947$as_echo "$ac_try_echo") >&5
5948 (eval "$ac_compiler -V >&5") 2>&5
5949 ac_status=$?
5950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }
5952
5953{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5954$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5955if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5956 $as_echo_n "(cached) " >&6
5957else
5958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964
5965int
5966main ()
5967{
5968#ifndef __GNUC__
5969 choke me
5970#endif
5971
5972 ;
5973 return 0;
5974}
5975_ACEOF
5976rm -f conftest.$ac_objext
5977if { (ac_try="$ac_compile"
5978case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983$as_echo "$ac_try_echo") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_cxx_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_compiler_gnu=yes
5995else
5996 $as_echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_compiler_gnu=no
6000fi
6001
6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6004
6005fi
6006{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6007$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6008if test $ac_compiler_gnu = yes; then
6009 GXX=yes
6010else
6011 GXX=
6012fi
6013ac_test_CXXFLAGS=${CXXFLAGS+set}
6014ac_save_CXXFLAGS=$CXXFLAGS
6015{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6016$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6017if test "${ac_cv_prog_cxx_g+set}" = set; then
6018 $as_echo_n "(cached) " >&6
6019else
6020 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6021 ac_cxx_werror_flag=yes
6022 ac_cv_prog_cxx_g=no
6023 CXXFLAGS="-g"
6024 cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h. */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h. */
6030
6031int
6032main ()
6033{
6034
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039rm -f conftest.$ac_objext
6040if { (ac_try="$ac_compile"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046$as_echo "$ac_try_echo") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_cxx_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_prog_cxx_g=yes
6058else
6059 $as_echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 CXXFLAGS=""
6063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069
6070int
6071main ()
6072{
6073
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6085$as_echo "$ac_try_echo") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && {
6093 test -z "$ac_cxx_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
6096 :
6097else
6098 $as_echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6102 CXXFLAGS="-g"
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109
6110int
6111main ()
6112{
6113
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (ac_try="$ac_compile"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_cxx_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6136 ac_cv_prog_cxx_g=yes
6137else
6138 $as_echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149
6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6152fi
6153{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6154$as_echo "$ac_cv_prog_cxx_g" >&6; }
6155if test "$ac_test_CXXFLAGS" = set; then
6156 CXXFLAGS=$ac_save_CXXFLAGS
6157elif test $ac_cv_prog_cxx_g = yes; then
6158 if test "$GXX" = yes; then
6159 CXXFLAGS="-g -O2"
6160 else
6161 CXXFLAGS="-g"
6162 fi
6163else
6164 if test "$GXX" = yes; then
6165 CXXFLAGS="-O2"
6166 else
6167 CXXFLAGS=
6168 fi
6169fi
6170ac_ext=c
6171ac_cpp='$CPP $CPPFLAGS'
6172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176depcc="$CXX" am_compiler_list=
6177
6178{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6179$as_echo_n "checking dependency style of $depcc... " >&6; }
6180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6181 $as_echo_n "(cached) " >&6
6182else
6183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6184 # We make a subdir and do the tests there. Otherwise we can end up
6185 # making bogus files that we don't know about and never remove. For
6186 # instance it was reported that on HP-UX the gcc test will end up
6187 # making a dummy file named `D' -- because `-MD' means `put the output
6188 # in D'.
6189 mkdir conftest.dir
6190 # Copy depcomp to subdir because otherwise we won't find it if we're
6191 # using a relative directory.
6192 cp "$am_depcomp" conftest.dir
6193 cd conftest.dir
6194 # We will build objects and dependencies in a subdirectory because
6195 # it helps to detect inapplicable dependency modes. For instance
6196 # both Tru64's cc and ICC support -MD to output dependencies as a
6197 # side effect of compilation, but ICC will put the dependencies in
6198 # the current directory while Tru64 will put them in the object
6199 # directory.
6200 mkdir sub
6201
6202 am_cv_CXX_dependencies_compiler_type=none
6203 if test "$am_compiler_list" = ""; then
6204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6205 fi
6206 am__universal=false
6207 case " $depcc " in #(
6208 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6209 esac
6210
6211 for depmode in $am_compiler_list; do
6212 # Setup a source with many dependencies, because some compilers
6213 # like to wrap large dependency lists on column 80 (with \), and
6214 # we should not choose a depcomp mode which is confused by this.
6215 #
6216 # We need to recreate these files for each test, as the compiler may
6217 # overwrite some of them when testing with obscure command lines.
6218 # This happens at least with the AIX C compiler.
6219 : > sub/conftest.c
6220 for i in 1 2 3 4 5 6; do
6221 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6222 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6223 # Solaris 8's {/usr,}/bin/sh.
6224 touch sub/conftst$i.h
6225 done
6226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6227
6228 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6229 # mode. It turns out that the SunPro C++ compiler does not properly
6230 # handle `-M -o', and we need to detect this. Also, some Intel
6231 # versions had trouble with output in subdirs
6232 am__obj=sub/conftest.${OBJEXT-o}
6233 am__minus_obj="-o $am__obj"
6234 case $depmode in
6235 gcc)
6236 # This depmode causes a compiler race in universal mode.
6237 test "$am__universal" = false || continue
6238 ;;
6239 nosideeffect)
6240 # after this tag, mechanisms are not by side-effect, so they'll
6241 # only be used when explicitly requested
6242 if test "x$enable_dependency_tracking" = xyes; then
6243 continue
6244 else
6245 break
6246 fi
6247 ;;
6248 msvisualcpp | msvcmsys)
6249 # This compiler won't grok `-c -o', but also, the minuso test has
6250 # not run yet. These depmodes are late enough in the game, and
6251 # so weak that their functioning should not be impacted.
6252 am__obj=conftest.${OBJEXT-o}
6253 am__minus_obj=
6254 ;;
6255 none) break ;;
6256 esac
6257 if depmode=$depmode \
6258 source=sub/conftest.c object=$am__obj \
6259 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6260 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6261 >/dev/null 2>conftest.err &&
6262 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6263 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6264 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6265 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6266 # icc doesn't choke on unknown options, it will just issue warnings
6267 # or remarks (even with -Werror). So we grep stderr for any message
6268 # that says an option was ignored or not supported.
6269 # When given -MP, icc 7.0 and 7.1 complain thusly:
6270 # icc: Command line warning: ignoring option '-M'; no argument required
6271 # The diagnosis changed in icc 8.0:
6272 # icc: Command line remark: option '-MP' not supported
6273 if (grep 'ignoring option' conftest.err ||
6274 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6275 am_cv_CXX_dependencies_compiler_type=$depmode
6276 break
6277 fi
6278 fi
6279 done
6280
6281 cd ..
6282 rm -rf conftest.dir
6283else
6284 am_cv_CXX_dependencies_compiler_type=none
6285fi
6286
6287fi
6288{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6289$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6290CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6291
6292 if
6293 test "x$enable_dependency_tracking" != xno \
6294 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6295 am__fastdepCXX_TRUE=
6296 am__fastdepCXX_FALSE='#'
6297else
6298 am__fastdepCXX_TRUE='#'
6299 am__fastdepCXX_FALSE=
6300fi
6301
6302
6303
6304{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6305$as_echo_n "checking maximum warning verbosity option... " >&6; }
6306
6307
6308
6309
6310# Check whether --with-maximum-compile-warnings was given.
6311if test "${with_maximum_compile_warnings+set}" = set; then
6312 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6313else
6314 ac_compile_warnings_on=""
6315fi
6316
6317
6318 if test x"$ac_compile_warnings_on" = xno
6319 then
6320 ac_compile_warnings_msg=no
6321 else
6322 if test -n "$CXX"
6323 then
6324 if test "$GXX" = "yes"
6325 then
6326 ac_compile_warnings_opt='-Wall -W'
6327 fi
6328 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6329 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6330 fi
6331
6332 if test -n "$CC"
6333 then
6334 if test "$GCC" = "yes"
6335 then
6336 ac_compile_warnings_opt='-Wall -W'
6337 fi
6338 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6339 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6340 fi
6341 fi
6342 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6343$as_echo "$ac_compile_warnings_msg" >&6; }
6344 unset ac_compile_warnings_msg
6345 unset ac_compile_warnings_opt
6346
6347{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6348$as_echo_n "checking whether ln -s works... " >&6; }
6349LN_S=$as_ln_s
6350if test "$LN_S" = "ln -s"; then
6351 { $as_echo "$as_me:$LINENO: result: yes" >&5
6352$as_echo "yes" >&6; }
6353else
6354 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6355$as_echo "no, using $LN_S" >&6; }
6356fi
6357
6358{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6359$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6360
6361# Check whether --with-dmalloc was given.
6362if test "${with_dmalloc+set}" = set; then
6363 withval=$with_dmalloc; if test "$withval" = yes; then
6364 { $as_echo "$as_me:$LINENO: result: yes" >&5
6365$as_echo "yes" >&6; }
6366
6367cat >>confdefs.h <<\_ACEOF
6368#define WITH_DMALLOC 1
6369_ACEOF
6370
6371 LIBS="$LIBS -ldmalloc"
6372 LDFLAGS="$LDFLAGS -g"
6373else
6374 { $as_echo "$as_me:$LINENO: result: no" >&5
6375$as_echo "no" >&6; }
6376fi
6377else
6378 { $as_echo "$as_me:$LINENO: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383
6384
6385if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6386 if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6393else
6394 case $PKG_CONFIG in
6395 [\\/]* | ?:[\\/]*)
6396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6397 ;;
6398 *)
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411done
6412IFS=$as_save_IFS
6413
6414 ;;
6415esac
6416fi
6417PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6418if test -n "$PKG_CONFIG"; then
6419 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6420$as_echo "$PKG_CONFIG" >&6; }
6421else
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426
6427fi
6428if test -z "$ac_cv_path_PKG_CONFIG"; then
6429 ac_pt_PKG_CONFIG=$PKG_CONFIG
6430 # Extract the first word of "pkg-config", so it can be a program name with args.
6431set dummy pkg-config; ac_word=$2
6432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6436else
6437 case $ac_pt_PKG_CONFIG in
6438 [\\/]* | ?:[\\/]*)
6439 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6440 ;;
6441 *)
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453done
6454done
6455IFS=$as_save_IFS
6456
6457 ;;
6458esac
6459fi
6460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6461if test -n "$ac_pt_PKG_CONFIG"; then
6462 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6463$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6464else
6465 { $as_echo "$as_me:$LINENO: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469 if test "x$ac_pt_PKG_CONFIG" = x; then
6470 PKG_CONFIG=""
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473yes:)
6474{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476ac_tool_warned=yes ;;
6477esac
6478 PKG_CONFIG=$ac_pt_PKG_CONFIG
6479 fi
6480else
6481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6482fi
6483
6484fi
6485if test -n "$PKG_CONFIG"; then
6486 _pkg_min_version=0.9.0
6487 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6488$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6490 { $as_echo "$as_me:$LINENO: result: yes" >&5
6491$as_echo "yes" >&6; }
6492 else
6493 { $as_echo "$as_me:$LINENO: result: no" >&5
6494$as_echo "no" >&6; }
6495 PKG_CONFIG=""
6496 fi
6497
6498fi
6499
6500#
6501# Enable OS features.
6502#
6503
6504
6505{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6506$as_echo_n "checking for ANSI C header files... " >&6; }
6507if test "${ac_cv_header_stdc+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6509else
6510 cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516#include <stdlib.h>
6517#include <stdarg.h>
6518#include <string.h>
6519#include <float.h>
6520
6521int
6522main ()
6523{
6524
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (ac_try="$ac_compile"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536$as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_stdc=yes
6548else
6549 $as_echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_header_stdc=no
6553fi
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6560/* confdefs.h. */
6561_ACEOF
6562cat confdefs.h >>conftest.$ac_ext
6563cat >>conftest.$ac_ext <<_ACEOF
6564/* end confdefs.h. */
6565#include <string.h>
6566
6567_ACEOF
6568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then
6570 :
6571else
6572 ac_cv_header_stdc=no
6573fi
6574rm -f conftest*
6575
6576fi
6577
6578if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
6586#include <stdlib.h>
6587
6588_ACEOF
6589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6591 :
6592else
6593 ac_cv_header_stdc=no
6594fi
6595rm -f conftest*
6596
6597fi
6598
6599if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6602 :
6603else
6604 cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610#include <ctype.h>
6611#include <stdlib.h>
6612#if ((' ' & 0x0FF) == 0x020)
6613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615#else
6616# define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621#endif
6622
6623#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6624int
6625main ()
6626{
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest$ac_exeext
6636if { (ac_try="$ac_link"
6637case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640esac
6641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642$as_echo "$ac_try_echo") >&5
6643 (eval "$ac_link") 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652$as_echo "$ac_try_echo") >&5
6653 (eval "$ac_try") 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 :
6658else
6659 $as_echo "$as_me: program exited with status $ac_status" >&5
6660$as_echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663( exit $ac_status )
6664ac_cv_header_stdc=no
6665fi
6666rm -rf conftest.dSYM
6667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6668fi
6669
6670
6671fi
6672fi
6673{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6674$as_echo "$ac_cv_header_stdc" >&6; }
6675if test $ac_cv_header_stdc = yes; then
6676
6677cat >>confdefs.h <<\_ACEOF
6678#define STDC_HEADERS 1
6679_ACEOF
6680
6681fi
6682
6683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6694 inttypes.h stdint.h unistd.h
6695do
6696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6697{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6698$as_echo_n "checking for $ac_header... " >&6; }
6699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700 $as_echo_n "(cached) " >&6
6701else
6702 cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h. */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h. */
6708$ac_includes_default
6709
6710#include <$ac_header>
6711_ACEOF
6712rm -f conftest.$ac_objext
6713if { (ac_try="$ac_compile"
6714case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717esac
6718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6719$as_echo "$ac_try_echo") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 eval "$as_ac_Header=yes"
6731else
6732 $as_echo "$as_me: failed program was:" >&5
6733sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 eval "$as_ac_Header=no"
6736fi
6737
6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739fi
6740ac_res=`eval 'as_val=${'$as_ac_Header'}
6741 $as_echo "$as_val"'`
6742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6743$as_echo "$ac_res" >&6; }
6744as_val=`eval 'as_val=${'$as_ac_Header'}
6745 $as_echo "$as_val"'`
6746 if test "x$as_val" = x""yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
6754
6755
6756
6757 if test "${ac_cv_header_minix_config_h+set}" = set; then
6758 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6759$as_echo_n "checking for minix/config.h... " >&6; }
6760if test "${ac_cv_header_minix_config_h+set}" = set; then
6761 $as_echo_n "(cached) " >&6
6762fi
6763{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6764$as_echo "$ac_cv_header_minix_config_h" >&6; }
6765else
6766 # Is the header compilable?
6767{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6768$as_echo_n "checking minix/config.h usability... " >&6; }
6769cat >conftest.$ac_ext <<_ACEOF
6770/* confdefs.h. */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6774/* end confdefs.h. */
6775$ac_includes_default
6776#include <minix/config.h>
6777_ACEOF
6778rm -f conftest.$ac_objext
6779if { (ac_try="$ac_compile"
6780case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783esac
6784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785$as_echo "$ac_try_echo") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 ac_header_compiler=yes
6797else
6798 $as_echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ac_header_compiler=no
6802fi
6803
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6806$as_echo "$ac_header_compiler" >&6; }
6807
6808# Is the header present?
6809{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6810$as_echo_n "checking minix/config.h presence... " >&6; }
6811cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h. */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */
6817#include <minix/config.h>
6818_ACEOF
6819if { (ac_try="$ac_cpp conftest.$ac_ext"
6820case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823esac
6824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6825$as_echo "$ac_try_echo") >&5
6826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null && {
6833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6834 test ! -s conftest.err
6835 }; then
6836 ac_header_preproc=yes
6837else
6838 $as_echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 ac_header_preproc=no
6842fi
6843
6844rm -f conftest.err conftest.$ac_ext
6845{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6846$as_echo "$ac_header_preproc" >&6; }
6847
6848# So? What about this header?
6849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6850 yes:no: )
6851 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6852$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6853 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6854$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6855 ac_header_preproc=yes
6856 ;;
6857 no:yes:* )
6858 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6859$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6860 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6861$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6862 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6863$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6865$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6867$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6868 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6869$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6870 ( cat <<\_ASBOX
6871## ----------------------------------------- ##
6872## Report this to http://www.imagemagick.org ##
6873## ----------------------------------------- ##
6874_ASBOX
6875 ) | sed "s/^/$as_me: WARNING: /" >&2
6876 ;;
6877esac
6878{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6879$as_echo_n "checking for minix/config.h... " >&6; }
6880if test "${ac_cv_header_minix_config_h+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882else
6883 ac_cv_header_minix_config_h=$ac_header_preproc
6884fi
6885{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6886$as_echo "$ac_cv_header_minix_config_h" >&6; }
6887
6888fi
6889if test "x$ac_cv_header_minix_config_h" = x""yes; then
6890 MINIX=yes
6891else
6892 MINIX=
6893fi
6894
6895
6896 if test "$MINIX" = yes; then
6897
6898cat >>confdefs.h <<\_ACEOF
6899#define _POSIX_SOURCE 1
6900_ACEOF
6901
6902
6903cat >>confdefs.h <<\_ACEOF
6904#define _POSIX_1_SOURCE 2
6905_ACEOF
6906
6907
6908cat >>confdefs.h <<\_ACEOF
6909#define _MINIX 1
6910_ACEOF
6911
6912 fi
6913
6914
6915
6916 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6917$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6918if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6919 $as_echo_n "(cached) " >&6
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927
6928# define __EXTENSIONS__ 1
6929 $ac_includes_default
6930int
6931main ()
6932{
6933
6934 ;
6935 return 0;
6936}
6937_ACEOF
6938rm -f conftest.$ac_objext
6939if { (ac_try="$ac_compile"
6940case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943esac
6944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6945$as_echo "$ac_try_echo") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_safe_to_define___extensions__=yes
6957else
6958 $as_echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ac_cv_safe_to_define___extensions__=no
6962fi
6963
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965fi
6966{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6967$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6968 test $ac_cv_safe_to_define___extensions__ = yes &&
6969 cat >>confdefs.h <<\_ACEOF
6970#define __EXTENSIONS__ 1
6971_ACEOF
6972
6973 cat >>confdefs.h <<\_ACEOF
6974#define _ALL_SOURCE 1
6975_ACEOF
6976
6977 cat >>confdefs.h <<\_ACEOF
6978#define _GNU_SOURCE 1
6979_ACEOF
6980
6981 cat >>confdefs.h <<\_ACEOF
6982#define _POSIX_PTHREAD_SEMANTICS 1
6983_ACEOF
6984
6985 cat >>confdefs.h <<\_ACEOF
6986#define _TANDEM_SOURCE 1
6987_ACEOF
6988
6989
6990
6991#
6992# Enable run-time checking.
6993#
6994# Check whether --enable-bounds-checking was given.
6995if test "${enable_bounds_checking+set}" = set; then
6996 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6997else
6998 enable_bounds_checking='no'
6999fi
7000
7001
7002if test "$enable_bounds_checking" = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define _FORTIFY_SOURCE 2
7006_ACEOF
7007
7008fi
7009
7010#
7011# Tests for Windows
7012#
7013
7014
7015
7016GDI32_LIBS=''
7017StaticCplusPlusLibraries='no'
7018native_win32_build='no'
7019cygwin_build='no'
7020case "${host_os}" in
7021 cygwin* )
7022 StaticCplusPlusLibraries='yes'
7023 cygwin_build='yes'
7024 GDI32_LIBS='-lgdi32'
7025 ;;
7026 mingw* )
7027 StaticCplusPlusLibraries='yes'
7028 native_win32_build='yes'
7029 GDI32_LIBS='-lgdi32'
7030 ;;
7031esac
7032if test "${GDI32_LIBS}x" != 'x'; then
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define WINGDI32_DELEGATE 1
7036_ACEOF
7037
7038fi
7039
7040 if test "${GDI32_LIBS}x" != 'x' ; then
7041 WINGDI32_DELEGATE_TRUE=
7042 WINGDI32_DELEGATE_FALSE='#'
7043else
7044 WINGDI32_DELEGATE_TRUE='#'
7045 WINGDI32_DELEGATE_FALSE=
7046fi
7047
7048 if test "${native_win32_build}" = 'yes' ; then
7049 WIN32_NATIVE_BUILD_TRUE=
7050 WIN32_NATIVE_BUILD_FALSE='#'
7051else
7052 WIN32_NATIVE_BUILD_TRUE='#'
7053 WIN32_NATIVE_BUILD_FALSE=
7054fi
7055
7056 if test "${cygwin_build}" = 'yes' ; then
7057 CYGWIN_BUILD_TRUE=
7058 CYGWIN_BUILD_FALSE='#'
7059else
7060 CYGWIN_BUILD_TRUE='#'
7061 CYGWIN_BUILD_FALSE=
7062fi
7063
7064 if test "x${CC}" = 'xcl.exe' ; then
7065 USING_CL_TRUE=
7066 USING_CL_FALSE='#'
7067else
7068 USING_CL_TRUE='#'
7069 USING_CL_FALSE=
7070fi
7071
7072
7073WinPathScript="${srcdirfull}/winpath.sh"
7074
7075
7076#
7077# Compiler flags tweaks
7078#
7079if test "${GCC}" != "yes"; then
7080 case "${host}" in
7081 *-*-hpux* )
7082 # aCC: HP ANSI C++ B3910B A.03.34
7083 CFLAGS="${CFLAGS} -Wp,-H30000"
7084 if test -n "${CXXFLAGS}"; then
7085 CXXFLAGS='-AA'
7086 else
7087 CXXFLAGS="${CXXFLAGS} -AA"
7088 fi
7089 ;;
7090 *-dec-osf5.* )
7091 # Compaq alphaev68-dec-osf5.1 compiler
7092 if test -n "${CXXFLAGS}"; then
7093 CXXFLAGS='-std strict_ansi -noimplicit_include'
7094 else
7095 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7096 fi
7097 esac
7098fi
7099
7100# Check for lazy-loading.
7101{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7102$as_echo_n "checking for linker lazyload option... " >&6; }
7103if test "${im_cv_ld_lazyload+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7105else
7106
7107im_cv_ld_lazyload='none'
7108case "${host}" in
7109 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7110 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7111 im_cv_ld_lazyload='-Wl,-zlazyload'
7112 fi
7113 ;;
7114esac
7115
7116fi
7117{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7118$as_echo "$im_cv_ld_lazyload" >&6; }
7119if test "${im_cv_ld_lazyload}" != 'none' ; then
7120 if test -z "${LDFLAGS}" ; then
7121 LDFLAGS="${im_cv_ld_lazyload}"
7122 else
7123 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7124 fi
7125fi
7126
7127case "$host" in
7128*darwin* | *-macos10*)
7129 if test -d /opt/local ; then
7130 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7131 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7132 elif test -d /sw ; then
7133 CPPFLAGS="$CPPFLAGS -I/sw/include"
7134 LDFLAGS="$LDFLAGS -L/sw/lib"
7135 fi
7136 # Check whether --enable-osx-universal-binary was given.
7137if test "${enable_osx_universal_binary+set}" = set; then
7138 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7139else
7140 build_osxuniversal=no
7141fi
7142
7143
7144 if test "${build_osxuniversal}" != no ; then
7145 if test "$enable_dependency_tracking" != no ; then
7146 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7147Please re-run configure with these options:
7148 --disable-dependency-tracking --enable-osx-universal-binary
7149 " >&5
7150$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7151Please re-run configure with these options:
7152 --disable-dependency-tracking --enable-osx-universal-binary
7153 " >&2;}
7154 { (exit 1); exit 1; }; }
7155 fi
7156 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7157 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7158 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7159 fi
7160 ;;
7161esac
7162
7163# Enable support for threads
7164
7165# Check whether --with-threads was given.
7166if test "${with_threads+set}" = set; then
7167 withval=$with_threads; with_threads=$withval
7168else
7169 with_threads='yes'
7170fi
7171
7172
7173have_threads=no
7174if test "$with_threads" != 'no'; then
7175
7176
7177
7178ac_ext=c
7179ac_cpp='$CPP $CPPFLAGS'
7180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183
7184acx_pthread_ok=no
7185
7186# We used to check for pthread.h first, but this fails if pthread.h
7187# requires special compiler flags (e.g. on True64 or Sequent).
7188# It gets checked for in the link test anyway.
7189
7190# First of all, check if the user has set any of the PTHREAD_LIBS,
7191# etcetera environment variables, and if threads linking works using
7192# them:
7193if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7194 save_CFLAGS="$CFLAGS"
7195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7196 save_LIBS="$LIBS"
7197 LIBS="$PTHREAD_LIBS $LIBS"
7198 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7199$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7200 cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206
7207/* Override any GCC internal prototype to avoid an error.
7208 Use char because int might match the return type of a GCC
7209 builtin and then its argument prototype would still apply. */
7210#ifdef __cplusplus
7211extern "C"
7212#endif
7213char pthread_join ();
7214int
7215main ()
7216{
7217return pthread_join ();
7218 ;
7219 return 0;
7220}
7221_ACEOF
7222rm -f conftest.$ac_objext conftest$ac_exeext
7223if { (ac_try="$ac_link"
7224case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
7228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229$as_echo "$ac_try_echo") >&5
7230 (eval "$ac_link") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest$ac_exeext && {
7240 test "$cross_compiling" = yes ||
7241 $as_test_x conftest$ac_exeext
7242 }; then
7243 acx_pthread_ok=yes
7244else
7245 $as_echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248
7249fi
7250
7251rm -rf conftest.dSYM
7252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253 conftest$ac_exeext conftest.$ac_ext
7254 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7255$as_echo "$acx_pthread_ok" >&6; }
7256 if test x"$acx_pthread_ok" = xno; then
7257 PTHREAD_LIBS=""
7258 PTHREAD_CFLAGS=""
7259 fi
7260 LIBS="$save_LIBS"
7261 CFLAGS="$save_CFLAGS"
7262fi
7263
7264# We must check for the threads library under a number of different
7265# names; the ordering is very important because some systems
7266# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7267# libraries is broken (non-POSIX).
7268
7269# Create a list of thread flags to try. Items starting with a "-" are
7270# C compiler flags, and other items are library names, except for "none"
7271# which indicates that we try without any flags at all, and "pthread-config"
7272# which is a program returning the flags for the Pth emulation library.
7273
7274acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7275
7276# The ordering *is* (sometimes) important. Some notes on the
7277# individual items follow:
7278
7279# pthreads: AIX (must check this before -lpthread)
7280# none: in case threads are in libc; should be tried before -Kthread and
7281# other compiler flags to prevent continual compiler warnings
7282# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7283# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7284# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7285# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7286# -pthreads: Solaris/gcc
7287# -mthreads: Mingw32/gcc, Lynx/gcc
7288# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7289# doesn't hurt to check since this sometimes defines pthreads too;
7290# also defines -D_REENTRANT)
7291# ... -mt is also the pthreads flag for HP/aCC
7292# pthread: Linux, etcetera
7293# --thread-safe: KAI C++
7294# pthread-config: use pthread-config program (for GNU Pth library)
7295
7296case "${host_cpu}-${host_os}" in
7297 *solaris*)
7298
7299 # On Solaris (at least, for some versions), libc contains stubbed
7300 # (non-functional) versions of the pthreads routines, so link-based
7301 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7302 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7303 # a function called by this macro, so we could check for that, but
7304 # who knows whether they'll stub that too in a future libc.) So,
7305 # we'll just look for -pthreads and -lpthread first:
7306
7307 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7308 ;;
cristy3ed852e2009-09-05 21:47:34 +00007309esac
7310
7311if test x"$acx_pthread_ok" = xno; then
7312for flag in $acx_pthread_flags; do
7313
7314 case $flag in
7315 none)
7316 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7317$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7318 ;;
7319
7320 -*)
7321 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7322$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7323 PTHREAD_CFLAGS="$flag"
7324 ;;
7325
7326 pthread-config)
7327 # Extract the first word of "pthread-config", so it can be a program name with args.
7328set dummy pthread-config; ac_word=$2
7329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$acx_pthread_config"; then
7335 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_acx_pthread_config="yes"
7345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349done
7350IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7353fi
7354fi
7355acx_pthread_config=$ac_cv_prog_acx_pthread_config
7356if test -n "$acx_pthread_config"; then
7357 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7358$as_echo "$acx_pthread_config" >&6; }
7359else
7360 { $as_echo "$as_me:$LINENO: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365 if test x"$acx_pthread_config" = xno; then continue; fi
7366 PTHREAD_CFLAGS="`pthread-config --cflags`"
7367 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7368 ;;
7369
7370 *)
7371 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7372$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7373 PTHREAD_LIBS="-l$flag"
7374 ;;
7375 esac
7376
7377 save_LIBS="$LIBS"
7378 save_CFLAGS="$CFLAGS"
7379 LIBS="$PTHREAD_LIBS $LIBS"
7380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7381
7382 # Check for various functions. We must include pthread.h,
7383 # since some functions may be macros. (On the Sequent, we
7384 # need a special flag -Kthread to make this header compile.)
7385 # We check for pthread_join because it is in -lpthread on IRIX
7386 # while pthread_create is in libc. We check for pthread_attr_init
7387 # due to DEC craziness with -lpthreads. We check for
7388 # pthread_cleanup_push because it is one of the few pthread
7389 # functions on Solaris that doesn't have a non-functional libc stub.
7390 # We try pthread_create on general principles.
7391 cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */
7397#include <pthread.h>
7398int
7399main ()
7400{
7401pthread_t th; pthread_join(th, 0);
7402 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7403 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7404 ;
7405 return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext conftest$ac_exeext
7409if { (ac_try="$ac_link"
7410case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413esac
7414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415$as_echo "$ac_try_echo") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext && {
7426 test "$cross_compiling" = yes ||
7427 $as_test_x conftest$ac_exeext
7428 }; then
7429 acx_pthread_ok=yes
7430else
7431 $as_echo "$as_me: failed program was:" >&5
7432sed 's/^/| /' conftest.$ac_ext >&5
7433
7434
7435fi
7436
7437rm -rf conftest.dSYM
7438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7440
7441 LIBS="$save_LIBS"
7442 CFLAGS="$save_CFLAGS"
7443
7444 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7445$as_echo "$acx_pthread_ok" >&6; }
7446 if test "x$acx_pthread_ok" = xyes; then
7447 break;
7448 fi
7449
7450 PTHREAD_LIBS=""
7451 PTHREAD_CFLAGS=""
7452done
7453fi
7454
7455# Various other checks:
7456if test "x$acx_pthread_ok" = xyes; then
7457 save_LIBS="$LIBS"
7458 LIBS="$PTHREAD_LIBS $LIBS"
7459 save_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7461
7462 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7463 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7464$as_echo_n "checking for joinable pthread attribute... " >&6; }
7465 attr_name=unknown
7466 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7467 cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h. */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h. */
7473#include <pthread.h>
7474int
7475main ()
7476{
7477int attr=$attr; return attr;
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (ac_try="$ac_link"
7484case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487esac
7488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489$as_echo "$ac_try_echo") >&5
7490 (eval "$ac_link") 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest$ac_exeext && {
7500 test "$cross_compiling" = yes ||
7501 $as_test_x conftest$ac_exeext
7502 }; then
7503 attr_name=$attr; break
7504else
7505 $as_echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508
7509fi
7510
7511rm -rf conftest.dSYM
7512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7513 conftest$ac_exeext conftest.$ac_ext
7514 done
7515 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7516$as_echo "$attr_name" >&6; }
7517 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7518
7519cat >>confdefs.h <<_ACEOF
7520#define PTHREAD_CREATE_JOINABLE $attr_name
7521_ACEOF
7522
7523 fi
7524
7525 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7526$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7527 flag=no
7528 case "${host_cpu}-${host_os}" in
7529 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7530 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7531 esac
7532 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7533$as_echo "${flag}" >&6; }
7534 if test "x$flag" != xno; then
7535 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7536 fi
7537
7538 LIBS="$save_LIBS"
7539 CFLAGS="$save_CFLAGS"
7540
7541 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007542 if test x"$GCC" != xyes; then
7543 for ac_prog in xlc_r cc_r
7544do
7545 # Extract the first word of "$ac_prog", so it can be a program name with args.
7546set dummy $ac_prog; ac_word=$2
cristy3ed852e2009-09-05 21:47:34 +00007547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$PTHREAD_CC"; then
7553 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00007562 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy3ed852e2009-09-05 21:47:34 +00007563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568IFS=$as_save_IFS
7569
cristy3ed852e2009-09-05 21:47:34 +00007570fi
7571fi
7572PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7573if test -n "$PTHREAD_CC"; then
7574 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7575$as_echo "$PTHREAD_CC" >&6; }
7576else
7577 { $as_echo "$as_me:$LINENO: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
cristy736173a2009-09-20 21:18:22 +00007581
7582 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007583done
cristy736173a2009-09-20 21:18:22 +00007584test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007585
cristy736173a2009-09-20 21:18:22 +00007586 else
7587 PTHREAD_CC=$CC
7588 fi
cristy3ed852e2009-09-05 21:47:34 +00007589else
cristy736173a2009-09-20 21:18:22 +00007590 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007591fi
7592
cristy3ed852e2009-09-05 21:47:34 +00007593
7594
7595
7596
7597# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7598if test x"$acx_pthread_ok" = xyes; then
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define HAVE_PTHREAD 1
7602_ACEOF
7603
7604 :
7605else
7606 acx_pthread_ok=no
7607
7608fi
7609ac_ext=c
7610ac_cpp='$CPP $CPPFLAGS'
7611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615
7616 if test "$acx_pthread_ok" = yes; then
7617 have_threads=yes
7618 DEF_THREAD="$PTHREAD_CFLAGS"
7619 CFLAGS="$CFLAGS $DEF_THREAD"
7620 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7621 if test "$CC" != "$PTHREAD_CC"; then
7622 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7623$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7624 CC="$PTHREAD_CC"
7625 fi
7626 fi
7627fi
7628
7629# Enable support for OpenMP
7630if test "$have_threads" != 'yes'; then
7631 ac_cv_prog_c_openmp=unsupported
7632fi
7633
7634 OPENMP_CFLAGS=
7635 # Check whether --enable-openmp was given.
7636if test "${enable_openmp+set}" = set; then
7637 enableval=$enable_openmp;
7638fi
7639
7640 if test "$enable_openmp" != no; then
7641 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7642$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7643if test "${ac_cv_prog_c_openmp+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7645else
7646 cat >conftest.$ac_ext <<_ACEOF
7647
7648#ifndef _OPENMP
7649 choke me
7650#endif
7651#include <omp.h>
7652int main () { return omp_get_num_threads (); }
7653
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (ac_try="$ac_link"
7657case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660esac
7661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662$as_echo "$ac_try_echo") >&5
7663 (eval "$ac_link") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest$ac_exeext && {
7673 test "$cross_compiling" = yes ||
7674 $as_test_x conftest$ac_exeext
7675 }; then
7676 ac_cv_prog_c_openmp='none needed'
7677else
7678 $as_echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_prog_c_openmp='unsupported'
7682 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7683 ac_save_CFLAGS=$CFLAGS
7684 CFLAGS="$CFLAGS $ac_option"
7685 cat >conftest.$ac_ext <<_ACEOF
7686
7687#ifndef _OPENMP
7688 choke me
7689#endif
7690#include <omp.h>
7691int main () { return omp_get_num_threads (); }
7692
7693_ACEOF
7694rm -f conftest.$ac_objext conftest$ac_exeext
7695if { (ac_try="$ac_link"
7696case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699esac
7700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701$as_echo "$ac_try_echo") >&5
7702 (eval "$ac_link") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest$ac_exeext && {
7712 test "$cross_compiling" = yes ||
7713 $as_test_x conftest$ac_exeext
7714 }; then
7715 ac_cv_prog_c_openmp=$ac_option
7716else
7717 $as_echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720
7721fi
7722
7723rm -rf conftest.dSYM
7724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext conftest.$ac_ext
7726 CFLAGS=$ac_save_CFLAGS
7727 if test "$ac_cv_prog_c_openmp" != unsupported; then
7728 break
7729 fi
7730 done
7731fi
7732
7733rm -rf conftest.dSYM
7734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7735 conftest$ac_exeext conftest.$ac_ext
7736fi
7737{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7738$as_echo "$ac_cv_prog_c_openmp" >&6; }
7739 case $ac_cv_prog_c_openmp in #(
7740 "none needed" | unsupported)
7741 ;; #(
7742 *)
7743 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7744 esac
7745 fi
7746
7747
7748CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7749MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7750
7751
cristy736173a2009-09-20 21:18:22 +00007752# Enable support for OpenCL
7753{ $as_echo "$as_me:$LINENO: checking for X" >&5
7754$as_echo_n "checking for X... " >&6; }
7755
7756
7757# Check whether --with-x was given.
7758if test "${with_x+set}" = set; then
7759 withval=$with_x;
7760fi
7761
7762# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7763if test "x$with_x" = xno; then
7764 # The user explicitly disabled X.
7765 have_x=disabled
7766else
7767 case $x_includes,$x_libraries in #(
7768 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
7769$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
7770 { (exit 1); exit 1; }; };; #(
7771 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7772 $as_echo_n "(cached) " >&6
7773else
7774 # One or both of the vars are not set, and there is no cached value.
7775ac_x_includes=no ac_x_libraries=no
7776rm -f -r conftest.dir
7777if mkdir conftest.dir; then
7778 cd conftest.dir
7779 cat >Imakefile <<'_ACEOF'
7780incroot:
7781 @echo incroot='${INCROOT}'
7782usrlibdir:
7783 @echo usrlibdir='${USRLIBDIR}'
7784libdir:
7785 @echo libdir='${LIBDIR}'
7786_ACEOF
7787 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7789 for ac_var in incroot usrlibdir libdir; do
7790 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7791 done
7792 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7793 for ac_extension in a so sl dylib la dll; do
7794 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7795 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7796 ac_im_usrlibdir=$ac_im_libdir; break
7797 fi
7798 done
7799 # Screen out bogus values from the imake configuration. They are
7800 # bogus both because they are the default anyway, and because
7801 # using them would break gcc on systems where it needs fixed includes.
7802 case $ac_im_incroot in
7803 /usr/include) ac_x_includes= ;;
7804 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7805 esac
7806 case $ac_im_usrlibdir in
7807 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7808 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7809 esac
7810 fi
7811 cd ..
7812 rm -f -r conftest.dir
7813fi
7814
7815# Standard set of common directories for X headers.
7816# Check X11 before X11Rn because it is often a symlink to the current release.
7817ac_x_header_dirs='
7818/usr/X11/include
7819/usr/X11R6/include
7820/usr/X11R5/include
7821/usr/X11R4/include
7822
7823/usr/include/X11
7824/usr/include/X11R6
7825/usr/include/X11R5
7826/usr/include/X11R4
7827
7828/usr/local/X11/include
7829/usr/local/X11R6/include
7830/usr/local/X11R5/include
7831/usr/local/X11R4/include
7832
7833/usr/local/include/X11
7834/usr/local/include/X11R6
7835/usr/local/include/X11R5
7836/usr/local/include/X11R4
7837
7838/usr/X386/include
7839/usr/x386/include
7840/usr/XFree86/include/X11
7841
7842/usr/include
7843/usr/local/include
7844/usr/unsupported/include
7845/usr/athena/include
7846/usr/local/x11r5/include
7847/usr/lpp/Xamples/include
7848
7849/usr/openwin/include
7850/usr/openwin/share/include'
7851
7852if test "$ac_x_includes" = no; then
7853 # Guess where to find include files, by looking for Xlib.h.
7854 # First, try using that file with no special directory specified.
7855 cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
7861#include <X11/Xlib.h>
7862_ACEOF
7863if { (ac_try="$ac_cpp conftest.$ac_ext"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7869$as_echo "$ac_try_echo") >&5
7870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } >/dev/null && {
7877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 }; then
7880 # We can compile using X headers with no special include directory.
7881ac_x_includes=
7882else
7883 $as_echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 for ac_dir in $ac_x_header_dirs; do
7887 if test -r "$ac_dir/X11/Xlib.h"; then
7888 ac_x_includes=$ac_dir
7889 break
7890 fi
7891done
7892fi
7893
7894rm -f conftest.err conftest.$ac_ext
7895fi # $ac_x_includes = no
7896
7897if test "$ac_x_libraries" = no; then
7898 # Check for the libraries.
7899 # See if we find them without any special options.
7900 # Don't add to $LIBS permanently.
7901 ac_save_LIBS=$LIBS
7902 LIBS="-lX11 $LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
7909#include <X11/Xlib.h>
7910int
7911main ()
7912{
7913XrmInitialize ()
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918rm -f conftest.$ac_objext conftest$ac_exeext
7919if { (ac_try="$ac_link"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925$as_echo "$ac_try_echo") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext && {
7936 test "$cross_compiling" = yes ||
7937 $as_test_x conftest$ac_exeext
7938 }; then
7939 LIBS=$ac_save_LIBS
7940# We can link X programs with no special library path.
7941ac_x_libraries=
7942else
7943 $as_echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 LIBS=$ac_save_LIBS
7947for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7948do
7949 # Don't even attempt the hair of trying to link an X program!
7950 for ac_extension in a so sl dylib la dll; do
7951 if test -r "$ac_dir/libX11.$ac_extension"; then
7952 ac_x_libraries=$ac_dir
7953 break 2
7954 fi
7955 done
7956done
7957fi
7958
7959rm -rf conftest.dSYM
7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962fi # $ac_x_libraries = no
7963
7964case $ac_x_includes,$ac_x_libraries in #(
7965 no,* | *,no | *\'*)
7966 # Didn't find X, or a directory has "'" in its name.
7967 ac_cv_have_x="have_x=no";; #(
7968 *)
7969 # Record where we found X for the cache.
7970 ac_cv_have_x="have_x=yes\
7971 ac_x_includes='$ac_x_includes'\
7972 ac_x_libraries='$ac_x_libraries'"
7973esac
7974fi
7975;; #(
7976 *) have_x=yes;;
7977 esac
7978 eval "$ac_cv_have_x"
7979fi # $with_x != no
7980
7981if test "$have_x" != yes; then
7982 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7983$as_echo "$have_x" >&6; }
7984 no_x=yes
7985else
7986 # If each of the values was on the command line, it overrides each guess.
7987 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7988 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7989 # Update the cache value to reflect the command line values.
7990 ac_cv_have_x="have_x=yes\
7991 ac_x_includes='$x_includes'\
7992 ac_x_libraries='$x_libraries'"
7993 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7994$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7995fi
7996
7997
7998ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004{ $as_echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
8005$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8006if test "${ax_cv_c_compiler_ms+set}" = set; then
8007 $as_echo_n "(cached) " >&6
8008else
8009 cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h. */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h. */
8015
8016int
8017main ()
8018{
8019#ifndef _MSC_VER
8020 choke me
8021#endif
8022
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (ac_try="$ac_compile"
8029case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8034$as_echo "$ac_try_echo") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8045 ax_compiler_ms=yes
8046else
8047 $as_echo "$as_me: failed program was:" >&5
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ax_compiler_ms=no
8051fi
8052
8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054ax_cv_c_compiler_ms=$ax_compiler_ms
8055
8056fi
8057{ $as_echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
8058$as_echo "$ax_cv_c_compiler_ms" >&6; }
8059if test X$ax_compiler_ms = Xno; then
8060 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8061fi
8062
8063
8064#
8065# Use x_includes and x_libraries if they have been set (presumably by
8066# AC_PATH_X).
8067#
8068if test X$no_x != Xyes; then
8069 if test -n "$x_includes"; then
8070 CL_CFLAGS="-I$x_includes $CL_CFLAGS"
8071fi
8072
8073 if test -n "$x_libraries"; then
8074 CL_LIBS="-L$x_libraries -lX11 $CL_LIBS"
8075fi
8076
8077fi
8078
8079
8080ax_save_CPPFLAGS=$CPPFLAGS
8081CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8082
8083
8084for ac_header in CL/cl.h OpenCL/cl.h
8085do
8086as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8089$as_echo_n "checking for $ac_header... " >&6; }
8090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 $as_echo_n "(cached) " >&6
8092fi
8093ac_res=`eval 'as_val=${'$as_ac_Header'}
8094 $as_echo "$as_val"'`
8095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8096$as_echo "$ac_res" >&6; }
8097else
8098 # Is the header compilable?
8099{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100$as_echo_n "checking $ac_header usability... " >&6; }
8101cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107$ac_includes_default
8108#include <$ac_header>
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_header_compiler=yes
8129else
8130 $as_echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_header_compiler=no
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8138$as_echo "$ac_header_compiler" >&6; }
8139
8140# Is the header present?
8141{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8142$as_echo_n "checking $ac_header presence... " >&6; }
8143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149#include <$ac_header>
8150_ACEOF
8151if { (ac_try="$ac_cpp conftest.$ac_ext"
8152case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155esac
8156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157$as_echo "$ac_try_echo") >&5
8158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null && {
8165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 }; then
8168 ac_header_preproc=yes
8169else
8170 $as_echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_preproc=no
8174fi
8175
8176rm -f conftest.err conftest.$ac_ext
8177{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178$as_echo "$ac_header_preproc" >&6; }
8179
8180# So? What about this header?
8181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182 yes:no: )
8183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8186$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8187 ac_header_preproc=yes
8188 ;;
8189 no:yes:* )
8190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8195$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8197$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8201$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8202 ( cat <<\_ASBOX
8203## ----------------------------------------- ##
8204## Report this to http://www.imagemagick.org ##
8205## ----------------------------------------- ##
8206_ASBOX
8207 ) | sed "s/^/$as_me: WARNING: /" >&2
8208 ;;
8209esac
8210{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8211$as_echo_n "checking for $ac_header... " >&6; }
8212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8213 $as_echo_n "(cached) " >&6
8214else
8215 eval "$as_ac_Header=\$ac_header_preproc"
8216fi
8217ac_res=`eval 'as_val=${'$as_ac_Header'}
8218 $as_echo "$as_val"'`
8219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8220$as_echo "$ac_res" >&6; }
8221
8222fi
8223as_val=`eval 'as_val=${'$as_ac_Header'}
8224 $as_echo "$as_val"'`
8225 if test "x$as_val" = x""yes; then
8226 cat >>confdefs.h <<_ACEOF
8227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8228_ACEOF
8229
8230fi
8231
8232done
8233
8234CPPFLAGS=$ax_save_CPPFLAGS
8235
8236
8237for ac_header in windows.h
8238do
8239as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8242$as_echo_n "checking for $ac_header... " >&6; }
8243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8244 $as_echo_n "(cached) " >&6
8245fi
8246ac_res=`eval 'as_val=${'$as_ac_Header'}
8247 $as_echo "$as_val"'`
8248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8249$as_echo "$ac_res" >&6; }
8250else
8251 # Is the header compilable?
8252{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8253$as_echo_n "checking $ac_header usability... " >&6; }
8254cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260$ac_includes_default
8261#include <$ac_header>
8262_ACEOF
8263rm -f conftest.$ac_objext
8264if { (ac_try="$ac_compile"
8265case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268esac
8269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8270$as_echo "$ac_try_echo") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_header_compiler=yes
8282else
8283 $as_echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_header_compiler=no
8287fi
8288
8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291$as_echo "$ac_header_compiler" >&6; }
8292
8293# Is the header present?
8294{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8295$as_echo_n "checking $ac_header presence... " >&6; }
8296cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302#include <$ac_header>
8303_ACEOF
8304if { (ac_try="$ac_cpp conftest.$ac_ext"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310$as_echo "$ac_try_echo") >&5
8311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } >/dev/null && {
8318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 }; then
8321 ac_header_preproc=yes
8322else
8323 $as_echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ac_header_preproc=no
8327fi
8328
8329rm -f conftest.err conftest.$ac_ext
8330{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8331$as_echo "$ac_header_preproc" >&6; }
8332
8333# So? What about this header?
8334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8335 yes:no: )
8336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8337$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8339$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8340 ac_header_preproc=yes
8341 ;;
8342 no:yes:* )
8343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8344$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8346$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8348$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8350$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8352$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8354$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8355 ( cat <<\_ASBOX
8356## ----------------------------------------- ##
8357## Report this to http://www.imagemagick.org ##
8358## ----------------------------------------- ##
8359_ASBOX
8360 ) | sed "s/^/$as_me: WARNING: /" >&2
8361 ;;
8362esac
8363{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8364$as_echo_n "checking for $ac_header... " >&6; }
8365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366 $as_echo_n "(cached) " >&6
8367else
8368 eval "$as_ac_Header=\$ac_header_preproc"
8369fi
8370ac_res=`eval 'as_val=${'$as_ac_Header'}
8371 $as_echo "$as_val"'`
8372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8373$as_echo "$ac_res" >&6; }
8374
8375fi
8376as_val=`eval 'as_val=${'$as_ac_Header'}
8377 $as_echo "$as_val"'`
8378 if test "x$as_val" = x""yes; then
8379 cat >>confdefs.h <<_ACEOF
8380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8381_ACEOF
8382
8383fi
8384
8385done
8386
8387
8388
8389
8390{ $as_echo "$as_me:$LINENO: checking for OpenCL library" >&5
8391$as_echo_n "checking for OpenCL library... " >&6; }
8392if test "${ax_cv_check_cl_libcl+set}" = set; then
8393 $as_echo_n "(cached) " >&6
8394else
8395 ax_cv_check_cl_libcl=no
8396case $host_cpu in
8397 x86_64) ax_check_cl_libdir=lib64 ;;
8398 *) ax_check_cl_libdir=lib ;;
8399esac
8400ax_save_CPPFLAGS=$CPPFLAGS
8401CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8402ax_save_LIBS=$LIBS
8403LIBS=""
cristya49aa422009-09-20 23:40:10 +00008404ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00008405for ax_lib in $ax_check_libs; do
8406 if test X$ax_compiler_ms = Xyes; then
8407 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8408else
8409 ax_try_lib=$ax_lib
8410fi
8411
8412 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8413cat >conftest.$ac_ext <<_ACEOF
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8419
8420# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8421# include <windows.h>
8422# endif
8423# ifdef HAVE_CL_CL_H
8424# include <CL/cl.h>
8425# elif defined(HAVE_OPENCL_CL_H)
8426# include <OpenCL/cl.h>
8427# else
8428# error no cl.h
8429# endif
8430int
8431main ()
8432{
8433clBegin(0)
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (ac_try="$ac_link"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445$as_echo "$ac_try_echo") >&5
8446 (eval "$ac_link") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest$ac_exeext && {
8456 test "$cross_compiling" = yes ||
8457 $as_test_x conftest$ac_exeext
8458 }; then
8459 ax_cv_check_cl_libcl=$ax_try_lib; break
8460else
8461 $as_echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466/* confdefs.h. */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h. */
8471
8472# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8473# include <windows.h>
8474# endif
8475# ifdef HAVE_CL_CL_H
8476# include <CL/cl.h>
8477# elif defined(HAVE_OPENCL_CL_H)
8478# include <OpenCL/cl.h>
8479# else
8480# error no cl.h
8481# endif
8482int
8483main ()
8484{
8485clBegin(0)
8486 ;
8487 return 0;
8488}
8489_ACEOF
8490rm -f conftest.$ac_objext conftest$ac_exeext
8491if { (ac_try="$ac_link"
8492case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8497$as_echo "$ac_try_echo") >&5
8498 (eval "$ac_link") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest$ac_exeext && {
8508 test "$cross_compiling" = yes ||
8509 $as_test_x conftest$ac_exeext
8510 }; then
8511 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8512else
8513 $as_echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
8517 cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523
8524# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8525# include <windows.h>
8526# endif
8527# ifdef HAVE_CL_CL_H
8528# include <CL/cl.h>
8529# elif defined(HAVE_OPENCL_CL_H)
8530# include <OpenCL/cl.h>
8531# else
8532# error no cl.h
8533# endif
8534int
8535main ()
8536{
8537clBegin(0)
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext conftest$ac_exeext
8543if { (ac_try="$ac_link"
8544case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547esac
8548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549$as_echo "$ac_try_echo") >&5
8550 (eval "$ac_link") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext && {
8560 test "$cross_compiling" = yes ||
8561 $as_test_x conftest$ac_exeext
8562 }; then
8563 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8564else
8565 $as_echo "$as_me: failed program was:" >&5
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
8568
8569fi
8570
8571rm -rf conftest.dSYM
8572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574fi
8575
8576rm -rf conftest.dSYM
8577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8578 conftest$ac_exeext conftest.$ac_ext
8579fi
8580
8581rm -rf conftest.dSYM
8582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583 conftest$ac_exeext conftest.$ac_ext
8584done
8585
8586if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then
8587 LIBS='-framework OpenCL'
8588 cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594
8595# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8596# include <windows.h>
8597# endif
8598# ifdef HAVE_CL_CL_H
8599# include <CL/cl.h>
8600# elif defined(HAVE_OPENCL_CL_H)
8601# include <OpenCL/cl.h>
8602# else
8603# error no cl.h
8604# endif
8605int
8606main ()
8607{
8608clBegin(0)
8609 ;
8610 return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (ac_try="$ac_link"
8615case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8620$as_echo "$ac_try_echo") >&5
8621 (eval "$ac_link") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest$ac_exeext && {
8631 test "$cross_compiling" = yes ||
8632 $as_test_x conftest$ac_exeext
8633 }; then
8634 ax_cv_check_cl_libcl=$LIBS
8635else
8636 $as_echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639
8640fi
8641
8642rm -rf conftest.dSYM
8643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8644 conftest$ac_exeext conftest.$ac_ext
8645fi
8646
8647
8648LIBS=$ax_save_LIBS
8649CPPFLAGS=$ax_save_CPPFLAGS
8650fi
8651{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cl_libcl" >&5
8652$as_echo "$ax_cv_check_cl_libcl" >&6; }
8653
8654if test "X$ax_cv_check_cl_libcl" = Xno; then
8655 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8656else
8657 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
8658fi
8659
8660ac_ext=c
8661ac_cpp='$CPP $CPPFLAGS'
8662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664ac_compiler_gnu=$ac_cv_c_compiler_gnu
8665
8666
8667
8668
8669
8670
cristy3ed852e2009-09-05 21:47:34 +00008671########
8672#
8673# Check for large file support
8674#
8675########
8676# Check whether --enable-largefile was given.
8677if test "${enable_largefile+set}" = set; then
8678 enableval=$enable_largefile;
8679fi
8680
8681if test "$enable_largefile" != no; then
8682
8683 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8684$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8685if test "${ac_cv_sys_largefile_CC+set}" = set; then
8686 $as_echo_n "(cached) " >&6
8687else
8688 ac_cv_sys_largefile_CC=no
8689 if test "$GCC" != yes; then
8690 ac_save_CC=$CC
8691 while :; do
8692 # IRIX 6.2 and later do not support large files by default,
8693 # so use the C compiler's -n32 option if that helps.
8694 cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700#include <sys/types.h>
8701 /* Check that off_t can represent 2**63 - 1 correctly.
8702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8703 since some C++ compilers masquerading as C compilers
8704 incorrectly reject 9223372036854775807. */
8705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8707 && LARGE_OFF_T % 2147483647 == 1)
8708 ? 1 : -1];
8709int
8710main ()
8711{
8712
8713 ;
8714 return 0;
8715}
8716_ACEOF
8717 rm -f conftest.$ac_objext
8718if { (ac_try="$ac_compile"
8719case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722esac
8723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724$as_echo "$ac_try_echo") >&5
8725 (eval "$ac_compile") 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest.$ac_objext; then
8735 break
8736else
8737 $as_echo "$as_me: failed program was:" >&5
8738sed 's/^/| /' conftest.$ac_ext >&5
8739
8740
8741fi
8742
8743rm -f core conftest.err conftest.$ac_objext
8744 CC="$CC -n32"
8745 rm -f conftest.$ac_objext
8746if { (ac_try="$ac_compile"
8747case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750esac
8751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752$as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_sys_largefile_CC=' -n32'; break
8764else
8765 $as_echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
8768
8769fi
8770
8771rm -f core conftest.err conftest.$ac_objext
8772 break
8773 done
8774 CC=$ac_save_CC
8775 rm -f conftest.$ac_ext
8776 fi
8777fi
8778{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8779$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8780 if test "$ac_cv_sys_largefile_CC" != no; then
8781 CC=$CC$ac_cv_sys_largefile_CC
8782 fi
8783
8784 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8785$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8786if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8787 $as_echo_n "(cached) " >&6
8788else
8789 while :; do
8790 cat >conftest.$ac_ext <<_ACEOF
8791/* confdefs.h. */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h. */
8796#include <sys/types.h>
8797 /* Check that off_t can represent 2**63 - 1 correctly.
8798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8799 since some C++ compilers masquerading as C compilers
8800 incorrectly reject 9223372036854775807. */
8801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8803 && LARGE_OFF_T % 2147483647 == 1)
8804 ? 1 : -1];
8805int
8806main ()
8807{
8808
8809 ;
8810 return 0;
8811}
8812_ACEOF
8813rm -f conftest.$ac_objext
8814if { (ac_try="$ac_compile"
8815case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818esac
8819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8820$as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
8831 ac_cv_sys_file_offset_bits=no; break
8832else
8833 $as_echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836
8837fi
8838
8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 cat >conftest.$ac_ext <<_ACEOF
8841/* confdefs.h. */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h. */
8846#define _FILE_OFFSET_BITS 64
8847#include <sys/types.h>
8848 /* Check that off_t can represent 2**63 - 1 correctly.
8849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8850 since some C++ compilers masquerading as C compilers
8851 incorrectly reject 9223372036854775807. */
8852#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8854 && LARGE_OFF_T % 2147483647 == 1)
8855 ? 1 : -1];
8856int
8857main ()
8858{
8859
8860 ;
8861 return 0;
8862}
8863_ACEOF
8864rm -f conftest.$ac_objext
8865if { (ac_try="$ac_compile"
8866case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
8870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8871$as_echo "$ac_try_echo") >&5
8872 (eval "$ac_compile") 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && {
8879 test -z "$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 } && test -s conftest.$ac_objext; then
8882 ac_cv_sys_file_offset_bits=64; break
8883else
8884 $as_echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887
8888fi
8889
8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 ac_cv_sys_file_offset_bits=unknown
8892 break
8893done
8894fi
8895{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8896$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8897case $ac_cv_sys_file_offset_bits in #(
8898 no | unknown) ;;
8899 *)
8900cat >>confdefs.h <<_ACEOF
8901#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8902_ACEOF
8903;;
8904esac
8905rm -rf conftest*
8906 if test $ac_cv_sys_file_offset_bits = unknown; then
8907 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8908$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8909if test "${ac_cv_sys_large_files+set}" = set; then
8910 $as_echo_n "(cached) " >&6
8911else
8912 while :; do
8913 cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919#include <sys/types.h>
8920 /* Check that off_t can represent 2**63 - 1 correctly.
8921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8922 since some C++ compilers masquerading as C compilers
8923 incorrectly reject 9223372036854775807. */
8924#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8926 && LARGE_OFF_T % 2147483647 == 1)
8927 ? 1 : -1];
8928int
8929main ()
8930{
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (ac_try="$ac_compile"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943$as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_cv_sys_large_files=no; break
8955else
8956 $as_echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959
8960fi
8961
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969#define _LARGE_FILES 1
8970#include <sys/types.h>
8971 /* Check that off_t can represent 2**63 - 1 correctly.
8972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8973 since some C++ compilers masquerading as C compilers
8974 incorrectly reject 9223372036854775807. */
8975#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8977 && LARGE_OFF_T % 2147483647 == 1)
8978 ? 1 : -1];
8979int
8980main ()
8981{
8982
8983 ;
8984 return 0;
8985}
8986_ACEOF
8987rm -f conftest.$ac_objext
8988if { (ac_try="$ac_compile"
8989case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992esac
8993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8994$as_echo "$ac_try_echo") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest.$ac_objext; then
9005 ac_cv_sys_large_files=1; break
9006else
9007 $as_echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010
9011fi
9012
9013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 ac_cv_sys_large_files=unknown
9015 break
9016done
9017fi
9018{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9019$as_echo "$ac_cv_sys_large_files" >&6; }
9020case $ac_cv_sys_large_files in #(
9021 no | unknown) ;;
9022 *)
9023cat >>confdefs.h <<_ACEOF
9024#define _LARGE_FILES $ac_cv_sys_large_files
9025_ACEOF
9026;;
9027esac
9028rm -rf conftest*
9029 fi
9030fi
9031
9032{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9033$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9034if test "${ac_cv_sys_largefile_source+set}" = set; then
9035 $as_echo_n "(cached) " >&6
9036else
9037 while :; do
9038 cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
9044#include <sys/types.h> /* for off_t */
9045 #include <stdio.h>
9046int
9047main ()
9048{
9049int (*fp) (FILE *, off_t, int) = fseeko;
9050 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext conftest$ac_exeext
9056if { (ac_try="$ac_link"
9057case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060esac
9061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9062$as_echo "$ac_try_echo") >&5
9063 (eval "$ac_link") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest$ac_exeext && {
9073 test "$cross_compiling" = yes ||
9074 $as_test_x conftest$ac_exeext
9075 }; then
9076 ac_cv_sys_largefile_source=no; break
9077else
9078 $as_echo "$as_me: failed program was:" >&5
9079sed 's/^/| /' conftest.$ac_ext >&5
9080
9081
9082fi
9083
9084rm -rf conftest.dSYM
9085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9086 conftest$ac_exeext conftest.$ac_ext
9087 cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h. */
9093#define _LARGEFILE_SOURCE 1
9094#include <sys/types.h> /* for off_t */
9095 #include <stdio.h>
9096int
9097main ()
9098{
9099int (*fp) (FILE *, off_t, int) = fseeko;
9100 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9101 ;
9102 return 0;
9103}
9104_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (ac_try="$ac_link"
9107case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110esac
9111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9112$as_echo "$ac_try_echo") >&5
9113 (eval "$ac_link") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext && {
9123 test "$cross_compiling" = yes ||
9124 $as_test_x conftest$ac_exeext
9125 }; then
9126 ac_cv_sys_largefile_source=1; break
9127else
9128 $as_echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131
9132fi
9133
9134rm -rf conftest.dSYM
9135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext conftest.$ac_ext
9137 ac_cv_sys_largefile_source=unknown
9138 break
9139done
9140fi
9141{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9142$as_echo "$ac_cv_sys_largefile_source" >&6; }
9143case $ac_cv_sys_largefile_source in #(
9144 no | unknown) ;;
9145 *)
9146cat >>confdefs.h <<_ACEOF
9147#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9148_ACEOF
9149;;
9150esac
9151rm -rf conftest*
9152
9153# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9154# in glibc 2.1.3, but that breaks too many other things.
9155# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9156if test $ac_cv_sys_largefile_source != unknown; then
9157
9158cat >>confdefs.h <<\_ACEOF
9159#define HAVE_FSEEKO 1
9160_ACEOF
9161
9162fi
9163
9164LFS_CPPFLAGS=''
9165if test "$enable_largefile" != no; then
9166 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9167 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9168 else
9169 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
9170$as_echo_n "checking for native large file support... " >&6; }
9171 if test "$cross_compiling" = yes; then
9172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9174{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9175See \`config.log' for more details." >&5
9176$as_echo "$as_me: error: cannot run test program while cross compiling
9177See \`config.log' for more details." >&2;}
9178 { (exit 1); exit 1; }; }; }
9179else
9180 cat >conftest.$ac_ext <<_ACEOF
9181#include <unistd.h>
9182 main () {
9183 exit(!(sizeof(off_t) == 8));
9184 }
9185_ACEOF
9186rm -f conftest$ac_exeext
9187if { (ac_try="$ac_link"
9188case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9193$as_echo "$ac_try_echo") >&5
9194 (eval "$ac_link") 2>&5
9195 ac_status=$?
9196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201esac
9202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9203$as_echo "$ac_try_echo") >&5
9204 (eval "$ac_try") 2>&5
9205 ac_status=$?
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
9209#define _FILE_OFFSET_BITS 64
9210_ACEOF
9211
9212 { $as_echo "$as_me:$LINENO: result: yes" >&5
9213$as_echo "yes" >&6; }
9214else
9215 $as_echo "$as_me: program exited with status $ac_status" >&5
9216$as_echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
9219( exit $ac_status )
9220{ $as_echo "$as_me:$LINENO: result: no" >&5
9221$as_echo "no" >&6; }
9222fi
9223rm -rf conftest.dSYM
9224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9225fi
9226
9227
9228 fi
9229 if test "$ac_cv_sys_large_files" != 'no'; then
9230 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9231 fi
9232 if test "$ac_cv_sys_largefile_source" != 'no'; then
9233 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9234 fi
9235fi
9236
9237
9238#
9239# Configure libtool & libltdl
9240#
9241# Configure libtool
9242enable_dlopen=yes
9243
9244
9245
9246case `pwd` in
9247 *\ * | *\ *)
9248 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9249$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9250esac
9251
9252
9253
9254macro_version='2.2.6'
9255macro_revision='1.3012'
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269ltmain="$ac_aux_dir/ltmain.sh"
9270
9271{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
9272$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9273if test "${lt_cv_path_NM+set}" = set; then
9274 $as_echo_n "(cached) " >&6
9275else
9276 if test -n "$NM"; then
9277 # Let the user override the test.
9278 lt_cv_path_NM="$NM"
9279else
9280 lt_nm_to_check="${ac_tool_prefix}nm"
9281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9282 lt_nm_to_check="$lt_nm_to_check nm"
9283 fi
9284 for lt_tmp_nm in $lt_nm_to_check; do
9285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9287 IFS="$lt_save_ifs"
9288 test -z "$ac_dir" && ac_dir=.
9289 tmp_nm="$ac_dir/$lt_tmp_nm"
9290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9291 # Check to see if the nm accepts a BSD-compat flag.
9292 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9293 # nm: unknown option "B" ignored
9294 # Tru64's nm complains that /dev/null is an invalid object file
9295 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9296 */dev/null* | *'Invalid file or object type'*)
9297 lt_cv_path_NM="$tmp_nm -B"
9298 break
9299 ;;
9300 *)
9301 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9302 */dev/null*)
9303 lt_cv_path_NM="$tmp_nm -p"
9304 break
9305 ;;
9306 *)
9307 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9308 continue # so that we can try to find one that supports BSD flags
9309 ;;
9310 esac
9311 ;;
9312 esac
9313 fi
9314 done
9315 IFS="$lt_save_ifs"
9316 done
9317 : ${lt_cv_path_NM=no}
9318fi
9319fi
9320{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9321$as_echo "$lt_cv_path_NM" >&6; }
9322if test "$lt_cv_path_NM" != "no"; then
9323 NM="$lt_cv_path_NM"
9324else
9325 # Didn't find any BSD compatible name lister, look for dumpbin.
9326 if test -n "$ac_tool_prefix"; then
9327 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9328 do
9329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_DUMPBIN+set}" = set; then
9334 $as_echo_n "(cached) " >&6
9335else
9336 if test -n "$DUMPBIN"; then
9337 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9338else
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9349 fi
9350done
9351done
9352IFS=$as_save_IFS
9353
9354fi
9355fi
9356DUMPBIN=$ac_cv_prog_DUMPBIN
9357if test -n "$DUMPBIN"; then
9358 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
9359$as_echo "$DUMPBIN" >&6; }
9360else
9361 { $as_echo "$as_me:$LINENO: result: no" >&5
9362$as_echo "no" >&6; }
9363fi
9364
9365
9366 test -n "$DUMPBIN" && break
9367 done
9368fi
9369if test -z "$DUMPBIN"; then
9370 ac_ct_DUMPBIN=$DUMPBIN
9371 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9372do
9373 # Extract the first word of "$ac_prog", so it can be a program name with args.
9374set dummy $ac_prog; ac_word=$2
9375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9376$as_echo_n "checking for $ac_word... " >&6; }
9377if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
9378 $as_echo_n "(cached) " >&6
9379else
9380 if test -n "$ac_ct_DUMPBIN"; then
9381 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9382else
9383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384for as_dir in $PATH
9385do
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9393 fi
9394done
9395done
9396IFS=$as_save_IFS
9397
9398fi
9399fi
9400ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9401if test -n "$ac_ct_DUMPBIN"; then
9402 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
9403$as_echo "$ac_ct_DUMPBIN" >&6; }
9404else
9405 { $as_echo "$as_me:$LINENO: result: no" >&5
9406$as_echo "no" >&6; }
9407fi
9408
9409
9410 test -n "$ac_ct_DUMPBIN" && break
9411done
9412
9413 if test "x$ac_ct_DUMPBIN" = x; then
9414 DUMPBIN=":"
9415 else
9416 case $cross_compiling:$ac_tool_warned in
9417yes:)
9418{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9420ac_tool_warned=yes ;;
9421esac
9422 DUMPBIN=$ac_ct_DUMPBIN
9423 fi
9424fi
9425
9426
9427 if test "$DUMPBIN" != ":"; then
9428 NM="$DUMPBIN"
9429 fi
9430fi
9431test -z "$NM" && NM=nm
9432
9433
9434
9435
9436
9437
9438{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
9439$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9440if test "${lt_cv_nm_interface+set}" = set; then
9441 $as_echo_n "(cached) " >&6
9442else
9443 lt_cv_nm_interface="BSD nm"
9444 echo "int some_variable = 0;" > conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009445 (eval echo "\"\$as_me:9445: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009446 (eval "$ac_compile" 2>conftest.err)
9447 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +00009448 (eval echo "\"\$as_me:9448: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009449 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9450 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +00009451 (eval echo "\"\$as_me:9451: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009452 cat conftest.out >&5
9453 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9454 lt_cv_nm_interface="MS dumpbin"
9455 fi
9456 rm -f conftest*
9457fi
9458{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
9459$as_echo "$lt_cv_nm_interface" >&6; }
9460
9461# find the maximum length of command line arguments
9462{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9463$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9464if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9465 $as_echo_n "(cached) " >&6
9466else
9467 i=0
9468 teststring="ABCD"
9469
9470 case $build_os in
9471 msdosdjgpp*)
9472 # On DJGPP, this test can blow up pretty badly due to problems in libc
9473 # (any single argument exceeding 2000 bytes causes a buffer overrun
9474 # during glob expansion). Even if it were fixed, the result of this
9475 # check would be larger than it should be.
9476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9477 ;;
9478
9479 gnu*)
9480 # Under GNU Hurd, this test is not required because there is
9481 # no limit to the length of command line arguments.
9482 # Libtool will interpret -1 as no limit whatsoever
9483 lt_cv_sys_max_cmd_len=-1;
9484 ;;
9485
9486 cygwin* | mingw* | cegcc*)
9487 # On Win9x/ME, this test blows up -- it succeeds, but takes
9488 # about 5 minutes as the teststring grows exponentially.
9489 # Worse, since 9x/ME are not pre-emptively multitasking,
9490 # you end up with a "frozen" computer, even though with patience
9491 # the test eventually succeeds (with a max line length of 256k).
9492 # Instead, let's just punt: use the minimum linelength reported by
9493 # all of the supported platforms: 8192 (on NT/2K/XP).
9494 lt_cv_sys_max_cmd_len=8192;
9495 ;;
9496
9497 amigaos*)
9498 # On AmigaOS with pdksh, this test takes hours, literally.
9499 # So we just punt and use a minimum line length of 8192.
9500 lt_cv_sys_max_cmd_len=8192;
9501 ;;
9502
9503 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9504 # This has been around since 386BSD, at least. Likely further.
9505 if test -x /sbin/sysctl; then
9506 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9507 elif test -x /usr/sbin/sysctl; then
9508 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9509 else
9510 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9511 fi
9512 # And add a safety zone
9513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9515 ;;
9516
9517 interix*)
9518 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9519 lt_cv_sys_max_cmd_len=196608
9520 ;;
9521
9522 osf*)
9523 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9524 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9525 # nice to cause kernel panics so lets avoid the loop below.
9526 # First set a reasonable default.
9527 lt_cv_sys_max_cmd_len=16384
9528 #
9529 if test -x /sbin/sysconfig; then
9530 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9531 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9532 esac
9533 fi
9534 ;;
9535 sco3.2v5*)
9536 lt_cv_sys_max_cmd_len=102400
9537 ;;
9538 sysv5* | sco5v6* | sysv4.2uw2*)
9539 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9540 if test -n "$kargmax"; then
9541 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9542 else
9543 lt_cv_sys_max_cmd_len=32768
9544 fi
9545 ;;
9546 *)
9547 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9548 if test -n "$lt_cv_sys_max_cmd_len"; then
9549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9551 else
9552 # Make teststring a little bigger before we do anything with it.
9553 # a 1K string should be a reasonable start.
9554 for i in 1 2 3 4 5 6 7 8 ; do
9555 teststring=$teststring$teststring
9556 done
9557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9558 # If test is not a shell built-in, we'll probably end up computing a
9559 # maximum length that is only half of the actual maximum length, but
9560 # we can't tell.
9561 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9562 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9563 test $i != 17 # 1/2 MB should be enough
9564 do
9565 i=`expr $i + 1`
9566 teststring=$teststring$teststring
9567 done
9568 # Only check the string length outside the loop.
9569 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9570 teststring=
9571 # Add a significant safety factor because C++ compilers can tack on
9572 # massive amounts of additional arguments before passing them to the
9573 # linker. It appears as though 1/2 is a usable value.
9574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9575 fi
9576 ;;
9577 esac
9578
9579fi
9580
9581if test -n $lt_cv_sys_max_cmd_len ; then
9582 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9583$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9584else
9585 { $as_echo "$as_me:$LINENO: result: none" >&5
9586$as_echo "none" >&6; }
9587fi
9588max_cmd_len=$lt_cv_sys_max_cmd_len
9589
9590
9591
9592
9593
9594
9595: ${CP="cp -f"}
9596: ${MV="mv -f"}
9597: ${RM="rm -f"}
9598
9599{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
9600$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9601# Try some XSI features
9602xsi_shell=no
9603( _lt_dummy="a/b/c"
9604 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9605 = c,a/b,, \
9606 && eval 'test $(( 1 + 1 )) -eq 2 \
9607 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9608 && xsi_shell=yes
9609{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
9610$as_echo "$xsi_shell" >&6; }
9611
9612
9613{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
9614$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9615lt_shell_append=no
9616( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9617 >/dev/null 2>&1 \
9618 && lt_shell_append=yes
9619{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
9620$as_echo "$lt_shell_append" >&6; }
9621
9622
9623if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9624 lt_unset=unset
9625else
9626 lt_unset=false
9627fi
9628
9629
9630
9631
9632
9633# test EBCDIC or ASCII
9634case `echo X|tr X '\101'` in
9635 A) # ASCII based system
9636 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9637 lt_SP2NL='tr \040 \012'
9638 lt_NL2SP='tr \015\012 \040\040'
9639 ;;
9640 *) # EBCDIC based system
9641 lt_SP2NL='tr \100 \n'
9642 lt_NL2SP='tr \r\n \100\100'
9643 ;;
9644esac
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9655$as_echo_n "checking for $LD option to reload object files... " >&6; }
9656if test "${lt_cv_ld_reload_flag+set}" = set; then
9657 $as_echo_n "(cached) " >&6
9658else
9659 lt_cv_ld_reload_flag='-r'
9660fi
9661{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9662$as_echo "$lt_cv_ld_reload_flag" >&6; }
9663reload_flag=$lt_cv_ld_reload_flag
9664case $reload_flag in
9665"" | " "*) ;;
9666*) reload_flag=" $reload_flag" ;;
9667esac
9668reload_cmds='$LD$reload_flag -o $output$reload_objs'
9669case $host_os in
9670 darwin*)
9671 if test "$GCC" = yes; then
9672 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9673 else
9674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9675 fi
9676 ;;
9677esac
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687if test -n "$ac_tool_prefix"; then
9688 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9689set dummy ${ac_tool_prefix}objdump; ac_word=$2
9690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
9692if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9694else
9695 if test -n "$OBJDUMP"; then
9696 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9697else
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9708 fi
9709done
9710done
9711IFS=$as_save_IFS
9712
9713fi
9714fi
9715OBJDUMP=$ac_cv_prog_OBJDUMP
9716if test -n "$OBJDUMP"; then
9717 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9718$as_echo "$OBJDUMP" >&6; }
9719else
9720 { $as_echo "$as_me:$LINENO: result: no" >&5
9721$as_echo "no" >&6; }
9722fi
9723
9724
9725fi
9726if test -z "$ac_cv_prog_OBJDUMP"; then
9727 ac_ct_OBJDUMP=$OBJDUMP
9728 # Extract the first word of "objdump", so it can be a program name with args.
9729set dummy objdump; ac_word=$2
9730{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; }
9732if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9733 $as_echo_n "(cached) " >&6
9734else
9735 if test -n "$ac_ct_OBJDUMP"; then
9736 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749done
9750done
9751IFS=$as_save_IFS
9752
9753fi
9754fi
9755ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9756if test -n "$ac_ct_OBJDUMP"; then
9757 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9758$as_echo "$ac_ct_OBJDUMP" >&6; }
9759else
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761$as_echo "no" >&6; }
9762fi
9763
9764 if test "x$ac_ct_OBJDUMP" = x; then
9765 OBJDUMP="false"
9766 else
9767 case $cross_compiling:$ac_tool_warned in
9768yes:)
9769{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9771ac_tool_warned=yes ;;
9772esac
9773 OBJDUMP=$ac_ct_OBJDUMP
9774 fi
9775else
9776 OBJDUMP="$ac_cv_prog_OBJDUMP"
9777fi
9778
9779test -z "$OBJDUMP" && OBJDUMP=objdump
9780
9781
9782
9783
9784
9785
9786{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9787$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9788if test "${lt_cv_deplibs_check_method+set}" = set; then
9789 $as_echo_n "(cached) " >&6
9790else
9791 lt_cv_file_magic_cmd='$MAGIC_CMD'
9792lt_cv_file_magic_test_file=
9793lt_cv_deplibs_check_method='unknown'
9794# Need to set the preceding variable on all platforms that support
9795# interlibrary dependencies.
9796# 'none' -- dependencies not supported.
9797# `unknown' -- same as none, but documents that we really don't know.
9798# 'pass_all' -- all dependencies passed with no checks.
9799# 'test_compile' -- check by making test program.
9800# 'file_magic [[regex]]' -- check by looking for files in library path
9801# which responds to the $file_magic_cmd with a given extended regex.
9802# If you have `file' or equivalent on your system and you're not sure
9803# whether `pass_all' will *always* work, you probably want this one.
9804
9805case $host_os in
9806aix[4-9]*)
9807 lt_cv_deplibs_check_method=pass_all
9808 ;;
9809
9810beos*)
9811 lt_cv_deplibs_check_method=pass_all
9812 ;;
9813
9814bsdi[45]*)
9815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9816 lt_cv_file_magic_cmd='/usr/bin/file -L'
9817 lt_cv_file_magic_test_file=/shlib/libc.so
9818 ;;
9819
9820cygwin*)
9821 # func_win32_libid is a shell function defined in ltmain.sh
9822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9823 lt_cv_file_magic_cmd='func_win32_libid'
9824 ;;
9825
9826mingw* | pw32*)
9827 # Base MSYS/MinGW do not provide the 'file' command needed by
9828 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9829 # unless we find 'file', for example because we are cross-compiling.
9830 if ( file / ) >/dev/null 2>&1; then
9831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9832 lt_cv_file_magic_cmd='func_win32_libid'
9833 else
9834 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9835 lt_cv_file_magic_cmd='$OBJDUMP -f'
9836 fi
9837 ;;
9838
9839cegcc)
9840 # use the weaker test based on 'objdump'. See mingw*.
9841 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9842 lt_cv_file_magic_cmd='$OBJDUMP -f'
9843 ;;
9844
9845darwin* | rhapsody*)
9846 lt_cv_deplibs_check_method=pass_all
9847 ;;
9848
9849freebsd* | dragonfly*)
9850 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9851 case $host_cpu in
9852 i*86 )
9853 # Not sure whether the presence of OpenBSD here was a mistake.
9854 # Let's accept both of them until this is cleared up.
9855 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9856 lt_cv_file_magic_cmd=/usr/bin/file
9857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9858 ;;
9859 esac
9860 else
9861 lt_cv_deplibs_check_method=pass_all
9862 fi
9863 ;;
9864
9865gnu*)
9866 lt_cv_deplibs_check_method=pass_all
9867 ;;
9868
9869hpux10.20* | hpux11*)
9870 lt_cv_file_magic_cmd=/usr/bin/file
9871 case $host_cpu in
9872 ia64*)
9873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9874 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9875 ;;
9876 hppa*64*)
9877 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]'
9878 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9879 ;;
9880 *)
9881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9883 ;;
9884 esac
9885 ;;
9886
9887interix[3-9]*)
9888 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9890 ;;
9891
9892irix5* | irix6* | nonstopux*)
9893 case $LD in
9894 *-32|*"-32 ") libmagic=32-bit;;
9895 *-n32|*"-n32 ") libmagic=N32;;
9896 *-64|*"-64 ") libmagic=64-bit;;
9897 *) libmagic=never-match;;
9898 esac
9899 lt_cv_deplibs_check_method=pass_all
9900 ;;
9901
9902# This must be Linux ELF.
9903linux* | k*bsd*-gnu)
9904 lt_cv_deplibs_check_method=pass_all
9905 ;;
9906
9907netbsd*)
9908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9910 else
9911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9912 fi
9913 ;;
9914
9915newos6*)
9916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9917 lt_cv_file_magic_cmd=/usr/bin/file
9918 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9919 ;;
9920
9921*nto* | *qnx*)
9922 lt_cv_deplibs_check_method=pass_all
9923 ;;
9924
9925openbsd*)
9926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9928 else
9929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9930 fi
9931 ;;
9932
9933osf3* | osf4* | osf5*)
9934 lt_cv_deplibs_check_method=pass_all
9935 ;;
9936
9937rdos*)
9938 lt_cv_deplibs_check_method=pass_all
9939 ;;
9940
9941solaris*)
9942 lt_cv_deplibs_check_method=pass_all
9943 ;;
9944
9945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9946 lt_cv_deplibs_check_method=pass_all
9947 ;;
9948
9949sysv4 | sysv4.3*)
9950 case $host_vendor in
9951 motorola)
9952 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]'
9953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9954 ;;
9955 ncr)
9956 lt_cv_deplibs_check_method=pass_all
9957 ;;
9958 sequent)
9959 lt_cv_file_magic_cmd='/bin/file'
9960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9961 ;;
9962 sni)
9963 lt_cv_file_magic_cmd='/bin/file'
9964 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9965 lt_cv_file_magic_test_file=/lib/libc.so
9966 ;;
9967 siemens)
9968 lt_cv_deplibs_check_method=pass_all
9969 ;;
9970 pc)
9971 lt_cv_deplibs_check_method=pass_all
9972 ;;
9973 esac
9974 ;;
9975
9976tpf*)
9977 lt_cv_deplibs_check_method=pass_all
9978 ;;
9979esac
9980
9981fi
9982{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9983$as_echo "$lt_cv_deplibs_check_method" >&6; }
9984file_magic_cmd=$lt_cv_file_magic_cmd
9985deplibs_check_method=$lt_cv_deplibs_check_method
9986test -z "$deplibs_check_method" && deplibs_check_method=unknown
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999if test -n "$ac_tool_prefix"; then
10000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10001set dummy ${ac_tool_prefix}ar; ac_word=$2
10002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10003$as_echo_n "checking for $ac_word... " >&6; }
10004if test "${ac_cv_prog_AR+set}" = set; then
10005 $as_echo_n "(cached) " >&6
10006else
10007 if test -n "$AR"; then
10008 ac_cv_prog_AR="$AR" # Let the user override the test.
10009else
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_prog_AR="${ac_tool_prefix}ar"
10018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
10023IFS=$as_save_IFS
10024
10025fi
10026fi
10027AR=$ac_cv_prog_AR
10028if test -n "$AR"; then
10029 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10030$as_echo "$AR" >&6; }
10031else
10032 { $as_echo "$as_me:$LINENO: result: no" >&5
10033$as_echo "no" >&6; }
10034fi
10035
10036
10037fi
10038if test -z "$ac_cv_prog_AR"; then
10039 ac_ct_AR=$AR
10040 # Extract the first word of "ar", so it can be a program name with args.
10041set dummy ar; ac_word=$2
10042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
10044if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10045 $as_echo_n "(cached) " >&6
10046else
10047 if test -n "$ac_ct_AR"; then
10048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_ac_ct_AR="ar"
10058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061done
10062done
10063IFS=$as_save_IFS
10064
10065fi
10066fi
10067ac_ct_AR=$ac_cv_prog_ac_ct_AR
10068if test -n "$ac_ct_AR"; then
10069 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10070$as_echo "$ac_ct_AR" >&6; }
10071else
10072 { $as_echo "$as_me:$LINENO: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076 if test "x$ac_ct_AR" = x; then
10077 AR="false"
10078 else
10079 case $cross_compiling:$ac_tool_warned in
10080yes:)
10081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10083ac_tool_warned=yes ;;
10084esac
10085 AR=$ac_ct_AR
10086 fi
10087else
10088 AR="$ac_cv_prog_AR"
10089fi
10090
10091test -z "$AR" && AR=ar
10092test -z "$AR_FLAGS" && AR_FLAGS=cru
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104if test -n "$ac_tool_prefix"; then
10105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10106set dummy ${ac_tool_prefix}strip; ac_word=$2
10107{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10108$as_echo_n "checking for $ac_word... " >&6; }
10109if test "${ac_cv_prog_STRIP+set}" = set; then
10110 $as_echo_n "(cached) " >&6
10111else
10112 if test -n "$STRIP"; then
10113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10114else
10115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116for as_dir in $PATH
10117do
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10125 fi
10126done
10127done
10128IFS=$as_save_IFS
10129
10130fi
10131fi
10132STRIP=$ac_cv_prog_STRIP
10133if test -n "$STRIP"; then
10134 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10135$as_echo "$STRIP" >&6; }
10136else
10137 { $as_echo "$as_me:$LINENO: result: no" >&5
10138$as_echo "no" >&6; }
10139fi
10140
10141
10142fi
10143if test -z "$ac_cv_prog_STRIP"; then
10144 ac_ct_STRIP=$STRIP
10145 # Extract the first word of "strip", so it can be a program name with args.
10146set dummy strip; ac_word=$2
10147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10148$as_echo_n "checking for $ac_word... " >&6; }
10149if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10150 $as_echo_n "(cached) " >&6
10151else
10152 if test -n "$ac_ct_STRIP"; then
10153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10154else
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_prog_ac_ct_STRIP="strip"
10163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166done
10167done
10168IFS=$as_save_IFS
10169
10170fi
10171fi
10172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10173if test -n "$ac_ct_STRIP"; then
10174 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10175$as_echo "$ac_ct_STRIP" >&6; }
10176else
10177 { $as_echo "$as_me:$LINENO: result: no" >&5
10178$as_echo "no" >&6; }
10179fi
10180
10181 if test "x$ac_ct_STRIP" = x; then
10182 STRIP=":"
10183 else
10184 case $cross_compiling:$ac_tool_warned in
10185yes:)
10186{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10188ac_tool_warned=yes ;;
10189esac
10190 STRIP=$ac_ct_STRIP
10191 fi
10192else
10193 STRIP="$ac_cv_prog_STRIP"
10194fi
10195
10196test -z "$STRIP" && STRIP=:
10197
10198
10199
10200
10201
10202
10203if test -n "$ac_tool_prefix"; then
10204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10205set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
10208if test "${ac_cv_prog_RANLIB+set}" = set; then
10209 $as_echo_n "(cached) " >&6
10210else
10211 if test -n "$RANLIB"; then
10212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10213else
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225done
10226done
10227IFS=$as_save_IFS
10228
10229fi
10230fi
10231RANLIB=$ac_cv_prog_RANLIB
10232if test -n "$RANLIB"; then
10233 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
10234$as_echo "$RANLIB" >&6; }
10235else
10236 { $as_echo "$as_me:$LINENO: result: no" >&5
10237$as_echo "no" >&6; }
10238fi
10239
10240
10241fi
10242if test -z "$ac_cv_prog_RANLIB"; then
10243 ac_ct_RANLIB=$RANLIB
10244 # Extract the first word of "ranlib", so it can be a program name with args.
10245set dummy ranlib; ac_word=$2
10246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
10248if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10249 $as_echo_n "(cached) " >&6
10250else
10251 if test -n "$ac_ct_RANLIB"; then
10252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10253else
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261 ac_cv_prog_ac_ct_RANLIB="ranlib"
10262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10264 fi
10265done
10266done
10267IFS=$as_save_IFS
10268
10269fi
10270fi
10271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10272if test -n "$ac_ct_RANLIB"; then
10273 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10274$as_echo "$ac_ct_RANLIB" >&6; }
10275else
10276 { $as_echo "$as_me:$LINENO: result: no" >&5
10277$as_echo "no" >&6; }
10278fi
10279
10280 if test "x$ac_ct_RANLIB" = x; then
10281 RANLIB=":"
10282 else
10283 case $cross_compiling:$ac_tool_warned in
10284yes:)
10285{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10287ac_tool_warned=yes ;;
10288esac
10289 RANLIB=$ac_ct_RANLIB
10290 fi
10291else
10292 RANLIB="$ac_cv_prog_RANLIB"
10293fi
10294
10295test -z "$RANLIB" && RANLIB=:
10296
10297
10298
10299
10300
10301
10302# Determine commands to create old-style static archives.
10303old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10304old_postinstall_cmds='chmod 644 $oldlib'
10305old_postuninstall_cmds=
10306
10307if test -n "$RANLIB"; then
10308 case $host_os in
10309 openbsd*)
10310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10311 ;;
10312 *)
10313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10314 ;;
10315 esac
10316 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10317fi
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352# If no C compiler was specified, use CC.
10353LTCC=${LTCC-"$CC"}
10354
10355# If no C compiler flags were specified, use CFLAGS.
10356LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10357
10358# Allow CC to be a program name with arguments.
10359compiler=$CC
10360
10361
10362# Check for command to grab the raw symbol name followed by C symbol from nm.
10363{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10364$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10366 $as_echo_n "(cached) " >&6
10367else
10368
10369# These are sane defaults that work on at least a few old systems.
10370# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10371
10372# Character class describing NM global symbol codes.
10373symcode='[BCDEGRST]'
10374
10375# Regexp to match symbols that can be accessed directly from C.
10376sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10377
10378# Define system-specific variables.
10379case $host_os in
10380aix*)
10381 symcode='[BCDT]'
10382 ;;
10383cygwin* | mingw* | pw32* | cegcc*)
10384 symcode='[ABCDGISTW]'
10385 ;;
10386hpux*)
10387 if test "$host_cpu" = ia64; then
10388 symcode='[ABCDEGRST]'
10389 fi
10390 ;;
10391irix* | nonstopux*)
10392 symcode='[BCDEGRST]'
10393 ;;
10394osf*)
10395 symcode='[BCDEGQRST]'
10396 ;;
10397solaris*)
10398 symcode='[BDRT]'
10399 ;;
10400sco3.2v5*)
10401 symcode='[DT]'
10402 ;;
10403sysv4.2uw2*)
10404 symcode='[DT]'
10405 ;;
10406sysv5* | sco5v6* | unixware* | OpenUNIX*)
10407 symcode='[ABDT]'
10408 ;;
10409sysv4)
10410 symcode='[DFNSTU]'
10411 ;;
10412esac
10413
10414# If we're using GNU nm, then use its standard symbol codes.
10415case `$NM -V 2>&1` in
10416*GNU* | *'with BFD'*)
10417 symcode='[ABCDGIRSTW]' ;;
10418esac
10419
10420# Transform an extracted symbol line into a proper C declaration.
10421# Some systems (esp. on ia64) link data and code symbols differently,
10422# so use this general approach.
10423lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10424
10425# Transform an extracted symbol line into symbol name and symbol address
10426lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10427lt_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'"
10428
10429# Handle CRLF in mingw tool chain
10430opt_cr=
10431case $build_os in
10432mingw*)
10433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10434 ;;
10435esac
10436
10437# Try without a prefix underscore, then with it.
10438for ac_symprfx in "" "_"; do
10439
10440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10441 symxfrm="\\1 $ac_symprfx\\2 \\2"
10442
10443 # Write the raw and C identifiers.
10444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10445 # Fake it for dumpbin and say T for any non-static function
10446 # and D for any global variable.
10447 # Also find C++ and __fastcall symbols from MSVC++,
10448 # which start with @ or ?.
10449 lt_cv_sys_global_symbol_pipe="$AWK '"\
10450" {last_section=section; section=\$ 3};"\
10451" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10452" \$ 0!~/External *\|/{next};"\
10453" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10454" {if(hide[section]) next};"\
10455" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10456" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10457" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10458" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10459" ' prfx=^$ac_symprfx"
10460 else
10461 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10462 fi
10463
10464 # Check to see that the pipe works correctly.
10465 pipe_works=no
10466
10467 rm -f conftest*
10468 cat > conftest.$ac_ext <<_LT_EOF
10469#ifdef __cplusplus
10470extern "C" {
10471#endif
10472char nm_test_var;
10473void nm_test_func(void);
10474void nm_test_func(void){}
10475#ifdef __cplusplus
10476}
10477#endif
10478int main(){nm_test_var='a';nm_test_func();return(0);}
10479_LT_EOF
10480
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10483 ac_status=$?
10484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; then
10486 # Now try to grab the symbols.
10487 nlist=conftest.nm
10488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && test -s "$nlist"; then
10493 # Try sorting and uniquifying the output.
10494 if sort "$nlist" | uniq > "$nlist"T; then
10495 mv -f "$nlist"T "$nlist"
10496 else
10497 rm -f "$nlist"T
10498 fi
10499
10500 # Make sure that we snagged all the symbols we need.
10501 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10502 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10503 cat <<_LT_EOF > conftest.$ac_ext
10504#ifdef __cplusplus
10505extern "C" {
10506#endif
10507
10508_LT_EOF
10509 # Now generate the symbol file.
10510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10511
10512 cat <<_LT_EOF >> conftest.$ac_ext
10513
10514/* The mapping between symbol names and symbols. */
10515const struct {
10516 const char *name;
10517 void *address;
10518}
10519lt__PROGRAM__LTX_preloaded_symbols[] =
10520{
10521 { "@PROGRAM@", (void *) 0 },
10522_LT_EOF
10523 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10524 cat <<\_LT_EOF >> conftest.$ac_ext
10525 {0, (void *) 0}
10526};
10527
10528/* This works around a problem in FreeBSD linker */
10529#ifdef FREEBSD_WORKAROUND
10530static const void *lt_preloaded_setup() {
10531 return lt__PROGRAM__LTX_preloaded_symbols;
10532}
10533#endif
10534
10535#ifdef __cplusplus
10536}
10537#endif
10538_LT_EOF
10539 # Now try linking the two files.
10540 mv conftest.$ac_objext conftstm.$ac_objext
10541 lt_save_LIBS="$LIBS"
10542 lt_save_CFLAGS="$CFLAGS"
10543 LIBS="conftstm.$ac_objext"
10544 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5
10547 ac_status=$?
10548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10550 pipe_works=yes
10551 fi
10552 LIBS="$lt_save_LIBS"
10553 CFLAGS="$lt_save_CFLAGS"
10554 else
10555 echo "cannot find nm_test_func in $nlist" >&5
10556 fi
10557 else
10558 echo "cannot find nm_test_var in $nlist" >&5
10559 fi
10560 else
10561 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10562 fi
10563 else
10564 echo "$progname: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10566 fi
10567 rm -rf conftest* conftst*
10568
10569 # Do not use the global_symbol_pipe unless it works.
10570 if test "$pipe_works" = yes; then
10571 break
10572 else
10573 lt_cv_sys_global_symbol_pipe=
10574 fi
10575done
10576
10577fi
10578
10579if test -z "$lt_cv_sys_global_symbol_pipe"; then
10580 lt_cv_sys_global_symbol_to_cdecl=
10581fi
10582if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10583 { $as_echo "$as_me:$LINENO: result: failed" >&5
10584$as_echo "failed" >&6; }
10585else
10586 { $as_echo "$as_me:$LINENO: result: ok" >&5
10587$as_echo "ok" >&6; }
10588fi
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611# Check whether --enable-libtool-lock was given.
10612if test "${enable_libtool_lock+set}" = set; then
10613 enableval=$enable_libtool_lock;
10614fi
10615
10616test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10617
10618# Some flags need to be propagated to the compiler or linker for good
10619# libtool support.
10620case $host in
10621ia64-*-hpux*)
10622 # Find out which ABI we are using.
10623 echo 'int i;' > conftest.$ac_ext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625 (eval $ac_compile) 2>&5
10626 ac_status=$?
10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; then
10629 case `/usr/bin/file conftest.$ac_objext` in
10630 *ELF-32*)
10631 HPUX_IA64_MODE="32"
10632 ;;
10633 *ELF-64*)
10634 HPUX_IA64_MODE="64"
10635 ;;
10636 esac
10637 fi
10638 rm -rf conftest*
10639 ;;
10640*-*-irix6*)
10641 # Find out which ABI we are using.
cristy736173a2009-09-20 21:18:22 +000010642 echo '#line 10642 "configure"' > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644 (eval $ac_compile) 2>&5
10645 ac_status=$?
10646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; then
10648 if test "$lt_cv_prog_gnu_ld" = yes; then
10649 case `/usr/bin/file conftest.$ac_objext` in
10650 *32-bit*)
10651 LD="${LD-ld} -melf32bsmip"
10652 ;;
10653 *N32*)
10654 LD="${LD-ld} -melf32bmipn32"
10655 ;;
10656 *64-bit*)
10657 LD="${LD-ld} -melf64bmip"
10658 ;;
10659 esac
10660 else
10661 case `/usr/bin/file conftest.$ac_objext` in
10662 *32-bit*)
10663 LD="${LD-ld} -32"
10664 ;;
10665 *N32*)
10666 LD="${LD-ld} -n32"
10667 ;;
10668 *64-bit*)
10669 LD="${LD-ld} -64"
10670 ;;
10671 esac
10672 fi
10673 fi
10674 rm -rf conftest*
10675 ;;
10676
10677x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10678s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10679 # Find out which ABI we are using.
10680 echo 'int i;' > conftest.$ac_ext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10682 (eval $ac_compile) 2>&5
10683 ac_status=$?
10684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; then
10686 case `/usr/bin/file conftest.o` in
10687 *32-bit*)
10688 case $host in
10689 x86_64-*kfreebsd*-gnu)
10690 LD="${LD-ld} -m elf_i386_fbsd"
10691 ;;
10692 x86_64-*linux*)
10693 LD="${LD-ld} -m elf_i386"
10694 ;;
10695 ppc64-*linux*|powerpc64-*linux*)
10696 LD="${LD-ld} -m elf32ppclinux"
10697 ;;
10698 s390x-*linux*)
10699 LD="${LD-ld} -m elf_s390"
10700 ;;
10701 sparc64-*linux*)
10702 LD="${LD-ld} -m elf32_sparc"
10703 ;;
10704 esac
10705 ;;
10706 *64-bit*)
10707 case $host in
10708 x86_64-*kfreebsd*-gnu)
10709 LD="${LD-ld} -m elf_x86_64_fbsd"
10710 ;;
10711 x86_64-*linux*)
10712 LD="${LD-ld} -m elf_x86_64"
10713 ;;
10714 ppc*-*linux*|powerpc*-*linux*)
10715 LD="${LD-ld} -m elf64ppc"
10716 ;;
10717 s390*-*linux*|s390*-*tpf*)
10718 LD="${LD-ld} -m elf64_s390"
10719 ;;
10720 sparc*-*linux*)
10721 LD="${LD-ld} -m elf64_sparc"
10722 ;;
10723 esac
10724 ;;
10725 esac
10726 fi
10727 rm -rf conftest*
10728 ;;
10729
10730*-*-sco3.2v5*)
10731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10732 SAVE_CFLAGS="$CFLAGS"
10733 CFLAGS="$CFLAGS -belf"
10734 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10735$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10736if test "${lt_cv_cc_needs_belf+set}" = set; then
10737 $as_echo_n "(cached) " >&6
10738else
10739 ac_ext=c
10740ac_cpp='$CPP $CPPFLAGS'
10741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743ac_compiler_gnu=$ac_cv_c_compiler_gnu
10744
10745 cat >conftest.$ac_ext <<_ACEOF
10746/* confdefs.h. */
10747_ACEOF
10748cat confdefs.h >>conftest.$ac_ext
10749cat >>conftest.$ac_ext <<_ACEOF
10750/* end confdefs.h. */
10751
10752int
10753main ()
10754{
10755
10756 ;
10757 return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (ac_try="$ac_link"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767$as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext && {
10778 test "$cross_compiling" = yes ||
10779 $as_test_x conftest$ac_exeext
10780 }; then
10781 lt_cv_cc_needs_belf=yes
10782else
10783 $as_echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 lt_cv_cc_needs_belf=no
10787fi
10788
10789rm -rf conftest.dSYM
10790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10792 ac_ext=c
10793ac_cpp='$CPP $CPPFLAGS'
10794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797
10798fi
10799{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10800$as_echo "$lt_cv_cc_needs_belf" >&6; }
10801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10803 CFLAGS="$SAVE_CFLAGS"
10804 fi
10805 ;;
10806sparc*-*solaris*)
10807 # Find out which ABI we are using.
10808 echo 'int i;' > conftest.$ac_ext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>&5
10811 ac_status=$?
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; then
10814 case `/usr/bin/file conftest.o` in
10815 *64-bit*)
10816 case $lt_cv_prog_gnu_ld in
10817 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10818 *)
10819 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10820 LD="${LD-ld} -64"
10821 fi
10822 ;;
10823 esac
10824 ;;
10825 esac
10826 fi
10827 rm -rf conftest*
10828 ;;
10829esac
10830
10831need_locks="$enable_libtool_lock"
10832
10833
10834 case $host_os in
10835 rhapsody* | darwin*)
10836 if test -n "$ac_tool_prefix"; then
10837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10838set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10840$as_echo_n "checking for $ac_word... " >&6; }
10841if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10842 $as_echo_n "(cached) " >&6
10843else
10844 if test -n "$DSYMUTIL"; then
10845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10854 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858done
10859done
10860IFS=$as_save_IFS
10861
10862fi
10863fi
10864DSYMUTIL=$ac_cv_prog_DSYMUTIL
10865if test -n "$DSYMUTIL"; then
10866 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10867$as_echo "$DSYMUTIL" >&6; }
10868else
10869 { $as_echo "$as_me:$LINENO: result: no" >&5
10870$as_echo "no" >&6; }
10871fi
10872
10873
10874fi
10875if test -z "$ac_cv_prog_DSYMUTIL"; then
10876 ac_ct_DSYMUTIL=$DSYMUTIL
10877 # Extract the first word of "dsymutil", so it can be a program name with args.
10878set dummy dsymutil; ac_word=$2
10879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10880$as_echo_n "checking for $ac_word... " >&6; }
10881if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10882 $as_echo_n "(cached) " >&6
10883else
10884 if test -n "$ac_ct_DSYMUTIL"; then
10885 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10886else
10887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888for as_dir in $PATH
10889do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10894 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898done
10899done
10900IFS=$as_save_IFS
10901
10902fi
10903fi
10904ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10905if test -n "$ac_ct_DSYMUTIL"; then
10906 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10907$as_echo "$ac_ct_DSYMUTIL" >&6; }
10908else
10909 { $as_echo "$as_me:$LINENO: result: no" >&5
10910$as_echo "no" >&6; }
10911fi
10912
10913 if test "x$ac_ct_DSYMUTIL" = x; then
10914 DSYMUTIL=":"
10915 else
10916 case $cross_compiling:$ac_tool_warned in
10917yes:)
10918{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10920ac_tool_warned=yes ;;
10921esac
10922 DSYMUTIL=$ac_ct_DSYMUTIL
10923 fi
10924else
10925 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10926fi
10927
10928 if test -n "$ac_tool_prefix"; then
10929 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10930set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10932$as_echo_n "checking for $ac_word... " >&6; }
10933if test "${ac_cv_prog_NMEDIT+set}" = set; then
10934 $as_echo_n "(cached) " >&6
10935else
10936 if test -n "$NMEDIT"; then
10937 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10938else
10939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940for as_dir in $PATH
10941do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10949 fi
10950done
10951done
10952IFS=$as_save_IFS
10953
10954fi
10955fi
10956NMEDIT=$ac_cv_prog_NMEDIT
10957if test -n "$NMEDIT"; then
10958 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10959$as_echo "$NMEDIT" >&6; }
10960else
10961 { $as_echo "$as_me:$LINENO: result: no" >&5
10962$as_echo "no" >&6; }
10963fi
10964
10965
10966fi
10967if test -z "$ac_cv_prog_NMEDIT"; then
10968 ac_ct_NMEDIT=$NMEDIT
10969 # Extract the first word of "nmedit", so it can be a program name with args.
10970set dummy nmedit; ac_word=$2
10971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10972$as_echo_n "checking for $ac_word... " >&6; }
10973if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10974 $as_echo_n "(cached) " >&6
10975else
10976 if test -n "$ac_ct_NMEDIT"; then
10977 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10978else
10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
10985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10986 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 break 2
10989 fi
10990done
10991done
10992IFS=$as_save_IFS
10993
10994fi
10995fi
10996ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10997if test -n "$ac_ct_NMEDIT"; then
10998 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10999$as_echo "$ac_ct_NMEDIT" >&6; }
11000else
11001 { $as_echo "$as_me:$LINENO: result: no" >&5
11002$as_echo "no" >&6; }
11003fi
11004
11005 if test "x$ac_ct_NMEDIT" = x; then
11006 NMEDIT=":"
11007 else
11008 case $cross_compiling:$ac_tool_warned in
11009yes:)
11010{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11012ac_tool_warned=yes ;;
11013esac
11014 NMEDIT=$ac_ct_NMEDIT
11015 fi
11016else
11017 NMEDIT="$ac_cv_prog_NMEDIT"
11018fi
11019
11020 if test -n "$ac_tool_prefix"; then
11021 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11022set dummy ${ac_tool_prefix}lipo; ac_word=$2
11023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
11025if test "${ac_cv_prog_LIPO+set}" = set; then
11026 $as_echo_n "(cached) " >&6
11027else
11028 if test -n "$LIPO"; then
11029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
11044IFS=$as_save_IFS
11045
11046fi
11047fi
11048LIPO=$ac_cv_prog_LIPO
11049if test -n "$LIPO"; then
11050 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
11051$as_echo "$LIPO" >&6; }
11052else
11053 { $as_echo "$as_me:$LINENO: result: no" >&5
11054$as_echo "no" >&6; }
11055fi
11056
11057
11058fi
11059if test -z "$ac_cv_prog_LIPO"; then
11060 ac_ct_LIPO=$LIPO
11061 # Extract the first word of "lipo", so it can be a program name with args.
11062set dummy lipo; ac_word=$2
11063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
11065if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
11066 $as_echo_n "(cached) " >&6
11067else
11068 if test -n "$ac_ct_LIPO"; then
11069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11070else
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_ac_ct_LIPO="lipo"
11079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083done
11084IFS=$as_save_IFS
11085
11086fi
11087fi
11088ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11089if test -n "$ac_ct_LIPO"; then
11090 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
11091$as_echo "$ac_ct_LIPO" >&6; }
11092else
11093 { $as_echo "$as_me:$LINENO: result: no" >&5
11094$as_echo "no" >&6; }
11095fi
11096
11097 if test "x$ac_ct_LIPO" = x; then
11098 LIPO=":"
11099 else
11100 case $cross_compiling:$ac_tool_warned in
11101yes:)
11102{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11104ac_tool_warned=yes ;;
11105esac
11106 LIPO=$ac_ct_LIPO
11107 fi
11108else
11109 LIPO="$ac_cv_prog_LIPO"
11110fi
11111
11112 if test -n "$ac_tool_prefix"; then
11113 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11114set dummy ${ac_tool_prefix}otool; ac_word=$2
11115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
11117if test "${ac_cv_prog_OTOOL+set}" = set; then
11118 $as_echo_n "(cached) " >&6
11119else
11120 if test -n "$OTOOL"; then
11121 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134done
11135done
11136IFS=$as_save_IFS
11137
11138fi
11139fi
11140OTOOL=$ac_cv_prog_OTOOL
11141if test -n "$OTOOL"; then
11142 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
11143$as_echo "$OTOOL" >&6; }
11144else
11145 { $as_echo "$as_me:$LINENO: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148
11149
11150fi
11151if test -z "$ac_cv_prog_OTOOL"; then
11152 ac_ct_OTOOL=$OTOOL
11153 # Extract the first word of "otool", so it can be a program name with args.
11154set dummy otool; ac_word=$2
11155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
11158 $as_echo_n "(cached) " >&6
11159else
11160 if test -n "$ac_ct_OTOOL"; then
11161 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_ac_ct_OTOOL="otool"
11171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175done
11176IFS=$as_save_IFS
11177
11178fi
11179fi
11180ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11181if test -n "$ac_ct_OTOOL"; then
11182 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
11183$as_echo "$ac_ct_OTOOL" >&6; }
11184else
11185 { $as_echo "$as_me:$LINENO: result: no" >&5
11186$as_echo "no" >&6; }
11187fi
11188
11189 if test "x$ac_ct_OTOOL" = x; then
11190 OTOOL=":"
11191 else
11192 case $cross_compiling:$ac_tool_warned in
11193yes:)
11194{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11196ac_tool_warned=yes ;;
11197esac
11198 OTOOL=$ac_ct_OTOOL
11199 fi
11200else
11201 OTOOL="$ac_cv_prog_OTOOL"
11202fi
11203
11204 if test -n "$ac_tool_prefix"; then
11205 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11206set dummy ${ac_tool_prefix}otool64; ac_word=$2
11207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11208$as_echo_n "checking for $ac_word... " >&6; }
11209if test "${ac_cv_prog_OTOOL64+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11211else
11212 if test -n "$OTOOL64"; then
11213 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11214else
11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11222 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226done
11227done
11228IFS=$as_save_IFS
11229
11230fi
11231fi
11232OTOOL64=$ac_cv_prog_OTOOL64
11233if test -n "$OTOOL64"; then
11234 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
11235$as_echo "$OTOOL64" >&6; }
11236else
11237 { $as_echo "$as_me:$LINENO: result: no" >&5
11238$as_echo "no" >&6; }
11239fi
11240
11241
11242fi
11243if test -z "$ac_cv_prog_OTOOL64"; then
11244 ac_ct_OTOOL64=$OTOOL64
11245 # Extract the first word of "otool64", so it can be a program name with args.
11246set dummy otool64; ac_word=$2
11247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$ac_ct_OTOOL64"; then
11253 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_prog_ac_ct_OTOOL64="otool64"
11263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11273if test -n "$ac_ct_OTOOL64"; then
11274 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
11275$as_echo "$ac_ct_OTOOL64" >&6; }
11276else
11277 { $as_echo "$as_me:$LINENO: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281 if test "x$ac_ct_OTOOL64" = x; then
11282 OTOOL64=":"
11283 else
11284 case $cross_compiling:$ac_tool_warned in
11285yes:)
11286{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11288ac_tool_warned=yes ;;
11289esac
11290 OTOOL64=$ac_ct_OTOOL64
11291 fi
11292else
11293 OTOOL64="$ac_cv_prog_OTOOL64"
11294fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11323$as_echo_n "checking for -single_module linker flag... " >&6; }
11324if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11325 $as_echo_n "(cached) " >&6
11326else
11327 lt_cv_apple_cc_single_mod=no
11328 if test -z "${LT_MULTI_MODULE}"; then
11329 # By default we will add the -single_module flag. You can override
11330 # by either setting the environment variable LT_MULTI_MODULE
11331 # non-empty at configure time, or by adding -multi_module to the
11332 # link flags.
11333 rm -rf libconftest.dylib*
11334 echo "int foo(void){return 1;}" > conftest.c
11335 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11336-dynamiclib -Wl,-single_module conftest.c" >&5
11337 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11338 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11339 _lt_result=$?
11340 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11341 lt_cv_apple_cc_single_mod=yes
11342 else
11343 cat conftest.err >&5
11344 fi
11345 rm -rf libconftest.dylib*
11346 rm -f conftest.*
11347 fi
11348fi
11349{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11350$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11351 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11352$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11353if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11354 $as_echo_n "(cached) " >&6
11355else
11356 lt_cv_ld_exported_symbols_list=no
11357 save_LDFLAGS=$LDFLAGS
11358 echo "_main" > conftest.sym
11359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
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
11367int
11368main ()
11369{
11370
11371 ;
11372 return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext conftest$ac_exeext
11376if { (ac_try="$ac_link"
11377case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382$as_echo "$ac_try_echo") >&5
11383 (eval "$ac_link") 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } && {
11390 test -z "$ac_c_werror_flag" ||
11391 test ! -s conftest.err
11392 } && test -s conftest$ac_exeext && {
11393 test "$cross_compiling" = yes ||
11394 $as_test_x conftest$ac_exeext
11395 }; then
11396 lt_cv_ld_exported_symbols_list=yes
11397else
11398 $as_echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 lt_cv_ld_exported_symbols_list=no
11402fi
11403
11404rm -rf conftest.dSYM
11405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LDFLAGS="$save_LDFLAGS"
11408
11409fi
11410{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11411$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11412 case $host_os in
11413 rhapsody* | darwin1.[012])
11414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11415 darwin1.*)
11416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11417 darwin*) # darwin 5.x on
11418 # if running on 10.5 or later, the deployment target defaults
11419 # to the OS version, if on x86, and 10.4, the deployment
11420 # target defaults to 10.4. Don't you love it?
11421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11422 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11424 10.[012]*)
11425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11426 10.*)
11427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11428 esac
11429 ;;
11430 esac
11431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11432 _lt_dar_single_mod='$single_module'
11433 fi
11434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11436 else
11437 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11438 fi
11439 if test "$DSYMUTIL" != ":"; then
11440 _lt_dsymutil='~$DSYMUTIL $lib || :'
11441 else
11442 _lt_dsymutil=
11443 fi
11444 ;;
11445 esac
11446
11447
11448for ac_header in dlfcn.h
11449do
11450as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11451{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11452$as_echo_n "checking for $ac_header... " >&6; }
11453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 $as_echo_n "(cached) " >&6
11455else
11456 cat >conftest.$ac_ext <<_ACEOF
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
11462$ac_includes_default
11463
11464#include <$ac_header>
11465_ACEOF
11466rm -f conftest.$ac_objext
11467if { (ac_try="$ac_compile"
11468case "(($ac_try" in
11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470 *) ac_try_echo=$ac_try;;
11471esac
11472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11473$as_echo "$ac_try_echo") >&5
11474 (eval "$ac_compile") 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && {
11481 test -z "$ac_c_werror_flag" ||
11482 test ! -s conftest.err
11483 } && test -s conftest.$ac_objext; then
11484 eval "$as_ac_Header=yes"
11485else
11486 $as_echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 eval "$as_ac_Header=no"
11490fi
11491
11492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493fi
11494ac_res=`eval 'as_val=${'$as_ac_Header'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497$as_echo "$ac_res" >&6; }
11498as_val=`eval 'as_val=${'$as_ac_Header'}
11499 $as_echo "$as_val"'`
11500 if test "x$as_val" = x""yes; then
11501 cat >>confdefs.h <<_ACEOF
11502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503_ACEOF
11504
11505fi
11506
11507done
11508
11509
11510
11511ac_ext=cpp
11512ac_cpp='$CXXCPP $CPPFLAGS'
11513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516if test -z "$CXX"; then
11517 if test -n "$CCC"; then
11518 CXX=$CCC
11519 else
11520 if test -n "$ac_tool_prefix"; then
11521 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11522 do
11523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11526$as_echo_n "checking for $ac_word... " >&6; }
11527if test "${ac_cv_prog_CXX+set}" = set; then
11528 $as_echo_n "(cached) " >&6
11529else
11530 if test -n "$CXX"; then
11531 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11532else
11533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $PATH
11535do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544done
11545done
11546IFS=$as_save_IFS
11547
11548fi
11549fi
11550CXX=$ac_cv_prog_CXX
11551if test -n "$CXX"; then
11552 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11553$as_echo "$CXX" >&6; }
11554else
11555 { $as_echo "$as_me:$LINENO: result: no" >&5
11556$as_echo "no" >&6; }
11557fi
11558
11559
11560 test -n "$CXX" && break
11561 done
11562fi
11563if test -z "$CXX"; then
11564 ac_ct_CXX=$CXX
11565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11566do
11567 # Extract the first word of "$ac_prog", so it can be a program name with args.
11568set dummy $ac_prog; ac_word=$2
11569{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11570$as_echo_n "checking for $ac_word... " >&6; }
11571if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11572 $as_echo_n "(cached) " >&6
11573else
11574 if test -n "$ac_ct_CXX"; then
11575 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11576else
11577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $PATH
11579do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11584 ac_cv_prog_ac_ct_CXX="$ac_prog"
11585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588done
11589done
11590IFS=$as_save_IFS
11591
11592fi
11593fi
11594ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11595if test -n "$ac_ct_CXX"; then
11596 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11597$as_echo "$ac_ct_CXX" >&6; }
11598else
11599 { $as_echo "$as_me:$LINENO: result: no" >&5
11600$as_echo "no" >&6; }
11601fi
11602
11603
11604 test -n "$ac_ct_CXX" && break
11605done
11606
11607 if test "x$ac_ct_CXX" = x; then
11608 CXX="g++"
11609 else
11610 case $cross_compiling:$ac_tool_warned in
11611yes:)
11612{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11614ac_tool_warned=yes ;;
11615esac
11616 CXX=$ac_ct_CXX
11617 fi
11618fi
11619
11620 fi
11621fi
11622# Provide some information about the compiler.
11623$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11624set X $ac_compile
11625ac_compiler=$2
11626{ (ac_try="$ac_compiler --version >&5"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632$as_echo "$ac_try_echo") >&5
11633 (eval "$ac_compiler --version >&5") 2>&5
11634 ac_status=$?
11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }
11637{ (ac_try="$ac_compiler -v >&5"
11638case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11643$as_echo "$ac_try_echo") >&5
11644 (eval "$ac_compiler -v >&5") 2>&5
11645 ac_status=$?
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }
11648{ (ac_try="$ac_compiler -V >&5"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654$as_echo "$ac_try_echo") >&5
11655 (eval "$ac_compiler -V >&5") 2>&5
11656 ac_status=$?
11657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }
11659
11660{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11661$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11662if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11663 $as_echo_n "(cached) " >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671
11672int
11673main ()
11674{
11675#ifndef __GNUC__
11676 choke me
11677#endif
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (ac_try="$ac_compile"
11685case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11690$as_echo "$ac_try_echo") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_cxx_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_compiler_gnu=yes
11702else
11703 $as_echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_compiler_gnu=no
11707fi
11708
11709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11711
11712fi
11713{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11714$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11715if test $ac_compiler_gnu = yes; then
11716 GXX=yes
11717else
11718 GXX=
11719fi
11720ac_test_CXXFLAGS=${CXXFLAGS+set}
11721ac_save_CXXFLAGS=$CXXFLAGS
11722{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11723$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11724if test "${ac_cv_prog_cxx_g+set}" = set; then
11725 $as_echo_n "(cached) " >&6
11726else
11727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11728 ac_cxx_werror_flag=yes
11729 ac_cv_prog_cxx_g=no
11730 CXXFLAGS="-g"
11731 cat >conftest.$ac_ext <<_ACEOF
11732/* confdefs.h. */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h. */
11737
11738int
11739main ()
11740{
11741
11742 ;
11743 return 0;
11744}
11745_ACEOF
11746rm -f conftest.$ac_objext
11747if { (ac_try="$ac_compile"
11748case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751esac
11752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11753$as_echo "$ac_try_echo") >&5
11754 (eval "$ac_compile") 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } && {
11761 test -z "$ac_cxx_werror_flag" ||
11762 test ! -s conftest.err
11763 } && test -s conftest.$ac_objext; then
11764 ac_cv_prog_cxx_g=yes
11765else
11766 $as_echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 CXXFLAGS=""
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776
11777int
11778main ()
11779{
11780
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext
11786if { (ac_try="$ac_compile"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792$as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_cxx_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11803 :
11804else
11805 $as_echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11809 CXXFLAGS="-g"
11810 cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816
11817int
11818main ()
11819{
11820
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (ac_try="$ac_compile"
11827case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
11831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832$as_echo "$ac_try_echo") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_cxx_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest.$ac_objext; then
11843 ac_cv_prog_cxx_g=yes
11844else
11845 $as_echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848
11849fi
11850
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852fi
11853
11854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855fi
11856
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11859fi
11860{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11861$as_echo "$ac_cv_prog_cxx_g" >&6; }
11862if test "$ac_test_CXXFLAGS" = set; then
11863 CXXFLAGS=$ac_save_CXXFLAGS
11864elif test $ac_cv_prog_cxx_g = yes; then
11865 if test "$GXX" = yes; then
11866 CXXFLAGS="-g -O2"
11867 else
11868 CXXFLAGS="-g"
11869 fi
11870else
11871 if test "$GXX" = yes; then
11872 CXXFLAGS="-O2"
11873 else
11874 CXXFLAGS=
11875 fi
11876fi
11877ac_ext=c
11878ac_cpp='$CPP $CPPFLAGS'
11879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882
11883depcc="$CXX" am_compiler_list=
11884
11885{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11886$as_echo_n "checking dependency style of $depcc... " >&6; }
11887if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11889else
11890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11891 # We make a subdir and do the tests there. Otherwise we can end up
11892 # making bogus files that we don't know about and never remove. For
11893 # instance it was reported that on HP-UX the gcc test will end up
11894 # making a dummy file named `D' -- because `-MD' means `put the output
11895 # in D'.
11896 mkdir conftest.dir
11897 # Copy depcomp to subdir because otherwise we won't find it if we're
11898 # using a relative directory.
11899 cp "$am_depcomp" conftest.dir
11900 cd conftest.dir
11901 # We will build objects and dependencies in a subdirectory because
11902 # it helps to detect inapplicable dependency modes. For instance
11903 # both Tru64's cc and ICC support -MD to output dependencies as a
11904 # side effect of compilation, but ICC will put the dependencies in
11905 # the current directory while Tru64 will put them in the object
11906 # directory.
11907 mkdir sub
11908
11909 am_cv_CXX_dependencies_compiler_type=none
11910 if test "$am_compiler_list" = ""; then
11911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11912 fi
11913 am__universal=false
11914 case " $depcc " in #(
11915 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11916 esac
11917
11918 for depmode in $am_compiler_list; do
11919 # Setup a source with many dependencies, because some compilers
11920 # like to wrap large dependency lists on column 80 (with \), and
11921 # we should not choose a depcomp mode which is confused by this.
11922 #
11923 # We need to recreate these files for each test, as the compiler may
11924 # overwrite some of them when testing with obscure command lines.
11925 # This happens at least with the AIX C compiler.
11926 : > sub/conftest.c
11927 for i in 1 2 3 4 5 6; do
11928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11930 # Solaris 8's {/usr,}/bin/sh.
11931 touch sub/conftst$i.h
11932 done
11933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11934
11935 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11936 # mode. It turns out that the SunPro C++ compiler does not properly
11937 # handle `-M -o', and we need to detect this. Also, some Intel
11938 # versions had trouble with output in subdirs
11939 am__obj=sub/conftest.${OBJEXT-o}
11940 am__minus_obj="-o $am__obj"
11941 case $depmode in
11942 gcc)
11943 # This depmode causes a compiler race in universal mode.
11944 test "$am__universal" = false || continue
11945 ;;
11946 nosideeffect)
11947 # after this tag, mechanisms are not by side-effect, so they'll
11948 # only be used when explicitly requested
11949 if test "x$enable_dependency_tracking" = xyes; then
11950 continue
11951 else
11952 break
11953 fi
11954 ;;
11955 msvisualcpp | msvcmsys)
11956 # This compiler won't grok `-c -o', but also, the minuso test has
11957 # not run yet. These depmodes are late enough in the game, and
11958 # so weak that their functioning should not be impacted.
11959 am__obj=conftest.${OBJEXT-o}
11960 am__minus_obj=
11961 ;;
11962 none) break ;;
11963 esac
11964 if depmode=$depmode \
11965 source=sub/conftest.c object=$am__obj \
11966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11967 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11968 >/dev/null 2>conftest.err &&
11969 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11970 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11971 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11972 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11973 # icc doesn't choke on unknown options, it will just issue warnings
11974 # or remarks (even with -Werror). So we grep stderr for any message
11975 # that says an option was ignored or not supported.
11976 # When given -MP, icc 7.0 and 7.1 complain thusly:
11977 # icc: Command line warning: ignoring option '-M'; no argument required
11978 # The diagnosis changed in icc 8.0:
11979 # icc: Command line remark: option '-MP' not supported
11980 if (grep 'ignoring option' conftest.err ||
11981 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11982 am_cv_CXX_dependencies_compiler_type=$depmode
11983 break
11984 fi
11985 fi
11986 done
11987
11988 cd ..
11989 rm -rf conftest.dir
11990else
11991 am_cv_CXX_dependencies_compiler_type=none
11992fi
11993
11994fi
11995{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11996$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11997CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11998
11999 if
12000 test "x$enable_dependency_tracking" != xno \
12001 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12002 am__fastdepCXX_TRUE=
12003 am__fastdepCXX_FALSE='#'
12004else
12005 am__fastdepCXX_TRUE='#'
12006 am__fastdepCXX_FALSE=
12007fi
12008
12009
12010if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12011 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12012 (test "X$CXX" != "Xg++"))) ; then
12013 ac_ext=cpp
12014ac_cpp='$CXXCPP $CPPFLAGS'
12015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12018{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12019$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12020if test -z "$CXXCPP"; then
12021 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12022 $as_echo_n "(cached) " >&6
12023else
12024 # Double quotes because CXXCPP needs to be expanded
12025 for CXXCPP in "$CXX -E" "/lib/cpp"
12026 do
12027 ac_preproc_ok=false
12028for ac_cxx_preproc_warn_flag in '' yes
12029do
12030 # Use a header file that comes with gcc, so configuring glibc
12031 # with a fresh cross-compiler works.
12032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033 # <limits.h> exists even on freestanding compilers.
12034 # On the NeXT, cc -E runs the code through the compiler's parser,
12035 # not just through cpp. "Syntax error" is here to catch this case.
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#ifdef __STDC__
12043# include <limits.h>
12044#else
12045# include <assert.h>
12046#endif
12047 Syntax error
12048_ACEOF
12049if { (ac_try="$ac_cpp conftest.$ac_ext"
12050case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12055$as_echo "$ac_try_echo") >&5
12056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev/null && {
12063 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12064 test ! -s conftest.err
12065 }; then
12066 :
12067else
12068 $as_echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 # Broken: fails on valid input.
12072continue
12073fi
12074
12075rm -f conftest.err conftest.$ac_ext
12076
12077 # OK, works on sane cases. Now check whether nonexistent headers
12078 # can be detected and how.
12079 cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085#include <ac_nonexistent.h>
12086_ACEOF
12087if { (ac_try="$ac_cpp conftest.$ac_ext"
12088case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12093$as_echo "$ac_try_echo") >&5
12094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } >/dev/null && {
12101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12102 test ! -s conftest.err
12103 }; then
12104 # Broken: success on invalid input.
12105continue
12106else
12107 $as_echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 # Passes both tests.
12111ac_preproc_ok=:
12112break
12113fi
12114
12115rm -f conftest.err conftest.$ac_ext
12116
12117done
12118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12119rm -f conftest.err conftest.$ac_ext
12120if $ac_preproc_ok; then
12121 break
12122fi
12123
12124 done
12125 ac_cv_prog_CXXCPP=$CXXCPP
12126
12127fi
12128 CXXCPP=$ac_cv_prog_CXXCPP
12129else
12130 ac_cv_prog_CXXCPP=$CXXCPP
12131fi
12132{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
12133$as_echo "$CXXCPP" >&6; }
12134ac_preproc_ok=false
12135for ac_cxx_preproc_warn_flag in '' yes
12136do
12137 # Use a header file that comes with gcc, so configuring glibc
12138 # with a fresh cross-compiler works.
12139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12140 # <limits.h> exists even on freestanding compilers.
12141 # On the NeXT, cc -E runs the code through the compiler's parser,
12142 # not just through cpp. "Syntax error" is here to catch this case.
12143 cat >conftest.$ac_ext <<_ACEOF
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149#ifdef __STDC__
12150# include <limits.h>
12151#else
12152# include <assert.h>
12153#endif
12154 Syntax error
12155_ACEOF
12156if { (ac_try="$ac_cpp conftest.$ac_ext"
12157case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160esac
12161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12162$as_echo "$ac_try_echo") >&5
12163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } >/dev/null && {
12170 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12171 test ! -s conftest.err
12172 }; then
12173 :
12174else
12175 $as_echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 # Broken: fails on valid input.
12179continue
12180fi
12181
12182rm -f conftest.err conftest.$ac_ext
12183
12184 # OK, works on sane cases. Now check whether nonexistent headers
12185 # can be detected and how.
12186 cat >conftest.$ac_ext <<_ACEOF
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192#include <ac_nonexistent.h>
12193_ACEOF
12194if { (ac_try="$ac_cpp conftest.$ac_ext"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12200$as_echo "$ac_try_echo") >&5
12201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } >/dev/null && {
12208 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12209 test ! -s conftest.err
12210 }; then
12211 # Broken: success on invalid input.
12212continue
12213else
12214 $as_echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 # Passes both tests.
12218ac_preproc_ok=:
12219break
12220fi
12221
12222rm -f conftest.err conftest.$ac_ext
12223
12224done
12225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12226rm -f conftest.err conftest.$ac_ext
12227if $ac_preproc_ok; then
12228 :
12229else
12230 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12232_lt_caught_CXX_error=yes; }
12233fi
12234
12235ac_ext=c
12236ac_cpp='$CPP $CPPFLAGS'
12237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239ac_compiler_gnu=$ac_cv_c_compiler_gnu
12240
12241else
12242 _lt_caught_CXX_error=yes
12243fi
12244
12245
12246
12247
12248
12249# Set options
12250enable_win32_dll=yes
12251
12252case $host in
12253*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12254 if test -n "$ac_tool_prefix"; then
12255 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12256set dummy ${ac_tool_prefix}as; ac_word=$2
12257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12258$as_echo_n "checking for $ac_word... " >&6; }
12259if test "${ac_cv_prog_AS+set}" = set; then
12260 $as_echo_n "(cached) " >&6
12261else
12262 if test -n "$AS"; then
12263 ac_cv_prog_AS="$AS" # Let the user override the test.
12264else
12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_prog_AS="${ac_tool_prefix}as"
12273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276done
12277done
12278IFS=$as_save_IFS
12279
12280fi
12281fi
12282AS=$ac_cv_prog_AS
12283if test -n "$AS"; then
12284 { $as_echo "$as_me:$LINENO: result: $AS" >&5
12285$as_echo "$AS" >&6; }
12286else
12287 { $as_echo "$as_me:$LINENO: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290
12291
12292fi
12293if test -z "$ac_cv_prog_AS"; then
12294 ac_ct_AS=$AS
12295 # Extract the first word of "as", so it can be a program name with args.
12296set dummy as; ac_word=$2
12297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
12299if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
12300 $as_echo_n "(cached) " >&6
12301else
12302 if test -n "$ac_ct_AS"; then
12303 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_ac_ct_AS="as"
12313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316done
12317done
12318IFS=$as_save_IFS
12319
12320fi
12321fi
12322ac_ct_AS=$ac_cv_prog_ac_ct_AS
12323if test -n "$ac_ct_AS"; then
12324 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
12325$as_echo "$ac_ct_AS" >&6; }
12326else
12327 { $as_echo "$as_me:$LINENO: result: no" >&5
12328$as_echo "no" >&6; }
12329fi
12330
12331 if test "x$ac_ct_AS" = x; then
12332 AS="false"
12333 else
12334 case $cross_compiling:$ac_tool_warned in
12335yes:)
12336{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12338ac_tool_warned=yes ;;
12339esac
12340 AS=$ac_ct_AS
12341 fi
12342else
12343 AS="$ac_cv_prog_AS"
12344fi
12345
12346 if test -n "$ac_tool_prefix"; then
12347 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12348set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12352 $as_echo_n "(cached) " >&6
12353else
12354 if test -n "$DLLTOOL"; then
12355 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368done
12369done
12370IFS=$as_save_IFS
12371
12372fi
12373fi
12374DLLTOOL=$ac_cv_prog_DLLTOOL
12375if test -n "$DLLTOOL"; then
12376 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12377$as_echo "$DLLTOOL" >&6; }
12378else
12379 { $as_echo "$as_me:$LINENO: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384fi
12385if test -z "$ac_cv_prog_DLLTOOL"; then
12386 ac_ct_DLLTOOL=$DLLTOOL
12387 # Extract the first word of "dlltool", so it can be a program name with args.
12388set dummy dlltool; ac_word=$2
12389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12390$as_echo_n "checking for $ac_word... " >&6; }
12391if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12392 $as_echo_n "(cached) " >&6
12393else
12394 if test -n "$ac_ct_DLLTOOL"; then
12395 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410IFS=$as_save_IFS
12411
12412fi
12413fi
12414ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12415if test -n "$ac_ct_DLLTOOL"; then
12416 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12417$as_echo "$ac_ct_DLLTOOL" >&6; }
12418else
12419 { $as_echo "$as_me:$LINENO: result: no" >&5
12420$as_echo "no" >&6; }
12421fi
12422
12423 if test "x$ac_ct_DLLTOOL" = x; then
12424 DLLTOOL="false"
12425 else
12426 case $cross_compiling:$ac_tool_warned in
12427yes:)
12428{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12430ac_tool_warned=yes ;;
12431esac
12432 DLLTOOL=$ac_ct_DLLTOOL
12433 fi
12434else
12435 DLLTOOL="$ac_cv_prog_DLLTOOL"
12436fi
12437
12438 if test -n "$ac_tool_prefix"; then
12439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12440set dummy ${ac_tool_prefix}objdump; ac_word=$2
12441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12442$as_echo_n "checking for $ac_word... " >&6; }
12443if test "${ac_cv_prog_OBJDUMP+set}" = set; then
12444 $as_echo_n "(cached) " >&6
12445else
12446 if test -n "$OBJDUMP"; then
12447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12448else
12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460done
12461done
12462IFS=$as_save_IFS
12463
12464fi
12465fi
12466OBJDUMP=$ac_cv_prog_OBJDUMP
12467if test -n "$OBJDUMP"; then
12468 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
12469$as_echo "$OBJDUMP" >&6; }
12470else
12471 { $as_echo "$as_me:$LINENO: result: no" >&5
12472$as_echo "no" >&6; }
12473fi
12474
12475
12476fi
12477if test -z "$ac_cv_prog_OBJDUMP"; then
12478 ac_ct_OBJDUMP=$OBJDUMP
12479 # Extract the first word of "objdump", so it can be a program name with args.
12480set dummy objdump; ac_word=$2
12481{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
12484 $as_echo_n "(cached) " >&6
12485else
12486 if test -n "$ac_ct_OBJDUMP"; then
12487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12496 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500done
12501done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12507if test -n "$ac_ct_OBJDUMP"; then
12508 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
12509$as_echo "$ac_ct_OBJDUMP" >&6; }
12510else
12511 { $as_echo "$as_me:$LINENO: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515 if test "x$ac_ct_OBJDUMP" = x; then
12516 OBJDUMP="false"
12517 else
12518 case $cross_compiling:$ac_tool_warned in
12519yes:)
12520{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12522ac_tool_warned=yes ;;
12523esac
12524 OBJDUMP=$ac_ct_OBJDUMP
12525 fi
12526else
12527 OBJDUMP="$ac_cv_prog_OBJDUMP"
12528fi
12529
12530 ;;
12531esac
12532
12533test -z "$AS" && AS=as
12534
12535
12536
12537
12538
12539test -z "$DLLTOOL" && DLLTOOL=dlltool
12540
12541
12542
12543
12544
12545test -z "$OBJDUMP" && OBJDUMP=objdump
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555 # Check whether --enable-shared was given.
12556if test "${enable_shared+set}" = set; then
12557 enableval=$enable_shared; p=${PACKAGE-default}
12558 case $enableval in
12559 yes) enable_shared=yes ;;
12560 no) enable_shared=no ;;
12561 *)
12562 enable_shared=no
12563 # Look at the argument we got. We use all the common list separators.
12564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12565 for pkg in $enableval; do
12566 IFS="$lt_save_ifs"
12567 if test "X$pkg" = "X$p"; then
12568 enable_shared=yes
12569 fi
12570 done
12571 IFS="$lt_save_ifs"
12572 ;;
12573 esac
12574else
12575 enable_shared=yes
12576fi
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586 # Check whether --enable-static was given.
12587if test "${enable_static+set}" = set; then
12588 enableval=$enable_static; p=${PACKAGE-default}
12589 case $enableval in
12590 yes) enable_static=yes ;;
12591 no) enable_static=no ;;
12592 *)
12593 enable_static=no
12594 # Look at the argument we got. We use all the common list separators.
12595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12596 for pkg in $enableval; do
12597 IFS="$lt_save_ifs"
12598 if test "X$pkg" = "X$p"; then
12599 enable_static=yes
12600 fi
12601 done
12602 IFS="$lt_save_ifs"
12603 ;;
12604 esac
12605else
12606 enable_static=yes
12607fi
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618# Check whether --with-pic was given.
12619if test "${with_pic+set}" = set; then
12620 withval=$with_pic; pic_mode="$withval"
12621else
12622 pic_mode=default
12623fi
12624
12625
12626test -z "$pic_mode" && pic_mode=default
12627
12628
12629
12630
12631
12632
12633
12634 # Check whether --enable-fast-install was given.
12635if test "${enable_fast_install+set}" = set; then
12636 enableval=$enable_fast_install; p=${PACKAGE-default}
12637 case $enableval in
12638 yes) enable_fast_install=yes ;;
12639 no) enable_fast_install=no ;;
12640 *)
12641 enable_fast_install=no
12642 # Look at the argument we got. We use all the common list separators.
12643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12644 for pkg in $enableval; do
12645 IFS="$lt_save_ifs"
12646 if test "X$pkg" = "X$p"; then
12647 enable_fast_install=yes
12648 fi
12649 done
12650 IFS="$lt_save_ifs"
12651 ;;
12652 esac
12653else
12654 enable_fast_install=yes
12655fi
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667# This can be used to rebuild libtool when needed
12668LIBTOOL_DEPS="$ltmain"
12669
12670# Always use our own libtool.
12671LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697test -z "$LN_S" && LN_S="ln -s"
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712if test -n "${ZSH_VERSION+set}" ; then
12713 setopt NO_GLOB_SUBST
12714fi
12715
12716{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
12717$as_echo_n "checking for objdir... " >&6; }
12718if test "${lt_cv_objdir+set}" = set; then
12719 $as_echo_n "(cached) " >&6
12720else
12721 rm -f .libs 2>/dev/null
12722mkdir .libs 2>/dev/null
12723if test -d .libs; then
12724 lt_cv_objdir=.libs
12725else
12726 # MS-DOS does not allow filenames that begin with a dot.
12727 lt_cv_objdir=_libs
12728fi
12729rmdir .libs 2>/dev/null
12730fi
12731{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12732$as_echo "$lt_cv_objdir" >&6; }
12733objdir=$lt_cv_objdir
12734
12735
12736
12737
12738
12739cat >>confdefs.h <<_ACEOF
12740#define LT_OBJDIR "$lt_cv_objdir/"
12741_ACEOF
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759case $host_os in
12760aix3*)
12761 # AIX sometimes has problems with the GCC collect2 program. For some
12762 # reason, if we set the COLLECT_NAMES environment variable, the problems
12763 # vanish in a puff of smoke.
12764 if test "X${COLLECT_NAMES+set}" != Xset; then
12765 COLLECT_NAMES=
12766 export COLLECT_NAMES
12767 fi
12768 ;;
12769esac
12770
12771# Sed substitution that helps us do robust quoting. It backslashifies
12772# metacharacters that are still active within double-quoted strings.
12773sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12774
12775# Same as above, but do not quote variable references.
12776double_quote_subst='s/\(["`\\]\)/\\\1/g'
12777
12778# Sed substitution to delay expansion of an escaped shell variable in a
12779# double_quote_subst'ed string.
12780delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12781
12782# Sed substitution to delay expansion of an escaped single quote.
12783delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12784
12785# Sed substitution to avoid accidental globbing in evaled expressions
12786no_glob_subst='s/\*/\\\*/g'
12787
12788# Global variables:
12789ofile=libtool
12790can_build_shared=yes
12791
12792# All known linkers require a `.a' archive for static linking (except MSVC,
12793# which needs '.lib').
12794libext=a
12795
12796with_gnu_ld="$lt_cv_prog_gnu_ld"
12797
12798old_CC="$CC"
12799old_CFLAGS="$CFLAGS"
12800
12801# Set sane defaults for various variables
12802test -z "$CC" && CC=cc
12803test -z "$LTCC" && LTCC=$CC
12804test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12805test -z "$LD" && LD=ld
12806test -z "$ac_objext" && ac_objext=o
12807
12808for cc_temp in $compiler""; do
12809 case $cc_temp in
12810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12812 \-*) ;;
12813 *) break;;
12814 esac
12815done
12816cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12817
12818
12819# Only perform the check for file, if the check method requires it
12820test -z "$MAGIC_CMD" && MAGIC_CMD=file
12821case $deplibs_check_method in
12822file_magic*)
12823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12824 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12825$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12826if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12827 $as_echo_n "(cached) " >&6
12828else
12829 case $MAGIC_CMD in
12830[\\/*] | ?:[\\/]*)
12831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12832 ;;
12833*)
12834 lt_save_MAGIC_CMD="$MAGIC_CMD"
12835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12837 for ac_dir in $ac_dummy; do
12838 IFS="$lt_save_ifs"
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f $ac_dir/${ac_tool_prefix}file; then
12841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12842 if test -n "$file_magic_test_file"; then
12843 case $deplibs_check_method in
12844 "file_magic "*)
12845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12848 $EGREP "$file_magic_regex" > /dev/null; then
12849 :
12850 else
12851 cat <<_LT_EOF 1>&2
12852
12853*** Warning: the command libtool uses to detect shared libraries,
12854*** $file_magic_cmd, produces output that libtool cannot recognize.
12855*** The result is that libtool may fail to recognize shared libraries
12856*** as such. This will affect the creation of libtool libraries that
12857*** depend on shared libraries, but programs linked with such libtool
12858*** libraries will work regardless of this problem. Nevertheless, you
12859*** may want to report the problem to your system manager and/or to
12860*** bug-libtool@gnu.org
12861
12862_LT_EOF
12863 fi ;;
12864 esac
12865 fi
12866 break
12867 fi
12868 done
12869 IFS="$lt_save_ifs"
12870 MAGIC_CMD="$lt_save_MAGIC_CMD"
12871 ;;
12872esac
12873fi
12874
12875MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12876if test -n "$MAGIC_CMD"; then
12877 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12878$as_echo "$MAGIC_CMD" >&6; }
12879else
12880 { $as_echo "$as_me:$LINENO: result: no" >&5
12881$as_echo "no" >&6; }
12882fi
12883
12884
12885
12886
12887
12888if test -z "$lt_cv_path_MAGIC_CMD"; then
12889 if test -n "$ac_tool_prefix"; then
12890 { $as_echo "$as_me:$LINENO: checking for file" >&5
12891$as_echo_n "checking for file... " >&6; }
12892if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12893 $as_echo_n "(cached) " >&6
12894else
12895 case $MAGIC_CMD in
12896[\\/*] | ?:[\\/]*)
12897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12898 ;;
12899*)
12900 lt_save_MAGIC_CMD="$MAGIC_CMD"
12901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12903 for ac_dir in $ac_dummy; do
12904 IFS="$lt_save_ifs"
12905 test -z "$ac_dir" && ac_dir=.
12906 if test -f $ac_dir/file; then
12907 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12908 if test -n "$file_magic_test_file"; then
12909 case $deplibs_check_method in
12910 "file_magic "*)
12911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12914 $EGREP "$file_magic_regex" > /dev/null; then
12915 :
12916 else
12917 cat <<_LT_EOF 1>&2
12918
12919*** Warning: the command libtool uses to detect shared libraries,
12920*** $file_magic_cmd, produces output that libtool cannot recognize.
12921*** The result is that libtool may fail to recognize shared libraries
12922*** as such. This will affect the creation of libtool libraries that
12923*** depend on shared libraries, but programs linked with such libtool
12924*** libraries will work regardless of this problem. Nevertheless, you
12925*** may want to report the problem to your system manager and/or to
12926*** bug-libtool@gnu.org
12927
12928_LT_EOF
12929 fi ;;
12930 esac
12931 fi
12932 break
12933 fi
12934 done
12935 IFS="$lt_save_ifs"
12936 MAGIC_CMD="$lt_save_MAGIC_CMD"
12937 ;;
12938esac
12939fi
12940
12941MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12942if test -n "$MAGIC_CMD"; then
12943 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12944$as_echo "$MAGIC_CMD" >&6; }
12945else
12946 { $as_echo "$as_me:$LINENO: result: no" >&5
12947$as_echo "no" >&6; }
12948fi
12949
12950
12951 else
12952 MAGIC_CMD=:
12953 fi
12954fi
12955
12956 fi
12957 ;;
12958esac
12959
12960# Use C for the default configuration in the libtool script
12961
12962lt_save_CC="$CC"
12963ac_ext=c
12964ac_cpp='$CPP $CPPFLAGS'
12965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
12969
12970# Source file extension for C test sources.
12971ac_ext=c
12972
12973# Object file extension for compiled C test sources.
12974objext=o
12975objext=$objext
12976
12977# Code to be used in simple compile tests
12978lt_simple_compile_test_code="int some_variable = 0;"
12979
12980# Code to be used in simple link tests
12981lt_simple_link_test_code='int main(){return(0);}'
12982
12983
12984
12985
12986
12987
12988
12989# If no C compiler was specified, use CC.
12990LTCC=${LTCC-"$CC"}
12991
12992# If no C compiler flags were specified, use CFLAGS.
12993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12994
12995# Allow CC to be a program name with arguments.
12996compiler=$CC
12997
12998# Save the default compiler, since it gets overwritten when the other
12999# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13000compiler_DEFAULT=$CC
13001
13002# save warnings/boilerplate of simple test code
13003ac_outfile=conftest.$ac_objext
13004echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13006_lt_compiler_boilerplate=`cat conftest.err`
13007$RM conftest*
13008
13009ac_outfile=conftest.$ac_objext
13010echo "$lt_simple_link_test_code" >conftest.$ac_ext
13011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13012_lt_linker_boilerplate=`cat conftest.err`
13013$RM -r conftest*
13014
13015
13016## CAVEAT EMPTOR:
13017## There is no encapsulation within the following macros, do not change
13018## the running order or otherwise move them around unless you know exactly
13019## what you are doing...
13020if test -n "$compiler"; then
13021
13022lt_prog_compiler_no_builtin_flag=
13023
13024if test "$GCC" = yes; then
13025 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13026
13027 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13028$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13029if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13030 $as_echo_n "(cached) " >&6
13031else
13032 lt_cv_prog_compiler_rtti_exceptions=no
13033 ac_outfile=conftest.$ac_objext
13034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13035 lt_compiler_flag="-fno-rtti -fno-exceptions"
13036 # Insert the option either (1) after the last *FLAGS variable, or
13037 # (2) before a word containing "conftest.", or (3) at the end.
13038 # Note that $ac_compile itself does not contain backslashes and begins
13039 # with a dollar sign (not a hyphen), so the echo should work correctly.
13040 # The option is referenced via a variable to avoid confusing sed.
13041 lt_compile=`echo "$ac_compile" | $SED \
13042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13044 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013045 (eval echo "\"\$as_me:13045: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013046 (eval "$lt_compile" 2>conftest.err)
13047 ac_status=$?
13048 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013049 echo "$as_me:13049: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013050 if (exit $ac_status) && test -s "$ac_outfile"; then
13051 # The compiler can only warn and ignore the option if not recognized
13052 # So say no if there are warnings other than the usual output.
13053 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13056 lt_cv_prog_compiler_rtti_exceptions=yes
13057 fi
13058 fi
13059 $RM conftest*
13060
13061fi
13062{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13063$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13064
13065if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13066 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13067else
13068 :
13069fi
13070
13071fi
13072
13073
13074
13075
13076
13077
13078 lt_prog_compiler_wl=
13079lt_prog_compiler_pic=
13080lt_prog_compiler_static=
13081
13082{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13083$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13084
13085 if test "$GCC" = yes; then
13086 lt_prog_compiler_wl='-Wl,'
13087 lt_prog_compiler_static='-static'
13088
13089 case $host_os in
13090 aix*)
13091 # All AIX code is PIC.
13092 if test "$host_cpu" = ia64; then
13093 # AIX 5 now supports IA64 processor
13094 lt_prog_compiler_static='-Bstatic'
13095 fi
13096 ;;
13097
13098 amigaos*)
13099 case $host_cpu in
13100 powerpc)
13101 # see comment about AmigaOS4 .so support
13102 lt_prog_compiler_pic='-fPIC'
13103 ;;
13104 m68k)
13105 # FIXME: we need at least 68020 code to build shared libraries, but
13106 # adding the `-m68020' flag to GCC prevents building anything better,
13107 # like `-m68040'.
13108 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13109 ;;
13110 esac
13111 ;;
13112
13113 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13115 ;;
13116
13117 mingw* | cygwin* | pw32* | os2* | cegcc*)
13118 # This hack is so that the source file can tell whether it is being
13119 # built for inclusion in a dll (and should export symbols for example).
13120 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13121 # (--disable-auto-import) libraries
13122 lt_prog_compiler_pic='-DDLL_EXPORT'
13123 ;;
13124
13125 darwin* | rhapsody*)
13126 # PIC is the default on this platform
13127 # Common symbols not allowed in MH_DYLIB files
13128 lt_prog_compiler_pic='-fno-common'
13129 ;;
13130
13131 hpux*)
13132 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13133 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13134 # sets the default TLS model and affects inlining.
13135 case $host_cpu in
13136 hppa*64*)
13137 # +Z the default
13138 ;;
13139 *)
13140 lt_prog_compiler_pic='-fPIC'
13141 ;;
13142 esac
13143 ;;
13144
13145 interix[3-9]*)
13146 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13147 # Instead, we relocate shared libraries at runtime.
13148 ;;
13149
13150 msdosdjgpp*)
13151 # Just because we use GCC doesn't mean we suddenly get shared libraries
13152 # on systems that don't support them.
13153 lt_prog_compiler_can_build_shared=no
13154 enable_shared=no
13155 ;;
13156
13157 *nto* | *qnx*)
13158 # QNX uses GNU C++, but need to define -shared option too, otherwise
13159 # it will coredump.
13160 lt_prog_compiler_pic='-fPIC -shared'
13161 ;;
13162
13163 sysv4*MP*)
13164 if test -d /usr/nec; then
13165 lt_prog_compiler_pic=-Kconform_pic
13166 fi
13167 ;;
13168
13169 *)
13170 lt_prog_compiler_pic='-fPIC'
13171 ;;
13172 esac
13173 else
13174 # PORTME Check for flag to pass linker flags through the system compiler.
13175 case $host_os in
13176 aix*)
13177 lt_prog_compiler_wl='-Wl,'
13178 if test "$host_cpu" = ia64; then
13179 # AIX 5 now supports IA64 processor
13180 lt_prog_compiler_static='-Bstatic'
13181 else
13182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13183 fi
13184 ;;
13185
13186 mingw* | cygwin* | pw32* | os2* | cegcc*)
13187 # This hack is so that the source file can tell whether it is being
13188 # built for inclusion in a dll (and should export symbols for example).
13189 lt_prog_compiler_pic='-DDLL_EXPORT'
13190 ;;
13191
13192 hpux9* | hpux10* | hpux11*)
13193 lt_prog_compiler_wl='-Wl,'
13194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13195 # not for PA HP-UX.
13196 case $host_cpu in
13197 hppa*64*|ia64*)
13198 # +Z the default
13199 ;;
13200 *)
13201 lt_prog_compiler_pic='+Z'
13202 ;;
13203 esac
13204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13205 lt_prog_compiler_static='${wl}-a ${wl}archive'
13206 ;;
13207
13208 irix5* | irix6* | nonstopux*)
13209 lt_prog_compiler_wl='-Wl,'
13210 # PIC (with -KPIC) is the default.
13211 lt_prog_compiler_static='-non_shared'
13212 ;;
13213
13214 linux* | k*bsd*-gnu)
13215 case $cc_basename in
13216 # old Intel for x86_64 which still supported -KPIC.
13217 ecc*)
13218 lt_prog_compiler_wl='-Wl,'
13219 lt_prog_compiler_pic='-KPIC'
13220 lt_prog_compiler_static='-static'
13221 ;;
13222 # icc used to be incompatible with GCC.
13223 # ICC 10 doesn't accept -KPIC any more.
13224 icc* | ifort*)
13225 lt_prog_compiler_wl='-Wl,'
13226 lt_prog_compiler_pic='-fPIC'
13227 lt_prog_compiler_static='-static'
13228 ;;
13229 # Lahey Fortran 8.1.
13230 lf95*)
13231 lt_prog_compiler_wl='-Wl,'
13232 lt_prog_compiler_pic='--shared'
13233 lt_prog_compiler_static='--static'
13234 ;;
13235 pgcc* | pgf77* | pgf90* | pgf95*)
13236 # Portland Group compilers (*not* the Pentium gcc compiler,
13237 # which looks to be a dead project)
13238 lt_prog_compiler_wl='-Wl,'
13239 lt_prog_compiler_pic='-fpic'
13240 lt_prog_compiler_static='-Bstatic'
13241 ;;
13242 ccc*)
13243 lt_prog_compiler_wl='-Wl,'
13244 # All Alpha code is PIC.
13245 lt_prog_compiler_static='-non_shared'
13246 ;;
13247 xl*)
13248 # IBM XL C 8.0/Fortran 10.1 on PPC
13249 lt_prog_compiler_wl='-Wl,'
13250 lt_prog_compiler_pic='-qpic'
13251 lt_prog_compiler_static='-qstaticlink'
13252 ;;
13253 *)
13254 case `$CC -V 2>&1 | sed 5q` in
13255 *Sun\ C*)
13256 # Sun C 5.9
13257 lt_prog_compiler_pic='-KPIC'
13258 lt_prog_compiler_static='-Bstatic'
13259 lt_prog_compiler_wl='-Wl,'
13260 ;;
13261 *Sun\ F*)
13262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13263 lt_prog_compiler_pic='-KPIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 lt_prog_compiler_wl=''
13266 ;;
13267 esac
13268 ;;
13269 esac
13270 ;;
13271
13272 newsos6)
13273 lt_prog_compiler_pic='-KPIC'
13274 lt_prog_compiler_static='-Bstatic'
13275 ;;
13276
13277 *nto* | *qnx*)
13278 # QNX uses GNU C++, but need to define -shared option too, otherwise
13279 # it will coredump.
13280 lt_prog_compiler_pic='-fPIC -shared'
13281 ;;
13282
13283 osf3* | osf4* | osf5*)
13284 lt_prog_compiler_wl='-Wl,'
13285 # All OSF/1 code is PIC.
13286 lt_prog_compiler_static='-non_shared'
13287 ;;
13288
13289 rdos*)
13290 lt_prog_compiler_static='-non_shared'
13291 ;;
13292
13293 solaris*)
13294 lt_prog_compiler_pic='-KPIC'
13295 lt_prog_compiler_static='-Bstatic'
13296 case $cc_basename in
13297 f77* | f90* | f95*)
13298 lt_prog_compiler_wl='-Qoption ld ';;
13299 *)
13300 lt_prog_compiler_wl='-Wl,';;
13301 esac
13302 ;;
13303
13304 sunos4*)
13305 lt_prog_compiler_wl='-Qoption ld '
13306 lt_prog_compiler_pic='-PIC'
13307 lt_prog_compiler_static='-Bstatic'
13308 ;;
13309
13310 sysv4 | sysv4.2uw2* | sysv4.3*)
13311 lt_prog_compiler_wl='-Wl,'
13312 lt_prog_compiler_pic='-KPIC'
13313 lt_prog_compiler_static='-Bstatic'
13314 ;;
13315
13316 sysv4*MP*)
13317 if test -d /usr/nec ;then
13318 lt_prog_compiler_pic='-Kconform_pic'
13319 lt_prog_compiler_static='-Bstatic'
13320 fi
13321 ;;
13322
13323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13324 lt_prog_compiler_wl='-Wl,'
13325 lt_prog_compiler_pic='-KPIC'
13326 lt_prog_compiler_static='-Bstatic'
13327 ;;
13328
13329 unicos*)
13330 lt_prog_compiler_wl='-Wl,'
13331 lt_prog_compiler_can_build_shared=no
13332 ;;
13333
13334 uts4*)
13335 lt_prog_compiler_pic='-pic'
13336 lt_prog_compiler_static='-Bstatic'
13337 ;;
13338
13339 *)
13340 lt_prog_compiler_can_build_shared=no
13341 ;;
13342 esac
13343 fi
13344
13345case $host_os in
13346 # For platforms which do not support PIC, -DPIC is meaningless:
13347 *djgpp*)
13348 lt_prog_compiler_pic=
13349 ;;
13350 *)
13351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13352 ;;
13353esac
13354{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13355$as_echo "$lt_prog_compiler_pic" >&6; }
13356
13357
13358
13359
13360
13361
13362#
13363# Check to make sure the PIC flag actually works.
13364#
13365if test -n "$lt_prog_compiler_pic"; then
13366 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13367$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13368if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
13369 $as_echo_n "(cached) " >&6
13370else
13371 lt_cv_prog_compiler_pic_works=no
13372 ac_outfile=conftest.$ac_objext
13373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13374 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13375 # Insert the option either (1) after the last *FLAGS variable, or
13376 # (2) before a word containing "conftest.", or (3) at the end.
13377 # Note that $ac_compile itself does not contain backslashes and begins
13378 # with a dollar sign (not a hyphen), so the echo should work correctly.
13379 # The option is referenced via a variable to avoid confusing sed.
13380 lt_compile=`echo "$ac_compile" | $SED \
13381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13383 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013384 (eval echo "\"\$as_me:13384: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013385 (eval "$lt_compile" 2>conftest.err)
13386 ac_status=$?
13387 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013388 echo "$as_me:13388: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013389 if (exit $ac_status) && test -s "$ac_outfile"; then
13390 # The compiler can only warn and ignore the option if not recognized
13391 # So say no if there are warnings other than the usual output.
13392 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13395 lt_cv_prog_compiler_pic_works=yes
13396 fi
13397 fi
13398 $RM conftest*
13399
13400fi
13401{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
13402$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13403
13404if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13405 case $lt_prog_compiler_pic in
13406 "" | " "*) ;;
13407 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13408 esac
13409else
13410 lt_prog_compiler_pic=
13411 lt_prog_compiler_can_build_shared=no
13412fi
13413
13414fi
13415
13416
13417
13418
13419
13420
13421#
13422# Check to make sure the static flag actually works.
13423#
13424wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13425{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13427if test "${lt_cv_prog_compiler_static_works+set}" = set; then
13428 $as_echo_n "(cached) " >&6
13429else
13430 lt_cv_prog_compiler_static_works=no
13431 save_LDFLAGS="$LDFLAGS"
13432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13435 # The linker can only warn and ignore the option if not recognized
13436 # So say no if there are warnings
13437 if test -s conftest.err; then
13438 # Append any errors to the config.log.
13439 cat conftest.err 1>&5
13440 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13442 if diff conftest.exp conftest.er2 >/dev/null; then
13443 lt_cv_prog_compiler_static_works=yes
13444 fi
13445 else
13446 lt_cv_prog_compiler_static_works=yes
13447 fi
13448 fi
13449 $RM -r conftest*
13450 LDFLAGS="$save_LDFLAGS"
13451
13452fi
13453{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
13454$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13455
13456if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13457 :
13458else
13459 lt_prog_compiler_static=
13460fi
13461
13462
13463
13464
13465
13466
13467
13468 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13469$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13470if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13471 $as_echo_n "(cached) " >&6
13472else
13473 lt_cv_prog_compiler_c_o=no
13474 $RM -r conftest 2>/dev/null
13475 mkdir conftest
13476 cd conftest
13477 mkdir out
13478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13479
13480 lt_compiler_flag="-o out/conftest2.$ac_objext"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013489 (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013490 (eval "$lt_compile" 2>out/conftest.err)
13491 ac_status=$?
13492 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013493 echo "$as_me:13493: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13495 then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings
13498 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13501 lt_cv_prog_compiler_c_o=yes
13502 fi
13503 fi
13504 chmod u+w . 2>&5
13505 $RM conftest*
13506 # SGI C++ compiler will create directory out/ii_files/ for
13507 # template instantiation
13508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13509 $RM out/* && rmdir out
13510 cd ..
13511 $RM -r conftest
13512 $RM conftest*
13513
13514fi
13515{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13516$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13517
13518
13519
13520
13521
13522
13523 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13524$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13525if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13526 $as_echo_n "(cached) " >&6
13527else
13528 lt_cv_prog_compiler_c_o=no
13529 $RM -r conftest 2>/dev/null
13530 mkdir conftest
13531 cd conftest
13532 mkdir out
13533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13534
13535 lt_compiler_flag="-o out/conftest2.$ac_objext"
13536 # Insert the option either (1) after the last *FLAGS variable, or
13537 # (2) before a word containing "conftest.", or (3) at the end.
13538 # Note that $ac_compile itself does not contain backslashes and begins
13539 # with a dollar sign (not a hyphen), so the echo should work correctly.
13540 lt_compile=`echo "$ac_compile" | $SED \
13541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13543 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013544 (eval echo "\"\$as_me:13544: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013545 (eval "$lt_compile" 2>out/conftest.err)
13546 ac_status=$?
13547 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013548 echo "$as_me:13548: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13550 then
13551 # The compiler can only warn and ignore the option if not recognized
13552 # So say no if there are warnings
13553 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13556 lt_cv_prog_compiler_c_o=yes
13557 fi
13558 fi
13559 chmod u+w . 2>&5
13560 $RM conftest*
13561 # SGI C++ compiler will create directory out/ii_files/ for
13562 # template instantiation
13563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13564 $RM out/* && rmdir out
13565 cd ..
13566 $RM -r conftest
13567 $RM conftest*
13568
13569fi
13570{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13571$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13572
13573
13574
13575
13576hard_links="nottested"
13577if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13578 # do not overwrite the value of need_locks provided by the user
13579 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13580$as_echo_n "checking if we can lock with hard links... " >&6; }
13581 hard_links=yes
13582 $RM conftest*
13583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13584 touch conftest.a
13585 ln conftest.a conftest.b 2>&5 || hard_links=no
13586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13587 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13588$as_echo "$hard_links" >&6; }
13589 if test "$hard_links" = no; then
13590 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13591$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13592 need_locks=warn
13593 fi
13594else
13595 need_locks=no
13596fi
13597
13598
13599
13600
13601
13602
13603 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13604$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13605
13606 runpath_var=
13607 allow_undefined_flag=
13608 always_export_symbols=no
13609 archive_cmds=
13610 archive_expsym_cmds=
13611 compiler_needs_object=no
13612 enable_shared_with_static_runtimes=no
13613 export_dynamic_flag_spec=
13614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13615 hardcode_automatic=no
13616 hardcode_direct=no
13617 hardcode_direct_absolute=no
13618 hardcode_libdir_flag_spec=
13619 hardcode_libdir_flag_spec_ld=
13620 hardcode_libdir_separator=
13621 hardcode_minus_L=no
13622 hardcode_shlibpath_var=unsupported
13623 inherit_rpath=no
13624 link_all_deplibs=unknown
13625 module_cmds=
13626 module_expsym_cmds=
13627 old_archive_from_new_cmds=
13628 old_archive_from_expsyms_cmds=
13629 thread_safe_flag_spec=
13630 whole_archive_flag_spec=
13631 # include_expsyms should be a list of space-separated symbols to be *always*
13632 # included in the symbol list
13633 include_expsyms=
13634 # exclude_expsyms can be an extended regexp of symbols to exclude
13635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13637 # as well as any symbol that contains `d'.
13638 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13640 # platforms (ab)use it in PIC code, but their linkers get confused if
13641 # the symbol is explicitly referenced. Since portable code cannot
13642 # rely on this symbol name, it's probably fine to never include it in
13643 # preloaded symbol tables.
13644 # Exclude shared library initialization/finalization symbols.
13645 extract_expsyms_cmds=
13646
13647 case $host_os in
13648 cygwin* | mingw* | pw32* | cegcc*)
13649 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13650 # When not using gcc, we currently assume that we are using
13651 # Microsoft Visual C++.
13652 if test "$GCC" != yes; then
13653 with_gnu_ld=no
13654 fi
13655 ;;
13656 interix*)
13657 # we just hope/assume this is gcc and not c89 (= MSVC++)
13658 with_gnu_ld=yes
13659 ;;
13660 openbsd*)
13661 with_gnu_ld=no
13662 ;;
13663 esac
13664
13665 ld_shlibs=yes
13666 if test "$with_gnu_ld" = yes; then
13667 # If archive_cmds runs LD, not CC, wlarc should be empty
13668 wlarc='${wl}'
13669
13670 # Set some defaults for GNU ld with shared library support. These
13671 # are reset later if shared libraries are not supported. Putting them
13672 # here allows them to be overridden if necessary.
13673 runpath_var=LD_RUN_PATH
13674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13675 export_dynamic_flag_spec='${wl}--export-dynamic'
13676 # ancient GNU ld didn't support --whole-archive et. al.
13677 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13678 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13679 else
13680 whole_archive_flag_spec=
13681 fi
13682 supports_anon_versioning=no
13683 case `$LD -v 2>&1` in
13684 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13685 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13686 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13687 *\ 2.11.*) ;; # other 2.11 versions
13688 *) supports_anon_versioning=yes ;;
13689 esac
13690
13691 # See if GNU ld supports shared libraries.
13692 case $host_os in
13693 aix[3-9]*)
13694 # On AIX/PPC, the GNU linker is very broken
13695 if test "$host_cpu" != ia64; then
13696 ld_shlibs=no
13697 cat <<_LT_EOF 1>&2
13698
13699*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13700*** to be unable to reliably create shared libraries on AIX.
13701*** Therefore, libtool is disabling shared libraries support. If you
13702*** really care for shared libraries, you may want to modify your PATH
13703*** so that a non-GNU linker is found, and then restart.
13704
13705_LT_EOF
13706 fi
13707 ;;
13708
13709 amigaos*)
13710 case $host_cpu in
13711 powerpc)
13712 # see comment about AmigaOS4 .so support
13713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714 archive_expsym_cmds=''
13715 ;;
13716 m68k)
13717 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)'
13718 hardcode_libdir_flag_spec='-L$libdir'
13719 hardcode_minus_L=yes
13720 ;;
13721 esac
13722 ;;
13723
13724 beos*)
13725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13726 allow_undefined_flag=unsupported
13727 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13728 # support --undefined. This deserves some investigation. FIXME
13729 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13730 else
13731 ld_shlibs=no
13732 fi
13733 ;;
13734
13735 cygwin* | mingw* | pw32* | cegcc*)
13736 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13737 # as there is no search path for DLLs.
13738 hardcode_libdir_flag_spec='-L$libdir'
13739 allow_undefined_flag=unsupported
13740 always_export_symbols=no
13741 enable_shared_with_static_runtimes=yes
13742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13743
13744 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13746 # If the export-symbols file already is a .def file (1st line
13747 # is EXPORTS), use it as is; otherwise, prepend...
13748 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13749 cp $export_symbols $output_objdir/$soname.def;
13750 else
13751 echo EXPORTS > $output_objdir/$soname.def;
13752 cat $export_symbols >> $output_objdir/$soname.def;
13753 fi~
13754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13755 else
13756 ld_shlibs=no
13757 fi
13758 ;;
13759
13760 interix[3-9]*)
13761 hardcode_direct=no
13762 hardcode_shlibpath_var=no
13763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13764 export_dynamic_flag_spec='${wl}-E'
13765 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13766 # Instead, shared libraries are loaded at an image base (0x10000000 by
13767 # default) and relocated if they conflict, which is a slow very memory
13768 # consuming and fragmenting process. To avoid this, we pick a random,
13769 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13770 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13772 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'
13773 ;;
13774
13775 gnu* | linux* | tpf* | k*bsd*-gnu)
13776 tmp_diet=no
13777 if test "$host_os" = linux-dietlibc; then
13778 case $cc_basename in
13779 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13780 esac
13781 fi
13782 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13783 && test "$tmp_diet" = no
13784 then
13785 tmp_addflag=
13786 tmp_sharedflag='-shared'
13787 case $cc_basename,$host_cpu in
13788 pgcc*) # Portland Group C compiler
13789 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'
13790 tmp_addflag=' $pic_flag'
13791 ;;
13792 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13793 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'
13794 tmp_addflag=' $pic_flag -Mnomain' ;;
13795 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13796 tmp_addflag=' -i_dynamic' ;;
13797 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13798 tmp_addflag=' -i_dynamic -nofor_main' ;;
13799 ifc* | ifort*) # Intel Fortran compiler
13800 tmp_addflag=' -nofor_main' ;;
13801 lf95*) # Lahey Fortran 8.1
13802 whole_archive_flag_spec=
13803 tmp_sharedflag='--shared' ;;
13804 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13805 tmp_sharedflag='-qmkshrobj'
13806 tmp_addflag= ;;
13807 esac
13808 case `$CC -V 2>&1 | sed 5q` in
13809 *Sun\ C*) # Sun C 5.9
13810 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'
13811 compiler_needs_object=yes
13812 tmp_sharedflag='-G' ;;
13813 *Sun\ F*) # Sun Fortran 8.3
13814 tmp_sharedflag='-G' ;;
13815 esac
13816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13817
13818 if test "x$supports_anon_versioning" = xyes; then
13819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13821 echo "local: *; };" >> $output_objdir/$libname.ver~
13822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13823 fi
13824
13825 case $cc_basename in
13826 xlf*)
13827 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13828 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13829 hardcode_libdir_flag_spec=
13830 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13831 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13832 if test "x$supports_anon_versioning" = xyes; then
13833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13835 echo "local: *; };" >> $output_objdir/$libname.ver~
13836 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13837 fi
13838 ;;
13839 esac
13840 else
13841 ld_shlibs=no
13842 fi
13843 ;;
13844
13845 netbsd*)
13846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13847 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13848 wlarc=
13849 else
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13852 fi
13853 ;;
13854
13855 solaris*)
13856 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13857 ld_shlibs=no
13858 cat <<_LT_EOF 1>&2
13859
13860*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13861*** create shared libraries on Solaris systems. Therefore, libtool
13862*** is disabling shared libraries support. We urge you to upgrade GNU
13863*** binutils to release 2.9.1 or newer. Another option is to modify
13864*** your PATH or compiler configuration so that the native linker is
13865*** used, and then restart.
13866
13867_LT_EOF
13868 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13871 else
13872 ld_shlibs=no
13873 fi
13874 ;;
13875
13876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13877 case `$LD -v 2>&1` in
13878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13879 ld_shlibs=no
13880 cat <<_LT_EOF 1>&2
13881
13882*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13883*** reliably create shared libraries on SCO systems. Therefore, libtool
13884*** is disabling shared libraries support. We urge you to upgrade GNU
13885*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13886*** your PATH or compiler configuration so that the native linker is
13887*** used, and then restart.
13888
13889_LT_EOF
13890 ;;
13891 *)
13892 # For security reasons, it is highly recommended that you always
13893 # use absolute paths for naming shared libraries, and exclude the
13894 # DT_RUNPATH tag from executables and libraries. But doing so
13895 # requires that you compile everything twice, which is a pain.
13896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13900 else
13901 ld_shlibs=no
13902 fi
13903 ;;
13904 esac
13905 ;;
13906
13907 sunos4*)
13908 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13909 wlarc=
13910 hardcode_direct=yes
13911 hardcode_shlibpath_var=no
13912 ;;
13913
13914 *)
13915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13918 else
13919 ld_shlibs=no
13920 fi
13921 ;;
13922 esac
13923
13924 if test "$ld_shlibs" = no; then
13925 runpath_var=
13926 hardcode_libdir_flag_spec=
13927 export_dynamic_flag_spec=
13928 whole_archive_flag_spec=
13929 fi
13930 else
13931 # PORTME fill in a description of your system's linker (not GNU ld)
13932 case $host_os in
13933 aix3*)
13934 allow_undefined_flag=unsupported
13935 always_export_symbols=yes
13936 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'
13937 # Note: this linker hardcodes the directories in LIBPATH if there
13938 # are no directories specified by -L.
13939 hardcode_minus_L=yes
13940 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13941 # Neither direct hardcoding nor static linking is supported with a
13942 # broken collect2.
13943 hardcode_direct=unsupported
13944 fi
13945 ;;
13946
13947 aix[4-9]*)
13948 if test "$host_cpu" = ia64; then
13949 # On IA64, the linker does run time linking by default, so we don't
13950 # have to do anything special.
13951 aix_use_runtimelinking=no
13952 exp_sym_flag='-Bexport'
13953 no_entry_flag=""
13954 else
13955 # If we're using GNU nm, then we don't want the "-C" option.
13956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13958 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'
13959 else
13960 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'
13961 fi
13962 aix_use_runtimelinking=no
13963
13964 # Test if we are trying to use run time linking or normal
13965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13966 # need to do runtime linking.
13967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13968 for ld_flag in $LDFLAGS; do
13969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13970 aix_use_runtimelinking=yes
13971 break
13972 fi
13973 done
13974 ;;
13975 esac
13976
13977 exp_sym_flag='-bexport'
13978 no_entry_flag='-bnoentry'
13979 fi
13980
13981 # When large executables or shared objects are built, AIX ld can
13982 # have problems creating the table of contents. If linking a library
13983 # or program results in "error TOC overflow" add -mminimal-toc to
13984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13986
13987 archive_cmds=''
13988 hardcode_direct=yes
13989 hardcode_direct_absolute=yes
13990 hardcode_libdir_separator=':'
13991 link_all_deplibs=yes
13992 file_list_spec='${wl}-f,'
13993
13994 if test "$GCC" = yes; then
13995 case $host_os in aix4.[012]|aix4.[012].*)
13996 # We only want to do this on AIX 4.2 and lower, the check
13997 # below for broken collect2 doesn't work under 4.3+
13998 collect2name=`${CC} -print-prog-name=collect2`
13999 if test -f "$collect2name" &&
14000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14001 then
14002 # We have reworked collect2
14003 :
14004 else
14005 # We have old collect2
14006 hardcode_direct=unsupported
14007 # It fails to find uninstalled libraries when the uninstalled
14008 # path is not listed in the libpath. Setting hardcode_minus_L
14009 # to unsupported forces relinking
14010 hardcode_minus_L=yes
14011 hardcode_libdir_flag_spec='-L$libdir'
14012 hardcode_libdir_separator=
14013 fi
14014 ;;
14015 esac
14016 shared_flag='-shared'
14017 if test "$aix_use_runtimelinking" = yes; then
14018 shared_flag="$shared_flag "'${wl}-G'
14019 fi
14020 else
14021 # not using gcc
14022 if test "$host_cpu" = ia64; then
14023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14024 # chokes on -Wl,-G. The following line is correct:
14025 shared_flag='-G'
14026 else
14027 if test "$aix_use_runtimelinking" = yes; then
14028 shared_flag='${wl}-G'
14029 else
14030 shared_flag='${wl}-bM:SRE'
14031 fi
14032 fi
14033 fi
14034
14035 export_dynamic_flag_spec='${wl}-bexpall'
14036 # It seems that -bexpall does not export symbols beginning with
14037 # underscore (_), so it is better to generate a list of symbols to export.
14038 always_export_symbols=yes
14039 if test "$aix_use_runtimelinking" = yes; then
14040 # Warning - without using the other runtime loading flags (-brtl),
14041 # -berok will link without error, but may produce a broken library.
14042 allow_undefined_flag='-berok'
14043 # Determine the default libpath from the value encoded in an
14044 # empty executable.
14045 cat >conftest.$ac_ext <<_ACEOF
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
14051
14052int
14053main ()
14054{
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060rm -f conftest.$ac_objext conftest$ac_exeext
14061if { (ac_try="$ac_link"
14062case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065esac
14066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14067$as_echo "$ac_try_echo") >&5
14068 (eval "$ac_link") 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest$ac_exeext && {
14078 test "$cross_compiling" = yes ||
14079 $as_test_x conftest$ac_exeext
14080 }; then
14081
14082lt_aix_libpath_sed='
14083 /Import File Strings/,/^$/ {
14084 /^0/ {
14085 s/^0 *\(.*\)$/\1/
14086 p
14087 }
14088 }'
14089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14090# Check for a 64-bit object if we didn't find anything.
14091if test -z "$aix_libpath"; then
14092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14093fi
14094else
14095 $as_echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098
14099fi
14100
14101rm -rf conftest.dSYM
14102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14103 conftest$ac_exeext conftest.$ac_ext
14104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14105
14106 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14107 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"
14108 else
14109 if test "$host_cpu" = ia64; then
14110 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14111 allow_undefined_flag="-z nodefs"
14112 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"
14113 else
14114 # Determine the default libpath from the value encoded in an
14115 # empty executable.
14116 cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122
14123int
14124main ()
14125{
14126
14127 ;
14128 return 0;
14129}
14130_ACEOF
14131rm -f conftest.$ac_objext conftest$ac_exeext
14132if { (ac_try="$ac_link"
14133case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136esac
14137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14138$as_echo "$ac_try_echo") >&5
14139 (eval "$ac_link") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest$ac_exeext && {
14149 test "$cross_compiling" = yes ||
14150 $as_test_x conftest$ac_exeext
14151 }; then
14152
14153lt_aix_libpath_sed='
14154 /Import File Strings/,/^$/ {
14155 /^0/ {
14156 s/^0 *\(.*\)$/\1/
14157 p
14158 }
14159 }'
14160aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14161# Check for a 64-bit object if we didn't find anything.
14162if test -z "$aix_libpath"; then
14163 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14164fi
14165else
14166 $as_echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
14169
14170fi
14171
14172rm -rf conftest.dSYM
14173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14174 conftest$ac_exeext conftest.$ac_ext
14175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14176
14177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14178 # Warning - without using the other run time loading flags,
14179 # -berok will link without error, but may produce a broken library.
14180 no_undefined_flag=' ${wl}-bernotok'
14181 allow_undefined_flag=' ${wl}-berok'
14182 # Exported symbols can be pulled into shared objects from archives
14183 whole_archive_flag_spec='$convenience'
14184 archive_cmds_need_lc=yes
14185 # This is similar to how AIX traditionally builds its shared libraries.
14186 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'
14187 fi
14188 fi
14189 ;;
14190
14191 amigaos*)
14192 case $host_cpu in
14193 powerpc)
14194 # see comment about AmigaOS4 .so support
14195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14196 archive_expsym_cmds=''
14197 ;;
14198 m68k)
14199 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)'
14200 hardcode_libdir_flag_spec='-L$libdir'
14201 hardcode_minus_L=yes
14202 ;;
14203 esac
14204 ;;
14205
14206 bsdi[45]*)
14207 export_dynamic_flag_spec=-rdynamic
14208 ;;
14209
14210 cygwin* | mingw* | pw32* | cegcc*)
14211 # When not using gcc, we currently assume that we are using
14212 # Microsoft Visual C++.
14213 # hardcode_libdir_flag_spec is actually meaningless, as there is
14214 # no search path for DLLs.
14215 hardcode_libdir_flag_spec=' '
14216 allow_undefined_flag=unsupported
14217 # Tell ltmain to make .lib files, not .a files.
14218 libext=lib
14219 # Tell ltmain to make .dll files, not .so files.
14220 shrext_cmds=".dll"
14221 # FIXME: Setting linknames here is a bad hack.
14222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14223 # The linker will automatically build a .lib file if we build a DLL.
14224 old_archive_from_new_cmds='true'
14225 # FIXME: Should let the user specify the lib program.
14226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14227 fix_srcfile_path='`cygpath -w "$srcfile"`'
14228 enable_shared_with_static_runtimes=yes
14229 ;;
14230
14231 darwin* | rhapsody*)
14232
14233
14234 archive_cmds_need_lc=no
14235 hardcode_direct=no
14236 hardcode_automatic=yes
14237 hardcode_shlibpath_var=unsupported
14238 whole_archive_flag_spec=''
14239 link_all_deplibs=yes
14240 allow_undefined_flag="$_lt_dar_allow_undefined"
14241 case $cc_basename in
14242 ifort*) _lt_dar_can_shared=yes ;;
14243 *) _lt_dar_can_shared=$GCC ;;
14244 esac
14245 if test "$_lt_dar_can_shared" = "yes"; then
14246 output_verbose_link_cmd=echo
14247 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14248 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14249 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}"
14250 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}"
14251
14252 else
14253 ld_shlibs=no
14254 fi
14255
14256 ;;
14257
14258 dgux*)
14259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_libdir_flag_spec='-L$libdir'
14261 hardcode_shlibpath_var=no
14262 ;;
14263
14264 freebsd1*)
14265 ld_shlibs=no
14266 ;;
14267
14268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14269 # support. Future versions do this automatically, but an explicit c++rt0.o
14270 # does not break anything, and helps significantly (at the cost of a little
14271 # extra space).
14272 freebsd2.2*)
14273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14274 hardcode_libdir_flag_spec='-R$libdir'
14275 hardcode_direct=yes
14276 hardcode_shlibpath_var=no
14277 ;;
14278
14279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14280 freebsd2*)
14281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14282 hardcode_direct=yes
14283 hardcode_minus_L=yes
14284 hardcode_shlibpath_var=no
14285 ;;
14286
14287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14288 freebsd* | dragonfly*)
14289 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14290 hardcode_libdir_flag_spec='-R$libdir'
14291 hardcode_direct=yes
14292 hardcode_shlibpath_var=no
14293 ;;
14294
14295 hpux9*)
14296 if test "$GCC" = yes; then
14297 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'
14298 else
14299 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'
14300 fi
14301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14302 hardcode_libdir_separator=:
14303 hardcode_direct=yes
14304
14305 # hardcode_minus_L: Not really in the search PATH,
14306 # but as the default location of the library.
14307 hardcode_minus_L=yes
14308 export_dynamic_flag_spec='${wl}-E'
14309 ;;
14310
14311 hpux10*)
14312 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14313 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14314 else
14315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14316 fi
14317 if test "$with_gnu_ld" = no; then
14318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14319 hardcode_libdir_flag_spec_ld='+b $libdir'
14320 hardcode_libdir_separator=:
14321 hardcode_direct=yes
14322 hardcode_direct_absolute=yes
14323 export_dynamic_flag_spec='${wl}-E'
14324 # hardcode_minus_L: Not really in the search PATH,
14325 # but as the default location of the library.
14326 hardcode_minus_L=yes
14327 fi
14328 ;;
14329
14330 hpux11*)
14331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14332 case $host_cpu in
14333 hppa*64*)
14334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 ;;
14336 ia64*)
14337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14338 ;;
14339 *)
14340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14341 ;;
14342 esac
14343 else
14344 case $host_cpu in
14345 hppa*64*)
14346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14347 ;;
14348 ia64*)
14349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14350 ;;
14351 *)
14352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14353 ;;
14354 esac
14355 fi
14356 if test "$with_gnu_ld" = no; then
14357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14358 hardcode_libdir_separator=:
14359
14360 case $host_cpu in
14361 hppa*64*|ia64*)
14362 hardcode_direct=no
14363 hardcode_shlibpath_var=no
14364 ;;
14365 *)
14366 hardcode_direct=yes
14367 hardcode_direct_absolute=yes
14368 export_dynamic_flag_spec='${wl}-E'
14369
14370 # hardcode_minus_L: Not really in the search PATH,
14371 # but as the default location of the library.
14372 hardcode_minus_L=yes
14373 ;;
14374 esac
14375 fi
14376 ;;
14377
14378 irix5* | irix6* | nonstopux*)
14379 if test "$GCC" = yes; then
14380 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'
14381 # Try to use the -exported_symbol ld option, if it does not
14382 # work, assume that -exports_file does not work either and
14383 # implicitly export all symbols.
14384 save_LDFLAGS="$LDFLAGS"
14385 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14386 cat >conftest.$ac_ext <<_ACEOF
14387int foo(void) {}
14388_ACEOF
14389rm -f conftest.$ac_objext conftest$ac_exeext
14390if { (ac_try="$ac_link"
14391case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14396$as_echo "$ac_try_echo") >&5
14397 (eval "$ac_link") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest$ac_exeext && {
14407 test "$cross_compiling" = yes ||
14408 $as_test_x conftest$ac_exeext
14409 }; then
14410 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'
14411
14412else
14413 $as_echo "$as_me: failed program was:" >&5
14414sed 's/^/| /' conftest.$ac_ext >&5
14415
14416
14417fi
14418
14419rm -rf conftest.dSYM
14420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14422 LDFLAGS="$save_LDFLAGS"
14423 else
14424 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'
14425 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'
14426 fi
14427 archive_cmds_need_lc='no'
14428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14429 hardcode_libdir_separator=:
14430 inherit_rpath=yes
14431 link_all_deplibs=yes
14432 ;;
14433
14434 netbsd*)
14435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14437 else
14438 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14439 fi
14440 hardcode_libdir_flag_spec='-R$libdir'
14441 hardcode_direct=yes
14442 hardcode_shlibpath_var=no
14443 ;;
14444
14445 newsos6)
14446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14447 hardcode_direct=yes
14448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14449 hardcode_libdir_separator=:
14450 hardcode_shlibpath_var=no
14451 ;;
14452
14453 *nto* | *qnx*)
14454 ;;
14455
14456 openbsd*)
14457 if test -f /usr/libexec/ld.so; then
14458 hardcode_direct=yes
14459 hardcode_shlibpath_var=no
14460 hardcode_direct_absolute=yes
14461 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14462 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14463 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14465 export_dynamic_flag_spec='${wl}-E'
14466 else
14467 case $host_os in
14468 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_libdir_flag_spec='-R$libdir'
14471 ;;
14472 *)
14473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14475 ;;
14476 esac
14477 fi
14478 else
14479 ld_shlibs=no
14480 fi
14481 ;;
14482
14483 os2*)
14484 hardcode_libdir_flag_spec='-L$libdir'
14485 hardcode_minus_L=yes
14486 allow_undefined_flag=unsupported
14487 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'
14488 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14489 ;;
14490
14491 osf3*)
14492 if test "$GCC" = yes; then
14493 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14494 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'
14495 else
14496 allow_undefined_flag=' -expect_unresolved \*'
14497 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'
14498 fi
14499 archive_cmds_need_lc='no'
14500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14501 hardcode_libdir_separator=:
14502 ;;
14503
14504 osf4* | osf5*) # as osf3* with the addition of -msym flag
14505 if test "$GCC" = yes; then
14506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14507 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'
14508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14509 else
14510 allow_undefined_flag=' -expect_unresolved \*'
14511 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'
14512 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~
14513 $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'
14514
14515 # Both c and cxx compiler support -rpath directly
14516 hardcode_libdir_flag_spec='-rpath $libdir'
14517 fi
14518 archive_cmds_need_lc='no'
14519 hardcode_libdir_separator=:
14520 ;;
14521
14522 solaris*)
14523 no_undefined_flag=' -z defs'
14524 if test "$GCC" = yes; then
14525 wlarc='${wl}'
14526 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14528 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14529 else
14530 case `$CC -V 2>&1` in
14531 *"Compilers 5.0"*)
14532 wlarc=''
14533 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14535 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14536 ;;
14537 *)
14538 wlarc='${wl}'
14539 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14541 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14542 ;;
14543 esac
14544 fi
14545 hardcode_libdir_flag_spec='-R$libdir'
14546 hardcode_shlibpath_var=no
14547 case $host_os in
14548 solaris2.[0-5] | solaris2.[0-5].*) ;;
14549 *)
14550 # The compiler driver will combine and reorder linker options,
14551 # but understands `-z linker_flag'. GCC discards it without `$wl',
14552 # but is careful enough not to reorder.
14553 # Supported since Solaris 2.6 (maybe 2.5.1?)
14554 if test "$GCC" = yes; then
14555 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14556 else
14557 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14558 fi
14559 ;;
14560 esac
14561 link_all_deplibs=yes
14562 ;;
14563
14564 sunos4*)
14565 if test "x$host_vendor" = xsequent; then
14566 # Use $CC to link under sequent, because it throws in some extra .o
14567 # files that make .init and .fini sections work.
14568 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14569 else
14570 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14571 fi
14572 hardcode_libdir_flag_spec='-L$libdir'
14573 hardcode_direct=yes
14574 hardcode_minus_L=yes
14575 hardcode_shlibpath_var=no
14576 ;;
14577
14578 sysv4)
14579 case $host_vendor in
14580 sni)
14581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582 hardcode_direct=yes # is this really true???
14583 ;;
14584 siemens)
14585 ## LD is ld it makes a PLAMLIB
14586 ## CC just makes a GrossModule.
14587 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14588 reload_cmds='$CC -r -o $output$reload_objs'
14589 hardcode_direct=no
14590 ;;
14591 motorola)
14592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14593 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14594 ;;
14595 esac
14596 runpath_var='LD_RUN_PATH'
14597 hardcode_shlibpath_var=no
14598 ;;
14599
14600 sysv4.3*)
14601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602 hardcode_shlibpath_var=no
14603 export_dynamic_flag_spec='-Bexport'
14604 ;;
14605
14606 sysv4*MP*)
14607 if test -d /usr/nec; then
14608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14609 hardcode_shlibpath_var=no
14610 runpath_var=LD_RUN_PATH
14611 hardcode_runpath_var=yes
14612 ld_shlibs=yes
14613 fi
14614 ;;
14615
14616 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14617 no_undefined_flag='${wl}-z,text'
14618 archive_cmds_need_lc=no
14619 hardcode_shlibpath_var=no
14620 runpath_var='LD_RUN_PATH'
14621
14622 if test "$GCC" = yes; then
14623 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14624 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 else
14626 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 fi
14629 ;;
14630
14631 sysv5* | sco3.2v5* | sco5v6*)
14632 # Note: We can NOT use -z defs as we might desire, because we do not
14633 # link with -lc, and that would cause any symbols used from libc to
14634 # always be unresolved, which means just about no library would
14635 # ever link correctly. If we're not using GNU ld we use -z text
14636 # though, which does catch some bad symbols but isn't as heavy-handed
14637 # as -z defs.
14638 no_undefined_flag='${wl}-z,text'
14639 allow_undefined_flag='${wl}-z,nodefs'
14640 archive_cmds_need_lc=no
14641 hardcode_shlibpath_var=no
14642 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14643 hardcode_libdir_separator=':'
14644 link_all_deplibs=yes
14645 export_dynamic_flag_spec='${wl}-Bexport'
14646 runpath_var='LD_RUN_PATH'
14647
14648 if test "$GCC" = yes; then
14649 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 else
14652 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 fi
14655 ;;
14656
14657 uts4*)
14658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_libdir_flag_spec='-L$libdir'
14660 hardcode_shlibpath_var=no
14661 ;;
14662
14663 *)
14664 ld_shlibs=no
14665 ;;
14666 esac
14667
14668 if test x$host_vendor = xsni; then
14669 case $host in
14670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14671 export_dynamic_flag_spec='${wl}-Blargedynsym'
14672 ;;
14673 esac
14674 fi
14675 fi
14676
14677{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14678$as_echo "$ld_shlibs" >&6; }
14679test "$ld_shlibs" = no && can_build_shared=no
14680
14681with_gnu_ld=$with_gnu_ld
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697#
14698# Do we need to explicitly link libc?
14699#
14700case "x$archive_cmds_need_lc" in
14701x|xyes)
14702 # Assume -lc should be added
14703 archive_cmds_need_lc=yes
14704
14705 if test "$enable_shared" = yes && test "$GCC" = yes; then
14706 case $archive_cmds in
14707 *'~'*)
14708 # FIXME: we may have to deal with multi-command sequences.
14709 ;;
14710 '$CC '*)
14711 # Test whether the compiler implicitly links with -lc since on some
14712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14713 # to ld, don't add -lc before -lgcc.
14714 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14715$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14716 $RM conftest*
14717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14718
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14721 ac_status=$?
14722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } 2>conftest.err; then
14724 soname=conftest
14725 lib=conftest
14726 libobjs=conftest.$ac_objext
14727 deplibs=
14728 wl=$lt_prog_compiler_wl
14729 pic_flag=$lt_prog_compiler_pic
14730 compiler_flags=-v
14731 linker_flags=-v
14732 verstring=
14733 output_objdir=.
14734 libname=conftest
14735 lt_save_allow_undefined_flag=$allow_undefined_flag
14736 allow_undefined_flag=
14737 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14738 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14739 ac_status=$?
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }
14742 then
14743 archive_cmds_need_lc=no
14744 else
14745 archive_cmds_need_lc=yes
14746 fi
14747 allow_undefined_flag=$lt_save_allow_undefined_flag
14748 else
14749 cat conftest.err 1>&5
14750 fi
14751 $RM conftest*
14752 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14753$as_echo "$archive_cmds_need_lc" >&6; }
14754 ;;
14755 esac
14756 fi
14757 ;;
14758esac
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
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
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14917$as_echo_n "checking dynamic linker characteristics... " >&6; }
14918
14919if test "$GCC" = yes; then
14920 case $host_os in
14921 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14922 *) lt_awk_arg="/^libraries:/" ;;
14923 esac
14924 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14925 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14926 # if the path contains ";" then we assume it to be the separator
14927 # otherwise default to the standard path separator (i.e. ":") - it is
14928 # assumed that no part of a normal pathname contains ";" but that should
14929 # okay in the real world where ";" in dirpaths is itself problematic.
14930 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14931 else
14932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14933 fi
14934 # Ok, now we have the path, separated by spaces, we can step through it
14935 # and add multilib dir if necessary.
14936 lt_tmp_lt_search_path_spec=
14937 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14938 for lt_sys_path in $lt_search_path_spec; do
14939 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14941 else
14942 test -d "$lt_sys_path" && \
14943 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14944 fi
14945 done
14946 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14947BEGIN {RS=" "; FS="/|\n";} {
14948 lt_foo="";
14949 lt_count=0;
14950 for (lt_i = NF; lt_i > 0; lt_i--) {
14951 if ($lt_i != "" && $lt_i != ".") {
14952 if ($lt_i == "..") {
14953 lt_count++;
14954 } else {
14955 if (lt_count == 0) {
14956 lt_foo="/" $lt_i lt_foo;
14957 } else {
14958 lt_count--;
14959 }
14960 }
14961 }
14962 }
14963 if (lt_foo != "") { lt_freq[lt_foo]++; }
14964 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14965}'`
14966 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14967else
14968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14969fi
14970library_names_spec=
14971libname_spec='lib$name'
14972soname_spec=
14973shrext_cmds=".so"
14974postinstall_cmds=
14975postuninstall_cmds=
14976finish_cmds=
14977finish_eval=
14978shlibpath_var=
14979shlibpath_overrides_runpath=unknown
14980version_type=none
14981dynamic_linker="$host_os ld.so"
14982sys_lib_dlsearch_path_spec="/lib /usr/lib"
14983need_lib_prefix=unknown
14984hardcode_into_libs=no
14985
14986# when you set need_version to no, make sure it does not cause -set_version
14987# flags to be left without arguments
14988need_version=unknown
14989
14990case $host_os in
14991aix3*)
14992 version_type=linux
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14994 shlibpath_var=LIBPATH
14995
14996 # AIX 3 has no versioning support, so we append a major version to the name.
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 ;;
14999
15000aix[4-9]*)
15001 version_type=linux
15002 need_lib_prefix=no
15003 need_version=no
15004 hardcode_into_libs=yes
15005 if test "$host_cpu" = ia64; then
15006 # AIX 5 supports IA64
15007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 else
15010 # With GCC up to 2.95.x, collect2 would create an import file
15011 # for dependence libraries. The import file would start with
15012 # the line `#! .'. This would cause the generated library to
15013 # depend on `.', always an invalid library. This was fixed in
15014 # development snapshots of GCC prior to 3.0.
15015 case $host_os in
15016 aix4 | aix4.[01] | aix4.[01].*)
15017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15018 echo ' yes '
15019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15020 :
15021 else
15022 can_build_shared=no
15023 fi
15024 ;;
15025 esac
15026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15027 # soname into executable. Probably we can add versioning support to
15028 # collect2, so additional links can be useful in future.
15029 if test "$aix_use_runtimelinking" = yes; then
15030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15031 # instead of lib<name>.a to let people know that these are not
15032 # typical AIX shared libraries.
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 else
15035 # We preserve .a as extension for shared libraries through AIX4.2
15036 # and later when we are not doing run time linking.
15037 library_names_spec='${libname}${release}.a $libname.a'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 fi
15040 shlibpath_var=LIBPATH
15041 fi
15042 ;;
15043
15044amigaos*)
15045 case $host_cpu in
15046 powerpc)
15047 # Since July 2007 AmigaOS4 officially supports .so libraries.
15048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 ;;
15051 m68k)
15052 library_names_spec='$libname.ixlibrary $libname.a'
15053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15054 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'
15055 ;;
15056 esac
15057 ;;
15058
15059beos*)
15060 library_names_spec='${libname}${shared_ext}'
15061 dynamic_linker="$host_os ld.so"
15062 shlibpath_var=LIBRARY_PATH
15063 ;;
15064
15065bsdi[45]*)
15066 version_type=linux
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15074 # the default ld.so.conf also contains /usr/contrib/lib and
15075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15076 # libtool to hard-code these into programs
15077 ;;
15078
15079cygwin* | mingw* | pw32* | cegcc*)
15080 version_type=windows
15081 shrext_cmds=".dll"
15082 need_version=no
15083 need_lib_prefix=no
15084
15085 case $GCC,$host_os in
15086 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15087 library_names_spec='$libname.dll.a'
15088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15089 postinstall_cmds='base_file=`basename \${file}`~
15090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15091 dldir=$destdir/`dirname \$dlpath`~
15092 test -d \$dldir || mkdir -p \$dldir~
15093 $install_prog $dir/$dlname \$dldir/$dlname~
15094 chmod a+x \$dldir/$dlname~
15095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15097 fi'
15098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15099 dlpath=$dir/\$dldll~
15100 $RM \$dlpath'
15101 shlibpath_overrides_runpath=yes
15102
15103 case $host_os in
15104 cygwin*)
15105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15108 ;;
15109 mingw* | cegcc*)
15110 # MinGW DLLs use traditional 'lib' prefix
15111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15112 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15113 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15114 # It is most probably a Windows format PATH printed by
15115 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15116 # path with ; separators, and with drive letters. We can handle the
15117 # drive letters (cygwin fileutils understands them), so leave them,
15118 # especially as we might pass files found there to a mingw objdump,
15119 # which wouldn't understand a cygwinified path. Ahh.
15120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15121 else
15122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15123 fi
15124 ;;
15125 pw32*)
15126 # pw32 DLLs use 'pw' prefix rather than 'lib'
15127 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15128 ;;
15129 esac
15130 ;;
15131
15132 *)
15133 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15134 ;;
15135 esac
15136 dynamic_linker='Win32 ld.exe'
15137 # FIXME: first we should search . and the directory the executable is in
15138 shlibpath_var=PATH
15139 ;;
15140
15141darwin* | rhapsody*)
15142 dynamic_linker="$host_os dyld"
15143 version_type=darwin
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15147 soname_spec='${libname}${release}${major}$shared_ext'
15148 shlibpath_overrides_runpath=yes
15149 shlibpath_var=DYLD_LIBRARY_PATH
15150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15151
15152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15154 ;;
15155
15156dgux*)
15157 version_type=linux
15158 need_lib_prefix=no
15159 need_version=no
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15161 soname_spec='${libname}${release}${shared_ext}$major'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 ;;
15164
15165freebsd1*)
15166 dynamic_linker=no
15167 ;;
15168
15169freebsd* | dragonfly*)
15170 # DragonFly does not have aout. When/if they implement a new
15171 # versioning mechanism, adjust this.
15172 if test -x /usr/bin/objformat; then
15173 objformat=`/usr/bin/objformat`
15174 else
15175 case $host_os in
15176 freebsd[123]*) objformat=aout ;;
15177 *) objformat=elf ;;
15178 esac
15179 fi
15180 version_type=freebsd-$objformat
15181 case $version_type in
15182 freebsd-elf*)
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15184 need_version=no
15185 need_lib_prefix=no
15186 ;;
15187 freebsd-*)
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15189 need_version=yes
15190 ;;
15191 esac
15192 shlibpath_var=LD_LIBRARY_PATH
15193 case $host_os in
15194 freebsd2*)
15195 shlibpath_overrides_runpath=yes
15196 ;;
15197 freebsd3.[01]* | freebsdelf3.[01]*)
15198 shlibpath_overrides_runpath=yes
15199 hardcode_into_libs=yes
15200 ;;
15201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15203 shlibpath_overrides_runpath=no
15204 hardcode_into_libs=yes
15205 ;;
15206 *) # from 4.6 on, and DragonFly
15207 shlibpath_overrides_runpath=yes
15208 hardcode_into_libs=yes
15209 ;;
15210 esac
15211 ;;
15212
15213gnu*)
15214 version_type=linux
15215 need_lib_prefix=no
15216 need_version=no
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 shlibpath_var=LD_LIBRARY_PATH
15220 hardcode_into_libs=yes
15221 ;;
15222
15223hpux9* | hpux10* | hpux11*)
15224 # Give a soname corresponding to the major version so that dld.sl refuses to
15225 # link against other versions.
15226 version_type=sunos
15227 need_lib_prefix=no
15228 need_version=no
15229 case $host_cpu in
15230 ia64*)
15231 shrext_cmds='.so'
15232 hardcode_into_libs=yes
15233 dynamic_linker="$host_os dld.so"
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 if test "X$HPUX_IA64_MODE" = X32; then
15239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15240 else
15241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15242 fi
15243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15244 ;;
15245 hppa*64*)
15246 shrext_cmds='.sl'
15247 hardcode_into_libs=yes
15248 dynamic_linker="$host_os dld.sl"
15249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15255 ;;
15256 *)
15257 shrext_cmds='.sl'
15258 dynamic_linker="$host_os dld.sl"
15259 shlibpath_var=SHLIB_PATH
15260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 ;;
15264 esac
15265 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15266 postinstall_cmds='chmod 555 $lib'
15267 ;;
15268
15269interix[3-9]*)
15270 version_type=linux
15271 need_lib_prefix=no
15272 need_version=no
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 hardcode_into_libs=yes
15279 ;;
15280
15281irix5* | irix6* | nonstopux*)
15282 case $host_os in
15283 nonstopux*) version_type=nonstopux ;;
15284 *)
15285 if test "$lt_cv_prog_gnu_ld" = yes; then
15286 version_type=linux
15287 else
15288 version_type=irix
15289 fi ;;
15290 esac
15291 need_lib_prefix=no
15292 need_version=no
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15295 case $host_os in
15296 irix5* | nonstopux*)
15297 libsuff= shlibsuff=
15298 ;;
15299 *)
15300 case $LD in # libtool.m4 will add one of these switches to LD
15301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15302 libsuff= shlibsuff= libmagic=32-bit;;
15303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15304 libsuff=32 shlibsuff=N32 libmagic=N32;;
15305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15307 *) libsuff= shlibsuff= libmagic=never-match;;
15308 esac
15309 ;;
15310 esac
15311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15312 shlibpath_overrides_runpath=no
15313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15315 hardcode_into_libs=yes
15316 ;;
15317
15318# No shared lib support for Linux oldld, aout, or coff.
15319linux*oldld* | linux*aout* | linux*coff*)
15320 dynamic_linker=no
15321 ;;
15322
15323# This must be Linux ELF.
15324linux* | k*bsd*-gnu)
15325 version_type=linux
15326 need_lib_prefix=no
15327 need_version=no
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=no
15333 # Some binutils ld are patched to set DT_RUNPATH
15334 save_LDFLAGS=$LDFLAGS
15335 save_libdir=$libdir
15336 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15337 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15338 cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344
15345int
15346main ()
15347{
15348
15349 ;
15350 return 0;
15351}
15352_ACEOF
15353rm -f conftest.$ac_objext conftest$ac_exeext
15354if { (ac_try="$ac_link"
15355case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15360$as_echo "$ac_try_echo") >&5
15361 (eval "$ac_link") 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && {
15368 test -z "$ac_c_werror_flag" ||
15369 test ! -s conftest.err
15370 } && test -s conftest$ac_exeext && {
15371 test "$cross_compiling" = yes ||
15372 $as_test_x conftest$ac_exeext
15373 }; then
15374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15375 shlibpath_overrides_runpath=yes
15376fi
15377
15378else
15379 $as_echo "$as_me: failed program was:" >&5
15380sed 's/^/| /' conftest.$ac_ext >&5
15381
15382
15383fi
15384
15385rm -rf conftest.dSYM
15386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15387 conftest$ac_exeext conftest.$ac_ext
15388 LDFLAGS=$save_LDFLAGS
15389 libdir=$save_libdir
15390
15391 # This implies no fast_install, which is unacceptable.
15392 # Some rework will be needed to allow for fast_install
15393 # before this can be enabled.
15394 hardcode_into_libs=yes
15395
15396 # Add ABI-specific directories to the system library path.
15397 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15398
15399 # Append ld.so.conf contents to the search path
15400 if test -f /etc/ld.so.conf; then
15401 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' ' '`
15402 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15403 fi
15404
15405 # We used to test for /lib/ld.so.1 and disable shared libraries on
15406 # powerpc, because MkLinux only supported shared libraries with the
15407 # GNU dynamic linker. Since this was broken with cross compilers,
15408 # most powerpc-linux boxes support dynamic linking these days and
15409 # people can always --disable-shared, the test was removed, and we
15410 # assume the GNU/Linux dynamic linker is in use.
15411 dynamic_linker='GNU/Linux ld.so'
15412 ;;
15413
15414netbsd*)
15415 version_type=sunos
15416 need_lib_prefix=no
15417 need_version=no
15418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15421 dynamic_linker='NetBSD (a.out) ld.so'
15422 else
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 dynamic_linker='NetBSD ld.elf_so'
15426 fi
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=yes
15429 hardcode_into_libs=yes
15430 ;;
15431
15432newsos6)
15433 version_type=linux
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15437 ;;
15438
15439*nto* | *qnx*)
15440 version_type=qnx
15441 need_lib_prefix=no
15442 need_version=no
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=no
15447 hardcode_into_libs=yes
15448 dynamic_linker='ldqnx.so'
15449 ;;
15450
15451openbsd*)
15452 version_type=sunos
15453 sys_lib_dlsearch_path_spec="/usr/lib"
15454 need_lib_prefix=no
15455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15456 case $host_os in
15457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15458 *) need_version=no ;;
15459 esac
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15462 shlibpath_var=LD_LIBRARY_PATH
15463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15464 case $host_os in
15465 openbsd2.[89] | openbsd2.[89].*)
15466 shlibpath_overrides_runpath=no
15467 ;;
15468 *)
15469 shlibpath_overrides_runpath=yes
15470 ;;
15471 esac
15472 else
15473 shlibpath_overrides_runpath=yes
15474 fi
15475 ;;
15476
15477os2*)
15478 libname_spec='$name'
15479 shrext_cmds=".dll"
15480 need_lib_prefix=no
15481 library_names_spec='$libname${shared_ext} $libname.a'
15482 dynamic_linker='OS/2 ld.exe'
15483 shlibpath_var=LIBPATH
15484 ;;
15485
15486osf3* | osf4* | osf5*)
15487 version_type=osf
15488 need_lib_prefix=no
15489 need_version=no
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15495 ;;
15496
15497rdos*)
15498 dynamic_linker=no
15499 ;;
15500
15501solaris*)
15502 version_type=linux
15503 need_lib_prefix=no
15504 need_version=no
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 soname_spec='${libname}${release}${shared_ext}$major'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes
15509 hardcode_into_libs=yes
15510 # ldd complains unless libraries are executable
15511 postinstall_cmds='chmod +x $lib'
15512 ;;
15513
15514sunos4*)
15515 version_type=sunos
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 shlibpath_overrides_runpath=yes
15520 if test "$with_gnu_ld" = yes; then
15521 need_lib_prefix=no
15522 fi
15523 need_version=yes
15524 ;;
15525
15526sysv4 | sysv4.3*)
15527 version_type=linux
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 case $host_vendor in
15532 sni)
15533 shlibpath_overrides_runpath=no
15534 need_lib_prefix=no
15535 runpath_var=LD_RUN_PATH
15536 ;;
15537 siemens)
15538 need_lib_prefix=no
15539 ;;
15540 motorola)
15541 need_lib_prefix=no
15542 need_version=no
15543 shlibpath_overrides_runpath=no
15544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15545 ;;
15546 esac
15547 ;;
15548
15549sysv4*MP*)
15550 if test -d /usr/nec ;then
15551 version_type=linux
15552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15553 soname_spec='$libname${shared_ext}.$major'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 fi
15556 ;;
15557
15558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15559 version_type=freebsd-elf
15560 need_lib_prefix=no
15561 need_version=no
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 shlibpath_overrides_runpath=yes
15566 hardcode_into_libs=yes
15567 if test "$with_gnu_ld" = yes; then
15568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15569 else
15570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15571 case $host_os in
15572 sco3.2v5*)
15573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15574 ;;
15575 esac
15576 fi
15577 sys_lib_dlsearch_path_spec='/usr/lib'
15578 ;;
15579
15580tpf*)
15581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15582 version_type=linux
15583 need_lib_prefix=no
15584 need_version=no
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 shlibpath_overrides_runpath=no
15588 hardcode_into_libs=yes
15589 ;;
15590
15591uts4*)
15592 version_type=linux
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 ;;
15597
15598*)
15599 dynamic_linker=no
15600 ;;
15601esac
15602{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15603$as_echo "$dynamic_linker" >&6; }
15604test "$dynamic_linker" = no && can_build_shared=no
15605
15606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15607if test "$GCC" = yes; then
15608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15609fi
15610
15611if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15612 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15613fi
15614if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15615 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15616fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15705$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15706hardcode_action=
15707if test -n "$hardcode_libdir_flag_spec" ||
15708 test -n "$runpath_var" ||
15709 test "X$hardcode_automatic" = "Xyes" ; then
15710
15711 # We can hardcode non-existent directories.
15712 if test "$hardcode_direct" != no &&
15713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15714 # have to relink, otherwise we might link with an installed library
15715 # when we should be linking with a yet-to-be-installed one
15716 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15717 test "$hardcode_minus_L" != no; then
15718 # Linking always hardcodes the temporary library directory.
15719 hardcode_action=relink
15720 else
15721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15722 hardcode_action=immediate
15723 fi
15724else
15725 # We cannot hardcode anything, or else we can only hardcode existing
15726 # directories.
15727 hardcode_action=unsupported
15728fi
15729{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
15730$as_echo "$hardcode_action" >&6; }
15731
15732if test "$hardcode_action" = relink ||
15733 test "$inherit_rpath" = yes; then
15734 # Fast installation is not supported
15735 enable_fast_install=no
15736elif test "$shlibpath_overrides_runpath" = yes ||
15737 test "$enable_shared" = no; then
15738 # Fast installation is not necessary
15739 enable_fast_install=needless
15740fi
15741
15742
15743
15744
15745
15746
15747 if test "x$enable_dlopen" != xyes; then
15748 enable_dlopen=unknown
15749 enable_dlopen_self=unknown
15750 enable_dlopen_self_static=unknown
15751else
15752 lt_cv_dlopen=no
15753 lt_cv_dlopen_libs=
15754
15755 case $host_os in
15756 beos*)
15757 lt_cv_dlopen="load_add_on"
15758 lt_cv_dlopen_libs=
15759 lt_cv_dlopen_self=yes
15760 ;;
15761
15762 mingw* | pw32* | cegcc*)
15763 lt_cv_dlopen="LoadLibrary"
15764 lt_cv_dlopen_libs=
15765 ;;
15766
15767 cygwin*)
15768 lt_cv_dlopen="dlopen"
15769 lt_cv_dlopen_libs=
15770 ;;
15771
15772 darwin*)
15773 # if libdl is installed we need to link against it
15774 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15775$as_echo_n "checking for dlopen in -ldl... " >&6; }
15776if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15777 $as_echo_n "(cached) " >&6
15778else
15779 ac_check_lib_save_LIBS=$LIBS
15780LIBS="-ldl $LIBS"
15781cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787
15788/* Override any GCC internal prototype to avoid an error.
15789 Use char because int might match the return type of a GCC
15790 builtin and then its argument prototype would still apply. */
15791#ifdef __cplusplus
15792extern "C"
15793#endif
15794char dlopen ();
15795int
15796main ()
15797{
15798return dlopen ();
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext conftest$ac_exeext
15804if { (ac_try="$ac_link"
15805case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15810$as_echo "$ac_try_echo") >&5
15811 (eval "$ac_link") 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } && {
15818 test -z "$ac_c_werror_flag" ||
15819 test ! -s conftest.err
15820 } && test -s conftest$ac_exeext && {
15821 test "$cross_compiling" = yes ||
15822 $as_test_x conftest$ac_exeext
15823 }; then
15824 ac_cv_lib_dl_dlopen=yes
15825else
15826 $as_echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_lib_dl_dlopen=no
15830fi
15831
15832rm -rf conftest.dSYM
15833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15834 conftest$ac_exeext conftest.$ac_ext
15835LIBS=$ac_check_lib_save_LIBS
15836fi
15837{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15838$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15839if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15841else
15842
15843 lt_cv_dlopen="dyld"
15844 lt_cv_dlopen_libs=
15845 lt_cv_dlopen_self=yes
15846
15847fi
15848
15849 ;;
15850
15851 *)
15852 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15853$as_echo_n "checking for shl_load... " >&6; }
15854if test "${ac_cv_func_shl_load+set}" = set; then
15855 $as_echo_n "(cached) " >&6
15856else
15857 cat >conftest.$ac_ext <<_ACEOF
15858/* confdefs.h. */
15859_ACEOF
15860cat confdefs.h >>conftest.$ac_ext
15861cat >>conftest.$ac_ext <<_ACEOF
15862/* end confdefs.h. */
15863/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15865#define shl_load innocuous_shl_load
15866
15867/* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char shl_load (); below.
15869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870 <limits.h> exists even on freestanding compilers. */
15871
15872#ifdef __STDC__
15873# include <limits.h>
15874#else
15875# include <assert.h>
15876#endif
15877
15878#undef shl_load
15879
15880/* Override any GCC internal prototype to avoid an error.
15881 Use char because int might match the return type of a GCC
15882 builtin and then its argument prototype would still apply. */
15883#ifdef __cplusplus
15884extern "C"
15885#endif
15886char shl_load ();
15887/* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890#if defined __stub_shl_load || defined __stub___shl_load
15891choke me
15892#endif
15893
15894int
15895main ()
15896{
15897return shl_load ();
15898 ;
15899 return 0;
15900}
15901_ACEOF
15902rm -f conftest.$ac_objext conftest$ac_exeext
15903if { (ac_try="$ac_link"
15904case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15907esac
15908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909$as_echo "$ac_try_echo") >&5
15910 (eval "$ac_link") 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } && {
15917 test -z "$ac_c_werror_flag" ||
15918 test ! -s conftest.err
15919 } && test -s conftest$ac_exeext && {
15920 test "$cross_compiling" = yes ||
15921 $as_test_x conftest$ac_exeext
15922 }; then
15923 ac_cv_func_shl_load=yes
15924else
15925 $as_echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 ac_cv_func_shl_load=no
15929fi
15930
15931rm -rf conftest.dSYM
15932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15933 conftest$ac_exeext conftest.$ac_ext
15934fi
15935{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15936$as_echo "$ac_cv_func_shl_load" >&6; }
15937if test "x$ac_cv_func_shl_load" = x""yes; then
15938 lt_cv_dlopen="shl_load"
15939else
15940 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15941$as_echo_n "checking for shl_load in -ldld... " >&6; }
15942if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15943 $as_echo_n "(cached) " >&6
15944else
15945 ac_check_lib_save_LIBS=$LIBS
15946LIBS="-ldld $LIBS"
15947cat >conftest.$ac_ext <<_ACEOF
15948/* confdefs.h. */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h. */
15953
15954/* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15957#ifdef __cplusplus
15958extern "C"
15959#endif
15960char shl_load ();
15961int
15962main ()
15963{
15964return shl_load ();
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest.$ac_objext conftest$ac_exeext
15970if { (ac_try="$ac_link"
15971case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974esac
15975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976$as_echo "$ac_try_echo") >&5
15977 (eval "$ac_link") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && {
15984 test -z "$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 } && test -s conftest$ac_exeext && {
15987 test "$cross_compiling" = yes ||
15988 $as_test_x conftest$ac_exeext
15989 }; then
15990 ac_cv_lib_dld_shl_load=yes
15991else
15992 $as_echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995 ac_cv_lib_dld_shl_load=no
15996fi
15997
15998rm -rf conftest.dSYM
15999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16000 conftest$ac_exeext conftest.$ac_ext
16001LIBS=$ac_check_lib_save_LIBS
16002fi
16003{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16004$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16005if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
16006 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16007else
16008 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
16009$as_echo_n "checking for dlopen... " >&6; }
16010if test "${ac_cv_func_dlopen+set}" = set; then
16011 $as_echo_n "(cached) " >&6
16012else
16013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021#define dlopen innocuous_dlopen
16022
16023/* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char dlopen (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16027
16028#ifdef __STDC__
16029# include <limits.h>
16030#else
16031# include <assert.h>
16032#endif
16033
16034#undef dlopen
16035
16036/* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16039#ifdef __cplusplus
16040extern "C"
16041#endif
16042char dlopen ();
16043/* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046#if defined __stub_dlopen || defined __stub___dlopen
16047choke me
16048#endif
16049
16050int
16051main ()
16052{
16053return dlopen ();
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext conftest$ac_exeext
16059if { (ac_try="$ac_link"
16060case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065$as_echo "$ac_try_echo") >&5
16066 (eval "$ac_link") 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest$ac_exeext && {
16076 test "$cross_compiling" = yes ||
16077 $as_test_x conftest$ac_exeext
16078 }; then
16079 ac_cv_func_dlopen=yes
16080else
16081 $as_echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_cv_func_dlopen=no
16085fi
16086
16087rm -rf conftest.dSYM
16088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089 conftest$ac_exeext conftest.$ac_ext
16090fi
16091{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16092$as_echo "$ac_cv_func_dlopen" >&6; }
16093if test "x$ac_cv_func_dlopen" = x""yes; then
16094 lt_cv_dlopen="dlopen"
16095else
16096 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16097$as_echo_n "checking for dlopen in -ldl... " >&6; }
16098if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16099 $as_echo_n "(cached) " >&6
16100else
16101 ac_check_lib_save_LIBS=$LIBS
16102LIBS="-ldl $LIBS"
16103cat >conftest.$ac_ext <<_ACEOF
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109
16110/* Override any GCC internal prototype to avoid an error.
16111 Use char because int might match the return type of a GCC
16112 builtin and then its argument prototype would still apply. */
16113#ifdef __cplusplus
16114extern "C"
16115#endif
16116char dlopen ();
16117int
16118main ()
16119{
16120return dlopen ();
16121 ;
16122 return 0;
16123}
16124_ACEOF
16125rm -f conftest.$ac_objext conftest$ac_exeext
16126if { (ac_try="$ac_link"
16127case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16130esac
16131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16132$as_echo "$ac_try_echo") >&5
16133 (eval "$ac_link") 2>conftest.er1
16134 ac_status=$?
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
16138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext && {
16143 test "$cross_compiling" = yes ||
16144 $as_test_x conftest$ac_exeext
16145 }; then
16146 ac_cv_lib_dl_dlopen=yes
16147else
16148 $as_echo "$as_me: failed program was:" >&5
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
16151 ac_cv_lib_dl_dlopen=no
16152fi
16153
16154rm -rf conftest.dSYM
16155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16156 conftest$ac_exeext conftest.$ac_ext
16157LIBS=$ac_check_lib_save_LIBS
16158fi
16159{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16161if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16163else
16164 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16165$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16166if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16167 $as_echo_n "(cached) " >&6
16168else
16169 ac_check_lib_save_LIBS=$LIBS
16170LIBS="-lsvld $LIBS"
16171cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h. */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h. */
16177
16178/* Override any GCC internal prototype to avoid an error.
16179 Use char because int might match the return type of a GCC
16180 builtin and then its argument prototype would still apply. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
16184char dlopen ();
16185int
16186main ()
16187{
16188return dlopen ();
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext conftest$ac_exeext
16194if { (ac_try="$ac_link"
16195case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198esac
16199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16200$as_echo "$ac_try_echo") >&5
16201 (eval "$ac_link") 2>conftest.er1
16202 ac_status=$?
16203 grep -v '^ *+' conftest.er1 >conftest.err
16204 rm -f conftest.er1
16205 cat conftest.err >&5
16206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } && {
16208 test -z "$ac_c_werror_flag" ||
16209 test ! -s conftest.err
16210 } && test -s conftest$ac_exeext && {
16211 test "$cross_compiling" = yes ||
16212 $as_test_x conftest$ac_exeext
16213 }; then
16214 ac_cv_lib_svld_dlopen=yes
16215else
16216 $as_echo "$as_me: failed program was:" >&5
16217sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_cv_lib_svld_dlopen=no
16220fi
16221
16222rm -rf conftest.dSYM
16223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16224 conftest$ac_exeext conftest.$ac_ext
16225LIBS=$ac_check_lib_save_LIBS
16226fi
16227{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16228$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16229if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
16230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16231else
16232 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16233$as_echo_n "checking for dld_link in -ldld... " >&6; }
16234if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16236else
16237 ac_check_lib_save_LIBS=$LIBS
16238LIBS="-ldld $LIBS"
16239cat >conftest.$ac_ext <<_ACEOF
16240/* confdefs.h. */
16241_ACEOF
16242cat confdefs.h >>conftest.$ac_ext
16243cat >>conftest.$ac_ext <<_ACEOF
16244/* end confdefs.h. */
16245
16246/* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16249#ifdef __cplusplus
16250extern "C"
16251#endif
16252char dld_link ();
16253int
16254main ()
16255{
16256return dld_link ();
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest.$ac_objext conftest$ac_exeext
16262if { (ac_try="$ac_link"
16263case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16266esac
16267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268$as_echo "$ac_try_echo") >&5
16269 (eval "$ac_link") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest$ac_exeext && {
16279 test "$cross_compiling" = yes ||
16280 $as_test_x conftest$ac_exeext
16281 }; then
16282 ac_cv_lib_dld_dld_link=yes
16283else
16284 $as_echo "$as_me: failed program was:" >&5
16285sed 's/^/| /' conftest.$ac_ext >&5
16286
16287 ac_cv_lib_dld_dld_link=no
16288fi
16289
16290rm -rf conftest.dSYM
16291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292 conftest$ac_exeext conftest.$ac_ext
16293LIBS=$ac_check_lib_save_LIBS
16294fi
16295{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16296$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16297if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
16298 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16299fi
16300
16301
16302fi
16303
16304
16305fi
16306
16307
16308fi
16309
16310
16311fi
16312
16313
16314fi
16315
16316 ;;
16317 esac
16318
16319 if test "x$lt_cv_dlopen" != xno; then
16320 enable_dlopen=yes
16321 else
16322 enable_dlopen=no
16323 fi
16324
16325 case $lt_cv_dlopen in
16326 dlopen)
16327 save_CPPFLAGS="$CPPFLAGS"
16328 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16329
16330 save_LDFLAGS="$LDFLAGS"
16331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16332
16333 save_LIBS="$LIBS"
16334 LIBS="$lt_cv_dlopen_libs $LIBS"
16335
16336 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16337$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16338if test "${lt_cv_dlopen_self+set}" = set; then
16339 $as_echo_n "(cached) " >&6
16340else
16341 if test "$cross_compiling" = yes; then :
16342 lt_cv_dlopen_self=cross
16343else
16344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16345 lt_status=$lt_dlunknown
16346 cat > conftest.$ac_ext <<_LT_EOF
cristy736173a2009-09-20 21:18:22 +000016347#line 16347 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016348#include "confdefs.h"
16349
16350#if HAVE_DLFCN_H
16351#include <dlfcn.h>
16352#endif
16353
16354#include <stdio.h>
16355
16356#ifdef RTLD_GLOBAL
16357# define LT_DLGLOBAL RTLD_GLOBAL
16358#else
16359# ifdef DL_GLOBAL
16360# define LT_DLGLOBAL DL_GLOBAL
16361# else
16362# define LT_DLGLOBAL 0
16363# endif
16364#endif
16365
16366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16367 find out it does not work in some platform. */
16368#ifndef LT_DLLAZY_OR_NOW
16369# ifdef RTLD_LAZY
16370# define LT_DLLAZY_OR_NOW RTLD_LAZY
16371# else
16372# ifdef DL_LAZY
16373# define LT_DLLAZY_OR_NOW DL_LAZY
16374# else
16375# ifdef RTLD_NOW
16376# define LT_DLLAZY_OR_NOW RTLD_NOW
16377# else
16378# ifdef DL_NOW
16379# define LT_DLLAZY_OR_NOW DL_NOW
16380# else
16381# define LT_DLLAZY_OR_NOW 0
16382# endif
16383# endif
16384# endif
16385# endif
16386#endif
16387
16388void fnord() { int i=42;}
16389int main ()
16390{
16391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16392 int status = $lt_dlunknown;
16393
16394 if (self)
16395 {
16396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16398 /* dlclose (self); */
16399 }
16400 else
16401 puts (dlerror ());
16402
16403 return status;
16404}
16405_LT_EOF
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16411 (./conftest; exit; ) >&5 2>/dev/null
16412 lt_status=$?
16413 case x$lt_status in
16414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16416 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16417 esac
16418 else :
16419 # compilation failed
16420 lt_cv_dlopen_self=no
16421 fi
16422fi
16423rm -fr conftest*
16424
16425
16426fi
16427{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16428$as_echo "$lt_cv_dlopen_self" >&6; }
16429
16430 if test "x$lt_cv_dlopen_self" = xyes; then
16431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16432 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16433$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16434if test "${lt_cv_dlopen_self_static+set}" = set; then
16435 $as_echo_n "(cached) " >&6
16436else
16437 if test "$cross_compiling" = yes; then :
16438 lt_cv_dlopen_self_static=cross
16439else
16440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16441 lt_status=$lt_dlunknown
16442 cat > conftest.$ac_ext <<_LT_EOF
cristy736173a2009-09-20 21:18:22 +000016443#line 16443 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016444#include "confdefs.h"
16445
16446#if HAVE_DLFCN_H
16447#include <dlfcn.h>
16448#endif
16449
16450#include <stdio.h>
16451
16452#ifdef RTLD_GLOBAL
16453# define LT_DLGLOBAL RTLD_GLOBAL
16454#else
16455# ifdef DL_GLOBAL
16456# define LT_DLGLOBAL DL_GLOBAL
16457# else
16458# define LT_DLGLOBAL 0
16459# endif
16460#endif
16461
16462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16463 find out it does not work in some platform. */
16464#ifndef LT_DLLAZY_OR_NOW
16465# ifdef RTLD_LAZY
16466# define LT_DLLAZY_OR_NOW RTLD_LAZY
16467# else
16468# ifdef DL_LAZY
16469# define LT_DLLAZY_OR_NOW DL_LAZY
16470# else
16471# ifdef RTLD_NOW
16472# define LT_DLLAZY_OR_NOW RTLD_NOW
16473# else
16474# ifdef DL_NOW
16475# define LT_DLLAZY_OR_NOW DL_NOW
16476# else
16477# define LT_DLLAZY_OR_NOW 0
16478# endif
16479# endif
16480# endif
16481# endif
16482#endif
16483
16484void fnord() { int i=42;}
16485int main ()
16486{
16487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16488 int status = $lt_dlunknown;
16489
16490 if (self)
16491 {
16492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16494 /* dlclose (self); */
16495 }
16496 else
16497 puts (dlerror ());
16498
16499 return status;
16500}
16501_LT_EOF
16502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503 (eval $ac_link) 2>&5
16504 ac_status=$?
16505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16507 (./conftest; exit; ) >&5 2>/dev/null
16508 lt_status=$?
16509 case x$lt_status in
16510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16512 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16513 esac
16514 else :
16515 # compilation failed
16516 lt_cv_dlopen_self_static=no
16517 fi
16518fi
16519rm -fr conftest*
16520
16521
16522fi
16523{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16524$as_echo "$lt_cv_dlopen_self_static" >&6; }
16525 fi
16526
16527 CPPFLAGS="$save_CPPFLAGS"
16528 LDFLAGS="$save_LDFLAGS"
16529 LIBS="$save_LIBS"
16530 ;;
16531 esac
16532
16533 case $lt_cv_dlopen_self in
16534 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16535 *) enable_dlopen_self=unknown ;;
16536 esac
16537
16538 case $lt_cv_dlopen_self_static in
16539 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16540 *) enable_dlopen_self_static=unknown ;;
16541 esac
16542fi
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560striplib=
16561old_striplib=
16562{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16563$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16564if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16565 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16566 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16567 { $as_echo "$as_me:$LINENO: result: yes" >&5
16568$as_echo "yes" >&6; }
16569else
16570# FIXME - insert some real tests, host_os isn't really good enough
16571 case $host_os in
16572 darwin*)
16573 if test -n "$STRIP" ; then
16574 striplib="$STRIP -x"
16575 old_striplib="$STRIP -S"
16576 { $as_echo "$as_me:$LINENO: result: yes" >&5
16577$as_echo "yes" >&6; }
16578 else
16579 { $as_echo "$as_me:$LINENO: result: no" >&5
16580$as_echo "no" >&6; }
16581 fi
16582 ;;
16583 *)
16584 { $as_echo "$as_me:$LINENO: result: no" >&5
16585$as_echo "no" >&6; }
16586 ;;
16587 esac
16588fi
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 # Report which library types will actually be built
16602 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16603$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16604 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16605$as_echo "$can_build_shared" >&6; }
16606
16607 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16608$as_echo_n "checking whether to build shared libraries... " >&6; }
16609 test "$can_build_shared" = "no" && enable_shared=no
16610
16611 # On AIX, shared libraries and static libraries use the same namespace, and
16612 # are all built from PIC.
16613 case $host_os in
16614 aix3*)
16615 test "$enable_shared" = yes && enable_static=no
16616 if test -n "$RANLIB"; then
16617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16618 postinstall_cmds='$RANLIB $lib'
16619 fi
16620 ;;
16621
16622 aix[4-9]*)
16623 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16624 test "$enable_shared" = yes && enable_static=no
16625 fi
16626 ;;
16627 esac
16628 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16629$as_echo "$enable_shared" >&6; }
16630
16631 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16632$as_echo_n "checking whether to build static libraries... " >&6; }
16633 # Make sure either enable_shared or enable_static is yes.
16634 test "$enable_shared" = yes || enable_static=yes
16635 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16636$as_echo "$enable_static" >&6; }
16637
16638
16639
16640
16641fi
16642ac_ext=c
16643ac_cpp='$CPP $CPPFLAGS'
16644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647
16648CC="$lt_save_CC"
16649
16650
16651ac_ext=cpp
16652ac_cpp='$CXXCPP $CPPFLAGS'
16653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
16657archive_cmds_need_lc_CXX=no
16658allow_undefined_flag_CXX=
16659always_export_symbols_CXX=no
16660archive_expsym_cmds_CXX=
16661compiler_needs_object_CXX=no
16662export_dynamic_flag_spec_CXX=
16663hardcode_direct_CXX=no
16664hardcode_direct_absolute_CXX=no
16665hardcode_libdir_flag_spec_CXX=
16666hardcode_libdir_flag_spec_ld_CXX=
16667hardcode_libdir_separator_CXX=
16668hardcode_minus_L_CXX=no
16669hardcode_shlibpath_var_CXX=unsupported
16670hardcode_automatic_CXX=no
16671inherit_rpath_CXX=no
16672module_cmds_CXX=
16673module_expsym_cmds_CXX=
16674link_all_deplibs_CXX=unknown
16675old_archive_cmds_CXX=$old_archive_cmds
16676no_undefined_flag_CXX=
16677whole_archive_flag_spec_CXX=
16678enable_shared_with_static_runtimes_CXX=no
16679
16680# Source file extension for C++ test sources.
16681ac_ext=cpp
16682
16683# Object file extension for compiled C++ test sources.
16684objext=o
16685objext_CXX=$objext
16686
16687# No sense in running all these tests if we already determined that
16688# the CXX compiler isn't working. Some variables (like enable_shared)
16689# are currently assumed to apply to all compilers on this platform,
16690# and will be corrupted by setting them based on a non-working compiler.
16691if test "$_lt_caught_CXX_error" != yes; then
16692 # Code to be used in simple compile tests
16693 lt_simple_compile_test_code="int some_variable = 0;"
16694
16695 # Code to be used in simple link tests
16696 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16697
16698 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16699
16700
16701
16702
16703
16704
16705# If no C compiler was specified, use CC.
16706LTCC=${LTCC-"$CC"}
16707
16708# If no C compiler flags were specified, use CFLAGS.
16709LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16710
16711# Allow CC to be a program name with arguments.
16712compiler=$CC
16713
16714
16715 # save warnings/boilerplate of simple test code
16716 ac_outfile=conftest.$ac_objext
16717echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16718eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16719_lt_compiler_boilerplate=`cat conftest.err`
16720$RM conftest*
16721
16722 ac_outfile=conftest.$ac_objext
16723echo "$lt_simple_link_test_code" >conftest.$ac_ext
16724eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16725_lt_linker_boilerplate=`cat conftest.err`
16726$RM -r conftest*
16727
16728
16729 # Allow CC to be a program name with arguments.
16730 lt_save_CC=$CC
16731 lt_save_LD=$LD
16732 lt_save_GCC=$GCC
16733 GCC=$GXX
16734 lt_save_with_gnu_ld=$with_gnu_ld
16735 lt_save_path_LD=$lt_cv_path_LD
16736 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16737 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16738 else
16739 $as_unset lt_cv_prog_gnu_ld
16740 fi
16741 if test -n "${lt_cv_path_LDCXX+set}"; then
16742 lt_cv_path_LD=$lt_cv_path_LDCXX
16743 else
16744 $as_unset lt_cv_path_LD
16745 fi
16746 test -z "${LDCXX+set}" || LD=$LDCXX
16747 CC=${CXX-"c++"}
16748 compiler=$CC
16749 compiler_CXX=$CC
16750 for cc_temp in $compiler""; do
16751 case $cc_temp in
16752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16754 \-*) ;;
16755 *) break;;
16756 esac
16757done
16758cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16759
16760
16761 if test -n "$compiler"; then
16762 # We don't want -fno-exception when compiling C++ code, so set the
16763 # no_builtin_flag separately
16764 if test "$GXX" = yes; then
16765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16766 else
16767 lt_prog_compiler_no_builtin_flag_CXX=
16768 fi
16769
16770 if test "$GXX" = yes; then
16771 # Set up default GNU C++ configuration
16772
16773
16774
16775# Check whether --with-gnu-ld was given.
16776if test "${with_gnu_ld+set}" = set; then
16777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16778else
16779 with_gnu_ld=no
16780fi
16781
16782ac_prog=ld
16783if test "$GCC" = yes; then
16784 # Check if gcc -print-prog-name=ld gives a path.
16785 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16786$as_echo_n "checking for ld used by $CC... " >&6; }
16787 case $host in
16788 *-*-mingw*)
16789 # gcc leaves a trailing carriage return which upsets mingw
16790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16791 *)
16792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16793 esac
16794 case $ac_prog in
16795 # Accept absolute paths.
16796 [\\/]* | ?:[\\/]*)
16797 re_direlt='/[^/][^/]*/\.\./'
16798 # Canonicalize the pathname of ld
16799 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16800 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16801 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16802 done
16803 test -z "$LD" && LD="$ac_prog"
16804 ;;
16805 "")
16806 # If it fails, then pretend we aren't using GCC.
16807 ac_prog=ld
16808 ;;
16809 *)
16810 # If it is relative, then search for the first ld in PATH.
16811 with_gnu_ld=unknown
16812 ;;
16813 esac
16814elif test "$with_gnu_ld" = yes; then
16815 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
16816$as_echo_n "checking for GNU ld... " >&6; }
16817else
16818 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16819$as_echo_n "checking for non-GNU ld... " >&6; }
16820fi
16821if test "${lt_cv_path_LD+set}" = set; then
16822 $as_echo_n "(cached) " >&6
16823else
16824 if test -z "$LD"; then
16825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16826 for ac_dir in $PATH; do
16827 IFS="$lt_save_ifs"
16828 test -z "$ac_dir" && ac_dir=.
16829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16830 lt_cv_path_LD="$ac_dir/$ac_prog"
16831 # Check to see if the program is GNU ld. I'd rather use --version,
16832 # but apparently some variants of GNU ld only accept -v.
16833 # Break only if it was the GNU/non-GNU ld that we prefer.
16834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16835 *GNU* | *'with BFD'*)
16836 test "$with_gnu_ld" != no && break
16837 ;;
16838 *)
16839 test "$with_gnu_ld" != yes && break
16840 ;;
16841 esac
16842 fi
16843 done
16844 IFS="$lt_save_ifs"
16845else
16846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16847fi
16848fi
16849
16850LD="$lt_cv_path_LD"
16851if test -n "$LD"; then
16852 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16853$as_echo "$LD" >&6; }
16854else
16855 { $as_echo "$as_me:$LINENO: result: no" >&5
16856$as_echo "no" >&6; }
16857fi
16858test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16859$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16860 { (exit 1); exit 1; }; }
16861{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16862$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16863if test "${lt_cv_prog_gnu_ld+set}" = set; then
16864 $as_echo_n "(cached) " >&6
16865else
16866 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16867case `$LD -v 2>&1 </dev/null` in
16868*GNU* | *'with BFD'*)
16869 lt_cv_prog_gnu_ld=yes
16870 ;;
16871*)
16872 lt_cv_prog_gnu_ld=no
16873 ;;
16874esac
16875fi
16876{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16877$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16878with_gnu_ld=$lt_cv_prog_gnu_ld
16879
16880
16881
16882
16883
16884
16885
16886 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16887 # archiving commands below assume that GNU ld is being used.
16888 if test "$with_gnu_ld" = yes; then
16889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16890 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'
16891
16892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16894
16895 # If archive_cmds runs LD, not CC, wlarc should be empty
16896 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16897 # investigate it a little bit more. (MM)
16898 wlarc='${wl}'
16899
16900 # ancient GNU ld didn't support --whole-archive et. al.
16901 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16902 $GREP 'no-whole-archive' > /dev/null; then
16903 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16904 else
16905 whole_archive_flag_spec_CXX=
16906 fi
16907 else
16908 with_gnu_ld=no
16909 wlarc=
16910
16911 # A generic and very simple default shared library creation
16912 # command for GNU C++ for the case where it uses the native
16913 # linker, instead of GNU ld. If possible, this setting should
16914 # overridden to take advantage of the native linker features on
16915 # the platform it is being used on.
16916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16917 fi
16918
16919 # Commands to make compiler produce verbose output that lists
16920 # what "hidden" libraries, object files and flags are used when
16921 # linking a shared library.
16922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16923
16924 else
16925 GXX=no
16926 with_gnu_ld=no
16927 wlarc=
16928 fi
16929
16930 # PORTME: fill in a description of your system's C++ link characteristics
16931 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16932$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16933 ld_shlibs_CXX=yes
16934 case $host_os in
16935 aix3*)
16936 # FIXME: insert proper C++ library support
16937 ld_shlibs_CXX=no
16938 ;;
16939 aix[4-9]*)
16940 if test "$host_cpu" = ia64; then
16941 # On IA64, the linker does run time linking by default, so we don't
16942 # have to do anything special.
16943 aix_use_runtimelinking=no
16944 exp_sym_flag='-Bexport'
16945 no_entry_flag=""
16946 else
16947 aix_use_runtimelinking=no
16948
16949 # Test if we are trying to use run time linking or normal
16950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16951 # need to do runtime linking.
16952 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16953 for ld_flag in $LDFLAGS; do
16954 case $ld_flag in
16955 *-brtl*)
16956 aix_use_runtimelinking=yes
16957 break
16958 ;;
16959 esac
16960 done
16961 ;;
16962 esac
16963
16964 exp_sym_flag='-bexport'
16965 no_entry_flag='-bnoentry'
16966 fi
16967
16968 # When large executables or shared objects are built, AIX ld can
16969 # have problems creating the table of contents. If linking a library
16970 # or program results in "error TOC overflow" add -mminimal-toc to
16971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16973
16974 archive_cmds_CXX=''
16975 hardcode_direct_CXX=yes
16976 hardcode_direct_absolute_CXX=yes
16977 hardcode_libdir_separator_CXX=':'
16978 link_all_deplibs_CXX=yes
16979 file_list_spec_CXX='${wl}-f,'
16980
16981 if test "$GXX" = yes; then
16982 case $host_os in aix4.[012]|aix4.[012].*)
16983 # We only want to do this on AIX 4.2 and lower, the check
16984 # below for broken collect2 doesn't work under 4.3+
16985 collect2name=`${CC} -print-prog-name=collect2`
16986 if test -f "$collect2name" &&
16987 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16988 then
16989 # We have reworked collect2
16990 :
16991 else
16992 # We have old collect2
16993 hardcode_direct_CXX=unsupported
16994 # It fails to find uninstalled libraries when the uninstalled
16995 # path is not listed in the libpath. Setting hardcode_minus_L
16996 # to unsupported forces relinking
16997 hardcode_minus_L_CXX=yes
16998 hardcode_libdir_flag_spec_CXX='-L$libdir'
16999 hardcode_libdir_separator_CXX=
17000 fi
17001 esac
17002 shared_flag='-shared'
17003 if test "$aix_use_runtimelinking" = yes; then
17004 shared_flag="$shared_flag "'${wl}-G'
17005 fi
17006 else
17007 # not using gcc
17008 if test "$host_cpu" = ia64; then
17009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17010 # chokes on -Wl,-G. The following line is correct:
17011 shared_flag='-G'
17012 else
17013 if test "$aix_use_runtimelinking" = yes; then
17014 shared_flag='${wl}-G'
17015 else
17016 shared_flag='${wl}-bM:SRE'
17017 fi
17018 fi
17019 fi
17020
17021 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17022 # It seems that -bexpall does not export symbols beginning with
17023 # underscore (_), so it is better to generate a list of symbols to
17024 # export.
17025 always_export_symbols_CXX=yes
17026 if test "$aix_use_runtimelinking" = yes; then
17027 # Warning - without using the other runtime loading flags (-brtl),
17028 # -berok will link without error, but may produce a broken library.
17029 allow_undefined_flag_CXX='-berok'
17030 # Determine the default libpath from the value encoded in an empty
17031 # executable.
17032 cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038
17039int
17040main ()
17041{
17042
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext conftest$ac_exeext
17048if { (ac_try="$ac_link"
17049case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17054$as_echo "$ac_try_echo") >&5
17055 (eval "$ac_link") 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_cxx_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest$ac_exeext && {
17065 test "$cross_compiling" = yes ||
17066 $as_test_x conftest$ac_exeext
17067 }; then
17068
17069lt_aix_libpath_sed='
17070 /Import File Strings/,/^$/ {
17071 /^0/ {
17072 s/^0 *\(.*\)$/\1/
17073 p
17074 }
17075 }'
17076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17077# Check for a 64-bit object if we didn't find anything.
17078if test -z "$aix_libpath"; then
17079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17080fi
17081else
17082 $as_echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085
17086fi
17087
17088rm -rf conftest.dSYM
17089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
17091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17092
17093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17094
17095 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"
17096 else
17097 if test "$host_cpu" = ia64; then
17098 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17099 allow_undefined_flag_CXX="-z nodefs"
17100 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"
17101 else
17102 # Determine the default libpath from the value encoded in an
17103 # empty executable.
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110
17111int
17112main ()
17113{
17114
17115 ;
17116 return 0;
17117}
17118_ACEOF
17119rm -f conftest.$ac_objext conftest$ac_exeext
17120if { (ac_try="$ac_link"
17121case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124esac
17125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17126$as_echo "$ac_try_echo") >&5
17127 (eval "$ac_link") 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_cxx_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext && {
17137 test "$cross_compiling" = yes ||
17138 $as_test_x conftest$ac_exeext
17139 }; then
17140
17141lt_aix_libpath_sed='
17142 /Import File Strings/,/^$/ {
17143 /^0/ {
17144 s/^0 *\(.*\)$/\1/
17145 p
17146 }
17147 }'
17148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149# Check for a 64-bit object if we didn't find anything.
17150if test -z "$aix_libpath"; then
17151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17152fi
17153else
17154 $as_echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157
17158fi
17159
17160rm -rf conftest.dSYM
17161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17162 conftest$ac_exeext conftest.$ac_ext
17163if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17164
17165 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17166 # Warning - without using the other run time loading flags,
17167 # -berok will link without error, but may produce a broken library.
17168 no_undefined_flag_CXX=' ${wl}-bernotok'
17169 allow_undefined_flag_CXX=' ${wl}-berok'
17170 # Exported symbols can be pulled into shared objects from archives
17171 whole_archive_flag_spec_CXX='$convenience'
17172 archive_cmds_need_lc_CXX=yes
17173 # This is similar to how AIX traditionally builds its shared
17174 # libraries.
17175 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'
17176 fi
17177 fi
17178 ;;
17179
17180 beos*)
17181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17182 allow_undefined_flag_CXX=unsupported
17183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17184 # support --undefined. This deserves some investigation. FIXME
17185 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17186 else
17187 ld_shlibs_CXX=no
17188 fi
17189 ;;
17190
17191 chorus*)
17192 case $cc_basename in
17193 *)
17194 # FIXME: insert proper C++ library support
17195 ld_shlibs_CXX=no
17196 ;;
17197 esac
17198 ;;
17199
17200 cygwin* | mingw* | pw32* | cegcc*)
17201 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17202 # as there is no search path for DLLs.
17203 hardcode_libdir_flag_spec_CXX='-L$libdir'
17204 allow_undefined_flag_CXX=unsupported
17205 always_export_symbols_CXX=no
17206 enable_shared_with_static_runtimes_CXX=yes
17207
17208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17209 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'
17210 # If the export-symbols file already is a .def file (1st line
17211 # is EXPORTS), use it as is; otherwise, prepend...
17212 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17213 cp $export_symbols $output_objdir/$soname.def;
17214 else
17215 echo EXPORTS > $output_objdir/$soname.def;
17216 cat $export_symbols >> $output_objdir/$soname.def;
17217 fi~
17218 $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'
17219 else
17220 ld_shlibs_CXX=no
17221 fi
17222 ;;
17223 darwin* | rhapsody*)
17224
17225
17226 archive_cmds_need_lc_CXX=no
17227 hardcode_direct_CXX=no
17228 hardcode_automatic_CXX=yes
17229 hardcode_shlibpath_var_CXX=unsupported
17230 whole_archive_flag_spec_CXX=''
17231 link_all_deplibs_CXX=yes
17232 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17233 case $cc_basename in
17234 ifort*) _lt_dar_can_shared=yes ;;
17235 *) _lt_dar_can_shared=$GCC ;;
17236 esac
17237 if test "$_lt_dar_can_shared" = "yes"; then
17238 output_verbose_link_cmd=echo
17239 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}"
17240 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17241 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}"
17242 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}"
17243 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17244 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}"
17245 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}"
17246 fi
17247
17248 else
17249 ld_shlibs_CXX=no
17250 fi
17251
17252 ;;
17253
17254 dgux*)
17255 case $cc_basename in
17256 ec++*)
17257 # FIXME: insert proper C++ library support
17258 ld_shlibs_CXX=no
17259 ;;
17260 ghcx*)
17261 # Green Hills C++ Compiler
17262 # FIXME: insert proper C++ library support
17263 ld_shlibs_CXX=no
17264 ;;
17265 *)
17266 # FIXME: insert proper C++ library support
17267 ld_shlibs_CXX=no
17268 ;;
17269 esac
17270 ;;
17271
17272 freebsd[12]*)
17273 # C++ shared libraries reported to be fairly broken before
17274 # switch to ELF
17275 ld_shlibs_CXX=no
17276 ;;
17277
17278 freebsd-elf*)
17279 archive_cmds_need_lc_CXX=no
17280 ;;
17281
17282 freebsd* | dragonfly*)
17283 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17284 # conventions
17285 ld_shlibs_CXX=yes
17286 ;;
17287
17288 gnu*)
17289 ;;
17290
17291 hpux9*)
17292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17293 hardcode_libdir_separator_CXX=:
17294 export_dynamic_flag_spec_CXX='${wl}-E'
17295 hardcode_direct_CXX=yes
17296 hardcode_minus_L_CXX=yes # Not in the search PATH,
17297 # but as the default
17298 # location of the library.
17299
17300 case $cc_basename in
17301 CC*)
17302 # FIXME: insert proper C++ library support
17303 ld_shlibs_CXX=no
17304 ;;
17305 aCC*)
17306 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'
17307 # Commands to make compiler produce verbose output that lists
17308 # what "hidden" libraries, object files and flags are used when
17309 # linking a shared library.
17310 #
17311 # There doesn't appear to be a way to prevent this compiler from
17312 # explicitly linking system object files so we need to strip them
17313 # from the output so that they don't get included in the library
17314 # dependencies.
17315 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'
17316 ;;
17317 *)
17318 if test "$GXX" = yes; then
17319 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'
17320 else
17321 # FIXME: insert proper C++ library support
17322 ld_shlibs_CXX=no
17323 fi
17324 ;;
17325 esac
17326 ;;
17327
17328 hpux10*|hpux11*)
17329 if test $with_gnu_ld = no; then
17330 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17331 hardcode_libdir_separator_CXX=:
17332
17333 case $host_cpu in
17334 hppa*64*|ia64*)
17335 ;;
17336 *)
17337 export_dynamic_flag_spec_CXX='${wl}-E'
17338 ;;
17339 esac
17340 fi
17341 case $host_cpu in
17342 hppa*64*|ia64*)
17343 hardcode_direct_CXX=no
17344 hardcode_shlibpath_var_CXX=no
17345 ;;
17346 *)
17347 hardcode_direct_CXX=yes
17348 hardcode_direct_absolute_CXX=yes
17349 hardcode_minus_L_CXX=yes # Not in the search PATH,
17350 # but as the default
17351 # location of the library.
17352 ;;
17353 esac
17354
17355 case $cc_basename in
17356 CC*)
17357 # FIXME: insert proper C++ library support
17358 ld_shlibs_CXX=no
17359 ;;
17360 aCC*)
17361 case $host_cpu in
17362 hppa*64*)
17363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17364 ;;
17365 ia64*)
17366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17367 ;;
17368 *)
17369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17370 ;;
17371 esac
17372 # Commands to make compiler produce verbose output that lists
17373 # what "hidden" libraries, object files and flags are used when
17374 # linking a shared library.
17375 #
17376 # There doesn't appear to be a way to prevent this compiler from
17377 # explicitly linking system object files so we need to strip them
17378 # from the output so that they don't get included in the library
17379 # dependencies.
17380 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'
17381 ;;
17382 *)
17383 if test "$GXX" = yes; then
17384 if test $with_gnu_ld = no; then
17385 case $host_cpu in
17386 hppa*64*)
17387 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17388 ;;
17389 ia64*)
17390 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17391 ;;
17392 *)
17393 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'
17394 ;;
17395 esac
17396 fi
17397 else
17398 # FIXME: insert proper C++ library support
17399 ld_shlibs_CXX=no
17400 fi
17401 ;;
17402 esac
17403 ;;
17404
17405 interix[3-9]*)
17406 hardcode_direct_CXX=no
17407 hardcode_shlibpath_var_CXX=no
17408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17409 export_dynamic_flag_spec_CXX='${wl}-E'
17410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17411 # Instead, shared libraries are loaded at an image base (0x10000000 by
17412 # default) and relocated if they conflict, which is a slow very memory
17413 # consuming and fragmenting process. To avoid this, we pick a random,
17414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17416 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'
17417 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'
17418 ;;
17419 irix5* | irix6*)
17420 case $cc_basename in
17421 CC*)
17422 # SGI C++
17423 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'
17424
17425 # Archives containing C++ object files must be created using
17426 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17427 # necessary to make sure instantiated templates are included
17428 # in the archive.
17429 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17430 ;;
17431 *)
17432 if test "$GXX" = yes; then
17433 if test "$with_gnu_ld" = no; then
17434 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'
17435 else
17436 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'
17437 fi
17438 fi
17439 link_all_deplibs_CXX=yes
17440 ;;
17441 esac
17442 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17443 hardcode_libdir_separator_CXX=:
17444 inherit_rpath_CXX=yes
17445 ;;
17446
17447 linux* | k*bsd*-gnu)
17448 case $cc_basename in
17449 KCC*)
17450 # Kuck and Associates, Inc. (KAI) C++ Compiler
17451
17452 # KCC will only create a shared library if the output file
17453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17454 # to its proper name (with version) after linking.
17455 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'
17456 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'
17457 # Commands to make compiler produce verbose output that lists
17458 # what "hidden" libraries, object files and flags are used when
17459 # linking a shared library.
17460 #
17461 # There doesn't appear to be a way to prevent this compiler from
17462 # explicitly linking system object files so we need to strip them
17463 # from the output so that they don't get included in the library
17464 # dependencies.
17465 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'
17466
17467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17469
17470 # Archives containing C++ object files must be created using
17471 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17472 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17473 ;;
17474 icpc* | ecpc* )
17475 # Intel C++
17476 with_gnu_ld=yes
17477 # version 8.0 and above of icpc choke on multiply defined symbols
17478 # if we add $predep_objects and $postdep_objects, however 7.1 and
17479 # earlier do not add the objects themselves.
17480 case `$CC -V 2>&1` in
17481 *"Version 7."*)
17482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 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'
17484 ;;
17485 *) # Version 8.0 or newer
17486 tmp_idyn=
17487 case $host_cpu in
17488 ia64*) tmp_idyn=' -i_dynamic';;
17489 esac
17490 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491 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'
17492 ;;
17493 esac
17494 archive_cmds_need_lc_CXX=no
17495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17498 ;;
17499 pgCC* | pgcpp*)
17500 # Portland Group C++ compiler
17501 case `$CC -V` in
17502 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17503 prelink_cmds_CXX='tpldir=Template.dir~
17504 rm -rf $tpldir~
17505 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17506 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17507 old_archive_cmds_CXX='tpldir=Template.dir~
17508 rm -rf $tpldir~
17509 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17510 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17511 $RANLIB $oldlib'
17512 archive_cmds_CXX='tpldir=Template.dir~
17513 rm -rf $tpldir~
17514 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17515 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17516 archive_expsym_cmds_CXX='tpldir=Template.dir~
17517 rm -rf $tpldir~
17518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17519 $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'
17520 ;;
17521 *) # Version 6 will use weak symbols
17522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17523 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'
17524 ;;
17525 esac
17526
17527 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17529 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'
17530 ;;
17531 cxx*)
17532 # Compaq C++
17533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534 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'
17535
17536 runpath_var=LD_RUN_PATH
17537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17538 hardcode_libdir_separator_CXX=:
17539
17540 # Commands to make compiler produce verbose output that lists
17541 # what "hidden" libraries, object files and flags are used when
17542 # linking a shared library.
17543 #
17544 # There doesn't appear to be a way to prevent this compiler from
17545 # explicitly linking system object files so we need to strip them
17546 # from the output so that they don't get included in the library
17547 # dependencies.
17548 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'
17549 ;;
17550 xl*)
17551 # IBM XL 8.0 on PPC, with GNU ld
17552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17554 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17555 if test "x$supports_anon_versioning" = xyes; then
17556 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17558 echo "local: *; };" >> $output_objdir/$libname.ver~
17559 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17560 fi
17561 ;;
17562 *)
17563 case `$CC -V 2>&1 | sed 5q` in
17564 *Sun\ C*)
17565 # Sun C++ 5.9
17566 no_undefined_flag_CXX=' -zdefs'
17567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17568 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'
17569 hardcode_libdir_flag_spec_CXX='-R$libdir'
17570 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'
17571 compiler_needs_object_CXX=yes
17572
17573 # Not sure whether something based on
17574 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17575 # would be better.
17576 output_verbose_link_cmd='echo'
17577
17578 # Archives containing C++ object files must be created using
17579 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17580 # necessary to make sure instantiated templates are included
17581 # in the archive.
17582 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17583 ;;
17584 esac
17585 ;;
17586 esac
17587 ;;
17588
17589 lynxos*)
17590 # FIXME: insert proper C++ library support
17591 ld_shlibs_CXX=no
17592 ;;
17593
17594 m88k*)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598
17599 mvs*)
17600 case $cc_basename in
17601 cxx*)
17602 # FIXME: insert proper C++ library support
17603 ld_shlibs_CXX=no
17604 ;;
17605 *)
17606 # FIXME: insert proper C++ library support
17607 ld_shlibs_CXX=no
17608 ;;
17609 esac
17610 ;;
17611
17612 netbsd*)
17613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17614 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17615 wlarc=
17616 hardcode_libdir_flag_spec_CXX='-R$libdir'
17617 hardcode_direct_CXX=yes
17618 hardcode_shlibpath_var_CXX=no
17619 fi
17620 # Workaround some broken pre-1.5 toolchains
17621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17622 ;;
17623
17624 *nto* | *qnx*)
17625 ld_shlibs_CXX=yes
17626 ;;
17627
17628 openbsd2*)
17629 # C++ shared libraries are fairly broken
17630 ld_shlibs_CXX=no
17631 ;;
17632
17633 openbsd*)
17634 if test -f /usr/libexec/ld.so; then
17635 hardcode_direct_CXX=yes
17636 hardcode_shlibpath_var_CXX=no
17637 hardcode_direct_absolute_CXX=yes
17638 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17641 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17642 export_dynamic_flag_spec_CXX='${wl}-E'
17643 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17644 fi
17645 output_verbose_link_cmd=echo
17646 else
17647 ld_shlibs_CXX=no
17648 fi
17649 ;;
17650
17651 osf3* | osf4* | osf5*)
17652 case $cc_basename in
17653 KCC*)
17654 # Kuck and Associates, Inc. (KAI) C++ Compiler
17655
17656 # KCC will only create a shared library if the output file
17657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17658 # to its proper name (with version) after linking.
17659 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'
17660
17661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17662 hardcode_libdir_separator_CXX=:
17663
17664 # Archives containing C++ object files must be created using
17665 # the KAI C++ compiler.
17666 case $host in
17667 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17668 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17669 esac
17670 ;;
17671 RCC*)
17672 # Rational C++ 2.4.1
17673 # FIXME: insert proper C++ library support
17674 ld_shlibs_CXX=no
17675 ;;
17676 cxx*)
17677 case $host in
17678 osf3*)
17679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17680 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'
17681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17682 ;;
17683 *)
17684 allow_undefined_flag_CXX=' -expect_unresolved \*'
17685 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'
17686 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17687 echo "-hidden">> $lib.exp~
17688 $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~
17689 $RM $lib.exp'
17690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17691 ;;
17692 esac
17693
17694 hardcode_libdir_separator_CXX=:
17695
17696 # Commands to make compiler produce verbose output that lists
17697 # what "hidden" libraries, object files and flags are used when
17698 # linking a shared library.
17699 #
17700 # There doesn't appear to be a way to prevent this compiler from
17701 # explicitly linking system object files so we need to strip them
17702 # from the output so that they don't get included in the library
17703 # dependencies.
17704 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'
17705 ;;
17706 *)
17707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17709 case $host in
17710 osf3*)
17711 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'
17712 ;;
17713 *)
17714 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'
17715 ;;
17716 esac
17717
17718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17719 hardcode_libdir_separator_CXX=:
17720
17721 # Commands to make compiler produce verbose output that lists
17722 # what "hidden" libraries, object files and flags are used when
17723 # linking a shared library.
17724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17725
17726 else
17727 # FIXME: insert proper C++ library support
17728 ld_shlibs_CXX=no
17729 fi
17730 ;;
17731 esac
17732 ;;
17733
17734 psos*)
17735 # FIXME: insert proper C++ library support
17736 ld_shlibs_CXX=no
17737 ;;
17738
17739 sunos4*)
17740 case $cc_basename in
17741 CC*)
17742 # Sun C++ 4.x
17743 # FIXME: insert proper C++ library support
17744 ld_shlibs_CXX=no
17745 ;;
17746 lcc*)
17747 # Lucid
17748 # FIXME: insert proper C++ library support
17749 ld_shlibs_CXX=no
17750 ;;
17751 *)
17752 # FIXME: insert proper C++ library support
17753 ld_shlibs_CXX=no
17754 ;;
17755 esac
17756 ;;
17757
17758 solaris*)
17759 case $cc_basename in
17760 CC*)
17761 # Sun C++ 4.2, 5.x and Centerline C++
17762 archive_cmds_need_lc_CXX=yes
17763 no_undefined_flag_CXX=' -zdefs'
17764 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17766 $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'
17767
17768 hardcode_libdir_flag_spec_CXX='-R$libdir'
17769 hardcode_shlibpath_var_CXX=no
17770 case $host_os in
17771 solaris2.[0-5] | solaris2.[0-5].*) ;;
17772 *)
17773 # The compiler driver will combine and reorder linker options,
17774 # but understands `-z linker_flag'.
17775 # Supported since Solaris 2.6 (maybe 2.5.1?)
17776 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17777 ;;
17778 esac
17779 link_all_deplibs_CXX=yes
17780
17781 output_verbose_link_cmd='echo'
17782
17783 # Archives containing C++ object files must be created using
17784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17785 # necessary to make sure instantiated templates are included
17786 # in the archive.
17787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17788 ;;
17789 gcx*)
17790 # Green Hills C++ Compiler
17791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17792
17793 # The C++ compiler must be used to create the archive.
17794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17795 ;;
17796 *)
17797 # GNU C++ compiler with Solaris linker
17798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17800 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17801 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17802 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17803 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17804
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
17808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17809 else
17810 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17811 # platform.
17812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17813 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17815
17816 # Commands to make compiler produce verbose output that lists
17817 # what "hidden" libraries, object files and flags are used when
17818 # linking a shared library.
17819 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17820 fi
17821
17822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17823 case $host_os in
17824 solaris2.[0-5] | solaris2.[0-5].*) ;;
17825 *)
17826 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17827 ;;
17828 esac
17829 fi
17830 ;;
17831 esac
17832 ;;
17833
17834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17835 no_undefined_flag_CXX='${wl}-z,text'
17836 archive_cmds_need_lc_CXX=no
17837 hardcode_shlibpath_var_CXX=no
17838 runpath_var='LD_RUN_PATH'
17839
17840 case $cc_basename in
17841 CC*)
17842 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 ;;
17845 *)
17846 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 ;;
17849 esac
17850 ;;
17851
17852 sysv5* | sco3.2v5* | sco5v6*)
17853 # Note: We can NOT use -z defs as we might desire, because we do not
17854 # link with -lc, and that would cause any symbols used from libc to
17855 # always be unresolved, which means just about no library would
17856 # ever link correctly. If we're not using GNU ld we use -z text
17857 # though, which does catch some bad symbols but isn't as heavy-handed
17858 # as -z defs.
17859 no_undefined_flag_CXX='${wl}-z,text'
17860 allow_undefined_flag_CXX='${wl}-z,nodefs'
17861 archive_cmds_need_lc_CXX=no
17862 hardcode_shlibpath_var_CXX=no
17863 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17864 hardcode_libdir_separator_CXX=':'
17865 link_all_deplibs_CXX=yes
17866 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17867 runpath_var='LD_RUN_PATH'
17868
17869 case $cc_basename in
17870 CC*)
17871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 ;;
17874 *)
17875 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17876 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17877 ;;
17878 esac
17879 ;;
17880
17881 tandem*)
17882 case $cc_basename in
17883 NCC*)
17884 # NonStop-UX NCC 3.20
17885 # FIXME: insert proper C++ library support
17886 ld_shlibs_CXX=no
17887 ;;
17888 *)
17889 # FIXME: insert proper C++ library support
17890 ld_shlibs_CXX=no
17891 ;;
17892 esac
17893 ;;
17894
17895 vxworks*)
17896 # FIXME: insert proper C++ library support
17897 ld_shlibs_CXX=no
17898 ;;
17899
17900 *)
17901 # FIXME: insert proper C++ library support
17902 ld_shlibs_CXX=no
17903 ;;
17904 esac
17905
17906 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17907$as_echo "$ld_shlibs_CXX" >&6; }
17908 test "$ld_shlibs_CXX" = no && can_build_shared=no
17909
17910 GCC_CXX="$GXX"
17911 LD_CXX="$LD"
17912
17913 ## CAVEAT EMPTOR:
17914 ## There is no encapsulation within the following macros, do not change
17915 ## the running order or otherwise move them around unless you know exactly
17916 ## what you are doing...
17917 # Dependencies to place before and after the object being linked:
17918predep_objects_CXX=
17919postdep_objects_CXX=
17920predeps_CXX=
17921postdeps_CXX=
17922compiler_lib_search_path_CXX=
17923
17924cat > conftest.$ac_ext <<_LT_EOF
17925class Foo
17926{
17927public:
17928 Foo (void) { a = 0; }
17929private:
17930 int a;
17931};
17932_LT_EOF
17933
17934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; then
17939 # Parse the compiler output and extract the necessary
17940 # objects, libraries and library flags.
17941
17942 # Sentinel used to keep track of whether or not we are before
17943 # the conftest object file.
17944 pre_test_object_deps_done=no
17945
17946 for p in `eval "$output_verbose_link_cmd"`; do
17947 case $p in
17948
17949 -L* | -R* | -l*)
17950 # Some compilers place space between "-{L,R}" and the path.
17951 # Remove the space.
17952 if test $p = "-L" ||
17953 test $p = "-R"; then
17954 prev=$p
17955 continue
17956 else
17957 prev=
17958 fi
17959
17960 if test "$pre_test_object_deps_done" = no; then
17961 case $p in
17962 -L* | -R*)
17963 # Internal compiler library paths should come after those
17964 # provided the user. The postdeps already come after the
17965 # user supplied libs so there is no need to process them.
17966 if test -z "$compiler_lib_search_path_CXX"; then
17967 compiler_lib_search_path_CXX="${prev}${p}"
17968 else
17969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17970 fi
17971 ;;
17972 # The "-l" case would never come before the object being
17973 # linked, so don't bother handling this case.
17974 esac
17975 else
17976 if test -z "$postdeps_CXX"; then
17977 postdeps_CXX="${prev}${p}"
17978 else
17979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17980 fi
17981 fi
17982 ;;
17983
17984 *.$objext)
17985 # This assumes that the test object file only shows up
17986 # once in the compiler output.
17987 if test "$p" = "conftest.$objext"; then
17988 pre_test_object_deps_done=yes
17989 continue
17990 fi
17991
17992 if test "$pre_test_object_deps_done" = no; then
17993 if test -z "$predep_objects_CXX"; then
17994 predep_objects_CXX="$p"
17995 else
17996 predep_objects_CXX="$predep_objects_CXX $p"
17997 fi
17998 else
17999 if test -z "$postdep_objects_CXX"; then
18000 postdep_objects_CXX="$p"
18001 else
18002 postdep_objects_CXX="$postdep_objects_CXX $p"
18003 fi
18004 fi
18005 ;;
18006
18007 *) ;; # Ignore the rest.
18008
18009 esac
18010 done
18011
18012 # Clean up.
18013 rm -f a.out a.exe
18014else
18015 echo "libtool.m4: error: problem compiling CXX test program"
18016fi
18017
18018$RM -f confest.$objext
18019
18020# PORTME: override above test on systems where it is broken
18021case $host_os in
18022interix[3-9]*)
18023 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18024 # hack all around it, let's just trust "g++" to DTRT.
18025 predep_objects_CXX=
18026 postdep_objects_CXX=
18027 postdeps_CXX=
18028 ;;
18029
18030linux*)
18031 case `$CC -V 2>&1 | sed 5q` in
18032 *Sun\ C*)
18033 # Sun C++ 5.9
18034
18035 # The more standards-conforming stlport4 library is
18036 # incompatible with the Cstd library. Avoid specifying
18037 # it if it's in CXXFLAGS. Ignore libCrun as
18038 # -library=stlport4 depends on it.
18039 case " $CXX $CXXFLAGS " in
18040 *" -library=stlport4 "*)
18041 solaris_use_stlport4=yes
18042 ;;
18043 esac
18044
18045 if test "$solaris_use_stlport4" != yes; then
18046 postdeps_CXX='-library=Cstd -library=Crun'
18047 fi
18048 ;;
18049 esac
18050 ;;
18051
18052solaris*)
18053 case $cc_basename in
18054 CC*)
18055 # The more standards-conforming stlport4 library is
18056 # incompatible with the Cstd library. Avoid specifying
18057 # it if it's in CXXFLAGS. Ignore libCrun as
18058 # -library=stlport4 depends on it.
18059 case " $CXX $CXXFLAGS " in
18060 *" -library=stlport4 "*)
18061 solaris_use_stlport4=yes
18062 ;;
18063 esac
18064
18065 # Adding this requires a known-good setup of shared libraries for
18066 # Sun compiler versions before 5.6, else PIC objects from an old
18067 # archive will be linked into the output, leading to subtle bugs.
18068 if test "$solaris_use_stlport4" != yes; then
18069 postdeps_CXX='-library=Cstd -library=Crun'
18070 fi
18071 ;;
18072 esac
18073 ;;
18074esac
18075
18076
18077case " $postdeps_CXX " in
18078*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18079esac
18080 compiler_lib_search_dirs_CXX=
18081if test -n "${compiler_lib_search_path_CXX}"; then
18082 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18083fi
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115 lt_prog_compiler_wl_CXX=
18116lt_prog_compiler_pic_CXX=
18117lt_prog_compiler_static_CXX=
18118
18119{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18120$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18121
18122 # C++ specific cases for pic, static, wl, etc.
18123 if test "$GXX" = yes; then
18124 lt_prog_compiler_wl_CXX='-Wl,'
18125 lt_prog_compiler_static_CXX='-static'
18126
18127 case $host_os in
18128 aix*)
18129 # All AIX code is PIC.
18130 if test "$host_cpu" = ia64; then
18131 # AIX 5 now supports IA64 processor
18132 lt_prog_compiler_static_CXX='-Bstatic'
18133 fi
18134 ;;
18135
18136 amigaos*)
18137 case $host_cpu in
18138 powerpc)
18139 # see comment about AmigaOS4 .so support
18140 lt_prog_compiler_pic_CXX='-fPIC'
18141 ;;
18142 m68k)
18143 # FIXME: we need at least 68020 code to build shared libraries, but
18144 # adding the `-m68020' flag to GCC prevents building anything better,
18145 # like `-m68040'.
18146 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18147 ;;
18148 esac
18149 ;;
18150
18151 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18152 # PIC is the default for these OSes.
18153 ;;
18154 mingw* | cygwin* | os2* | pw32* | cegcc*)
18155 # This hack is so that the source file can tell whether it is being
18156 # built for inclusion in a dll (and should export symbols for example).
18157 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18158 # (--disable-auto-import) libraries
18159 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18160 ;;
18161 darwin* | rhapsody*)
18162 # PIC is the default on this platform
18163 # Common symbols not allowed in MH_DYLIB files
18164 lt_prog_compiler_pic_CXX='-fno-common'
18165 ;;
18166 *djgpp*)
18167 # DJGPP does not support shared libraries at all
18168 lt_prog_compiler_pic_CXX=
18169 ;;
18170 interix[3-9]*)
18171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18172 # Instead, we relocate shared libraries at runtime.
18173 ;;
18174 sysv4*MP*)
18175 if test -d /usr/nec; then
18176 lt_prog_compiler_pic_CXX=-Kconform_pic
18177 fi
18178 ;;
18179 hpux*)
18180 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18181 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18182 # sets the default TLS model and affects inlining.
18183 case $host_cpu in
18184 hppa*64*)
18185 ;;
18186 *)
18187 lt_prog_compiler_pic_CXX='-fPIC'
18188 ;;
18189 esac
18190 ;;
18191 *qnx* | *nto*)
18192 # QNX uses GNU C++, but need to define -shared option too, otherwise
18193 # it will coredump.
18194 lt_prog_compiler_pic_CXX='-fPIC -shared'
18195 ;;
18196 *)
18197 lt_prog_compiler_pic_CXX='-fPIC'
18198 ;;
18199 esac
18200 else
18201 case $host_os in
18202 aix[4-9]*)
18203 # All AIX code is PIC.
18204 if test "$host_cpu" = ia64; then
18205 # AIX 5 now supports IA64 processor
18206 lt_prog_compiler_static_CXX='-Bstatic'
18207 else
18208 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18209 fi
18210 ;;
18211 chorus*)
18212 case $cc_basename in
18213 cxch68*)
18214 # Green Hills C++ Compiler
18215 # _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"
18216 ;;
18217 esac
18218 ;;
18219 dgux*)
18220 case $cc_basename in
18221 ec++*)
18222 lt_prog_compiler_pic_CXX='-KPIC'
18223 ;;
18224 ghcx*)
18225 # Green Hills C++ Compiler
18226 lt_prog_compiler_pic_CXX='-pic'
18227 ;;
18228 *)
18229 ;;
18230 esac
18231 ;;
18232 freebsd* | dragonfly*)
18233 # FreeBSD uses GNU C++
18234 ;;
18235 hpux9* | hpux10* | hpux11*)
18236 case $cc_basename in
18237 CC*)
18238 lt_prog_compiler_wl_CXX='-Wl,'
18239 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18240 if test "$host_cpu" != ia64; then
18241 lt_prog_compiler_pic_CXX='+Z'
18242 fi
18243 ;;
18244 aCC*)
18245 lt_prog_compiler_wl_CXX='-Wl,'
18246 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18247 case $host_cpu in
18248 hppa*64*|ia64*)
18249 # +Z the default
18250 ;;
18251 *)
18252 lt_prog_compiler_pic_CXX='+Z'
18253 ;;
18254 esac
18255 ;;
18256 *)
18257 ;;
18258 esac
18259 ;;
18260 interix*)
18261 # This is c89, which is MS Visual C++ (no shared libs)
18262 # Anyone wants to do a port?
18263 ;;
18264 irix5* | irix6* | nonstopux*)
18265 case $cc_basename in
18266 CC*)
18267 lt_prog_compiler_wl_CXX='-Wl,'
18268 lt_prog_compiler_static_CXX='-non_shared'
18269 # CC pic flag -KPIC is the default.
18270 ;;
18271 *)
18272 ;;
18273 esac
18274 ;;
18275 linux* | k*bsd*-gnu)
18276 case $cc_basename in
18277 KCC*)
18278 # KAI C++ Compiler
18279 lt_prog_compiler_wl_CXX='--backend -Wl,'
18280 lt_prog_compiler_pic_CXX='-fPIC'
18281 ;;
18282 ecpc* )
18283 # old Intel C++ for x86_64 which still supported -KPIC.
18284 lt_prog_compiler_wl_CXX='-Wl,'
18285 lt_prog_compiler_pic_CXX='-KPIC'
18286 lt_prog_compiler_static_CXX='-static'
18287 ;;
18288 icpc* )
18289 # Intel C++, used to be incompatible with GCC.
18290 # ICC 10 doesn't accept -KPIC any more.
18291 lt_prog_compiler_wl_CXX='-Wl,'
18292 lt_prog_compiler_pic_CXX='-fPIC'
18293 lt_prog_compiler_static_CXX='-static'
18294 ;;
18295 pgCC* | pgcpp*)
18296 # Portland Group C++ compiler
18297 lt_prog_compiler_wl_CXX='-Wl,'
18298 lt_prog_compiler_pic_CXX='-fpic'
18299 lt_prog_compiler_static_CXX='-Bstatic'
18300 ;;
18301 cxx*)
18302 # Compaq C++
18303 # Make sure the PIC flag is empty. It appears that all Alpha
18304 # Linux and Compaq Tru64 Unix objects are PIC.
18305 lt_prog_compiler_pic_CXX=
18306 lt_prog_compiler_static_CXX='-non_shared'
18307 ;;
18308 xlc* | xlC*)
18309 # IBM XL 8.0 on PPC
18310 lt_prog_compiler_wl_CXX='-Wl,'
18311 lt_prog_compiler_pic_CXX='-qpic'
18312 lt_prog_compiler_static_CXX='-qstaticlink'
18313 ;;
18314 *)
18315 case `$CC -V 2>&1 | sed 5q` in
18316 *Sun\ C*)
18317 # Sun C++ 5.9
18318 lt_prog_compiler_pic_CXX='-KPIC'
18319 lt_prog_compiler_static_CXX='-Bstatic'
18320 lt_prog_compiler_wl_CXX='-Qoption ld '
18321 ;;
18322 esac
18323 ;;
18324 esac
18325 ;;
18326 lynxos*)
18327 ;;
18328 m88k*)
18329 ;;
18330 mvs*)
18331 case $cc_basename in
18332 cxx*)
18333 lt_prog_compiler_pic_CXX='-W c,exportall'
18334 ;;
18335 *)
18336 ;;
18337 esac
18338 ;;
18339 netbsd*)
18340 ;;
18341 *qnx* | *nto*)
18342 # QNX uses GNU C++, but need to define -shared option too, otherwise
18343 # it will coredump.
18344 lt_prog_compiler_pic_CXX='-fPIC -shared'
18345 ;;
18346 osf3* | osf4* | osf5*)
18347 case $cc_basename in
18348 KCC*)
18349 lt_prog_compiler_wl_CXX='--backend -Wl,'
18350 ;;
18351 RCC*)
18352 # Rational C++ 2.4.1
18353 lt_prog_compiler_pic_CXX='-pic'
18354 ;;
18355 cxx*)
18356 # Digital/Compaq C++
18357 lt_prog_compiler_wl_CXX='-Wl,'
18358 # Make sure the PIC flag is empty. It appears that all Alpha
18359 # Linux and Compaq Tru64 Unix objects are PIC.
18360 lt_prog_compiler_pic_CXX=
18361 lt_prog_compiler_static_CXX='-non_shared'
18362 ;;
18363 *)
18364 ;;
18365 esac
18366 ;;
18367 psos*)
18368 ;;
18369 solaris*)
18370 case $cc_basename in
18371 CC*)
18372 # Sun C++ 4.2, 5.x and Centerline C++
18373 lt_prog_compiler_pic_CXX='-KPIC'
18374 lt_prog_compiler_static_CXX='-Bstatic'
18375 lt_prog_compiler_wl_CXX='-Qoption ld '
18376 ;;
18377 gcx*)
18378 # Green Hills C++ Compiler
18379 lt_prog_compiler_pic_CXX='-PIC'
18380 ;;
18381 *)
18382 ;;
18383 esac
18384 ;;
18385 sunos4*)
18386 case $cc_basename in
18387 CC*)
18388 # Sun C++ 4.x
18389 lt_prog_compiler_pic_CXX='-pic'
18390 lt_prog_compiler_static_CXX='-Bstatic'
18391 ;;
18392 lcc*)
18393 # Lucid
18394 lt_prog_compiler_pic_CXX='-pic'
18395 ;;
18396 *)
18397 ;;
18398 esac
18399 ;;
18400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18401 case $cc_basename in
18402 CC*)
18403 lt_prog_compiler_wl_CXX='-Wl,'
18404 lt_prog_compiler_pic_CXX='-KPIC'
18405 lt_prog_compiler_static_CXX='-Bstatic'
18406 ;;
18407 esac
18408 ;;
18409 tandem*)
18410 case $cc_basename in
18411 NCC*)
18412 # NonStop-UX NCC 3.20
18413 lt_prog_compiler_pic_CXX='-KPIC'
18414 ;;
18415 *)
18416 ;;
18417 esac
18418 ;;
18419 vxworks*)
18420 ;;
18421 *)
18422 lt_prog_compiler_can_build_shared_CXX=no
18423 ;;
18424 esac
18425 fi
18426
18427case $host_os in
18428 # For platforms which do not support PIC, -DPIC is meaningless:
18429 *djgpp*)
18430 lt_prog_compiler_pic_CXX=
18431 ;;
18432 *)
18433 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18434 ;;
18435esac
18436{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18437$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18438
18439
18440
18441#
18442# Check to make sure the PIC flag actually works.
18443#
18444if test -n "$lt_prog_compiler_pic_CXX"; then
18445 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18446$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18447if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18448 $as_echo_n "(cached) " >&6
18449else
18450 lt_cv_prog_compiler_pic_works_CXX=no
18451 ac_outfile=conftest.$ac_objext
18452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18453 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18454 # Insert the option either (1) after the last *FLAGS variable, or
18455 # (2) before a word containing "conftest.", or (3) at the end.
18456 # Note that $ac_compile itself does not contain backslashes and begins
18457 # with a dollar sign (not a hyphen), so the echo should work correctly.
18458 # The option is referenced via a variable to avoid confusing sed.
18459 lt_compile=`echo "$ac_compile" | $SED \
18460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18462 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000018463 (eval echo "\"\$as_me:18463: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018464 (eval "$lt_compile" 2>conftest.err)
18465 ac_status=$?
18466 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000018467 echo "$as_me:18467: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018468 if (exit $ac_status) && test -s "$ac_outfile"; then
18469 # The compiler can only warn and ignore the option if not recognized
18470 # So say no if there are warnings other than the usual output.
18471 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18474 lt_cv_prog_compiler_pic_works_CXX=yes
18475 fi
18476 fi
18477 $RM conftest*
18478
18479fi
18480{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18481$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18482
18483if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18484 case $lt_prog_compiler_pic_CXX in
18485 "" | " "*) ;;
18486 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18487 esac
18488else
18489 lt_prog_compiler_pic_CXX=
18490 lt_prog_compiler_can_build_shared_CXX=no
18491fi
18492
18493fi
18494
18495
18496
18497#
18498# Check to make sure the static flag actually works.
18499#
18500wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18501{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18502$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18503if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
18504 $as_echo_n "(cached) " >&6
18505else
18506 lt_cv_prog_compiler_static_works_CXX=no
18507 save_LDFLAGS="$LDFLAGS"
18508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18511 # The linker can only warn and ignore the option if not recognized
18512 # So say no if there are warnings
18513 if test -s conftest.err; then
18514 # Append any errors to the config.log.
18515 cat conftest.err 1>&5
18516 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18518 if diff conftest.exp conftest.er2 >/dev/null; then
18519 lt_cv_prog_compiler_static_works_CXX=yes
18520 fi
18521 else
18522 lt_cv_prog_compiler_static_works_CXX=yes
18523 fi
18524 fi
18525 $RM -r conftest*
18526 LDFLAGS="$save_LDFLAGS"
18527
18528fi
18529{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18530$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18531
18532if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18533 :
18534else
18535 lt_prog_compiler_static_CXX=
18536fi
18537
18538
18539
18540
18541 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18543if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18544 $as_echo_n "(cached) " >&6
18545else
18546 lt_cv_prog_compiler_c_o_CXX=no
18547 $RM -r conftest 2>/dev/null
18548 mkdir conftest
18549 cd conftest
18550 mkdir out
18551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18552
18553 lt_compiler_flag="-o out/conftest2.$ac_objext"
18554 # Insert the option either (1) after the last *FLAGS variable, or
18555 # (2) before a word containing "conftest.", or (3) at the end.
18556 # Note that $ac_compile itself does not contain backslashes and begins
18557 # with a dollar sign (not a hyphen), so the echo should work correctly.
18558 lt_compile=`echo "$ac_compile" | $SED \
18559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18561 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000018562 (eval echo "\"\$as_me:18562: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018563 (eval "$lt_compile" 2>out/conftest.err)
18564 ac_status=$?
18565 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000018566 echo "$as_me:18566: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18568 then
18569 # The compiler can only warn and ignore the option if not recognized
18570 # So say no if there are warnings
18571 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18574 lt_cv_prog_compiler_c_o_CXX=yes
18575 fi
18576 fi
18577 chmod u+w . 2>&5
18578 $RM conftest*
18579 # SGI C++ compiler will create directory out/ii_files/ for
18580 # template instantiation
18581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18582 $RM out/* && rmdir out
18583 cd ..
18584 $RM -r conftest
18585 $RM conftest*
18586
18587fi
18588{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18589$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18590
18591
18592
18593 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18594$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18595if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18596 $as_echo_n "(cached) " >&6
18597else
18598 lt_cv_prog_compiler_c_o_CXX=no
18599 $RM -r conftest 2>/dev/null
18600 mkdir conftest
18601 cd conftest
18602 mkdir out
18603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18604
18605 lt_compiler_flag="-o out/conftest2.$ac_objext"
18606 # Insert the option either (1) after the last *FLAGS variable, or
18607 # (2) before a word containing "conftest.", or (3) at the end.
18608 # Note that $ac_compile itself does not contain backslashes and begins
18609 # with a dollar sign (not a hyphen), so the echo should work correctly.
18610 lt_compile=`echo "$ac_compile" | $SED \
18611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18613 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000018614 (eval echo "\"\$as_me:18614: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018615 (eval "$lt_compile" 2>out/conftest.err)
18616 ac_status=$?
18617 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000018618 echo "$as_me:18618: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18620 then
18621 # The compiler can only warn and ignore the option if not recognized
18622 # So say no if there are warnings
18623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18626 lt_cv_prog_compiler_c_o_CXX=yes
18627 fi
18628 fi
18629 chmod u+w . 2>&5
18630 $RM conftest*
18631 # SGI C++ compiler will create directory out/ii_files/ for
18632 # template instantiation
18633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18634 $RM out/* && rmdir out
18635 cd ..
18636 $RM -r conftest
18637 $RM conftest*
18638
18639fi
18640{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18641$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18642
18643
18644
18645
18646hard_links="nottested"
18647if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18648 # do not overwrite the value of need_locks provided by the user
18649 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18650$as_echo_n "checking if we can lock with hard links... " >&6; }
18651 hard_links=yes
18652 $RM conftest*
18653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18654 touch conftest.a
18655 ln conftest.a conftest.b 2>&5 || hard_links=no
18656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18657 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18658$as_echo "$hard_links" >&6; }
18659 if test "$hard_links" = no; then
18660 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18661$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18662 need_locks=warn
18663 fi
18664else
18665 need_locks=no
18666fi
18667
18668
18669
18670 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18671$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18672
18673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18674 case $host_os in
18675 aix[4-9]*)
18676 # If we're using GNU nm, then we don't want the "-C" option.
18677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18679 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'
18680 else
18681 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'
18682 fi
18683 ;;
18684 pw32*)
18685 export_symbols_cmds_CXX="$ltdll_cmds"
18686 ;;
18687 cygwin* | mingw* | cegcc*)
18688 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'
18689 ;;
18690 *)
18691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18692 ;;
18693 esac
18694 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18695
18696{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18697$as_echo "$ld_shlibs_CXX" >&6; }
18698test "$ld_shlibs_CXX" = no && can_build_shared=no
18699
18700with_gnu_ld_CXX=$with_gnu_ld
18701
18702
18703
18704
18705
18706
18707#
18708# Do we need to explicitly link libc?
18709#
18710case "x$archive_cmds_need_lc_CXX" in
18711x|xyes)
18712 # Assume -lc should be added
18713 archive_cmds_need_lc_CXX=yes
18714
18715 if test "$enable_shared" = yes && test "$GCC" = yes; then
18716 case $archive_cmds_CXX in
18717 *'~'*)
18718 # FIXME: we may have to deal with multi-command sequences.
18719 ;;
18720 '$CC '*)
18721 # Test whether the compiler implicitly links with -lc since on some
18722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18723 # to ld, don't add -lc before -lgcc.
18724 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18725$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18726 $RM conftest*
18727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18728
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>&5
18731 ac_status=$?
18732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } 2>conftest.err; then
18734 soname=conftest
18735 lib=conftest
18736 libobjs=conftest.$ac_objext
18737 deplibs=
18738 wl=$lt_prog_compiler_wl_CXX
18739 pic_flag=$lt_prog_compiler_pic_CXX
18740 compiler_flags=-v
18741 linker_flags=-v
18742 verstring=
18743 output_objdir=.
18744 libname=conftest
18745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18746 allow_undefined_flag_CXX=
18747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18748 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18749 ac_status=$?
18750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }
18752 then
18753 archive_cmds_need_lc_CXX=no
18754 else
18755 archive_cmds_need_lc_CXX=yes
18756 fi
18757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18758 else
18759 cat conftest.err 1>&5
18760 fi
18761 $RM conftest*
18762 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18763$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18764 ;;
18765 esac
18766 fi
18767 ;;
18768esac
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18834$as_echo_n "checking dynamic linker characteristics... " >&6; }
18835
18836library_names_spec=
18837libname_spec='lib$name'
18838soname_spec=
18839shrext_cmds=".so"
18840postinstall_cmds=
18841postuninstall_cmds=
18842finish_cmds=
18843finish_eval=
18844shlibpath_var=
18845shlibpath_overrides_runpath=unknown
18846version_type=none
18847dynamic_linker="$host_os ld.so"
18848sys_lib_dlsearch_path_spec="/lib /usr/lib"
18849need_lib_prefix=unknown
18850hardcode_into_libs=no
18851
18852# when you set need_version to no, make sure it does not cause -set_version
18853# flags to be left without arguments
18854need_version=unknown
18855
18856case $host_os in
18857aix3*)
18858 version_type=linux
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18860 shlibpath_var=LIBPATH
18861
18862 # AIX 3 has no versioning support, so we append a major version to the name.
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 ;;
18865
18866aix[4-9]*)
18867 version_type=linux
18868 need_lib_prefix=no
18869 need_version=no
18870 hardcode_into_libs=yes
18871 if test "$host_cpu" = ia64; then
18872 # AIX 5 supports IA64
18873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 else
18876 # With GCC up to 2.95.x, collect2 would create an import file
18877 # for dependence libraries. The import file would start with
18878 # the line `#! .'. This would cause the generated library to
18879 # depend on `.', always an invalid library. This was fixed in
18880 # development snapshots of GCC prior to 3.0.
18881 case $host_os in
18882 aix4 | aix4.[01] | aix4.[01].*)
18883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18884 echo ' yes '
18885 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18886 :
18887 else
18888 can_build_shared=no
18889 fi
18890 ;;
18891 esac
18892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18893 # soname into executable. Probably we can add versioning support to
18894 # collect2, so additional links can be useful in future.
18895 if test "$aix_use_runtimelinking" = yes; then
18896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18897 # instead of lib<name>.a to let people know that these are not
18898 # typical AIX shared libraries.
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18900 else
18901 # We preserve .a as extension for shared libraries through AIX4.2
18902 # and later when we are not doing run time linking.
18903 library_names_spec='${libname}${release}.a $libname.a'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 fi
18906 shlibpath_var=LIBPATH
18907 fi
18908 ;;
18909
18910amigaos*)
18911 case $host_cpu in
18912 powerpc)
18913 # Since July 2007 AmigaOS4 officially supports .so libraries.
18914 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916 ;;
18917 m68k)
18918 library_names_spec='$libname.ixlibrary $libname.a'
18919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18920 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'
18921 ;;
18922 esac
18923 ;;
18924
18925beos*)
18926 library_names_spec='${libname}${shared_ext}'
18927 dynamic_linker="$host_os ld.so"
18928 shlibpath_var=LIBRARY_PATH
18929 ;;
18930
18931bsdi[45]*)
18932 version_type=linux
18933 need_version=no
18934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18935 soname_spec='${libname}${release}${shared_ext}$major'
18936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18937 shlibpath_var=LD_LIBRARY_PATH
18938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18940 # the default ld.so.conf also contains /usr/contrib/lib and
18941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18942 # libtool to hard-code these into programs
18943 ;;
18944
18945cygwin* | mingw* | pw32* | cegcc*)
18946 version_type=windows
18947 shrext_cmds=".dll"
18948 need_version=no
18949 need_lib_prefix=no
18950
18951 case $GCC,$host_os in
18952 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18953 library_names_spec='$libname.dll.a'
18954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18955 postinstall_cmds='base_file=`basename \${file}`~
18956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18957 dldir=$destdir/`dirname \$dlpath`~
18958 test -d \$dldir || mkdir -p \$dldir~
18959 $install_prog $dir/$dlname \$dldir/$dlname~
18960 chmod a+x \$dldir/$dlname~
18961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18963 fi'
18964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18965 dlpath=$dir/\$dldll~
18966 $RM \$dlpath'
18967 shlibpath_overrides_runpath=yes
18968
18969 case $host_os in
18970 cygwin*)
18971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18973 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18974 ;;
18975 mingw* | cegcc*)
18976 # MinGW DLLs use traditional 'lib' prefix
18977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18978 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18980 # It is most probably a Windows format PATH printed by
18981 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18982 # path with ; separators, and with drive letters. We can handle the
18983 # drive letters (cygwin fileutils understands them), so leave them,
18984 # especially as we might pass files found there to a mingw objdump,
18985 # which wouldn't understand a cygwinified path. Ahh.
18986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18987 else
18988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18989 fi
18990 ;;
18991 pw32*)
18992 # pw32 DLLs use 'pw' prefix rather than 'lib'
18993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18994 ;;
18995 esac
18996 ;;
18997
18998 *)
18999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19000 ;;
19001 esac
19002 dynamic_linker='Win32 ld.exe'
19003 # FIXME: first we should search . and the directory the executable is in
19004 shlibpath_var=PATH
19005 ;;
19006
19007darwin* | rhapsody*)
19008 dynamic_linker="$host_os dyld"
19009 version_type=darwin
19010 need_lib_prefix=no
19011 need_version=no
19012 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19013 soname_spec='${libname}${release}${major}$shared_ext'
19014 shlibpath_overrides_runpath=yes
19015 shlibpath_var=DYLD_LIBRARY_PATH
19016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19017
19018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19019 ;;
19020
19021dgux*)
19022 version_type=linux
19023 need_lib_prefix=no
19024 need_version=no
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 ;;
19029
19030freebsd1*)
19031 dynamic_linker=no
19032 ;;
19033
19034freebsd* | dragonfly*)
19035 # DragonFly does not have aout. When/if they implement a new
19036 # versioning mechanism, adjust this.
19037 if test -x /usr/bin/objformat; then
19038 objformat=`/usr/bin/objformat`
19039 else
19040 case $host_os in
19041 freebsd[123]*) objformat=aout ;;
19042 *) objformat=elf ;;
19043 esac
19044 fi
19045 version_type=freebsd-$objformat
19046 case $version_type in
19047 freebsd-elf*)
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19049 need_version=no
19050 need_lib_prefix=no
19051 ;;
19052 freebsd-*)
19053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19054 need_version=yes
19055 ;;
19056 esac
19057 shlibpath_var=LD_LIBRARY_PATH
19058 case $host_os in
19059 freebsd2*)
19060 shlibpath_overrides_runpath=yes
19061 ;;
19062 freebsd3.[01]* | freebsdelf3.[01]*)
19063 shlibpath_overrides_runpath=yes
19064 hardcode_into_libs=yes
19065 ;;
19066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19068 shlibpath_overrides_runpath=no
19069 hardcode_into_libs=yes
19070 ;;
19071 *) # from 4.6 on, and DragonFly
19072 shlibpath_overrides_runpath=yes
19073 hardcode_into_libs=yes
19074 ;;
19075 esac
19076 ;;
19077
19078gnu*)
19079 version_type=linux
19080 need_lib_prefix=no
19081 need_version=no
19082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19083 soname_spec='${libname}${release}${shared_ext}$major'
19084 shlibpath_var=LD_LIBRARY_PATH
19085 hardcode_into_libs=yes
19086 ;;
19087
19088hpux9* | hpux10* | hpux11*)
19089 # Give a soname corresponding to the major version so that dld.sl refuses to
19090 # link against other versions.
19091 version_type=sunos
19092 need_lib_prefix=no
19093 need_version=no
19094 case $host_cpu in
19095 ia64*)
19096 shrext_cmds='.so'
19097 hardcode_into_libs=yes
19098 dynamic_linker="$host_os dld.so"
19099 shlibpath_var=LD_LIBRARY_PATH
19100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 if test "X$HPUX_IA64_MODE" = X32; then
19104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19105 else
19106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19107 fi
19108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19109 ;;
19110 hppa*64*)
19111 shrext_cmds='.sl'
19112 hardcode_into_libs=yes
19113 dynamic_linker="$host_os dld.sl"
19114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19117 soname_spec='${libname}${release}${shared_ext}$major'
19118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19120 ;;
19121 *)
19122 shrext_cmds='.sl'
19123 dynamic_linker="$host_os dld.sl"
19124 shlibpath_var=SHLIB_PATH
19125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19127 soname_spec='${libname}${release}${shared_ext}$major'
19128 ;;
19129 esac
19130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19131 postinstall_cmds='chmod 555 $lib'
19132 ;;
19133
19134interix[3-9]*)
19135 version_type=linux
19136 need_lib_prefix=no
19137 need_version=no
19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19139 soname_spec='${libname}${release}${shared_ext}$major'
19140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19141 shlibpath_var=LD_LIBRARY_PATH
19142 shlibpath_overrides_runpath=no
19143 hardcode_into_libs=yes
19144 ;;
19145
19146irix5* | irix6* | nonstopux*)
19147 case $host_os in
19148 nonstopux*) version_type=nonstopux ;;
19149 *)
19150 if test "$lt_cv_prog_gnu_ld" = yes; then
19151 version_type=linux
19152 else
19153 version_type=irix
19154 fi ;;
19155 esac
19156 need_lib_prefix=no
19157 need_version=no
19158 soname_spec='${libname}${release}${shared_ext}$major'
19159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19160 case $host_os in
19161 irix5* | nonstopux*)
19162 libsuff= shlibsuff=
19163 ;;
19164 *)
19165 case $LD in # libtool.m4 will add one of these switches to LD
19166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19167 libsuff= shlibsuff= libmagic=32-bit;;
19168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19169 libsuff=32 shlibsuff=N32 libmagic=N32;;
19170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19172 *) libsuff= shlibsuff= libmagic=never-match;;
19173 esac
19174 ;;
19175 esac
19176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19177 shlibpath_overrides_runpath=no
19178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19180 hardcode_into_libs=yes
19181 ;;
19182
19183# No shared lib support for Linux oldld, aout, or coff.
19184linux*oldld* | linux*aout* | linux*coff*)
19185 dynamic_linker=no
19186 ;;
19187
19188# This must be Linux ELF.
19189linux* | k*bsd*-gnu)
19190 version_type=linux
19191 need_lib_prefix=no
19192 need_version=no
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194 soname_spec='${libname}${release}${shared_ext}$major'
19195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=no
19198 # Some binutils ld are patched to set DT_RUNPATH
19199 save_LDFLAGS=$LDFLAGS
19200 save_libdir=$libdir
19201 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19202 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
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
19210int
19211main ()
19212{
19213
19214 ;
19215 return 0;
19216}
19217_ACEOF
19218rm -f conftest.$ac_objext conftest$ac_exeext
19219if { (ac_try="$ac_link"
19220case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223esac
19224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19225$as_echo "$ac_try_echo") >&5
19226 (eval "$ac_link") 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && {
19233 test -z "$ac_cxx_werror_flag" ||
19234 test ! -s conftest.err
19235 } && test -s conftest$ac_exeext && {
19236 test "$cross_compiling" = yes ||
19237 $as_test_x conftest$ac_exeext
19238 }; then
19239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19240 shlibpath_overrides_runpath=yes
19241fi
19242
19243else
19244 $as_echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247
19248fi
19249
19250rm -rf conftest.dSYM
19251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19252 conftest$ac_exeext conftest.$ac_ext
19253 LDFLAGS=$save_LDFLAGS
19254 libdir=$save_libdir
19255
19256 # This implies no fast_install, which is unacceptable.
19257 # Some rework will be needed to allow for fast_install
19258 # before this can be enabled.
19259 hardcode_into_libs=yes
19260
19261 # Add ABI-specific directories to the system library path.
19262 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19263
19264 # Append ld.so.conf contents to the search path
19265 if test -f /etc/ld.so.conf; then
19266 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' ' '`
19267 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19268 fi
19269
19270 # We used to test for /lib/ld.so.1 and disable shared libraries on
19271 # powerpc, because MkLinux only supported shared libraries with the
19272 # GNU dynamic linker. Since this was broken with cross compilers,
19273 # most powerpc-linux boxes support dynamic linking these days and
19274 # people can always --disable-shared, the test was removed, and we
19275 # assume the GNU/Linux dynamic linker is in use.
19276 dynamic_linker='GNU/Linux ld.so'
19277 ;;
19278
19279netbsd*)
19280 version_type=sunos
19281 need_lib_prefix=no
19282 need_version=no
19283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19286 dynamic_linker='NetBSD (a.out) ld.so'
19287 else
19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19289 soname_spec='${libname}${release}${shared_ext}$major'
19290 dynamic_linker='NetBSD ld.elf_so'
19291 fi
19292 shlibpath_var=LD_LIBRARY_PATH
19293 shlibpath_overrides_runpath=yes
19294 hardcode_into_libs=yes
19295 ;;
19296
19297newsos6)
19298 version_type=linux
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 shlibpath_overrides_runpath=yes
19302 ;;
19303
19304*nto* | *qnx*)
19305 version_type=qnx
19306 need_lib_prefix=no
19307 need_version=no
19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309 soname_spec='${libname}${release}${shared_ext}$major'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=no
19312 hardcode_into_libs=yes
19313 dynamic_linker='ldqnx.so'
19314 ;;
19315
19316openbsd*)
19317 version_type=sunos
19318 sys_lib_dlsearch_path_spec="/usr/lib"
19319 need_lib_prefix=no
19320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19321 case $host_os in
19322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19323 *) need_version=no ;;
19324 esac
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19329 case $host_os in
19330 openbsd2.[89] | openbsd2.[89].*)
19331 shlibpath_overrides_runpath=no
19332 ;;
19333 *)
19334 shlibpath_overrides_runpath=yes
19335 ;;
19336 esac
19337 else
19338 shlibpath_overrides_runpath=yes
19339 fi
19340 ;;
19341
19342os2*)
19343 libname_spec='$name'
19344 shrext_cmds=".dll"
19345 need_lib_prefix=no
19346 library_names_spec='$libname${shared_ext} $libname.a'
19347 dynamic_linker='OS/2 ld.exe'
19348 shlibpath_var=LIBPATH
19349 ;;
19350
19351osf3* | osf4* | osf5*)
19352 version_type=osf
19353 need_lib_prefix=no
19354 need_version=no
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357 shlibpath_var=LD_LIBRARY_PATH
19358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19360 ;;
19361
19362rdos*)
19363 dynamic_linker=no
19364 ;;
19365
19366solaris*)
19367 version_type=linux
19368 need_lib_prefix=no
19369 need_version=no
19370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19371 soname_spec='${libname}${release}${shared_ext}$major'
19372 shlibpath_var=LD_LIBRARY_PATH
19373 shlibpath_overrides_runpath=yes
19374 hardcode_into_libs=yes
19375 # ldd complains unless libraries are executable
19376 postinstall_cmds='chmod +x $lib'
19377 ;;
19378
19379sunos4*)
19380 version_type=sunos
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=yes
19385 if test "$with_gnu_ld" = yes; then
19386 need_lib_prefix=no
19387 fi
19388 need_version=yes
19389 ;;
19390
19391sysv4 | sysv4.3*)
19392 version_type=linux
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 case $host_vendor in
19397 sni)
19398 shlibpath_overrides_runpath=no
19399 need_lib_prefix=no
19400 runpath_var=LD_RUN_PATH
19401 ;;
19402 siemens)
19403 need_lib_prefix=no
19404 ;;
19405 motorola)
19406 need_lib_prefix=no
19407 need_version=no
19408 shlibpath_overrides_runpath=no
19409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19410 ;;
19411 esac
19412 ;;
19413
19414sysv4*MP*)
19415 if test -d /usr/nec ;then
19416 version_type=linux
19417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19418 soname_spec='$libname${shared_ext}.$major'
19419 shlibpath_var=LD_LIBRARY_PATH
19420 fi
19421 ;;
19422
19423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19424 version_type=freebsd-elf
19425 need_lib_prefix=no
19426 need_version=no
19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19428 soname_spec='${libname}${release}${shared_ext}$major'
19429 shlibpath_var=LD_LIBRARY_PATH
19430 shlibpath_overrides_runpath=yes
19431 hardcode_into_libs=yes
19432 if test "$with_gnu_ld" = yes; then
19433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19434 else
19435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19436 case $host_os in
19437 sco3.2v5*)
19438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19439 ;;
19440 esac
19441 fi
19442 sys_lib_dlsearch_path_spec='/usr/lib'
19443 ;;
19444
19445tpf*)
19446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19447 version_type=linux
19448 need_lib_prefix=no
19449 need_version=no
19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 shlibpath_overrides_runpath=no
19453 hardcode_into_libs=yes
19454 ;;
19455
19456uts4*)
19457 version_type=linux
19458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19459 soname_spec='${libname}${release}${shared_ext}$major'
19460 shlibpath_var=LD_LIBRARY_PATH
19461 ;;
19462
19463*)
19464 dynamic_linker=no
19465 ;;
19466esac
19467{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19468$as_echo "$dynamic_linker" >&6; }
19469test "$dynamic_linker" = no && can_build_shared=no
19470
19471variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19472if test "$GCC" = yes; then
19473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19474fi
19475
19476if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19478fi
19479if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19481fi
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19519$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19520hardcode_action_CXX=
19521if test -n "$hardcode_libdir_flag_spec_CXX" ||
19522 test -n "$runpath_var_CXX" ||
19523 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19524
19525 # We can hardcode non-existent directories.
19526 if test "$hardcode_direct_CXX" != no &&
19527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19528 # have to relink, otherwise we might link with an installed library
19529 # when we should be linking with a yet-to-be-installed one
19530 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19531 test "$hardcode_minus_L_CXX" != no; then
19532 # Linking always hardcodes the temporary library directory.
19533 hardcode_action_CXX=relink
19534 else
19535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19536 hardcode_action_CXX=immediate
19537 fi
19538else
19539 # We cannot hardcode anything, or else we can only hardcode existing
19540 # directories.
19541 hardcode_action_CXX=unsupported
19542fi
19543{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19544$as_echo "$hardcode_action_CXX" >&6; }
19545
19546if test "$hardcode_action_CXX" = relink ||
19547 test "$inherit_rpath_CXX" = yes; then
19548 # Fast installation is not supported
19549 enable_fast_install=no
19550elif test "$shlibpath_overrides_runpath" = yes ||
19551 test "$enable_shared" = no; then
19552 # Fast installation is not necessary
19553 enable_fast_install=needless
19554fi
19555
19556
19557
19558
19559
19560
19561
19562 fi # test -n "$compiler"
19563
19564 CC=$lt_save_CC
19565 LDCXX=$LD
19566 LD=$lt_save_LD
19567 GCC=$lt_save_GCC
19568 with_gnu_ld=$lt_save_with_gnu_ld
19569 lt_cv_path_LDCXX=$lt_cv_path_LD
19570 lt_cv_path_LD=$lt_save_path_LD
19571 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19572 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19573fi # test "$_lt_caught_CXX_error" != yes
19574
19575ac_ext=c
19576ac_cpp='$CPP $CPPFLAGS'
19577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19579ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593 ac_config_commands="$ac_config_commands libtool"
19594
19595
19596
19597
19598# Only expand once:
19599
19600
19601
19602
19603
19604# Configure libltdl
19605
19606
19607
19608
19609
19610
19611
19612
19613{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
19614$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19615if test "${libltdl_cv_shlibext+set}" = set; then
19616 $as_echo_n "(cached) " >&6
19617else
19618
19619module=yes
19620eval libltdl_cv_shlibext=$shrext_cmds
19621
19622fi
19623{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19624$as_echo "$libltdl_cv_shlibext" >&6; }
19625if test -n "$libltdl_cv_shlibext"; then
19626
19627cat >>confdefs.h <<_ACEOF
19628#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19629_ACEOF
19630
19631fi
19632
19633{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
19634$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19635if test "${lt_cv_module_path_var+set}" = set; then
19636 $as_echo_n "(cached) " >&6
19637else
19638 lt_cv_module_path_var="$shlibpath_var"
19639fi
19640{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
19641$as_echo "$lt_cv_module_path_var" >&6; }
19642if test -n "$lt_cv_module_path_var"; then
19643
19644cat >>confdefs.h <<_ACEOF
19645#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19646_ACEOF
19647
19648fi
19649
19650{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
19651$as_echo_n "checking for the default library search path... " >&6; }
19652if test "${lt_cv_sys_dlsearch_path+set}" = set; then
19653 $as_echo_n "(cached) " >&6
19654else
19655 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19656fi
19657{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
19658$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19659if test -n "$lt_cv_sys_dlsearch_path"; then
19660 sys_dlsearch_path=
19661 for dir in $lt_cv_sys_dlsearch_path; do
19662 if test -z "$sys_dlsearch_path"; then
19663 sys_dlsearch_path="$dir"
19664 else
19665 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19666 fi
19667 done
19668
19669cat >>confdefs.h <<_ACEOF
19670#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19671_ACEOF
19672
19673fi
19674
19675
19676LT_DLLOADERS=
19677
19678
19679ac_ext=c
19680ac_cpp='$CPP $CPPFLAGS'
19681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19683ac_compiler_gnu=$ac_cv_c_compiler_gnu
19684
19685
19686LIBADD_DLOPEN=
19687{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19688$as_echo_n "checking for library containing dlopen... " >&6; }
19689if test "${ac_cv_search_dlopen+set}" = set; then
19690 $as_echo_n "(cached) " >&6
19691else
19692 ac_func_search_save_LIBS=$LIBS
19693cat >conftest.$ac_ext <<_ACEOF
19694/* confdefs.h. */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
19698/* end confdefs.h. */
19699
19700/* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19703#ifdef __cplusplus
19704extern "C"
19705#endif
19706char dlopen ();
19707int
19708main ()
19709{
19710return dlopen ();
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715for ac_lib in '' dl; do
19716 if test -z "$ac_lib"; then
19717 ac_res="none required"
19718 else
19719 ac_res=-l$ac_lib
19720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19721 fi
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723if { (ac_try="$ac_link"
19724case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727esac
19728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19729$as_echo "$ac_try_echo") >&5
19730 (eval "$ac_link") 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && {
19737 test -z "$ac_c_werror_flag" ||
19738 test ! -s conftest.err
19739 } && test -s conftest$ac_exeext && {
19740 test "$cross_compiling" = yes ||
19741 $as_test_x conftest$ac_exeext
19742 }; then
19743 ac_cv_search_dlopen=$ac_res
19744else
19745 $as_echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748
19749fi
19750
19751rm -rf conftest.dSYM
19752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753 conftest$ac_exeext
19754 if test "${ac_cv_search_dlopen+set}" = set; then
19755 break
19756fi
19757done
19758if test "${ac_cv_search_dlopen+set}" = set; then
19759 :
19760else
19761 ac_cv_search_dlopen=no
19762fi
19763rm conftest.$ac_ext
19764LIBS=$ac_func_search_save_LIBS
19765fi
19766{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19767$as_echo "$ac_cv_search_dlopen" >&6; }
19768ac_res=$ac_cv_search_dlopen
19769if test "$ac_res" != no; then
19770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19771
19772cat >>confdefs.h <<\_ACEOF
19773#define HAVE_LIBDL 1
19774_ACEOF
19775
19776 if test "$ac_cv_search_dlopen" != "none required" ; then
19777 LIBADD_DLOPEN="-ldl"
19778 fi
19779 libltdl_cv_lib_dl_dlopen="yes"
19780 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19781else
19782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788#if HAVE_DLFCN_H
19789# include <dlfcn.h>
19790#endif
19791
19792int
19793main ()
19794{
19795dlopen(0, 0);
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext conftest$ac_exeext
19801if { (ac_try="$ac_link"
19802case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805esac
19806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807$as_echo "$ac_try_echo") >&5
19808 (eval "$ac_link") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest$ac_exeext && {
19818 test "$cross_compiling" = yes ||
19819 $as_test_x conftest$ac_exeext
19820 }; then
19821
19822cat >>confdefs.h <<\_ACEOF
19823#define HAVE_LIBDL 1
19824_ACEOF
19825
19826 libltdl_cv_func_dlopen="yes"
19827 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19828else
19829 $as_echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19833$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19834if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19835 $as_echo_n "(cached) " >&6
19836else
19837 ac_check_lib_save_LIBS=$LIBS
19838LIBS="-lsvld $LIBS"
19839cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845
19846/* Override any GCC internal prototype to avoid an error.
19847 Use char because int might match the return type of a GCC
19848 builtin and then its argument prototype would still apply. */
19849#ifdef __cplusplus
19850extern "C"
19851#endif
19852char dlopen ();
19853int
19854main ()
19855{
19856return dlopen ();
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext conftest$ac_exeext
19862if { (ac_try="$ac_link"
19863case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866esac
19867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19868$as_echo "$ac_try_echo") >&5
19869 (eval "$ac_link") 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } && {
19876 test -z "$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 } && test -s conftest$ac_exeext && {
19879 test "$cross_compiling" = yes ||
19880 $as_test_x conftest$ac_exeext
19881 }; then
19882 ac_cv_lib_svld_dlopen=yes
19883else
19884 $as_echo "$as_me: failed program was:" >&5
19885sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_cv_lib_svld_dlopen=no
19888fi
19889
19890rm -rf conftest.dSYM
19891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893LIBS=$ac_check_lib_save_LIBS
19894fi
19895{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19896$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19897if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19898
19899cat >>confdefs.h <<\_ACEOF
19900#define HAVE_LIBDL 1
19901_ACEOF
19902
19903 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19904 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19905fi
19906
19907fi
19908
19909rm -rf conftest.dSYM
19910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19911 conftest$ac_exeext conftest.$ac_ext
19912fi
19913
19914if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19915then
19916 lt_save_LIBS="$LIBS"
19917 LIBS="$LIBS $LIBADD_DLOPEN"
19918
19919for ac_func in dlerror
19920do
19921as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19922{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19923$as_echo_n "checking for $ac_func... " >&6; }
19924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19925 $as_echo_n "(cached) " >&6
19926else
19927 cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19935#define $ac_func innocuous_$ac_func
19936
19937/* System header to define __stub macros and hopefully few prototypes,
19938 which can conflict with char $ac_func (); below.
19939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940 <limits.h> exists even on freestanding compilers. */
19941
19942#ifdef __STDC__
19943# include <limits.h>
19944#else
19945# include <assert.h>
19946#endif
19947
19948#undef $ac_func
19949
19950/* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956char $ac_func ();
19957/* The GNU C library defines this for functions which it implements
19958 to always fail with ENOSYS. Some functions are actually named
19959 something starting with __ and the normal name is an alias. */
19960#if defined __stub_$ac_func || defined __stub___$ac_func
19961choke me
19962#endif
19963
19964int
19965main ()
19966{
19967return $ac_func ();
19968 ;
19969 return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext conftest$ac_exeext
19973if { (ac_try="$ac_link"
19974case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19979$as_echo "$ac_try_echo") >&5
19980 (eval "$ac_link") 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest$ac_exeext && {
19990 test "$cross_compiling" = yes ||
19991 $as_test_x conftest$ac_exeext
19992 }; then
19993 eval "$as_ac_var=yes"
19994else
19995 $as_echo "$as_me: failed program was:" >&5
19996sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 eval "$as_ac_var=no"
19999fi
20000
20001rm -rf conftest.dSYM
20002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20004fi
20005ac_res=`eval 'as_val=${'$as_ac_var'}
20006 $as_echo "$as_val"'`
20007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20008$as_echo "$ac_res" >&6; }
20009as_val=`eval 'as_val=${'$as_ac_var'}
20010 $as_echo "$as_val"'`
20011 if test "x$as_val" = x""yes; then
20012 cat >>confdefs.h <<_ACEOF
20013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20014_ACEOF
20015
20016fi
20017done
20018
20019 LIBS="$lt_save_LIBS"
20020fi
20021
20022
20023LIBADD_SHL_LOAD=
20024{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
20025$as_echo_n "checking for shl_load... " >&6; }
20026if test "${ac_cv_func_shl_load+set}" = set; then
20027 $as_echo_n "(cached) " >&6
20028else
20029 cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20037#define shl_load innocuous_shl_load
20038
20039/* System header to define __stub macros and hopefully few prototypes,
20040 which can conflict with char shl_load (); below.
20041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042 <limits.h> exists even on freestanding compilers. */
20043
20044#ifdef __STDC__
20045# include <limits.h>
20046#else
20047# include <assert.h>
20048#endif
20049
20050#undef shl_load
20051
20052/* Override any GCC internal prototype to avoid an error.
20053 Use char because int might match the return type of a GCC
20054 builtin and then its argument prototype would still apply. */
20055#ifdef __cplusplus
20056extern "C"
20057#endif
20058char shl_load ();
20059/* The GNU C library defines this for functions which it implements
20060 to always fail with ENOSYS. Some functions are actually named
20061 something starting with __ and the normal name is an alias. */
20062#if defined __stub_shl_load || defined __stub___shl_load
20063choke me
20064#endif
20065
20066int
20067main ()
20068{
20069return shl_load ();
20070 ;
20071 return 0;
20072}
20073_ACEOF
20074rm -f conftest.$ac_objext conftest$ac_exeext
20075if { (ac_try="$ac_link"
20076case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20079esac
20080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081$as_echo "$ac_try_echo") >&5
20082 (eval "$ac_link") 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest$ac_exeext && {
20092 test "$cross_compiling" = yes ||
20093 $as_test_x conftest$ac_exeext
20094 }; then
20095 ac_cv_func_shl_load=yes
20096else
20097 $as_echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 ac_cv_func_shl_load=no
20101fi
20102
20103rm -rf conftest.dSYM
20104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20106fi
20107{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20108$as_echo "$ac_cv_func_shl_load" >&6; }
20109if test "x$ac_cv_func_shl_load" = x""yes; then
20110
20111cat >>confdefs.h <<\_ACEOF
20112#define HAVE_SHL_LOAD 1
20113_ACEOF
20114
20115 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20116else
20117 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20118$as_echo_n "checking for shl_load in -ldld... " >&6; }
20119if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20120 $as_echo_n "(cached) " >&6
20121else
20122 ac_check_lib_save_LIBS=$LIBS
20123LIBS="-ldld $LIBS"
20124cat >conftest.$ac_ext <<_ACEOF
20125/* confdefs.h. */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h. */
20130
20131/* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20134#ifdef __cplusplus
20135extern "C"
20136#endif
20137char shl_load ();
20138int
20139main ()
20140{
20141return shl_load ();
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext conftest$ac_exeext
20147if { (ac_try="$ac_link"
20148case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20153$as_echo "$ac_try_echo") >&5
20154 (eval "$ac_link") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest$ac_exeext && {
20164 test "$cross_compiling" = yes ||
20165 $as_test_x conftest$ac_exeext
20166 }; then
20167 ac_cv_lib_dld_shl_load=yes
20168else
20169 $as_echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_lib_dld_shl_load=no
20173fi
20174
20175rm -rf conftest.dSYM
20176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177 conftest$ac_exeext conftest.$ac_ext
20178LIBS=$ac_check_lib_save_LIBS
20179fi
20180{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20181$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20182if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
20183
20184cat >>confdefs.h <<\_ACEOF
20185#define HAVE_SHL_LOAD 1
20186_ACEOF
20187
20188 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20189 LIBADD_SHL_LOAD="-ldld"
20190fi
20191
20192fi
20193
20194
20195
20196case $host_os in
20197darwin[1567].*)
20198# We only want this for pre-Mac OS X 10.4.
20199 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20200$as_echo_n "checking for _dyld_func_lookup... " >&6; }
20201if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20202 $as_echo_n "(cached) " >&6
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20212#define _dyld_func_lookup innocuous__dyld_func_lookup
20213
20214/* System header to define __stub macros and hopefully few prototypes,
20215 which can conflict with char _dyld_func_lookup (); below.
20216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217 <limits.h> exists even on freestanding compilers. */
20218
20219#ifdef __STDC__
20220# include <limits.h>
20221#else
20222# include <assert.h>
20223#endif
20224
20225#undef _dyld_func_lookup
20226
20227/* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20230#ifdef __cplusplus
20231extern "C"
20232#endif
20233char _dyld_func_lookup ();
20234/* The GNU C library defines this for functions which it implements
20235 to always fail with ENOSYS. Some functions are actually named
20236 something starting with __ and the normal name is an alias. */
20237#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20238choke me
20239#endif
20240
20241int
20242main ()
20243{
20244return _dyld_func_lookup ();
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest.$ac_objext conftest$ac_exeext
20250if { (ac_try="$ac_link"
20251case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20256$as_echo "$ac_try_echo") >&5
20257 (eval "$ac_link") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest$ac_exeext && {
20267 test "$cross_compiling" = yes ||
20268 $as_test_x conftest$ac_exeext
20269 }; then
20270 ac_cv_func__dyld_func_lookup=yes
20271else
20272 $as_echo "$as_me: failed program was:" >&5
20273sed 's/^/| /' conftest.$ac_ext >&5
20274
20275 ac_cv_func__dyld_func_lookup=no
20276fi
20277
20278rm -rf conftest.dSYM
20279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281fi
20282{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20283$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
20284if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
20285
20286cat >>confdefs.h <<\_ACEOF
20287#define HAVE_DYLD 1
20288_ACEOF
20289
20290 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20291fi
20292
20293 ;;
20294beos*)
20295 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20296 ;;
20297cygwin* | mingw* | os2* | pw32*)
20298 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
20299$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
20300if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
20301 $as_echo_n "(cached) " >&6
20302else
20303 cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
20309#include <sys/cygwin.h>
20310
20311int
20312main ()
20313{
20314#ifndef cygwin_conv_path
20315 (void) cygwin_conv_path;
20316#endif
20317
20318 ;
20319 return 0;
20320}
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_have_decl_cygwin_conv_path=yes
20341else
20342 $as_echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_have_decl_cygwin_conv_path=no
20346fi
20347
20348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349fi
20350{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
20351$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
20352if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
20353
20354cat >>confdefs.h <<_ACEOF
20355#define HAVE_DECL_CYGWIN_CONV_PATH 1
20356_ACEOF
20357
20358
20359else
20360 cat >>confdefs.h <<_ACEOF
20361#define HAVE_DECL_CYGWIN_CONV_PATH 0
20362_ACEOF
20363
20364
20365fi
20366
20367
20368 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20369 ;;
20370esac
20371
20372{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20373$as_echo_n "checking for dld_link in -ldld... " >&6; }
20374if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20375 $as_echo_n "(cached) " >&6
20376else
20377 ac_check_lib_save_LIBS=$LIBS
20378LIBS="-ldld $LIBS"
20379cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385
20386/* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20389#ifdef __cplusplus
20390extern "C"
20391#endif
20392char dld_link ();
20393int
20394main ()
20395{
20396return dld_link ();
20397 ;
20398 return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext conftest$ac_exeext
20402if { (ac_try="$ac_link"
20403case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406esac
20407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20408$as_echo "$ac_try_echo") >&5
20409 (eval "$ac_link") 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest$ac_exeext && {
20419 test "$cross_compiling" = yes ||
20420 $as_test_x conftest$ac_exeext
20421 }; then
20422 ac_cv_lib_dld_dld_link=yes
20423else
20424 $as_echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_cv_lib_dld_dld_link=no
20428fi
20429
20430rm -rf conftest.dSYM
20431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432 conftest$ac_exeext conftest.$ac_ext
20433LIBS=$ac_check_lib_save_LIBS
20434fi
20435{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20436$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20437if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
20438
20439cat >>confdefs.h <<\_ACEOF
20440#define HAVE_DLD 1
20441_ACEOF
20442
20443 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20444fi
20445
20446
20447
20448
20449LT_DLPREOPEN=
20450if test -n "$LT_DLLOADERS"
20451then
20452 for lt_loader in $LT_DLLOADERS; do
20453 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20454 done
20455
20456cat >>confdefs.h <<\_ACEOF
20457#define HAVE_LIBDLLOADER 1
20458_ACEOF
20459
20460fi
20461
20462
20463LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20464
20465
20466ac_ext=c
20467ac_cpp='$CPP $CPPFLAGS'
20468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471
20472
20473{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20474$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20475if test "${lt_cv_sys_symbol_underscore+set}" = set; then
20476 $as_echo_n "(cached) " >&6
20477else
20478 lt_cv_sys_symbol_underscore=no
20479 cat > conftest.$ac_ext <<_LT_EOF
20480void nm_test_func(){}
20481int main(){nm_test_func;return 0;}
20482_LT_EOF
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; then
20488 # Now try to grab the symbols.
20489 ac_nlist=conftest.nm
20490 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20491 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20492 ac_status=$?
20493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && test -s "$ac_nlist"; then
20495 # See whether the symbols have a leading underscore.
20496 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20497 lt_cv_sys_symbol_underscore=yes
20498 else
20499 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20500 :
20501 else
20502 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20503 fi
20504 fi
20505 else
20506 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20507 fi
20508 else
20509 echo "configure: failed program was:" >&5
20510 cat conftest.c >&5
20511 fi
20512 rm -rf conftest*
20513
20514fi
20515{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
20516$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20517 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20518
20519
20520if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20521 if test x"$libltdl_cv_func_dlopen" = xyes ||
20522 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20523 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20524$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20525if test "${libltdl_cv_need_uscore+set}" = set; then
20526 $as_echo_n "(cached) " >&6
20527else
20528 libltdl_cv_need_uscore=unknown
20529 save_LIBS="$LIBS"
20530 LIBS="$LIBS $LIBADD_DLOPEN"
20531 if test "$cross_compiling" = yes; then :
20532 libltdl_cv_need_uscore=cross
20533else
20534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20535 lt_status=$lt_dlunknown
20536 cat > conftest.$ac_ext <<_LT_EOF
cristy736173a2009-09-20 21:18:22 +000020537#line 20537 "configure"
cristy3ed852e2009-09-05 21:47:34 +000020538#include "confdefs.h"
20539
20540#if HAVE_DLFCN_H
20541#include <dlfcn.h>
20542#endif
20543
20544#include <stdio.h>
20545
20546#ifdef RTLD_GLOBAL
20547# define LT_DLGLOBAL RTLD_GLOBAL
20548#else
20549# ifdef DL_GLOBAL
20550# define LT_DLGLOBAL DL_GLOBAL
20551# else
20552# define LT_DLGLOBAL 0
20553# endif
20554#endif
20555
20556/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20557 find out it does not work in some platform. */
20558#ifndef LT_DLLAZY_OR_NOW
20559# ifdef RTLD_LAZY
20560# define LT_DLLAZY_OR_NOW RTLD_LAZY
20561# else
20562# ifdef DL_LAZY
20563# define LT_DLLAZY_OR_NOW DL_LAZY
20564# else
20565# ifdef RTLD_NOW
20566# define LT_DLLAZY_OR_NOW RTLD_NOW
20567# else
20568# ifdef DL_NOW
20569# define LT_DLLAZY_OR_NOW DL_NOW
20570# else
20571# define LT_DLLAZY_OR_NOW 0
20572# endif
20573# endif
20574# endif
20575# endif
20576#endif
20577
20578void fnord() { int i=42;}
20579int main ()
20580{
20581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20582 int status = $lt_dlunknown;
20583
20584 if (self)
20585 {
20586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20588 /* dlclose (self); */
20589 }
20590 else
20591 puts (dlerror ());
20592
20593 return status;
20594}
20595_LT_EOF
20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597 (eval $ac_link) 2>&5
20598 ac_status=$?
20599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20601 (./conftest; exit; ) >&5 2>/dev/null
20602 lt_status=$?
20603 case x$lt_status in
20604 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20605 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20606 x$lt_dlunknown|x*) ;;
20607 esac
20608 else :
20609 # compilation failed
20610
20611 fi
20612fi
20613rm -fr conftest*
20614
20615 LIBS="$save_LIBS"
20616
20617fi
20618{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20619$as_echo "$libltdl_cv_need_uscore" >&6; }
20620 fi
20621fi
20622
20623if test x"$libltdl_cv_need_uscore" = xyes; then
20624
20625cat >>confdefs.h <<\_ACEOF
20626#define NEED_USCORE 1
20627_ACEOF
20628
20629fi
20630
20631{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20632$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20633if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
20634 $as_echo_n "(cached) " >&6
20635else
20636 # PORTME does your system automatically load deplibs for dlopen?
20637 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20638 # For now, we just catch OSes we know something about -- in the
20639 # future, we'll try test this programmatically.
20640 lt_cv_sys_dlopen_deplibs=unknown
20641 case $host_os in
20642 aix3*|aix4.1.*|aix4.2.*)
20643 # Unknown whether this is true for these versions of AIX, but
20644 # we want this `case' here to explicitly catch those versions.
20645 lt_cv_sys_dlopen_deplibs=unknown
20646 ;;
20647 aix[4-9]*)
20648 lt_cv_sys_dlopen_deplibs=yes
20649 ;;
20650 amigaos*)
20651 case $host_cpu in
20652 powerpc)
20653 lt_cv_sys_dlopen_deplibs=no
20654 ;;
20655 esac
20656 ;;
20657 darwin*)
20658 # Assuming the user has installed a libdl from somewhere, this is true
20659 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20660 lt_cv_sys_dlopen_deplibs=yes
20661 ;;
20662 freebsd* | dragonfly*)
20663 lt_cv_sys_dlopen_deplibs=yes
20664 ;;
20665 gnu* | linux* | k*bsd*-gnu)
20666 # GNU and its variants, using gnu ld.so (Glibc)
20667 lt_cv_sys_dlopen_deplibs=yes
20668 ;;
20669 hpux10*|hpux11*)
20670 lt_cv_sys_dlopen_deplibs=yes
20671 ;;
20672 interix*)
20673 lt_cv_sys_dlopen_deplibs=yes
20674 ;;
20675 irix[12345]*|irix6.[01]*)
20676 # Catch all versions of IRIX before 6.2, and indicate that we don't
20677 # know how it worked for any of those versions.
20678 lt_cv_sys_dlopen_deplibs=unknown
20679 ;;
20680 irix*)
20681 # The case above catches anything before 6.2, and it's known that
20682 # at 6.2 and later dlopen does load deplibs.
20683 lt_cv_sys_dlopen_deplibs=yes
20684 ;;
20685 netbsd*)
20686 lt_cv_sys_dlopen_deplibs=yes
20687 ;;
20688 openbsd*)
20689 lt_cv_sys_dlopen_deplibs=yes
20690 ;;
20691 osf[1234]*)
20692 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20693 # it did *not* use an RPATH in a shared library to find objects the
20694 # library depends on, so we explicitly say `no'.
20695 lt_cv_sys_dlopen_deplibs=no
20696 ;;
20697 osf5.0|osf5.0a|osf5.1)
20698 # dlopen *does* load deplibs and with the right loader patch applied
20699 # it even uses RPATH in a shared library to search for shared objects
20700 # that the library depends on, but there's no easy way to know if that
20701 # patch is installed. Since this is the case, all we can really
20702 # say is unknown -- it depends on the patch being installed. If
20703 # it is, this changes to `yes'. Without it, it would be `no'.
20704 lt_cv_sys_dlopen_deplibs=unknown
20705 ;;
20706 osf*)
20707 # the two cases above should catch all versions of osf <= 5.1. Read
20708 # the comments above for what we know about them.
20709 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20710 # is used to find them so we can finally say `yes'.
20711 lt_cv_sys_dlopen_deplibs=yes
20712 ;;
20713 qnx*)
20714 lt_cv_sys_dlopen_deplibs=yes
20715 ;;
20716 solaris*)
20717 lt_cv_sys_dlopen_deplibs=yes
20718 ;;
20719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20720 libltdl_cv_sys_dlopen_deplibs=yes
20721 ;;
20722 esac
20723
20724fi
20725{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
20726$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20727if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20728
20729cat >>confdefs.h <<\_ACEOF
20730#define LTDL_DLOPEN_DEPLIBS 1
20731_ACEOF
20732
20733fi
20734
20735:
20736
20737
20738for ac_header in argz.h
20739do
20740as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20741{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20742$as_echo_n "checking for $ac_header... " >&6; }
20743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20744 $as_echo_n "(cached) " >&6
20745else
20746 cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752$ac_includes_default
20753
20754#include <$ac_header>
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (ac_try="$ac_compile"
20758case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761esac
20762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20763$as_echo "$ac_try_echo") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20774 eval "$as_ac_Header=yes"
20775else
20776 $as_echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 eval "$as_ac_Header=no"
20780fi
20781
20782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783fi
20784ac_res=`eval 'as_val=${'$as_ac_Header'}
20785 $as_echo "$as_val"'`
20786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20787$as_echo "$ac_res" >&6; }
20788as_val=`eval 'as_val=${'$as_ac_Header'}
20789 $as_echo "$as_val"'`
20790 if test "x$as_val" = x""yes; then
20791 cat >>confdefs.h <<_ACEOF
20792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20793_ACEOF
20794
20795fi
20796
20797done
20798
20799
20800{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
20801$as_echo_n "checking for error_t... " >&6; }
20802if test "${ac_cv_type_error_t+set}" = set; then
20803 $as_echo_n "(cached) " >&6
20804else
20805 ac_cv_type_error_t=no
20806cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812#if defined(HAVE_ARGZ_H)
20813# include <argz.h>
20814#endif
20815
20816int
20817main ()
20818{
20819if (sizeof (error_t))
20820 return 0;
20821 ;
20822 return 0;
20823}
20824_ACEOF
20825rm -f conftest.$ac_objext
20826if { (ac_try="$ac_compile"
20827case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830esac
20831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20832$as_echo "$ac_try_echo") >&5
20833 (eval "$ac_compile") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest.$ac_objext; then
20843 cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849#if defined(HAVE_ARGZ_H)
20850# include <argz.h>
20851#endif
20852
20853int
20854main ()
20855{
20856if (sizeof ((error_t)))
20857 return 0;
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (ac_try="$ac_compile"
20864case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867esac
20868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20869$as_echo "$ac_try_echo") >&5
20870 (eval "$ac_compile") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest.$ac_objext; then
20880 :
20881else
20882 $as_echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 ac_cv_type_error_t=yes
20886fi
20887
20888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889else
20890 $as_echo "$as_me: failed program was:" >&5
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893
20894fi
20895
20896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897fi
20898{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20899$as_echo "$ac_cv_type_error_t" >&6; }
20900if test "x$ac_cv_type_error_t" = x""yes; then
20901
20902cat >>confdefs.h <<_ACEOF
20903#define HAVE_ERROR_T 1
20904_ACEOF
20905
20906
20907else
20908
20909cat >>confdefs.h <<\_ACEOF
20910#define error_t int
20911_ACEOF
20912
20913
20914cat >>confdefs.h <<\_ACEOF
20915#define __error_t_defined 1
20916_ACEOF
20917
20918fi
20919
20920
20921ARGZ_H=
20922
20923
20924
20925
20926
20927
20928
20929for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20930 argz_next argz_stringify
20931do
20932as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20933{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20934$as_echo_n "checking for $ac_func... " >&6; }
20935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20936 $as_echo_n "(cached) " >&6
20937else
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20946#define $ac_func innocuous_$ac_func
20947
20948/* System header to define __stub macros and hopefully few prototypes,
20949 which can conflict with char $ac_func (); below.
20950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20951 <limits.h> exists even on freestanding compilers. */
20952
20953#ifdef __STDC__
20954# include <limits.h>
20955#else
20956# include <assert.h>
20957#endif
20958
20959#undef $ac_func
20960
20961/* Override any GCC internal prototype to avoid an error.
20962 Use char because int might match the return type of a GCC
20963 builtin and then its argument prototype would still apply. */
20964#ifdef __cplusplus
20965extern "C"
20966#endif
20967char $ac_func ();
20968/* The GNU C library defines this for functions which it implements
20969 to always fail with ENOSYS. Some functions are actually named
20970 something starting with __ and the normal name is an alias. */
20971#if defined __stub_$ac_func || defined __stub___$ac_func
20972choke me
20973#endif
20974
20975int
20976main ()
20977{
20978return $ac_func ();
20979 ;
20980 return 0;
20981}
20982_ACEOF
20983rm -f conftest.$ac_objext conftest$ac_exeext
20984if { (ac_try="$ac_link"
20985case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988esac
20989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20990$as_echo "$ac_try_echo") >&5
20991 (eval "$ac_link") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest$ac_exeext && {
21001 test "$cross_compiling" = yes ||
21002 $as_test_x conftest$ac_exeext
21003 }; then
21004 eval "$as_ac_var=yes"
21005else
21006 $as_echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009 eval "$as_ac_var=no"
21010fi
21011
21012rm -rf conftest.dSYM
21013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21014 conftest$ac_exeext conftest.$ac_ext
21015fi
21016ac_res=`eval 'as_val=${'$as_ac_var'}
21017 $as_echo "$as_val"'`
21018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21019$as_echo "$ac_res" >&6; }
21020as_val=`eval 'as_val=${'$as_ac_var'}
21021 $as_echo "$as_val"'`
21022 if test "x$as_val" = x""yes; then
21023 cat >>confdefs.h <<_ACEOF
21024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21025_ACEOF
21026
21027else
21028 ARGZ_H=argz.h;
21029
21030 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21031
21032fi
21033done
21034
21035
21036if test -z "$ARGZ_H"; then
21037 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
21038$as_echo_n "checking if argz actually works... " >&6; }
21039if test "${lt_cv_sys_argz_works+set}" = set; then
21040 $as_echo_n "(cached) " >&6
21041else
21042 case $host_os in #(
21043 *cygwin*)
21044 lt_cv_sys_argz_works=no
21045 if test "$cross_compiling" != no; then
21046 lt_cv_sys_argz_works="guessing no"
21047 else
21048 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21049 save_IFS=$IFS
21050 IFS=-.
21051 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21052 IFS=$save_IFS
21053 lt_os_major=${2-0}
21054 lt_os_minor=${3-0}
21055 lt_os_micro=${4-0}
21056 if test "$lt_os_major" -gt 1 \
21057 || { test "$lt_os_major" -eq 1 \
21058 && { test "$lt_os_minor" -gt 5 \
21059 || { test "$lt_os_minor" -eq 5 \
21060 && test "$lt_os_micro" -gt 24; }; }; }; then
21061 lt_cv_sys_argz_works=yes
21062 fi
21063 fi
21064 ;; #(
21065 *) lt_cv_sys_argz_works=yes ;;
21066 esac
21067fi
21068{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
21069$as_echo "$lt_cv_sys_argz_works" >&6; }
21070 if test $lt_cv_sys_argz_works = yes; then
21071
21072cat >>confdefs.h <<\_ACEOF
21073#define HAVE_WORKING_ARGZ 1
21074_ACEOF
21075
21076else
21077 ARGZ_H=argz.h
21078
21079
21080 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21081
21082fi
21083
21084fi
21085
21086
21087
21088
21089{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
21090$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
21091if test "${libltdl_cv_preloaded_symbols+set}" = set; then
21092 $as_echo_n "(cached) " >&6
21093else
21094 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21095 libltdl_cv_preloaded_symbols=yes
21096 else
21097 libltdl_cv_preloaded_symbols=no
21098 fi
21099
21100fi
21101{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
21102$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21103if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21104
21105cat >>confdefs.h <<\_ACEOF
21106#define HAVE_PRELOADED_SYMBOLS 1
21107_ACEOF
21108
21109fi
21110
21111# Set options
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123# Check whether --with-included_ltdl was given.
21124if test "${with_included_ltdl+set}" = set; then
21125 withval=$with_included_ltdl;
21126fi
21127
21128
21129if test "x$with_included_ltdl" != xyes; then
21130 # We are not being forced to use the included libltdl sources, so
21131 # decide whether there is a useful installed version we can use.
21132 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
21133$as_echo_n "checking for ltdl.h... " >&6; }
21134if test "${ac_cv_header_ltdl_h+set}" = set; then
21135 $as_echo_n "(cached) " >&6
21136else
21137 cat >conftest.$ac_ext <<_ACEOF
21138/* confdefs.h. */
21139_ACEOF
21140cat confdefs.h >>conftest.$ac_ext
21141cat >>conftest.$ac_ext <<_ACEOF
21142/* end confdefs.h. */
21143$ac_includes_default
21144
21145
21146#include <ltdl.h>
21147_ACEOF
21148rm -f conftest.$ac_objext
21149if { (ac_try="$ac_compile"
21150case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153esac
21154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21155$as_echo "$ac_try_echo") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_cv_header_ltdl_h=yes
21167else
21168 $as_echo "$as_me: failed program was:" >&5
21169sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ac_cv_header_ltdl_h=no
21172fi
21173
21174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175fi
21176{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
21177$as_echo "$ac_cv_header_ltdl_h" >&6; }
21178if test "x$ac_cv_header_ltdl_h" = x""yes; then
21179 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
21180$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
21181if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
21182 $as_echo_n "(cached) " >&6
21183else
21184 cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190$ac_includes_default
21191 #include <ltdl.h>
21192
21193int
21194main ()
21195{
21196#ifndef lt_dlinterface_register
21197 (void) lt_dlinterface_register;
21198#endif
21199
21200 ;
21201 return 0;
21202}
21203_ACEOF
21204rm -f conftest.$ac_objext
21205if { (ac_try="$ac_compile"
21206case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209esac
21210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21211$as_echo "$ac_try_echo") >&5
21212 (eval "$ac_compile") 2>conftest.er1
21213 ac_status=$?
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
21216 cat conftest.err >&5
21217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest.$ac_objext; then
21222 ac_cv_have_decl_lt_dlinterface_register=yes
21223else
21224 $as_echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227 ac_cv_have_decl_lt_dlinterface_register=no
21228fi
21229
21230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231fi
21232{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
21233$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
21234if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
21235 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
21236$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
21237if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
21238 $as_echo_n "(cached) " >&6
21239else
21240 ac_check_lib_save_LIBS=$LIBS
21241LIBS="-lltdl $LIBS"
21242cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h. */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h. */
21248
21249/* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21252#ifdef __cplusplus
21253extern "C"
21254#endif
21255char lt_dladvise_preload ();
21256int
21257main ()
21258{
21259return lt_dladvise_preload ();
21260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext conftest$ac_exeext
21265if { (ac_try="$ac_link"
21266case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21269esac
21270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21271$as_echo "$ac_try_echo") >&5
21272 (eval "$ac_link") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest$ac_exeext && {
21282 test "$cross_compiling" = yes ||
21283 $as_test_x conftest$ac_exeext
21284 }; then
21285 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21286else
21287 $as_echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_lib_ltdl_lt_dladvise_preload=no
21291fi
21292
21293rm -rf conftest.dSYM
21294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21295 conftest$ac_exeext conftest.$ac_ext
21296LIBS=$ac_check_lib_save_LIBS
21297fi
21298{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21299$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21300if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
21301 with_included_ltdl=no
21302else
21303 with_included_ltdl=yes
21304fi
21305
21306else
21307 with_included_ltdl=yes
21308fi
21309
21310else
21311 with_included_ltdl=yes
21312fi
21313
21314
21315fi
21316
21317
21318
21319
21320# Check whether --with-ltdl_include was given.
21321if test "${with_ltdl_include+set}" = set; then
21322 withval=$with_ltdl_include;
21323fi
21324
21325
21326if test -n "$with_ltdl_include"; then
21327 if test -f "$with_ltdl_include/ltdl.h"; then :
21328 else
21329 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
21330$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
21331 { (exit 1); exit 1; }; }
21332 fi
21333else
21334 with_ltdl_include=no
21335fi
21336
21337
21338# Check whether --with-ltdl_lib was given.
21339if test "${with_ltdl_lib+set}" = set; then
21340 withval=$with_ltdl_lib;
21341fi
21342
21343
21344if test -n "$with_ltdl_lib"; then
21345 if test -f "$with_ltdl_lib/libltdl.la"; then :
21346 else
21347 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
21348$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
21349 { (exit 1); exit 1; }; }
21350 fi
21351else
21352 with_ltdl_lib=no
21353fi
21354
21355case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21356 ,yes,no,no,)
21357 case $enable_ltdl_convenience in
21358 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
21359$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
21360 { (exit 1); exit 1; }; } ;;
21361 "") enable_ltdl_convenience=yes
21362 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21363esac
21364LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21365LTDLDEPS=$LIBLTDL
21366LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21367
21368
21369
21370
21371
21372# For backwards non-gettext consistent compatibility...
21373INCLTDL="$LTDLINCL"
21374
21375
21376 ;;
21377 ,no,no,no,)
21378 # If the included ltdl is not to be used, then use the
21379 # preinstalled libltdl we found.
21380
21381cat >>confdefs.h <<\_ACEOF
21382#define HAVE_LTDL 1
21383_ACEOF
21384
21385 LIBLTDL=-lltdl
21386 LTDLDEPS=
21387 LTDLINCL=
21388 ;;
21389 ,no*,no,*)
21390 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
21391$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
21392 { (exit 1); exit 1; }; }
21393 ;;
21394 *) with_included_ltdl=no
21395 LIBLTDL="-L$with_ltdl_lib -lltdl"
21396 LTDLDEPS=
21397 LTDLINCL="-I$with_ltdl_include"
21398 ;;
21399esac
21400INCLTDL="$LTDLINCL"
21401
21402# Report our decision...
21403{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
21404$as_echo_n "checking where to find libltdl headers... " >&6; }
21405{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
21406$as_echo "$LTDLINCL" >&6; }
21407{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
21408$as_echo_n "checking where to find libltdl library... " >&6; }
21409{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
21410$as_echo "$LIBLTDL" >&6; }
21411
21412
21413
21414# Check whether --enable-ltdl-install was given.
21415if test "${enable_ltdl_install+set}" = set; then
21416 enableval=$enable_ltdl_install;
21417fi
21418
21419
21420case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21421 *yes*) ;;
21422 *) enable_ltdl_convenience=yes ;;
21423esac
21424
21425 if test x"${enable_ltdl_install-no}" != xno; then
21426 INSTALL_LTDL_TRUE=
21427 INSTALL_LTDL_FALSE='#'
21428else
21429 INSTALL_LTDL_TRUE='#'
21430 INSTALL_LTDL_FALSE=
21431fi
21432
21433 if test x"${enable_ltdl_convenience-no}" != xno; then
21434 CONVENIENCE_LTDL_TRUE=
21435 CONVENIENCE_LTDL_FALSE='#'
21436else
21437 CONVENIENCE_LTDL_TRUE='#'
21438 CONVENIENCE_LTDL_FALSE=
21439fi
21440
21441
21442
21443
21444
21445
21446
21447# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21448# the user used. This is so that ltdl.h can pick up the parent projects
21449# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21450# definitions required by ltdl.c.
21451# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21462do
21463as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21464{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21465$as_echo_n "checking for $ac_header... " >&6; }
21466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21467 $as_echo_n "(cached) " >&6
21468else
21469 cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h. */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */
21475$ac_includes_default
21476
21477#include <$ac_header>
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (ac_try="$ac_compile"
21481case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21484esac
21485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21486$as_echo "$ac_try_echo") >&5
21487 (eval "$ac_compile") 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest.$ac_objext; then
21497 eval "$as_ac_Header=yes"
21498else
21499 $as_echo "$as_me: failed program was:" >&5
21500sed 's/^/| /' conftest.$ac_ext >&5
21501
21502 eval "$as_ac_Header=no"
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506fi
21507ac_res=`eval 'as_val=${'$as_ac_Header'}
21508 $as_echo "$as_val"'`
21509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21510$as_echo "$ac_res" >&6; }
21511as_val=`eval 'as_val=${'$as_ac_Header'}
21512 $as_echo "$as_val"'`
21513 if test "x$as_val" = x""yes; then
21514 cat >>confdefs.h <<_ACEOF
21515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21516_ACEOF
21517
21518fi
21519
21520done
21521
21522
21523
21524
21525
21526for ac_func in closedir opendir readdir
21527do
21528as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21529{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21530$as_echo_n "checking for $ac_func... " >&6; }
21531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21532 $as_echo_n "(cached) " >&6
21533else
21534 cat >conftest.$ac_ext <<_ACEOF
21535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
21540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21542#define $ac_func innocuous_$ac_func
21543
21544/* System header to define __stub macros and hopefully few prototypes,
21545 which can conflict with char $ac_func (); below.
21546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21547 <limits.h> exists even on freestanding compilers. */
21548
21549#ifdef __STDC__
21550# include <limits.h>
21551#else
21552# include <assert.h>
21553#endif
21554
21555#undef $ac_func
21556
21557/* Override any GCC internal prototype to avoid an error.
21558 Use char because int might match the return type of a GCC
21559 builtin and then its argument prototype would still apply. */
21560#ifdef __cplusplus
21561extern "C"
21562#endif
21563char $ac_func ();
21564/* The GNU C library defines this for functions which it implements
21565 to always fail with ENOSYS. Some functions are actually named
21566 something starting with __ and the normal name is an alias. */
21567#if defined __stub_$ac_func || defined __stub___$ac_func
21568choke me
21569#endif
21570
21571int
21572main ()
21573{
21574return $ac_func ();
21575 ;
21576 return 0;
21577}
21578_ACEOF
21579rm -f conftest.$ac_objext conftest$ac_exeext
21580if { (ac_try="$ac_link"
21581case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584esac
21585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21586$as_echo "$ac_try_echo") >&5
21587 (eval "$ac_link") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest$ac_exeext && {
21597 test "$cross_compiling" = yes ||
21598 $as_test_x conftest$ac_exeext
21599 }; then
21600 eval "$as_ac_var=yes"
21601else
21602 $as_echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605 eval "$as_ac_var=no"
21606fi
21607
21608rm -rf conftest.dSYM
21609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21610 conftest$ac_exeext conftest.$ac_ext
21611fi
21612ac_res=`eval 'as_val=${'$as_ac_var'}
21613 $as_echo "$as_val"'`
21614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21615$as_echo "$ac_res" >&6; }
21616as_val=`eval 'as_val=${'$as_ac_var'}
21617 $as_echo "$as_val"'`
21618 if test "x$as_val" = x""yes; then
21619 cat >>confdefs.h <<_ACEOF
21620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21621_ACEOF
21622
21623else
21624
21625
21626 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21627
21628fi
21629done
21630
21631
21632
21633for ac_func in strlcat strlcpy
21634do
21635as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21637$as_echo_n "checking for $ac_func... " >&6; }
21638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21639 $as_echo_n "(cached) " >&6
21640else
21641 cat >conftest.$ac_ext <<_ACEOF
21642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
21647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21649#define $ac_func innocuous_$ac_func
21650
21651/* System header to define __stub macros and hopefully few prototypes,
21652 which can conflict with char $ac_func (); below.
21653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21654 <limits.h> exists even on freestanding compilers. */
21655
21656#ifdef __STDC__
21657# include <limits.h>
21658#else
21659# include <assert.h>
21660#endif
21661
21662#undef $ac_func
21663
21664/* Override any GCC internal prototype to avoid an error.
21665 Use char because int might match the return type of a GCC
21666 builtin and then its argument prototype would still apply. */
21667#ifdef __cplusplus
21668extern "C"
21669#endif
21670char $ac_func ();
21671/* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674#if defined __stub_$ac_func || defined __stub___$ac_func
21675choke me
21676#endif
21677
21678int
21679main ()
21680{
21681return $ac_func ();
21682 ;
21683 return 0;
21684}
21685_ACEOF
21686rm -f conftest.$ac_objext conftest$ac_exeext
21687if { (ac_try="$ac_link"
21688case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691esac
21692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693$as_echo "$ac_try_echo") >&5
21694 (eval "$ac_link") 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext && {
21704 test "$cross_compiling" = yes ||
21705 $as_test_x conftest$ac_exeext
21706 }; then
21707 eval "$as_ac_var=yes"
21708else
21709 $as_echo "$as_me: failed program was:" >&5
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
21712 eval "$as_ac_var=no"
21713fi
21714
21715rm -rf conftest.dSYM
21716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21718fi
21719ac_res=`eval 'as_val=${'$as_ac_var'}
21720 $as_echo "$as_val"'`
21721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21722$as_echo "$ac_res" >&6; }
21723as_val=`eval 'as_val=${'$as_ac_var'}
21724 $as_echo "$as_val"'`
21725 if test "x$as_val" = x""yes; then
21726 cat >>confdefs.h <<_ACEOF
21727#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728_ACEOF
21729
21730else
21731
21732
21733 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21734
21735fi
21736done
21737
21738
21739
21740cat >>confdefs.h <<_ACEOF
21741#define LT_LIBEXT "$libext"
21742_ACEOF
21743
21744
21745name=ltdl
21746LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
21747
21748
21749
21750
21751
21752
21753
21754
21755# Only expand once:
21756
21757
21758
21759# Check to see if building shared libraries
21760libtool_build_shared_libs='no'
21761if test "$enable_shared" = 'yes'; then
21762 libtool_build_shared_libs='yes'
21763fi
21764
21765# Check to see if building static libraries
21766libtool_build_static_libs='no'
21767if test "$enable_static" = 'yes'; then
21768 libtool_build_static_libs='yes'
21769fi
21770
21771# MinGW and Cygwin can't build C++ DLLs which support exceptions.
21772if test "${StaticCplusPlusLibraries}" = 'yes'; then
21773 LTCXXLIBOPTS='--static'
21774
21775fi
21776
21777#
21778# Enable support for building loadable modules
21779#
21780
21781# Check whether --with-modules was given.
21782if test "${with_modules+set}" = set; then
21783 withval=$with_modules; with_modules=$withval
21784else
21785 with_modules=$libtool_build_shared_libs
21786fi
21787
21788
21789# Only allow building loadable modules if we are building shared libraries
21790if test "$with_modules" != 'no' ; then
21791 if test "$libtool_build_shared_libs" = 'no'; then
21792 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21793$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21794 with_modules='no'
21795 fi
21796fi
21797if test "$with_modules" != 'no'; then
21798
21799cat >>confdefs.h <<\_ACEOF
21800#define BUILD_MODULES 1
21801_ACEOF
21802
21803fi
21804 if test "$with_modules" != 'no'; then
21805 WITH_MODULES_TRUE=
21806 WITH_MODULES_FALSE='#'
21807else
21808 WITH_MODULES_TRUE='#'
21809 WITH_MODULES_FALSE=
21810fi
21811
21812
21813# Enable building/use of libltdl if we are building shared libraries regardless
21814# of whether modules are built or not.
21815with_ltdl='no'
21816if test "$libtool_build_shared_libs" != 'no'; then
21817 with_ltdl='yes'
21818fi
21819
21820 if test "$with_ltdl" != 'no'; then
21821 WITH_LTDL_TRUE=
21822 WITH_LTDL_FALSE='#'
21823else
21824 WITH_LTDL_TRUE='#'
21825 WITH_LTDL_FALSE=
21826fi
21827
21828if test "$with_ltdl" != 'no'; then
21829
21830cat >>confdefs.h <<\_ACEOF
21831#define LTDL_DELEGATE 1
21832_ACEOF
21833
21834
21835 # Set DLLDFLAGS
21836 if test X"$enable_shared" = Xyes; then
21837 DLLDFLAGS=-export-dynamic
21838
21839 fi
21840fi
21841
21842# Enable build using delegate libraries built in subdirectories rather than installed
21843# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21844# Check whether --enable-delegate-build was given.
21845if test "${enable_delegate_build+set}" = set; then
21846 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21847else
21848 enable_delegate_build='no'
21849fi
21850
21851
21852# Check whether --enable-deprecated was given.
21853if test "${enable_deprecated+set}" = set; then
21854 enableval=$enable_deprecated; enable_deprecated=$enableval
21855else
21856 enable_deprecated='no'
21857fi
21858
21859
21860if test "$enable_deprecated" = 'yes'; then
21861
21862cat >>confdefs.h <<\_ACEOF
21863#define EXCLUDE_DEPRECATED 1
21864_ACEOF
21865
21866else
21867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21868fi
21869
21870# Build a version of ImageMagick which operates uninstalled.
21871# Used to build distributions located via MAGICK_HOME / executable path
21872# Check whether --enable-installed was given.
21873if test "${enable_installed+set}" = set; then
21874 enableval=$enable_installed; enable_installed=$enableval
21875else
21876 enable_installed='yes'
21877fi
21878
21879
21880if test "$enable_installed" = 'yes'; then
21881
21882cat >>confdefs.h <<\_ACEOF
21883#define INSTALLED_SUPPORT 1
21884_ACEOF
21885
21886else
21887 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21888fi
21889
21890# Permit enciphering and deciphering image pixels.
21891# Check whether --enable-cipher was given.
21892if test "${enable_cipher+set}" = set; then
21893 enableval=$enable_cipher; enable_cipher=$enableval
21894else
21895 enable_cipher='yes'
21896fi
21897
21898
21899if test "$enable_cipher" = 'yes'; then
21900
21901cat >>confdefs.h <<\_ACEOF
21902#define CIPHER_SUPPORT 1
21903_ACEOF
21904
21905fi
21906
21907# Build an embeddable version of ImageMagick.
21908# Check whether --enable-embeddable was given.
21909if test "${enable_embeddable+set}" = set; then
21910 enableval=$enable_embeddable; enable_embeddable=$enableval
21911else
21912 enable_embeddable='no'
21913fi
21914
21915
21916if test "$enable_embeddable" = 'yes'; then
21917
21918cat >>confdefs.h <<\_ACEOF
21919#define EMBEDDABLE_SUPPORT 1
21920_ACEOF
21921
21922fi
21923
21924# Build a high dynamic range version of ImageMagick.
21925# Check whether --enable-hdri was given.
21926if test "${enable_hdri+set}" = set; then
21927 enableval=$enable_hdri; enable_hdri=$enableval
21928else
21929 enable_hdri='no'
21930fi
21931
21932
21933MAGICK_HDRI=""
21934if test "$enable_hdri" = 'yes'; then
21935 MAGICK_HDRI="HDRI"
21936
21937cat >>confdefs.h <<\_ACEOF
21938#define HDRI_SUPPORT 1
21939_ACEOF
21940
21941fi
21942
21943# Enable verbose output from libtool (enable libtool's default)
21944# Check whether --enable-libtool-verbose was given.
21945if test "${enable_libtool_verbose+set}" = set; then
21946 enableval=$enable_libtool_verbose; enable_libtool_verbose=$enableval
21947else
21948 enable_libtool_verbose='no'
21949fi
21950
21951
21952if test "$enable_libtool_verbose" = 'no'; then
21953 LIBTOOL="$LIBTOOL --silent"
21954fi
21955
21956# Build a version of ImageMagick with assert statements.
21957# Check whether --enable-assert was given.
21958if test "${enable_assert+set}" = set; then
21959 enableval=$enable_assert; enable_assert=$enableval
21960else
21961 enable_assert='yes'
21962fi
21963
21964
21965if test "$enable_assert" = 'no'; then
21966
21967cat >>confdefs.h <<\_ACEOF
21968#define NDEBUG 1
21969_ACEOF
21970
21971fi
21972
21973# Add configure option --enable-maintainer-mode which enables dependency
21974# checking and generation useful to package maintainers. This is made an
21975# option to avoid confusing end users.
21976
21977{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21978$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21979 # Check whether --enable-maintainer-mode was given.
21980if test "${enable_maintainer_mode+set}" = set; then
21981 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21982else
21983 USE_MAINTAINER_MODE=no
21984fi
21985
21986 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21987$as_echo "$USE_MAINTAINER_MODE" >&6; }
21988 if test $USE_MAINTAINER_MODE = yes; then
21989 MAINTAINER_MODE_TRUE=
21990 MAINTAINER_MODE_FALSE='#'
21991else
21992 MAINTAINER_MODE_TRUE='#'
21993 MAINTAINER_MODE_FALSE=
21994fi
21995
21996 MAINT=$MAINTAINER_MODE_TRUE
21997
21998
21999
22000
22001# Enable ccmalloc memory debugging support
22002# Check whether --enable-ccmalloc was given.
22003if test "${enable_ccmalloc+set}" = set; then
22004 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22005else
22006 enable_ccmalloc='no'
22007fi
22008
22009
22010# Enable Electric Fence memory debugging support
22011# Check whether --enable-efence was given.
22012if test "${enable_efence+set}" = set; then
22013 enableval=$enable_efence; enable_efence=$enableval
22014else
22015 enable_efence='no'
22016fi
22017
22018
22019# Enable prof-based profiling support
22020# Check whether --enable-prof was given.
22021if test "${enable_prof+set}" = set; then
22022 enableval=$enable_prof; enable_prof=$enableval
22023else
22024 enable_prof='no'
22025fi
22026
22027
22028# Enable gprof-based profiling support
22029# Check whether --enable-gprof was given.
22030if test "${enable_gprof+set}" = set; then
22031 enableval=$enable_gprof; enable_gprof=$enableval
22032else
22033 enable_gprof='no'
22034fi
22035
22036
22037# Enable gcov-based profiling support
22038# Check whether --enable-gcov was given.
22039if test "${enable_gcov+set}" = set; then
22040 enableval=$enable_gcov; enable_gcov=$enableval
22041else
22042 enable_gcov='no'
22043fi
22044
22045
22046enable_profiling='no'
22047if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22048 enable_profiling='yes'
22049 if test "$libtool_build_shared_libs" = 'yes'; then
22050 echo "Warning: Can not profile code using shared libraries"
22051 fi
22052fi
22053
22054# Magick API method prefix
22055
22056# Check whether --with-method-prefix was given.
22057if test "${with_method_prefix+set}" = set; then
22058 withval=$with_method_prefix; with_method_prefix=$enableval
22059else
22060 with_method_prefix=''
22061fi
22062
22063
22064if test "$with_method_prefix" != ''; then
22065
22066cat >>confdefs.h <<_ACEOF
22067#define NAMESPACE_PREFIX $with_method_prefix
22068_ACEOF
22069
22070fi
22071
22072# Number of bits in a Quantum
22073
22074# Check whether --with-quantum-depth was given.
22075if test "${with_quantum_depth+set}" = set; then
22076 withval=$with_quantum_depth; with_quantum_depth=$withval
22077else
22078 with_quantum_depth=16
22079fi
22080
22081
22082if test "$with_quantum_depth" != '8'; then
22083 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22084fi
22085
22086case "${with_quantum_depth}" in
22087 8 ) ;;
22088 16 ) ;;
22089 32 ) ;;
22090 64 ) ;;
22091 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
22092$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
22093 { (exit 16); exit 16; }; } ;;
22094esac
22095QUANTUM_DEPTH="$with_quantum_depth"
22096
22097cat >>confdefs.h <<_ACEOF
22098#define QUANTUM_DEPTH $QUANTUM_DEPTH
22099_ACEOF
22100
22101
22102# Set pixel cache threshold
22103
22104# Check whether --with-cache was given.
22105if test "${with_cache+set}" = set; then
22106 withval=$with_cache; with_cache=$withval
22107else
22108 with_cache=''
22109fi
22110
22111
22112if test "$with_cache" != ''; then
22113
22114cat >>confdefs.h <<_ACEOF
22115#define PixelCacheThreshold $with_cache
22116_ACEOF
22117
22118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22119fi
22120
22121# Disable/Enable support for full delegate paths
22122
22123# Check whether --with-frozenpaths was given.
22124if test "${with_frozenpaths+set}" = set; then
22125 withval=$with_frozenpaths; with_frozenpaths=$withval
22126else
22127 with_frozenpaths='no'
22128fi
22129
22130
22131# Enable build/install of Magick++
22132
22133# Check whether --with-magick-plus-plus was given.
22134if test "${with_magick_plus_plus+set}" = set; then
22135 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22136else
22137 with_magick_plus_plus='yes'
22138fi
22139
22140
22141# Disable build/install of PerlMagick.
22142
22143# Check whether --with-perl was given.
22144if test "${with_perl+set}" = set; then
22145 withval=$with_perl; with_perl=$withval
22146else
22147 with_perl=$libtool_build_shared_libs
22148fi
22149
22150
22151# Options to pass when configuring PerlMagick
22152
22153# Check whether --with-perl-options was given.
22154if test "${with_perl_options+set}" = set; then
22155 withval=$with_perl_options;
22156fi
22157
22158
22159PERL_MAKE_OPTIONS=$with_perl_options
22160
22161
22162
22163# Enable umem, object-caching memory allocation library.
22164
22165# Check whether --with-umem was given.
22166if test "${with_umem+set}" = set; then
22167 withval=$with_umem; with_umem=$withval
22168else
22169 with_umem='no'
22170fi
22171
22172if test "$with_umem" != 'yes' ; then
22173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22174fi
22175
22176#
22177# Specify path to shared libstdc++ if not in normal location
22178#
22179
22180# Check whether --with-libstdc was given.
22181if test "${with_libstdc+set}" = set; then
22182 withval=$with_libstdc; with_libstdc=$withval
22183else
22184 with_libstdc=''
22185fi
22186
22187
22188if test "$with_libstdc" != ''; then
22189 if test -d "$with_libstdc"; then
22190 LIBSTDCLDFLAGS="-L$with_libstdc"
22191 fi
22192fi
22193
22194
22195# Does gcc required -traditional?
22196if test $ac_cv_c_compiler_gnu = yes; then
22197 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22198$as_echo_n "checking whether $CC needs -traditional... " >&6; }
22199if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22200 $as_echo_n "(cached) " >&6
22201else
22202 ac_pattern="Autoconf.*'x'"
22203 cat >conftest.$ac_ext <<_ACEOF
22204/* confdefs.h. */
22205_ACEOF
22206cat confdefs.h >>conftest.$ac_ext
22207cat >>conftest.$ac_ext <<_ACEOF
22208/* end confdefs.h. */
22209#include <sgtty.h>
22210Autoconf TIOCGETP
22211_ACEOF
22212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22213 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22214 ac_cv_prog_gcc_traditional=yes
22215else
22216 ac_cv_prog_gcc_traditional=no
22217fi
22218rm -f conftest*
22219
22220
22221 if test $ac_cv_prog_gcc_traditional = no; then
22222 cat >conftest.$ac_ext <<_ACEOF
22223/* confdefs.h. */
22224_ACEOF
22225cat confdefs.h >>conftest.$ac_ext
22226cat >>conftest.$ac_ext <<_ACEOF
22227/* end confdefs.h. */
22228#include <termio.h>
22229Autoconf TCGETA
22230_ACEOF
22231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22232 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22233 ac_cv_prog_gcc_traditional=yes
22234fi
22235rm -f conftest*
22236
22237 fi
22238fi
22239{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22240$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22241 if test $ac_cv_prog_gcc_traditional = yes; then
22242 CC="$CC -traditional"
22243 fi
22244fi
22245
22246
22247########
22248#
22249# Set defines required to build DLLs and modules using MinGW
22250#
22251########
22252# These options are set for multi-thread DLL module build
22253# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22254# module: _DLL
22255# executable/Magick++: _DLL _MAGICKMOD_
22256MODULE_EXTRA_CPPFLAGS=''
22257LIBRARY_EXTRA_CPPFLAGS=''
22258if test "${native_win32_build}" = 'yes'; then
22259 if test "${libtool_build_shared_libs}" = 'yes'; then
22260 CPPFLAGS="$CPPFLAGS -D_DLL"
22261 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22262 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22263 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22264 if test "$with_modules" = 'yes'; then
22265 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22266 else
22267 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22268 fi
22269 else
22270 CPPFLAGS="$CPPFLAGS -D_LIB"
22271 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22272 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22273 fi
22274 if test "$with_threads" = 'yes'; then
22275 CPPFLAGS="$CPPFLAGS -D_MT"
22276 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22277 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22278 fi
22279fi
22280
22281
22282
22283# Check standard headers
22284{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22285$as_echo_n "checking for ANSI C header files... " >&6; }
22286if test "${ac_cv_header_stdc+set}" = set; then
22287 $as_echo_n "(cached) " >&6
22288else
22289 cat >conftest.$ac_ext <<_ACEOF
22290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
22295#include <stdlib.h>
22296#include <stdarg.h>
22297#include <string.h>
22298#include <float.h>
22299
22300int
22301main ()
22302{
22303
22304 ;
22305 return 0;
22306}
22307_ACEOF
22308rm -f conftest.$ac_objext
22309if { (ac_try="$ac_compile"
22310case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22313esac
22314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22315$as_echo "$ac_try_echo") >&5
22316 (eval "$ac_compile") 2>conftest.er1
22317 ac_status=$?
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
22321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest.$ac_objext; then
22326 ac_cv_header_stdc=yes
22327else
22328 $as_echo "$as_me: failed program was:" >&5
22329sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 ac_cv_header_stdc=no
22332fi
22333
22334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22335
22336if test $ac_cv_header_stdc = yes; then
22337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22338 cat >conftest.$ac_ext <<_ACEOF
22339/* confdefs.h. */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h. */
22344#include <string.h>
22345
22346_ACEOF
22347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22348 $EGREP "memchr" >/dev/null 2>&1; then
22349 :
22350else
22351 ac_cv_header_stdc=no
22352fi
22353rm -f conftest*
22354
22355fi
22356
22357if test $ac_cv_header_stdc = yes; then
22358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22359 cat >conftest.$ac_ext <<_ACEOF
22360/* confdefs.h. */
22361_ACEOF
22362cat confdefs.h >>conftest.$ac_ext
22363cat >>conftest.$ac_ext <<_ACEOF
22364/* end confdefs.h. */
22365#include <stdlib.h>
22366
22367_ACEOF
22368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22369 $EGREP "free" >/dev/null 2>&1; then
22370 :
22371else
22372 ac_cv_header_stdc=no
22373fi
22374rm -f conftest*
22375
22376fi
22377
22378if test $ac_cv_header_stdc = yes; then
22379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22380 if test "$cross_compiling" = yes; then
22381 :
22382else
22383 cat >conftest.$ac_ext <<_ACEOF
22384/* confdefs.h. */
22385_ACEOF
22386cat confdefs.h >>conftest.$ac_ext
22387cat >>conftest.$ac_ext <<_ACEOF
22388/* end confdefs.h. */
22389#include <ctype.h>
22390#include <stdlib.h>
22391#if ((' ' & 0x0FF) == 0x020)
22392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22394#else
22395# define ISLOWER(c) \
22396 (('a' <= (c) && (c) <= 'i') \
22397 || ('j' <= (c) && (c) <= 'r') \
22398 || ('s' <= (c) && (c) <= 'z'))
22399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22400#endif
22401
22402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22403int
22404main ()
22405{
22406 int i;
22407 for (i = 0; i < 256; i++)
22408 if (XOR (islower (i), ISLOWER (i))
22409 || toupper (i) != TOUPPER (i))
22410 return 2;
22411 return 0;
22412}
22413_ACEOF
22414rm -f conftest$ac_exeext
22415if { (ac_try="$ac_link"
22416case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22419esac
22420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421$as_echo "$ac_try_echo") >&5
22422 (eval "$ac_link") 2>&5
22423 ac_status=$?
22424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22426 { (case "(($ac_try" in
22427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22428 *) ac_try_echo=$ac_try;;
22429esac
22430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22431$as_echo "$ac_try_echo") >&5
22432 (eval "$ac_try") 2>&5
22433 ac_status=$?
22434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22436 :
22437else
22438 $as_echo "$as_me: program exited with status $ac_status" >&5
22439$as_echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442( exit $ac_status )
22443ac_cv_header_stdc=no
22444fi
22445rm -rf conftest.dSYM
22446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22447fi
22448
22449
22450fi
22451fi
22452{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22453$as_echo "$ac_cv_header_stdc" >&6; }
22454if test $ac_cv_header_stdc = yes; then
22455
22456cat >>confdefs.h <<\_ACEOF
22457#define STDC_HEADERS 1
22458_ACEOF
22459
22460fi
22461
22462if ! test x"$ac_cv_header_stdc" = x"yes"; then
22463 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
22464 header files. Compilation cannot proceed. Please install the ANSI C
22465 headers and rerun this script." >&5
22466$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22467 header files. Compilation cannot proceed. Please install the ANSI C
22468 headers and rerun this script." >&2;};
22469fi
22470
22471
22472
22473
22474
22475ac_header_dirent=no
22476for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22477 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22478{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22479$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22481 $as_echo_n "(cached) " >&6
22482else
22483 cat >conftest.$ac_ext <<_ACEOF
22484/* confdefs.h. */
22485_ACEOF
22486cat confdefs.h >>conftest.$ac_ext
22487cat >>conftest.$ac_ext <<_ACEOF
22488/* end confdefs.h. */
22489#include <sys/types.h>
22490#include <$ac_hdr>
22491
22492int
22493main ()
22494{
22495if ((DIR *) 0)
22496return 0;
22497 ;
22498 return 0;
22499}
22500_ACEOF
22501rm -f conftest.$ac_objext
22502if { (ac_try="$ac_compile"
22503case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506esac
22507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22508$as_echo "$ac_try_echo") >&5
22509 (eval "$ac_compile") 2>conftest.er1
22510 ac_status=$?
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
22514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } && {
22516 test -z "$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 } && test -s conftest.$ac_objext; then
22519 eval "$as_ac_Header=yes"
22520else
22521 $as_echo "$as_me: failed program was:" >&5
22522sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 eval "$as_ac_Header=no"
22525fi
22526
22527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528fi
22529ac_res=`eval 'as_val=${'$as_ac_Header'}
22530 $as_echo "$as_val"'`
22531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22532$as_echo "$ac_res" >&6; }
22533as_val=`eval 'as_val=${'$as_ac_Header'}
22534 $as_echo "$as_val"'`
22535 if test "x$as_val" = x""yes; then
22536 cat >>confdefs.h <<_ACEOF
22537#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22538_ACEOF
22539
22540ac_header_dirent=$ac_hdr; break
22541fi
22542
22543done
22544# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22545if test $ac_header_dirent = dirent.h; then
22546 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22547$as_echo_n "checking for library containing opendir... " >&6; }
22548if test "${ac_cv_search_opendir+set}" = set; then
22549 $as_echo_n "(cached) " >&6
22550else
22551 ac_func_search_save_LIBS=$LIBS
22552cat >conftest.$ac_ext <<_ACEOF
22553/* confdefs.h. */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h. */
22558
22559/* Override any GCC internal prototype to avoid an error.
22560 Use char because int might match the return type of a GCC
22561 builtin and then its argument prototype would still apply. */
22562#ifdef __cplusplus
22563extern "C"
22564#endif
22565char opendir ();
22566int
22567main ()
22568{
22569return opendir ();
22570 ;
22571 return 0;
22572}
22573_ACEOF
22574for ac_lib in '' dir; do
22575 if test -z "$ac_lib"; then
22576 ac_res="none required"
22577 else
22578 ac_res=-l$ac_lib
22579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22580 fi
22581 rm -f conftest.$ac_objext conftest$ac_exeext
22582if { (ac_try="$ac_link"
22583case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22586esac
22587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22588$as_echo "$ac_try_echo") >&5
22589 (eval "$ac_link") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest$ac_exeext && {
22599 test "$cross_compiling" = yes ||
22600 $as_test_x conftest$ac_exeext
22601 }; then
22602 ac_cv_search_opendir=$ac_res
22603else
22604 $as_echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607
22608fi
22609
22610rm -rf conftest.dSYM
22611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22612 conftest$ac_exeext
22613 if test "${ac_cv_search_opendir+set}" = set; then
22614 break
22615fi
22616done
22617if test "${ac_cv_search_opendir+set}" = set; then
22618 :
22619else
22620 ac_cv_search_opendir=no
22621fi
22622rm conftest.$ac_ext
22623LIBS=$ac_func_search_save_LIBS
22624fi
22625{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22626$as_echo "$ac_cv_search_opendir" >&6; }
22627ac_res=$ac_cv_search_opendir
22628if test "$ac_res" != no; then
22629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22630
22631fi
22632
22633else
22634 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22635$as_echo_n "checking for library containing opendir... " >&6; }
22636if test "${ac_cv_search_opendir+set}" = set; then
22637 $as_echo_n "(cached) " >&6
22638else
22639 ac_func_search_save_LIBS=$LIBS
22640cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h. */
22646
22647/* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22650#ifdef __cplusplus
22651extern "C"
22652#endif
22653char opendir ();
22654int
22655main ()
22656{
22657return opendir ();
22658 ;
22659 return 0;
22660}
22661_ACEOF
22662for ac_lib in '' x; do
22663 if test -z "$ac_lib"; then
22664 ac_res="none required"
22665 else
22666 ac_res=-l$ac_lib
22667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22668 fi
22669 rm -f conftest.$ac_objext conftest$ac_exeext
22670if { (ac_try="$ac_link"
22671case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22674esac
22675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676$as_echo "$ac_try_echo") >&5
22677 (eval "$ac_link") 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest$ac_exeext && {
22687 test "$cross_compiling" = yes ||
22688 $as_test_x conftest$ac_exeext
22689 }; then
22690 ac_cv_search_opendir=$ac_res
22691else
22692 $as_echo "$as_me: failed program was:" >&5
22693sed 's/^/| /' conftest.$ac_ext >&5
22694
22695
22696fi
22697
22698rm -rf conftest.dSYM
22699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700 conftest$ac_exeext
22701 if test "${ac_cv_search_opendir+set}" = set; then
22702 break
22703fi
22704done
22705if test "${ac_cv_search_opendir+set}" = set; then
22706 :
22707else
22708 ac_cv_search_opendir=no
22709fi
22710rm conftest.$ac_ext
22711LIBS=$ac_func_search_save_LIBS
22712fi
22713{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22714$as_echo "$ac_cv_search_opendir" >&6; }
22715ac_res=$ac_cv_search_opendir
22716if test "$ac_res" != no; then
22717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22718
22719fi
22720
22721fi
22722
22723
22724# Check additional headers
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750for 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
22751do
22752as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22755$as_echo_n "checking for $ac_header... " >&6; }
22756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22757 $as_echo_n "(cached) " >&6
22758fi
22759ac_res=`eval 'as_val=${'$as_ac_Header'}
22760 $as_echo "$as_val"'`
22761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22762$as_echo "$ac_res" >&6; }
22763else
22764 # Is the header compilable?
22765{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22766$as_echo_n "checking $ac_header usability... " >&6; }
22767cat >conftest.$ac_ext <<_ACEOF
22768/* confdefs.h. */
22769_ACEOF
22770cat confdefs.h >>conftest.$ac_ext
22771cat >>conftest.$ac_ext <<_ACEOF
22772/* end confdefs.h. */
22773$ac_includes_default
22774#include <$ac_header>
22775_ACEOF
22776rm -f conftest.$ac_objext
22777if { (ac_try="$ac_compile"
22778case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781esac
22782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22783$as_echo "$ac_try_echo") >&5
22784 (eval "$ac_compile") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.$ac_objext; then
22794 ac_header_compiler=yes
22795else
22796 $as_echo "$as_me: failed program was:" >&5
22797sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_header_compiler=no
22800fi
22801
22802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22804$as_echo "$ac_header_compiler" >&6; }
22805
22806# Is the header present?
22807{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22808$as_echo_n "checking $ac_header presence... " >&6; }
22809cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
22815#include <$ac_header>
22816_ACEOF
22817if { (ac_try="$ac_cpp conftest.$ac_ext"
22818case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22821esac
22822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22823$as_echo "$ac_try_echo") >&5
22824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22825 ac_status=$?
22826 grep -v '^ *+' conftest.er1 >conftest.err
22827 rm -f conftest.er1
22828 cat conftest.err >&5
22829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } >/dev/null && {
22831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 }; then
22834 ac_header_preproc=yes
22835else
22836 $as_echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839 ac_header_preproc=no
22840fi
22841
22842rm -f conftest.err conftest.$ac_ext
22843{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22844$as_echo "$ac_header_preproc" >&6; }
22845
22846# So? What about this header?
22847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22848 yes:no: )
22849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22850$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22852$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22853 ac_header_preproc=yes
22854 ;;
22855 no:yes:* )
22856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22857$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22859$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22861$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22863$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22865$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22867$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22868 ( cat <<\_ASBOX
22869## ----------------------------------------- ##
22870## Report this to http://www.imagemagick.org ##
22871## ----------------------------------------- ##
22872_ASBOX
22873 ) | sed "s/^/$as_me: WARNING: /" >&2
22874 ;;
22875esac
22876{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22877$as_echo_n "checking for $ac_header... " >&6; }
22878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22879 $as_echo_n "(cached) " >&6
22880else
22881 eval "$as_ac_Header=\$ac_header_preproc"
22882fi
22883ac_res=`eval 'as_val=${'$as_ac_Header'}
22884 $as_echo "$as_val"'`
22885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22886$as_echo "$ac_res" >&6; }
22887
22888fi
22889as_val=`eval 'as_val=${'$as_ac_Header'}
22890 $as_echo "$as_val"'`
22891 if test "x$as_val" = x""yes; then
22892 cat >>confdefs.h <<_ACEOF
22893#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22894_ACEOF
22895
22896fi
22897
22898done
22899
22900
22901########
22902#
22903# Checks for typedefs, structures, and compiler characteristics.
22904#
22905########
22906
22907{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22908$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22909if test "${ac_cv_header_stdbool_h+set}" = set; then
22910 $as_echo_n "(cached) " >&6
22911else
22912 cat >conftest.$ac_ext <<_ACEOF
22913/* confdefs.h. */
22914_ACEOF
22915cat confdefs.h >>conftest.$ac_ext
22916cat >>conftest.$ac_ext <<_ACEOF
22917/* end confdefs.h. */
22918
22919#include <stdbool.h>
22920#ifndef bool
22921 "error: bool is not defined"
22922#endif
22923#ifndef false
22924 "error: false is not defined"
22925#endif
22926#if false
22927 "error: false is not 0"
22928#endif
22929#ifndef true
22930 "error: true is not defined"
22931#endif
22932#if true != 1
22933 "error: true is not 1"
22934#endif
22935#ifndef __bool_true_false_are_defined
22936 "error: __bool_true_false_are_defined is not defined"
22937#endif
22938
22939 struct s { _Bool s: 1; _Bool t; } s;
22940
22941 char a[true == 1 ? 1 : -1];
22942 char b[false == 0 ? 1 : -1];
22943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22944 char d[(bool) 0.5 == true ? 1 : -1];
22945 bool e = &s;
22946 char f[(_Bool) 0.0 == false ? 1 : -1];
22947 char g[true];
22948 char h[sizeof (_Bool)];
22949 char i[sizeof s.t];
22950 enum { j = false, k = true, l = false * true, m = true * 256 };
22951 /* The following fails for
22952 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22953 _Bool n[m];
22954 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22955 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22956# if defined __xlc__ || defined __GNUC__
22957 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22958 reported by James Lemley on 2005-10-05; see
22959 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22960 This test is not quite right, since xlc is allowed to
22961 reject this program, as the initializer for xlcbug is
22962 not one of the forms that C requires support for.
22963 However, doing the test right would require a runtime
22964 test, and that would make cross-compilation harder.
22965 Let us hope that IBM fixes the xlc bug, and also adds
22966 support for this kind of constant expression. In the
22967 meantime, this test will reject xlc, which is OK, since
22968 our stdbool.h substitute should suffice. We also test
22969 this with GCC, where it should work, to detect more
22970 quickly whether someone messes up the test in the
22971 future. */
22972 char digs[] = "0123456789";
22973 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22974# endif
22975 /* Catch a bug in an HP-UX C compiler. See
22976 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22977 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22978 */
22979 _Bool q = true;
22980 _Bool *pq = &q;
22981
22982int
22983main ()
22984{
22985
22986 *pq |= q;
22987 *pq |= ! q;
22988 /* Refer to every declared value, to avoid compiler optimizations. */
22989 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22990 + !m + !n + !o + !p + !q + !pq);
22991
22992 ;
22993 return 0;
22994}
22995_ACEOF
22996rm -f conftest.$ac_objext
22997if { (ac_try="$ac_compile"
22998case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001esac
23002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23003$as_echo "$ac_try_echo") >&5
23004 (eval "$ac_compile") 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest.$ac_objext; then
23014 ac_cv_header_stdbool_h=yes
23015else
23016 $as_echo "$as_me: failed program was:" >&5
23017sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_cv_header_stdbool_h=no
23020fi
23021
23022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023fi
23024{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
23025$as_echo "$ac_cv_header_stdbool_h" >&6; }
23026{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
23027$as_echo_n "checking for _Bool... " >&6; }
23028if test "${ac_cv_type__Bool+set}" = set; then
23029 $as_echo_n "(cached) " >&6
23030else
23031 ac_cv_type__Bool=no
23032cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038$ac_includes_default
23039int
23040main ()
23041{
23042if (sizeof (_Bool))
23043 return 0;
23044 ;
23045 return 0;
23046}
23047_ACEOF
23048rm -f conftest.$ac_objext
23049if { (ac_try="$ac_compile"
23050case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23053esac
23054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23055$as_echo "$ac_try_echo") >&5
23056 (eval "$ac_compile") 2>conftest.er1
23057 ac_status=$?
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
23061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
23066 cat >conftest.$ac_ext <<_ACEOF
23067/* confdefs.h. */
23068_ACEOF
23069cat confdefs.h >>conftest.$ac_ext
23070cat >>conftest.$ac_ext <<_ACEOF
23071/* end confdefs.h. */
23072$ac_includes_default
23073int
23074main ()
23075{
23076if (sizeof ((_Bool)))
23077 return 0;
23078 ;
23079 return 0;
23080}
23081_ACEOF
23082rm -f conftest.$ac_objext
23083if { (ac_try="$ac_compile"
23084case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23087esac
23088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23089$as_echo "$ac_try_echo") >&5
23090 (eval "$ac_compile") 2>conftest.er1
23091 ac_status=$?
23092 grep -v '^ *+' conftest.er1 >conftest.err
23093 rm -f conftest.er1
23094 cat conftest.err >&5
23095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } && {
23097 test -z "$ac_c_werror_flag" ||
23098 test ! -s conftest.err
23099 } && test -s conftest.$ac_objext; then
23100 :
23101else
23102 $as_echo "$as_me: failed program was:" >&5
23103sed 's/^/| /' conftest.$ac_ext >&5
23104
23105 ac_cv_type__Bool=yes
23106fi
23107
23108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109else
23110 $as_echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113
23114fi
23115
23116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117fi
23118{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
23119$as_echo "$ac_cv_type__Bool" >&6; }
23120if test "x$ac_cv_type__Bool" = x""yes; then
23121
23122cat >>confdefs.h <<_ACEOF
23123#define HAVE__BOOL 1
23124_ACEOF
23125
23126
23127fi
23128
23129if test $ac_cv_header_stdbool_h = yes; then
23130
23131cat >>confdefs.h <<\_ACEOF
23132#define HAVE_STDBOOL_H 1
23133_ACEOF
23134
23135fi
23136
23137{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
23138$as_echo_n "checking for working volatile... " >&6; }
23139if test "${ac_cv_c_volatile+set}" = set; then
23140 $as_echo_n "(cached) " >&6
23141else
23142 cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
23148
23149int
23150main ()
23151{
23152
23153volatile int x;
23154int * volatile y = (int *) 0;
23155return !x && !y;
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext
23161if { (ac_try="$ac_compile"
23162case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23165esac
23166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23167$as_echo "$ac_try_echo") >&5
23168 (eval "$ac_compile") 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } && {
23175 test -z "$ac_c_werror_flag" ||
23176 test ! -s conftest.err
23177 } && test -s conftest.$ac_objext; then
23178 ac_cv_c_volatile=yes
23179else
23180 $as_echo "$as_me: failed program was:" >&5
23181sed 's/^/| /' conftest.$ac_ext >&5
23182
23183 ac_cv_c_volatile=no
23184fi
23185
23186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23187fi
23188{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
23189$as_echo "$ac_cv_c_volatile" >&6; }
23190if test $ac_cv_c_volatile = no; then
23191
23192cat >>confdefs.h <<\_ACEOF
23193#define volatile /**/
23194_ACEOF
23195
23196fi
23197
23198{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
23199$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
23200if test "${ac_cv_c_stringize+set}" = set; then
23201 $as_echo_n "(cached) " >&6
23202else
23203 cat >conftest.$ac_ext <<_ACEOF
23204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
23209#define x(y) #y
23210
23211char *s = x(teststring);
23212_ACEOF
23213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23214 $EGREP "#teststring" >/dev/null 2>&1; then
23215 ac_cv_c_stringize=no
23216else
23217 ac_cv_c_stringize=yes
23218fi
23219rm -f conftest*
23220
23221fi
23222{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
23223$as_echo "$ac_cv_c_stringize" >&6; }
23224if test $ac_cv_c_stringize = yes; then
23225
23226cat >>confdefs.h <<\_ACEOF
23227#define HAVE_STRINGIZE 1
23228_ACEOF
23229
23230fi
23231
23232{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
23233$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23234if test "${ac_cv_header_stat_broken+set}" = set; then
23235 $as_echo_n "(cached) " >&6
23236else
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <sys/types.h>
23244#include <sys/stat.h>
23245
23246#if defined S_ISBLK && defined S_IFDIR
23247extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23248#endif
23249
23250#if defined S_ISBLK && defined S_IFCHR
23251extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23252#endif
23253
23254#if defined S_ISLNK && defined S_IFREG
23255extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23256#endif
23257
23258#if defined S_ISSOCK && defined S_IFREG
23259extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23260#endif
23261
23262_ACEOF
23263rm -f conftest.$ac_objext
23264if { (ac_try="$ac_compile"
23265case "(($ac_try" in
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267 *) ac_try_echo=$ac_try;;
23268esac
23269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23270$as_echo "$ac_try_echo") >&5
23271 (eval "$ac_compile") 2>conftest.er1
23272 ac_status=$?
23273 grep -v '^ *+' conftest.er1 >conftest.err
23274 rm -f conftest.er1
23275 cat conftest.err >&5
23276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } && {
23278 test -z "$ac_c_werror_flag" ||
23279 test ! -s conftest.err
23280 } && test -s conftest.$ac_objext; then
23281 ac_cv_header_stat_broken=no
23282else
23283 $as_echo "$as_me: failed program was:" >&5
23284sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_header_stat_broken=yes
23287fi
23288
23289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290fi
23291{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
23292$as_echo "$ac_cv_header_stat_broken" >&6; }
23293if test $ac_cv_header_stat_broken = yes; then
23294
23295cat >>confdefs.h <<\_ACEOF
23296#define STAT_MACROS_BROKEN 1
23297_ACEOF
23298
23299fi
23300
23301{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23302$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23303if test "${ac_cv_header_time+set}" = set; then
23304 $as_echo_n "(cached) " >&6
23305else
23306 cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312#include <sys/types.h>
23313#include <sys/time.h>
23314#include <time.h>
23315
23316int
23317main ()
23318{
23319if ((struct tm *) 0)
23320return 0;
23321 ;
23322 return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext
23326if { (ac_try="$ac_compile"
23327case "(($ac_try" in
23328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329 *) ac_try_echo=$ac_try;;
23330esac
23331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23332$as_echo "$ac_try_echo") >&5
23333 (eval "$ac_compile") 2>conftest.er1
23334 ac_status=$?
23335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
23338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } && {
23340 test -z "$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 } && test -s conftest.$ac_objext; then
23343 ac_cv_header_time=yes
23344else
23345 $as_echo "$as_me: failed program was:" >&5
23346sed 's/^/| /' conftest.$ac_ext >&5
23347
23348 ac_cv_header_time=no
23349fi
23350
23351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352fi
23353{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23354$as_echo "$ac_cv_header_time" >&6; }
23355if test $ac_cv_header_time = yes; then
23356
23357cat >>confdefs.h <<\_ACEOF
23358#define TIME_WITH_SYS_TIME 1
23359_ACEOF
23360
23361fi
23362
23363{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23364$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23365if test "${ac_cv_struct_tm+set}" = set; then
23366 $as_echo_n "(cached) " >&6
23367else
23368 cat >conftest.$ac_ext <<_ACEOF
23369/* confdefs.h. */
23370_ACEOF
23371cat confdefs.h >>conftest.$ac_ext
23372cat >>conftest.$ac_ext <<_ACEOF
23373/* end confdefs.h. */
23374#include <sys/types.h>
23375#include <time.h>
23376
23377int
23378main ()
23379{
23380struct tm tm;
23381 int *p = &tm.tm_sec;
23382 return !p;
23383 ;
23384 return 0;
23385}
23386_ACEOF
23387rm -f conftest.$ac_objext
23388if { (ac_try="$ac_compile"
23389case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392esac
23393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23394$as_echo "$ac_try_echo") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23396 ac_status=$?
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
23400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest.$ac_objext; then
23405 ac_cv_struct_tm=time.h
23406else
23407 $as_echo "$as_me: failed program was:" >&5
23408sed 's/^/| /' conftest.$ac_ext >&5
23409
23410 ac_cv_struct_tm=sys/time.h
23411fi
23412
23413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414fi
23415{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23416$as_echo "$ac_cv_struct_tm" >&6; }
23417if test $ac_cv_struct_tm = sys/time.h; then
23418
23419cat >>confdefs.h <<\_ACEOF
23420#define TM_IN_SYS_TIME 1
23421_ACEOF
23422
23423fi
23424
23425{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
23426$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23427if test "${ac_cv_sys_interpreter+set}" = set; then
23428 $as_echo_n "(cached) " >&6
23429else
23430 echo '#! /bin/cat
23431exit 69
23432' >conftest
23433chmod u+x conftest
23434(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23435if test $? -ne 69; then
23436 ac_cv_sys_interpreter=yes
23437else
23438 ac_cv_sys_interpreter=no
23439fi
23440rm -f conftest
23441fi
23442{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
23443$as_echo "$ac_cv_sys_interpreter" >&6; }
23444interpval=$ac_cv_sys_interpreter
23445
23446
23447# If the C compiler does not fully support the ANSI C qualifier const,
23448# define const to be empty.
23449{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23450$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23451if test "${ac_cv_c_const+set}" = set; then
23452 $as_echo_n "(cached) " >&6
23453else
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460
23461int
23462main ()
23463{
23464/* FIXME: Include the comments suggested by Paul. */
23465#ifndef __cplusplus
23466 /* Ultrix mips cc rejects this. */
23467 typedef int charset[2];
23468 const charset cs;
23469 /* SunOS 4.1.1 cc rejects this. */
23470 char const *const *pcpcc;
23471 char **ppc;
23472 /* NEC SVR4.0.2 mips cc rejects this. */
23473 struct point {int x, y;};
23474 static struct point const zero = {0,0};
23475 /* AIX XL C 1.02.0.0 rejects this.
23476 It does not let you subtract one const X* pointer from another in
23477 an arm of an if-expression whose if-part is not a constant
23478 expression */
23479 const char *g = "string";
23480 pcpcc = &g + (g ? g-g : 0);
23481 /* HPUX 7.0 cc rejects these. */
23482 ++pcpcc;
23483 ppc = (char**) pcpcc;
23484 pcpcc = (char const *const *) ppc;
23485 { /* SCO 3.2v4 cc rejects this. */
23486 char *t;
23487 char const *s = 0 ? (char *) 0 : (char const *) 0;
23488
23489 *t++ = 0;
23490 if (s) return 0;
23491 }
23492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23493 int x[] = {25, 17};
23494 const int *foo = &x[0];
23495 ++foo;
23496 }
23497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23498 typedef const int *iptr;
23499 iptr p = 0;
23500 ++p;
23501 }
23502 { /* AIX XL C 1.02.0.0 rejects this saying
23503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23504 struct s { int j; const int *ap[3]; };
23505 struct s *b; b->j = 5;
23506 }
23507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23508 const int foo = 10;
23509 if (!foo) return 0;
23510 }
23511 return !cs[0] && !zero.x;
23512#endif
23513
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext
23519if { (ac_try="$ac_compile"
23520case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23523esac
23524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23525$as_echo "$ac_try_echo") >&5
23526 (eval "$ac_compile") 2>conftest.er1
23527 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1
23530 cat conftest.err >&5
23531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && {
23533 test -z "$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 } && test -s conftest.$ac_objext; then
23536 ac_cv_c_const=yes
23537else
23538 $as_echo "$as_me: failed program was:" >&5
23539sed 's/^/| /' conftest.$ac_ext >&5
23540
23541 ac_cv_c_const=no
23542fi
23543
23544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545fi
23546{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23547$as_echo "$ac_cv_c_const" >&6; }
23548if test $ac_cv_c_const = no; then
23549
23550cat >>confdefs.h <<\_ACEOF
23551#define const /**/
23552_ACEOF
23553
23554fi
23555
23556
23557# If the C compiler supports the keyword inline, do nothing. Otherwise
23558# define inline to __inline__ or __inline if it accepts one of those,
23559# otherwise define inline to be empty.
23560{ $as_echo "$as_me:$LINENO: checking for inline" >&5
23561$as_echo_n "checking for inline... " >&6; }
23562if test "${ac_cv_c_inline+set}" = set; then
23563 $as_echo_n "(cached) " >&6
23564else
23565 ac_cv_c_inline=no
23566for ac_kw in inline __inline__ __inline; do
23567 cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h. */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h. */
23573#ifndef __cplusplus
23574typedef int foo_t;
23575static $ac_kw foo_t static_foo () {return 0; }
23576$ac_kw foo_t foo () {return 0; }
23577#endif
23578
23579_ACEOF
23580rm -f conftest.$ac_objext
23581if { (ac_try="$ac_compile"
23582case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585esac
23586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23587$as_echo "$ac_try_echo") >&5
23588 (eval "$ac_compile") 2>conftest.er1
23589 ac_status=$?
23590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
23593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest.$ac_objext; then
23598 ac_cv_c_inline=$ac_kw
23599else
23600 $as_echo "$as_me: failed program was:" >&5
23601sed 's/^/| /' conftest.$ac_ext >&5
23602
23603
23604fi
23605
23606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23607 test "$ac_cv_c_inline" != no && break
23608done
23609
23610fi
23611{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23612$as_echo "$ac_cv_c_inline" >&6; }
23613
23614
23615case $ac_cv_c_inline in
23616 inline | yes) ;;
23617 *)
23618 case $ac_cv_c_inline in
23619 no) ac_val=;;
23620 *) ac_val=$ac_cv_c_inline;;
23621 esac
23622 cat >>confdefs.h <<_ACEOF
23623#ifndef __cplusplus
23624#define inline $ac_val
23625#endif
23626_ACEOF
23627 ;;
23628esac
23629
23630
23631# If the C compiler supports the keyword restrict, do nothing. Otherwise
23632# define restrict to __restrict__ or __restrict if it accepts one of those,
23633# otherwise define restrict to be empty.
23634{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
23635$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23636if test "${ac_cv_c_restrict+set}" = set; then
23637 $as_echo_n "(cached) " >&6
23638else
23639 ac_cv_c_restrict=no
23640 # The order here caters to the fact that C++ does not require restrict.
23641 for ac_kw in __restrict __restrict__ _Restrict restrict; do
23642 cat >conftest.$ac_ext <<_ACEOF
23643/* confdefs.h. */
23644_ACEOF
23645cat confdefs.h >>conftest.$ac_ext
23646cat >>conftest.$ac_ext <<_ACEOF
23647/* end confdefs.h. */
23648typedef int * int_ptr;
23649 int foo (int_ptr $ac_kw ip) {
23650 return ip[0];
23651 }
23652int
23653main ()
23654{
23655int s[1];
23656 int * $ac_kw t = s;
23657 t[0] = 0;
23658 return foo(t)
23659 ;
23660 return 0;
23661}
23662_ACEOF
23663rm -f conftest.$ac_objext
23664if { (ac_try="$ac_compile"
23665case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668esac
23669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670$as_echo "$ac_try_echo") >&5
23671 (eval "$ac_compile") 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest.$ac_objext; then
23681 ac_cv_c_restrict=$ac_kw
23682else
23683 $as_echo "$as_me: failed program was:" >&5
23684sed 's/^/| /' conftest.$ac_ext >&5
23685
23686
23687fi
23688
23689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690 test "$ac_cv_c_restrict" != no && break
23691 done
23692
23693fi
23694{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
23695$as_echo "$ac_cv_c_restrict" >&6; }
23696
23697
23698 case $ac_cv_c_restrict in
23699 restrict) ;;
23700 no) cat >>confdefs.h <<\_ACEOF
23701#define restrict /**/
23702_ACEOF
23703 ;;
23704 *) cat >>confdefs.h <<_ACEOF
23705#define restrict $ac_cv_c_restrict
23706_ACEOF
23707 ;;
23708 esac
23709
23710
23711# If words are stored with the most significant byte first (like
23712# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23713
23714 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23715$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23716if test "${ac_cv_c_bigendian+set}" = set; then
23717 $as_echo_n "(cached) " >&6
23718else
23719 ac_cv_c_bigendian=unknown
23720 # See if we're dealing with a universal compiler.
23721 cat >conftest.$ac_ext <<_ACEOF
23722/* confdefs.h. */
23723_ACEOF
23724cat confdefs.h >>conftest.$ac_ext
23725cat >>conftest.$ac_ext <<_ACEOF
23726/* end confdefs.h. */
23727#ifndef __APPLE_CC__
23728 not a universal capable compiler
23729 #endif
23730 typedef int dummy;
23731
23732_ACEOF
23733rm -f conftest.$ac_objext
23734if { (ac_try="$ac_compile"
23735case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23738esac
23739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23740$as_echo "$ac_try_echo") >&5
23741 (eval "$ac_compile") 2>conftest.er1
23742 ac_status=$?
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
23746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_c_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest.$ac_objext; then
23751
23752 # Check for potential -arch flags. It is not universal unless
23753 # there are some -arch flags. Note that *ppc* also matches
23754 # ppc64. This check is also rather less than ideal.
23755 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23756 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23757 esac
23758else
23759 $as_echo "$as_me: failed program was:" >&5
23760sed 's/^/| /' conftest.$ac_ext >&5
23761
23762
23763fi
23764
23765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 if test $ac_cv_c_bigendian = unknown; then
23767 # See if sys/param.h defines the BYTE_ORDER macro.
23768 cat >conftest.$ac_ext <<_ACEOF
23769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
23774#include <sys/types.h>
23775 #include <sys/param.h>
23776
23777int
23778main ()
23779{
23780#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23781 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23782 && LITTLE_ENDIAN)
23783 bogus endian macros
23784 #endif
23785
23786 ;
23787 return 0;
23788}
23789_ACEOF
23790rm -f conftest.$ac_objext
23791if { (ac_try="$ac_compile"
23792case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23795esac
23796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23797$as_echo "$ac_try_echo") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 # It does; now see whether it defined to BIG_ENDIAN or not.
23809 cat >conftest.$ac_ext <<_ACEOF
23810/* confdefs.h. */
23811_ACEOF
23812cat confdefs.h >>conftest.$ac_ext
23813cat >>conftest.$ac_ext <<_ACEOF
23814/* end confdefs.h. */
23815#include <sys/types.h>
23816 #include <sys/param.h>
23817
23818int
23819main ()
23820{
23821#if BYTE_ORDER != BIG_ENDIAN
23822 not big endian
23823 #endif
23824
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829rm -f conftest.$ac_objext
23830if { (ac_try="$ac_compile"
23831case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834esac
23835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836$as_echo "$ac_try_echo") >&5
23837 (eval "$ac_compile") 2>conftest.er1
23838 ac_status=$?
23839 grep -v '^ *+' conftest.er1 >conftest.err
23840 rm -f conftest.er1
23841 cat conftest.err >&5
23842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest.$ac_objext; then
23847 ac_cv_c_bigendian=yes
23848else
23849 $as_echo "$as_me: failed program was:" >&5
23850sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 ac_cv_c_bigendian=no
23853fi
23854
23855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856else
23857 $as_echo "$as_me: failed program was:" >&5
23858sed 's/^/| /' conftest.$ac_ext >&5
23859
23860
23861fi
23862
23863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 fi
23865 if test $ac_cv_c_bigendian = unknown; then
23866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23867 cat >conftest.$ac_ext <<_ACEOF
23868/* confdefs.h. */
23869_ACEOF
23870cat confdefs.h >>conftest.$ac_ext
23871cat >>conftest.$ac_ext <<_ACEOF
23872/* end confdefs.h. */
23873#include <limits.h>
23874
23875int
23876main ()
23877{
23878#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23879 bogus endian macros
23880 #endif
23881
23882 ;
23883 return 0;
23884}
23885_ACEOF
23886rm -f conftest.$ac_objext
23887if { (ac_try="$ac_compile"
23888case "(($ac_try" in
23889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890 *) ac_try_echo=$ac_try;;
23891esac
23892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23893$as_echo "$ac_try_echo") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 # It does; now see whether it defined to _BIG_ENDIAN or not.
23905 cat >conftest.$ac_ext <<_ACEOF
23906/* confdefs.h. */
23907_ACEOF
23908cat confdefs.h >>conftest.$ac_ext
23909cat >>conftest.$ac_ext <<_ACEOF
23910/* end confdefs.h. */
23911#include <limits.h>
23912
23913int
23914main ()
23915{
23916#ifndef _BIG_ENDIAN
23917 not big endian
23918 #endif
23919
23920 ;
23921 return 0;
23922}
23923_ACEOF
23924rm -f conftest.$ac_objext
23925if { (ac_try="$ac_compile"
23926case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929esac
23930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23931$as_echo "$ac_try_echo") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23933 ac_status=$?
23934 grep -v '^ *+' conftest.er1 >conftest.err
23935 rm -f conftest.er1
23936 cat conftest.err >&5
23937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23942 ac_cv_c_bigendian=yes
23943else
23944 $as_echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947 ac_cv_c_bigendian=no
23948fi
23949
23950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951else
23952 $as_echo "$as_me: failed program was:" >&5
23953sed 's/^/| /' conftest.$ac_ext >&5
23954
23955
23956fi
23957
23958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 fi
23960 if test $ac_cv_c_bigendian = unknown; then
23961 # Compile a test program.
23962 if test "$cross_compiling" = yes; then
23963 # Try to guess by grepping values from an object file.
23964 cat >conftest.$ac_ext <<_ACEOF
23965/* confdefs.h. */
23966_ACEOF
23967cat confdefs.h >>conftest.$ac_ext
23968cat >>conftest.$ac_ext <<_ACEOF
23969/* end confdefs.h. */
23970short int ascii_mm[] =
23971 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23972 short int ascii_ii[] =
23973 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23974 int use_ascii (int i) {
23975 return ascii_mm[i] + ascii_ii[i];
23976 }
23977 short int ebcdic_ii[] =
23978 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23979 short int ebcdic_mm[] =
23980 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23981 int use_ebcdic (int i) {
23982 return ebcdic_mm[i] + ebcdic_ii[i];
23983 }
23984 extern int foo;
23985
23986int
23987main ()
23988{
23989return use_ascii (foo) == use_ebcdic (foo);
23990 ;
23991 return 0;
23992}
23993_ACEOF
23994rm -f conftest.$ac_objext
23995if { (ac_try="$ac_compile"
23996case "(($ac_try" in
23997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998 *) ac_try_echo=$ac_try;;
23999esac
24000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24001$as_echo "$ac_try_echo") >&5
24002 (eval "$ac_compile") 2>conftest.er1
24003 ac_status=$?
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } && {
24009 test -z "$ac_c_werror_flag" ||
24010 test ! -s conftest.err
24011 } && test -s conftest.$ac_objext; then
24012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24013 ac_cv_c_bigendian=yes
24014 fi
24015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24016 if test "$ac_cv_c_bigendian" = unknown; then
24017 ac_cv_c_bigendian=no
24018 else
24019 # finding both strings is unlikely to happen, but who knows?
24020 ac_cv_c_bigendian=unknown
24021 fi
24022 fi
24023else
24024 $as_echo "$as_me: failed program was:" >&5
24025sed 's/^/| /' conftest.$ac_ext >&5
24026
24027
24028fi
24029
24030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24031else
24032 cat >conftest.$ac_ext <<_ACEOF
24033/* confdefs.h. */
24034_ACEOF
24035cat confdefs.h >>conftest.$ac_ext
24036cat >>conftest.$ac_ext <<_ACEOF
24037/* end confdefs.h. */
24038$ac_includes_default
24039int
24040main ()
24041{
24042
24043 /* Are we little or big endian? From Harbison&Steele. */
24044 union
24045 {
24046 long int l;
24047 char c[sizeof (long int)];
24048 } u;
24049 u.l = 1;
24050 return u.c[sizeof (long int) - 1] == 1;
24051
24052 ;
24053 return 0;
24054}
24055_ACEOF
24056rm -f conftest$ac_exeext
24057if { (ac_try="$ac_link"
24058case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24061esac
24062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24063$as_echo "$ac_try_echo") >&5
24064 (eval "$ac_link") 2>&5
24065 ac_status=$?
24066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24068 { (case "(($ac_try" in
24069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070 *) ac_try_echo=$ac_try;;
24071esac
24072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24073$as_echo "$ac_try_echo") >&5
24074 (eval "$ac_try") 2>&5
24075 ac_status=$?
24076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 ac_cv_c_bigendian=no
24079else
24080 $as_echo "$as_me: program exited with status $ac_status" >&5
24081$as_echo "$as_me: failed program was:" >&5
24082sed 's/^/| /' conftest.$ac_ext >&5
24083
24084( exit $ac_status )
24085ac_cv_c_bigendian=yes
24086fi
24087rm -rf conftest.dSYM
24088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24089fi
24090
24091
24092 fi
24093fi
24094{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24095$as_echo "$ac_cv_c_bigendian" >&6; }
24096 case $ac_cv_c_bigendian in #(
24097 yes)
24098 cat >>confdefs.h <<\_ACEOF
24099#define WORDS_BIGENDIAN 1
24100_ACEOF
24101;; #(
24102 no)
24103 ;; #(
24104 universal)
24105
24106cat >>confdefs.h <<\_ACEOF
24107#define AC_APPLE_UNIVERSAL_BUILD 1
24108_ACEOF
24109
24110 ;; #(
24111 *)
24112 { { $as_echo "$as_me:$LINENO: error: unknown endianness
24113 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24114$as_echo "$as_me: error: unknown endianness
24115 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24116 { (exit 1); exit 1; }; } ;;
24117 esac
24118
24119
24120# Define mode_t to a suitable type, if standard headers do not define it.
24121{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
24122$as_echo_n "checking for mode_t... " >&6; }
24123if test "${ac_cv_type_mode_t+set}" = set; then
24124 $as_echo_n "(cached) " >&6
24125else
24126 ac_cv_type_mode_t=no
24127cat >conftest.$ac_ext <<_ACEOF
24128/* confdefs.h. */
24129_ACEOF
24130cat confdefs.h >>conftest.$ac_ext
24131cat >>conftest.$ac_ext <<_ACEOF
24132/* end confdefs.h. */
24133$ac_includes_default
24134int
24135main ()
24136{
24137if (sizeof (mode_t))
24138 return 0;
24139 ;
24140 return 0;
24141}
24142_ACEOF
24143rm -f conftest.$ac_objext
24144if { (ac_try="$ac_compile"
24145case "(($ac_try" in
24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147 *) ac_try_echo=$ac_try;;
24148esac
24149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24150$as_echo "$ac_try_echo") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.$ac_objext; then
24161 cat >conftest.$ac_ext <<_ACEOF
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
24167$ac_includes_default
24168int
24169main ()
24170{
24171if (sizeof ((mode_t)))
24172 return 0;
24173 ;
24174 return 0;
24175}
24176_ACEOF
24177rm -f conftest.$ac_objext
24178if { (ac_try="$ac_compile"
24179case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24182esac
24183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184$as_echo "$ac_try_echo") >&5
24185 (eval "$ac_compile") 2>conftest.er1
24186 ac_status=$?
24187 grep -v '^ *+' conftest.er1 >conftest.err
24188 rm -f conftest.er1
24189 cat conftest.err >&5
24190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } && {
24192 test -z "$ac_c_werror_flag" ||
24193 test ! -s conftest.err
24194 } && test -s conftest.$ac_objext; then
24195 :
24196else
24197 $as_echo "$as_me: failed program was:" >&5
24198sed 's/^/| /' conftest.$ac_ext >&5
24199
24200 ac_cv_type_mode_t=yes
24201fi
24202
24203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204else
24205 $as_echo "$as_me: failed program was:" >&5
24206sed 's/^/| /' conftest.$ac_ext >&5
24207
24208
24209fi
24210
24211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212fi
24213{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24214$as_echo "$ac_cv_type_mode_t" >&6; }
24215if test "x$ac_cv_type_mode_t" = x""yes; then
24216 :
24217else
24218
24219cat >>confdefs.h <<_ACEOF
24220#define mode_t int
24221_ACEOF
24222
24223fi
24224
24225
24226# Define off_t to a suitable type, if standard headers do not define it.
24227{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
24228$as_echo_n "checking for off_t... " >&6; }
24229if test "${ac_cv_type_off_t+set}" = set; then
24230 $as_echo_n "(cached) " >&6
24231else
24232 ac_cv_type_off_t=no
24233cat >conftest.$ac_ext <<_ACEOF
24234/* confdefs.h. */
24235_ACEOF
24236cat confdefs.h >>conftest.$ac_ext
24237cat >>conftest.$ac_ext <<_ACEOF
24238/* end confdefs.h. */
24239$ac_includes_default
24240int
24241main ()
24242{
24243if (sizeof (off_t))
24244 return 0;
24245 ;
24246 return 0;
24247}
24248_ACEOF
24249rm -f conftest.$ac_objext
24250if { (ac_try="$ac_compile"
24251case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24254esac
24255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24256$as_echo "$ac_try_echo") >&5
24257 (eval "$ac_compile") 2>conftest.er1
24258 ac_status=$?
24259 grep -v '^ *+' conftest.er1 >conftest.err
24260 rm -f conftest.er1
24261 cat conftest.err >&5
24262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest.$ac_objext; then
24267 cat >conftest.$ac_ext <<_ACEOF
24268/* confdefs.h. */
24269_ACEOF
24270cat confdefs.h >>conftest.$ac_ext
24271cat >>conftest.$ac_ext <<_ACEOF
24272/* end confdefs.h. */
24273$ac_includes_default
24274int
24275main ()
24276{
24277if (sizeof ((off_t)))
24278 return 0;
24279 ;
24280 return 0;
24281}
24282_ACEOF
24283rm -f conftest.$ac_objext
24284if { (ac_try="$ac_compile"
24285case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24288esac
24289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24290$as_echo "$ac_try_echo") >&5
24291 (eval "$ac_compile") 2>conftest.er1
24292 ac_status=$?
24293 grep -v '^ *+' conftest.er1 >conftest.err
24294 rm -f conftest.er1
24295 cat conftest.err >&5
24296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest.$ac_objext; then
24301 :
24302else
24303 $as_echo "$as_me: failed program was:" >&5
24304sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ac_cv_type_off_t=yes
24307fi
24308
24309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310else
24311 $as_echo "$as_me: failed program was:" >&5
24312sed 's/^/| /' conftest.$ac_ext >&5
24313
24314
24315fi
24316
24317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318fi
24319{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24320$as_echo "$ac_cv_type_off_t" >&6; }
24321if test "x$ac_cv_type_off_t" = x""yes; then
24322 :
24323else
24324
24325cat >>confdefs.h <<_ACEOF
24326#define off_t long int
24327_ACEOF
24328
24329fi
24330
24331
24332# Define pid_t to a suitable type, if standard headers do not define it.
24333{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24334$as_echo_n "checking for pid_t... " >&6; }
24335if test "${ac_cv_type_pid_t+set}" = set; then
24336 $as_echo_n "(cached) " >&6
24337else
24338 ac_cv_type_pid_t=no
24339cat >conftest.$ac_ext <<_ACEOF
24340/* confdefs.h. */
24341_ACEOF
24342cat confdefs.h >>conftest.$ac_ext
24343cat >>conftest.$ac_ext <<_ACEOF
24344/* end confdefs.h. */
24345$ac_includes_default
24346int
24347main ()
24348{
24349if (sizeof (pid_t))
24350 return 0;
24351 ;
24352 return 0;
24353}
24354_ACEOF
24355rm -f conftest.$ac_objext
24356if { (ac_try="$ac_compile"
24357case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24360esac
24361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362$as_echo "$ac_try_echo") >&5
24363 (eval "$ac_compile") 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest.$ac_objext; then
24373 cat >conftest.$ac_ext <<_ACEOF
24374/* confdefs.h. */
24375_ACEOF
24376cat confdefs.h >>conftest.$ac_ext
24377cat >>conftest.$ac_ext <<_ACEOF
24378/* end confdefs.h. */
24379$ac_includes_default
24380int
24381main ()
24382{
24383if (sizeof ((pid_t)))
24384 return 0;
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext
24390if { (ac_try="$ac_compile"
24391case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394esac
24395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24396$as_echo "$ac_try_echo") >&5
24397 (eval "$ac_compile") 2>conftest.er1
24398 ac_status=$?
24399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest.$ac_objext; then
24407 :
24408else
24409 $as_echo "$as_me: failed program was:" >&5
24410sed 's/^/| /' conftest.$ac_ext >&5
24411
24412 ac_cv_type_pid_t=yes
24413fi
24414
24415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416else
24417 $as_echo "$as_me: failed program was:" >&5
24418sed 's/^/| /' conftest.$ac_ext >&5
24419
24420
24421fi
24422
24423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24424fi
24425{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24426$as_echo "$ac_cv_type_pid_t" >&6; }
24427if test "x$ac_cv_type_pid_t" = x""yes; then
24428 :
24429else
24430
24431cat >>confdefs.h <<_ACEOF
24432#define pid_t int
24433_ACEOF
24434
24435fi
24436
24437
24438# Define size_t to a suitable type, if standard headers do not define it.
24439{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
24440$as_echo_n "checking for size_t... " >&6; }
24441if test "${ac_cv_type_size_t+set}" = set; then
24442 $as_echo_n "(cached) " >&6
24443else
24444 ac_cv_type_size_t=no
24445cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
24451$ac_includes_default
24452int
24453main ()
24454{
24455if (sizeof (size_t))
24456 return 0;
24457 ;
24458 return 0;
24459}
24460_ACEOF
24461rm -f conftest.$ac_objext
24462if { (ac_try="$ac_compile"
24463case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24466esac
24467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24468$as_echo "$ac_try_echo") >&5
24469 (eval "$ac_compile") 2>conftest.er1
24470 ac_status=$?
24471 grep -v '^ *+' conftest.er1 >conftest.err
24472 rm -f conftest.er1
24473 cat conftest.err >&5
24474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } && {
24476 test -z "$ac_c_werror_flag" ||
24477 test ! -s conftest.err
24478 } && test -s conftest.$ac_objext; then
24479 cat >conftest.$ac_ext <<_ACEOF
24480/* confdefs.h. */
24481_ACEOF
24482cat confdefs.h >>conftest.$ac_ext
24483cat >>conftest.$ac_ext <<_ACEOF
24484/* end confdefs.h. */
24485$ac_includes_default
24486int
24487main ()
24488{
24489if (sizeof ((size_t)))
24490 return 0;
24491 ;
24492 return 0;
24493}
24494_ACEOF
24495rm -f conftest.$ac_objext
24496if { (ac_try="$ac_compile"
24497case "(($ac_try" in
24498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499 *) ac_try_echo=$ac_try;;
24500esac
24501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24502$as_echo "$ac_try_echo") >&5
24503 (eval "$ac_compile") 2>conftest.er1
24504 ac_status=$?
24505 grep -v '^ *+' conftest.er1 >conftest.err
24506 rm -f conftest.er1
24507 cat conftest.err >&5
24508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } && {
24510 test -z "$ac_c_werror_flag" ||
24511 test ! -s conftest.err
24512 } && test -s conftest.$ac_objext; then
24513 :
24514else
24515 $as_echo "$as_me: failed program was:" >&5
24516sed 's/^/| /' conftest.$ac_ext >&5
24517
24518 ac_cv_type_size_t=yes
24519fi
24520
24521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522else
24523 $as_echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526
24527fi
24528
24529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530fi
24531{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24532$as_echo "$ac_cv_type_size_t" >&6; }
24533if test "x$ac_cv_type_size_t" = x""yes; then
24534 :
24535else
24536
24537cat >>confdefs.h <<_ACEOF
24538#define size_t unsigned int
24539_ACEOF
24540
24541fi
24542
24543
24544# Define ssize_t to a suitable type, if standard headers do not define it.
24545{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
24546$as_echo_n "checking for ssize_t... " >&6; }
24547if test "${ac_cv_type_ssize_t+set}" = set; then
24548 $as_echo_n "(cached) " >&6
24549else
24550 ac_cv_type_ssize_t=no
24551cat >conftest.$ac_ext <<_ACEOF
24552/* confdefs.h. */
24553_ACEOF
24554cat confdefs.h >>conftest.$ac_ext
24555cat >>conftest.$ac_ext <<_ACEOF
24556/* end confdefs.h. */
24557$ac_includes_default
24558int
24559main ()
24560{
24561if (sizeof (ssize_t))
24562 return 0;
24563 ;
24564 return 0;
24565}
24566_ACEOF
24567rm -f conftest.$ac_objext
24568if { (ac_try="$ac_compile"
24569case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24572esac
24573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24574$as_echo "$ac_try_echo") >&5
24575 (eval "$ac_compile") 2>conftest.er1
24576 ac_status=$?
24577 grep -v '^ *+' conftest.er1 >conftest.err
24578 rm -f conftest.er1
24579 cat conftest.err >&5
24580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && {
24582 test -z "$ac_c_werror_flag" ||
24583 test ! -s conftest.err
24584 } && test -s conftest.$ac_objext; then
24585 cat >conftest.$ac_ext <<_ACEOF
24586/* confdefs.h. */
24587_ACEOF
24588cat confdefs.h >>conftest.$ac_ext
24589cat >>conftest.$ac_ext <<_ACEOF
24590/* end confdefs.h. */
24591$ac_includes_default
24592int
24593main ()
24594{
24595if (sizeof ((ssize_t)))
24596 return 0;
24597 ;
24598 return 0;
24599}
24600_ACEOF
24601rm -f conftest.$ac_objext
24602if { (ac_try="$ac_compile"
24603case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24606esac
24607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24608$as_echo "$ac_try_echo") >&5
24609 (eval "$ac_compile") 2>conftest.er1
24610 ac_status=$?
24611 grep -v '^ *+' conftest.er1 >conftest.err
24612 rm -f conftest.er1
24613 cat conftest.err >&5
24614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } && {
24616 test -z "$ac_c_werror_flag" ||
24617 test ! -s conftest.err
24618 } && test -s conftest.$ac_objext; then
24619 :
24620else
24621 $as_echo "$as_me: failed program was:" >&5
24622sed 's/^/| /' conftest.$ac_ext >&5
24623
24624 ac_cv_type_ssize_t=yes
24625fi
24626
24627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628else
24629 $as_echo "$as_me: failed program was:" >&5
24630sed 's/^/| /' conftest.$ac_ext >&5
24631
24632
24633fi
24634
24635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636fi
24637{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24638$as_echo "$ac_cv_type_ssize_t" >&6; }
24639if test "x$ac_cv_type_ssize_t" = x""yes; then
24640 :
24641else
24642
24643cat >>confdefs.h <<_ACEOF
24644#define ssize_t int
24645_ACEOF
24646
24647fi
24648
24649
24650# If the C compiler supports a working long double type with more range
24651# or precision than the double type, define HAVE_LONG_DOUBLE.
24652
24653 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
24654$as_echo_n "checking for long double with more range or precision than double... " >&6; }
24655if test "${ac_cv_type_long_double_wider+set}" = set; then
24656 $as_echo_n "(cached) " >&6
24657else
24658 cat >conftest.$ac_ext <<_ACEOF
24659/* confdefs.h. */
24660_ACEOF
24661cat confdefs.h >>conftest.$ac_ext
24662cat >>conftest.$ac_ext <<_ACEOF
24663/* end confdefs.h. */
24664#include <float.h>
24665 long double const a[] =
24666 {
24667 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24668 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24669 };
24670 long double
24671 f (long double x)
24672 {
24673 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24674 + (x ? f (x) : 'c'));
24675 }
24676
24677int
24678main ()
24679{
24680static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24681 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24682 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24683 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24684 && (int) LDBL_EPSILON == 0
24685 )];
24686test_array [0] = 0
24687
24688 ;
24689 return 0;
24690}
24691_ACEOF
24692rm -f conftest.$ac_objext
24693if { (ac_try="$ac_compile"
24694case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697esac
24698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699$as_echo "$ac_try_echo") >&5
24700 (eval "$ac_compile") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } && {
24707 test -z "$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 } && test -s conftest.$ac_objext; then
24710 ac_cv_type_long_double_wider=yes
24711else
24712 $as_echo "$as_me: failed program was:" >&5
24713sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_cv_type_long_double_wider=no
24716fi
24717
24718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719fi
24720{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
24721$as_echo "$ac_cv_type_long_double_wider" >&6; }
24722 if test $ac_cv_type_long_double_wider = yes; then
24723
24724cat >>confdefs.h <<\_ACEOF
24725#define HAVE_LONG_DOUBLE_WIDER 1
24726_ACEOF
24727
24728 fi
24729
24730
24731# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24732# C compiler predefines it.
24733
24734{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
24735$as_echo_n "checking whether char is unsigned... " >&6; }
24736if test "${ac_cv_c_char_unsigned+set}" = set; then
24737 $as_echo_n "(cached) " >&6
24738else
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 * !(((char) -1) < 0)];
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_cv_c_char_unsigned=no
24775else
24776 $as_echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_cv_c_char_unsigned=yes
24780fi
24781
24782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783fi
24784{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
24785$as_echo "$ac_cv_c_char_unsigned" >&6; }
24786if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24787 cat >>confdefs.h <<\_ACEOF
24788#define __CHAR_UNSIGNED__ 1
24789_ACEOF
24790
24791fi
24792
24793
24794# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24795# The cast to long int works around a bug in the HP C Compiler
24796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24798# This bug is HP SR number 8606223364.
24799{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
24800$as_echo_n "checking size of signed short... " >&6; }
24801if test "${ac_cv_sizeof_signed_short+set}" = set; then
24802 $as_echo_n "(cached) " >&6
24803else
24804 if test "$cross_compiling" = yes; then
24805 # Depending upon the size, compute the lo and hi bounds.
24806cat >conftest.$ac_ext <<_ACEOF
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812$ac_includes_default
24813int
24814main ()
24815{
24816static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
24817test_array [0] = 0
24818
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823rm -f conftest.$ac_objext
24824if { (ac_try="$ac_compile"
24825case "(($ac_try" in
24826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24828esac
24829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24830$as_echo "$ac_try_echo") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24832 ac_status=$?
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
24836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24841 ac_lo=0 ac_mid=0
24842 while :; do
24843 cat >conftest.$ac_ext <<_ACEOF
24844/* confdefs.h. */
24845_ACEOF
24846cat confdefs.h >>conftest.$ac_ext
24847cat >>conftest.$ac_ext <<_ACEOF
24848/* end confdefs.h. */
24849$ac_includes_default
24850int
24851main ()
24852{
24853static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24854test_array [0] = 0
24855
24856 ;
24857 return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext
24861if { (ac_try="$ac_compile"
24862case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24865esac
24866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24867$as_echo "$ac_try_echo") >&5
24868 (eval "$ac_compile") 2>conftest.er1
24869 ac_status=$?
24870 grep -v '^ *+' conftest.er1 >conftest.err
24871 rm -f conftest.er1
24872 cat conftest.err >&5
24873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } && {
24875 test -z "$ac_c_werror_flag" ||
24876 test ! -s conftest.err
24877 } && test -s conftest.$ac_objext; then
24878 ac_hi=$ac_mid; break
24879else
24880 $as_echo "$as_me: failed program was:" >&5
24881sed 's/^/| /' conftest.$ac_ext >&5
24882
24883 ac_lo=`expr $ac_mid + 1`
24884 if test $ac_lo -le $ac_mid; then
24885 ac_lo= ac_hi=
24886 break
24887 fi
24888 ac_mid=`expr 2 '*' $ac_mid + 1`
24889fi
24890
24891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 done
24893else
24894 $as_echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897 cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903$ac_includes_default
24904int
24905main ()
24906{
24907static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24908test_array [0] = 0
24909
24910 ;
24911 return 0;
24912}
24913_ACEOF
24914rm -f conftest.$ac_objext
24915if { (ac_try="$ac_compile"
24916case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24919esac
24920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921$as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24923 ac_status=$?
24924 grep -v '^ *+' conftest.er1 >conftest.err
24925 rm -f conftest.er1
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24932 ac_hi=-1 ac_mid=-1
24933 while :; do
24934 cat >conftest.$ac_ext <<_ACEOF
24935/* confdefs.h. */
24936_ACEOF
24937cat confdefs.h >>conftest.$ac_ext
24938cat >>conftest.$ac_ext <<_ACEOF
24939/* end confdefs.h. */
24940$ac_includes_default
24941int
24942main ()
24943{
24944static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24945test_array [0] = 0
24946
24947 ;
24948 return 0;
24949}
24950_ACEOF
24951rm -f conftest.$ac_objext
24952if { (ac_try="$ac_compile"
24953case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956esac
24957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24958$as_echo "$ac_try_echo") >&5
24959 (eval "$ac_compile") 2>conftest.er1
24960 ac_status=$?
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
24964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest.$ac_objext; then
24969 ac_lo=$ac_mid; break
24970else
24971 $as_echo "$as_me: failed program was:" >&5
24972sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 ac_hi=`expr '(' $ac_mid ')' - 1`
24975 if test $ac_mid -le $ac_hi; then
24976 ac_lo= ac_hi=
24977 break
24978 fi
24979 ac_mid=`expr 2 '*' $ac_mid`
24980fi
24981
24982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24983 done
24984else
24985 $as_echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ac_lo= ac_hi=
24989fi
24990
24991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24992fi
24993
24994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995# Binary search between lo and hi bounds.
24996while test "x$ac_lo" != "x$ac_hi"; do
24997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24998 cat >conftest.$ac_ext <<_ACEOF
24999/* confdefs.h. */
25000_ACEOF
25001cat confdefs.h >>conftest.$ac_ext
25002cat >>conftest.$ac_ext <<_ACEOF
25003/* end confdefs.h. */
25004$ac_includes_default
25005int
25006main ()
25007{
25008static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
25009test_array [0] = 0
25010
25011 ;
25012 return 0;
25013}
25014_ACEOF
25015rm -f conftest.$ac_objext
25016if { (ac_try="$ac_compile"
25017case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25020esac
25021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25022$as_echo "$ac_try_echo") >&5
25023 (eval "$ac_compile") 2>conftest.er1
25024 ac_status=$?
25025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
25028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } && {
25030 test -z "$ac_c_werror_flag" ||
25031 test ! -s conftest.err
25032 } && test -s conftest.$ac_objext; then
25033 ac_hi=$ac_mid
25034else
25035 $as_echo "$as_me: failed program was:" >&5
25036sed 's/^/| /' conftest.$ac_ext >&5
25037
25038 ac_lo=`expr '(' $ac_mid ')' + 1`
25039fi
25040
25041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042done
25043case $ac_lo in
25044?*) ac_cv_sizeof_signed_short=$ac_lo;;
25045'') if test "$ac_cv_type_signed_short" = yes; then
25046 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25048{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
25049See \`config.log' for more details." >&5
25050$as_echo "$as_me: error: cannot compute sizeof (signed short)
25051See \`config.log' for more details." >&2;}
25052 { (exit 77); exit 77; }; }; }
25053 else
25054 ac_cv_sizeof_signed_short=0
25055 fi ;;
25056esac
25057else
25058 cat >conftest.$ac_ext <<_ACEOF
25059/* confdefs.h. */
25060_ACEOF
25061cat confdefs.h >>conftest.$ac_ext
25062cat >>conftest.$ac_ext <<_ACEOF
25063/* end confdefs.h. */
25064$ac_includes_default
25065static long int longval () { return (long int) (sizeof (signed short)); }
25066static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
25067#include <stdio.h>
25068#include <stdlib.h>
25069int
25070main ()
25071{
25072
25073 FILE *f = fopen ("conftest.val", "w");
25074 if (! f)
25075 return 1;
25076 if (((long int) (sizeof (signed short))) < 0)
25077 {
25078 long int i = longval ();
25079 if (i != ((long int) (sizeof (signed short))))
25080 return 1;
25081 fprintf (f, "%ld", i);
25082 }
25083 else
25084 {
25085 unsigned long int i = ulongval ();
25086 if (i != ((long int) (sizeof (signed short))))
25087 return 1;
25088 fprintf (f, "%lu", i);
25089 }
25090 /* Do not output a trailing newline, as this causes \r\n confusion
25091 on some platforms. */
25092 return ferror (f) || fclose (f) != 0;
25093
25094 ;
25095 return 0;
25096}
25097_ACEOF
25098rm -f conftest$ac_exeext
25099if { (ac_try="$ac_link"
25100case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103esac
25104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105$as_echo "$ac_try_echo") >&5
25106 (eval "$ac_link") 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25110 { (case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25113esac
25114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25115$as_echo "$ac_try_echo") >&5
25116 (eval "$ac_try") 2>&5
25117 ac_status=$?
25118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 ac_cv_sizeof_signed_short=`cat conftest.val`
25121else
25122 $as_echo "$as_me: program exited with status $ac_status" >&5
25123$as_echo "$as_me: failed program was:" >&5
25124sed 's/^/| /' conftest.$ac_ext >&5
25125
25126( exit $ac_status )
25127if test "$ac_cv_type_signed_short" = yes; then
25128 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25130{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
25131See \`config.log' for more details." >&5
25132$as_echo "$as_me: error: cannot compute sizeof (signed short)
25133See \`config.log' for more details." >&2;}
25134 { (exit 77); exit 77; }; }; }
25135 else
25136 ac_cv_sizeof_signed_short=0
25137 fi
25138fi
25139rm -rf conftest.dSYM
25140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25141fi
25142rm -f conftest.val
25143fi
25144{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
25145$as_echo "$ac_cv_sizeof_signed_short" >&6; }
25146
25147
25148
25149cat >>confdefs.h <<_ACEOF
25150#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
25151_ACEOF
25152
25153
25154
25155# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
25156# The cast to long int works around a bug in the HP C Compiler
25157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25159# This bug is HP SR number 8606223364.
25160{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
25161$as_echo_n "checking size of unsigned short... " >&6; }
25162if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
25163 $as_echo_n "(cached) " >&6
25164else
25165 if test "$cross_compiling" = yes; then
25166 # Depending upon the size, compute the lo and hi bounds.
25167cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173$ac_includes_default
25174int
25175main ()
25176{
25177static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
25178test_array [0] = 0
25179
25180 ;
25181 return 0;
25182}
25183_ACEOF
25184rm -f conftest.$ac_objext
25185if { (ac_try="$ac_compile"
25186case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25189esac
25190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191$as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25193 ac_status=$?
25194 grep -v '^ *+' conftest.er1 >conftest.err
25195 rm -f conftest.er1
25196 cat conftest.err >&5
25197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.$ac_objext; then
25202 ac_lo=0 ac_mid=0
25203 while :; do
25204 cat >conftest.$ac_ext <<_ACEOF
25205/* confdefs.h. */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h. */
25210$ac_includes_default
25211int
25212main ()
25213{
25214static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25215test_array [0] = 0
25216
25217 ;
25218 return 0;
25219}
25220_ACEOF
25221rm -f conftest.$ac_objext
25222if { (ac_try="$ac_compile"
25223case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25226esac
25227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25228$as_echo "$ac_try_echo") >&5
25229 (eval "$ac_compile") 2>conftest.er1
25230 ac_status=$?
25231 grep -v '^ *+' conftest.er1 >conftest.err
25232 rm -f conftest.er1
25233 cat conftest.err >&5
25234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } && {
25236 test -z "$ac_c_werror_flag" ||
25237 test ! -s conftest.err
25238 } && test -s conftest.$ac_objext; then
25239 ac_hi=$ac_mid; break
25240else
25241 $as_echo "$as_me: failed program was:" >&5
25242sed 's/^/| /' conftest.$ac_ext >&5
25243
25244 ac_lo=`expr $ac_mid + 1`
25245 if test $ac_lo -le $ac_mid; then
25246 ac_lo= ac_hi=
25247 break
25248 fi
25249 ac_mid=`expr 2 '*' $ac_mid + 1`
25250fi
25251
25252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25253 done
25254else
25255 $as_echo "$as_me: failed program was:" >&5
25256sed 's/^/| /' conftest.$ac_ext >&5
25257
25258 cat >conftest.$ac_ext <<_ACEOF
25259/* confdefs.h. */
25260_ACEOF
25261cat confdefs.h >>conftest.$ac_ext
25262cat >>conftest.$ac_ext <<_ACEOF
25263/* end confdefs.h. */
25264$ac_includes_default
25265int
25266main ()
25267{
25268static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
25269test_array [0] = 0
25270
25271 ;
25272 return 0;
25273}
25274_ACEOF
25275rm -f conftest.$ac_objext
25276if { (ac_try="$ac_compile"
25277case "(($ac_try" in
25278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279 *) ac_try_echo=$ac_try;;
25280esac
25281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25282$as_echo "$ac_try_echo") >&5
25283 (eval "$ac_compile") 2>conftest.er1
25284 ac_status=$?
25285 grep -v '^ *+' conftest.er1 >conftest.err
25286 rm -f conftest.er1
25287 cat conftest.err >&5
25288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && {
25290 test -z "$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 } && test -s conftest.$ac_objext; then
25293 ac_hi=-1 ac_mid=-1
25294 while :; do
25295 cat >conftest.$ac_ext <<_ACEOF
25296/* confdefs.h. */
25297_ACEOF
25298cat confdefs.h >>conftest.$ac_ext
25299cat >>conftest.$ac_ext <<_ACEOF
25300/* end confdefs.h. */
25301$ac_includes_default
25302int
25303main ()
25304{
25305static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
25306test_array [0] = 0
25307
25308 ;
25309 return 0;
25310}
25311_ACEOF
25312rm -f conftest.$ac_objext
25313if { (ac_try="$ac_compile"
25314case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25317esac
25318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25319$as_echo "$ac_try_echo") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25321 ac_status=$?
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
25325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25330 ac_lo=$ac_mid; break
25331else
25332 $as_echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 ac_hi=`expr '(' $ac_mid ')' - 1`
25336 if test $ac_mid -le $ac_hi; then
25337 ac_lo= ac_hi=
25338 break
25339 fi
25340 ac_mid=`expr 2 '*' $ac_mid`
25341fi
25342
25343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 done
25345else
25346 $as_echo "$as_me: failed program was:" >&5
25347sed 's/^/| /' conftest.$ac_ext >&5
25348
25349 ac_lo= ac_hi=
25350fi
25351
25352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353fi
25354
25355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356# Binary search between lo and hi bounds.
25357while test "x$ac_lo" != "x$ac_hi"; do
25358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25359 cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h. */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h. */
25365$ac_includes_default
25366int
25367main ()
25368{
25369static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25370test_array [0] = 0
25371
25372 ;
25373 return 0;
25374}
25375_ACEOF
25376rm -f conftest.$ac_objext
25377if { (ac_try="$ac_compile"
25378case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25381esac
25382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383$as_echo "$ac_try_echo") >&5
25384 (eval "$ac_compile") 2>conftest.er1
25385 ac_status=$?
25386 grep -v '^ *+' conftest.er1 >conftest.err
25387 rm -f conftest.er1
25388 cat conftest.err >&5
25389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest.$ac_objext; then
25394 ac_hi=$ac_mid
25395else
25396 $as_echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399 ac_lo=`expr '(' $ac_mid ')' + 1`
25400fi
25401
25402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403done
25404case $ac_lo in
25405?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25406'') if test "$ac_cv_type_unsigned_short" = yes; then
25407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25409{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25410See \`config.log' for more details." >&5
25411$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25412See \`config.log' for more details." >&2;}
25413 { (exit 77); exit 77; }; }; }
25414 else
25415 ac_cv_sizeof_unsigned_short=0
25416 fi ;;
25417esac
25418else
25419 cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
25425$ac_includes_default
25426static long int longval () { return (long int) (sizeof (unsigned short)); }
25427static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
25428#include <stdio.h>
25429#include <stdlib.h>
25430int
25431main ()
25432{
25433
25434 FILE *f = fopen ("conftest.val", "w");
25435 if (! f)
25436 return 1;
25437 if (((long int) (sizeof (unsigned short))) < 0)
25438 {
25439 long int i = longval ();
25440 if (i != ((long int) (sizeof (unsigned short))))
25441 return 1;
25442 fprintf (f, "%ld", i);
25443 }
25444 else
25445 {
25446 unsigned long int i = ulongval ();
25447 if (i != ((long int) (sizeof (unsigned short))))
25448 return 1;
25449 fprintf (f, "%lu", i);
25450 }
25451 /* Do not output a trailing newline, as this causes \r\n confusion
25452 on some platforms. */
25453 return ferror (f) || fclose (f) != 0;
25454
25455 ;
25456 return 0;
25457}
25458_ACEOF
25459rm -f conftest$ac_exeext
25460if { (ac_try="$ac_link"
25461case "(($ac_try" in
25462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463 *) ac_try_echo=$ac_try;;
25464esac
25465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25466$as_echo "$ac_try_echo") >&5
25467 (eval "$ac_link") 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25471 { (case "(($ac_try" in
25472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473 *) ac_try_echo=$ac_try;;
25474esac
25475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25476$as_echo "$ac_try_echo") >&5
25477 (eval "$ac_try") 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; }; then
25481 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25482else
25483 $as_echo "$as_me: program exited with status $ac_status" >&5
25484$as_echo "$as_me: failed program was:" >&5
25485sed 's/^/| /' conftest.$ac_ext >&5
25486
25487( exit $ac_status )
25488if test "$ac_cv_type_unsigned_short" = yes; then
25489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25491{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25492See \`config.log' for more details." >&5
25493$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25494See \`config.log' for more details." >&2;}
25495 { (exit 77); exit 77; }; }; }
25496 else
25497 ac_cv_sizeof_unsigned_short=0
25498 fi
25499fi
25500rm -rf conftest.dSYM
25501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25502fi
25503rm -f conftest.val
25504fi
25505{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25506$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
25507
25508
25509
25510cat >>confdefs.h <<_ACEOF
25511#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25512_ACEOF
25513
25514
25515
25516# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
25517# The cast to long int works around a bug in the HP C Compiler
25518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25520# This bug is HP SR number 8606223364.
25521{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
25522$as_echo_n "checking size of signed int... " >&6; }
25523if test "${ac_cv_sizeof_signed_int+set}" = set; then
25524 $as_echo_n "(cached) " >&6
25525else
25526 if test "$cross_compiling" = yes; then
25527 # Depending upon the size, compute the lo and hi bounds.
25528cat >conftest.$ac_ext <<_ACEOF
25529/* confdefs.h. */
25530_ACEOF
25531cat confdefs.h >>conftest.$ac_ext
25532cat >>conftest.$ac_ext <<_ACEOF
25533/* end confdefs.h. */
25534$ac_includes_default
25535int
25536main ()
25537{
25538static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
25539test_array [0] = 0
25540
25541 ;
25542 return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext
25546if { (ac_try="$ac_compile"
25547case "(($ac_try" in
25548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549 *) ac_try_echo=$ac_try;;
25550esac
25551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25552$as_echo "$ac_try_echo") >&5
25553 (eval "$ac_compile") 2>conftest.er1
25554 ac_status=$?
25555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
25558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } && {
25560 test -z "$ac_c_werror_flag" ||
25561 test ! -s conftest.err
25562 } && test -s conftest.$ac_objext; then
25563 ac_lo=0 ac_mid=0
25564 while :; do
25565 cat >conftest.$ac_ext <<_ACEOF
25566/* confdefs.h. */
25567_ACEOF
25568cat confdefs.h >>conftest.$ac_ext
25569cat >>conftest.$ac_ext <<_ACEOF
25570/* end confdefs.h. */
25571$ac_includes_default
25572int
25573main ()
25574{
25575static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25576test_array [0] = 0
25577
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext
25583if { (ac_try="$ac_compile"
25584case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25587esac
25588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589$as_echo "$ac_try_echo") >&5
25590 (eval "$ac_compile") 2>conftest.er1
25591 ac_status=$?
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
25595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } && {
25597 test -z "$ac_c_werror_flag" ||
25598 test ! -s conftest.err
25599 } && test -s conftest.$ac_objext; then
25600 ac_hi=$ac_mid; break
25601else
25602 $as_echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_lo=`expr $ac_mid + 1`
25606 if test $ac_lo -le $ac_mid; then
25607 ac_lo= ac_hi=
25608 break
25609 fi
25610 ac_mid=`expr 2 '*' $ac_mid + 1`
25611fi
25612
25613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 done
25615else
25616 $as_echo "$as_me: failed program was:" >&5
25617sed 's/^/| /' conftest.$ac_ext >&5
25618
25619 cat >conftest.$ac_ext <<_ACEOF
25620/* confdefs.h. */
25621_ACEOF
25622cat confdefs.h >>conftest.$ac_ext
25623cat >>conftest.$ac_ext <<_ACEOF
25624/* end confdefs.h. */
25625$ac_includes_default
25626int
25627main ()
25628{
25629static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
25630test_array [0] = 0
25631
25632 ;
25633 return 0;
25634}
25635_ACEOF
25636rm -f conftest.$ac_objext
25637if { (ac_try="$ac_compile"
25638case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641esac
25642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25643$as_echo "$ac_try_echo") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_hi=-1 ac_mid=-1
25655 while :; do
25656 cat >conftest.$ac_ext <<_ACEOF
25657/* confdefs.h. */
25658_ACEOF
25659cat confdefs.h >>conftest.$ac_ext
25660cat >>conftest.$ac_ext <<_ACEOF
25661/* end confdefs.h. */
25662$ac_includes_default
25663int
25664main ()
25665{
25666static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
25667test_array [0] = 0
25668
25669 ;
25670 return 0;
25671}
25672_ACEOF
25673rm -f conftest.$ac_objext
25674if { (ac_try="$ac_compile"
25675case "(($ac_try" in
25676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25677 *) ac_try_echo=$ac_try;;
25678esac
25679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25680$as_echo "$ac_try_echo") >&5
25681 (eval "$ac_compile") 2>conftest.er1
25682 ac_status=$?
25683 grep -v '^ *+' conftest.er1 >conftest.err
25684 rm -f conftest.er1
25685 cat conftest.err >&5
25686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } && {
25688 test -z "$ac_c_werror_flag" ||
25689 test ! -s conftest.err
25690 } && test -s conftest.$ac_objext; then
25691 ac_lo=$ac_mid; break
25692else
25693 $as_echo "$as_me: failed program was:" >&5
25694sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ac_hi=`expr '(' $ac_mid ')' - 1`
25697 if test $ac_mid -le $ac_hi; then
25698 ac_lo= ac_hi=
25699 break
25700 fi
25701 ac_mid=`expr 2 '*' $ac_mid`
25702fi
25703
25704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 done
25706else
25707 $as_echo "$as_me: failed program was:" >&5
25708sed 's/^/| /' conftest.$ac_ext >&5
25709
25710 ac_lo= ac_hi=
25711fi
25712
25713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714fi
25715
25716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717# Binary search between lo and hi bounds.
25718while test "x$ac_lo" != "x$ac_hi"; do
25719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25720 cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726$ac_includes_default
25727int
25728main ()
25729{
25730static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25731test_array [0] = 0
25732
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext
25738if { (ac_try="$ac_compile"
25739case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25742esac
25743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25744$as_echo "$ac_try_echo") >&5
25745 (eval "$ac_compile") 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } && {
25752 test -z "$ac_c_werror_flag" ||
25753 test ! -s conftest.err
25754 } && test -s conftest.$ac_objext; then
25755 ac_hi=$ac_mid
25756else
25757 $as_echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 ac_lo=`expr '(' $ac_mid ')' + 1`
25761fi
25762
25763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764done
25765case $ac_lo in
25766?*) ac_cv_sizeof_signed_int=$ac_lo;;
25767'') if test "$ac_cv_type_signed_int" = yes; then
25768 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25770{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25771See \`config.log' for more details." >&5
25772$as_echo "$as_me: error: cannot compute sizeof (signed int)
25773See \`config.log' for more details." >&2;}
25774 { (exit 77); exit 77; }; }; }
25775 else
25776 ac_cv_sizeof_signed_int=0
25777 fi ;;
25778esac
25779else
25780 cat >conftest.$ac_ext <<_ACEOF
25781/* confdefs.h. */
25782_ACEOF
25783cat confdefs.h >>conftest.$ac_ext
25784cat >>conftest.$ac_ext <<_ACEOF
25785/* end confdefs.h. */
25786$ac_includes_default
25787static long int longval () { return (long int) (sizeof (signed int)); }
25788static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
25789#include <stdio.h>
25790#include <stdlib.h>
25791int
25792main ()
25793{
25794
25795 FILE *f = fopen ("conftest.val", "w");
25796 if (! f)
25797 return 1;
25798 if (((long int) (sizeof (signed int))) < 0)
25799 {
25800 long int i = longval ();
25801 if (i != ((long int) (sizeof (signed int))))
25802 return 1;
25803 fprintf (f, "%ld", i);
25804 }
25805 else
25806 {
25807 unsigned long int i = ulongval ();
25808 if (i != ((long int) (sizeof (signed int))))
25809 return 1;
25810 fprintf (f, "%lu", i);
25811 }
25812 /* Do not output a trailing newline, as this causes \r\n confusion
25813 on some platforms. */
25814 return ferror (f) || fclose (f) != 0;
25815
25816 ;
25817 return 0;
25818}
25819_ACEOF
25820rm -f conftest$ac_exeext
25821if { (ac_try="$ac_link"
25822case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25825esac
25826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827$as_echo "$ac_try_echo") >&5
25828 (eval "$ac_link") 2>&5
25829 ac_status=$?
25830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25832 { (case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25835esac
25836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25837$as_echo "$ac_try_echo") >&5
25838 (eval "$ac_try") 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25842 ac_cv_sizeof_signed_int=`cat conftest.val`
25843else
25844 $as_echo "$as_me: program exited with status $ac_status" >&5
25845$as_echo "$as_me: failed program was:" >&5
25846sed 's/^/| /' conftest.$ac_ext >&5
25847
25848( exit $ac_status )
25849if test "$ac_cv_type_signed_int" = yes; then
25850 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25852{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25853See \`config.log' for more details." >&5
25854$as_echo "$as_me: error: cannot compute sizeof (signed int)
25855See \`config.log' for more details." >&2;}
25856 { (exit 77); exit 77; }; }; }
25857 else
25858 ac_cv_sizeof_signed_int=0
25859 fi
25860fi
25861rm -rf conftest.dSYM
25862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25863fi
25864rm -f conftest.val
25865fi
25866{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25867$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25868
25869
25870
25871cat >>confdefs.h <<_ACEOF
25872#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25873_ACEOF
25874
25875
25876
25877# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25878# The cast to long int works around a bug in the HP C Compiler
25879# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25880# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25881# This bug is HP SR number 8606223364.
25882{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25883$as_echo_n "checking size of unsigned int... " >&6; }
25884if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25885 $as_echo_n "(cached) " >&6
25886else
25887 if test "$cross_compiling" = yes; then
25888 # Depending upon the size, compute the lo and hi bounds.
25889cat >conftest.$ac_ext <<_ACEOF
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
25895$ac_includes_default
25896int
25897main ()
25898{
25899static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25900test_array [0] = 0
25901
25902 ;
25903 return 0;
25904}
25905_ACEOF
25906rm -f conftest.$ac_objext
25907if { (ac_try="$ac_compile"
25908case "(($ac_try" in
25909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910 *) ac_try_echo=$ac_try;;
25911esac
25912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25913$as_echo "$ac_try_echo") >&5
25914 (eval "$ac_compile") 2>conftest.er1
25915 ac_status=$?
25916 grep -v '^ *+' conftest.er1 >conftest.err
25917 rm -f conftest.er1
25918 cat conftest.err >&5
25919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } && {
25921 test -z "$ac_c_werror_flag" ||
25922 test ! -s conftest.err
25923 } && test -s conftest.$ac_objext; then
25924 ac_lo=0 ac_mid=0
25925 while :; do
25926 cat >conftest.$ac_ext <<_ACEOF
25927/* confdefs.h. */
25928_ACEOF
25929cat confdefs.h >>conftest.$ac_ext
25930cat >>conftest.$ac_ext <<_ACEOF
25931/* end confdefs.h. */
25932$ac_includes_default
25933int
25934main ()
25935{
25936static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25937test_array [0] = 0
25938
25939 ;
25940 return 0;
25941}
25942_ACEOF
25943rm -f conftest.$ac_objext
25944if { (ac_try="$ac_compile"
25945case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25948esac
25949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950$as_echo "$ac_try_echo") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25952 ac_status=$?
25953 grep -v '^ *+' conftest.er1 >conftest.err
25954 rm -f conftest.er1
25955 cat conftest.err >&5
25956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25961 ac_hi=$ac_mid; break
25962else
25963 $as_echo "$as_me: failed program was:" >&5
25964sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 ac_lo=`expr $ac_mid + 1`
25967 if test $ac_lo -le $ac_mid; then
25968 ac_lo= ac_hi=
25969 break
25970 fi
25971 ac_mid=`expr 2 '*' $ac_mid + 1`
25972fi
25973
25974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25975 done
25976else
25977 $as_echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 cat >conftest.$ac_ext <<_ACEOF
25981/* confdefs.h. */
25982_ACEOF
25983cat confdefs.h >>conftest.$ac_ext
25984cat >>conftest.$ac_ext <<_ACEOF
25985/* end confdefs.h. */
25986$ac_includes_default
25987int
25988main ()
25989{
25990static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25991test_array [0] = 0
25992
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997rm -f conftest.$ac_objext
25998if { (ac_try="$ac_compile"
25999case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26002esac
26003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26004$as_echo "$ac_try_echo") >&5
26005 (eval "$ac_compile") 2>conftest.er1
26006 ac_status=$?
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
26010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest.$ac_objext; then
26015 ac_hi=-1 ac_mid=-1
26016 while :; do
26017 cat >conftest.$ac_ext <<_ACEOF
26018/* confdefs.h. */
26019_ACEOF
26020cat confdefs.h >>conftest.$ac_ext
26021cat >>conftest.$ac_ext <<_ACEOF
26022/* end confdefs.h. */
26023$ac_includes_default
26024int
26025main ()
26026{
26027static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
26028test_array [0] = 0
26029
26030 ;
26031 return 0;
26032}
26033_ACEOF
26034rm -f conftest.$ac_objext
26035if { (ac_try="$ac_compile"
26036case "(($ac_try" in
26037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26038 *) ac_try_echo=$ac_try;;
26039esac
26040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26041$as_echo "$ac_try_echo") >&5
26042 (eval "$ac_compile") 2>conftest.er1
26043 ac_status=$?
26044 grep -v '^ *+' conftest.er1 >conftest.err
26045 rm -f conftest.er1
26046 cat conftest.err >&5
26047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); } && {
26049 test -z "$ac_c_werror_flag" ||
26050 test ! -s conftest.err
26051 } && test -s conftest.$ac_objext; then
26052 ac_lo=$ac_mid; break
26053else
26054 $as_echo "$as_me: failed program was:" >&5
26055sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 ac_hi=`expr '(' $ac_mid ')' - 1`
26058 if test $ac_mid -le $ac_hi; then
26059 ac_lo= ac_hi=
26060 break
26061 fi
26062 ac_mid=`expr 2 '*' $ac_mid`
26063fi
26064
26065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066 done
26067else
26068 $as_echo "$as_me: failed program was:" >&5
26069sed 's/^/| /' conftest.$ac_ext >&5
26070
26071 ac_lo= ac_hi=
26072fi
26073
26074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26075fi
26076
26077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26078# Binary search between lo and hi bounds.
26079while test "x$ac_lo" != "x$ac_hi"; do
26080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26081 cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
26087$ac_includes_default
26088int
26089main ()
26090{
26091static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
26092test_array [0] = 0
26093
26094 ;
26095 return 0;
26096}
26097_ACEOF
26098rm -f conftest.$ac_objext
26099if { (ac_try="$ac_compile"
26100case "(($ac_try" in
26101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102 *) ac_try_echo=$ac_try;;
26103esac
26104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26105$as_echo "$ac_try_echo") >&5
26106 (eval "$ac_compile") 2>conftest.er1
26107 ac_status=$?
26108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
26111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && {
26113 test -z "$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26115 } && test -s conftest.$ac_objext; then
26116 ac_hi=$ac_mid
26117else
26118 $as_echo "$as_me: failed program was:" >&5
26119sed 's/^/| /' conftest.$ac_ext >&5
26120
26121 ac_lo=`expr '(' $ac_mid ')' + 1`
26122fi
26123
26124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26125done
26126case $ac_lo in
26127?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
26128'') if test "$ac_cv_type_unsigned_int" = yes; then
26129 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26131{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26132See \`config.log' for more details." >&5
26133$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
26134See \`config.log' for more details." >&2;}
26135 { (exit 77); exit 77; }; }; }
26136 else
26137 ac_cv_sizeof_unsigned_int=0
26138 fi ;;
26139esac
26140else
26141 cat >conftest.$ac_ext <<_ACEOF
26142/* confdefs.h. */
26143_ACEOF
26144cat confdefs.h >>conftest.$ac_ext
26145cat >>conftest.$ac_ext <<_ACEOF
26146/* end confdefs.h. */
26147$ac_includes_default
26148static long int longval () { return (long int) (sizeof (unsigned int)); }
26149static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
26150#include <stdio.h>
26151#include <stdlib.h>
26152int
26153main ()
26154{
26155
26156 FILE *f = fopen ("conftest.val", "w");
26157 if (! f)
26158 return 1;
26159 if (((long int) (sizeof (unsigned int))) < 0)
26160 {
26161 long int i = longval ();
26162 if (i != ((long int) (sizeof (unsigned int))))
26163 return 1;
26164 fprintf (f, "%ld", i);
26165 }
26166 else
26167 {
26168 unsigned long int i = ulongval ();
26169 if (i != ((long int) (sizeof (unsigned int))))
26170 return 1;
26171 fprintf (f, "%lu", i);
26172 }
26173 /* Do not output a trailing newline, as this causes \r\n confusion
26174 on some platforms. */
26175 return ferror (f) || fclose (f) != 0;
26176
26177 ;
26178 return 0;
26179}
26180_ACEOF
26181rm -f conftest$ac_exeext
26182if { (ac_try="$ac_link"
26183case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26186esac
26187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188$as_echo "$ac_try_echo") >&5
26189 (eval "$ac_link") 2>&5
26190 ac_status=$?
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26193 { (case "(($ac_try" in
26194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195 *) ac_try_echo=$ac_try;;
26196esac
26197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26198$as_echo "$ac_try_echo") >&5
26199 (eval "$ac_try") 2>&5
26200 ac_status=$?
26201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26203 ac_cv_sizeof_unsigned_int=`cat conftest.val`
26204else
26205 $as_echo "$as_me: program exited with status $ac_status" >&5
26206$as_echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209( exit $ac_status )
26210if test "$ac_cv_type_unsigned_int" = yes; then
26211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26213{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26214See \`config.log' for more details." >&5
26215$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
26216See \`config.log' for more details." >&2;}
26217 { (exit 77); exit 77; }; }; }
26218 else
26219 ac_cv_sizeof_unsigned_int=0
26220 fi
26221fi
26222rm -rf conftest.dSYM
26223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26224fi
26225rm -f conftest.val
26226fi
26227{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
26228$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
26229
26230
26231
26232cat >>confdefs.h <<_ACEOF
26233#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26234_ACEOF
26235
26236
26237
26238# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
26239# The cast to long int works around a bug in the HP C Compiler
26240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26242# This bug is HP SR number 8606223364.
26243{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
26244$as_echo_n "checking size of signed long... " >&6; }
26245if test "${ac_cv_sizeof_signed_long+set}" = set; then
26246 $as_echo_n "(cached) " >&6
26247else
26248 if test "$cross_compiling" = yes; then
26249 # Depending upon the size, compute the lo and hi bounds.
26250cat >conftest.$ac_ext <<_ACEOF
26251/* confdefs.h. */
26252_ACEOF
26253cat confdefs.h >>conftest.$ac_ext
26254cat >>conftest.$ac_ext <<_ACEOF
26255/* end confdefs.h. */
26256$ac_includes_default
26257int
26258main ()
26259{
26260static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
26261test_array [0] = 0
26262
26263 ;
26264 return 0;
26265}
26266_ACEOF
26267rm -f conftest.$ac_objext
26268if { (ac_try="$ac_compile"
26269case "(($ac_try" in
26270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26271 *) ac_try_echo=$ac_try;;
26272esac
26273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26274$as_echo "$ac_try_echo") >&5
26275 (eval "$ac_compile") 2>conftest.er1
26276 ac_status=$?
26277 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1
26279 cat conftest.err >&5
26280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && {
26282 test -z "$ac_c_werror_flag" ||
26283 test ! -s conftest.err
26284 } && test -s conftest.$ac_objext; then
26285 ac_lo=0 ac_mid=0
26286 while :; do
26287 cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
26293$ac_includes_default
26294int
26295main ()
26296{
26297static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26298test_array [0] = 0
26299
26300 ;
26301 return 0;
26302}
26303_ACEOF
26304rm -f conftest.$ac_objext
26305if { (ac_try="$ac_compile"
26306case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26309esac
26310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26311$as_echo "$ac_try_echo") >&5
26312 (eval "$ac_compile") 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } && {
26319 test -z "$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 } && test -s conftest.$ac_objext; then
26322 ac_hi=$ac_mid; break
26323else
26324 $as_echo "$as_me: failed program was:" >&5
26325sed 's/^/| /' conftest.$ac_ext >&5
26326
26327 ac_lo=`expr $ac_mid + 1`
26328 if test $ac_lo -le $ac_mid; then
26329 ac_lo= ac_hi=
26330 break
26331 fi
26332 ac_mid=`expr 2 '*' $ac_mid + 1`
26333fi
26334
26335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 done
26337else
26338 $as_echo "$as_me: failed program was:" >&5
26339sed 's/^/| /' conftest.$ac_ext >&5
26340
26341 cat >conftest.$ac_ext <<_ACEOF
26342/* confdefs.h. */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h. */
26347$ac_includes_default
26348int
26349main ()
26350{
26351static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
26352test_array [0] = 0
26353
26354 ;
26355 return 0;
26356}
26357_ACEOF
26358rm -f conftest.$ac_objext
26359if { (ac_try="$ac_compile"
26360case "(($ac_try" in
26361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362 *) ac_try_echo=$ac_try;;
26363esac
26364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26365$as_echo "$ac_try_echo") >&5
26366 (eval "$ac_compile") 2>conftest.er1
26367 ac_status=$?
26368 grep -v '^ *+' conftest.er1 >conftest.err
26369 rm -f conftest.er1
26370 cat conftest.err >&5
26371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } && {
26373 test -z "$ac_c_werror_flag" ||
26374 test ! -s conftest.err
26375 } && test -s conftest.$ac_objext; then
26376 ac_hi=-1 ac_mid=-1
26377 while :; do
26378 cat >conftest.$ac_ext <<_ACEOF
26379/* confdefs.h. */
26380_ACEOF
26381cat confdefs.h >>conftest.$ac_ext
26382cat >>conftest.$ac_ext <<_ACEOF
26383/* end confdefs.h. */
26384$ac_includes_default
26385int
26386main ()
26387{
26388static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
26389test_array [0] = 0
26390
26391 ;
26392 return 0;
26393}
26394_ACEOF
26395rm -f conftest.$ac_objext
26396if { (ac_try="$ac_compile"
26397case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26400esac
26401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26402$as_echo "$ac_try_echo") >&5
26403 (eval "$ac_compile") 2>conftest.er1
26404 ac_status=$?
26405 grep -v '^ *+' conftest.er1 >conftest.err
26406 rm -f conftest.er1
26407 cat conftest.err >&5
26408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } && {
26410 test -z "$ac_c_werror_flag" ||
26411 test ! -s conftest.err
26412 } && test -s conftest.$ac_objext; then
26413 ac_lo=$ac_mid; break
26414else
26415 $as_echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
26418 ac_hi=`expr '(' $ac_mid ')' - 1`
26419 if test $ac_mid -le $ac_hi; then
26420 ac_lo= ac_hi=
26421 break
26422 fi
26423 ac_mid=`expr 2 '*' $ac_mid`
26424fi
26425
26426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26427 done
26428else
26429 $as_echo "$as_me: failed program was:" >&5
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
26432 ac_lo= ac_hi=
26433fi
26434
26435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436fi
26437
26438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26439# Binary search between lo and hi bounds.
26440while test "x$ac_lo" != "x$ac_hi"; do
26441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26442 cat >conftest.$ac_ext <<_ACEOF
26443/* confdefs.h. */
26444_ACEOF
26445cat confdefs.h >>conftest.$ac_ext
26446cat >>conftest.$ac_ext <<_ACEOF
26447/* end confdefs.h. */
26448$ac_includes_default
26449int
26450main ()
26451{
26452static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26453test_array [0] = 0
26454
26455 ;
26456 return 0;
26457}
26458_ACEOF
26459rm -f conftest.$ac_objext
26460if { (ac_try="$ac_compile"
26461case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26464esac
26465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26466$as_echo "$ac_try_echo") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26468 ac_status=$?
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
26472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26477 ac_hi=$ac_mid
26478else
26479 $as_echo "$as_me: failed program was:" >&5
26480sed 's/^/| /' conftest.$ac_ext >&5
26481
26482 ac_lo=`expr '(' $ac_mid ')' + 1`
26483fi
26484
26485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26486done
26487case $ac_lo in
26488?*) ac_cv_sizeof_signed_long=$ac_lo;;
26489'') if test "$ac_cv_type_signed_long" = yes; then
26490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26492{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26493See \`config.log' for more details." >&5
26494$as_echo "$as_me: error: cannot compute sizeof (signed long)
26495See \`config.log' for more details." >&2;}
26496 { (exit 77); exit 77; }; }; }
26497 else
26498 ac_cv_sizeof_signed_long=0
26499 fi ;;
26500esac
26501else
26502 cat >conftest.$ac_ext <<_ACEOF
26503/* confdefs.h. */
26504_ACEOF
26505cat confdefs.h >>conftest.$ac_ext
26506cat >>conftest.$ac_ext <<_ACEOF
26507/* end confdefs.h. */
26508$ac_includes_default
26509static long int longval () { return (long int) (sizeof (signed long)); }
26510static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
26511#include <stdio.h>
26512#include <stdlib.h>
26513int
26514main ()
26515{
26516
26517 FILE *f = fopen ("conftest.val", "w");
26518 if (! f)
26519 return 1;
26520 if (((long int) (sizeof (signed long))) < 0)
26521 {
26522 long int i = longval ();
26523 if (i != ((long int) (sizeof (signed long))))
26524 return 1;
26525 fprintf (f, "%ld", i);
26526 }
26527 else
26528 {
26529 unsigned long int i = ulongval ();
26530 if (i != ((long int) (sizeof (signed long))))
26531 return 1;
26532 fprintf (f, "%lu", i);
26533 }
26534 /* Do not output a trailing newline, as this causes \r\n confusion
26535 on some platforms. */
26536 return ferror (f) || fclose (f) != 0;
26537
26538 ;
26539 return 0;
26540}
26541_ACEOF
26542rm -f conftest$ac_exeext
26543if { (ac_try="$ac_link"
26544case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26547esac
26548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26549$as_echo "$ac_try_echo") >&5
26550 (eval "$ac_link") 2>&5
26551 ac_status=$?
26552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26554 { (case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26557esac
26558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26559$as_echo "$ac_try_echo") >&5
26560 (eval "$ac_try") 2>&5
26561 ac_status=$?
26562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 ac_cv_sizeof_signed_long=`cat conftest.val`
26565else
26566 $as_echo "$as_me: program exited with status $ac_status" >&5
26567$as_echo "$as_me: failed program was:" >&5
26568sed 's/^/| /' conftest.$ac_ext >&5
26569
26570( exit $ac_status )
26571if test "$ac_cv_type_signed_long" = yes; then
26572 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26574{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26575See \`config.log' for more details." >&5
26576$as_echo "$as_me: error: cannot compute sizeof (signed long)
26577See \`config.log' for more details." >&2;}
26578 { (exit 77); exit 77; }; }; }
26579 else
26580 ac_cv_sizeof_signed_long=0
26581 fi
26582fi
26583rm -rf conftest.dSYM
26584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26585fi
26586rm -f conftest.val
26587fi
26588{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
26589$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26590
26591
26592
26593cat >>confdefs.h <<_ACEOF
26594#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26595_ACEOF
26596
26597
26598
26599# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26600# The cast to long int works around a bug in the HP C Compiler
26601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26603# This bug is HP SR number 8606223364.
26604{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
26605$as_echo_n "checking size of unsigned long... " >&6; }
26606if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26607 $as_echo_n "(cached) " >&6
26608else
26609 if test "$cross_compiling" = yes; then
26610 # Depending upon the size, compute the lo and hi bounds.
26611cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617$ac_includes_default
26618int
26619main ()
26620{
26621static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
26622test_array [0] = 0
26623
26624 ;
26625 return 0;
26626}
26627_ACEOF
26628rm -f conftest.$ac_objext
26629if { (ac_try="$ac_compile"
26630case "(($ac_try" in
26631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26632 *) ac_try_echo=$ac_try;;
26633esac
26634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26635$as_echo "$ac_try_echo") >&5
26636 (eval "$ac_compile") 2>conftest.er1
26637 ac_status=$?
26638 grep -v '^ *+' conftest.er1 >conftest.err
26639 rm -f conftest.er1
26640 cat conftest.err >&5
26641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } && {
26643 test -z "$ac_c_werror_flag" ||
26644 test ! -s conftest.err
26645 } && test -s conftest.$ac_objext; then
26646 ac_lo=0 ac_mid=0
26647 while :; do
26648 cat >conftest.$ac_ext <<_ACEOF
26649/* confdefs.h. */
26650_ACEOF
26651cat confdefs.h >>conftest.$ac_ext
26652cat >>conftest.$ac_ext <<_ACEOF
26653/* end confdefs.h. */
26654$ac_includes_default
26655int
26656main ()
26657{
26658static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26659test_array [0] = 0
26660
26661 ;
26662 return 0;
26663}
26664_ACEOF
26665rm -f conftest.$ac_objext
26666if { (ac_try="$ac_compile"
26667case "(($ac_try" in
26668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669 *) ac_try_echo=$ac_try;;
26670esac
26671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26672$as_echo "$ac_try_echo") >&5
26673 (eval "$ac_compile") 2>conftest.er1
26674 ac_status=$?
26675 grep -v '^ *+' conftest.er1 >conftest.err
26676 rm -f conftest.er1
26677 cat conftest.err >&5
26678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest.$ac_objext; then
26683 ac_hi=$ac_mid; break
26684else
26685 $as_echo "$as_me: failed program was:" >&5
26686sed 's/^/| /' conftest.$ac_ext >&5
26687
26688 ac_lo=`expr $ac_mid + 1`
26689 if test $ac_lo -le $ac_mid; then
26690 ac_lo= ac_hi=
26691 break
26692 fi
26693 ac_mid=`expr 2 '*' $ac_mid + 1`
26694fi
26695
26696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26697 done
26698else
26699 $as_echo "$as_me: failed program was:" >&5
26700sed 's/^/| /' conftest.$ac_ext >&5
26701
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))) < 0)];
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=-1 ac_mid=-1
26738 while :; do
26739 cat >conftest.$ac_ext <<_ACEOF
26740/* confdefs.h. */
26741_ACEOF
26742cat confdefs.h >>conftest.$ac_ext
26743cat >>conftest.$ac_ext <<_ACEOF
26744/* end confdefs.h. */
26745$ac_includes_default
26746int
26747main ()
26748{
26749static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
26750test_array [0] = 0
26751
26752 ;
26753 return 0;
26754}
26755_ACEOF
26756rm -f conftest.$ac_objext
26757if { (ac_try="$ac_compile"
26758case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26761esac
26762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26763$as_echo "$ac_try_echo") >&5
26764 (eval "$ac_compile") 2>conftest.er1
26765 ac_status=$?
26766 grep -v '^ *+' conftest.er1 >conftest.err
26767 rm -f conftest.er1
26768 cat conftest.err >&5
26769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest.$ac_objext; then
26774 ac_lo=$ac_mid; break
26775else
26776 $as_echo "$as_me: failed program was:" >&5
26777sed 's/^/| /' conftest.$ac_ext >&5
26778
26779 ac_hi=`expr '(' $ac_mid ')' - 1`
26780 if test $ac_mid -le $ac_hi; then
26781 ac_lo= ac_hi=
26782 break
26783 fi
26784 ac_mid=`expr 2 '*' $ac_mid`
26785fi
26786
26787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26788 done
26789else
26790 $as_echo "$as_me: failed program was:" >&5
26791sed 's/^/| /' conftest.$ac_ext >&5
26792
26793 ac_lo= ac_hi=
26794fi
26795
26796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797fi
26798
26799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800# Binary search between lo and hi bounds.
26801while test "x$ac_lo" != "x$ac_hi"; do
26802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26803 cat >conftest.$ac_ext <<_ACEOF
26804/* confdefs.h. */
26805_ACEOF
26806cat confdefs.h >>conftest.$ac_ext
26807cat >>conftest.$ac_ext <<_ACEOF
26808/* end confdefs.h. */
26809$ac_includes_default
26810int
26811main ()
26812{
26813static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26814test_array [0] = 0
26815
26816 ;
26817 return 0;
26818}
26819_ACEOF
26820rm -f conftest.$ac_objext
26821if { (ac_try="$ac_compile"
26822case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26825esac
26826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26827$as_echo "$ac_try_echo") >&5
26828 (eval "$ac_compile") 2>conftest.er1
26829 ac_status=$?
26830 grep -v '^ *+' conftest.er1 >conftest.err
26831 rm -f conftest.er1
26832 cat conftest.err >&5
26833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); } && {
26835 test -z "$ac_c_werror_flag" ||
26836 test ! -s conftest.err
26837 } && test -s conftest.$ac_objext; then
26838 ac_hi=$ac_mid
26839else
26840 $as_echo "$as_me: failed program was:" >&5
26841sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ac_lo=`expr '(' $ac_mid ')' + 1`
26844fi
26845
26846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847done
26848case $ac_lo in
26849?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26850'') if test "$ac_cv_type_unsigned_long" = yes; then
26851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26853{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26854See \`config.log' for more details." >&5
26855$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26856See \`config.log' for more details." >&2;}
26857 { (exit 77); exit 77; }; }; }
26858 else
26859 ac_cv_sizeof_unsigned_long=0
26860 fi ;;
26861esac
26862else
26863 cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869$ac_includes_default
26870static long int longval () { return (long int) (sizeof (unsigned long)); }
26871static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26872#include <stdio.h>
26873#include <stdlib.h>
26874int
26875main ()
26876{
26877
26878 FILE *f = fopen ("conftest.val", "w");
26879 if (! f)
26880 return 1;
26881 if (((long int) (sizeof (unsigned long))) < 0)
26882 {
26883 long int i = longval ();
26884 if (i != ((long int) (sizeof (unsigned long))))
26885 return 1;
26886 fprintf (f, "%ld", i);
26887 }
26888 else
26889 {
26890 unsigned long int i = ulongval ();
26891 if (i != ((long int) (sizeof (unsigned long))))
26892 return 1;
26893 fprintf (f, "%lu", i);
26894 }
26895 /* Do not output a trailing newline, as this causes \r\n confusion
26896 on some platforms. */
26897 return ferror (f) || fclose (f) != 0;
26898
26899 ;
26900 return 0;
26901}
26902_ACEOF
26903rm -f conftest$ac_exeext
26904if { (ac_try="$ac_link"
26905case "(($ac_try" in
26906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26907 *) ac_try_echo=$ac_try;;
26908esac
26909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26910$as_echo "$ac_try_echo") >&5
26911 (eval "$ac_link") 2>&5
26912 ac_status=$?
26913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26915 { (case "(($ac_try" in
26916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917 *) ac_try_echo=$ac_try;;
26918esac
26919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26920$as_echo "$ac_try_echo") >&5
26921 (eval "$ac_try") 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26926else
26927 $as_echo "$as_me: program exited with status $ac_status" >&5
26928$as_echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931( exit $ac_status )
26932if test "$ac_cv_type_unsigned_long" = yes; then
26933 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26935{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26936See \`config.log' for more details." >&5
26937$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26938See \`config.log' for more details." >&2;}
26939 { (exit 77); exit 77; }; }; }
26940 else
26941 ac_cv_sizeof_unsigned_long=0
26942 fi
26943fi
26944rm -rf conftest.dSYM
26945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26946fi
26947rm -f conftest.val
26948fi
26949{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26950$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26951
26952
26953
26954cat >>confdefs.h <<_ACEOF
26955#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26956_ACEOF
26957
26958
26959
26960# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26961# 'signed long long' is not supported then the value defined is zero.
26962# The cast to long int works around a bug in the HP C Compiler
26963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26965# This bug is HP SR number 8606223364.
26966{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26967$as_echo_n "checking size of signed long long... " >&6; }
26968if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26969 $as_echo_n "(cached) " >&6
26970else
26971 if test "$cross_compiling" = yes; then
26972 # Depending upon the size, compute the lo and hi bounds.
26973cat >conftest.$ac_ext <<_ACEOF
26974/* confdefs.h. */
26975_ACEOF
26976cat confdefs.h >>conftest.$ac_ext
26977cat >>conftest.$ac_ext <<_ACEOF
26978/* end confdefs.h. */
26979$ac_includes_default
26980int
26981main ()
26982{
26983static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26984test_array [0] = 0
26985
26986 ;
26987 return 0;
26988}
26989_ACEOF
26990rm -f conftest.$ac_objext
26991if { (ac_try="$ac_compile"
26992case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26997$as_echo "$ac_try_echo") >&5
26998 (eval "$ac_compile") 2>conftest.er1
26999 ac_status=$?
27000 grep -v '^ *+' conftest.er1 >conftest.err
27001 rm -f conftest.er1
27002 cat conftest.err >&5
27003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } && {
27005 test -z "$ac_c_werror_flag" ||
27006 test ! -s conftest.err
27007 } && test -s conftest.$ac_objext; then
27008 ac_lo=0 ac_mid=0
27009 while :; do
27010 cat >conftest.$ac_ext <<_ACEOF
27011/* confdefs.h. */
27012_ACEOF
27013cat confdefs.h >>conftest.$ac_ext
27014cat >>conftest.$ac_ext <<_ACEOF
27015/* end confdefs.h. */
27016$ac_includes_default
27017int
27018main ()
27019{
27020static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
27021test_array [0] = 0
27022
27023 ;
27024 return 0;
27025}
27026_ACEOF
27027rm -f conftest.$ac_objext
27028if { (ac_try="$ac_compile"
27029case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27032esac
27033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27034$as_echo "$ac_try_echo") >&5
27035 (eval "$ac_compile") 2>conftest.er1
27036 ac_status=$?
27037 grep -v '^ *+' conftest.er1 >conftest.err
27038 rm -f conftest.er1
27039 cat conftest.err >&5
27040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } && {
27042 test -z "$ac_c_werror_flag" ||
27043 test ! -s conftest.err
27044 } && test -s conftest.$ac_objext; then
27045 ac_hi=$ac_mid; break
27046else
27047 $as_echo "$as_me: failed program was:" >&5
27048sed 's/^/| /' conftest.$ac_ext >&5
27049
27050 ac_lo=`expr $ac_mid + 1`
27051 if test $ac_lo -le $ac_mid; then
27052 ac_lo= ac_hi=
27053 break
27054 fi
27055 ac_mid=`expr 2 '*' $ac_mid + 1`
27056fi
27057
27058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059 done
27060else
27061 $as_echo "$as_me: failed program was:" >&5
27062sed 's/^/| /' conftest.$ac_ext >&5
27063
27064 cat >conftest.$ac_ext <<_ACEOF
27065/* confdefs.h. */
27066_ACEOF
27067cat confdefs.h >>conftest.$ac_ext
27068cat >>conftest.$ac_ext <<_ACEOF
27069/* end confdefs.h. */
27070$ac_includes_default
27071int
27072main ()
27073{
27074static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
27075test_array [0] = 0
27076
27077 ;
27078 return 0;
27079}
27080_ACEOF
27081rm -f conftest.$ac_objext
27082if { (ac_try="$ac_compile"
27083case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086esac
27087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27088$as_echo "$ac_try_echo") >&5
27089 (eval "$ac_compile") 2>conftest.er1
27090 ac_status=$?
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
27094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } && {
27096 test -z "$ac_c_werror_flag" ||
27097 test ! -s conftest.err
27098 } && test -s conftest.$ac_objext; then
27099 ac_hi=-1 ac_mid=-1
27100 while :; do
27101 cat >conftest.$ac_ext <<_ACEOF
27102/* confdefs.h. */
27103_ACEOF
27104cat confdefs.h >>conftest.$ac_ext
27105cat >>conftest.$ac_ext <<_ACEOF
27106/* end confdefs.h. */
27107$ac_includes_default
27108int
27109main ()
27110{
27111static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
27112test_array [0] = 0
27113
27114 ;
27115 return 0;
27116}
27117_ACEOF
27118rm -f conftest.$ac_objext
27119if { (ac_try="$ac_compile"
27120case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27123esac
27124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27125$as_echo "$ac_try_echo") >&5
27126 (eval "$ac_compile") 2>conftest.er1
27127 ac_status=$?
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
27131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } && {
27133 test -z "$ac_c_werror_flag" ||
27134 test ! -s conftest.err
27135 } && test -s conftest.$ac_objext; then
27136 ac_lo=$ac_mid; break
27137else
27138 $as_echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_hi=`expr '(' $ac_mid ')' - 1`
27142 if test $ac_mid -le $ac_hi; then
27143 ac_lo= ac_hi=
27144 break
27145 fi
27146 ac_mid=`expr 2 '*' $ac_mid`
27147fi
27148
27149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27150 done
27151else
27152 $as_echo "$as_me: failed program was:" >&5
27153sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 ac_lo= ac_hi=
27156fi
27157
27158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159fi
27160
27161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27162# Binary search between lo and hi bounds.
27163while test "x$ac_lo" != "x$ac_hi"; do
27164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27165 cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h. */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h. */
27171$ac_includes_default
27172int
27173main ()
27174{
27175static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
27176test_array [0] = 0
27177
27178 ;
27179 return 0;
27180}
27181_ACEOF
27182rm -f conftest.$ac_objext
27183if { (ac_try="$ac_compile"
27184case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187esac
27188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27189$as_echo "$ac_try_echo") >&5
27190 (eval "$ac_compile") 2>conftest.er1
27191 ac_status=$?
27192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
27195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } && {
27197 test -z "$ac_c_werror_flag" ||
27198 test ! -s conftest.err
27199 } && test -s conftest.$ac_objext; then
27200 ac_hi=$ac_mid
27201else
27202 $as_echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 ac_lo=`expr '(' $ac_mid ')' + 1`
27206fi
27207
27208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27209done
27210case $ac_lo in
27211?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
27212'') if test "$ac_cv_type_signed_long_long" = yes; then
27213 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27215{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27216See \`config.log' for more details." >&5
27217$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27218See \`config.log' for more details." >&2;}
27219 { (exit 77); exit 77; }; }; }
27220 else
27221 ac_cv_sizeof_signed_long_long=0
27222 fi ;;
27223esac
27224else
27225 cat >conftest.$ac_ext <<_ACEOF
27226/* confdefs.h. */
27227_ACEOF
27228cat confdefs.h >>conftest.$ac_ext
27229cat >>conftest.$ac_ext <<_ACEOF
27230/* end confdefs.h. */
27231$ac_includes_default
27232static long int longval () { return (long int) (sizeof (signed long long)); }
27233static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
27234#include <stdio.h>
27235#include <stdlib.h>
27236int
27237main ()
27238{
27239
27240 FILE *f = fopen ("conftest.val", "w");
27241 if (! f)
27242 return 1;
27243 if (((long int) (sizeof (signed long long))) < 0)
27244 {
27245 long int i = longval ();
27246 if (i != ((long int) (sizeof (signed long long))))
27247 return 1;
27248 fprintf (f, "%ld", i);
27249 }
27250 else
27251 {
27252 unsigned long int i = ulongval ();
27253 if (i != ((long int) (sizeof (signed long long))))
27254 return 1;
27255 fprintf (f, "%lu", i);
27256 }
27257 /* Do not output a trailing newline, as this causes \r\n confusion
27258 on some platforms. */
27259 return ferror (f) || fclose (f) != 0;
27260
27261 ;
27262 return 0;
27263}
27264_ACEOF
27265rm -f conftest$ac_exeext
27266if { (ac_try="$ac_link"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27272$as_echo "$ac_try_echo") >&5
27273 (eval "$ac_link") 2>&5
27274 ac_status=$?
27275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27277 { (case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27280esac
27281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27282$as_echo "$ac_try_echo") >&5
27283 (eval "$ac_try") 2>&5
27284 ac_status=$?
27285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
27287 ac_cv_sizeof_signed_long_long=`cat conftest.val`
27288else
27289 $as_echo "$as_me: program exited with status $ac_status" >&5
27290$as_echo "$as_me: failed program was:" >&5
27291sed 's/^/| /' conftest.$ac_ext >&5
27292
27293( exit $ac_status )
27294if test "$ac_cv_type_signed_long_long" = yes; then
27295 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27297{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27298See \`config.log' for more details." >&5
27299$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27300See \`config.log' for more details." >&2;}
27301 { (exit 77); exit 77; }; }; }
27302 else
27303 ac_cv_sizeof_signed_long_long=0
27304 fi
27305fi
27306rm -rf conftest.dSYM
27307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27308fi
27309rm -f conftest.val
27310fi
27311{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
27312$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
27313
27314
27315
27316cat >>confdefs.h <<_ACEOF
27317#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
27318_ACEOF
27319
27320
27321
27322# Obtain size of a 'unsigned long long' and define as
27323# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27324# supported then the value defined is zero.
27325# The cast to long int works around a bug in the HP C Compiler
27326# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27327# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27328# This bug is HP SR number 8606223364.
27329{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
27330$as_echo_n "checking size of unsigned long long... " >&6; }
27331if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
27332 $as_echo_n "(cached) " >&6
27333else
27334 if test "$cross_compiling" = yes; then
27335 # Depending upon the size, compute the lo and hi bounds.
27336cat >conftest.$ac_ext <<_ACEOF
27337/* confdefs.h. */
27338_ACEOF
27339cat confdefs.h >>conftest.$ac_ext
27340cat >>conftest.$ac_ext <<_ACEOF
27341/* end confdefs.h. */
27342$ac_includes_default
27343int
27344main ()
27345{
27346static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
27347test_array [0] = 0
27348
27349 ;
27350 return 0;
27351}
27352_ACEOF
27353rm -f conftest.$ac_objext
27354if { (ac_try="$ac_compile"
27355case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358esac
27359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27360$as_echo "$ac_try_echo") >&5
27361 (eval "$ac_compile") 2>conftest.er1
27362 ac_status=$?
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
27366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } && {
27368 test -z "$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27370 } && test -s conftest.$ac_objext; then
27371 ac_lo=0 ac_mid=0
27372 while :; do
27373 cat >conftest.$ac_ext <<_ACEOF
27374/* confdefs.h. */
27375_ACEOF
27376cat confdefs.h >>conftest.$ac_ext
27377cat >>conftest.$ac_ext <<_ACEOF
27378/* end confdefs.h. */
27379$ac_includes_default
27380int
27381main ()
27382{
27383static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27384test_array [0] = 0
27385
27386 ;
27387 return 0;
27388}
27389_ACEOF
27390rm -f conftest.$ac_objext
27391if { (ac_try="$ac_compile"
27392case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27395esac
27396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27397$as_echo "$ac_try_echo") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } && {
27405 test -z "$ac_c_werror_flag" ||
27406 test ! -s conftest.err
27407 } && test -s conftest.$ac_objext; then
27408 ac_hi=$ac_mid; break
27409else
27410 $as_echo "$as_me: failed program was:" >&5
27411sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 ac_lo=`expr $ac_mid + 1`
27414 if test $ac_lo -le $ac_mid; then
27415 ac_lo= ac_hi=
27416 break
27417 fi
27418 ac_mid=`expr 2 '*' $ac_mid + 1`
27419fi
27420
27421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422 done
27423else
27424 $as_echo "$as_me: failed program was:" >&5
27425sed 's/^/| /' conftest.$ac_ext >&5
27426
27427 cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433$ac_includes_default
27434int
27435main ()
27436{
27437static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
27438test_array [0] = 0
27439
27440 ;
27441 return 0;
27442}
27443_ACEOF
27444rm -f conftest.$ac_objext
27445if { (ac_try="$ac_compile"
27446case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27449esac
27450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27451$as_echo "$ac_try_echo") >&5
27452 (eval "$ac_compile") 2>conftest.er1
27453 ac_status=$?
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
27457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } && {
27459 test -z "$ac_c_werror_flag" ||
27460 test ! -s conftest.err
27461 } && test -s conftest.$ac_objext; then
27462 ac_hi=-1 ac_mid=-1
27463 while :; do
27464 cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h. */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h. */
27470$ac_includes_default
27471int
27472main ()
27473{
27474static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
27475test_array [0] = 0
27476
27477 ;
27478 return 0;
27479}
27480_ACEOF
27481rm -f conftest.$ac_objext
27482if { (ac_try="$ac_compile"
27483case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486esac
27487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27488$as_echo "$ac_try_echo") >&5
27489 (eval "$ac_compile") 2>conftest.er1
27490 ac_status=$?
27491 grep -v '^ *+' conftest.er1 >conftest.err
27492 rm -f conftest.er1
27493 cat conftest.err >&5
27494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } && {
27496 test -z "$ac_c_werror_flag" ||
27497 test ! -s conftest.err
27498 } && test -s conftest.$ac_objext; then
27499 ac_lo=$ac_mid; break
27500else
27501 $as_echo "$as_me: failed program was:" >&5
27502sed 's/^/| /' conftest.$ac_ext >&5
27503
27504 ac_hi=`expr '(' $ac_mid ')' - 1`
27505 if test $ac_mid -le $ac_hi; then
27506 ac_lo= ac_hi=
27507 break
27508 fi
27509 ac_mid=`expr 2 '*' $ac_mid`
27510fi
27511
27512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513 done
27514else
27515 $as_echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
27518 ac_lo= ac_hi=
27519fi
27520
27521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522fi
27523
27524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27525# Binary search between lo and hi bounds.
27526while test "x$ac_lo" != "x$ac_hi"; do
27527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27528 cat >conftest.$ac_ext <<_ACEOF
27529/* confdefs.h. */
27530_ACEOF
27531cat confdefs.h >>conftest.$ac_ext
27532cat >>conftest.$ac_ext <<_ACEOF
27533/* end confdefs.h. */
27534$ac_includes_default
27535int
27536main ()
27537{
27538static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27539test_array [0] = 0
27540
27541 ;
27542 return 0;
27543}
27544_ACEOF
27545rm -f conftest.$ac_objext
27546if { (ac_try="$ac_compile"
27547case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27550esac
27551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27552$as_echo "$ac_try_echo") >&5
27553 (eval "$ac_compile") 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } && {
27560 test -z "$ac_c_werror_flag" ||
27561 test ! -s conftest.err
27562 } && test -s conftest.$ac_objext; then
27563 ac_hi=$ac_mid
27564else
27565 $as_echo "$as_me: failed program was:" >&5
27566sed 's/^/| /' conftest.$ac_ext >&5
27567
27568 ac_lo=`expr '(' $ac_mid ')' + 1`
27569fi
27570
27571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572done
27573case $ac_lo in
27574?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27575'') if test "$ac_cv_type_unsigned_long_long" = yes; then
27576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27578{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27579See \`config.log' for more details." >&5
27580$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27581See \`config.log' for more details." >&2;}
27582 { (exit 77); exit 77; }; }; }
27583 else
27584 ac_cv_sizeof_unsigned_long_long=0
27585 fi ;;
27586esac
27587else
27588 cat >conftest.$ac_ext <<_ACEOF
27589/* confdefs.h. */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h. */
27594$ac_includes_default
27595static long int longval () { return (long int) (sizeof (unsigned long long)); }
27596static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
27597#include <stdio.h>
27598#include <stdlib.h>
27599int
27600main ()
27601{
27602
27603 FILE *f = fopen ("conftest.val", "w");
27604 if (! f)
27605 return 1;
27606 if (((long int) (sizeof (unsigned long long))) < 0)
27607 {
27608 long int i = longval ();
27609 if (i != ((long int) (sizeof (unsigned long long))))
27610 return 1;
27611 fprintf (f, "%ld", i);
27612 }
27613 else
27614 {
27615 unsigned long int i = ulongval ();
27616 if (i != ((long int) (sizeof (unsigned long long))))
27617 return 1;
27618 fprintf (f, "%lu", i);
27619 }
27620 /* Do not output a trailing newline, as this causes \r\n confusion
27621 on some platforms. */
27622 return ferror (f) || fclose (f) != 0;
27623
27624 ;
27625 return 0;
27626}
27627_ACEOF
27628rm -f conftest$ac_exeext
27629if { (ac_try="$ac_link"
27630case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27633esac
27634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27635$as_echo "$ac_try_echo") >&5
27636 (eval "$ac_link") 2>&5
27637 ac_status=$?
27638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27640 { (case "(($ac_try" in
27641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642 *) ac_try_echo=$ac_try;;
27643esac
27644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27645$as_echo "$ac_try_echo") >&5
27646 (eval "$ac_try") 2>&5
27647 ac_status=$?
27648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; }; then
27650 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27651else
27652 $as_echo "$as_me: program exited with status $ac_status" >&5
27653$as_echo "$as_me: failed program was:" >&5
27654sed 's/^/| /' conftest.$ac_ext >&5
27655
27656( exit $ac_status )
27657if test "$ac_cv_type_unsigned_long_long" = yes; then
27658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27660{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27661See \`config.log' for more details." >&5
27662$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27663See \`config.log' for more details." >&2;}
27664 { (exit 77); exit 77; }; }; }
27665 else
27666 ac_cv_sizeof_unsigned_long_long=0
27667 fi
27668fi
27669rm -rf conftest.dSYM
27670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27671fi
27672rm -f conftest.val
27673fi
27674{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27675$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27676
27677
27678
27679cat >>confdefs.h <<_ACEOF
27680#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27681_ACEOF
27682
27683
27684
27685# Obtain size of off_t and define as SIZEOF_OFF_T
27686# The cast to long int works around a bug in the HP C Compiler
27687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27689# This bug is HP SR number 8606223364.
27690{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
27691$as_echo_n "checking size of off_t... " >&6; }
27692if test "${ac_cv_sizeof_off_t+set}" = set; then
27693 $as_echo_n "(cached) " >&6
27694else
27695 if test "$cross_compiling" = yes; then
27696 # Depending upon the size, compute the lo and hi bounds.
27697cat >conftest.$ac_ext <<_ACEOF
27698/* confdefs.h. */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h. */
27703$ac_includes_default
27704int
27705main ()
27706{
27707static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27708test_array [0] = 0
27709
27710 ;
27711 return 0;
27712}
27713_ACEOF
27714rm -f conftest.$ac_objext
27715if { (ac_try="$ac_compile"
27716case "(($ac_try" in
27717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718 *) ac_try_echo=$ac_try;;
27719esac
27720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27721$as_echo "$ac_try_echo") >&5
27722 (eval "$ac_compile") 2>conftest.er1
27723 ac_status=$?
27724 grep -v '^ *+' conftest.er1 >conftest.err
27725 rm -f conftest.er1
27726 cat conftest.err >&5
27727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } && {
27729 test -z "$ac_c_werror_flag" ||
27730 test ! -s conftest.err
27731 } && test -s conftest.$ac_objext; then
27732 ac_lo=0 ac_mid=0
27733 while :; do
27734 cat >conftest.$ac_ext <<_ACEOF
27735/* confdefs.h. */
27736_ACEOF
27737cat confdefs.h >>conftest.$ac_ext
27738cat >>conftest.$ac_ext <<_ACEOF
27739/* end confdefs.h. */
27740$ac_includes_default
27741int
27742main ()
27743{
27744static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27745test_array [0] = 0
27746
27747 ;
27748 return 0;
27749}
27750_ACEOF
27751rm -f conftest.$ac_objext
27752if { (ac_try="$ac_compile"
27753case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27756esac
27757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27758$as_echo "$ac_try_echo") >&5
27759 (eval "$ac_compile") 2>conftest.er1
27760 ac_status=$?
27761 grep -v '^ *+' conftest.er1 >conftest.err
27762 rm -f conftest.er1
27763 cat conftest.err >&5
27764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } && {
27766 test -z "$ac_c_werror_flag" ||
27767 test ! -s conftest.err
27768 } && test -s conftest.$ac_objext; then
27769 ac_hi=$ac_mid; break
27770else
27771 $as_echo "$as_me: failed program was:" >&5
27772sed 's/^/| /' conftest.$ac_ext >&5
27773
27774 ac_lo=`expr $ac_mid + 1`
27775 if test $ac_lo -le $ac_mid; then
27776 ac_lo= ac_hi=
27777 break
27778 fi
27779 ac_mid=`expr 2 '*' $ac_mid + 1`
27780fi
27781
27782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 done
27784else
27785 $as_echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
27788 cat >conftest.$ac_ext <<_ACEOF
27789/* confdefs.h. */
27790_ACEOF
27791cat confdefs.h >>conftest.$ac_ext
27792cat >>conftest.$ac_ext <<_ACEOF
27793/* end confdefs.h. */
27794$ac_includes_default
27795int
27796main ()
27797{
27798static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27799test_array [0] = 0
27800
27801 ;
27802 return 0;
27803}
27804_ACEOF
27805rm -f conftest.$ac_objext
27806if { (ac_try="$ac_compile"
27807case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27812$as_echo "$ac_try_echo") >&5
27813 (eval "$ac_compile") 2>conftest.er1
27814 ac_status=$?
27815 grep -v '^ *+' conftest.er1 >conftest.err
27816 rm -f conftest.er1
27817 cat conftest.err >&5
27818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && {
27820 test -z "$ac_c_werror_flag" ||
27821 test ! -s conftest.err
27822 } && test -s conftest.$ac_objext; then
27823 ac_hi=-1 ac_mid=-1
27824 while :; do
27825 cat >conftest.$ac_ext <<_ACEOF
27826/* confdefs.h. */
27827_ACEOF
27828cat confdefs.h >>conftest.$ac_ext
27829cat >>conftest.$ac_ext <<_ACEOF
27830/* end confdefs.h. */
27831$ac_includes_default
27832int
27833main ()
27834{
27835static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27836test_array [0] = 0
27837
27838 ;
27839 return 0;
27840}
27841_ACEOF
27842rm -f conftest.$ac_objext
27843if { (ac_try="$ac_compile"
27844case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27847esac
27848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27849$as_echo "$ac_try_echo") >&5
27850 (eval "$ac_compile") 2>conftest.er1
27851 ac_status=$?
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
27855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } && {
27857 test -z "$ac_c_werror_flag" ||
27858 test ! -s conftest.err
27859 } && test -s conftest.$ac_objext; then
27860 ac_lo=$ac_mid; break
27861else
27862 $as_echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 ac_hi=`expr '(' $ac_mid ')' - 1`
27866 if test $ac_mid -le $ac_hi; then
27867 ac_lo= ac_hi=
27868 break
27869 fi
27870 ac_mid=`expr 2 '*' $ac_mid`
27871fi
27872
27873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 done
27875else
27876 $as_echo "$as_me: failed program was:" >&5
27877sed 's/^/| /' conftest.$ac_ext >&5
27878
27879 ac_lo= ac_hi=
27880fi
27881
27882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27883fi
27884
27885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886# Binary search between lo and hi bounds.
27887while test "x$ac_lo" != "x$ac_hi"; do
27888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27889 cat >conftest.$ac_ext <<_ACEOF
27890/* confdefs.h. */
27891_ACEOF
27892cat confdefs.h >>conftest.$ac_ext
27893cat >>conftest.$ac_ext <<_ACEOF
27894/* end confdefs.h. */
27895$ac_includes_default
27896int
27897main ()
27898{
27899static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27900test_array [0] = 0
27901
27902 ;
27903 return 0;
27904}
27905_ACEOF
27906rm -f conftest.$ac_objext
27907if { (ac_try="$ac_compile"
27908case "(($ac_try" in
27909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27910 *) ac_try_echo=$ac_try;;
27911esac
27912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27913$as_echo "$ac_try_echo") >&5
27914 (eval "$ac_compile") 2>conftest.er1
27915 ac_status=$?
27916 grep -v '^ *+' conftest.er1 >conftest.err
27917 rm -f conftest.er1
27918 cat conftest.err >&5
27919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && {
27921 test -z "$ac_c_werror_flag" ||
27922 test ! -s conftest.err
27923 } && test -s conftest.$ac_objext; then
27924 ac_hi=$ac_mid
27925else
27926 $as_echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
27929 ac_lo=`expr '(' $ac_mid ')' + 1`
27930fi
27931
27932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27933done
27934case $ac_lo in
27935?*) ac_cv_sizeof_off_t=$ac_lo;;
27936'') if test "$ac_cv_type_off_t" = yes; then
27937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27939{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27940See \`config.log' for more details." >&5
27941$as_echo "$as_me: error: cannot compute sizeof (off_t)
27942See \`config.log' for more details." >&2;}
27943 { (exit 77); exit 77; }; }; }
27944 else
27945 ac_cv_sizeof_off_t=0
27946 fi ;;
27947esac
27948else
27949 cat >conftest.$ac_ext <<_ACEOF
27950/* confdefs.h. */
27951_ACEOF
27952cat confdefs.h >>conftest.$ac_ext
27953cat >>conftest.$ac_ext <<_ACEOF
27954/* end confdefs.h. */
27955$ac_includes_default
27956static long int longval () { return (long int) (sizeof (off_t)); }
27957static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27958#include <stdio.h>
27959#include <stdlib.h>
27960int
27961main ()
27962{
27963
27964 FILE *f = fopen ("conftest.val", "w");
27965 if (! f)
27966 return 1;
27967 if (((long int) (sizeof (off_t))) < 0)
27968 {
27969 long int i = longval ();
27970 if (i != ((long int) (sizeof (off_t))))
27971 return 1;
27972 fprintf (f, "%ld", i);
27973 }
27974 else
27975 {
27976 unsigned long int i = ulongval ();
27977 if (i != ((long int) (sizeof (off_t))))
27978 return 1;
27979 fprintf (f, "%lu", i);
27980 }
27981 /* Do not output a trailing newline, as this causes \r\n confusion
27982 on some platforms. */
27983 return ferror (f) || fclose (f) != 0;
27984
27985 ;
27986 return 0;
27987}
27988_ACEOF
27989rm -f conftest$ac_exeext
27990if { (ac_try="$ac_link"
27991case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994esac
27995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27996$as_echo "$ac_try_echo") >&5
27997 (eval "$ac_link") 2>&5
27998 ac_status=$?
27999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28001 { (case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28004esac
28005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28006$as_echo "$ac_try_echo") >&5
28007 (eval "$ac_try") 2>&5
28008 ac_status=$?
28009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; }; then
28011 ac_cv_sizeof_off_t=`cat conftest.val`
28012else
28013 $as_echo "$as_me: program exited with status $ac_status" >&5
28014$as_echo "$as_me: failed program was:" >&5
28015sed 's/^/| /' conftest.$ac_ext >&5
28016
28017( exit $ac_status )
28018if test "$ac_cv_type_off_t" = yes; then
28019 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28021{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
28022See \`config.log' for more details." >&5
28023$as_echo "$as_me: error: cannot compute sizeof (off_t)
28024See \`config.log' for more details." >&2;}
28025 { (exit 77); exit 77; }; }; }
28026 else
28027 ac_cv_sizeof_off_t=0
28028 fi
28029fi
28030rm -rf conftest.dSYM
28031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28032fi
28033rm -f conftest.val
28034fi
28035{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
28036$as_echo "$ac_cv_sizeof_off_t" >&6; }
28037
28038
28039
28040cat >>confdefs.h <<_ACEOF
28041#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28042_ACEOF
28043
28044
28045
28046# Obtain size of size_t and define as SIZEOF_SIZE_T
28047# The cast to long int works around a bug in the HP C Compiler
28048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28050# This bug is HP SR number 8606223364.
28051{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
28052$as_echo_n "checking size of size_t... " >&6; }
28053if test "${ac_cv_sizeof_size_t+set}" = set; then
28054 $as_echo_n "(cached) " >&6
28055else
28056 if test "$cross_compiling" = yes; then
28057 # Depending upon the size, compute the lo and hi bounds.
28058cat >conftest.$ac_ext <<_ACEOF
28059/* confdefs.h. */
28060_ACEOF
28061cat confdefs.h >>conftest.$ac_ext
28062cat >>conftest.$ac_ext <<_ACEOF
28063/* end confdefs.h. */
28064$ac_includes_default
28065int
28066main ()
28067{
28068static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
28069test_array [0] = 0
28070
28071 ;
28072 return 0;
28073}
28074_ACEOF
28075rm -f conftest.$ac_objext
28076if { (ac_try="$ac_compile"
28077case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28082$as_echo "$ac_try_echo") >&5
28083 (eval "$ac_compile") 2>conftest.er1
28084 ac_status=$?
28085 grep -v '^ *+' conftest.er1 >conftest.err
28086 rm -f conftest.er1
28087 cat conftest.err >&5
28088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } && {
28090 test -z "$ac_c_werror_flag" ||
28091 test ! -s conftest.err
28092 } && test -s conftest.$ac_objext; then
28093 ac_lo=0 ac_mid=0
28094 while :; do
28095 cat >conftest.$ac_ext <<_ACEOF
28096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
28101$ac_includes_default
28102int
28103main ()
28104{
28105static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
28106test_array [0] = 0
28107
28108 ;
28109 return 0;
28110}
28111_ACEOF
28112rm -f conftest.$ac_objext
28113if { (ac_try="$ac_compile"
28114case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28117esac
28118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28119$as_echo "$ac_try_echo") >&5
28120 (eval "$ac_compile") 2>conftest.er1
28121 ac_status=$?
28122 grep -v '^ *+' conftest.er1 >conftest.err
28123 rm -f conftest.er1
28124 cat conftest.err >&5
28125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } && {
28127 test -z "$ac_c_werror_flag" ||
28128 test ! -s conftest.err
28129 } && test -s conftest.$ac_objext; then
28130 ac_hi=$ac_mid; break
28131else
28132 $as_echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 ac_lo=`expr $ac_mid + 1`
28136 if test $ac_lo -le $ac_mid; then
28137 ac_lo= ac_hi=
28138 break
28139 fi
28140 ac_mid=`expr 2 '*' $ac_mid + 1`
28141fi
28142
28143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144 done
28145else
28146 $as_echo "$as_me: failed program was:" >&5
28147sed 's/^/| /' conftest.$ac_ext >&5
28148
28149 cat >conftest.$ac_ext <<_ACEOF
28150/* confdefs.h. */
28151_ACEOF
28152cat confdefs.h >>conftest.$ac_ext
28153cat >>conftest.$ac_ext <<_ACEOF
28154/* end confdefs.h. */
28155$ac_includes_default
28156int
28157main ()
28158{
28159static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
28160test_array [0] = 0
28161
28162 ;
28163 return 0;
28164}
28165_ACEOF
28166rm -f conftest.$ac_objext
28167if { (ac_try="$ac_compile"
28168case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28171esac
28172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28173$as_echo "$ac_try_echo") >&5
28174 (eval "$ac_compile") 2>conftest.er1
28175 ac_status=$?
28176 grep -v '^ *+' conftest.er1 >conftest.err
28177 rm -f conftest.er1
28178 cat conftest.err >&5
28179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } && {
28181 test -z "$ac_c_werror_flag" ||
28182 test ! -s conftest.err
28183 } && test -s conftest.$ac_objext; then
28184 ac_hi=-1 ac_mid=-1
28185 while :; do
28186 cat >conftest.$ac_ext <<_ACEOF
28187/* confdefs.h. */
28188_ACEOF
28189cat confdefs.h >>conftest.$ac_ext
28190cat >>conftest.$ac_ext <<_ACEOF
28191/* end confdefs.h. */
28192$ac_includes_default
28193int
28194main ()
28195{
28196static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
28197test_array [0] = 0
28198
28199 ;
28200 return 0;
28201}
28202_ACEOF
28203rm -f conftest.$ac_objext
28204if { (ac_try="$ac_compile"
28205case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208esac
28209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28210$as_echo "$ac_try_echo") >&5
28211 (eval "$ac_compile") 2>conftest.er1
28212 ac_status=$?
28213 grep -v '^ *+' conftest.er1 >conftest.err
28214 rm -f conftest.er1
28215 cat conftest.err >&5
28216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } && {
28218 test -z "$ac_c_werror_flag" ||
28219 test ! -s conftest.err
28220 } && test -s conftest.$ac_objext; then
28221 ac_lo=$ac_mid; break
28222else
28223 $as_echo "$as_me: failed program was:" >&5
28224sed 's/^/| /' conftest.$ac_ext >&5
28225
28226 ac_hi=`expr '(' $ac_mid ')' - 1`
28227 if test $ac_mid -le $ac_hi; then
28228 ac_lo= ac_hi=
28229 break
28230 fi
28231 ac_mid=`expr 2 '*' $ac_mid`
28232fi
28233
28234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28235 done
28236else
28237 $as_echo "$as_me: failed program was:" >&5
28238sed 's/^/| /' conftest.$ac_ext >&5
28239
28240 ac_lo= ac_hi=
28241fi
28242
28243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28244fi
28245
28246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247# Binary search between lo and hi bounds.
28248while test "x$ac_lo" != "x$ac_hi"; do
28249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28250 cat >conftest.$ac_ext <<_ACEOF
28251/* confdefs.h. */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h. */
28256$ac_includes_default
28257int
28258main ()
28259{
28260static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
28261test_array [0] = 0
28262
28263 ;
28264 return 0;
28265}
28266_ACEOF
28267rm -f conftest.$ac_objext
28268if { (ac_try="$ac_compile"
28269case "(($ac_try" in
28270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28272esac
28273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28274$as_echo "$ac_try_echo") >&5
28275 (eval "$ac_compile") 2>conftest.er1
28276 ac_status=$?
28277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
28280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } && {
28282 test -z "$ac_c_werror_flag" ||
28283 test ! -s conftest.err
28284 } && test -s conftest.$ac_objext; then
28285 ac_hi=$ac_mid
28286else
28287 $as_echo "$as_me: failed program was:" >&5
28288sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 ac_lo=`expr '(' $ac_mid ')' + 1`
28291fi
28292
28293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294done
28295case $ac_lo in
28296?*) ac_cv_sizeof_size_t=$ac_lo;;
28297'') if test "$ac_cv_type_size_t" = yes; then
28298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28300{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28301See \`config.log' for more details." >&5
28302$as_echo "$as_me: error: cannot compute sizeof (size_t)
28303See \`config.log' for more details." >&2;}
28304 { (exit 77); exit 77; }; }; }
28305 else
28306 ac_cv_sizeof_size_t=0
28307 fi ;;
28308esac
28309else
28310 cat >conftest.$ac_ext <<_ACEOF
28311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
28316$ac_includes_default
28317static long int longval () { return (long int) (sizeof (size_t)); }
28318static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
28319#include <stdio.h>
28320#include <stdlib.h>
28321int
28322main ()
28323{
28324
28325 FILE *f = fopen ("conftest.val", "w");
28326 if (! f)
28327 return 1;
28328 if (((long int) (sizeof (size_t))) < 0)
28329 {
28330 long int i = longval ();
28331 if (i != ((long int) (sizeof (size_t))))
28332 return 1;
28333 fprintf (f, "%ld", i);
28334 }
28335 else
28336 {
28337 unsigned long int i = ulongval ();
28338 if (i != ((long int) (sizeof (size_t))))
28339 return 1;
28340 fprintf (f, "%lu", i);
28341 }
28342 /* Do not output a trailing newline, as this causes \r\n confusion
28343 on some platforms. */
28344 return ferror (f) || fclose (f) != 0;
28345
28346 ;
28347 return 0;
28348}
28349_ACEOF
28350rm -f conftest$ac_exeext
28351if { (ac_try="$ac_link"
28352case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28355esac
28356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28357$as_echo "$ac_try_echo") >&5
28358 (eval "$ac_link") 2>&5
28359 ac_status=$?
28360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28362 { (case "(($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_try") 2>&5
28369 ac_status=$?
28370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); }; }; then
28372 ac_cv_sizeof_size_t=`cat conftest.val`
28373else
28374 $as_echo "$as_me: program exited with status $ac_status" >&5
28375$as_echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378( exit $ac_status )
28379if test "$ac_cv_type_size_t" = yes; then
28380 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28382{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28383See \`config.log' for more details." >&5
28384$as_echo "$as_me: error: cannot compute sizeof (size_t)
28385See \`config.log' for more details." >&2;}
28386 { (exit 77); exit 77; }; }; }
28387 else
28388 ac_cv_sizeof_size_t=0
28389 fi
28390fi
28391rm -rf conftest.dSYM
28392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28393fi
28394rm -f conftest.val
28395fi
28396{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28397$as_echo "$ac_cv_sizeof_size_t" >&6; }
28398
28399
28400
28401cat >>confdefs.h <<_ACEOF
28402#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28403_ACEOF
28404
28405
28406
28407# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
28408# The cast to long int works around a bug in the HP C Compiler
28409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28411# This bug is HP SR number 8606223364.
28412{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
28413$as_echo_n "checking size of unsigned int*... " >&6; }
28414if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
28415 $as_echo_n "(cached) " >&6
28416else
28417 if test "$cross_compiling" = yes; then
28418 # Depending upon the size, compute the lo and hi bounds.
28419cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
28425$ac_includes_default
28426int
28427main ()
28428{
28429static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
28430test_array [0] = 0
28431
28432 ;
28433 return 0;
28434}
28435_ACEOF
28436rm -f conftest.$ac_objext
28437if { (ac_try="$ac_compile"
28438case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28441esac
28442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28443$as_echo "$ac_try_echo") >&5
28444 (eval "$ac_compile") 2>conftest.er1
28445 ac_status=$?
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
28449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } && {
28451 test -z "$ac_c_werror_flag" ||
28452 test ! -s conftest.err
28453 } && test -s conftest.$ac_objext; then
28454 ac_lo=0 ac_mid=0
28455 while :; do
28456 cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
28462$ac_includes_default
28463int
28464main ()
28465{
28466static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28467test_array [0] = 0
28468
28469 ;
28470 return 0;
28471}
28472_ACEOF
28473rm -f conftest.$ac_objext
28474if { (ac_try="$ac_compile"
28475case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28480$as_echo "$ac_try_echo") >&5
28481 (eval "$ac_compile") 2>conftest.er1
28482 ac_status=$?
28483 grep -v '^ *+' conftest.er1 >conftest.err
28484 rm -f conftest.er1
28485 cat conftest.err >&5
28486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); } && {
28488 test -z "$ac_c_werror_flag" ||
28489 test ! -s conftest.err
28490 } && test -s conftest.$ac_objext; then
28491 ac_hi=$ac_mid; break
28492else
28493 $as_echo "$as_me: failed program was:" >&5
28494sed 's/^/| /' conftest.$ac_ext >&5
28495
28496 ac_lo=`expr $ac_mid + 1`
28497 if test $ac_lo -le $ac_mid; then
28498 ac_lo= ac_hi=
28499 break
28500 fi
28501 ac_mid=`expr 2 '*' $ac_mid + 1`
28502fi
28503
28504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505 done
28506else
28507 $as_echo "$as_me: failed program was:" >&5
28508sed 's/^/| /' conftest.$ac_ext >&5
28509
28510 cat >conftest.$ac_ext <<_ACEOF
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
28516$ac_includes_default
28517int
28518main ()
28519{
28520static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
28521test_array [0] = 0
28522
28523 ;
28524 return 0;
28525}
28526_ACEOF
28527rm -f conftest.$ac_objext
28528if { (ac_try="$ac_compile"
28529case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28532esac
28533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28534$as_echo "$ac_try_echo") >&5
28535 (eval "$ac_compile") 2>conftest.er1
28536 ac_status=$?
28537 grep -v '^ *+' conftest.er1 >conftest.err
28538 rm -f conftest.er1
28539 cat conftest.err >&5
28540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && {
28542 test -z "$ac_c_werror_flag" ||
28543 test ! -s conftest.err
28544 } && test -s conftest.$ac_objext; then
28545 ac_hi=-1 ac_mid=-1
28546 while :; do
28547 cat >conftest.$ac_ext <<_ACEOF
28548/* confdefs.h. */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h. */
28553$ac_includes_default
28554int
28555main ()
28556{
28557static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
28558test_array [0] = 0
28559
28560 ;
28561 return 0;
28562}
28563_ACEOF
28564rm -f conftest.$ac_objext
28565if { (ac_try="$ac_compile"
28566case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28569esac
28570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28571$as_echo "$ac_try_echo") >&5
28572 (eval "$ac_compile") 2>conftest.er1
28573 ac_status=$?
28574 grep -v '^ *+' conftest.er1 >conftest.err
28575 rm -f conftest.er1
28576 cat conftest.err >&5
28577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } && {
28579 test -z "$ac_c_werror_flag" ||
28580 test ! -s conftest.err
28581 } && test -s conftest.$ac_objext; then
28582 ac_lo=$ac_mid; break
28583else
28584 $as_echo "$as_me: failed program was:" >&5
28585sed 's/^/| /' conftest.$ac_ext >&5
28586
28587 ac_hi=`expr '(' $ac_mid ')' - 1`
28588 if test $ac_mid -le $ac_hi; then
28589 ac_lo= ac_hi=
28590 break
28591 fi
28592 ac_mid=`expr 2 '*' $ac_mid`
28593fi
28594
28595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28596 done
28597else
28598 $as_echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ac_lo= ac_hi=
28602fi
28603
28604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605fi
28606
28607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28608# Binary search between lo and hi bounds.
28609while test "x$ac_lo" != "x$ac_hi"; do
28610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28611 cat >conftest.$ac_ext <<_ACEOF
28612/* confdefs.h. */
28613_ACEOF
28614cat confdefs.h >>conftest.$ac_ext
28615cat >>conftest.$ac_ext <<_ACEOF
28616/* end confdefs.h. */
28617$ac_includes_default
28618int
28619main ()
28620{
28621static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28622test_array [0] = 0
28623
28624 ;
28625 return 0;
28626}
28627_ACEOF
28628rm -f conftest.$ac_objext
28629if { (ac_try="$ac_compile"
28630case "(($ac_try" in
28631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632 *) ac_try_echo=$ac_try;;
28633esac
28634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28635$as_echo "$ac_try_echo") >&5
28636 (eval "$ac_compile") 2>conftest.er1
28637 ac_status=$?
28638 grep -v '^ *+' conftest.er1 >conftest.err
28639 rm -f conftest.er1
28640 cat conftest.err >&5
28641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } && {
28643 test -z "$ac_c_werror_flag" ||
28644 test ! -s conftest.err
28645 } && test -s conftest.$ac_objext; then
28646 ac_hi=$ac_mid
28647else
28648 $as_echo "$as_me: failed program was:" >&5
28649sed 's/^/| /' conftest.$ac_ext >&5
28650
28651 ac_lo=`expr '(' $ac_mid ')' + 1`
28652fi
28653
28654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655done
28656case $ac_lo in
28657?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
28658'') if test "$ac_cv_type_unsigned_intp" = yes; then
28659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28661{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28662See \`config.log' for more details." >&5
28663$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28664See \`config.log' for more details." >&2;}
28665 { (exit 77); exit 77; }; }; }
28666 else
28667 ac_cv_sizeof_unsigned_intp=0
28668 fi ;;
28669esac
28670else
28671 cat >conftest.$ac_ext <<_ACEOF
28672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
28677$ac_includes_default
28678static long int longval () { return (long int) (sizeof (unsigned int*)); }
28679static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
28680#include <stdio.h>
28681#include <stdlib.h>
28682int
28683main ()
28684{
28685
28686 FILE *f = fopen ("conftest.val", "w");
28687 if (! f)
28688 return 1;
28689 if (((long int) (sizeof (unsigned int*))) < 0)
28690 {
28691 long int i = longval ();
28692 if (i != ((long int) (sizeof (unsigned int*))))
28693 return 1;
28694 fprintf (f, "%ld", i);
28695 }
28696 else
28697 {
28698 unsigned long int i = ulongval ();
28699 if (i != ((long int) (sizeof (unsigned int*))))
28700 return 1;
28701 fprintf (f, "%lu", i);
28702 }
28703 /* Do not output a trailing newline, as this causes \r\n confusion
28704 on some platforms. */
28705 return ferror (f) || fclose (f) != 0;
28706
28707 ;
28708 return 0;
28709}
28710_ACEOF
28711rm -f conftest$ac_exeext
28712if { (ac_try="$ac_link"
28713case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28716esac
28717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28718$as_echo "$ac_try_echo") >&5
28719 (eval "$ac_link") 2>&5
28720 ac_status=$?
28721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28723 { (case "(($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_try") 2>&5
28730 ac_status=$?
28731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
28734else
28735 $as_echo "$as_me: program exited with status $ac_status" >&5
28736$as_echo "$as_me: failed program was:" >&5
28737sed 's/^/| /' conftest.$ac_ext >&5
28738
28739( exit $ac_status )
28740if test "$ac_cv_type_unsigned_intp" = yes; then
28741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28743{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28744See \`config.log' for more details." >&5
28745$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28746See \`config.log' for more details." >&2;}
28747 { (exit 77); exit 77; }; }; }
28748 else
28749 ac_cv_sizeof_unsigned_intp=0
28750 fi
28751fi
28752rm -rf conftest.dSYM
28753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28754fi
28755rm -f conftest.val
28756fi
28757{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
28758$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
28759
28760
28761
28762cat >>confdefs.h <<_ACEOF
28763#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
28764_ACEOF
28765
28766
28767
28768#
28769# Compute sized types for current CPU and compiler options.
28770#
28771
28772{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
28773$as_echo_n "checking for signed 8-bit type... " >&6; }
28774INT8_T='signed char'
28775{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
28776$as_echo "$INT8_T" >&6; }
28777
28778
28779{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
28780$as_echo_n "checking for unsigned 8-bit type... " >&6; }
28781UINT8_T='unsigned char'
28782{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
28783$as_echo "$UINT8_T" >&6; }
28784
28785
28786{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
28787$as_echo_n "checking for signed 16-bit type... " >&6; }
28788INT16_T='signed short'
28789{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
28790$as_echo "$INT16_T" >&6; }
28791
28792
28793{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
28794$as_echo_n "checking for unsigned 16-bit type... " >&6; }
28795UINT16_T='unsigned short'
28796{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
28797$as_echo "$UINT16_T" >&6; }
28798
28799
28800{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
28801$as_echo_n "checking for signed 32-bit type... " >&6; }
28802INT32_T='none'
28803if test $ac_cv_sizeof_signed_int -eq 4; then
28804 INT32_T='signed int'
28805elif test $ac_cv_sizeof_signed_long -eq 4; then
28806 INT32_T='signed long'
28807fi
28808{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
28809$as_echo "$INT32_T" >&6; }
28810
28811
28812{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
28813$as_echo_n "checking for unsigned 32-bit type... " >&6; }
28814UINT32_T='none'
28815if test $ac_cv_sizeof_unsigned_int -eq 4; then
28816 UINT32_T='unsigned int'
28817elif test $ac_cv_sizeof_unsigned_long -eq 4; then
28818 UINT32_T='unsigned long'
28819fi
28820{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
28821$as_echo "$UINT32_T" >&6; }
28822
28823
28824{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
28825$as_echo_n "checking for signed 64-bit type... " >&6; }
28826INT64_T='none'
28827if test $ac_cv_sizeof_signed_long -eq 8; then
28828 INT64_T='signed long'
28829elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28830 INT64_T='signed long long'
28831fi
28832{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28833$as_echo "$INT64_T" >&6; }
28834
28835
28836{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28837$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28838UINT64_T='none'
28839if test $ac_cv_sizeof_unsigned_long -eq 8; then
28840 UINT64_T='unsigned long'
28841elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28842 UINT64_T='unsigned long long'
28843fi
28844{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28845$as_echo "$UINT64_T" >&6; }
28846
28847
28848{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28849$as_echo_n "checking for unsigned maximum type... " >&6; }
28850UINTMAX_T='none'
28851if test "$UINT64_T" != 'none'; then
28852 UINTMAX_T=$UINT64_T
28853elif test "$UINT32_T" != 'none'; then
28854 UINTMAX_T=$UINT32_T
28855fi
28856{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28857$as_echo "$UINTMAX_T" >&6; }
28858
28859
28860{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28861$as_echo_n "checking for pointer difference type... " >&6; }
28862UINTPTR_T='none'
28863if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28864 UINTPTR_T='unsigned long'
28865elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28866 UINTPTR_T='unsigned long long'
28867fi
28868{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28869$as_echo "$UINTPTR_T" >&6; }
28870
28871
28872{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28873$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28874cat >conftest.$ac_ext <<_ACEOF
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880
28881int
28882main ()
28883{
28884{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28885 ;
28886 return 0;
28887}
28888_ACEOF
28889rm -f conftest.$ac_objext
28890if { (ac_try="$ac_compile"
28891case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894esac
28895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28896$as_echo "$ac_try_echo") >&5
28897 (eval "$ac_compile") 2>conftest.er1
28898 ac_status=$?
28899 grep -v '^ *+' conftest.er1 >conftest.err
28900 rm -f conftest.er1
28901 cat conftest.err >&5
28902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } && {
28904 test -z "$ac_c_werror_flag" ||
28905 test ! -s conftest.err
28906 } && test -s conftest.$ac_objext; then
28907 { $as_echo "$as_me:$LINENO: result: yes" >&5
28908$as_echo "yes" >&6; }
28909else
28910 $as_echo "$as_me: failed program was:" >&5
28911sed 's/^/| /' conftest.$ac_ext >&5
28912
28913 { $as_echo "$as_me:$LINENO: result: no" >&5
28914$as_echo "no" >&6; }
28915 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28916$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28917 cat >conftest.$ac_ext <<_ACEOF
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923
28924int
28925main ()
28926{
28927{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28928 ;
28929 return 0;
28930}
28931_ACEOF
28932rm -f conftest.$ac_objext
28933if { (ac_try="$ac_compile"
28934case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937esac
28938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28939$as_echo "$ac_try_echo") >&5
28940 (eval "$ac_compile") 2>conftest.er1
28941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } && {
28947 test -z "$ac_c_werror_flag" ||
28948 test ! -s conftest.err
28949 } && test -s conftest.$ac_objext; then
28950 { $as_echo "$as_me:$LINENO: result: yes" >&5
28951$as_echo "yes" >&6; }
28952
28953cat >>confdefs.h <<\_ACEOF
28954#define __func__ __FUNCTION__
28955_ACEOF
28956
28957else
28958 $as_echo "$as_me: failed program was:" >&5
28959sed 's/^/| /' conftest.$ac_ext >&5
28960
28961 { $as_echo "$as_me:$LINENO: result: no" >&5
28962$as_echo "no" >&6; }
28963
28964cat >>confdefs.h <<\_ACEOF
28965#define __func__ __FILE__
28966_ACEOF
28967
28968fi
28969
28970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28971fi
28972
28973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974
28975########
28976#
28977# Check for functions
28978#
28979########
28980
28981
28982for ac_header in stdlib.h unistd.h
28983do
28984as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28987$as_echo_n "checking for $ac_header... " >&6; }
28988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28989 $as_echo_n "(cached) " >&6
28990fi
28991ac_res=`eval 'as_val=${'$as_ac_Header'}
28992 $as_echo "$as_val"'`
28993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28994$as_echo "$ac_res" >&6; }
28995else
28996 # Is the header compilable?
28997{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28998$as_echo_n "checking $ac_header usability... " >&6; }
28999cat >conftest.$ac_ext <<_ACEOF
29000/* confdefs.h. */
29001_ACEOF
29002cat confdefs.h >>conftest.$ac_ext
29003cat >>conftest.$ac_ext <<_ACEOF
29004/* end confdefs.h. */
29005$ac_includes_default
29006#include <$ac_header>
29007_ACEOF
29008rm -f conftest.$ac_objext
29009if { (ac_try="$ac_compile"
29010case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29013esac
29014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29015$as_echo "$ac_try_echo") >&5
29016 (eval "$ac_compile") 2>conftest.er1
29017 ac_status=$?
29018 grep -v '^ *+' conftest.er1 >conftest.err
29019 rm -f conftest.er1
29020 cat conftest.err >&5
29021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } && {
29023 test -z "$ac_c_werror_flag" ||
29024 test ! -s conftest.err
29025 } && test -s conftest.$ac_objext; then
29026 ac_header_compiler=yes
29027else
29028 $as_echo "$as_me: failed program was:" >&5
29029sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 ac_header_compiler=no
29032fi
29033
29034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29035{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29036$as_echo "$ac_header_compiler" >&6; }
29037
29038# Is the header present?
29039{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29040$as_echo_n "checking $ac_header presence... " >&6; }
29041cat >conftest.$ac_ext <<_ACEOF
29042/* confdefs.h. */
29043_ACEOF
29044cat confdefs.h >>conftest.$ac_ext
29045cat >>conftest.$ac_ext <<_ACEOF
29046/* end confdefs.h. */
29047#include <$ac_header>
29048_ACEOF
29049if { (ac_try="$ac_cpp conftest.$ac_ext"
29050case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055$as_echo "$ac_try_echo") >&5
29056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29057 ac_status=$?
29058 grep -v '^ *+' conftest.er1 >conftest.err
29059 rm -f conftest.er1
29060 cat conftest.err >&5
29061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } >/dev/null && {
29063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29065 }; then
29066 ac_header_preproc=yes
29067else
29068 $as_echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 ac_header_preproc=no
29072fi
29073
29074rm -f conftest.err conftest.$ac_ext
29075{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076$as_echo "$ac_header_preproc" >&6; }
29077
29078# So? What about this header?
29079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080 yes:no: )
29081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29082$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29084$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29085 ac_header_preproc=yes
29086 ;;
29087 no:yes:* )
29088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29089$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29091$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29093$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29095$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29097$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29099$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29100 ( cat <<\_ASBOX
29101## ----------------------------------------- ##
29102## Report this to http://www.imagemagick.org ##
29103## ----------------------------------------- ##
29104_ASBOX
29105 ) | sed "s/^/$as_me: WARNING: /" >&2
29106 ;;
29107esac
29108{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29109$as_echo_n "checking for $ac_header... " >&6; }
29110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29111 $as_echo_n "(cached) " >&6
29112else
29113 eval "$as_ac_Header=\$ac_header_preproc"
29114fi
29115ac_res=`eval 'as_val=${'$as_ac_Header'}
29116 $as_echo "$as_val"'`
29117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29118$as_echo "$ac_res" >&6; }
29119
29120fi
29121as_val=`eval 'as_val=${'$as_ac_Header'}
29122 $as_echo "$as_val"'`
29123 if test "x$as_val" = x""yes; then
29124 cat >>confdefs.h <<_ACEOF
29125#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29126_ACEOF
29127
29128fi
29129
29130done
29131
29132
29133for ac_func in getpagesize
29134do
29135as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29136{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29137$as_echo_n "checking for $ac_func... " >&6; }
29138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29139 $as_echo_n "(cached) " >&6
29140else
29141 cat >conftest.$ac_ext <<_ACEOF
29142/* confdefs.h. */
29143_ACEOF
29144cat confdefs.h >>conftest.$ac_ext
29145cat >>conftest.$ac_ext <<_ACEOF
29146/* end confdefs.h. */
29147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29149#define $ac_func innocuous_$ac_func
29150
29151/* System header to define __stub macros and hopefully few prototypes,
29152 which can conflict with char $ac_func (); below.
29153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29154 <limits.h> exists even on freestanding compilers. */
29155
29156#ifdef __STDC__
29157# include <limits.h>
29158#else
29159# include <assert.h>
29160#endif
29161
29162#undef $ac_func
29163
29164/* Override any GCC internal prototype to avoid an error.
29165 Use char because int might match the return type of a GCC
29166 builtin and then its argument prototype would still apply. */
29167#ifdef __cplusplus
29168extern "C"
29169#endif
29170char $ac_func ();
29171/* The GNU C library defines this for functions which it implements
29172 to always fail with ENOSYS. Some functions are actually named
29173 something starting with __ and the normal name is an alias. */
29174#if defined __stub_$ac_func || defined __stub___$ac_func
29175choke me
29176#endif
29177
29178int
29179main ()
29180{
29181return $ac_func ();
29182 ;
29183 return 0;
29184}
29185_ACEOF
29186rm -f conftest.$ac_objext conftest$ac_exeext
29187if { (ac_try="$ac_link"
29188case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191esac
29192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29193$as_echo "$ac_try_echo") >&5
29194 (eval "$ac_link") 2>conftest.er1
29195 ac_status=$?
29196 grep -v '^ *+' conftest.er1 >conftest.err
29197 rm -f conftest.er1
29198 cat conftest.err >&5
29199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } && {
29201 test -z "$ac_c_werror_flag" ||
29202 test ! -s conftest.err
29203 } && test -s conftest$ac_exeext && {
29204 test "$cross_compiling" = yes ||
29205 $as_test_x conftest$ac_exeext
29206 }; then
29207 eval "$as_ac_var=yes"
29208else
29209 $as_echo "$as_me: failed program was:" >&5
29210sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 eval "$as_ac_var=no"
29213fi
29214
29215rm -rf conftest.dSYM
29216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29217 conftest$ac_exeext conftest.$ac_ext
29218fi
29219ac_res=`eval 'as_val=${'$as_ac_var'}
29220 $as_echo "$as_val"'`
29221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29222$as_echo "$ac_res" >&6; }
29223as_val=`eval 'as_val=${'$as_ac_var'}
29224 $as_echo "$as_val"'`
29225 if test "x$as_val" = x""yes; then
29226 cat >>confdefs.h <<_ACEOF
29227#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29228_ACEOF
29229
29230fi
29231done
29232
29233{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
29234$as_echo_n "checking for working mmap file i/o... " >&6; }
29235if test "${magick_cv_func_mmap_fileio+set}" = set; then
29236 $as_echo_n "(cached) " >&6
29237else
29238 if test "$cross_compiling" = yes; then
29239 magick_cv_func_mmap_fileio=no
29240else
29241 cat >conftest.$ac_ext <<_ACEOF
29242/* confdefs.h. */
29243_ACEOF
29244cat confdefs.h >>conftest.$ac_ext
29245cat >>conftest.$ac_ext <<_ACEOF
29246/* end confdefs.h. */
29247$ac_includes_default
29248/* malloc might have been renamed as rpl_malloc. */
29249#undef malloc
29250
29251/*
29252 This test is derived from GNU Autoconf's similar macro.
29253 The purpose of this test is to verify that files may be memory
29254 mapped, and that memory mapping and file I/O are coherent.
29255
29256 The test creates a test file, memory maps the file, updates
29257 the file using the memory map, and then reads the file using
29258 file I/O to verify that the file contains the updates.
29259*/
29260
29261#include <fcntl.h>
29262#include <sys/mman.h>
29263
29264#if !STDC_HEADERS && !HAVE_STDLIB_H
29265char *malloc ();
29266#endif
29267
29268/* This mess was copied from the GNU getpagesize.h. */
29269#if !HAVE_GETPAGESIZE
29270/* Assume that all systems that can run configure have sys/param.h. */
29271# if !HAVE_SYS_PARAM_H
29272# define HAVE_SYS_PARAM_H 1
29273# endif
29274
29275# ifdef _SC_PAGESIZE
29276# define getpagesize() sysconf(_SC_PAGESIZE)
29277# else /* no _SC_PAGESIZE */
29278# if HAVE_SYS_PARAM_H
29279# include <sys/param.h>
29280# ifdef EXEC_PAGESIZE
29281# define getpagesize() EXEC_PAGESIZE
29282# else /* no EXEC_PAGESIZE */
29283# ifdef NBPG
29284# define getpagesize() NBPG * CLSIZE
29285# ifndef CLSIZE
29286# define CLSIZE 1
29287# endif /* no CLSIZE */
29288# else /* no NBPG */
29289# ifdef NBPC
29290# define getpagesize() NBPC
29291# else /* no NBPC */
29292# ifdef PAGESIZE
29293# define getpagesize() PAGESIZE
29294# endif /* PAGESIZE */
29295# endif /* no NBPC */
29296# endif /* no NBPG */
29297# endif /* no EXEC_PAGESIZE */
29298# else /* no HAVE_SYS_PARAM_H */
29299# define getpagesize() 8192 /* punt totally */
29300# endif /* no HAVE_SYS_PARAM_H */
29301# endif /* no _SC_PAGESIZE */
29302
29303#endif /* no HAVE_GETPAGESIZE */
29304
29305int
29306main ()
29307{
29308 char *data, *data2, *data3;
29309 int i, pagesize;
29310 int fd;
29311
29312 pagesize = getpagesize ();
29313
29314 /* First, make a file with some known garbage in it. */
29315 data = (char *) malloc (pagesize);
29316 if (!data)
29317 exit (1);
29318 for (i = 0; i < pagesize; ++i)
29319 *(data + i) = rand ();
29320 umask (0);
29321 fd = creat ("conftest.mmap", 0600);
29322 if (fd < 0)
29323 exit (1);
29324 if (write (fd, data, pagesize) != pagesize)
29325 exit (1);
29326 close (fd);
29327
29328 /* Mmap the file as read/write/shared and verify that we see the
29329 same garbage. */
29330 fd = open ("conftest.mmap", O_RDWR);
29331 if (fd < 0)
29332 exit (1);
29333 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
29334 if (data2 == 0)
29335 exit (1);
29336 for (i = 0; i < pagesize; ++i)
29337 if (*(data + i) != *(data2 + i))
29338 exit (1);
29339
29340 /* Finally, make sure that changes to the mapped area
29341 percolate back to the file as seen by read(). */
29342 for (i = 0; i < pagesize; ++i)
29343 *(data2 + i) = *(data2 + i) + 1;
29344 data3 = (char *) malloc (pagesize);
29345 if (!data3)
29346 exit (1);
29347 if (read (fd, data3, pagesize) != pagesize)
29348 exit (1);
29349 for (i = 0; i < pagesize; ++i)
29350 if (*(data2 + i) != *(data3 + i))
29351 exit (1);
29352 close (fd);
29353 exit (0);
29354}
29355_ACEOF
29356rm -f conftest$ac_exeext
29357if { (ac_try="$ac_link"
29358case "(($ac_try" in
29359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360 *) ac_try_echo=$ac_try;;
29361esac
29362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29363$as_echo "$ac_try_echo") >&5
29364 (eval "$ac_link") 2>&5
29365 ac_status=$?
29366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29368 { (case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29371esac
29372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29373$as_echo "$ac_try_echo") >&5
29374 (eval "$ac_try") 2>&5
29375 ac_status=$?
29376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; }; then
29378 magick_cv_func_mmap_fileio=yes
29379else
29380 $as_echo "$as_me: program exited with status $ac_status" >&5
29381$as_echo "$as_me: failed program was:" >&5
29382sed 's/^/| /' conftest.$ac_ext >&5
29383
29384( exit $ac_status )
29385magick_cv_func_mmap_fileio=no
29386fi
29387rm -rf conftest.dSYM
29388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29389fi
29390
29391
29392fi
29393{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
29394$as_echo "$magick_cv_func_mmap_fileio" >&6; }
29395if test $magick_cv_func_mmap_fileio = yes; then
29396
29397cat >>confdefs.h <<\_ACEOF
29398#define HAVE_MMAP_FILEIO 1
29399_ACEOF
29400
29401fi
29402rm -f conftest.mmap
29403
29404{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29405$as_echo_n "checking whether closedir returns void... " >&6; }
29406if test "${ac_cv_func_closedir_void+set}" = set; then
29407 $as_echo_n "(cached) " >&6
29408else
29409 if test "$cross_compiling" = yes; then
29410 ac_cv_func_closedir_void=yes
29411else
29412 cat >conftest.$ac_ext <<_ACEOF
29413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
29418$ac_includes_default
29419#include <$ac_header_dirent>
29420#ifndef __cplusplus
29421int closedir ();
29422#endif
29423
29424int
29425main ()
29426{
29427return closedir (opendir (".")) != 0;
29428 ;
29429 return 0;
29430}
29431_ACEOF
29432rm -f conftest$ac_exeext
29433if { (ac_try="$ac_link"
29434case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29437esac
29438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29439$as_echo "$ac_try_echo") >&5
29440 (eval "$ac_link") 2>&5
29441 ac_status=$?
29442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29444 { (case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29447esac
29448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29449$as_echo "$ac_try_echo") >&5
29450 (eval "$ac_try") 2>&5
29451 ac_status=$?
29452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; }; then
29454 ac_cv_func_closedir_void=no
29455else
29456 $as_echo "$as_me: program exited with status $ac_status" >&5
29457$as_echo "$as_me: failed program was:" >&5
29458sed 's/^/| /' conftest.$ac_ext >&5
29459
29460( exit $ac_status )
29461ac_cv_func_closedir_void=yes
29462fi
29463rm -rf conftest.dSYM
29464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29465fi
29466
29467
29468fi
29469{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29470$as_echo "$ac_cv_func_closedir_void" >&6; }
29471if test $ac_cv_func_closedir_void = yes; then
29472
29473cat >>confdefs.h <<\_ACEOF
29474#define CLOSEDIR_VOID 1
29475_ACEOF
29476
29477fi
29478
29479
29480
29481for ac_header in stdlib.h unistd.h
29482do
29483as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29486$as_echo_n "checking for $ac_header... " >&6; }
29487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29488 $as_echo_n "(cached) " >&6
29489fi
29490ac_res=`eval 'as_val=${'$as_ac_Header'}
29491 $as_echo "$as_val"'`
29492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29493$as_echo "$ac_res" >&6; }
29494else
29495 # Is the header compilable?
29496{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29497$as_echo_n "checking $ac_header usability... " >&6; }
29498cat >conftest.$ac_ext <<_ACEOF
29499/* confdefs.h. */
29500_ACEOF
29501cat confdefs.h >>conftest.$ac_ext
29502cat >>conftest.$ac_ext <<_ACEOF
29503/* end confdefs.h. */
29504$ac_includes_default
29505#include <$ac_header>
29506_ACEOF
29507rm -f conftest.$ac_objext
29508if { (ac_try="$ac_compile"
29509case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29512esac
29513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29514$as_echo "$ac_try_echo") >&5
29515 (eval "$ac_compile") 2>conftest.er1
29516 ac_status=$?
29517 grep -v '^ *+' conftest.er1 >conftest.err
29518 rm -f conftest.er1
29519 cat conftest.err >&5
29520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } && {
29522 test -z "$ac_c_werror_flag" ||
29523 test ! -s conftest.err
29524 } && test -s conftest.$ac_objext; then
29525 ac_header_compiler=yes
29526else
29527 $as_echo "$as_me: failed program was:" >&5
29528sed 's/^/| /' conftest.$ac_ext >&5
29529
29530 ac_header_compiler=no
29531fi
29532
29533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29535$as_echo "$ac_header_compiler" >&6; }
29536
29537# Is the header present?
29538{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29539$as_echo_n "checking $ac_header presence... " >&6; }
29540cat >conftest.$ac_ext <<_ACEOF
29541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
29546#include <$ac_header>
29547_ACEOF
29548if { (ac_try="$ac_cpp conftest.$ac_ext"
29549case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
29556 ac_status=$?
29557 grep -v '^ *+' conftest.er1 >conftest.err
29558 rm -f conftest.er1
29559 cat conftest.err >&5
29560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } >/dev/null && {
29562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29563 test ! -s conftest.err
29564 }; then
29565 ac_header_preproc=yes
29566else
29567 $as_echo "$as_me: failed program was:" >&5
29568sed 's/^/| /' conftest.$ac_ext >&5
29569
29570 ac_header_preproc=no
29571fi
29572
29573rm -f conftest.err conftest.$ac_ext
29574{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29575$as_echo "$ac_header_preproc" >&6; }
29576
29577# So? What about this header?
29578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29579 yes:no: )
29580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29581$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29583$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29584 ac_header_preproc=yes
29585 ;;
29586 no:yes:* )
29587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29588$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29590$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29592$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29594$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29596$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29598$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29599 ( cat <<\_ASBOX
29600## ----------------------------------------- ##
29601## Report this to http://www.imagemagick.org ##
29602## ----------------------------------------- ##
29603_ASBOX
29604 ) | sed "s/^/$as_me: WARNING: /" >&2
29605 ;;
29606esac
29607{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29608$as_echo_n "checking for $ac_header... " >&6; }
29609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29610 $as_echo_n "(cached) " >&6
29611else
29612 eval "$as_ac_Header=\$ac_header_preproc"
29613fi
29614ac_res=`eval 'as_val=${'$as_ac_Header'}
29615 $as_echo "$as_val"'`
29616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29617$as_echo "$ac_res" >&6; }
29618
29619fi
29620as_val=`eval 'as_val=${'$as_ac_Header'}
29621 $as_echo "$as_val"'`
29622 if test "x$as_val" = x""yes; then
29623 cat >>confdefs.h <<_ACEOF
29624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29625_ACEOF
29626
29627fi
29628
29629done
29630
29631
29632for ac_func in getpagesize
29633do
29634as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29635{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29636$as_echo_n "checking for $ac_func... " >&6; }
29637if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29638 $as_echo_n "(cached) " >&6
29639else
29640 cat >conftest.$ac_ext <<_ACEOF
29641/* confdefs.h. */
29642_ACEOF
29643cat confdefs.h >>conftest.$ac_ext
29644cat >>conftest.$ac_ext <<_ACEOF
29645/* end confdefs.h. */
29646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29648#define $ac_func innocuous_$ac_func
29649
29650/* System header to define __stub macros and hopefully few prototypes,
29651 which can conflict with char $ac_func (); below.
29652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29653 <limits.h> exists even on freestanding compilers. */
29654
29655#ifdef __STDC__
29656# include <limits.h>
29657#else
29658# include <assert.h>
29659#endif
29660
29661#undef $ac_func
29662
29663/* Override any GCC internal prototype to avoid an error.
29664 Use char because int might match the return type of a GCC
29665 builtin and then its argument prototype would still apply. */
29666#ifdef __cplusplus
29667extern "C"
29668#endif
29669char $ac_func ();
29670/* The GNU C library defines this for functions which it implements
29671 to always fail with ENOSYS. Some functions are actually named
29672 something starting with __ and the normal name is an alias. */
29673#if defined __stub_$ac_func || defined __stub___$ac_func
29674choke me
29675#endif
29676
29677int
29678main ()
29679{
29680return $ac_func ();
29681 ;
29682 return 0;
29683}
29684_ACEOF
29685rm -f conftest.$ac_objext conftest$ac_exeext
29686if { (ac_try="$ac_link"
29687case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690esac
29691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29692$as_echo "$ac_try_echo") >&5
29693 (eval "$ac_link") 2>conftest.er1
29694 ac_status=$?
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
29698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } && {
29700 test -z "$ac_c_werror_flag" ||
29701 test ! -s conftest.err
29702 } && test -s conftest$ac_exeext && {
29703 test "$cross_compiling" = yes ||
29704 $as_test_x conftest$ac_exeext
29705 }; then
29706 eval "$as_ac_var=yes"
29707else
29708 $as_echo "$as_me: failed program was:" >&5
29709sed 's/^/| /' conftest.$ac_ext >&5
29710
29711 eval "$as_ac_var=no"
29712fi
29713
29714rm -rf conftest.dSYM
29715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29716 conftest$ac_exeext conftest.$ac_ext
29717fi
29718ac_res=`eval 'as_val=${'$as_ac_var'}
29719 $as_echo "$as_val"'`
29720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29721$as_echo "$ac_res" >&6; }
29722as_val=`eval 'as_val=${'$as_ac_var'}
29723 $as_echo "$as_val"'`
29724 if test "x$as_val" = x""yes; then
29725 cat >>confdefs.h <<_ACEOF
29726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29727_ACEOF
29728
29729fi
29730done
29731
29732{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
29733$as_echo_n "checking for working mmap... " >&6; }
29734if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29735 $as_echo_n "(cached) " >&6
29736else
29737 if test "$cross_compiling" = yes; then
29738 ac_cv_func_mmap_fixed_mapped=no
29739else
29740 cat >conftest.$ac_ext <<_ACEOF
29741/* confdefs.h. */
29742_ACEOF
29743cat confdefs.h >>conftest.$ac_ext
29744cat >>conftest.$ac_ext <<_ACEOF
29745/* end confdefs.h. */
29746$ac_includes_default
29747/* malloc might have been renamed as rpl_malloc. */
29748#undef malloc
29749
29750/* Thanks to Mike Haertel and Jim Avera for this test.
29751 Here is a matrix of mmap possibilities:
29752 mmap private not fixed
29753 mmap private fixed at somewhere currently unmapped
29754 mmap private fixed at somewhere already mapped
29755 mmap shared not fixed
29756 mmap shared fixed at somewhere currently unmapped
29757 mmap shared fixed at somewhere already mapped
29758 For private mappings, we should verify that changes cannot be read()
29759 back from the file, nor mmap's back from the file at a different
29760 address. (There have been systems where private was not correctly
29761 implemented like the infamous i386 svr4.0, and systems where the
29762 VM page cache was not coherent with the file system buffer cache
29763 like early versions of FreeBSD and possibly contemporary NetBSD.)
29764 For shared mappings, we should conversely verify that changes get
29765 propagated back to all the places they're supposed to be.
29766
29767 Grep wants private fixed already mapped.
29768 The main things grep needs to know about mmap are:
29769 * does it exist and is it safe to write into the mmap'd area
29770 * how to use it (BSD variants) */
29771
29772#include <fcntl.h>
29773#include <sys/mman.h>
29774
29775#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
29776char *malloc ();
29777#endif
29778
29779/* This mess was copied from the GNU getpagesize.h. */
29780#ifndef HAVE_GETPAGESIZE
29781/* Assume that all systems that can run configure have sys/param.h. */
29782# ifndef HAVE_SYS_PARAM_H
29783# define HAVE_SYS_PARAM_H 1
29784# endif
29785
29786# ifdef _SC_PAGESIZE
29787# define getpagesize() sysconf(_SC_PAGESIZE)
29788# else /* no _SC_PAGESIZE */
29789# ifdef HAVE_SYS_PARAM_H
29790# include <sys/param.h>
29791# ifdef EXEC_PAGESIZE
29792# define getpagesize() EXEC_PAGESIZE
29793# else /* no EXEC_PAGESIZE */
29794# ifdef NBPG
29795# define getpagesize() NBPG * CLSIZE
29796# ifndef CLSIZE
29797# define CLSIZE 1
29798# endif /* no CLSIZE */
29799# else /* no NBPG */
29800# ifdef NBPC
29801# define getpagesize() NBPC
29802# else /* no NBPC */
29803# ifdef PAGESIZE
29804# define getpagesize() PAGESIZE
29805# endif /* PAGESIZE */
29806# endif /* no NBPC */
29807# endif /* no NBPG */
29808# endif /* no EXEC_PAGESIZE */
29809# else /* no HAVE_SYS_PARAM_H */
29810# define getpagesize() 8192 /* punt totally */
29811# endif /* no HAVE_SYS_PARAM_H */
29812# endif /* no _SC_PAGESIZE */
29813
29814#endif /* no HAVE_GETPAGESIZE */
29815
29816int
29817main ()
29818{
29819 char *data, *data2, *data3;
29820 int i, pagesize;
29821 int fd;
29822
29823 pagesize = getpagesize ();
29824
29825 /* First, make a file with some known garbage in it. */
29826 data = (char *) malloc (pagesize);
29827 if (!data)
29828 return 1;
29829 for (i = 0; i < pagesize; ++i)
29830 *(data + i) = rand ();
29831 umask (0);
29832 fd = creat ("conftest.mmap", 0600);
29833 if (fd < 0)
29834 return 1;
29835 if (write (fd, data, pagesize) != pagesize)
29836 return 1;
29837 close (fd);
29838
29839 /* Next, try to mmap the file at a fixed address which already has
29840 something else allocated at it. If we can, also make sure that
29841 we see the same garbage. */
29842 fd = open ("conftest.mmap", O_RDWR);
29843 if (fd < 0)
29844 return 1;
29845 data2 = (char *) malloc (2 * pagesize);
29846 if (!data2)
29847 return 1;
29848 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29849 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29850 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29851 return 1;
29852 for (i = 0; i < pagesize; ++i)
29853 if (*(data + i) != *(data2 + i))
29854 return 1;
29855
29856 /* Finally, make sure that changes to the mapped area do not
29857 percolate back to the file as seen by read(). (This is a bug on
29858 some variants of i386 svr4.0.) */
29859 for (i = 0; i < pagesize; ++i)
29860 *(data2 + i) = *(data2 + i) + 1;
29861 data3 = (char *) malloc (pagesize);
29862 if (!data3)
29863 return 1;
29864 if (read (fd, data3, pagesize) != pagesize)
29865 return 1;
29866 for (i = 0; i < pagesize; ++i)
29867 if (*(data + i) != *(data3 + i))
29868 return 1;
29869 close (fd);
29870 return 0;
29871}
29872_ACEOF
29873rm -f conftest$ac_exeext
29874if { (ac_try="$ac_link"
29875case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29878esac
29879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29880$as_echo "$ac_try_echo") >&5
29881 (eval "$ac_link") 2>&5
29882 ac_status=$?
29883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29885 { (case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29888esac
29889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29890$as_echo "$ac_try_echo") >&5
29891 (eval "$ac_try") 2>&5
29892 ac_status=$?
29893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
29895 ac_cv_func_mmap_fixed_mapped=yes
29896else
29897 $as_echo "$as_me: program exited with status $ac_status" >&5
29898$as_echo "$as_me: failed program was:" >&5
29899sed 's/^/| /' conftest.$ac_ext >&5
29900
29901( exit $ac_status )
29902ac_cv_func_mmap_fixed_mapped=no
29903fi
29904rm -rf conftest.dSYM
29905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29906fi
29907
29908
29909fi
29910{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29911$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29912if test $ac_cv_func_mmap_fixed_mapped = yes; then
29913
29914cat >>confdefs.h <<\_ACEOF
29915#define HAVE_MMAP 1
29916_ACEOF
29917
29918fi
29919rm -f conftest.mmap
29920
29921
29922for ac_header in vfork.h
29923do
29924as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29927$as_echo_n "checking for $ac_header... " >&6; }
29928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29929 $as_echo_n "(cached) " >&6
29930fi
29931ac_res=`eval 'as_val=${'$as_ac_Header'}
29932 $as_echo "$as_val"'`
29933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29934$as_echo "$ac_res" >&6; }
29935else
29936 # Is the header compilable?
29937{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29938$as_echo_n "checking $ac_header usability... " >&6; }
29939cat >conftest.$ac_ext <<_ACEOF
29940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
29945$ac_includes_default
29946#include <$ac_header>
29947_ACEOF
29948rm -f conftest.$ac_objext
29949if { (ac_try="$ac_compile"
29950case "(($ac_try" in
29951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29952 *) ac_try_echo=$ac_try;;
29953esac
29954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29955$as_echo "$ac_try_echo") >&5
29956 (eval "$ac_compile") 2>conftest.er1
29957 ac_status=$?
29958 grep -v '^ *+' conftest.er1 >conftest.err
29959 rm -f conftest.er1
29960 cat conftest.err >&5
29961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } && {
29963 test -z "$ac_c_werror_flag" ||
29964 test ! -s conftest.err
29965 } && test -s conftest.$ac_objext; then
29966 ac_header_compiler=yes
29967else
29968 $as_echo "$as_me: failed program was:" >&5
29969sed 's/^/| /' conftest.$ac_ext >&5
29970
29971 ac_header_compiler=no
29972fi
29973
29974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29975{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29976$as_echo "$ac_header_compiler" >&6; }
29977
29978# Is the header present?
29979{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29980$as_echo_n "checking $ac_header presence... " >&6; }
29981cat >conftest.$ac_ext <<_ACEOF
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
29987#include <$ac_header>
29988_ACEOF
29989if { (ac_try="$ac_cpp conftest.$ac_ext"
29990case "(($ac_try" in
29991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992 *) ac_try_echo=$ac_try;;
29993esac
29994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29995$as_echo "$ac_try_echo") >&5
29996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29997 ac_status=$?
29998 grep -v '^ *+' conftest.er1 >conftest.err
29999 rm -f conftest.er1
30000 cat conftest.err >&5
30001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } >/dev/null && {
30003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30004 test ! -s conftest.err
30005 }; then
30006 ac_header_preproc=yes
30007else
30008 $as_echo "$as_me: failed program was:" >&5
30009sed 's/^/| /' conftest.$ac_ext >&5
30010
30011 ac_header_preproc=no
30012fi
30013
30014rm -f conftest.err conftest.$ac_ext
30015{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30016$as_echo "$ac_header_preproc" >&6; }
30017
30018# So? What about this header?
30019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30020 yes:no: )
30021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30022$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30024$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30025 ac_header_preproc=yes
30026 ;;
30027 no:yes:* )
30028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30029$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30031$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30033$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30035$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30037$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30039$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30040 ( cat <<\_ASBOX
30041## ----------------------------------------- ##
30042## Report this to http://www.imagemagick.org ##
30043## ----------------------------------------- ##
30044_ASBOX
30045 ) | sed "s/^/$as_me: WARNING: /" >&2
30046 ;;
30047esac
30048{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30049$as_echo_n "checking for $ac_header... " >&6; }
30050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30051 $as_echo_n "(cached) " >&6
30052else
30053 eval "$as_ac_Header=\$ac_header_preproc"
30054fi
30055ac_res=`eval 'as_val=${'$as_ac_Header'}
30056 $as_echo "$as_val"'`
30057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30058$as_echo "$ac_res" >&6; }
30059
30060fi
30061as_val=`eval 'as_val=${'$as_ac_Header'}
30062 $as_echo "$as_val"'`
30063 if test "x$as_val" = x""yes; then
30064 cat >>confdefs.h <<_ACEOF
30065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30066_ACEOF
30067
30068fi
30069
30070done
30071
30072
30073
30074for ac_func in fork vfork
30075do
30076as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30077{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30078$as_echo_n "checking for $ac_func... " >&6; }
30079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30080 $as_echo_n "(cached) " >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
30083/* confdefs.h. */
30084_ACEOF
30085cat confdefs.h >>conftest.$ac_ext
30086cat >>conftest.$ac_ext <<_ACEOF
30087/* end confdefs.h. */
30088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30090#define $ac_func innocuous_$ac_func
30091
30092/* System header to define __stub macros and hopefully few prototypes,
30093 which can conflict with char $ac_func (); below.
30094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30095 <limits.h> exists even on freestanding compilers. */
30096
30097#ifdef __STDC__
30098# include <limits.h>
30099#else
30100# include <assert.h>
30101#endif
30102
30103#undef $ac_func
30104
30105/* Override any GCC internal prototype to avoid an error.
30106 Use char because int might match the return type of a GCC
30107 builtin and then its argument prototype would still apply. */
30108#ifdef __cplusplus
30109extern "C"
30110#endif
30111char $ac_func ();
30112/* The GNU C library defines this for functions which it implements
30113 to always fail with ENOSYS. Some functions are actually named
30114 something starting with __ and the normal name is an alias. */
30115#if defined __stub_$ac_func || defined __stub___$ac_func
30116choke me
30117#endif
30118
30119int
30120main ()
30121{
30122return $ac_func ();
30123 ;
30124 return 0;
30125}
30126_ACEOF
30127rm -f conftest.$ac_objext conftest$ac_exeext
30128if { (ac_try="$ac_link"
30129case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30132esac
30133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30134$as_echo "$ac_try_echo") >&5
30135 (eval "$ac_link") 2>conftest.er1
30136 ac_status=$?
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
30140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } && {
30142 test -z "$ac_c_werror_flag" ||
30143 test ! -s conftest.err
30144 } && test -s conftest$ac_exeext && {
30145 test "$cross_compiling" = yes ||
30146 $as_test_x conftest$ac_exeext
30147 }; then
30148 eval "$as_ac_var=yes"
30149else
30150 $as_echo "$as_me: failed program was:" >&5
30151sed 's/^/| /' conftest.$ac_ext >&5
30152
30153 eval "$as_ac_var=no"
30154fi
30155
30156rm -rf conftest.dSYM
30157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30158 conftest$ac_exeext conftest.$ac_ext
30159fi
30160ac_res=`eval 'as_val=${'$as_ac_var'}
30161 $as_echo "$as_val"'`
30162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30163$as_echo "$ac_res" >&6; }
30164as_val=`eval 'as_val=${'$as_ac_var'}
30165 $as_echo "$as_val"'`
30166 if test "x$as_val" = x""yes; then
30167 cat >>confdefs.h <<_ACEOF
30168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169_ACEOF
30170
30171fi
30172done
30173
30174if test "x$ac_cv_func_fork" = xyes; then
30175 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
30176$as_echo_n "checking for working fork... " >&6; }
30177if test "${ac_cv_func_fork_works+set}" = set; then
30178 $as_echo_n "(cached) " >&6
30179else
30180 if test "$cross_compiling" = yes; then
30181 ac_cv_func_fork_works=cross
30182else
30183 cat >conftest.$ac_ext <<_ACEOF
30184/* confdefs.h. */
30185_ACEOF
30186cat confdefs.h >>conftest.$ac_ext
30187cat >>conftest.$ac_ext <<_ACEOF
30188/* end confdefs.h. */
30189$ac_includes_default
30190int
30191main ()
30192{
30193
30194 /* By Ruediger Kuhlmann. */
30195 return fork () < 0;
30196
30197 ;
30198 return 0;
30199}
30200_ACEOF
30201rm -f conftest$ac_exeext
30202if { (ac_try="$ac_link"
30203case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206esac
30207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30208$as_echo "$ac_try_echo") >&5
30209 (eval "$ac_link") 2>&5
30210 ac_status=$?
30211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30213 { (case "(($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_try") 2>&5
30220 ac_status=$?
30221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; }; then
30223 ac_cv_func_fork_works=yes
30224else
30225 $as_echo "$as_me: program exited with status $ac_status" >&5
30226$as_echo "$as_me: failed program was:" >&5
30227sed 's/^/| /' conftest.$ac_ext >&5
30228
30229( exit $ac_status )
30230ac_cv_func_fork_works=no
30231fi
30232rm -rf conftest.dSYM
30233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30234fi
30235
30236
30237fi
30238{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
30239$as_echo "$ac_cv_func_fork_works" >&6; }
30240
30241else
30242 ac_cv_func_fork_works=$ac_cv_func_fork
30243fi
30244if test "x$ac_cv_func_fork_works" = xcross; then
30245 case $host in
30246 *-*-amigaos* | *-*-msdosdjgpp*)
30247 # Override, as these systems have only a dummy fork() stub
30248 ac_cv_func_fork_works=no
30249 ;;
30250 *)
30251 ac_cv_func_fork_works=yes
30252 ;;
30253 esac
30254 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
30255$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
30256fi
30257ac_cv_func_vfork_works=$ac_cv_func_vfork
30258if test "x$ac_cv_func_vfork" = xyes; then
30259 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
30260$as_echo_n "checking for working vfork... " >&6; }
30261if test "${ac_cv_func_vfork_works+set}" = set; then
30262 $as_echo_n "(cached) " >&6
30263else
30264 if test "$cross_compiling" = yes; then
30265 ac_cv_func_vfork_works=cross
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/* Thanks to Paul Eggert for this test. */
30274$ac_includes_default
30275#include <sys/wait.h>
30276#ifdef HAVE_VFORK_H
30277# include <vfork.h>
30278#endif
30279/* On some sparc systems, changes by the child to local and incoming
30280 argument registers are propagated back to the parent. The compiler
30281 is told about this with #include <vfork.h>, but some compilers
30282 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
30283 static variable whose address is put into a register that is
30284 clobbered by the vfork. */
30285static void
30286#ifdef __cplusplus
30287sparc_address_test (int arg)
30288# else
30289sparc_address_test (arg) int arg;
30290#endif
30291{
30292 static pid_t child;
30293 if (!child) {
30294 child = vfork ();
30295 if (child < 0) {
30296 perror ("vfork");
30297 _exit(2);
30298 }
30299 if (!child) {
30300 arg = getpid();
30301 write(-1, "", 0);
30302 _exit (arg);
30303 }
30304 }
30305}
30306
30307int
30308main ()
30309{
30310 pid_t parent = getpid ();
30311 pid_t child;
30312
30313 sparc_address_test (0);
30314
30315 child = vfork ();
30316
30317 if (child == 0) {
30318 /* Here is another test for sparc vfork register problems. This
30319 test uses lots of local variables, at least as many local
30320 variables as main has allocated so far including compiler
30321 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
30322 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
30323 reuse the register of parent for one of the local variables,
30324 since it will think that parent can't possibly be used any more
30325 in this routine. Assigning to the local variable will thus
30326 munge parent in the parent process. */
30327 pid_t
30328 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30329 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30330 /* Convince the compiler that p..p7 are live; otherwise, it might
30331 use the same hardware register for all 8 local variables. */
30332 if (p != p1 || p != p2 || p != p3 || p != p4
30333 || p != p5 || p != p6 || p != p7)
30334 _exit(1);
30335
30336 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30337 from child file descriptors. If the child closes a descriptor
30338 before it execs or exits, this munges the parent's descriptor
30339 as well. Test for this by closing stdout in the child. */
30340 _exit(close(fileno(stdout)) != 0);
30341 } else {
30342 int status;
30343 struct stat st;
30344
30345 while (wait(&status) != child)
30346 ;
30347 return (
30348 /* Was there some problem with vforking? */
30349 child < 0
30350
30351 /* Did the child fail? (This shouldn't happen.) */
30352 || status
30353
30354 /* Did the vfork/compiler bug occur? */
30355 || parent != getpid()
30356
30357 /* Did the file descriptor bug occur? */
30358 || fstat(fileno(stdout), &st) != 0
30359 );
30360 }
30361}
30362_ACEOF
30363rm -f conftest$ac_exeext
30364if { (ac_try="$ac_link"
30365case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368esac
30369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30370$as_echo "$ac_try_echo") >&5
30371 (eval "$ac_link") 2>&5
30372 ac_status=$?
30373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30375 { (case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378esac
30379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30380$as_echo "$ac_try_echo") >&5
30381 (eval "$ac_try") 2>&5
30382 ac_status=$?
30383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 ac_cv_func_vfork_works=yes
30386else
30387 $as_echo "$as_me: program exited with status $ac_status" >&5
30388$as_echo "$as_me: failed program was:" >&5
30389sed 's/^/| /' conftest.$ac_ext >&5
30390
30391( exit $ac_status )
30392ac_cv_func_vfork_works=no
30393fi
30394rm -rf conftest.dSYM
30395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30396fi
30397
30398
30399fi
30400{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30401$as_echo "$ac_cv_func_vfork_works" >&6; }
30402
30403fi;
30404if test "x$ac_cv_func_fork_works" = xcross; then
30405 ac_cv_func_vfork_works=$ac_cv_func_vfork
30406 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30407$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30408fi
30409
30410if test "x$ac_cv_func_vfork_works" = xyes; then
30411
30412cat >>confdefs.h <<\_ACEOF
30413#define HAVE_WORKING_VFORK 1
30414_ACEOF
30415
30416else
30417
30418cat >>confdefs.h <<\_ACEOF
30419#define vfork fork
30420_ACEOF
30421
30422fi
30423if test "x$ac_cv_func_fork_works" = xyes; then
30424
30425cat >>confdefs.h <<\_ACEOF
30426#define HAVE_WORKING_FORK 1
30427_ACEOF
30428
30429fi
30430
30431{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
30432$as_echo_n "checking for working memcmp... " >&6; }
30433if test "${ac_cv_func_memcmp_working+set}" = set; then
30434 $as_echo_n "(cached) " >&6
30435else
30436 if test "$cross_compiling" = yes; then
30437 ac_cv_func_memcmp_working=no
30438else
30439 cat >conftest.$ac_ext <<_ACEOF
30440/* confdefs.h. */
30441_ACEOF
30442cat confdefs.h >>conftest.$ac_ext
30443cat >>conftest.$ac_ext <<_ACEOF
30444/* end confdefs.h. */
30445$ac_includes_default
30446int
30447main ()
30448{
30449
30450 /* Some versions of memcmp are not 8-bit clean. */
30451 char c0 = '\100', c1 = '\200', c2 = '\201';
30452 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
30453 return 1;
30454
30455 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
30456 or more and with at least one buffer not starting on a 4-byte boundary.
30457 William Lewis provided this test program. */
30458 {
30459 char foo[21];
30460 char bar[21];
30461 int i;
30462 for (i = 0; i < 4; i++)
30463 {
30464 char *a = foo + i;
30465 char *b = bar + i;
30466 strcpy (a, "--------01111111");
30467 strcpy (b, "--------10000000");
30468 if (memcmp (a, b, 16) >= 0)
30469 return 1;
30470 }
30471 return 0;
30472 }
30473
30474 ;
30475 return 0;
30476}
30477_ACEOF
30478rm -f conftest$ac_exeext
30479if { (ac_try="$ac_link"
30480case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30483esac
30484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30485$as_echo "$ac_try_echo") >&5
30486 (eval "$ac_link") 2>&5
30487 ac_status=$?
30488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30490 { (case "(($ac_try" in
30491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30492 *) ac_try_echo=$ac_try;;
30493esac
30494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30495$as_echo "$ac_try_echo") >&5
30496 (eval "$ac_try") 2>&5
30497 ac_status=$?
30498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 ac_cv_func_memcmp_working=yes
30501else
30502 $as_echo "$as_me: program exited with status $ac_status" >&5
30503$as_echo "$as_me: failed program was:" >&5
30504sed 's/^/| /' conftest.$ac_ext >&5
30505
30506( exit $ac_status )
30507ac_cv_func_memcmp_working=no
30508fi
30509rm -rf conftest.dSYM
30510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30511fi
30512
30513
30514fi
30515{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
30516$as_echo "$ac_cv_func_memcmp_working" >&6; }
30517test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
30518 *" memcmp.$ac_objext "* ) ;;
30519 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
30520 ;;
30521esac
30522
30523
30524
30525
30526for ac_header in sys/select.h sys/socket.h
30527do
30528as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30531$as_echo_n "checking for $ac_header... " >&6; }
30532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30533 $as_echo_n "(cached) " >&6
30534fi
30535ac_res=`eval 'as_val=${'$as_ac_Header'}
30536 $as_echo "$as_val"'`
30537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30538$as_echo "$ac_res" >&6; }
30539else
30540 # Is the header compilable?
30541{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30542$as_echo_n "checking $ac_header usability... " >&6; }
30543cat >conftest.$ac_ext <<_ACEOF
30544/* confdefs.h. */
30545_ACEOF
30546cat confdefs.h >>conftest.$ac_ext
30547cat >>conftest.$ac_ext <<_ACEOF
30548/* end confdefs.h. */
30549$ac_includes_default
30550#include <$ac_header>
30551_ACEOF
30552rm -f conftest.$ac_objext
30553if { (ac_try="$ac_compile"
30554case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30557esac
30558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30559$as_echo "$ac_try_echo") >&5
30560 (eval "$ac_compile") 2>conftest.er1
30561 ac_status=$?
30562 grep -v '^ *+' conftest.er1 >conftest.err
30563 rm -f conftest.er1
30564 cat conftest.err >&5
30565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); } && {
30567 test -z "$ac_c_werror_flag" ||
30568 test ! -s conftest.err
30569 } && test -s conftest.$ac_objext; then
30570 ac_header_compiler=yes
30571else
30572 $as_echo "$as_me: failed program was:" >&5
30573sed 's/^/| /' conftest.$ac_ext >&5
30574
30575 ac_header_compiler=no
30576fi
30577
30578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30579{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30580$as_echo "$ac_header_compiler" >&6; }
30581
30582# Is the header present?
30583{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30584$as_echo_n "checking $ac_header presence... " >&6; }
30585cat >conftest.$ac_ext <<_ACEOF
30586/* confdefs.h. */
30587_ACEOF
30588cat confdefs.h >>conftest.$ac_ext
30589cat >>conftest.$ac_ext <<_ACEOF
30590/* end confdefs.h. */
30591#include <$ac_header>
30592_ACEOF
30593if { (ac_try="$ac_cpp conftest.$ac_ext"
30594case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30597esac
30598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30599$as_echo "$ac_try_echo") >&5
30600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30601 ac_status=$?
30602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
30605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } >/dev/null && {
30607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30608 test ! -s conftest.err
30609 }; then
30610 ac_header_preproc=yes
30611else
30612 $as_echo "$as_me: failed program was:" >&5
30613sed 's/^/| /' conftest.$ac_ext >&5
30614
30615 ac_header_preproc=no
30616fi
30617
30618rm -f conftest.err conftest.$ac_ext
30619{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30620$as_echo "$ac_header_preproc" >&6; }
30621
30622# So? What about this header?
30623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30624 yes:no: )
30625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30626$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30628$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30629 ac_header_preproc=yes
30630 ;;
30631 no:yes:* )
30632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30633$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30635$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30637$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30639$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30641$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30643$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30644 ( cat <<\_ASBOX
30645## ----------------------------------------- ##
30646## Report this to http://www.imagemagick.org ##
30647## ----------------------------------------- ##
30648_ASBOX
30649 ) | sed "s/^/$as_me: WARNING: /" >&2
30650 ;;
30651esac
30652{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30653$as_echo_n "checking for $ac_header... " >&6; }
30654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30655 $as_echo_n "(cached) " >&6
30656else
30657 eval "$as_ac_Header=\$ac_header_preproc"
30658fi
30659ac_res=`eval 'as_val=${'$as_ac_Header'}
30660 $as_echo "$as_val"'`
30661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30662$as_echo "$ac_res" >&6; }
30663
30664fi
30665as_val=`eval 'as_val=${'$as_ac_Header'}
30666 $as_echo "$as_val"'`
30667 if test "x$as_val" = x""yes; then
30668 cat >>confdefs.h <<_ACEOF
30669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30670_ACEOF
30671
30672fi
30673
30674done
30675
30676{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
30677$as_echo_n "checking types of arguments for select... " >&6; }
30678if test "${ac_cv_func_select_args+set}" = set; then
30679 $as_echo_n "(cached) " >&6
30680else
30681 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
30682 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
30683 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
30684 cat >conftest.$ac_ext <<_ACEOF
30685/* confdefs.h. */
30686_ACEOF
30687cat confdefs.h >>conftest.$ac_ext
30688cat >>conftest.$ac_ext <<_ACEOF
30689/* end confdefs.h. */
30690$ac_includes_default
30691#ifdef HAVE_SYS_SELECT_H
30692# include <sys/select.h>
30693#endif
30694#ifdef HAVE_SYS_SOCKET_H
30695# include <sys/socket.h>
30696#endif
30697
30698int
30699main ()
30700{
30701extern int select ($ac_arg1,
30702 $ac_arg234, $ac_arg234, $ac_arg234,
30703 $ac_arg5);
30704 ;
30705 return 0;
30706}
30707_ACEOF
30708rm -f conftest.$ac_objext
30709if { (ac_try="$ac_compile"
30710case "(($ac_try" in
30711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30712 *) ac_try_echo=$ac_try;;
30713esac
30714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30715$as_echo "$ac_try_echo") >&5
30716 (eval "$ac_compile") 2>conftest.er1
30717 ac_status=$?
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
30721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && {
30723 test -z "$ac_c_werror_flag" ||
30724 test ! -s conftest.err
30725 } && test -s conftest.$ac_objext; then
30726 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
30727else
30728 $as_echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
30731
30732fi
30733
30734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30735 done
30736 done
30737done
30738# Provide a safe default value.
30739: ${ac_cv_func_select_args='int,int *,struct timeval *'}
30740
30741fi
30742{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
30743$as_echo "$ac_cv_func_select_args" >&6; }
30744ac_save_IFS=$IFS; IFS=','
30745set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
30746IFS=$ac_save_IFS
30747shift
30748
30749cat >>confdefs.h <<_ACEOF
30750#define SELECT_TYPE_ARG1 $1
30751_ACEOF
30752
30753
30754cat >>confdefs.h <<_ACEOF
30755#define SELECT_TYPE_ARG234 ($2)
30756_ACEOF
30757
30758
30759cat >>confdefs.h <<_ACEOF
30760#define SELECT_TYPE_ARG5 ($3)
30761_ACEOF
30762
30763rm -f conftest*
30764
30765if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30766 $as_echo_n "(cached) " >&6
30767else
30768 ac_cv_func_setvbuf_reversed=no
30769fi
30770
30771
30772{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30773$as_echo_n "checking return type of signal handlers... " >&6; }
30774if test "${ac_cv_type_signal+set}" = set; then
30775 $as_echo_n "(cached) " >&6
30776else
30777 cat >conftest.$ac_ext <<_ACEOF
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
30783#include <sys/types.h>
30784#include <signal.h>
30785
30786int
30787main ()
30788{
30789return *(signal (0, 0)) (0) == 1;
30790 ;
30791 return 0;
30792}
30793_ACEOF
30794rm -f conftest.$ac_objext
30795if { (ac_try="$ac_compile"
30796case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30799esac
30800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30801$as_echo "$ac_try_echo") >&5
30802 (eval "$ac_compile") 2>conftest.er1
30803 ac_status=$?
30804 grep -v '^ *+' conftest.er1 >conftest.err
30805 rm -f conftest.er1
30806 cat conftest.err >&5
30807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); } && {
30809 test -z "$ac_c_werror_flag" ||
30810 test ! -s conftest.err
30811 } && test -s conftest.$ac_objext; then
30812 ac_cv_type_signal=int
30813else
30814 $as_echo "$as_me: failed program was:" >&5
30815sed 's/^/| /' conftest.$ac_ext >&5
30816
30817 ac_cv_type_signal=void
30818fi
30819
30820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30821fi
30822{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30823$as_echo "$ac_cv_type_signal" >&6; }
30824
30825cat >>confdefs.h <<_ACEOF
30826#define RETSIGTYPE $ac_cv_type_signal
30827_ACEOF
30828
30829
30830{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30831$as_echo_n "checking for working strtod... " >&6; }
30832if test "${ac_cv_func_strtod+set}" = set; then
30833 $as_echo_n "(cached) " >&6
30834else
30835 if test "$cross_compiling" = yes; then
30836 ac_cv_func_strtod=no
30837else
30838 cat >conftest.$ac_ext <<_ACEOF
30839/* confdefs.h. */
30840_ACEOF
30841cat confdefs.h >>conftest.$ac_ext
30842cat >>conftest.$ac_ext <<_ACEOF
30843/* end confdefs.h. */
30844
30845$ac_includes_default
30846#ifndef strtod
30847double strtod ();
30848#endif
30849int
30850main()
30851{
30852 {
30853 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30854 char *string = " +69";
30855 char *term;
30856 double value;
30857 value = strtod (string, &term);
30858 if (value != 69 || term != (string + 4))
30859 return 1;
30860 }
30861
30862 {
30863 /* Under Solaris 2.4, strtod returns the wrong value for the
30864 terminating character under some conditions. */
30865 char *string = "NaN";
30866 char *term;
30867 strtod (string, &term);
30868 if (term != string && *(term - 1) == 0)
30869 return 1;
30870 }
30871 return 0;
30872}
30873
30874_ACEOF
30875rm -f conftest$ac_exeext
30876if { (ac_try="$ac_link"
30877case "(($ac_try" in
30878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30879 *) ac_try_echo=$ac_try;;
30880esac
30881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30882$as_echo "$ac_try_echo") >&5
30883 (eval "$ac_link") 2>&5
30884 ac_status=$?
30885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30890esac
30891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30892$as_echo "$ac_try_echo") >&5
30893 (eval "$ac_try") 2>&5
30894 ac_status=$?
30895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; }; then
30897 ac_cv_func_strtod=yes
30898else
30899 $as_echo "$as_me: program exited with status $ac_status" >&5
30900$as_echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
30903( exit $ac_status )
30904ac_cv_func_strtod=no
30905fi
30906rm -rf conftest.dSYM
30907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30908fi
30909
30910
30911fi
30912{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30913$as_echo "$ac_cv_func_strtod" >&6; }
30914if test $ac_cv_func_strtod = no; then
30915 case " $LIBOBJS " in
30916 *" strtod.$ac_objext "* ) ;;
30917 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30918 ;;
30919esac
30920
30921{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30922$as_echo_n "checking for pow... " >&6; }
30923if test "${ac_cv_func_pow+set}" = set; then
30924 $as_echo_n "(cached) " >&6
30925else
30926 cat >conftest.$ac_ext <<_ACEOF
30927/* confdefs.h. */
30928_ACEOF
30929cat confdefs.h >>conftest.$ac_ext
30930cat >>conftest.$ac_ext <<_ACEOF
30931/* end confdefs.h. */
30932/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30934#define pow innocuous_pow
30935
30936/* System header to define __stub macros and hopefully few prototypes,
30937 which can conflict with char pow (); below.
30938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30939 <limits.h> exists even on freestanding compilers. */
30940
30941#ifdef __STDC__
30942# include <limits.h>
30943#else
30944# include <assert.h>
30945#endif
30946
30947#undef pow
30948
30949/* Override any GCC internal prototype to avoid an error.
30950 Use char because int might match the return type of a GCC
30951 builtin and then its argument prototype would still apply. */
30952#ifdef __cplusplus
30953extern "C"
30954#endif
30955char pow ();
30956/* The GNU C library defines this for functions which it implements
30957 to always fail with ENOSYS. Some functions are actually named
30958 something starting with __ and the normal name is an alias. */
30959#if defined __stub_pow || defined __stub___pow
30960choke me
30961#endif
30962
30963int
30964main ()
30965{
30966return pow ();
30967 ;
30968 return 0;
30969}
30970_ACEOF
30971rm -f conftest.$ac_objext conftest$ac_exeext
30972if { (ac_try="$ac_link"
30973case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976esac
30977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30978$as_echo "$ac_try_echo") >&5
30979 (eval "$ac_link") 2>conftest.er1
30980 ac_status=$?
30981 grep -v '^ *+' conftest.er1 >conftest.err
30982 rm -f conftest.er1
30983 cat conftest.err >&5
30984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } && {
30986 test -z "$ac_c_werror_flag" ||
30987 test ! -s conftest.err
30988 } && test -s conftest$ac_exeext && {
30989 test "$cross_compiling" = yes ||
30990 $as_test_x conftest$ac_exeext
30991 }; then
30992 ac_cv_func_pow=yes
30993else
30994 $as_echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997 ac_cv_func_pow=no
30998fi
30999
31000rm -rf conftest.dSYM
31001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31002 conftest$ac_exeext conftest.$ac_ext
31003fi
31004{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
31005$as_echo "$ac_cv_func_pow" >&6; }
31006
31007if test $ac_cv_func_pow = no; then
31008 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
31009$as_echo_n "checking for pow in -lm... " >&6; }
31010if test "${ac_cv_lib_m_pow+set}" = set; then
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lm $LIBS"
31015cat >conftest.$ac_ext <<_ACEOF
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
31021
31022/* Override any GCC internal prototype to avoid an error.
31023 Use char because int might match the return type of a GCC
31024 builtin and then its argument prototype would still apply. */
31025#ifdef __cplusplus
31026extern "C"
31027#endif
31028char pow ();
31029int
31030main ()
31031{
31032return pow ();
31033 ;
31034 return 0;
31035}
31036_ACEOF
31037rm -f conftest.$ac_objext conftest$ac_exeext
31038if { (ac_try="$ac_link"
31039case "(($ac_try" in
31040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041 *) ac_try_echo=$ac_try;;
31042esac
31043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31044$as_echo "$ac_try_echo") >&5
31045 (eval "$ac_link") 2>conftest.er1
31046 ac_status=$?
31047 grep -v '^ *+' conftest.er1 >conftest.err
31048 rm -f conftest.er1
31049 cat conftest.err >&5
31050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); } && {
31052 test -z "$ac_c_werror_flag" ||
31053 test ! -s conftest.err
31054 } && test -s conftest$ac_exeext && {
31055 test "$cross_compiling" = yes ||
31056 $as_test_x conftest$ac_exeext
31057 }; then
31058 ac_cv_lib_m_pow=yes
31059else
31060 $as_echo "$as_me: failed program was:" >&5
31061sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 ac_cv_lib_m_pow=no
31064fi
31065
31066rm -rf conftest.dSYM
31067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31068 conftest$ac_exeext conftest.$ac_ext
31069LIBS=$ac_check_lib_save_LIBS
31070fi
31071{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
31072$as_echo "$ac_cv_lib_m_pow" >&6; }
31073if test "x$ac_cv_lib_m_pow" = x""yes; then
31074 POW_LIB=-lm
31075else
31076 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
31077$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
31078fi
31079
31080fi
31081
31082fi
31083
31084
31085for ac_func in vprintf
31086do
31087as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31088{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31089$as_echo_n "checking for $ac_func... " >&6; }
31090if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31091 $as_echo_n "(cached) " >&6
31092else
31093 cat >conftest.$ac_ext <<_ACEOF
31094/* confdefs.h. */
31095_ACEOF
31096cat confdefs.h >>conftest.$ac_ext
31097cat >>conftest.$ac_ext <<_ACEOF
31098/* end confdefs.h. */
31099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31101#define $ac_func innocuous_$ac_func
31102
31103/* System header to define __stub macros and hopefully few prototypes,
31104 which can conflict with char $ac_func (); below.
31105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31106 <limits.h> exists even on freestanding compilers. */
31107
31108#ifdef __STDC__
31109# include <limits.h>
31110#else
31111# include <assert.h>
31112#endif
31113
31114#undef $ac_func
31115
31116/* Override any GCC internal prototype to avoid an error.
31117 Use char because int might match the return type of a GCC
31118 builtin and then its argument prototype would still apply. */
31119#ifdef __cplusplus
31120extern "C"
31121#endif
31122char $ac_func ();
31123/* The GNU C library defines this for functions which it implements
31124 to always fail with ENOSYS. Some functions are actually named
31125 something starting with __ and the normal name is an alias. */
31126#if defined __stub_$ac_func || defined __stub___$ac_func
31127choke me
31128#endif
31129
31130int
31131main ()
31132{
31133return $ac_func ();
31134 ;
31135 return 0;
31136}
31137_ACEOF
31138rm -f conftest.$ac_objext conftest$ac_exeext
31139if { (ac_try="$ac_link"
31140case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31143esac
31144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31145$as_echo "$ac_try_echo") >&5
31146 (eval "$ac_link") 2>conftest.er1
31147 ac_status=$?
31148 grep -v '^ *+' conftest.er1 >conftest.err
31149 rm -f conftest.er1
31150 cat conftest.err >&5
31151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); } && {
31153 test -z "$ac_c_werror_flag" ||
31154 test ! -s conftest.err
31155 } && test -s conftest$ac_exeext && {
31156 test "$cross_compiling" = yes ||
31157 $as_test_x conftest$ac_exeext
31158 }; then
31159 eval "$as_ac_var=yes"
31160else
31161 $as_echo "$as_me: failed program was:" >&5
31162sed 's/^/| /' conftest.$ac_ext >&5
31163
31164 eval "$as_ac_var=no"
31165fi
31166
31167rm -rf conftest.dSYM
31168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31169 conftest$ac_exeext conftest.$ac_ext
31170fi
31171ac_res=`eval 'as_val=${'$as_ac_var'}
31172 $as_echo "$as_val"'`
31173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31174$as_echo "$ac_res" >&6; }
31175as_val=`eval 'as_val=${'$as_ac_var'}
31176 $as_echo "$as_val"'`
31177 if test "x$as_val" = x""yes; then
31178 cat >>confdefs.h <<_ACEOF
31179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31180_ACEOF
31181
31182{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
31183$as_echo_n "checking for _doprnt... " >&6; }
31184if test "${ac_cv_func__doprnt+set}" = set; then
31185 $as_echo_n "(cached) " >&6
31186else
31187 cat >conftest.$ac_ext <<_ACEOF
31188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
31193/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31195#define _doprnt innocuous__doprnt
31196
31197/* System header to define __stub macros and hopefully few prototypes,
31198 which can conflict with char _doprnt (); below.
31199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31200 <limits.h> exists even on freestanding compilers. */
31201
31202#ifdef __STDC__
31203# include <limits.h>
31204#else
31205# include <assert.h>
31206#endif
31207
31208#undef _doprnt
31209
31210/* Override any GCC internal prototype to avoid an error.
31211 Use char because int might match the return type of a GCC
31212 builtin and then its argument prototype would still apply. */
31213#ifdef __cplusplus
31214extern "C"
31215#endif
31216char _doprnt ();
31217/* The GNU C library defines this for functions which it implements
31218 to always fail with ENOSYS. Some functions are actually named
31219 something starting with __ and the normal name is an alias. */
31220#if defined __stub__doprnt || defined __stub____doprnt
31221choke me
31222#endif
31223
31224int
31225main ()
31226{
31227return _doprnt ();
31228 ;
31229 return 0;
31230}
31231_ACEOF
31232rm -f conftest.$ac_objext conftest$ac_exeext
31233if { (ac_try="$ac_link"
31234case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237esac
31238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31239$as_echo "$ac_try_echo") >&5
31240 (eval "$ac_link") 2>conftest.er1
31241 ac_status=$?
31242 grep -v '^ *+' conftest.er1 >conftest.err
31243 rm -f conftest.er1
31244 cat conftest.err >&5
31245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } && {
31247 test -z "$ac_c_werror_flag" ||
31248 test ! -s conftest.err
31249 } && test -s conftest$ac_exeext && {
31250 test "$cross_compiling" = yes ||
31251 $as_test_x conftest$ac_exeext
31252 }; then
31253 ac_cv_func__doprnt=yes
31254else
31255 $as_echo "$as_me: failed program was:" >&5
31256sed 's/^/| /' conftest.$ac_ext >&5
31257
31258 ac_cv_func__doprnt=no
31259fi
31260
31261rm -rf conftest.dSYM
31262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31263 conftest$ac_exeext conftest.$ac_ext
31264fi
31265{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31266$as_echo "$ac_cv_func__doprnt" >&6; }
31267if test "x$ac_cv_func__doprnt" = x""yes; then
31268
31269cat >>confdefs.h <<\_ACEOF
31270#define HAVE_DOPRNT 1
31271_ACEOF
31272
31273fi
31274
31275fi
31276done
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
cristy56489a52009-09-09 03:13:52 +000031355
31356for 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 +000031357do
31358as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31359{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31360$as_echo_n "checking for $ac_func... " >&6; }
31361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31362 $as_echo_n "(cached) " >&6
31363else
31364 cat >conftest.$ac_ext <<_ACEOF
31365/* confdefs.h. */
31366_ACEOF
31367cat confdefs.h >>conftest.$ac_ext
31368cat >>conftest.$ac_ext <<_ACEOF
31369/* end confdefs.h. */
31370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31372#define $ac_func innocuous_$ac_func
31373
31374/* System header to define __stub macros and hopefully few prototypes,
31375 which can conflict with char $ac_func (); below.
31376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31377 <limits.h> exists even on freestanding compilers. */
31378
31379#ifdef __STDC__
31380# include <limits.h>
31381#else
31382# include <assert.h>
31383#endif
31384
31385#undef $ac_func
31386
31387/* Override any GCC internal prototype to avoid an error.
31388 Use char because int might match the return type of a GCC
31389 builtin and then its argument prototype would still apply. */
31390#ifdef __cplusplus
31391extern "C"
31392#endif
31393char $ac_func ();
31394/* The GNU C library defines this for functions which it implements
31395 to always fail with ENOSYS. Some functions are actually named
31396 something starting with __ and the normal name is an alias. */
31397#if defined __stub_$ac_func || defined __stub___$ac_func
31398choke me
31399#endif
31400
31401int
31402main ()
31403{
31404return $ac_func ();
31405 ;
31406 return 0;
31407}
31408_ACEOF
31409rm -f conftest.$ac_objext conftest$ac_exeext
31410if { (ac_try="$ac_link"
31411case "(($ac_try" in
31412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413 *) ac_try_echo=$ac_try;;
31414esac
31415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31416$as_echo "$ac_try_echo") >&5
31417 (eval "$ac_link") 2>conftest.er1
31418 ac_status=$?
31419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
31422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } && {
31424 test -z "$ac_c_werror_flag" ||
31425 test ! -s conftest.err
31426 } && test -s conftest$ac_exeext && {
31427 test "$cross_compiling" = yes ||
31428 $as_test_x conftest$ac_exeext
31429 }; then
31430 eval "$as_ac_var=yes"
31431else
31432 $as_echo "$as_me: failed program was:" >&5
31433sed 's/^/| /' conftest.$ac_ext >&5
31434
31435 eval "$as_ac_var=no"
31436fi
31437
31438rm -rf conftest.dSYM
31439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31440 conftest$ac_exeext conftest.$ac_ext
31441fi
31442ac_res=`eval 'as_val=${'$as_ac_var'}
31443 $as_echo "$as_val"'`
31444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31445$as_echo "$ac_res" >&6; }
31446as_val=`eval 'as_val=${'$as_ac_var'}
31447 $as_echo "$as_val"'`
31448 if test "x$as_val" = x""yes; then
31449 cat >>confdefs.h <<_ACEOF
31450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31451_ACEOF
31452
31453fi
31454done
31455
31456
31457########
31458#
31459# Check for function prototypes
31460#
31461########
31462
31463{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
31464$as_echo_n "checking whether pread is declared... " >&6; }
31465if test "${ac_cv_have_decl_pread+set}" = set; then
31466 $as_echo_n "(cached) " >&6
31467else
31468 cat >conftest.$ac_ext <<_ACEOF
31469/* confdefs.h. */
31470_ACEOF
31471cat confdefs.h >>conftest.$ac_ext
31472cat >>conftest.$ac_ext <<_ACEOF
31473/* end confdefs.h. */
31474
31475#include <unistd.h>
31476
31477int
31478main ()
31479{
31480#ifndef pread
31481 (void) pread;
31482#endif
31483
31484 ;
31485 return 0;
31486}
31487_ACEOF
31488rm -f conftest.$ac_objext
31489if { (ac_try="$ac_compile"
31490case "(($ac_try" in
31491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492 *) ac_try_echo=$ac_try;;
31493esac
31494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31495$as_echo "$ac_try_echo") >&5
31496 (eval "$ac_compile") 2>conftest.er1
31497 ac_status=$?
31498 grep -v '^ *+' conftest.er1 >conftest.err
31499 rm -f conftest.er1
31500 cat conftest.err >&5
31501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); } && {
31503 test -z "$ac_c_werror_flag" ||
31504 test ! -s conftest.err
31505 } && test -s conftest.$ac_objext; then
31506 ac_cv_have_decl_pread=yes
31507else
31508 $as_echo "$as_me: failed program was:" >&5
31509sed 's/^/| /' conftest.$ac_ext >&5
31510
31511 ac_cv_have_decl_pread=no
31512fi
31513
31514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31515fi
31516{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
31517$as_echo "$ac_cv_have_decl_pread" >&6; }
31518if test "x$ac_cv_have_decl_pread" = x""yes; then
31519
31520cat >>confdefs.h <<_ACEOF
31521#define HAVE_DECL_PREAD 1
31522_ACEOF
31523
31524
31525else
31526 cat >>confdefs.h <<_ACEOF
31527#define HAVE_DECL_PREAD 0
31528_ACEOF
31529
31530
31531fi
31532{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
31533$as_echo_n "checking whether pwrite is declared... " >&6; }
31534if test "${ac_cv_have_decl_pwrite+set}" = set; then
31535 $as_echo_n "(cached) " >&6
31536else
31537 cat >conftest.$ac_ext <<_ACEOF
31538/* confdefs.h. */
31539_ACEOF
31540cat confdefs.h >>conftest.$ac_ext
31541cat >>conftest.$ac_ext <<_ACEOF
31542/* end confdefs.h. */
31543
31544#include <unistd.h>
31545
31546int
31547main ()
31548{
31549#ifndef pwrite
31550 (void) pwrite;
31551#endif
31552
31553 ;
31554 return 0;
31555}
31556_ACEOF
31557rm -f conftest.$ac_objext
31558if { (ac_try="$ac_compile"
31559case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562esac
31563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31564$as_echo "$ac_try_echo") >&5
31565 (eval "$ac_compile") 2>conftest.er1
31566 ac_status=$?
31567 grep -v '^ *+' conftest.er1 >conftest.err
31568 rm -f conftest.er1
31569 cat conftest.err >&5
31570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); } && {
31572 test -z "$ac_c_werror_flag" ||
31573 test ! -s conftest.err
31574 } && test -s conftest.$ac_objext; then
31575 ac_cv_have_decl_pwrite=yes
31576else
31577 $as_echo "$as_me: failed program was:" >&5
31578sed 's/^/| /' conftest.$ac_ext >&5
31579
31580 ac_cv_have_decl_pwrite=no
31581fi
31582
31583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31584fi
31585{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
31586$as_echo "$ac_cv_have_decl_pwrite" >&6; }
31587if test "x$ac_cv_have_decl_pwrite" = x""yes; then
31588
31589cat >>confdefs.h <<_ACEOF
31590#define HAVE_DECL_PWRITE 1
31591_ACEOF
31592
31593
31594else
31595 cat >>confdefs.h <<_ACEOF
31596#define HAVE_DECL_PWRITE 0
31597_ACEOF
31598
31599
31600fi
31601
31602
31603
31604{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
31605$as_echo_n "checking whether strlcpy is declared... " >&6; }
31606if test "${ac_cv_have_decl_strlcpy+set}" = set; then
31607 $as_echo_n "(cached) " >&6
31608else
31609 cat >conftest.$ac_ext <<_ACEOF
31610/* confdefs.h. */
31611_ACEOF
31612cat confdefs.h >>conftest.$ac_ext
31613cat >>conftest.$ac_ext <<_ACEOF
31614/* end confdefs.h. */
31615
31616#include <strings.h>
31617
31618int
31619main ()
31620{
31621#ifndef strlcpy
31622 (void) strlcpy;
31623#endif
31624
31625 ;
31626 return 0;
31627}
31628_ACEOF
31629rm -f conftest.$ac_objext
31630if { (ac_try="$ac_compile"
31631case "(($ac_try" in
31632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633 *) ac_try_echo=$ac_try;;
31634esac
31635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31636$as_echo "$ac_try_echo") >&5
31637 (eval "$ac_compile") 2>conftest.er1
31638 ac_status=$?
31639 grep -v '^ *+' conftest.er1 >conftest.err
31640 rm -f conftest.er1
31641 cat conftest.err >&5
31642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); } && {
31644 test -z "$ac_c_werror_flag" ||
31645 test ! -s conftest.err
31646 } && test -s conftest.$ac_objext; then
31647 ac_cv_have_decl_strlcpy=yes
31648else
31649 $as_echo "$as_me: failed program was:" >&5
31650sed 's/^/| /' conftest.$ac_ext >&5
31651
31652 ac_cv_have_decl_strlcpy=no
31653fi
31654
31655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31656fi
31657{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
31658$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
31659if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
31660
31661cat >>confdefs.h <<_ACEOF
31662#define HAVE_DECL_STRLCPY 1
31663_ACEOF
31664
31665
31666else
31667 cat >>confdefs.h <<_ACEOF
31668#define HAVE_DECL_STRLCPY 0
31669_ACEOF
31670
31671
31672fi
31673
31674
31675
31676{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
31677$as_echo_n "checking whether vsnprintf is declared... " >&6; }
31678if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
31679 $as_echo_n "(cached) " >&6
31680else
31681 cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687
31688#include <stdio.h>
31689#include <stdarg.h>
31690
31691int
31692main ()
31693{
31694#ifndef vsnprintf
31695 (void) vsnprintf;
31696#endif
31697
31698 ;
31699 return 0;
31700}
31701_ACEOF
31702rm -f conftest.$ac_objext
31703if { (ac_try="$ac_compile"
31704case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707esac
31708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31709$as_echo "$ac_try_echo") >&5
31710 (eval "$ac_compile") 2>conftest.er1
31711 ac_status=$?
31712 grep -v '^ *+' conftest.er1 >conftest.err
31713 rm -f conftest.er1
31714 cat conftest.err >&5
31715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); } && {
31717 test -z "$ac_c_werror_flag" ||
31718 test ! -s conftest.err
31719 } && test -s conftest.$ac_objext; then
31720 ac_cv_have_decl_vsnprintf=yes
31721else
31722 $as_echo "$as_me: failed program was:" >&5
31723sed 's/^/| /' conftest.$ac_ext >&5
31724
31725 ac_cv_have_decl_vsnprintf=no
31726fi
31727
31728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31729fi
31730{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
31731$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
31732if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
31733
31734cat >>confdefs.h <<_ACEOF
31735#define HAVE_DECL_VSNPRINTF 1
31736_ACEOF
31737
31738
31739else
31740 cat >>confdefs.h <<_ACEOF
31741#define HAVE_DECL_VSNPRINTF 0
31742_ACEOF
31743
31744
31745fi
31746
31747
31748
31749########
31750#
31751# C++ Support Tests (For Magick++)
31752#
31753########
31754have_magick_plus_plus='no'
31755if test "$with_magick_plus_plus" = 'yes'; then
31756 OLIBS="$LIBS"
31757 LIBS=''
31758 ac_ext=cpp
31759ac_cpp='$CXXCPP $CPPFLAGS'
31760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31763
31764
31765 # Full set of headers used...
31766 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
31767 # functional iomanip iosfwd iostream iterator list string strstream utility
31768 ac_ext=cpp
31769ac_cpp='$CXXCPP $CPPFLAGS'
31770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31773
31774 ac_ext=cpp
31775ac_cpp='$CXXCPP $CPPFLAGS'
31776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31779if test -z "$CXX"; then
31780 if test -n "$CCC"; then
31781 CXX=$CCC
31782 else
31783 if test -n "$ac_tool_prefix"; then
31784 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31785 do
31786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31789$as_echo_n "checking for $ac_word... " >&6; }
31790if test "${ac_cv_prog_CXX+set}" = set; then
31791 $as_echo_n "(cached) " >&6
31792else
31793 if test -n "$CXX"; then
31794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
31795else
31796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31797for as_dir in $PATH
31798do
31799 IFS=$as_save_IFS
31800 test -z "$as_dir" && as_dir=.
31801 for ac_exec_ext in '' $ac_executable_extensions; do
31802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
31804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31805 break 2
31806 fi
31807done
31808done
31809IFS=$as_save_IFS
31810
31811fi
31812fi
31813CXX=$ac_cv_prog_CXX
31814if test -n "$CXX"; then
31815 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
31816$as_echo "$CXX" >&6; }
31817else
31818 { $as_echo "$as_me:$LINENO: result: no" >&5
31819$as_echo "no" >&6; }
31820fi
31821
31822
31823 test -n "$CXX" && break
31824 done
31825fi
31826if test -z "$CXX"; then
31827 ac_ct_CXX=$CXX
31828 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31829do
31830 # Extract the first word of "$ac_prog", so it can be a program name with args.
31831set dummy $ac_prog; ac_word=$2
31832{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31833$as_echo_n "checking for $ac_word... " >&6; }
31834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
31835 $as_echo_n "(cached) " >&6
31836else
31837 if test -n "$ac_ct_CXX"; then
31838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31839else
31840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31841for as_dir in $PATH
31842do
31843 IFS=$as_save_IFS
31844 test -z "$as_dir" && as_dir=.
31845 for ac_exec_ext in '' $ac_executable_extensions; do
31846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31847 ac_cv_prog_ac_ct_CXX="$ac_prog"
31848 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31849 break 2
31850 fi
31851done
31852done
31853IFS=$as_save_IFS
31854
31855fi
31856fi
31857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
31858if test -n "$ac_ct_CXX"; then
31859 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
31860$as_echo "$ac_ct_CXX" >&6; }
31861else
31862 { $as_echo "$as_me:$LINENO: result: no" >&5
31863$as_echo "no" >&6; }
31864fi
31865
31866
31867 test -n "$ac_ct_CXX" && break
31868done
31869
31870 if test "x$ac_ct_CXX" = x; then
31871 CXX="g++"
31872 else
31873 case $cross_compiling:$ac_tool_warned in
31874yes:)
31875{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31877ac_tool_warned=yes ;;
31878esac
31879 CXX=$ac_ct_CXX
31880 fi
31881fi
31882
31883 fi
31884fi
31885# Provide some information about the compiler.
31886$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
31887set X $ac_compile
31888ac_compiler=$2
31889{ (ac_try="$ac_compiler --version >&5"
31890case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31893esac
31894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31895$as_echo "$ac_try_echo") >&5
31896 (eval "$ac_compiler --version >&5") 2>&5
31897 ac_status=$?
31898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }
31900{ (ac_try="$ac_compiler -v >&5"
31901case "(($ac_try" in
31902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903 *) ac_try_echo=$ac_try;;
31904esac
31905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31906$as_echo "$ac_try_echo") >&5
31907 (eval "$ac_compiler -v >&5") 2>&5
31908 ac_status=$?
31909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }
31911{ (ac_try="$ac_compiler -V >&5"
31912case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31915esac
31916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31917$as_echo "$ac_try_echo") >&5
31918 (eval "$ac_compiler -V >&5") 2>&5
31919 ac_status=$?
31920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }
31922
31923{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
31924$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
31925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
31926 $as_echo_n "(cached) " >&6
31927else
31928 cat >conftest.$ac_ext <<_ACEOF
31929/* confdefs.h. */
31930_ACEOF
31931cat confdefs.h >>conftest.$ac_ext
31932cat >>conftest.$ac_ext <<_ACEOF
31933/* end confdefs.h. */
31934
31935int
31936main ()
31937{
31938#ifndef __GNUC__
31939 choke me
31940#endif
31941
31942 ;
31943 return 0;
31944}
31945_ACEOF
31946rm -f conftest.$ac_objext
31947if { (ac_try="$ac_compile"
31948case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31951esac
31952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31953$as_echo "$ac_try_echo") >&5
31954 (eval "$ac_compile") 2>conftest.er1
31955 ac_status=$?
31956 grep -v '^ *+' conftest.er1 >conftest.err
31957 rm -f conftest.er1
31958 cat conftest.err >&5
31959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); } && {
31961 test -z "$ac_cxx_werror_flag" ||
31962 test ! -s conftest.err
31963 } && test -s conftest.$ac_objext; then
31964 ac_compiler_gnu=yes
31965else
31966 $as_echo "$as_me: failed program was:" >&5
31967sed 's/^/| /' conftest.$ac_ext >&5
31968
31969 ac_compiler_gnu=no
31970fi
31971
31972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
31974
31975fi
31976{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
31977$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
31978if test $ac_compiler_gnu = yes; then
31979 GXX=yes
31980else
31981 GXX=
31982fi
31983ac_test_CXXFLAGS=${CXXFLAGS+set}
31984ac_save_CXXFLAGS=$CXXFLAGS
31985{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
31986$as_echo_n "checking whether $CXX accepts -g... " >&6; }
31987if test "${ac_cv_prog_cxx_g+set}" = set; then
31988 $as_echo_n "(cached) " >&6
31989else
31990 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
31991 ac_cxx_werror_flag=yes
31992 ac_cv_prog_cxx_g=no
31993 CXXFLAGS="-g"
31994 cat >conftest.$ac_ext <<_ACEOF
31995/* confdefs.h. */
31996_ACEOF
31997cat confdefs.h >>conftest.$ac_ext
31998cat >>conftest.$ac_ext <<_ACEOF
31999/* end confdefs.h. */
32000
32001int
32002main ()
32003{
32004
32005 ;
32006 return 0;
32007}
32008_ACEOF
32009rm -f conftest.$ac_objext
32010if { (ac_try="$ac_compile"
32011case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32014esac
32015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32016$as_echo "$ac_try_echo") >&5
32017 (eval "$ac_compile") 2>conftest.er1
32018 ac_status=$?
32019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
32022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } && {
32024 test -z "$ac_cxx_werror_flag" ||
32025 test ! -s conftest.err
32026 } && test -s conftest.$ac_objext; then
32027 ac_cv_prog_cxx_g=yes
32028else
32029 $as_echo "$as_me: failed program was:" >&5
32030sed 's/^/| /' conftest.$ac_ext >&5
32031
32032 CXXFLAGS=""
32033 cat >conftest.$ac_ext <<_ACEOF
32034/* confdefs.h. */
32035_ACEOF
32036cat confdefs.h >>conftest.$ac_ext
32037cat >>conftest.$ac_ext <<_ACEOF
32038/* end confdefs.h. */
32039
32040int
32041main ()
32042{
32043
32044 ;
32045 return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext
32049if { (ac_try="$ac_compile"
32050case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053esac
32054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32055$as_echo "$ac_try_echo") >&5
32056 (eval "$ac_compile") 2>conftest.er1
32057 ac_status=$?
32058 grep -v '^ *+' conftest.er1 >conftest.err
32059 rm -f conftest.er1
32060 cat conftest.err >&5
32061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } && {
32063 test -z "$ac_cxx_werror_flag" ||
32064 test ! -s conftest.err
32065 } && test -s conftest.$ac_objext; then
32066 :
32067else
32068 $as_echo "$as_me: failed program was:" >&5
32069sed 's/^/| /' conftest.$ac_ext >&5
32070
32071 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32072 CXXFLAGS="-g"
32073 cat >conftest.$ac_ext <<_ACEOF
32074/* confdefs.h. */
32075_ACEOF
32076cat confdefs.h >>conftest.$ac_ext
32077cat >>conftest.$ac_ext <<_ACEOF
32078/* end confdefs.h. */
32079
32080int
32081main ()
32082{
32083
32084 ;
32085 return 0;
32086}
32087_ACEOF
32088rm -f conftest.$ac_objext
32089if { (ac_try="$ac_compile"
32090case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32093esac
32094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32095$as_echo "$ac_try_echo") >&5
32096 (eval "$ac_compile") 2>conftest.er1
32097 ac_status=$?
32098 grep -v '^ *+' conftest.er1 >conftest.err
32099 rm -f conftest.er1
32100 cat conftest.err >&5
32101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_cxx_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest.$ac_objext; then
32106 ac_cv_prog_cxx_g=yes
32107else
32108 $as_echo "$as_me: failed program was:" >&5
32109sed 's/^/| /' conftest.$ac_ext >&5
32110
32111
32112fi
32113
32114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32115fi
32116
32117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32118fi
32119
32120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32122fi
32123{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
32124$as_echo "$ac_cv_prog_cxx_g" >&6; }
32125if test "$ac_test_CXXFLAGS" = set; then
32126 CXXFLAGS=$ac_save_CXXFLAGS
32127elif test $ac_cv_prog_cxx_g = yes; then
32128 if test "$GXX" = yes; then
32129 CXXFLAGS="-g -O2"
32130 else
32131 CXXFLAGS="-g"
32132 fi
32133else
32134 if test "$GXX" = yes; then
32135 CXXFLAGS="-O2"
32136 else
32137 CXXFLAGS=
32138 fi
32139fi
32140ac_ext=cpp
32141ac_cpp='$CXXCPP $CPPFLAGS'
32142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32145
32146depcc="$CXX" am_compiler_list=
32147
32148{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32149$as_echo_n "checking dependency style of $depcc... " >&6; }
32150if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
32151 $as_echo_n "(cached) " >&6
32152else
32153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32154 # We make a subdir and do the tests there. Otherwise we can end up
32155 # making bogus files that we don't know about and never remove. For
32156 # instance it was reported that on HP-UX the gcc test will end up
32157 # making a dummy file named `D' -- because `-MD' means `put the output
32158 # in D'.
32159 mkdir conftest.dir
32160 # Copy depcomp to subdir because otherwise we won't find it if we're
32161 # using a relative directory.
32162 cp "$am_depcomp" conftest.dir
32163 cd conftest.dir
32164 # We will build objects and dependencies in a subdirectory because
32165 # it helps to detect inapplicable dependency modes. For instance
32166 # both Tru64's cc and ICC support -MD to output dependencies as a
32167 # side effect of compilation, but ICC will put the dependencies in
32168 # the current directory while Tru64 will put them in the object
32169 # directory.
32170 mkdir sub
32171
32172 am_cv_CXX_dependencies_compiler_type=none
32173 if test "$am_compiler_list" = ""; then
32174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32175 fi
32176 am__universal=false
32177 case " $depcc " in #(
32178 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32179 esac
32180
32181 for depmode in $am_compiler_list; do
32182 # Setup a source with many dependencies, because some compilers
32183 # like to wrap large dependency lists on column 80 (with \), and
32184 # we should not choose a depcomp mode which is confused by this.
32185 #
32186 # We need to recreate these files for each test, as the compiler may
32187 # overwrite some of them when testing with obscure command lines.
32188 # This happens at least with the AIX C compiler.
32189 : > sub/conftest.c
32190 for i in 1 2 3 4 5 6; do
32191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
32193 # Solaris 8's {/usr,}/bin/sh.
32194 touch sub/conftst$i.h
32195 done
32196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32197
32198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
32199 # mode. It turns out that the SunPro C++ compiler does not properly
32200 # handle `-M -o', and we need to detect this. Also, some Intel
32201 # versions had trouble with output in subdirs
32202 am__obj=sub/conftest.${OBJEXT-o}
32203 am__minus_obj="-o $am__obj"
32204 case $depmode in
32205 gcc)
32206 # This depmode causes a compiler race in universal mode.
32207 test "$am__universal" = false || continue
32208 ;;
32209 nosideeffect)
32210 # after this tag, mechanisms are not by side-effect, so they'll
32211 # only be used when explicitly requested
32212 if test "x$enable_dependency_tracking" = xyes; then
32213 continue
32214 else
32215 break
32216 fi
32217 ;;
32218 msvisualcpp | msvcmsys)
32219 # This compiler won't grok `-c -o', but also, the minuso test has
32220 # not run yet. These depmodes are late enough in the game, and
32221 # so weak that their functioning should not be impacted.
32222 am__obj=conftest.${OBJEXT-o}
32223 am__minus_obj=
32224 ;;
32225 none) break ;;
32226 esac
32227 if depmode=$depmode \
32228 source=sub/conftest.c object=$am__obj \
32229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32231 >/dev/null 2>conftest.err &&
32232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32236 # icc doesn't choke on unknown options, it will just issue warnings
32237 # or remarks (even with -Werror). So we grep stderr for any message
32238 # that says an option was ignored or not supported.
32239 # When given -MP, icc 7.0 and 7.1 complain thusly:
32240 # icc: Command line warning: ignoring option '-M'; no argument required
32241 # The diagnosis changed in icc 8.0:
32242 # icc: Command line remark: option '-MP' not supported
32243 if (grep 'ignoring option' conftest.err ||
32244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32245 am_cv_CXX_dependencies_compiler_type=$depmode
32246 break
32247 fi
32248 fi
32249 done
32250
32251 cd ..
32252 rm -rf conftest.dir
32253else
32254 am_cv_CXX_dependencies_compiler_type=none
32255fi
32256
32257fi
32258{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
32259$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32260CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32261
32262 if
32263 test "x$enable_dependency_tracking" != xno \
32264 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32265 am__fastdepCXX_TRUE=
32266 am__fastdepCXX_FALSE='#'
32267else
32268 am__fastdepCXX_TRUE='#'
32269 am__fastdepCXX_FALSE=
32270fi
32271
32272
32273 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
32274$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
32275if test "${ac_cv_cxx_have_bool+set}" = set; then
32276 $as_echo_n "(cached) " >&6
32277else
32278
32279 ac_ext=cpp
32280ac_cpp='$CXXCPP $CPPFLAGS'
32281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32284
32285 cat >conftest.$ac_ext <<_ACEOF
32286/* confdefs.h. */
32287_ACEOF
32288cat confdefs.h >>conftest.$ac_ext
32289cat >>conftest.$ac_ext <<_ACEOF
32290/* end confdefs.h. */
32291
32292int f(int x){return 1;}
32293int f(char x){return 1;}
32294int f(bool x){return 1;}
32295
32296int
32297main ()
32298{
32299bool b = true; return f(b);
32300 ;
32301 return 0;
32302}
32303_ACEOF
32304rm -f conftest.$ac_objext
32305if { (ac_try="$ac_compile"
32306case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32309esac
32310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32311$as_echo "$ac_try_echo") >&5
32312 (eval "$ac_compile") 2>conftest.er1
32313 ac_status=$?
32314 grep -v '^ *+' conftest.er1 >conftest.err
32315 rm -f conftest.er1
32316 cat conftest.err >&5
32317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } && {
32319 test -z "$ac_cxx_werror_flag" ||
32320 test ! -s conftest.err
32321 } && test -s conftest.$ac_objext; then
32322 ac_cv_cxx_have_bool=yes
32323else
32324 $as_echo "$as_me: failed program was:" >&5
32325sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 ac_cv_cxx_have_bool=no
32328fi
32329
32330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32331 ac_ext=cpp
32332ac_cpp='$CXXCPP $CPPFLAGS'
32333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32336
32337
32338fi
32339{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
32340$as_echo "$ac_cv_cxx_have_bool" >&6; }
32341if test "$ac_cv_cxx_have_bool" = yes; then
32342
32343cat >>confdefs.h <<\_ACEOF
32344#define HAVE_BOOL /**/
32345_ACEOF
32346
32347fi
32348
32349 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32350$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
32351if test "${ac_cv_cxx_have_namespaces+set}" = set; then
32352 $as_echo_n "(cached) " >&6
32353else
32354
32355 ac_ext=cpp
32356ac_cpp='$CXXCPP $CPPFLAGS'
32357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32360
32361 cat >conftest.$ac_ext <<_ACEOF
32362/* confdefs.h. */
32363_ACEOF
32364cat confdefs.h >>conftest.$ac_ext
32365cat >>conftest.$ac_ext <<_ACEOF
32366/* end confdefs.h. */
32367namespace Outer { namespace Inner { int i = 0; }}
32368int
32369main ()
32370{
32371using namespace Outer::Inner; return i;
32372 ;
32373 return 0;
32374}
32375_ACEOF
32376rm -f conftest.$ac_objext
32377if { (ac_try="$ac_compile"
32378case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32381esac
32382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32383$as_echo "$ac_try_echo") >&5
32384 (eval "$ac_compile") 2>conftest.er1
32385 ac_status=$?
32386 grep -v '^ *+' conftest.er1 >conftest.err
32387 rm -f conftest.er1
32388 cat conftest.err >&5
32389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } && {
32391 test -z "$ac_cxx_werror_flag" ||
32392 test ! -s conftest.err
32393 } && test -s conftest.$ac_objext; then
32394 ac_cv_cxx_have_namespaces=yes
32395else
32396 $as_echo "$as_me: failed program was:" >&5
32397sed 's/^/| /' conftest.$ac_ext >&5
32398
32399 ac_cv_cxx_have_namespaces=no
32400fi
32401
32402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403 ac_ext=cpp
32404ac_cpp='$CXXCPP $CPPFLAGS'
32405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32408
32409
32410fi
32411{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
32412$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
32413if test "$ac_cv_cxx_have_namespaces" = yes; then
32414
32415cat >>confdefs.h <<\_ACEOF
32416#define HAVE_NAMESPACES /**/
32417_ACEOF
32418
32419fi
32420
32421 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
32422$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
32423if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
32424 $as_echo_n "(cached) " >&6
32425else
32426
32427 ac_ext=cpp
32428ac_cpp='$CXXCPP $CPPFLAGS'
32429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32432
32433 cat >conftest.$ac_ext <<_ACEOF
32434/* confdefs.h. */
32435_ACEOF
32436cat confdefs.h >>conftest.$ac_ext
32437cat >>conftest.$ac_ext <<_ACEOF
32438/* end confdefs.h. */
32439#include <iostream>
32440 std::istream& is = std::cin;
32441
32442int
32443main ()
32444{
32445return 0;
32446 ;
32447 return 0;
32448}
32449_ACEOF
32450rm -f conftest.$ac_objext
32451if { (ac_try="$ac_compile"
32452case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32455esac
32456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32457$as_echo "$ac_try_echo") >&5
32458 (eval "$ac_compile") 2>conftest.er1
32459 ac_status=$?
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
32463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } && {
32465 test -z "$ac_cxx_werror_flag" ||
32466 test ! -s conftest.err
32467 } && test -s conftest.$ac_objext; then
32468 ac_cv_cxx_have_std_namespace=yes
32469else
32470 $as_echo "$as_me: failed program was:" >&5
32471sed 's/^/| /' conftest.$ac_ext >&5
32472
32473 ac_cv_cxx_have_std_namespace=no
32474fi
32475
32476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32477 ac_ext=cpp
32478ac_cpp='$CXXCPP $CPPFLAGS'
32479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32482
32483
32484fi
32485{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
32486$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
32487if test "$ac_cv_cxx_have_std_namespace" = yes; then
32488
32489cat >>confdefs.h <<\_ACEOF
32490#define HAVE_STD_NAMESPACE /**/
32491_ACEOF
32492
32493fi
32494
32495 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
32496$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
32497if test "${ac_cv_cxx_have_std_libs+set}" = set; then
32498 $as_echo_n "(cached) " >&6
32499else
32500
32501
32502 ac_ext=cpp
32503ac_cpp='$CXXCPP $CPPFLAGS'
32504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32507
32508 cat >conftest.$ac_ext <<_ACEOF
32509/* confdefs.h. */
32510_ACEOF
32511cat confdefs.h >>conftest.$ac_ext
32512cat >>conftest.$ac_ext <<_ACEOF
32513/* end confdefs.h. */
32514#include <iostream>
32515#include <map>
32516#include <iomanip>
32517#include <cmath>
32518#ifdef HAVE_NAMESPACES
32519using namespace std;
32520#endif
32521int
32522main ()
32523{
32524return 0;
32525 ;
32526 return 0;
32527}
32528_ACEOF
32529rm -f conftest.$ac_objext
32530if { (ac_try="$ac_compile"
32531case "(($ac_try" in
32532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32533 *) ac_try_echo=$ac_try;;
32534esac
32535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32536$as_echo "$ac_try_echo") >&5
32537 (eval "$ac_compile") 2>conftest.er1
32538 ac_status=$?
32539 grep -v '^ *+' conftest.er1 >conftest.err
32540 rm -f conftest.er1
32541 cat conftest.err >&5
32542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } && {
32544 test -z "$ac_cxx_werror_flag" ||
32545 test ! -s conftest.err
32546 } && test -s conftest.$ac_objext; then
32547 ac_cv_cxx_have_std_libs=yes
32548else
32549 $as_echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
32552 ac_cv_cxx_have_std_libs=no
32553fi
32554
32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32556 ac_ext=cpp
32557ac_cpp='$CXXCPP $CPPFLAGS'
32558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32561
32562
32563fi
32564{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
32565$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
32566if test "$ac_cv_cxx_have_std_libs" = yes; then
32567
32568cat >>confdefs.h <<\_ACEOF
32569#define HAVE_STD_LIBS /**/
32570_ACEOF
32571
32572fi
32573
32574 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
32575$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
32576if test "${ac_cv_cxx_have_lstring+set}" = set; then
32577 $as_echo_n "(cached) " >&6
32578else
32579
32580 ac_ext=cpp
32581ac_cpp='$CXXCPP $CPPFLAGS'
32582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32585
32586 cat >conftest.$ac_ext <<_ACEOF
32587/* confdefs.h. */
32588_ACEOF
32589cat confdefs.h >>conftest.$ac_ext
32590cat >>conftest.$ac_ext <<_ACEOF
32591/* end confdefs.h. */
32592const wchar_t* s=L"wide string";
32593_ACEOF
32594rm -f conftest.$ac_objext
32595if { (ac_try="$ac_compile"
32596case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32599esac
32600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32601$as_echo "$ac_try_echo") >&5
32602 (eval "$ac_compile") 2>conftest.er1
32603 ac_status=$?
32604 grep -v '^ *+' conftest.er1 >conftest.err
32605 rm -f conftest.er1
32606 cat conftest.err >&5
32607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); } && {
32609 test -z "$ac_cxx_werror_flag" ||
32610 test ! -s conftest.err
32611 } && test -s conftest.$ac_objext; then
32612 ac_cv_cxx_have_lstring=yes
32613else
32614 $as_echo "$as_me: failed program was:" >&5
32615sed 's/^/| /' conftest.$ac_ext >&5
32616
32617 ac_cv_cxx_have_lstring=no
32618fi
32619
32620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32621 ac_ext=cpp
32622ac_cpp='$CXXCPP $CPPFLAGS'
32623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32626
32627
32628fi
32629{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
32630$as_echo "$ac_cv_cxx_have_lstring" >&6; }
32631if test "$ac_cv_cxx_have_lstring" = yes; then
32632
32633cat >>confdefs.h <<\_ACEOF
32634#define HAVE_LSTRING /**/
32635_ACEOF
32636
32637fi
32638
32639
32640 OPENMP_CXXFLAGS=
32641 # Check whether --enable-openmp was given.
32642if test "${enable_openmp+set}" = set; then
32643 enableval=$enable_openmp;
32644fi
32645
32646 if test "$enable_openmp" != no; then
32647 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
32648$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
32649if test "${ac_cv_prog_cxx_openmp+set}" = set; then
32650 $as_echo_n "(cached) " >&6
32651else
32652 cat >conftest.$ac_ext <<_ACEOF
32653
32654#ifndef _OPENMP
32655 choke me
32656#endif
32657#include <omp.h>
32658int main () { return omp_get_num_threads (); }
32659
32660_ACEOF
32661rm -f conftest.$ac_objext conftest$ac_exeext
32662if { (ac_try="$ac_link"
32663case "(($ac_try" in
32664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32665 *) ac_try_echo=$ac_try;;
32666esac
32667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32668$as_echo "$ac_try_echo") >&5
32669 (eval "$ac_link") 2>conftest.er1
32670 ac_status=$?
32671 grep -v '^ *+' conftest.er1 >conftest.err
32672 rm -f conftest.er1
32673 cat conftest.err >&5
32674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); } && {
32676 test -z "$ac_cxx_werror_flag" ||
32677 test ! -s conftest.err
32678 } && test -s conftest$ac_exeext && {
32679 test "$cross_compiling" = yes ||
32680 $as_test_x conftest$ac_exeext
32681 }; then
32682 ac_cv_prog_cxx_openmp='none needed'
32683else
32684 $as_echo "$as_me: failed program was:" >&5
32685sed 's/^/| /' conftest.$ac_ext >&5
32686
32687 ac_cv_prog_cxx_openmp='unsupported'
32688 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
32689 ac_save_CXXFLAGS=$CXXFLAGS
32690 CXXFLAGS="$CXXFLAGS $ac_option"
32691 cat >conftest.$ac_ext <<_ACEOF
32692
32693#ifndef _OPENMP
32694 choke me
32695#endif
32696#include <omp.h>
32697int main () { return omp_get_num_threads (); }
32698
32699_ACEOF
32700rm -f conftest.$ac_objext conftest$ac_exeext
32701if { (ac_try="$ac_link"
32702case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32705esac
32706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32707$as_echo "$ac_try_echo") >&5
32708 (eval "$ac_link") 2>conftest.er1
32709 ac_status=$?
32710 grep -v '^ *+' conftest.er1 >conftest.err
32711 rm -f conftest.er1
32712 cat conftest.err >&5
32713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); } && {
32715 test -z "$ac_cxx_werror_flag" ||
32716 test ! -s conftest.err
32717 } && test -s conftest$ac_exeext && {
32718 test "$cross_compiling" = yes ||
32719 $as_test_x conftest$ac_exeext
32720 }; then
32721 ac_cv_prog_cxx_openmp=$ac_option
32722else
32723 $as_echo "$as_me: failed program was:" >&5
32724sed 's/^/| /' conftest.$ac_ext >&5
32725
32726
32727fi
32728
32729rm -rf conftest.dSYM
32730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32731 conftest$ac_exeext conftest.$ac_ext
32732 CXXFLAGS=$ac_save_CXXFLAGS
32733 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
32734 break
32735 fi
32736 done
32737fi
32738
32739rm -rf conftest.dSYM
32740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32741 conftest$ac_exeext conftest.$ac_ext
32742fi
32743{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
32744$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
32745 case $ac_cv_prog_cxx_openmp in #(
32746 "none needed" | unsupported)
32747 ;; #(
32748 *)
32749 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
32750 esac
32751 fi
32752
32753
32754 ac_ext=c
32755ac_cpp='$CPP $CPPFLAGS'
32756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758ac_compiler_gnu=$ac_cv_c_compiler_gnu
32759
32760
32761 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
32762$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
32763 if \
32764 test $ac_cv_cxx_have_bool = 'yes' && \
32765 test $ac_cv_cxx_have_lstring = 'yes' && \
32766 test $ac_cv_cxx_have_namespaces = 'yes' && \
32767 test $ac_cv_cxx_have_std_libs = 'yes' && \
32768 test $ac_cv_cxx_have_std_namespace = 'yes'; then
32769 have_magick_plus_plus='yes'
32770 else
32771 have_magick_plus_plus='no (failed tests)'
32772 fi
32773 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
32774$as_echo "$have_magick_plus_plus" >&6; }
32775 LIBS="$OLIBS"
32776fi
32777 if test "$have_magick_plus_plus" = 'yes'; then
32778 WITH_MAGICK_PLUS_PLUS_TRUE=
32779 WITH_MAGICK_PLUS_PLUS_FALSE='#'
32780else
32781 WITH_MAGICK_PLUS_PLUS_TRUE='#'
32782 WITH_MAGICK_PLUS_PLUS_FALSE=
32783fi
32784
32785
32786# Only check for delegate libraries in subdirectories if requested.
32787if test "$enable_delegate_build" != 'no'; then
32788 # Check for delegate sub-directories and add -I & -L options as required.
32789 # This presumes that delegates are installed as detailed in the ImageMagick
32790 # README. If delegates are installed in a standard location where the
32791 # compiler will automatically find them then these options should not be
32792 # required.
32793
32794 #
32795 # Most delegates have includes in the same directory as the library, but not all...
32796 #
32797 # Includes
32798 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
32799 if test -d "$builddir/$dir"; then
32800 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
32801 else
32802 if test -d "$srcdirfull/$dir"; then
32803 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
32804 fi
32805 fi
32806 done
32807
32808 # Libraries
32809 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
32810 if test -d "$builddir/$dir/.libs"; then
32811 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
32812 else
32813 if test -d "$srcdirfull/$dir/.libs"; then
32814 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
32815 fi
32816 fi
32817 if test -d "$builddir/$dir"; then
32818 LDFLAGS="$LDFLAGS -L$builddir/$dir"
32819 else
32820 if test -d "$srcdirfull/$dir"; then
32821 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
32822 fi
32823 fi
32824 done
32825fi
32826
32827# Assume that delegate headers reside under same directory as ImageMagick
32828# installation prefix.
32829MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
32830
32831#
32832# Find the X11 RGB database
32833#
32834{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
32835$as_echo_n "checking for X11 configure files... " >&6; }
32836if test "${im_cv_x_configure+set}" = set; then
32837 $as_echo_n "(cached) " >&6
32838else
32839 # Look for the header file in a standard set of common directories.
32840# Check X11 before X11Rn because it is often a symlink to the current release.
32841 for ac_dir in \
32842 /lib/usr/lib/X11 \
32843 /usr/X11/lib \
32844 /usr/X11R4/lib \
32845 /usr/X11R5/lib \
32846 /usr/X11R6/lib \
32847 /usr/X11R7/lib \
32848 /usr/X386/lib \
32849 /usr/XFree86/lib/X11 \
32850 /usr/athena/lib \
32851 /usr/lib \
32852 /usr/lib/X11 \
32853 /usr/lib/X11R4 \
32854 /usr/lib/X11R5 \
32855 /usr/lib/X11R6 \
32856 /usr/lib/X11R7 \
32857 /usr/local/X11/lib \
32858 /usr/local/X11R4/lib \
32859 /usr/local/X11R5/lib \
32860 /usr/local/X11R6/lib \
32861 /usr/local/lib \
32862 /usr/local/lib/X11 \
32863 /usr/local/lib/X11R4 \
32864 /usr/local/lib/X11R5 \
32865 /usr/local/lib/X11R6 \
32866 /usr/local/lib/X11R7 \
32867 /usr/local/x11r5/lib \
32868 /usr/lpp/Xamples/lib \
32869 /usr/openwin/lib \
32870 /usr/openwin/share/lib \
32871 /usr/unsupported/lib \
32872 /usr/x386/lib \
32873 ; do
32874 if test -f "$ac_dir/X11/rgb.txt"; then
32875 im_cv_x_configure="$ac_dir/X11/"
32876 break
32877 elif test -f "$ac_dir/rgb.txt"; then
32878 im_cv_x_configure="$ac_dir/"
32879 break
32880 fi
32881
32882 done
32883fi
32884{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
32885$as_echo "$im_cv_x_configure" >&6; }
32886X11_CONFIGURE_PATH="$im_cv_x_configure"
32887case "${build_os}" in
32888 mingw* )
32889 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
32890 ;;
32891esac
32892
32893cat >>confdefs.h <<_ACEOF
32894#define X11_CONFIGURE_PATH "$X11ConfigurePath"
32895_ACEOF
32896
32897
32898#
32899# Find OpenMP library
32900#
32901GOMP_LIBS=''
32902if test "$enable_openmp" != 'no'; then
32903 if test "${GCC}" = "yes"; then
32904 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
32905$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
32906if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
32907 $as_echo_n "(cached) " >&6
32908else
32909 ac_check_lib_save_LIBS=$LIBS
32910LIBS="-lgomp $LIBS"
32911cat >conftest.$ac_ext <<_ACEOF
32912/* confdefs.h. */
32913_ACEOF
32914cat confdefs.h >>conftest.$ac_ext
32915cat >>conftest.$ac_ext <<_ACEOF
32916/* end confdefs.h. */
32917
32918/* Override any GCC internal prototype to avoid an error.
32919 Use char because int might match the return type of a GCC
32920 builtin and then its argument prototype would still apply. */
32921#ifdef __cplusplus
32922extern "C"
32923#endif
32924char GOMP_parallel_start ();
32925int
32926main ()
32927{
32928return GOMP_parallel_start ();
32929 ;
32930 return 0;
32931}
32932_ACEOF
32933rm -f conftest.$ac_objext conftest$ac_exeext
32934if { (ac_try="$ac_link"
32935case "(($ac_try" in
32936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937 *) ac_try_echo=$ac_try;;
32938esac
32939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32940$as_echo "$ac_try_echo") >&5
32941 (eval "$ac_link") 2>conftest.er1
32942 ac_status=$?
32943 grep -v '^ *+' conftest.er1 >conftest.err
32944 rm -f conftest.er1
32945 cat conftest.err >&5
32946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); } && {
32948 test -z "$ac_c_werror_flag" ||
32949 test ! -s conftest.err
32950 } && test -s conftest$ac_exeext && {
32951 test "$cross_compiling" = yes ||
32952 $as_test_x conftest$ac_exeext
32953 }; then
32954 ac_cv_lib_gomp_GOMP_parallel_start=yes
32955else
32956 $as_echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
32959 ac_cv_lib_gomp_GOMP_parallel_start=no
32960fi
32961
32962rm -rf conftest.dSYM
32963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32964 conftest$ac_exeext conftest.$ac_ext
32965LIBS=$ac_check_lib_save_LIBS
32966fi
32967{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
32968$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
32969if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
32970 GOMP_LIBS="-lgomp"
32971fi
32972 # gcc
32973 else
32974 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
32975$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
32976if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
32977 $as_echo_n "(cached) " >&6
32978else
32979 ac_check_lib_save_LIBS=$LIBS
32980LIBS="-lmtsk $LIBS"
32981cat >conftest.$ac_ext <<_ACEOF
32982/* confdefs.h. */
32983_ACEOF
32984cat confdefs.h >>conftest.$ac_ext
32985cat >>conftest.$ac_ext <<_ACEOF
32986/* end confdefs.h. */
32987
32988/* Override any GCC internal prototype to avoid an error.
32989 Use char because int might match the return type of a GCC
32990 builtin and then its argument prototype would still apply. */
32991#ifdef __cplusplus
32992extern "C"
32993#endif
32994char sunw_mp_register_warn ();
32995int
32996main ()
32997{
32998return sunw_mp_register_warn ();
32999 ;
33000 return 0;
33001}
33002_ACEOF
33003rm -f conftest.$ac_objext conftest$ac_exeext
33004if { (ac_try="$ac_link"
33005case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008esac
33009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33010$as_echo "$ac_try_echo") >&5
33011 (eval "$ac_link") 2>conftest.er1
33012 ac_status=$?
33013 grep -v '^ *+' conftest.er1 >conftest.err
33014 rm -f conftest.er1
33015 cat conftest.err >&5
33016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } && {
33018 test -z "$ac_c_werror_flag" ||
33019 test ! -s conftest.err
33020 } && test -s conftest$ac_exeext && {
33021 test "$cross_compiling" = yes ||
33022 $as_test_x conftest$ac_exeext
33023 }; then
33024 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
33025else
33026 $as_echo "$as_me: failed program was:" >&5
33027sed 's/^/| /' conftest.$ac_ext >&5
33028
33029 ac_cv_lib_mtsk_sunw_mp_register_warn=no
33030fi
33031
33032rm -rf conftest.dSYM
33033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33034 conftest$ac_exeext conftest.$ac_ext
33035LIBS=$ac_check_lib_save_LIBS
33036fi
33037{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
33038$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
33039if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
33040 GOMP_LIBS="-lmtsk"
33041fi
33042 # solaris cc
33043 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
33044$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
33045if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
33046 $as_echo_n "(cached) " >&6
33047else
33048 ac_check_lib_save_LIBS=$LIBS
33049LIBS="-lxlsmp $LIBS"
33050cat >conftest.$ac_ext <<_ACEOF
33051/* confdefs.h. */
33052_ACEOF
33053cat confdefs.h >>conftest.$ac_ext
33054cat >>conftest.$ac_ext <<_ACEOF
33055/* end confdefs.h. */
33056
33057/* Override any GCC internal prototype to avoid an error.
33058 Use char because int might match the return type of a GCC
33059 builtin and then its argument prototype would still apply. */
33060#ifdef __cplusplus
33061extern "C"
33062#endif
33063char _xlsmpFlush ();
33064int
33065main ()
33066{
33067return _xlsmpFlush ();
33068 ;
33069 return 0;
33070}
33071_ACEOF
33072rm -f conftest.$ac_objext conftest$ac_exeext
33073if { (ac_try="$ac_link"
33074case "(($ac_try" in
33075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33076 *) ac_try_echo=$ac_try;;
33077esac
33078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33079$as_echo "$ac_try_echo") >&5
33080 (eval "$ac_link") 2>conftest.er1
33081 ac_status=$?
33082 grep -v '^ *+' conftest.er1 >conftest.err
33083 rm -f conftest.er1
33084 cat conftest.err >&5
33085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 (exit $ac_status); } && {
33087 test -z "$ac_c_werror_flag" ||
33088 test ! -s conftest.err
33089 } && test -s conftest$ac_exeext && {
33090 test "$cross_compiling" = yes ||
33091 $as_test_x conftest$ac_exeext
33092 }; then
33093 ac_cv_lib_xlsmp__xlsmpFlush=yes
33094else
33095 $as_echo "$as_me: failed program was:" >&5
33096sed 's/^/| /' conftest.$ac_ext >&5
33097
33098 ac_cv_lib_xlsmp__xlsmpFlush=no
33099fi
33100
33101rm -rf conftest.dSYM
33102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33103 conftest$ac_exeext conftest.$ac_ext
33104LIBS=$ac_check_lib_save_LIBS
33105fi
33106{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
33107$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
33108if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
33109 GOMP_LIBS="-lxlsmp"
33110fi
33111 # AIX xlc
33112 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
33113$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
33114if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
33115 $as_echo_n "(cached) " >&6
33116else
33117 ac_check_lib_save_LIBS=$LIBS
33118LIBS="-lmp $LIBS"
33119cat >conftest.$ac_ext <<_ACEOF
33120/* confdefs.h. */
33121_ACEOF
33122cat confdefs.h >>conftest.$ac_ext
33123cat >>conftest.$ac_ext <<_ACEOF
33124/* end confdefs.h. */
33125
33126/* Override any GCC internal prototype to avoid an error.
33127 Use char because int might match the return type of a GCC
33128 builtin and then its argument prototype would still apply. */
33129#ifdef __cplusplus
33130extern "C"
33131#endif
33132char mp_destroy ();
33133int
33134main ()
33135{
33136return mp_destroy ();
33137 ;
33138 return 0;
33139}
33140_ACEOF
33141rm -f conftest.$ac_objext conftest$ac_exeext
33142if { (ac_try="$ac_link"
33143case "(($ac_try" in
33144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145 *) ac_try_echo=$ac_try;;
33146esac
33147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33148$as_echo "$ac_try_echo") >&5
33149 (eval "$ac_link") 2>conftest.er1
33150 ac_status=$?
33151 grep -v '^ *+' conftest.er1 >conftest.err
33152 rm -f conftest.er1
33153 cat conftest.err >&5
33154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } && {
33156 test -z "$ac_c_werror_flag" ||
33157 test ! -s conftest.err
33158 } && test -s conftest$ac_exeext && {
33159 test "$cross_compiling" = yes ||
33160 $as_test_x conftest$ac_exeext
33161 }; then
33162 ac_cv_lib_mp_mp_destroy=yes
33163else
33164 $as_echo "$as_me: failed program was:" >&5
33165sed 's/^/| /' conftest.$ac_ext >&5
33166
33167 ac_cv_lib_mp_mp_destroy=no
33168fi
33169
33170rm -rf conftest.dSYM
33171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33172 conftest$ac_exeext conftest.$ac_ext
33173LIBS=$ac_check_lib_save_LIBS
33174fi
33175{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
33176$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
33177if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
33178 GOMP_LIBS="-lmp"
33179fi
33180 # SGI IRIX 6.5 MIPSpro C/C++
33181 fi
33182 LIBS="$GOMP_LIBS $LIBS"
33183fi
33184
33185
33186#
33187# Find Posix threads library
33188#
33189THREAD_LIBS=''
33190if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
33191
33192 if test "x$PTHREAD_LIBS" = "x"; then
33193 case "${host_cpu}-${host_os}" in
33194 *-freebsd*)
33195
33196
33197
33198ac_ext=c
33199ac_cpp='$CPP $CPPFLAGS'
33200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33202ac_compiler_gnu=$ac_cv_c_compiler_gnu
33203
33204magick_pthread_lib_ok=no
33205
33206LIB=-lc_r
33207save_LIBS="$LIBS"
33208LIBS="$LIBS $LIB"
33209
33210{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33211$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33212cat >conftest.$ac_ext <<_ACEOF
33213/* confdefs.h. */
33214_ACEOF
33215cat confdefs.h >>conftest.$ac_ext
33216cat >>conftest.$ac_ext <<_ACEOF
33217/* end confdefs.h. */
33218#include <pthread.h>
33219int
33220main ()
33221{
33222 pthread_t th;
33223 pthread_join(th, 0);
33224 pthread_attr_init(0);
33225 pthread_cleanup_push(0, 0);
33226 pthread_create(0,0,0,0);
33227 pthread_cleanup_pop(0);
33228 ;
33229 return 0;
33230}
33231_ACEOF
33232rm -f conftest.$ac_objext conftest$ac_exeext
33233if { (ac_try="$ac_link"
33234case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237esac
33238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33239$as_echo "$ac_try_echo") >&5
33240 (eval "$ac_link") 2>conftest.er1
33241 ac_status=$?
33242 grep -v '^ *+' conftest.er1 >conftest.err
33243 rm -f conftest.er1
33244 cat conftest.err >&5
33245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } && {
33247 test -z "$ac_c_werror_flag" ||
33248 test ! -s conftest.err
33249 } && test -s conftest$ac_exeext && {
33250 test "$cross_compiling" = yes ||
33251 $as_test_x conftest$ac_exeext
33252 }; then
33253 magick_pthread_lib_ok=yes
33254else
33255 $as_echo "$as_me: failed program was:" >&5
33256sed 's/^/| /' conftest.$ac_ext >&5
33257
33258
33259fi
33260
33261rm -rf conftest.dSYM
33262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33263 conftest$ac_exeext conftest.$ac_ext
33264
33265{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33266$as_echo "${magick_pthread_lib_ok}" >&6; }
33267if test "$magick_pthread_lib_ok" = yes
33268then
33269 PTHREAD_LIBS=-lc_r
33270 :
33271else
33272
33273 :
33274fi
33275
33276LIBS="$save_LIBS"
33277
33278ac_ext=c
33279ac_cpp='$CPP $CPPFLAGS'
33280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33282ac_compiler_gnu=$ac_cv_c_compiler_gnu
33283
33284 ;;
33285 esac
33286 fi
33287
33288 for lib in pthread pthreads; do
33289 if test "x$PTHREAD_LIBS" = "x"; then
33290
33291
33292
33293ac_ext=c
33294ac_cpp='$CPP $CPPFLAGS'
33295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33297ac_compiler_gnu=$ac_cv_c_compiler_gnu
33298
33299magick_pthread_lib_ok=no
33300
33301LIB=-l$lib
33302save_LIBS="$LIBS"
33303LIBS="$LIBS $LIB"
33304
33305{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33306$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33307cat >conftest.$ac_ext <<_ACEOF
33308/* confdefs.h. */
33309_ACEOF
33310cat confdefs.h >>conftest.$ac_ext
33311cat >>conftest.$ac_ext <<_ACEOF
33312/* end confdefs.h. */
33313#include <pthread.h>
33314int
33315main ()
33316{
33317 pthread_t th;
33318 pthread_join(th, 0);
33319 pthread_attr_init(0);
33320 pthread_cleanup_push(0, 0);
33321 pthread_create(0,0,0,0);
33322 pthread_cleanup_pop(0);
33323 ;
33324 return 0;
33325}
33326_ACEOF
33327rm -f conftest.$ac_objext conftest$ac_exeext
33328if { (ac_try="$ac_link"
33329case "(($ac_try" in
33330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33331 *) ac_try_echo=$ac_try;;
33332esac
33333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33334$as_echo "$ac_try_echo") >&5
33335 (eval "$ac_link") 2>conftest.er1
33336 ac_status=$?
33337 grep -v '^ *+' conftest.er1 >conftest.err
33338 rm -f conftest.er1
33339 cat conftest.err >&5
33340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } && {
33342 test -z "$ac_c_werror_flag" ||
33343 test ! -s conftest.err
33344 } && test -s conftest$ac_exeext && {
33345 test "$cross_compiling" = yes ||
33346 $as_test_x conftest$ac_exeext
33347 }; then
33348 magick_pthread_lib_ok=yes
33349else
33350 $as_echo "$as_me: failed program was:" >&5
33351sed 's/^/| /' conftest.$ac_ext >&5
33352
33353
33354fi
33355
33356rm -rf conftest.dSYM
33357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33358 conftest$ac_exeext conftest.$ac_ext
33359
33360{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33361$as_echo "${magick_pthread_lib_ok}" >&6; }
33362if test "$magick_pthread_lib_ok" = yes
33363then
33364 PTHREAD_LIBS=-l$lib
33365 :
33366else
33367
33368 :
33369fi
33370
33371LIBS="$save_LIBS"
33372
33373ac_ext=c
33374ac_cpp='$CPP $CPPFLAGS'
33375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33377ac_compiler_gnu=$ac_cv_c_compiler_gnu
33378
33379
33380 fi
33381 done
33382
33383 THREAD_LIBS="$PTHREAD_LIBS"
33384 LIBS="$LIBS $THREAD_LIBS"
33385fi
33386
33387
33388#
33389# Check for umem.
33390#
33391have_umem='no'
33392UMEM_LIBS=''
33393if test "$with_umem" != 'no'; then
33394 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
33395$as_echo_n "checking for UMEM support ... " >&6; }
33396 { $as_echo "$as_me:$LINENO: result: " >&5
33397$as_echo "" >&6; }
33398 failed=0
33399 passed=0
33400 if test "${ac_cv_header_umem_h+set}" = set; then
33401 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33402$as_echo_n "checking for umem.h... " >&6; }
33403if test "${ac_cv_header_umem_h+set}" = set; then
33404 $as_echo_n "(cached) " >&6
33405fi
33406{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33407$as_echo "$ac_cv_header_umem_h" >&6; }
33408else
33409 # Is the header compilable?
33410{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
33411$as_echo_n "checking umem.h usability... " >&6; }
33412cat >conftest.$ac_ext <<_ACEOF
33413/* confdefs.h. */
33414_ACEOF
33415cat confdefs.h >>conftest.$ac_ext
33416cat >>conftest.$ac_ext <<_ACEOF
33417/* end confdefs.h. */
33418$ac_includes_default
33419#include <umem.h>
33420_ACEOF
33421rm -f conftest.$ac_objext
33422if { (ac_try="$ac_compile"
33423case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33426esac
33427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33428$as_echo "$ac_try_echo") >&5
33429 (eval "$ac_compile") 2>conftest.er1
33430 ac_status=$?
33431 grep -v '^ *+' conftest.er1 >conftest.err
33432 rm -f conftest.er1
33433 cat conftest.err >&5
33434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); } && {
33436 test -z "$ac_c_werror_flag" ||
33437 test ! -s conftest.err
33438 } && test -s conftest.$ac_objext; then
33439 ac_header_compiler=yes
33440else
33441 $as_echo "$as_me: failed program was:" >&5
33442sed 's/^/| /' conftest.$ac_ext >&5
33443
33444 ac_header_compiler=no
33445fi
33446
33447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33448{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33449$as_echo "$ac_header_compiler" >&6; }
33450
33451# Is the header present?
33452{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
33453$as_echo_n "checking umem.h presence... " >&6; }
33454cat >conftest.$ac_ext <<_ACEOF
33455/* confdefs.h. */
33456_ACEOF
33457cat confdefs.h >>conftest.$ac_ext
33458cat >>conftest.$ac_ext <<_ACEOF
33459/* end confdefs.h. */
33460#include <umem.h>
33461_ACEOF
33462if { (ac_try="$ac_cpp conftest.$ac_ext"
33463case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33466esac
33467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33468$as_echo "$ac_try_echo") >&5
33469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33470 ac_status=$?
33471 grep -v '^ *+' conftest.er1 >conftest.err
33472 rm -f conftest.er1
33473 cat conftest.err >&5
33474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } >/dev/null && {
33476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33477 test ! -s conftest.err
33478 }; then
33479 ac_header_preproc=yes
33480else
33481 $as_echo "$as_me: failed program was:" >&5
33482sed 's/^/| /' conftest.$ac_ext >&5
33483
33484 ac_header_preproc=no
33485fi
33486
33487rm -f conftest.err conftest.$ac_ext
33488{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33489$as_echo "$ac_header_preproc" >&6; }
33490
33491# So? What about this header?
33492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33493 yes:no: )
33494 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
33495$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33496 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
33497$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
33498 ac_header_preproc=yes
33499 ;;
33500 no:yes:* )
33501 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
33502$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
33503 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
33504$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
33505 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
33506$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
33507 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
33508$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
33509 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
33510$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
33511 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
33512$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
33513 ( cat <<\_ASBOX
33514## ----------------------------------------- ##
33515## Report this to http://www.imagemagick.org ##
33516## ----------------------------------------- ##
33517_ASBOX
33518 ) | sed "s/^/$as_me: WARNING: /" >&2
33519 ;;
33520esac
33521{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33522$as_echo_n "checking for umem.h... " >&6; }
33523if test "${ac_cv_header_umem_h+set}" = set; then
33524 $as_echo_n "(cached) " >&6
33525else
33526 ac_cv_header_umem_h=$ac_header_preproc
33527fi
33528{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33529$as_echo "$ac_cv_header_umem_h" >&6; }
33530
33531fi
33532if test "x$ac_cv_header_umem_h" = x""yes; then
33533 passed=`expr $passed + 1`
33534else
33535 failed=`expr $failed + 1`
33536fi
33537
33538
33539 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
33540$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
33541if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
33542 $as_echo_n "(cached) " >&6
33543else
33544 ac_check_lib_save_LIBS=$LIBS
33545LIBS="-lumem $LIBS"
33546cat >conftest.$ac_ext <<_ACEOF
33547/* confdefs.h. */
33548_ACEOF
33549cat confdefs.h >>conftest.$ac_ext
33550cat >>conftest.$ac_ext <<_ACEOF
33551/* end confdefs.h. */
33552
33553/* Override any GCC internal prototype to avoid an error.
33554 Use char because int might match the return type of a GCC
33555 builtin and then its argument prototype would still apply. */
33556#ifdef __cplusplus
33557extern "C"
33558#endif
33559char umem_alloc ();
33560int
33561main ()
33562{
33563return umem_alloc ();
33564 ;
33565 return 0;
33566}
33567_ACEOF
33568rm -f conftest.$ac_objext conftest$ac_exeext
33569if { (ac_try="$ac_link"
33570case "(($ac_try" in
33571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572 *) ac_try_echo=$ac_try;;
33573esac
33574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33575$as_echo "$ac_try_echo") >&5
33576 (eval "$ac_link") 2>conftest.er1
33577 ac_status=$?
33578 grep -v '^ *+' conftest.er1 >conftest.err
33579 rm -f conftest.er1
33580 cat conftest.err >&5
33581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } && {
33583 test -z "$ac_c_werror_flag" ||
33584 test ! -s conftest.err
33585 } && test -s conftest$ac_exeext && {
33586 test "$cross_compiling" = yes ||
33587 $as_test_x conftest$ac_exeext
33588 }; then
33589 ac_cv_lib_umem_umem_alloc=yes
33590else
33591 $as_echo "$as_me: failed program was:" >&5
33592sed 's/^/| /' conftest.$ac_ext >&5
33593
33594 ac_cv_lib_umem_umem_alloc=no
33595fi
33596
33597rm -rf conftest.dSYM
33598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33599 conftest$ac_exeext conftest.$ac_ext
33600LIBS=$ac_check_lib_save_LIBS
33601fi
33602{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
33603$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
33604if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
33605 passed=`expr $passed + 1`
33606else
33607 failed=`expr $failed + 1`
33608fi
33609
33610 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
33611$as_echo_n "checking for umem_free in -lumem... " >&6; }
33612if test "${ac_cv_lib_umem_umem_free+set}" = set; then
33613 $as_echo_n "(cached) " >&6
33614else
33615 ac_check_lib_save_LIBS=$LIBS
33616LIBS="-lumem $LIBS"
33617cat >conftest.$ac_ext <<_ACEOF
33618/* confdefs.h. */
33619_ACEOF
33620cat confdefs.h >>conftest.$ac_ext
33621cat >>conftest.$ac_ext <<_ACEOF
33622/* end confdefs.h. */
33623
33624/* Override any GCC internal prototype to avoid an error.
33625 Use char because int might match the return type of a GCC
33626 builtin and then its argument prototype would still apply. */
33627#ifdef __cplusplus
33628extern "C"
33629#endif
33630char umem_free ();
33631int
33632main ()
33633{
33634return umem_free ();
33635 ;
33636 return 0;
33637}
33638_ACEOF
33639rm -f conftest.$ac_objext conftest$ac_exeext
33640if { (ac_try="$ac_link"
33641case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33646$as_echo "$ac_try_echo") >&5
33647 (eval "$ac_link") 2>conftest.er1
33648 ac_status=$?
33649 grep -v '^ *+' conftest.er1 >conftest.err
33650 rm -f conftest.er1
33651 cat conftest.err >&5
33652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } && {
33654 test -z "$ac_c_werror_flag" ||
33655 test ! -s conftest.err
33656 } && test -s conftest$ac_exeext && {
33657 test "$cross_compiling" = yes ||
33658 $as_test_x conftest$ac_exeext
33659 }; then
33660 ac_cv_lib_umem_umem_free=yes
33661else
33662 $as_echo "$as_me: failed program was:" >&5
33663sed 's/^/| /' conftest.$ac_ext >&5
33664
33665 ac_cv_lib_umem_umem_free=no
33666fi
33667
33668rm -rf conftest.dSYM
33669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33670 conftest$ac_exeext conftest.$ac_ext
33671LIBS=$ac_check_lib_save_LIBS
33672fi
33673{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
33674$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
33675if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
33676 passed=`expr $passed + 1`
33677else
33678 failed=`expr $failed + 1`
33679fi
33680
33681 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
33682$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
33683 if test $passed -gt 0; then
33684 if test $failed -gt 0; then
33685 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33686$as_echo "no -- some components failed test" >&6; }
33687 have_umem='no (failed tests)'
33688 else
33689 UMEM_LIBS='-lumem'
33690 LIBS="$UMEM_LIBS $LIBS"
33691
33692cat >>confdefs.h <<\_ACEOF
33693#define HasUMEM 1
33694_ACEOF
33695
33696 { $as_echo "$as_me:$LINENO: result: yes" >&5
33697$as_echo "yes" >&6; }
33698 have_umem='yes'
33699 fi
33700 else
33701 { $as_echo "$as_me:$LINENO: result: no" >&5
33702$as_echo "no" >&6; }
33703 fi
33704fi
33705 if test "$have_umem" = 'yes'; then
33706 HasUMEM_TRUE=
33707 HasUMEM_FALSE='#'
33708else
33709 HasUMEM_TRUE='#'
33710 HasUMEM_FALSE=
33711fi
33712
33713
33714
33715#
33716# Add support for ccmalloc memory debugging library if requested
33717#
33718have_ccmalloc='no'
33719CCMALLOC_LIBS=''
33720if test "$enable_ccmalloc" = 'yes'; then
33721 # Extract the first word of "ccmalloc", so it can be a program name with args.
33722set dummy ccmalloc; ac_word=$2
33723{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33724$as_echo_n "checking for $ac_word... " >&6; }
33725if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
33726 $as_echo_n "(cached) " >&6
33727else
33728 case $CCMALLOCDelegate in
33729 [\\/]* | ?:[\\/]*)
33730 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
33731 ;;
33732 *)
33733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33734for as_dir in $PATH
33735do
33736 IFS=$as_save_IFS
33737 test -z "$as_dir" && as_dir=.
33738 for ac_exec_ext in '' $ac_executable_extensions; do
33739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33740 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
33741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33742 break 2
33743 fi
33744done
33745done
33746IFS=$as_save_IFS
33747
33748 ;;
33749esac
33750fi
33751CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
33752if test -n "$CCMALLOCDelegate"; then
33753 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
33754$as_echo "$CCMALLOCDelegate" >&6; }
33755else
33756 { $as_echo "$as_me:$LINENO: result: no" >&5
33757$as_echo "no" >&6; }
33758fi
33759
33760
33761 if test -n "$CCMALLOCDelegate"; then
33762 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
33763 OLIBS="$LIBS"
33764 # Assume that gcc is used with ccmalloc.
33765 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
33766 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
33767$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
33768if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
33769 $as_echo_n "(cached) " >&6
33770else
33771 ac_check_lib_save_LIBS=$LIBS
33772LIBS="-lccmalloc -ldl $LIBS"
33773cat >conftest.$ac_ext <<_ACEOF
33774/* confdefs.h. */
33775_ACEOF
33776cat confdefs.h >>conftest.$ac_ext
33777cat >>conftest.$ac_ext <<_ACEOF
33778/* end confdefs.h. */
33779
33780/* Override any GCC internal prototype to avoid an error.
33781 Use char because int might match the return type of a GCC
33782 builtin and then its argument prototype would still apply. */
33783#ifdef __cplusplus
33784extern "C"
33785#endif
33786char ccmalloc_malloc ();
33787int
33788main ()
33789{
33790return ccmalloc_malloc ();
33791 ;
33792 return 0;
33793}
33794_ACEOF
33795rm -f conftest.$ac_objext conftest$ac_exeext
33796if { (ac_try="$ac_link"
33797case "(($ac_try" in
33798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799 *) ac_try_echo=$ac_try;;
33800esac
33801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33802$as_echo "$ac_try_echo") >&5
33803 (eval "$ac_link") 2>conftest.er1
33804 ac_status=$?
33805 grep -v '^ *+' conftest.er1 >conftest.err
33806 rm -f conftest.er1
33807 cat conftest.err >&5
33808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } && {
33810 test -z "$ac_c_werror_flag" ||
33811 test ! -s conftest.err
33812 } && test -s conftest$ac_exeext && {
33813 test "$cross_compiling" = yes ||
33814 $as_test_x conftest$ac_exeext
33815 }; then
33816 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
33817else
33818 $as_echo "$as_me: failed program was:" >&5
33819sed 's/^/| /' conftest.$ac_ext >&5
33820
33821 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
33822fi
33823
33824rm -rf conftest.dSYM
33825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33826 conftest$ac_exeext conftest.$ac_ext
33827LIBS=$ac_check_lib_save_LIBS
33828fi
33829{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
33830$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
33831if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
33832 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
33833fi
33834
33835 if test -n "$CCMALLOC_LIBS"; then
33836 LIBS="$OLIBS"
33837 LIBS="$LIBS $CCMALLOC_LIBS"
33838 have_ccmalloc='yes'
33839 else
33840 LIBS="$OLIBS"
33841 fi
33842 fi
33843fi
33844
33845#
33846# Add support for efence memory debugging library if requested
33847#
33848if test "$enable_efence" = 'yes'; then
33849 EFENCE_LIBS='-lefence'
33850 LIBS="$EFENCE_LIBS $LIBS"
33851fi
33852
33853#
33854# Find math library
33855#
33856MATH_LIBS=''
33857{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
33858$as_echo_n "checking for sqrt in -lm... " >&6; }
33859if test "${ac_cv_lib_m_sqrt+set}" = set; then
33860 $as_echo_n "(cached) " >&6
33861else
33862 ac_check_lib_save_LIBS=$LIBS
33863LIBS="-lm $LIBS"
33864cat >conftest.$ac_ext <<_ACEOF
33865/* confdefs.h. */
33866_ACEOF
33867cat confdefs.h >>conftest.$ac_ext
33868cat >>conftest.$ac_ext <<_ACEOF
33869/* end confdefs.h. */
33870
33871/* Override any GCC internal prototype to avoid an error.
33872 Use char because int might match the return type of a GCC
33873 builtin and then its argument prototype would still apply. */
33874#ifdef __cplusplus
33875extern "C"
33876#endif
33877char sqrt ();
33878int
33879main ()
33880{
33881return sqrt ();
33882 ;
33883 return 0;
33884}
33885_ACEOF
33886rm -f conftest.$ac_objext conftest$ac_exeext
33887if { (ac_try="$ac_link"
33888case "(($ac_try" in
33889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33890 *) ac_try_echo=$ac_try;;
33891esac
33892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33893$as_echo "$ac_try_echo") >&5
33894 (eval "$ac_link") 2>conftest.er1
33895 ac_status=$?
33896 grep -v '^ *+' conftest.er1 >conftest.err
33897 rm -f conftest.er1
33898 cat conftest.err >&5
33899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); } && {
33901 test -z "$ac_c_werror_flag" ||
33902 test ! -s conftest.err
33903 } && test -s conftest$ac_exeext && {
33904 test "$cross_compiling" = yes ||
33905 $as_test_x conftest$ac_exeext
33906 }; then
33907 ac_cv_lib_m_sqrt=yes
33908else
33909 $as_echo "$as_me: failed program was:" >&5
33910sed 's/^/| /' conftest.$ac_ext >&5
33911
33912 ac_cv_lib_m_sqrt=no
33913fi
33914
33915rm -rf conftest.dSYM
33916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33917 conftest$ac_exeext conftest.$ac_ext
33918LIBS=$ac_check_lib_save_LIBS
33919fi
33920{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
33921$as_echo "$ac_cv_lib_m_sqrt" >&6; }
33922if test "x$ac_cv_lib_m_sqrt" = x""yes; then
33923 MATH_LIBS="-lm"
33924fi
33925
33926LIBS="$MATH_LIBS $LIBS"
33927
33928
33929
33930#
33931# Check for BZLIB
33932#
33933
33934
33935# Check whether --with-bzlib was given.
33936if test "${with_bzlib+set}" = set; then
33937 withval=$with_bzlib; with_bzlib=$withval
33938else
33939 with_bzlib='yes'
33940fi
33941
33942
33943if test "$with_bzlib" != 'yes'; then
33944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
33945fi
33946
33947have_bzlib='no'
33948if test "$with_bzlib" != 'no'; then
33949 BZLIB_LIBS=''
33950 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
33951$as_echo "-------------------------------------------------------------" >&6; }
33952 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
33953$as_echo_n "checking for BZLIB... " >&6; }
33954 { $as_echo "$as_me:$LINENO: result: " >&5
33955$as_echo "" >&6; }
33956 failed=0
33957 passed=0
33958 found_libbz=0
33959 if test "${ac_cv_header_bzlib_h+set}" = set; then
33960 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33961$as_echo_n "checking for bzlib.h... " >&6; }
33962if test "${ac_cv_header_bzlib_h+set}" = set; then
33963 $as_echo_n "(cached) " >&6
33964fi
33965{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33966$as_echo "$ac_cv_header_bzlib_h" >&6; }
33967else
33968 # Is the header compilable?
33969{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
33970$as_echo_n "checking bzlib.h usability... " >&6; }
33971cat >conftest.$ac_ext <<_ACEOF
33972/* confdefs.h. */
33973_ACEOF
33974cat confdefs.h >>conftest.$ac_ext
33975cat >>conftest.$ac_ext <<_ACEOF
33976/* end confdefs.h. */
33977$ac_includes_default
33978#include <bzlib.h>
33979_ACEOF
33980rm -f conftest.$ac_objext
33981if { (ac_try="$ac_compile"
33982case "(($ac_try" in
33983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984 *) ac_try_echo=$ac_try;;
33985esac
33986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33987$as_echo "$ac_try_echo") >&5
33988 (eval "$ac_compile") 2>conftest.er1
33989 ac_status=$?
33990 grep -v '^ *+' conftest.er1 >conftest.err
33991 rm -f conftest.er1
33992 cat conftest.err >&5
33993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } && {
33995 test -z "$ac_c_werror_flag" ||
33996 test ! -s conftest.err
33997 } && test -s conftest.$ac_objext; then
33998 ac_header_compiler=yes
33999else
34000 $as_echo "$as_me: failed program was:" >&5
34001sed 's/^/| /' conftest.$ac_ext >&5
34002
34003 ac_header_compiler=no
34004fi
34005
34006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34007{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34008$as_echo "$ac_header_compiler" >&6; }
34009
34010# Is the header present?
34011{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
34012$as_echo_n "checking bzlib.h presence... " >&6; }
34013cat >conftest.$ac_ext <<_ACEOF
34014/* confdefs.h. */
34015_ACEOF
34016cat confdefs.h >>conftest.$ac_ext
34017cat >>conftest.$ac_ext <<_ACEOF
34018/* end confdefs.h. */
34019#include <bzlib.h>
34020_ACEOF
34021if { (ac_try="$ac_cpp conftest.$ac_ext"
34022case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34025esac
34026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34027$as_echo "$ac_try_echo") >&5
34028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34029 ac_status=$?
34030 grep -v '^ *+' conftest.er1 >conftest.err
34031 rm -f conftest.er1
34032 cat conftest.err >&5
34033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); } >/dev/null && {
34035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34036 test ! -s conftest.err
34037 }; then
34038 ac_header_preproc=yes
34039else
34040 $as_echo "$as_me: failed program was:" >&5
34041sed 's/^/| /' conftest.$ac_ext >&5
34042
34043 ac_header_preproc=no
34044fi
34045
34046rm -f conftest.err conftest.$ac_ext
34047{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34048$as_echo "$ac_header_preproc" >&6; }
34049
34050# So? What about this header?
34051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34052 yes:no: )
34053 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34054$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34055 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
34056$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
34057 ac_header_preproc=yes
34058 ;;
34059 no:yes:* )
34060 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
34061$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
34062 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
34063$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
34064 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
34065$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
34066 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
34067$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34068 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
34069$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
34070 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
34071$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
34072 ( cat <<\_ASBOX
34073## ----------------------------------------- ##
34074## Report this to http://www.imagemagick.org ##
34075## ----------------------------------------- ##
34076_ASBOX
34077 ) | sed "s/^/$as_me: WARNING: /" >&2
34078 ;;
34079esac
34080{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34081$as_echo_n "checking for bzlib.h... " >&6; }
34082if test "${ac_cv_header_bzlib_h+set}" = set; then
34083 $as_echo_n "(cached) " >&6
34084else
34085 ac_cv_header_bzlib_h=$ac_header_preproc
34086fi
34087{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34088$as_echo "$ac_cv_header_bzlib_h" >&6; }
34089
34090fi
34091if test "x$ac_cv_header_bzlib_h" = x""yes; then
34092 passed=`expr $passed + 1`
34093else
34094 failed=`expr $failed + 1`
34095fi
34096
34097
34098 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
34099$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
34100if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
34101 $as_echo_n "(cached) " >&6
34102else
34103 ac_check_lib_save_LIBS=$LIBS
34104LIBS="-lbz2 $LIBS"
34105cat >conftest.$ac_ext <<_ACEOF
34106/* confdefs.h. */
34107_ACEOF
34108cat confdefs.h >>conftest.$ac_ext
34109cat >>conftest.$ac_ext <<_ACEOF
34110/* end confdefs.h. */
34111
34112/* Override any GCC internal prototype to avoid an error.
34113 Use char because int might match the return type of a GCC
34114 builtin and then its argument prototype would still apply. */
34115#ifdef __cplusplus
34116extern "C"
34117#endif
34118char BZ2_bzDecompress ();
34119int
34120main ()
34121{
34122return BZ2_bzDecompress ();
34123 ;
34124 return 0;
34125}
34126_ACEOF
34127rm -f conftest.$ac_objext conftest$ac_exeext
34128if { (ac_try="$ac_link"
34129case "(($ac_try" in
34130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131 *) ac_try_echo=$ac_try;;
34132esac
34133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34134$as_echo "$ac_try_echo") >&5
34135 (eval "$ac_link") 2>conftest.er1
34136 ac_status=$?
34137 grep -v '^ *+' conftest.er1 >conftest.err
34138 rm -f conftest.er1
34139 cat conftest.err >&5
34140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); } && {
34142 test -z "$ac_c_werror_flag" ||
34143 test ! -s conftest.err
34144 } && test -s conftest$ac_exeext && {
34145 test "$cross_compiling" = yes ||
34146 $as_test_x conftest$ac_exeext
34147 }; then
34148 ac_cv_lib_bz2_BZ2_bzDecompress=yes
34149else
34150 $as_echo "$as_me: failed program was:" >&5
34151sed 's/^/| /' conftest.$ac_ext >&5
34152
34153 ac_cv_lib_bz2_BZ2_bzDecompress=no
34154fi
34155
34156rm -rf conftest.dSYM
34157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34158 conftest$ac_exeext conftest.$ac_ext
34159LIBS=$ac_check_lib_save_LIBS
34160fi
34161{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
34162$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
34163if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
34164 found_libbz=`expr $found_libbz + 1`
34165fi
34166
34167 if test "$native_win32_build" = 'yes'; then
34168 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
34169$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
34170if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
34171 $as_echo_n "(cached) " >&6
34172else
34173 ac_check_lib_save_LIBS=$LIBS
34174LIBS="-lbz2 $LIBS"
34175cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
34181
34182/* Override any GCC internal prototype to avoid an error.
34183 Use char because int might match the return type of a GCC
34184 builtin and then its argument prototype would still apply. */
34185#ifdef __cplusplus
34186extern "C"
34187#endif
34188char _imp__BZ2_decompress ();
34189int
34190main ()
34191{
34192return _imp__BZ2_decompress ();
34193 ;
34194 return 0;
34195}
34196_ACEOF
34197rm -f conftest.$ac_objext conftest$ac_exeext
34198if { (ac_try="$ac_link"
34199case "(($ac_try" in
34200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201 *) ac_try_echo=$ac_try;;
34202esac
34203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34204$as_echo "$ac_try_echo") >&5
34205 (eval "$ac_link") 2>conftest.er1
34206 ac_status=$?
34207 grep -v '^ *+' conftest.er1 >conftest.err
34208 rm -f conftest.er1
34209 cat conftest.err >&5
34210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } && {
34212 test -z "$ac_c_werror_flag" ||
34213 test ! -s conftest.err
34214 } && test -s conftest$ac_exeext && {
34215 test "$cross_compiling" = yes ||
34216 $as_test_x conftest$ac_exeext
34217 }; then
34218 ac_cv_lib_bz2__imp__BZ2_decompress=yes
34219else
34220 $as_echo "$as_me: failed program was:" >&5
34221sed 's/^/| /' conftest.$ac_ext >&5
34222
34223 ac_cv_lib_bz2__imp__BZ2_decompress=no
34224fi
34225
34226rm -rf conftest.dSYM
34227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34228 conftest$ac_exeext conftest.$ac_ext
34229LIBS=$ac_check_lib_save_LIBS
34230fi
34231{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
34232$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
34233if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
34234 found_libbz=`expr $found_libbz + 1`
34235fi
34236
34237 fi
34238 if test $found_libbz -gt 0; then
34239 passed=`expr $passed + 1`
34240 else
34241 failed=`expr $failed + 1`
34242 fi
34243 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
34244$as_echo_n "checking if BZLIB package is complete... " >&6; }
34245 if test $passed -gt 0; then
34246 if test $failed -gt 0; then
34247 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
34248$as_echo "no -- some components failed test" >&6; }
34249 have_bzlib='no (failed tests)'
34250 else
34251 BZLIB_LIBS='-lbz2'
34252 LIBS="$BZLIB_LIBS $LIBS"
34253
34254cat >>confdefs.h <<\_ACEOF
34255#define BZLIB_DELEGATE 1
34256_ACEOF
34257
34258 { $as_echo "$as_me:$LINENO: result: yes" >&5
34259$as_echo "yes" >&6; }
34260 have_bzlib='yes'
34261 fi
34262 else
34263 { $as_echo "$as_me:$LINENO: result: no" >&5
34264$as_echo "no" >&6; }
34265 fi
34266fi
34267 if test "$have_bzlib" = 'yes'; then
34268 BZLIB_DELEGATE_TRUE=
34269 BZLIB_DELEGATE_FALSE='#'
34270else
34271 BZLIB_DELEGATE_TRUE='#'
34272 BZLIB_DELEGATE_FALSE=
34273fi
34274
34275
34276
34277#
34278# Find the X11 include and library directories.
34279#
34280IPC_LIBS=''
34281X11_LIBS=''
34282XEXT_LIBS=''
34283XT_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000034284if test "$no_x" = yes; then
34285 # Not all programs may use this symbol, but it does not hurt to define it.
34286
34287cat >>confdefs.h <<\_ACEOF
34288#define X_DISPLAY_MISSING 1
34289_ACEOF
34290
34291 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34292else
34293 if test -n "$x_includes"; then
34294 X_CFLAGS="$X_CFLAGS -I$x_includes"
34295 fi
34296
34297 # It would also be nice to do this for all -L options, not just this one.
34298 if test -n "$x_libraries"; then
34299 X_LIBS="$X_LIBS -L$x_libraries"
34300 # For Solaris; some versions of Sun CC require a space after -R and
34301 # others require no space. Words are not sufficient . . . .
34302 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34303$as_echo_n "checking whether -R must be followed by a space... " >&6; }
34304 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34305 ac_xsave_c_werror_flag=$ac_c_werror_flag
34306 ac_c_werror_flag=yes
34307 cat >conftest.$ac_ext <<_ACEOF
34308/* confdefs.h. */
34309_ACEOF
34310cat confdefs.h >>conftest.$ac_ext
34311cat >>conftest.$ac_ext <<_ACEOF
34312/* end confdefs.h. */
34313
34314int
34315main ()
34316{
34317
34318 ;
34319 return 0;
34320}
34321_ACEOF
34322rm -f conftest.$ac_objext conftest$ac_exeext
34323if { (ac_try="$ac_link"
34324case "(($ac_try" in
34325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34326 *) ac_try_echo=$ac_try;;
34327esac
34328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34329$as_echo "$ac_try_echo") >&5
34330 (eval "$ac_link") 2>conftest.er1
34331 ac_status=$?
34332 grep -v '^ *+' conftest.er1 >conftest.err
34333 rm -f conftest.er1
34334 cat conftest.err >&5
34335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); } && {
34337 test -z "$ac_c_werror_flag" ||
34338 test ! -s conftest.err
34339 } && test -s conftest$ac_exeext && {
34340 test "$cross_compiling" = yes ||
34341 $as_test_x conftest$ac_exeext
34342 }; then
34343 { $as_echo "$as_me:$LINENO: result: no" >&5
34344$as_echo "no" >&6; }
34345 X_LIBS="$X_LIBS -R$x_libraries"
34346else
34347 $as_echo "$as_me: failed program was:" >&5
34348sed 's/^/| /' conftest.$ac_ext >&5
34349
34350 LIBS="$ac_xsave_LIBS -R $x_libraries"
34351 cat >conftest.$ac_ext <<_ACEOF
34352/* confdefs.h. */
34353_ACEOF
34354cat confdefs.h >>conftest.$ac_ext
34355cat >>conftest.$ac_ext <<_ACEOF
34356/* end confdefs.h. */
34357
34358int
34359main ()
34360{
34361
34362 ;
34363 return 0;
34364}
34365_ACEOF
34366rm -f conftest.$ac_objext conftest$ac_exeext
34367if { (ac_try="$ac_link"
34368case "(($ac_try" in
34369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34370 *) ac_try_echo=$ac_try;;
34371esac
34372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34373$as_echo "$ac_try_echo") >&5
34374 (eval "$ac_link") 2>conftest.er1
34375 ac_status=$?
34376 grep -v '^ *+' conftest.er1 >conftest.err
34377 rm -f conftest.er1
34378 cat conftest.err >&5
34379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); } && {
34381 test -z "$ac_c_werror_flag" ||
34382 test ! -s conftest.err
34383 } && test -s conftest$ac_exeext && {
34384 test "$cross_compiling" = yes ||
34385 $as_test_x conftest$ac_exeext
34386 }; then
34387 { $as_echo "$as_me:$LINENO: result: yes" >&5
34388$as_echo "yes" >&6; }
34389 X_LIBS="$X_LIBS -R $x_libraries"
34390else
34391 $as_echo "$as_me: failed program was:" >&5
34392sed 's/^/| /' conftest.$ac_ext >&5
34393
34394 { $as_echo "$as_me:$LINENO: result: neither works" >&5
34395$as_echo "neither works" >&6; }
34396fi
34397
34398rm -rf conftest.dSYM
34399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34400 conftest$ac_exeext conftest.$ac_ext
34401fi
34402
34403rm -rf conftest.dSYM
34404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34405 conftest$ac_exeext conftest.$ac_ext
34406 ac_c_werror_flag=$ac_xsave_c_werror_flag
34407 LIBS=$ac_xsave_LIBS
34408 fi
34409
34410 # Check for system-dependent libraries X programs must link with.
34411 # Do this before checking for the system-independent R6 libraries
34412 # (-lICE), since we may need -lsocket or whatever for X linking.
34413
34414 if test "$ISC" = yes; then
34415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34416 else
34417 # Martyn Johnson says this is needed for Ultrix, if the X
34418 # libraries were built with DECnet support. And Karl Berry says
34419 # the Alpha needs dnet_stub (dnet does not exist).
34420 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34421 cat >conftest.$ac_ext <<_ACEOF
34422/* confdefs.h. */
34423_ACEOF
34424cat confdefs.h >>conftest.$ac_ext
34425cat >>conftest.$ac_ext <<_ACEOF
34426/* end confdefs.h. */
34427
34428/* Override any GCC internal prototype to avoid an error.
34429 Use char because int might match the return type of a GCC
34430 builtin and then its argument prototype would still apply. */
34431#ifdef __cplusplus
34432extern "C"
34433#endif
34434char XOpenDisplay ();
34435int
34436main ()
34437{
34438return XOpenDisplay ();
34439 ;
34440 return 0;
34441}
34442_ACEOF
34443rm -f conftest.$ac_objext conftest$ac_exeext
34444if { (ac_try="$ac_link"
34445case "(($ac_try" in
34446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34447 *) ac_try_echo=$ac_try;;
34448esac
34449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34450$as_echo "$ac_try_echo") >&5
34451 (eval "$ac_link") 2>conftest.er1
34452 ac_status=$?
34453 grep -v '^ *+' conftest.er1 >conftest.err
34454 rm -f conftest.er1
34455 cat conftest.err >&5
34456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); } && {
34458 test -z "$ac_c_werror_flag" ||
34459 test ! -s conftest.err
34460 } && test -s conftest$ac_exeext && {
34461 test "$cross_compiling" = yes ||
34462 $as_test_x conftest$ac_exeext
34463 }; then
34464 :
34465else
34466 $as_echo "$as_me: failed program was:" >&5
34467sed 's/^/| /' conftest.$ac_ext >&5
34468
34469 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34470$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
34471if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34472 $as_echo_n "(cached) " >&6
34473else
34474 ac_check_lib_save_LIBS=$LIBS
34475LIBS="-ldnet $LIBS"
34476cat >conftest.$ac_ext <<_ACEOF
34477/* confdefs.h. */
34478_ACEOF
34479cat confdefs.h >>conftest.$ac_ext
34480cat >>conftest.$ac_ext <<_ACEOF
34481/* end confdefs.h. */
34482
34483/* Override any GCC internal prototype to avoid an error.
34484 Use char because int might match the return type of a GCC
34485 builtin and then its argument prototype would still apply. */
34486#ifdef __cplusplus
34487extern "C"
34488#endif
34489char dnet_ntoa ();
34490int
34491main ()
34492{
34493return dnet_ntoa ();
34494 ;
34495 return 0;
34496}
34497_ACEOF
34498rm -f conftest.$ac_objext conftest$ac_exeext
34499if { (ac_try="$ac_link"
34500case "(($ac_try" in
34501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34502 *) ac_try_echo=$ac_try;;
34503esac
34504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34505$as_echo "$ac_try_echo") >&5
34506 (eval "$ac_link") 2>conftest.er1
34507 ac_status=$?
34508 grep -v '^ *+' conftest.er1 >conftest.err
34509 rm -f conftest.er1
34510 cat conftest.err >&5
34511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 (exit $ac_status); } && {
34513 test -z "$ac_c_werror_flag" ||
34514 test ! -s conftest.err
34515 } && test -s conftest$ac_exeext && {
34516 test "$cross_compiling" = yes ||
34517 $as_test_x conftest$ac_exeext
34518 }; then
34519 ac_cv_lib_dnet_dnet_ntoa=yes
34520else
34521 $as_echo "$as_me: failed program was:" >&5
34522sed 's/^/| /' conftest.$ac_ext >&5
34523
34524 ac_cv_lib_dnet_dnet_ntoa=no
34525fi
34526
34527rm -rf conftest.dSYM
34528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34529 conftest$ac_exeext conftest.$ac_ext
34530LIBS=$ac_check_lib_save_LIBS
34531fi
34532{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34533$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34534if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
34535 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34536fi
34537
34538 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34539 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34540$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
34541if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34542 $as_echo_n "(cached) " >&6
34543else
34544 ac_check_lib_save_LIBS=$LIBS
34545LIBS="-ldnet_stub $LIBS"
34546cat >conftest.$ac_ext <<_ACEOF
34547/* confdefs.h. */
34548_ACEOF
34549cat confdefs.h >>conftest.$ac_ext
34550cat >>conftest.$ac_ext <<_ACEOF
34551/* end confdefs.h. */
34552
34553/* Override any GCC internal prototype to avoid an error.
34554 Use char because int might match the return type of a GCC
34555 builtin and then its argument prototype would still apply. */
34556#ifdef __cplusplus
34557extern "C"
34558#endif
34559char dnet_ntoa ();
34560int
34561main ()
34562{
34563return dnet_ntoa ();
34564 ;
34565 return 0;
34566}
34567_ACEOF
34568rm -f conftest.$ac_objext conftest$ac_exeext
34569if { (ac_try="$ac_link"
34570case "(($ac_try" in
34571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34573esac
34574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34575$as_echo "$ac_try_echo") >&5
34576 (eval "$ac_link") 2>conftest.er1
34577 ac_status=$?
34578 grep -v '^ *+' conftest.er1 >conftest.err
34579 rm -f conftest.er1
34580 cat conftest.err >&5
34581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); } && {
34583 test -z "$ac_c_werror_flag" ||
34584 test ! -s conftest.err
34585 } && test -s conftest$ac_exeext && {
34586 test "$cross_compiling" = yes ||
34587 $as_test_x conftest$ac_exeext
34588 }; then
34589 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34590else
34591 $as_echo "$as_me: failed program was:" >&5
34592sed 's/^/| /' conftest.$ac_ext >&5
34593
34594 ac_cv_lib_dnet_stub_dnet_ntoa=no
34595fi
34596
34597rm -rf conftest.dSYM
34598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34599 conftest$ac_exeext conftest.$ac_ext
34600LIBS=$ac_check_lib_save_LIBS
34601fi
34602{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34603$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34604if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34605 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34606fi
34607
34608 fi
34609fi
34610
34611rm -rf conftest.dSYM
34612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34613 conftest$ac_exeext conftest.$ac_ext
34614 LIBS="$ac_xsave_LIBS"
34615
34616 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34617 # to get the SysV transport functions.
34618 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34619 # needs -lnsl.
34620 # The nsl library prevents programs from opening the X display
34621 # on Irix 5.2, according to T.E. Dickey.
34622 # The functions gethostbyname, getservbyname, and inet_addr are
34623 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34624 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34625$as_echo_n "checking for gethostbyname... " >&6; }
34626if test "${ac_cv_func_gethostbyname+set}" = set; then
34627 $as_echo_n "(cached) " >&6
34628else
34629 cat >conftest.$ac_ext <<_ACEOF
34630/* confdefs.h. */
34631_ACEOF
34632cat confdefs.h >>conftest.$ac_ext
34633cat >>conftest.$ac_ext <<_ACEOF
34634/* end confdefs.h. */
34635/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34637#define gethostbyname innocuous_gethostbyname
34638
34639/* System header to define __stub macros and hopefully few prototypes,
34640 which can conflict with char gethostbyname (); below.
34641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34642 <limits.h> exists even on freestanding compilers. */
34643
34644#ifdef __STDC__
34645# include <limits.h>
34646#else
34647# include <assert.h>
34648#endif
34649
34650#undef gethostbyname
34651
34652/* Override any GCC internal prototype to avoid an error.
34653 Use char because int might match the return type of a GCC
34654 builtin and then its argument prototype would still apply. */
34655#ifdef __cplusplus
34656extern "C"
34657#endif
34658char gethostbyname ();
34659/* The GNU C library defines this for functions which it implements
34660 to always fail with ENOSYS. Some functions are actually named
34661 something starting with __ and the normal name is an alias. */
34662#if defined __stub_gethostbyname || defined __stub___gethostbyname
34663choke me
34664#endif
34665
34666int
34667main ()
34668{
34669return gethostbyname ();
34670 ;
34671 return 0;
34672}
34673_ACEOF
34674rm -f conftest.$ac_objext conftest$ac_exeext
34675if { (ac_try="$ac_link"
34676case "(($ac_try" in
34677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34678 *) ac_try_echo=$ac_try;;
34679esac
34680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34681$as_echo "$ac_try_echo") >&5
34682 (eval "$ac_link") 2>conftest.er1
34683 ac_status=$?
34684 grep -v '^ *+' conftest.er1 >conftest.err
34685 rm -f conftest.er1
34686 cat conftest.err >&5
34687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); } && {
34689 test -z "$ac_c_werror_flag" ||
34690 test ! -s conftest.err
34691 } && test -s conftest$ac_exeext && {
34692 test "$cross_compiling" = yes ||
34693 $as_test_x conftest$ac_exeext
34694 }; then
34695 ac_cv_func_gethostbyname=yes
34696else
34697 $as_echo "$as_me: failed program was:" >&5
34698sed 's/^/| /' conftest.$ac_ext >&5
34699
34700 ac_cv_func_gethostbyname=no
34701fi
34702
34703rm -rf conftest.dSYM
34704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34705 conftest$ac_exeext conftest.$ac_ext
34706fi
34707{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34708$as_echo "$ac_cv_func_gethostbyname" >&6; }
34709
34710 if test $ac_cv_func_gethostbyname = no; then
34711 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34712$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34713if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34714 $as_echo_n "(cached) " >&6
34715else
34716 ac_check_lib_save_LIBS=$LIBS
34717LIBS="-lnsl $LIBS"
34718cat >conftest.$ac_ext <<_ACEOF
34719/* confdefs.h. */
34720_ACEOF
34721cat confdefs.h >>conftest.$ac_ext
34722cat >>conftest.$ac_ext <<_ACEOF
34723/* end confdefs.h. */
34724
34725/* Override any GCC internal prototype to avoid an error.
34726 Use char because int might match the return type of a GCC
34727 builtin and then its argument prototype would still apply. */
34728#ifdef __cplusplus
34729extern "C"
34730#endif
34731char gethostbyname ();
34732int
34733main ()
34734{
34735return gethostbyname ();
34736 ;
34737 return 0;
34738}
34739_ACEOF
34740rm -f conftest.$ac_objext conftest$ac_exeext
34741if { (ac_try="$ac_link"
34742case "(($ac_try" in
34743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34744 *) ac_try_echo=$ac_try;;
34745esac
34746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34747$as_echo "$ac_try_echo") >&5
34748 (eval "$ac_link") 2>conftest.er1
34749 ac_status=$?
34750 grep -v '^ *+' conftest.er1 >conftest.err
34751 rm -f conftest.er1
34752 cat conftest.err >&5
34753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754 (exit $ac_status); } && {
34755 test -z "$ac_c_werror_flag" ||
34756 test ! -s conftest.err
34757 } && test -s conftest$ac_exeext && {
34758 test "$cross_compiling" = yes ||
34759 $as_test_x conftest$ac_exeext
34760 }; then
34761 ac_cv_lib_nsl_gethostbyname=yes
34762else
34763 $as_echo "$as_me: failed program was:" >&5
34764sed 's/^/| /' conftest.$ac_ext >&5
34765
34766 ac_cv_lib_nsl_gethostbyname=no
34767fi
34768
34769rm -rf conftest.dSYM
34770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34771 conftest$ac_exeext conftest.$ac_ext
34772LIBS=$ac_check_lib_save_LIBS
34773fi
34774{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
34775$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
34776if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
34777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34778fi
34779
34780 if test $ac_cv_lib_nsl_gethostbyname = no; then
34781 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
34782$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
34783if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
34784 $as_echo_n "(cached) " >&6
34785else
34786 ac_check_lib_save_LIBS=$LIBS
34787LIBS="-lbsd $LIBS"
34788cat >conftest.$ac_ext <<_ACEOF
34789/* confdefs.h. */
34790_ACEOF
34791cat confdefs.h >>conftest.$ac_ext
34792cat >>conftest.$ac_ext <<_ACEOF
34793/* end confdefs.h. */
34794
34795/* Override any GCC internal prototype to avoid an error.
34796 Use char because int might match the return type of a GCC
34797 builtin and then its argument prototype would still apply. */
34798#ifdef __cplusplus
34799extern "C"
34800#endif
34801char gethostbyname ();
34802int
34803main ()
34804{
34805return gethostbyname ();
34806 ;
34807 return 0;
34808}
34809_ACEOF
34810rm -f conftest.$ac_objext conftest$ac_exeext
34811if { (ac_try="$ac_link"
34812case "(($ac_try" in
34813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814 *) ac_try_echo=$ac_try;;
34815esac
34816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34817$as_echo "$ac_try_echo") >&5
34818 (eval "$ac_link") 2>conftest.er1
34819 ac_status=$?
34820 grep -v '^ *+' conftest.er1 >conftest.err
34821 rm -f conftest.er1
34822 cat conftest.err >&5
34823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); } && {
34825 test -z "$ac_c_werror_flag" ||
34826 test ! -s conftest.err
34827 } && test -s conftest$ac_exeext && {
34828 test "$cross_compiling" = yes ||
34829 $as_test_x conftest$ac_exeext
34830 }; then
34831 ac_cv_lib_bsd_gethostbyname=yes
34832else
34833 $as_echo "$as_me: failed program was:" >&5
34834sed 's/^/| /' conftest.$ac_ext >&5
34835
34836 ac_cv_lib_bsd_gethostbyname=no
34837fi
34838
34839rm -rf conftest.dSYM
34840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34841 conftest$ac_exeext conftest.$ac_ext
34842LIBS=$ac_check_lib_save_LIBS
34843fi
34844{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
34845$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
34846if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
34847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
34848fi
34849
34850 fi
34851 fi
34852
34853 # lieder@skyler.mavd.honeywell.com says without -lsocket,
34854 # socket/setsockopt and other routines are undefined under SCO ODT
34855 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
34856 # on later versions), says Simon Leinen: it contains gethostby*
34857 # variants that don't use the name server (or something). -lsocket
34858 # must be given before -lnsl if both are needed. We assume that
34859 # if connect needs -lnsl, so does gethostbyname.
34860 { $as_echo "$as_me:$LINENO: checking for connect" >&5
34861$as_echo_n "checking for connect... " >&6; }
34862if test "${ac_cv_func_connect+set}" = set; then
34863 $as_echo_n "(cached) " >&6
34864else
34865 cat >conftest.$ac_ext <<_ACEOF
34866/* confdefs.h. */
34867_ACEOF
34868cat confdefs.h >>conftest.$ac_ext
34869cat >>conftest.$ac_ext <<_ACEOF
34870/* end confdefs.h. */
34871/* Define connect to an innocuous variant, in case <limits.h> declares connect.
34872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34873#define connect innocuous_connect
34874
34875/* System header to define __stub macros and hopefully few prototypes,
34876 which can conflict with char connect (); below.
34877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34878 <limits.h> exists even on freestanding compilers. */
34879
34880#ifdef __STDC__
34881# include <limits.h>
34882#else
34883# include <assert.h>
34884#endif
34885
34886#undef connect
34887
34888/* Override any GCC internal prototype to avoid an error.
34889 Use char because int might match the return type of a GCC
34890 builtin and then its argument prototype would still apply. */
34891#ifdef __cplusplus
34892extern "C"
34893#endif
34894char connect ();
34895/* The GNU C library defines this for functions which it implements
34896 to always fail with ENOSYS. Some functions are actually named
34897 something starting with __ and the normal name is an alias. */
34898#if defined __stub_connect || defined __stub___connect
34899choke me
34900#endif
34901
34902int
34903main ()
34904{
34905return connect ();
34906 ;
34907 return 0;
34908}
34909_ACEOF
34910rm -f conftest.$ac_objext conftest$ac_exeext
34911if { (ac_try="$ac_link"
34912case "(($ac_try" in
34913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914 *) ac_try_echo=$ac_try;;
34915esac
34916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34917$as_echo "$ac_try_echo") >&5
34918 (eval "$ac_link") 2>conftest.er1
34919 ac_status=$?
34920 grep -v '^ *+' conftest.er1 >conftest.err
34921 rm -f conftest.er1
34922 cat conftest.err >&5
34923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924 (exit $ac_status); } && {
34925 test -z "$ac_c_werror_flag" ||
34926 test ! -s conftest.err
34927 } && test -s conftest$ac_exeext && {
34928 test "$cross_compiling" = yes ||
34929 $as_test_x conftest$ac_exeext
34930 }; then
34931 ac_cv_func_connect=yes
34932else
34933 $as_echo "$as_me: failed program was:" >&5
34934sed 's/^/| /' conftest.$ac_ext >&5
34935
34936 ac_cv_func_connect=no
34937fi
34938
34939rm -rf conftest.dSYM
34940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34941 conftest$ac_exeext conftest.$ac_ext
34942fi
34943{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
34944$as_echo "$ac_cv_func_connect" >&6; }
34945
34946 if test $ac_cv_func_connect = no; then
34947 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
34948$as_echo_n "checking for connect in -lsocket... " >&6; }
34949if test "${ac_cv_lib_socket_connect+set}" = set; then
34950 $as_echo_n "(cached) " >&6
34951else
34952 ac_check_lib_save_LIBS=$LIBS
34953LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
34954cat >conftest.$ac_ext <<_ACEOF
34955/* confdefs.h. */
34956_ACEOF
34957cat confdefs.h >>conftest.$ac_ext
34958cat >>conftest.$ac_ext <<_ACEOF
34959/* end confdefs.h. */
34960
34961/* Override any GCC internal prototype to avoid an error.
34962 Use char because int might match the return type of a GCC
34963 builtin and then its argument prototype would still apply. */
34964#ifdef __cplusplus
34965extern "C"
34966#endif
34967char connect ();
34968int
34969main ()
34970{
34971return connect ();
34972 ;
34973 return 0;
34974}
34975_ACEOF
34976rm -f conftest.$ac_objext conftest$ac_exeext
34977if { (ac_try="$ac_link"
34978case "(($ac_try" in
34979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34981esac
34982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34983$as_echo "$ac_try_echo") >&5
34984 (eval "$ac_link") 2>conftest.er1
34985 ac_status=$?
34986 grep -v '^ *+' conftest.er1 >conftest.err
34987 rm -f conftest.er1
34988 cat conftest.err >&5
34989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); } && {
34991 test -z "$ac_c_werror_flag" ||
34992 test ! -s conftest.err
34993 } && test -s conftest$ac_exeext && {
34994 test "$cross_compiling" = yes ||
34995 $as_test_x conftest$ac_exeext
34996 }; then
34997 ac_cv_lib_socket_connect=yes
34998else
34999 $as_echo "$as_me: failed program was:" >&5
35000sed 's/^/| /' conftest.$ac_ext >&5
35001
35002 ac_cv_lib_socket_connect=no
35003fi
35004
35005rm -rf conftest.dSYM
35006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35007 conftest$ac_exeext conftest.$ac_ext
35008LIBS=$ac_check_lib_save_LIBS
35009fi
35010{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35011$as_echo "$ac_cv_lib_socket_connect" >&6; }
35012if test "x$ac_cv_lib_socket_connect" = x""yes; then
35013 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35014fi
35015
35016 fi
35017
35018 # Guillermo Gomez says -lposix is necessary on A/UX.
35019 { $as_echo "$as_me:$LINENO: checking for remove" >&5
35020$as_echo_n "checking for remove... " >&6; }
35021if test "${ac_cv_func_remove+set}" = set; then
35022 $as_echo_n "(cached) " >&6
35023else
35024 cat >conftest.$ac_ext <<_ACEOF
35025/* confdefs.h. */
35026_ACEOF
35027cat confdefs.h >>conftest.$ac_ext
35028cat >>conftest.$ac_ext <<_ACEOF
35029/* end confdefs.h. */
35030/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35032#define remove innocuous_remove
35033
35034/* System header to define __stub macros and hopefully few prototypes,
35035 which can conflict with char remove (); below.
35036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35037 <limits.h> exists even on freestanding compilers. */
35038
35039#ifdef __STDC__
35040# include <limits.h>
35041#else
35042# include <assert.h>
35043#endif
35044
35045#undef remove
35046
35047/* Override any GCC internal prototype to avoid an error.
35048 Use char because int might match the return type of a GCC
35049 builtin and then its argument prototype would still apply. */
35050#ifdef __cplusplus
35051extern "C"
35052#endif
35053char remove ();
35054/* The GNU C library defines this for functions which it implements
35055 to always fail with ENOSYS. Some functions are actually named
35056 something starting with __ and the normal name is an alias. */
35057#if defined __stub_remove || defined __stub___remove
35058choke me
35059#endif
35060
35061int
35062main ()
35063{
35064return remove ();
35065 ;
35066 return 0;
35067}
35068_ACEOF
35069rm -f conftest.$ac_objext conftest$ac_exeext
35070if { (ac_try="$ac_link"
35071case "(($ac_try" in
35072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35073 *) ac_try_echo=$ac_try;;
35074esac
35075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35076$as_echo "$ac_try_echo") >&5
35077 (eval "$ac_link") 2>conftest.er1
35078 ac_status=$?
35079 grep -v '^ *+' conftest.er1 >conftest.err
35080 rm -f conftest.er1
35081 cat conftest.err >&5
35082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } && {
35084 test -z "$ac_c_werror_flag" ||
35085 test ! -s conftest.err
35086 } && test -s conftest$ac_exeext && {
35087 test "$cross_compiling" = yes ||
35088 $as_test_x conftest$ac_exeext
35089 }; then
35090 ac_cv_func_remove=yes
35091else
35092 $as_echo "$as_me: failed program was:" >&5
35093sed 's/^/| /' conftest.$ac_ext >&5
35094
35095 ac_cv_func_remove=no
35096fi
35097
35098rm -rf conftest.dSYM
35099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35100 conftest$ac_exeext conftest.$ac_ext
35101fi
35102{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35103$as_echo "$ac_cv_func_remove" >&6; }
35104
35105 if test $ac_cv_func_remove = no; then
35106 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35107$as_echo_n "checking for remove in -lposix... " >&6; }
35108if test "${ac_cv_lib_posix_remove+set}" = set; then
35109 $as_echo_n "(cached) " >&6
35110else
35111 ac_check_lib_save_LIBS=$LIBS
35112LIBS="-lposix $LIBS"
35113cat >conftest.$ac_ext <<_ACEOF
35114/* confdefs.h. */
35115_ACEOF
35116cat confdefs.h >>conftest.$ac_ext
35117cat >>conftest.$ac_ext <<_ACEOF
35118/* end confdefs.h. */
35119
35120/* Override any GCC internal prototype to avoid an error.
35121 Use char because int might match the return type of a GCC
35122 builtin and then its argument prototype would still apply. */
35123#ifdef __cplusplus
35124extern "C"
35125#endif
35126char remove ();
35127int
35128main ()
35129{
35130return remove ();
35131 ;
35132 return 0;
35133}
35134_ACEOF
35135rm -f conftest.$ac_objext conftest$ac_exeext
35136if { (ac_try="$ac_link"
35137case "(($ac_try" in
35138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35139 *) ac_try_echo=$ac_try;;
35140esac
35141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35142$as_echo "$ac_try_echo") >&5
35143 (eval "$ac_link") 2>conftest.er1
35144 ac_status=$?
35145 grep -v '^ *+' conftest.er1 >conftest.err
35146 rm -f conftest.er1
35147 cat conftest.err >&5
35148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149 (exit $ac_status); } && {
35150 test -z "$ac_c_werror_flag" ||
35151 test ! -s conftest.err
35152 } && test -s conftest$ac_exeext && {
35153 test "$cross_compiling" = yes ||
35154 $as_test_x conftest$ac_exeext
35155 }; then
35156 ac_cv_lib_posix_remove=yes
35157else
35158 $as_echo "$as_me: failed program was:" >&5
35159sed 's/^/| /' conftest.$ac_ext >&5
35160
35161 ac_cv_lib_posix_remove=no
35162fi
35163
35164rm -rf conftest.dSYM
35165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35166 conftest$ac_exeext conftest.$ac_ext
35167LIBS=$ac_check_lib_save_LIBS
35168fi
35169{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35170$as_echo "$ac_cv_lib_posix_remove" >&6; }
35171if test "x$ac_cv_lib_posix_remove" = x""yes; then
35172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35173fi
35174
35175 fi
35176
35177 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35178 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
35179$as_echo_n "checking for shmat... " >&6; }
35180if test "${ac_cv_func_shmat+set}" = set; then
35181 $as_echo_n "(cached) " >&6
35182else
35183 cat >conftest.$ac_ext <<_ACEOF
35184/* confdefs.h. */
35185_ACEOF
35186cat confdefs.h >>conftest.$ac_ext
35187cat >>conftest.$ac_ext <<_ACEOF
35188/* end confdefs.h. */
35189/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35191#define shmat innocuous_shmat
35192
35193/* System header to define __stub macros and hopefully few prototypes,
35194 which can conflict with char shmat (); below.
35195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35196 <limits.h> exists even on freestanding compilers. */
35197
35198#ifdef __STDC__
35199# include <limits.h>
35200#else
35201# include <assert.h>
35202#endif
35203
35204#undef shmat
35205
35206/* Override any GCC internal prototype to avoid an error.
35207 Use char because int might match the return type of a GCC
35208 builtin and then its argument prototype would still apply. */
35209#ifdef __cplusplus
35210extern "C"
35211#endif
35212char shmat ();
35213/* The GNU C library defines this for functions which it implements
35214 to always fail with ENOSYS. Some functions are actually named
35215 something starting with __ and the normal name is an alias. */
35216#if defined __stub_shmat || defined __stub___shmat
35217choke me
35218#endif
35219
35220int
35221main ()
35222{
35223return shmat ();
35224 ;
35225 return 0;
35226}
35227_ACEOF
35228rm -f conftest.$ac_objext conftest$ac_exeext
35229if { (ac_try="$ac_link"
35230case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35233esac
35234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35235$as_echo "$ac_try_echo") >&5
35236 (eval "$ac_link") 2>conftest.er1
35237 ac_status=$?
35238 grep -v '^ *+' conftest.er1 >conftest.err
35239 rm -f conftest.er1
35240 cat conftest.err >&5
35241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); } && {
35243 test -z "$ac_c_werror_flag" ||
35244 test ! -s conftest.err
35245 } && test -s conftest$ac_exeext && {
35246 test "$cross_compiling" = yes ||
35247 $as_test_x conftest$ac_exeext
35248 }; then
35249 ac_cv_func_shmat=yes
35250else
35251 $as_echo "$as_me: failed program was:" >&5
35252sed 's/^/| /' conftest.$ac_ext >&5
35253
35254 ac_cv_func_shmat=no
35255fi
35256
35257rm -rf conftest.dSYM
35258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35259 conftest$ac_exeext conftest.$ac_ext
35260fi
35261{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35262$as_echo "$ac_cv_func_shmat" >&6; }
35263
35264 if test $ac_cv_func_shmat = no; then
35265 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35266$as_echo_n "checking for shmat in -lipc... " >&6; }
35267if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35268 $as_echo_n "(cached) " >&6
35269else
35270 ac_check_lib_save_LIBS=$LIBS
35271LIBS="-lipc $LIBS"
35272cat >conftest.$ac_ext <<_ACEOF
35273/* confdefs.h. */
35274_ACEOF
35275cat confdefs.h >>conftest.$ac_ext
35276cat >>conftest.$ac_ext <<_ACEOF
35277/* end confdefs.h. */
35278
35279/* Override any GCC internal prototype to avoid an error.
35280 Use char because int might match the return type of a GCC
35281 builtin and then its argument prototype would still apply. */
35282#ifdef __cplusplus
35283extern "C"
35284#endif
35285char shmat ();
35286int
35287main ()
35288{
35289return shmat ();
35290 ;
35291 return 0;
35292}
35293_ACEOF
35294rm -f conftest.$ac_objext conftest$ac_exeext
35295if { (ac_try="$ac_link"
35296case "(($ac_try" in
35297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35298 *) ac_try_echo=$ac_try;;
35299esac
35300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35301$as_echo "$ac_try_echo") >&5
35302 (eval "$ac_link") 2>conftest.er1
35303 ac_status=$?
35304 grep -v '^ *+' conftest.er1 >conftest.err
35305 rm -f conftest.er1
35306 cat conftest.err >&5
35307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } && {
35309 test -z "$ac_c_werror_flag" ||
35310 test ! -s conftest.err
35311 } && test -s conftest$ac_exeext && {
35312 test "$cross_compiling" = yes ||
35313 $as_test_x conftest$ac_exeext
35314 }; then
35315 ac_cv_lib_ipc_shmat=yes
35316else
35317 $as_echo "$as_me: failed program was:" >&5
35318sed 's/^/| /' conftest.$ac_ext >&5
35319
35320 ac_cv_lib_ipc_shmat=no
35321fi
35322
35323rm -rf conftest.dSYM
35324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35325 conftest$ac_exeext conftest.$ac_ext
35326LIBS=$ac_check_lib_save_LIBS
35327fi
35328{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35329$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
35330if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
35331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35332fi
35333
35334 fi
35335 fi
35336
35337 # Check for libraries that X11R6 Xt/Xaw programs need.
35338 ac_save_LDFLAGS=$LDFLAGS
35339 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35340 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35341 # check for ICE first), but we must link in the order -lSM -lICE or
35342 # we get undefined symbols. So assume we have SM if we have ICE.
35343 # These have to be linked with before -lX11, unlike the other
35344 # libraries we check for below, so use a different variable.
35345 # John Interrante, Karl Berry
35346 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35347$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
35348if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35349 $as_echo_n "(cached) " >&6
35350else
35351 ac_check_lib_save_LIBS=$LIBS
35352LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35353cat >conftest.$ac_ext <<_ACEOF
35354/* confdefs.h. */
35355_ACEOF
35356cat confdefs.h >>conftest.$ac_ext
35357cat >>conftest.$ac_ext <<_ACEOF
35358/* end confdefs.h. */
35359
35360/* Override any GCC internal prototype to avoid an error.
35361 Use char because int might match the return type of a GCC
35362 builtin and then its argument prototype would still apply. */
35363#ifdef __cplusplus
35364extern "C"
35365#endif
35366char IceConnectionNumber ();
35367int
35368main ()
35369{
35370return IceConnectionNumber ();
35371 ;
35372 return 0;
35373}
35374_ACEOF
35375rm -f conftest.$ac_objext conftest$ac_exeext
35376if { (ac_try="$ac_link"
35377case "(($ac_try" in
35378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35379 *) ac_try_echo=$ac_try;;
35380esac
35381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35382$as_echo "$ac_try_echo") >&5
35383 (eval "$ac_link") 2>conftest.er1
35384 ac_status=$?
35385 grep -v '^ *+' conftest.er1 >conftest.err
35386 rm -f conftest.er1
35387 cat conftest.err >&5
35388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); } && {
35390 test -z "$ac_c_werror_flag" ||
35391 test ! -s conftest.err
35392 } && test -s conftest$ac_exeext && {
35393 test "$cross_compiling" = yes ||
35394 $as_test_x conftest$ac_exeext
35395 }; then
35396 ac_cv_lib_ICE_IceConnectionNumber=yes
35397else
35398 $as_echo "$as_me: failed program was:" >&5
35399sed 's/^/| /' conftest.$ac_ext >&5
35400
35401 ac_cv_lib_ICE_IceConnectionNumber=no
35402fi
35403
35404rm -rf conftest.dSYM
35405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35406 conftest$ac_exeext conftest.$ac_ext
35407LIBS=$ac_check_lib_save_LIBS
35408fi
35409{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35410$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35411if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
35412 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35413fi
35414
35415 LDFLAGS=$ac_save_LDFLAGS
35416
35417fi
35418
35419if test "$no_x" != 'yes'; then
35420 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35421$as_echo "-------------------------------------------------------------" >&6; }
35422 { $as_echo "$as_me:$LINENO: checking for X11" >&5
35423$as_echo_n "checking for X11... " >&6; }
35424 { $as_echo "$as_me:$LINENO: result: " >&5
35425$as_echo "" >&6; }
35426 LDFLAGS="$LDFLAGS $X_LIBS"
35427 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
35428 LIBS="$X11_LIBS $LIBS"
35429 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
35430
35431
35432cat >>confdefs.h <<\_ACEOF
35433#define X11_DELEGATE 1
35434_ACEOF
35435
35436 #
35437 # Check for X11 shared memory extension
35438 #
35439 # shmctl is required to support the shared memory extension
35440 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
35441$as_echo_n "checking for shmctl... " >&6; }
35442if test "${ac_cv_func_shmctl+set}" = set; then
35443 $as_echo_n "(cached) " >&6
35444else
35445 cat >conftest.$ac_ext <<_ACEOF
35446/* confdefs.h. */
35447_ACEOF
35448cat confdefs.h >>conftest.$ac_ext
35449cat >>conftest.$ac_ext <<_ACEOF
35450/* end confdefs.h. */
35451/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
35452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35453#define shmctl innocuous_shmctl
35454
35455/* System header to define __stub macros and hopefully few prototypes,
35456 which can conflict with char shmctl (); below.
35457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35458 <limits.h> exists even on freestanding compilers. */
35459
35460#ifdef __STDC__
35461# include <limits.h>
35462#else
35463# include <assert.h>
35464#endif
35465
35466#undef shmctl
35467
35468/* Override any GCC internal prototype to avoid an error.
35469 Use char because int might match the return type of a GCC
35470 builtin and then its argument prototype would still apply. */
35471#ifdef __cplusplus
35472extern "C"
35473#endif
35474char shmctl ();
35475/* The GNU C library defines this for functions which it implements
35476 to always fail with ENOSYS. Some functions are actually named
35477 something starting with __ and the normal name is an alias. */
35478#if defined __stub_shmctl || defined __stub___shmctl
35479choke me
35480#endif
35481
35482int
35483main ()
35484{
35485return shmctl ();
35486 ;
35487 return 0;
35488}
35489_ACEOF
35490rm -f conftest.$ac_objext conftest$ac_exeext
35491if { (ac_try="$ac_link"
35492case "(($ac_try" in
35493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494 *) ac_try_echo=$ac_try;;
35495esac
35496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35497$as_echo "$ac_try_echo") >&5
35498 (eval "$ac_link") 2>conftest.er1
35499 ac_status=$?
35500 grep -v '^ *+' conftest.er1 >conftest.err
35501 rm -f conftest.er1
35502 cat conftest.err >&5
35503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504 (exit $ac_status); } && {
35505 test -z "$ac_c_werror_flag" ||
35506 test ! -s conftest.err
35507 } && test -s conftest$ac_exeext && {
35508 test "$cross_compiling" = yes ||
35509 $as_test_x conftest$ac_exeext
35510 }; then
35511 ac_cv_func_shmctl=yes
35512else
35513 $as_echo "$as_me: failed program was:" >&5
35514sed 's/^/| /' conftest.$ac_ext >&5
35515
35516 ac_cv_func_shmctl=no
35517fi
35518
35519rm -rf conftest.dSYM
35520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35521 conftest$ac_exeext conftest.$ac_ext
35522fi
35523{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
35524$as_echo "$ac_cv_func_shmctl" >&6; }
35525if test "x$ac_cv_func_shmctl" = x""yes; then
35526 have_shmctl='yes'
35527fi
35528
35529 if test "$have_shmctl" != 'yes'; then
35530 PERSIST_LIBS=$LIBS
35531 LIBS="$LIBS -lcygipc"
35532 cat >conftest.$ac_ext <<_ACEOF
35533/* confdefs.h. */
35534_ACEOF
35535cat confdefs.h >>conftest.$ac_ext
35536cat >>conftest.$ac_ext <<_ACEOF
35537/* end confdefs.h. */
35538
35539/* Override any GCC internal prototype to avoid an error.
35540 Use char because int might match the return type of a GCC
35541 builtin and then its argument prototype would still apply. */
35542#ifdef __cplusplus
35543extern "C"
35544#endif
35545char shmctl ();
35546int
35547main ()
35548{
35549return shmctl ();
35550 ;
35551 return 0;
35552}
35553_ACEOF
35554rm -f conftest.$ac_objext conftest$ac_exeext
35555if { (ac_try="$ac_link"
35556case "(($ac_try" in
35557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35558 *) ac_try_echo=$ac_try;;
35559esac
35560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35561$as_echo "$ac_try_echo") >&5
35562 (eval "$ac_link") 2>conftest.er1
35563 ac_status=$?
35564 grep -v '^ *+' conftest.er1 >conftest.err
35565 rm -f conftest.er1
35566 cat conftest.err >&5
35567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } && {
35569 test -z "$ac_c_werror_flag" ||
35570 test ! -s conftest.err
35571 } && test -s conftest$ac_exeext && {
35572 test "$cross_compiling" = yes ||
35573 $as_test_x conftest$ac_exeext
35574 }; then
35575 have_shmctl='yes'; IPC_LIBS='-lcygipc'
35576else
35577 $as_echo "$as_me: failed program was:" >&5
35578sed 's/^/| /' conftest.$ac_ext >&5
35579
35580
35581fi
35582
35583rm -rf conftest.dSYM
35584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35585 conftest$ac_exeext conftest.$ac_ext
35586 LIBS=$PERSIST_LIBS
35587 fi
35588
35589 if test "$have_shmctl" = 'yes'; then
35590 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35591$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35592if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35593 $as_echo_n "(cached) " >&6
35594else
35595 ac_check_lib_save_LIBS=$LIBS
35596LIBS="-lXext $LIBS"
35597cat >conftest.$ac_ext <<_ACEOF
35598/* confdefs.h. */
35599_ACEOF
35600cat confdefs.h >>conftest.$ac_ext
35601cat >>conftest.$ac_ext <<_ACEOF
35602/* end confdefs.h. */
35603
35604/* Override any GCC internal prototype to avoid an error.
35605 Use char because int might match the return type of a GCC
35606 builtin and then its argument prototype would still apply. */
35607#ifdef __cplusplus
35608extern "C"
35609#endif
35610char XShmAttach ();
35611int
35612main ()
35613{
35614return XShmAttach ();
35615 ;
35616 return 0;
35617}
35618_ACEOF
35619rm -f conftest.$ac_objext conftest$ac_exeext
35620if { (ac_try="$ac_link"
35621case "(($ac_try" in
35622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35623 *) ac_try_echo=$ac_try;;
35624esac
35625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35626$as_echo "$ac_try_echo") >&5
35627 (eval "$ac_link") 2>conftest.er1
35628 ac_status=$?
35629 grep -v '^ *+' conftest.er1 >conftest.err
35630 rm -f conftest.er1
35631 cat conftest.err >&5
35632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); } && {
35634 test -z "$ac_c_werror_flag" ||
35635 test ! -s conftest.err
35636 } && test -s conftest$ac_exeext && {
35637 test "$cross_compiling" = yes ||
35638 $as_test_x conftest$ac_exeext
35639 }; then
35640 ac_cv_lib_Xext_XShmAttach=yes
35641else
35642 $as_echo "$as_me: failed program was:" >&5
35643sed 's/^/| /' conftest.$ac_ext >&5
35644
35645 ac_cv_lib_Xext_XShmAttach=no
35646fi
35647
35648rm -rf conftest.dSYM
35649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35650 conftest$ac_exeext conftest.$ac_ext
35651LIBS=$ac_check_lib_save_LIBS
35652fi
35653{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35654$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35655if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35656 XEXT_LIBS='-lXext' ;
35657cat >>confdefs.h <<\_ACEOF
35658#define HAVE_SHARED_MEMORY 1
35659_ACEOF
35660
35661fi
35662
35663 fi
35664
35665 #
35666 # Check for X11 shape extension
35667 #
35668 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35669$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35670if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35671 $as_echo_n "(cached) " >&6
35672else
35673 ac_check_lib_save_LIBS=$LIBS
35674LIBS="-lXext $LIBS"
35675cat >conftest.$ac_ext <<_ACEOF
35676/* confdefs.h. */
35677_ACEOF
35678cat confdefs.h >>conftest.$ac_ext
35679cat >>conftest.$ac_ext <<_ACEOF
35680/* end confdefs.h. */
35681
35682/* Override any GCC internal prototype to avoid an error.
35683 Use char because int might match the return type of a GCC
35684 builtin and then its argument prototype would still apply. */
35685#ifdef __cplusplus
35686extern "C"
35687#endif
35688char XShapeCombineMask ();
35689int
35690main ()
35691{
35692return XShapeCombineMask ();
35693 ;
35694 return 0;
35695}
35696_ACEOF
35697rm -f conftest.$ac_objext conftest$ac_exeext
35698if { (ac_try="$ac_link"
35699case "(($ac_try" in
35700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35701 *) ac_try_echo=$ac_try;;
35702esac
35703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35704$as_echo "$ac_try_echo") >&5
35705 (eval "$ac_link") 2>conftest.er1
35706 ac_status=$?
35707 grep -v '^ *+' conftest.er1 >conftest.err
35708 rm -f conftest.er1
35709 cat conftest.err >&5
35710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); } && {
35712 test -z "$ac_c_werror_flag" ||
35713 test ! -s conftest.err
35714 } && test -s conftest$ac_exeext && {
35715 test "$cross_compiling" = yes ||
35716 $as_test_x conftest$ac_exeext
35717 }; then
35718 ac_cv_lib_Xext_XShapeCombineMask=yes
35719else
35720 $as_echo "$as_me: failed program was:" >&5
35721sed 's/^/| /' conftest.$ac_ext >&5
35722
35723 ac_cv_lib_Xext_XShapeCombineMask=no
35724fi
35725
35726rm -rf conftest.dSYM
35727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35728 conftest$ac_exeext conftest.$ac_ext
35729LIBS=$ac_check_lib_save_LIBS
35730fi
35731{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35732$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35733if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35734 XEXT_LIBS='-lXext' ;
35735cat >>confdefs.h <<\_ACEOF
35736#define HAVE_SHAPE 1
35737_ACEOF
35738
35739fi
35740
35741 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35742$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35743if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
35744 $as_echo_n "(cached) " >&6
35745else
35746 ac_check_lib_save_LIBS=$LIBS
35747LIBS="-lXt $LIBS"
35748cat >conftest.$ac_ext <<_ACEOF
35749/* confdefs.h. */
35750_ACEOF
35751cat confdefs.h >>conftest.$ac_ext
35752cat >>conftest.$ac_ext <<_ACEOF
35753/* end confdefs.h. */
35754
35755/* Override any GCC internal prototype to avoid an error.
35756 Use char because int might match the return type of a GCC
35757 builtin and then its argument prototype would still apply. */
35758#ifdef __cplusplus
35759extern "C"
35760#endif
35761char XtSetEventDispatcher ();
35762int
35763main ()
35764{
35765return XtSetEventDispatcher ();
35766 ;
35767 return 0;
35768}
35769_ACEOF
35770rm -f conftest.$ac_objext conftest$ac_exeext
35771if { (ac_try="$ac_link"
35772case "(($ac_try" in
35773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35774 *) ac_try_echo=$ac_try;;
35775esac
35776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35777$as_echo "$ac_try_echo") >&5
35778 (eval "$ac_link") 2>conftest.er1
35779 ac_status=$?
35780 grep -v '^ *+' conftest.er1 >conftest.err
35781 rm -f conftest.er1
35782 cat conftest.err >&5
35783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 (exit $ac_status); } && {
35785 test -z "$ac_c_werror_flag" ||
35786 test ! -s conftest.err
35787 } && test -s conftest$ac_exeext && {
35788 test "$cross_compiling" = yes ||
35789 $as_test_x conftest$ac_exeext
35790 }; then
35791 ac_cv_lib_Xt_XtSetEventDispatcher=yes
35792else
35793 $as_echo "$as_me: failed program was:" >&5
35794sed 's/^/| /' conftest.$ac_ext >&5
35795
35796 ac_cv_lib_Xt_XtSetEventDispatcher=no
35797fi
35798
35799rm -rf conftest.dSYM
35800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35801 conftest$ac_exeext conftest.$ac_ext
35802LIBS=$ac_check_lib_save_LIBS
35803fi
35804{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
35805$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
35806if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
35807 XT_LIBS='-lXt'
35808fi
35809
35810 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
35811fi
35812if test "$no_x" != 'yes'; then
35813 have_x='yes'
35814else
35815 have_x='no'
35816fi
35817 if test "$have_x" = 'yes'; then
35818 X11_DELEGATE_TRUE=
35819 X11_DELEGATE_FALSE='#'
35820else
35821 X11_DELEGATE_TRUE='#'
35822 X11_DELEGATE_FALSE=
35823fi
35824
35825
35826
35827
35828
35829#
35830# Check for ZLIB
35831#
35832
35833# Check whether --with-zlib was given.
35834if test "${with_zlib+set}" = set; then
35835 withval=$with_zlib; with_zlib=$withval
35836else
35837 with_zlib='yes'
35838fi
35839
35840
35841if test "$with_zlib" != 'yes'; then
35842 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
35843fi
35844
35845have_zlib='no'
35846ZLIB_LIBS=''
35847if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
35848 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35849$as_echo "-------------------------------------------------------------" >&6; }
35850 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
35851$as_echo_n "checking for ZLIB... " >&6; }
35852 { $as_echo "$as_me:$LINENO: result: " >&5
35853$as_echo "" >&6; }
35854 ZLIB_LIBS=''
35855 failed=0
35856 passed=0
35857 if test "${ac_cv_header_zconf_h+set}" = set; then
35858 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
35859$as_echo_n "checking for zconf.h... " >&6; }
35860if test "${ac_cv_header_zconf_h+set}" = set; then
35861 $as_echo_n "(cached) " >&6
35862fi
35863{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
35864$as_echo "$ac_cv_header_zconf_h" >&6; }
35865else
35866 # Is the header compilable?
35867{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
35868$as_echo_n "checking zconf.h usability... " >&6; }
35869cat >conftest.$ac_ext <<_ACEOF
35870/* confdefs.h. */
35871_ACEOF
35872cat confdefs.h >>conftest.$ac_ext
35873cat >>conftest.$ac_ext <<_ACEOF
35874/* end confdefs.h. */
35875$ac_includes_default
35876#include <zconf.h>
35877_ACEOF
35878rm -f conftest.$ac_objext
35879if { (ac_try="$ac_compile"
35880case "(($ac_try" in
35881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882 *) ac_try_echo=$ac_try;;
35883esac
35884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35885$as_echo "$ac_try_echo") >&5
35886 (eval "$ac_compile") 2>conftest.er1
35887 ac_status=$?
35888 grep -v '^ *+' conftest.er1 >conftest.err
35889 rm -f conftest.er1
35890 cat conftest.err >&5
35891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); } && {
35893 test -z "$ac_c_werror_flag" ||
35894 test ! -s conftest.err
35895 } && test -s conftest.$ac_objext; then
35896 ac_header_compiler=yes
35897else
35898 $as_echo "$as_me: failed program was:" >&5
35899sed 's/^/| /' conftest.$ac_ext >&5
35900
35901 ac_header_compiler=no
35902fi
35903
35904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35905{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35906$as_echo "$ac_header_compiler" >&6; }
35907
35908# Is the header present?
35909{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
35910$as_echo_n "checking zconf.h presence... " >&6; }
35911cat >conftest.$ac_ext <<_ACEOF
35912/* confdefs.h. */
35913_ACEOF
35914cat confdefs.h >>conftest.$ac_ext
35915cat >>conftest.$ac_ext <<_ACEOF
35916/* end confdefs.h. */
35917#include <zconf.h>
35918_ACEOF
35919if { (ac_try="$ac_cpp conftest.$ac_ext"
35920case "(($ac_try" in
35921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35922 *) ac_try_echo=$ac_try;;
35923esac
35924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35925$as_echo "$ac_try_echo") >&5
35926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35927 ac_status=$?
35928 grep -v '^ *+' conftest.er1 >conftest.err
35929 rm -f conftest.er1
35930 cat conftest.err >&5
35931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); } >/dev/null && {
35933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35934 test ! -s conftest.err
35935 }; then
35936 ac_header_preproc=yes
35937else
35938 $as_echo "$as_me: failed program was:" >&5
35939sed 's/^/| /' conftest.$ac_ext >&5
35940
35941 ac_header_preproc=no
35942fi
35943
35944rm -f conftest.err conftest.$ac_ext
35945{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35946$as_echo "$ac_header_preproc" >&6; }
35947
35948# So? What about this header?
35949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35950 yes:no: )
35951 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
35952$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35953 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
35954$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
35955 ac_header_preproc=yes
35956 ;;
35957 no:yes:* )
35958 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
35959$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
35960 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
35961$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
35962 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
35963$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
35964 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
35965$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
35966 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
35967$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
35968 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
35969$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
35970 ( cat <<\_ASBOX
35971## ----------------------------------------- ##
35972## Report this to http://www.imagemagick.org ##
35973## ----------------------------------------- ##
35974_ASBOX
35975 ) | sed "s/^/$as_me: WARNING: /" >&2
35976 ;;
35977esac
35978{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
35979$as_echo_n "checking for zconf.h... " >&6; }
35980if test "${ac_cv_header_zconf_h+set}" = set; then
35981 $as_echo_n "(cached) " >&6
35982else
35983 ac_cv_header_zconf_h=$ac_header_preproc
35984fi
35985{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
35986$as_echo "$ac_cv_header_zconf_h" >&6; }
35987
35988fi
35989if test "x$ac_cv_header_zconf_h" = x""yes; then
35990 passed=`expr $passed + 1`
35991else
35992 failed=`expr $failed + 1`
35993fi
35994
35995
35996 if test "${ac_cv_header_zlib_h+set}" = set; then
35997 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
35998$as_echo_n "checking for zlib.h... " >&6; }
35999if test "${ac_cv_header_zlib_h+set}" = set; then
36000 $as_echo_n "(cached) " >&6
36001fi
36002{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36003$as_echo "$ac_cv_header_zlib_h" >&6; }
36004else
36005 # Is the header compilable?
36006{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
36007$as_echo_n "checking zlib.h usability... " >&6; }
36008cat >conftest.$ac_ext <<_ACEOF
36009/* confdefs.h. */
36010_ACEOF
36011cat confdefs.h >>conftest.$ac_ext
36012cat >>conftest.$ac_ext <<_ACEOF
36013/* end confdefs.h. */
36014$ac_includes_default
36015#include <zlib.h>
36016_ACEOF
36017rm -f conftest.$ac_objext
36018if { (ac_try="$ac_compile"
36019case "(($ac_try" in
36020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36021 *) ac_try_echo=$ac_try;;
36022esac
36023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36024$as_echo "$ac_try_echo") >&5
36025 (eval "$ac_compile") 2>conftest.er1
36026 ac_status=$?
36027 grep -v '^ *+' conftest.er1 >conftest.err
36028 rm -f conftest.er1
36029 cat conftest.err >&5
36030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031 (exit $ac_status); } && {
36032 test -z "$ac_c_werror_flag" ||
36033 test ! -s conftest.err
36034 } && test -s conftest.$ac_objext; then
36035 ac_header_compiler=yes
36036else
36037 $as_echo "$as_me: failed program was:" >&5
36038sed 's/^/| /' conftest.$ac_ext >&5
36039
36040 ac_header_compiler=no
36041fi
36042
36043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36044{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36045$as_echo "$ac_header_compiler" >&6; }
36046
36047# Is the header present?
36048{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
36049$as_echo_n "checking zlib.h presence... " >&6; }
36050cat >conftest.$ac_ext <<_ACEOF
36051/* confdefs.h. */
36052_ACEOF
36053cat confdefs.h >>conftest.$ac_ext
36054cat >>conftest.$ac_ext <<_ACEOF
36055/* end confdefs.h. */
36056#include <zlib.h>
36057_ACEOF
36058if { (ac_try="$ac_cpp conftest.$ac_ext"
36059case "(($ac_try" in
36060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36061 *) ac_try_echo=$ac_try;;
36062esac
36063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36064$as_echo "$ac_try_echo") >&5
36065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36066 ac_status=$?
36067 grep -v '^ *+' conftest.er1 >conftest.err
36068 rm -f conftest.er1
36069 cat conftest.err >&5
36070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); } >/dev/null && {
36072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36073 test ! -s conftest.err
36074 }; then
36075 ac_header_preproc=yes
36076else
36077 $as_echo "$as_me: failed program was:" >&5
36078sed 's/^/| /' conftest.$ac_ext >&5
36079
36080 ac_header_preproc=no
36081fi
36082
36083rm -f conftest.err conftest.$ac_ext
36084{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36085$as_echo "$ac_header_preproc" >&6; }
36086
36087# So? What about this header?
36088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36089 yes:no: )
36090 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36091$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36092 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36093$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36094 ac_header_preproc=yes
36095 ;;
36096 no:yes:* )
36097 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36098$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36099 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36100$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36101 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36102$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36103 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36104$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36105 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36106$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36107 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36108$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36109 ( cat <<\_ASBOX
36110## ----------------------------------------- ##
36111## Report this to http://www.imagemagick.org ##
36112## ----------------------------------------- ##
36113_ASBOX
36114 ) | sed "s/^/$as_me: WARNING: /" >&2
36115 ;;
36116esac
36117{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36118$as_echo_n "checking for zlib.h... " >&6; }
36119if test "${ac_cv_header_zlib_h+set}" = set; then
36120 $as_echo_n "(cached) " >&6
36121else
36122 ac_cv_header_zlib_h=$ac_header_preproc
36123fi
36124{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36125$as_echo "$ac_cv_header_zlib_h" >&6; }
36126
36127fi
36128if test "x$ac_cv_header_zlib_h" = x""yes; then
36129 passed=`expr $passed + 1`
36130else
36131 failed=`expr $failed + 1`
36132fi
36133
36134
36135 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
36136$as_echo_n "checking for compress in -lz... " >&6; }
36137if test "${ac_cv_lib_z_compress+set}" = set; then
36138 $as_echo_n "(cached) " >&6
36139else
36140 ac_check_lib_save_LIBS=$LIBS
36141LIBS="-lz $LIBS"
36142cat >conftest.$ac_ext <<_ACEOF
36143/* confdefs.h. */
36144_ACEOF
36145cat confdefs.h >>conftest.$ac_ext
36146cat >>conftest.$ac_ext <<_ACEOF
36147/* end confdefs.h. */
36148
36149/* Override any GCC internal prototype to avoid an error.
36150 Use char because int might match the return type of a GCC
36151 builtin and then its argument prototype would still apply. */
36152#ifdef __cplusplus
36153extern "C"
36154#endif
36155char compress ();
36156int
36157main ()
36158{
36159return compress ();
36160 ;
36161 return 0;
36162}
36163_ACEOF
36164rm -f conftest.$ac_objext conftest$ac_exeext
36165if { (ac_try="$ac_link"
36166case "(($ac_try" in
36167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36168 *) ac_try_echo=$ac_try;;
36169esac
36170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36171$as_echo "$ac_try_echo") >&5
36172 (eval "$ac_link") 2>conftest.er1
36173 ac_status=$?
36174 grep -v '^ *+' conftest.er1 >conftest.err
36175 rm -f conftest.er1
36176 cat conftest.err >&5
36177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); } && {
36179 test -z "$ac_c_werror_flag" ||
36180 test ! -s conftest.err
36181 } && test -s conftest$ac_exeext && {
36182 test "$cross_compiling" = yes ||
36183 $as_test_x conftest$ac_exeext
36184 }; then
36185 ac_cv_lib_z_compress=yes
36186else
36187 $as_echo "$as_me: failed program was:" >&5
36188sed 's/^/| /' conftest.$ac_ext >&5
36189
36190 ac_cv_lib_z_compress=no
36191fi
36192
36193rm -rf conftest.dSYM
36194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36195 conftest$ac_exeext conftest.$ac_ext
36196LIBS=$ac_check_lib_save_LIBS
36197fi
36198{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
36199$as_echo "$ac_cv_lib_z_compress" >&6; }
36200if test "x$ac_cv_lib_z_compress" = x""yes; then
36201 passed=`expr $passed + 1`
36202else
36203 failed=`expr $failed + 1`
36204fi
36205
36206 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
36207$as_echo_n "checking for uncompress in -lz... " >&6; }
36208if test "${ac_cv_lib_z_uncompress+set}" = set; then
36209 $as_echo_n "(cached) " >&6
36210else
36211 ac_check_lib_save_LIBS=$LIBS
36212LIBS="-lz $LIBS"
36213cat >conftest.$ac_ext <<_ACEOF
36214/* confdefs.h. */
36215_ACEOF
36216cat confdefs.h >>conftest.$ac_ext
36217cat >>conftest.$ac_ext <<_ACEOF
36218/* end confdefs.h. */
36219
36220/* Override any GCC internal prototype to avoid an error.
36221 Use char because int might match the return type of a GCC
36222 builtin and then its argument prototype would still apply. */
36223#ifdef __cplusplus
36224extern "C"
36225#endif
36226char uncompress ();
36227int
36228main ()
36229{
36230return uncompress ();
36231 ;
36232 return 0;
36233}
36234_ACEOF
36235rm -f conftest.$ac_objext conftest$ac_exeext
36236if { (ac_try="$ac_link"
36237case "(($ac_try" in
36238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239 *) ac_try_echo=$ac_try;;
36240esac
36241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36242$as_echo "$ac_try_echo") >&5
36243 (eval "$ac_link") 2>conftest.er1
36244 ac_status=$?
36245 grep -v '^ *+' conftest.er1 >conftest.err
36246 rm -f conftest.er1
36247 cat conftest.err >&5
36248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); } && {
36250 test -z "$ac_c_werror_flag" ||
36251 test ! -s conftest.err
36252 } && test -s conftest$ac_exeext && {
36253 test "$cross_compiling" = yes ||
36254 $as_test_x conftest$ac_exeext
36255 }; then
36256 ac_cv_lib_z_uncompress=yes
36257else
36258 $as_echo "$as_me: failed program was:" >&5
36259sed 's/^/| /' conftest.$ac_ext >&5
36260
36261 ac_cv_lib_z_uncompress=no
36262fi
36263
36264rm -rf conftest.dSYM
36265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36266 conftest$ac_exeext conftest.$ac_ext
36267LIBS=$ac_check_lib_save_LIBS
36268fi
36269{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
36270$as_echo "$ac_cv_lib_z_uncompress" >&6; }
36271if test "x$ac_cv_lib_z_uncompress" = x""yes; then
36272 passed=`expr $passed + 1`
36273else
36274 failed=`expr $failed + 1`
36275fi
36276
36277 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
36278$as_echo_n "checking for deflate in -lz... " >&6; }
36279if test "${ac_cv_lib_z_deflate+set}" = set; then
36280 $as_echo_n "(cached) " >&6
36281else
36282 ac_check_lib_save_LIBS=$LIBS
36283LIBS="-lz $LIBS"
36284cat >conftest.$ac_ext <<_ACEOF
36285/* confdefs.h. */
36286_ACEOF
36287cat confdefs.h >>conftest.$ac_ext
36288cat >>conftest.$ac_ext <<_ACEOF
36289/* end confdefs.h. */
36290
36291/* Override any GCC internal prototype to avoid an error.
36292 Use char because int might match the return type of a GCC
36293 builtin and then its argument prototype would still apply. */
36294#ifdef __cplusplus
36295extern "C"
36296#endif
36297char deflate ();
36298int
36299main ()
36300{
36301return deflate ();
36302 ;
36303 return 0;
36304}
36305_ACEOF
36306rm -f conftest.$ac_objext conftest$ac_exeext
36307if { (ac_try="$ac_link"
36308case "(($ac_try" in
36309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36310 *) ac_try_echo=$ac_try;;
36311esac
36312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36313$as_echo "$ac_try_echo") >&5
36314 (eval "$ac_link") 2>conftest.er1
36315 ac_status=$?
36316 grep -v '^ *+' conftest.er1 >conftest.err
36317 rm -f conftest.er1
36318 cat conftest.err >&5
36319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); } && {
36321 test -z "$ac_c_werror_flag" ||
36322 test ! -s conftest.err
36323 } && test -s conftest$ac_exeext && {
36324 test "$cross_compiling" = yes ||
36325 $as_test_x conftest$ac_exeext
36326 }; then
36327 ac_cv_lib_z_deflate=yes
36328else
36329 $as_echo "$as_me: failed program was:" >&5
36330sed 's/^/| /' conftest.$ac_ext >&5
36331
36332 ac_cv_lib_z_deflate=no
36333fi
36334
36335rm -rf conftest.dSYM
36336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36337 conftest$ac_exeext conftest.$ac_ext
36338LIBS=$ac_check_lib_save_LIBS
36339fi
36340{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
36341$as_echo "$ac_cv_lib_z_deflate" >&6; }
36342if test "x$ac_cv_lib_z_deflate" = x""yes; then
36343 passed=`expr $passed + 1`
36344else
36345 failed=`expr $failed + 1`
36346fi
36347
36348 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
36349$as_echo_n "checking for inflate in -lz... " >&6; }
36350if test "${ac_cv_lib_z_inflate+set}" = set; then
36351 $as_echo_n "(cached) " >&6
36352else
36353 ac_check_lib_save_LIBS=$LIBS
36354LIBS="-lz $LIBS"
36355cat >conftest.$ac_ext <<_ACEOF
36356/* confdefs.h. */
36357_ACEOF
36358cat confdefs.h >>conftest.$ac_ext
36359cat >>conftest.$ac_ext <<_ACEOF
36360/* end confdefs.h. */
36361
36362/* Override any GCC internal prototype to avoid an error.
36363 Use char because int might match the return type of a GCC
36364 builtin and then its argument prototype would still apply. */
36365#ifdef __cplusplus
36366extern "C"
36367#endif
36368char inflate ();
36369int
36370main ()
36371{
36372return inflate ();
36373 ;
36374 return 0;
36375}
36376_ACEOF
36377rm -f conftest.$ac_objext conftest$ac_exeext
36378if { (ac_try="$ac_link"
36379case "(($ac_try" in
36380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36381 *) ac_try_echo=$ac_try;;
36382esac
36383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36384$as_echo "$ac_try_echo") >&5
36385 (eval "$ac_link") 2>conftest.er1
36386 ac_status=$?
36387 grep -v '^ *+' conftest.er1 >conftest.err
36388 rm -f conftest.er1
36389 cat conftest.err >&5
36390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); } && {
36392 test -z "$ac_c_werror_flag" ||
36393 test ! -s conftest.err
36394 } && test -s conftest$ac_exeext && {
36395 test "$cross_compiling" = yes ||
36396 $as_test_x conftest$ac_exeext
36397 }; then
36398 ac_cv_lib_z_inflate=yes
36399else
36400 $as_echo "$as_me: failed program was:" >&5
36401sed 's/^/| /' conftest.$ac_ext >&5
36402
36403 ac_cv_lib_z_inflate=no
36404fi
36405
36406rm -rf conftest.dSYM
36407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36408 conftest$ac_exeext conftest.$ac_ext
36409LIBS=$ac_check_lib_save_LIBS
36410fi
36411{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
36412$as_echo "$ac_cv_lib_z_inflate" >&6; }
36413if test "x$ac_cv_lib_z_inflate" = x""yes; then
36414 passed=`expr $passed + 1`
36415else
36416 failed=`expr $failed + 1`
36417fi
36418
36419 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
36420$as_echo_n "checking for gzseek in -lz... " >&6; }
36421if test "${ac_cv_lib_z_gzseek+set}" = set; then
36422 $as_echo_n "(cached) " >&6
36423else
36424 ac_check_lib_save_LIBS=$LIBS
36425LIBS="-lz $LIBS"
36426cat >conftest.$ac_ext <<_ACEOF
36427/* confdefs.h. */
36428_ACEOF
36429cat confdefs.h >>conftest.$ac_ext
36430cat >>conftest.$ac_ext <<_ACEOF
36431/* end confdefs.h. */
36432
36433/* Override any GCC internal prototype to avoid an error.
36434 Use char because int might match the return type of a GCC
36435 builtin and then its argument prototype would still apply. */
36436#ifdef __cplusplus
36437extern "C"
36438#endif
36439char gzseek ();
36440int
36441main ()
36442{
36443return gzseek ();
36444 ;
36445 return 0;
36446}
36447_ACEOF
36448rm -f conftest.$ac_objext conftest$ac_exeext
36449if { (ac_try="$ac_link"
36450case "(($ac_try" in
36451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452 *) ac_try_echo=$ac_try;;
36453esac
36454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36455$as_echo "$ac_try_echo") >&5
36456 (eval "$ac_link") 2>conftest.er1
36457 ac_status=$?
36458 grep -v '^ *+' conftest.er1 >conftest.err
36459 rm -f conftest.er1
36460 cat conftest.err >&5
36461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); } && {
36463 test -z "$ac_c_werror_flag" ||
36464 test ! -s conftest.err
36465 } && test -s conftest$ac_exeext && {
36466 test "$cross_compiling" = yes ||
36467 $as_test_x conftest$ac_exeext
36468 }; then
36469 ac_cv_lib_z_gzseek=yes
36470else
36471 $as_echo "$as_me: failed program was:" >&5
36472sed 's/^/| /' conftest.$ac_ext >&5
36473
36474 ac_cv_lib_z_gzseek=no
36475fi
36476
36477rm -rf conftest.dSYM
36478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36479 conftest$ac_exeext conftest.$ac_ext
36480LIBS=$ac_check_lib_save_LIBS
36481fi
36482{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
36483$as_echo "$ac_cv_lib_z_gzseek" >&6; }
36484if test "x$ac_cv_lib_z_gzseek" = x""yes; then
36485 passed=`expr $passed + 1`
36486else
36487 failed=`expr $failed + 1`
36488fi
36489
36490 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
36491$as_echo_n "checking for gztell in -lz... " >&6; }
36492if test "${ac_cv_lib_z_gztell+set}" = set; then
36493 $as_echo_n "(cached) " >&6
36494else
36495 ac_check_lib_save_LIBS=$LIBS
36496LIBS="-lz $LIBS"
36497cat >conftest.$ac_ext <<_ACEOF
36498/* confdefs.h. */
36499_ACEOF
36500cat confdefs.h >>conftest.$ac_ext
36501cat >>conftest.$ac_ext <<_ACEOF
36502/* end confdefs.h. */
36503
36504/* Override any GCC internal prototype to avoid an error.
36505 Use char because int might match the return type of a GCC
36506 builtin and then its argument prototype would still apply. */
36507#ifdef __cplusplus
36508extern "C"
36509#endif
36510char gztell ();
36511int
36512main ()
36513{
36514return gztell ();
36515 ;
36516 return 0;
36517}
36518_ACEOF
36519rm -f conftest.$ac_objext conftest$ac_exeext
36520if { (ac_try="$ac_link"
36521case "(($ac_try" in
36522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36523 *) ac_try_echo=$ac_try;;
36524esac
36525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36526$as_echo "$ac_try_echo") >&5
36527 (eval "$ac_link") 2>conftest.er1
36528 ac_status=$?
36529 grep -v '^ *+' conftest.er1 >conftest.err
36530 rm -f conftest.er1
36531 cat conftest.err >&5
36532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } && {
36534 test -z "$ac_c_werror_flag" ||
36535 test ! -s conftest.err
36536 } && test -s conftest$ac_exeext && {
36537 test "$cross_compiling" = yes ||
36538 $as_test_x conftest$ac_exeext
36539 }; then
36540 ac_cv_lib_z_gztell=yes
36541else
36542 $as_echo "$as_me: failed program was:" >&5
36543sed 's/^/| /' conftest.$ac_ext >&5
36544
36545 ac_cv_lib_z_gztell=no
36546fi
36547
36548rm -rf conftest.dSYM
36549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36550 conftest$ac_exeext conftest.$ac_ext
36551LIBS=$ac_check_lib_save_LIBS
36552fi
36553{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
36554$as_echo "$ac_cv_lib_z_gztell" >&6; }
36555if test "x$ac_cv_lib_z_gztell" = x""yes; then
36556 passed=`expr $passed + 1`
36557else
36558 failed=`expr $failed + 1`
36559fi
36560
36561 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
36562$as_echo_n "checking if ZLIB package is complete... " >&6; }
36563 if test $passed -gt 0; then
36564 if test $failed -gt 0; then
36565 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36566$as_echo "no -- some components failed test" >&6; }
36567 have_zlib='no (failed tests)'
36568 else
36569 ZLIB_LIBS='-lz'
36570 LIBS="$ZLIB_LIBS $LIBS"
36571
36572cat >>confdefs.h <<\_ACEOF
36573#define ZLIB_DELEGATE 1
36574_ACEOF
36575
36576 { $as_echo "$as_me:$LINENO: result: yes" >&5
36577$as_echo "yes" >&6; }
36578 have_zlib='yes'
36579 fi
36580 else
36581 { $as_echo "$as_me:$LINENO: result: no" >&5
36582$as_echo "no" >&6; }
36583 fi
36584fi
36585 if test "$have_zlib" = 'yes'; then
36586 ZLIB_DELEGATE_TRUE=
36587 ZLIB_DELEGATE_FALSE='#'
36588else
36589 ZLIB_DELEGATE_TRUE='#'
36590 ZLIB_DELEGATE_FALSE=
36591fi
36592
36593
36594
36595#
36596# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36597#
36598LIB_DL=''
36599if test "$enable_profiling" = 'yes'; then
36600 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36601$as_echo_n "checking for dlopen in -ldl... " >&6; }
36602if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36603 $as_echo_n "(cached) " >&6
36604else
36605 ac_check_lib_save_LIBS=$LIBS
36606LIBS="-ldl $LIBS"
36607cat >conftest.$ac_ext <<_ACEOF
36608/* confdefs.h. */
36609_ACEOF
36610cat confdefs.h >>conftest.$ac_ext
36611cat >>conftest.$ac_ext <<_ACEOF
36612/* end confdefs.h. */
36613
36614/* Override any GCC internal prototype to avoid an error.
36615 Use char because int might match the return type of a GCC
36616 builtin and then its argument prototype would still apply. */
36617#ifdef __cplusplus
36618extern "C"
36619#endif
36620char dlopen ();
36621int
36622main ()
36623{
36624return dlopen ();
36625 ;
36626 return 0;
36627}
36628_ACEOF
36629rm -f conftest.$ac_objext conftest$ac_exeext
36630if { (ac_try="$ac_link"
36631case "(($ac_try" in
36632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36633 *) ac_try_echo=$ac_try;;
36634esac
36635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36636$as_echo "$ac_try_echo") >&5
36637 (eval "$ac_link") 2>conftest.er1
36638 ac_status=$?
36639 grep -v '^ *+' conftest.er1 >conftest.err
36640 rm -f conftest.er1
36641 cat conftest.err >&5
36642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); } && {
36644 test -z "$ac_c_werror_flag" ||
36645 test ! -s conftest.err
36646 } && test -s conftest$ac_exeext && {
36647 test "$cross_compiling" = yes ||
36648 $as_test_x conftest$ac_exeext
36649 }; then
36650 ac_cv_lib_dl_dlopen=yes
36651else
36652 $as_echo "$as_me: failed program was:" >&5
36653sed 's/^/| /' conftest.$ac_ext >&5
36654
36655 ac_cv_lib_dl_dlopen=no
36656fi
36657
36658rm -rf conftest.dSYM
36659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36660 conftest$ac_exeext conftest.$ac_ext
36661LIBS=$ac_check_lib_save_LIBS
36662fi
36663{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36664$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36665if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36666 LIB_DL='-ldl'
36667fi
36668
36669 LIBS="$LIB_DL $LIBS"
36670fi
36671
36672
36673
36674#
36675# Check for Autotrace delegate library.
36676#
36677
36678# Check whether --with-autotrace was given.
36679if test "${with_autotrace+set}" = set; then
36680 withval=$with_autotrace; with_autotrace=$withval
36681else
36682 with_autotrace='no'
36683fi
36684
36685
36686if test "$with_autotrace" != 'yes'; then
36687 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36688fi
36689
36690have_autotrace='no'
36691AUTOTRACE_CFLAGS=""
36692AUTOTRACE_LIBS=""
36693AUTOTRACE_PKG=""
36694if test "x$with_autotrace" = "xyes"; then
36695 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36696$as_echo "-------------------------------------------------------------" >&6; }
36697
36698pkg_failed=no
36699{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36700$as_echo_n "checking for AUTOTRACE... " >&6; }
36701
36702if test -n "$AUTOTRACE_CFLAGS"; then
36703 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36704 elif test -n "$PKG_CONFIG"; then
36705 if test -n "$PKG_CONFIG" && \
36706 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36707 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36708 ac_status=$?
36709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; then
36711 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36712else
36713 pkg_failed=yes
36714fi
36715 else
36716 pkg_failed=untried
36717fi
36718if test -n "$AUTOTRACE_LIBS"; then
36719 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36720 elif test -n "$PKG_CONFIG"; then
36721 if test -n "$PKG_CONFIG" && \
36722 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36723 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36724 ac_status=$?
36725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726 (exit $ac_status); }; then
36727 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36728else
36729 pkg_failed=yes
36730fi
36731 else
36732 pkg_failed=untried
36733fi
36734
36735
36736
36737if test $pkg_failed = yes; then
36738
36739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36740 _pkg_short_errors_supported=yes
36741else
36742 _pkg_short_errors_supported=no
36743fi
36744 if test $_pkg_short_errors_supported = yes; then
36745 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
36746 else
36747 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
36748 fi
36749 # Put the nasty error message in config.log where it belongs
36750 echo "$AUTOTRACE_PKG_ERRORS" >&5
36751
36752 { $as_echo "$as_me:$LINENO: result: no" >&5
36753$as_echo "no" >&6; }
36754 have_autotrace=no
36755elif test $pkg_failed = untried; then
36756 have_autotrace=no
36757else
36758 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
36759 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
36760 { $as_echo "$as_me:$LINENO: result: yes" >&5
36761$as_echo "yes" >&6; }
36762 have_autotrace=yes
36763fi
36764 { $as_echo "$as_me:$LINENO: result: " >&5
36765$as_echo "" >&6; }
36766fi
36767
36768if test "$have_autotrace" = 'yes'; then
36769 failed=0
36770
36771cat >>confdefs.h <<\_ACEOF
36772#define AUTOTRACE_DELEGATE 1
36773_ACEOF
36774
36775 if test "$with_modules" = 'no'; then
36776 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
36777 fi
36778fi
36779
36780 if test "$have_autotrace" = 'yes'; then
36781 AUTOTRACE_DELEGATE_TRUE=
36782 AUTOTRACE_DELEGATE_FALSE='#'
36783else
36784 AUTOTRACE_DELEGATE_TRUE='#'
36785 AUTOTRACE_DELEGATE_FALSE=
36786fi
36787
36788
36789
36790
36791
36792#
36793# Check for Display Postscript delegate library.
36794#
36795
36796# Check whether --with-dps was given.
36797if test "${with_dps+set}" = set; then
36798 withval=$with_dps; with_dps=$withval
36799else
36800 with_dps='yes'
36801fi
36802
36803
36804if test "$with_dps" != 'yes'; then
36805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
36806fi
36807
36808have_dps='no'
36809DPS_LIBS=''
36810if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
36811 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36812$as_echo "-------------------------------------------------------------" >&6; }
36813 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
36814$as_echo_n "checking for DPS... " >&6; }
36815 { $as_echo "$as_me:$LINENO: result: " >&5
36816$as_echo "" >&6; }
36817 failed=0
36818 passed=0
36819 PERSIST_CPPFLAGS="$CPPFLAGS"
36820 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
36821 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36822 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
36823$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
36824if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36825 $as_echo_n "(cached) " >&6
36826fi
36827{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
36828$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
36829else
36830 # Is the header compilable?
36831{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
36832$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
36833cat >conftest.$ac_ext <<_ACEOF
36834/* confdefs.h. */
36835_ACEOF
36836cat confdefs.h >>conftest.$ac_ext
36837cat >>conftest.$ac_ext <<_ACEOF
36838/* end confdefs.h. */
36839$ac_includes_default
36840#include <DPS/dpsXclient.h>
36841_ACEOF
36842rm -f conftest.$ac_objext
36843if { (ac_try="$ac_compile"
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_compile") 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_objext; then
36860 ac_header_compiler=yes
36861else
36862 $as_echo "$as_me: failed program was:" >&5
36863sed 's/^/| /' conftest.$ac_ext >&5
36864
36865 ac_header_compiler=no
36866fi
36867
36868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36869{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36870$as_echo "$ac_header_compiler" >&6; }
36871
36872# Is the header present?
36873{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
36874$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
36875cat >conftest.$ac_ext <<_ACEOF
36876/* confdefs.h. */
36877_ACEOF
36878cat confdefs.h >>conftest.$ac_ext
36879cat >>conftest.$ac_ext <<_ACEOF
36880/* end confdefs.h. */
36881#include <DPS/dpsXclient.h>
36882_ACEOF
36883if { (ac_try="$ac_cpp conftest.$ac_ext"
36884case "(($ac_try" in
36885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886 *) ac_try_echo=$ac_try;;
36887esac
36888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36889$as_echo "$ac_try_echo") >&5
36890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36891 ac_status=$?
36892 grep -v '^ *+' conftest.er1 >conftest.err
36893 rm -f conftest.er1
36894 cat conftest.err >&5
36895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896 (exit $ac_status); } >/dev/null && {
36897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36898 test ! -s conftest.err
36899 }; then
36900 ac_header_preproc=yes
36901else
36902 $as_echo "$as_me: failed program was:" >&5
36903sed 's/^/| /' conftest.$ac_ext >&5
36904
36905 ac_header_preproc=no
36906fi
36907
36908rm -f conftest.err conftest.$ac_ext
36909{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36910$as_echo "$ac_header_preproc" >&6; }
36911
36912# So? What about this header?
36913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36914 yes:no: )
36915 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
36916$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36917 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
36918$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
36919 ac_header_preproc=yes
36920 ;;
36921 no:yes:* )
36922 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
36923$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
36924 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
36925$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
36926 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
36927$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
36928 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
36929$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
36930 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
36931$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
36932 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
36933$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
36934 ( cat <<\_ASBOX
36935## ----------------------------------------- ##
36936## Report this to http://www.imagemagick.org ##
36937## ----------------------------------------- ##
36938_ASBOX
36939 ) | sed "s/^/$as_me: WARNING: /" >&2
36940 ;;
36941esac
36942{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
36943$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
36944if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36945 $as_echo_n "(cached) " >&6
36946else
36947 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
36948fi
36949{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
36950$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
36951
36952fi
36953if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
36954 passed=`expr $passed + 1`
36955else
36956 failed=`expr $failed + 1`
36957fi
36958
36959
36960 # DPS issues:
36961 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
36962 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
36963 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
36964 # ImageMagick itself doesn't use -lXt.
36965 have_libdps='no'
36966 LIBDPS_XT=''
36967 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
36968$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
36969if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
36970 $as_echo_n "(cached) " >&6
36971else
36972 ac_check_lib_save_LIBS=$LIBS
36973LIBS="-ldps $LIBS"
36974cat >conftest.$ac_ext <<_ACEOF
36975/* confdefs.h. */
36976_ACEOF
36977cat confdefs.h >>conftest.$ac_ext
36978cat >>conftest.$ac_ext <<_ACEOF
36979/* end confdefs.h. */
36980
36981/* Override any GCC internal prototype to avoid an error.
36982 Use char because int might match the return type of a GCC
36983 builtin and then its argument prototype would still apply. */
36984#ifdef __cplusplus
36985extern "C"
36986#endif
36987char DPSInitialize ();
36988int
36989main ()
36990{
36991return DPSInitialize ();
36992 ;
36993 return 0;
36994}
36995_ACEOF
36996rm -f conftest.$ac_objext conftest$ac_exeext
36997if { (ac_try="$ac_link"
36998case "(($ac_try" in
36999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37000 *) ac_try_echo=$ac_try;;
37001esac
37002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37003$as_echo "$ac_try_echo") >&5
37004 (eval "$ac_link") 2>conftest.er1
37005 ac_status=$?
37006 grep -v '^ *+' conftest.er1 >conftest.err
37007 rm -f conftest.er1
37008 cat conftest.err >&5
37009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } && {
37011 test -z "$ac_c_werror_flag" ||
37012 test ! -s conftest.err
37013 } && test -s conftest$ac_exeext && {
37014 test "$cross_compiling" = yes ||
37015 $as_test_x conftest$ac_exeext
37016 }; then
37017 ac_cv_lib_dps_DPSInitialize=yes
37018else
37019 $as_echo "$as_me: failed program was:" >&5
37020sed 's/^/| /' conftest.$ac_ext >&5
37021
37022 ac_cv_lib_dps_DPSInitialize=no
37023fi
37024
37025rm -rf conftest.dSYM
37026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37027 conftest$ac_exeext conftest.$ac_ext
37028LIBS=$ac_check_lib_save_LIBS
37029fi
37030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37031$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37032if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37033 have_libdps='yes'
37034else
37035 have_libdps='no'
37036fi
37037
37038 if test "$have_libdps" != 'yes'; then
37039 # Unset cache variable so we can try again.
37040 unset ac_cv_lib_dps_DPSInitialize
37041 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37042$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37043if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37044 $as_echo_n "(cached) " >&6
37045else
37046 ac_check_lib_save_LIBS=$LIBS
37047LIBS="-ldps -lXt $LIBS"
37048cat >conftest.$ac_ext <<_ACEOF
37049/* confdefs.h. */
37050_ACEOF
37051cat confdefs.h >>conftest.$ac_ext
37052cat >>conftest.$ac_ext <<_ACEOF
37053/* end confdefs.h. */
37054
37055/* Override any GCC internal prototype to avoid an error.
37056 Use char because int might match the return type of a GCC
37057 builtin and then its argument prototype would still apply. */
37058#ifdef __cplusplus
37059extern "C"
37060#endif
37061char DPSInitialize ();
37062int
37063main ()
37064{
37065return DPSInitialize ();
37066 ;
37067 return 0;
37068}
37069_ACEOF
37070rm -f conftest.$ac_objext conftest$ac_exeext
37071if { (ac_try="$ac_link"
37072case "(($ac_try" in
37073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37074 *) ac_try_echo=$ac_try;;
37075esac
37076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37077$as_echo "$ac_try_echo") >&5
37078 (eval "$ac_link") 2>conftest.er1
37079 ac_status=$?
37080 grep -v '^ *+' conftest.er1 >conftest.err
37081 rm -f conftest.er1
37082 cat conftest.err >&5
37083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); } && {
37085 test -z "$ac_c_werror_flag" ||
37086 test ! -s conftest.err
37087 } && test -s conftest$ac_exeext && {
37088 test "$cross_compiling" = yes ||
37089 $as_test_x conftest$ac_exeext
37090 }; then
37091 ac_cv_lib_dps_DPSInitialize=yes
37092else
37093 $as_echo "$as_me: failed program was:" >&5
37094sed 's/^/| /' conftest.$ac_ext >&5
37095
37096 ac_cv_lib_dps_DPSInitialize=no
37097fi
37098
37099rm -rf conftest.dSYM
37100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37101 conftest$ac_exeext conftest.$ac_ext
37102LIBS=$ac_check_lib_save_LIBS
37103fi
37104{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37105$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37106if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37107 have_libdps='yes'
37108else
37109 have_libdps='no'
37110fi
37111
37112 if test "$have_libdps" = 'yes'; then
37113 LIBDPS_XT='-lXt'
37114 fi
37115 fi
37116 if test "$have_libdps" = 'yes'; then
37117 passed=`expr $passed + 1`
37118 else
37119 failed=`expr $failed + 1`
37120 fi
37121 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
37122$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
37123if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
37124 $as_echo_n "(cached) " >&6
37125else
37126 ac_check_lib_save_LIBS=$LIBS
37127LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
37128cat >conftest.$ac_ext <<_ACEOF
37129/* confdefs.h. */
37130_ACEOF
37131cat confdefs.h >>conftest.$ac_ext
37132cat >>conftest.$ac_ext <<_ACEOF
37133/* end confdefs.h. */
37134
37135/* Override any GCC internal prototype to avoid an error.
37136 Use char because int might match the return type of a GCC
37137 builtin and then its argument prototype would still apply. */
37138#ifdef __cplusplus
37139extern "C"
37140#endif
37141char XDPSPixelsPerPoint ();
37142int
37143main ()
37144{
37145return XDPSPixelsPerPoint ();
37146 ;
37147 return 0;
37148}
37149_ACEOF
37150rm -f conftest.$ac_objext conftest$ac_exeext
37151if { (ac_try="$ac_link"
37152case "(($ac_try" in
37153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37154 *) ac_try_echo=$ac_try;;
37155esac
37156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37157$as_echo "$ac_try_echo") >&5
37158 (eval "$ac_link") 2>conftest.er1
37159 ac_status=$?
37160 grep -v '^ *+' conftest.er1 >conftest.err
37161 rm -f conftest.er1
37162 cat conftest.err >&5
37163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164 (exit $ac_status); } && {
37165 test -z "$ac_c_werror_flag" ||
37166 test ! -s conftest.err
37167 } && test -s conftest$ac_exeext && {
37168 test "$cross_compiling" = yes ||
37169 $as_test_x conftest$ac_exeext
37170 }; then
37171 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
37172else
37173 $as_echo "$as_me: failed program was:" >&5
37174sed 's/^/| /' conftest.$ac_ext >&5
37175
37176 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
37177fi
37178
37179rm -rf conftest.dSYM
37180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37181 conftest$ac_exeext conftest.$ac_ext
37182LIBS=$ac_check_lib_save_LIBS
37183fi
37184{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
37185$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
37186if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
37187 passed=`expr $passed + 1`
37188else
37189 failed=`expr $failed + 1`
37190fi
37191
37192 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
37193$as_echo_n "checking if DPS package is complete... " >&6; }
37194 if test $passed -gt 0; then
37195 if test $failed -gt 0; then
37196 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37197$as_echo "no -- some components failed test" >&6; }
37198 have_dps='no (failed tests)'
37199 CPPFLAGS="$PERSIST_CPPFLAGS"
37200 else
37201 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
37202 LIBS="$DPS_LIBS $LIBS"
37203
37204cat >>confdefs.h <<\_ACEOF
37205#define DPS_DELEGATE 1
37206_ACEOF
37207
37208 { $as_echo "$as_me:$LINENO: result: yes" >&5
37209$as_echo "yes" >&6; }
37210 have_dps='yes'
37211 fi
37212 else
37213 { $as_echo "$as_me:$LINENO: result: no" >&5
37214$as_echo "no" >&6; }
37215 CPPFLAGS=$PERSIST_CPPFLAGS
37216 fi
37217fi
37218 if test "$have_dps" = 'yes'; then
37219 DPS_DELEGATE_TRUE=
37220 DPS_DELEGATE_FALSE='#'
37221else
37222 DPS_DELEGATE_TRUE='#'
37223 DPS_DELEGATE_FALSE=
37224fi
37225
37226
37227
37228
37229#
37230# Check for DJVU delegate library.
37231#
37232
37233# Check whether --with-djvu was given.
37234if test "${with_djvu+set}" = set; then
37235 withval=$with_djvu; with_djvu=$withval
37236else
37237 with_djvu='yes'
37238fi
37239
37240
37241if test "$with_djvu" != 'yes'; then
37242 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
37243fi
37244
37245have_djvu='no'
37246DJVU_LIBS=''
37247if test "$with_djvu" != 'no'; then
37248 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37249$as_echo "-------------------------------------------------------------" >&6; }
37250 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
37251$as_echo_n "checking for DJVU... " >&6; }
37252 { $as_echo "$as_me:$LINENO: result: " >&5
37253$as_echo "" >&6; }
37254 failed=0
37255 passed=0
37256 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37257 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37258$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37259if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37260 $as_echo_n "(cached) " >&6
37261fi
37262{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37263$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37264else
37265 # Is the header compilable?
37266{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
37267$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
37268cat >conftest.$ac_ext <<_ACEOF
37269/* confdefs.h. */
37270_ACEOF
37271cat confdefs.h >>conftest.$ac_ext
37272cat >>conftest.$ac_ext <<_ACEOF
37273/* end confdefs.h. */
37274$ac_includes_default
37275#include <libdjvu/ddjvuapi.h>
37276_ACEOF
37277rm -f conftest.$ac_objext
37278if { (ac_try="$ac_compile"
37279case "(($ac_try" in
37280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37281 *) ac_try_echo=$ac_try;;
37282esac
37283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37284$as_echo "$ac_try_echo") >&5
37285 (eval "$ac_compile") 2>conftest.er1
37286 ac_status=$?
37287 grep -v '^ *+' conftest.er1 >conftest.err
37288 rm -f conftest.er1
37289 cat conftest.err >&5
37290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); } && {
37292 test -z "$ac_c_werror_flag" ||
37293 test ! -s conftest.err
37294 } && test -s conftest.$ac_objext; then
37295 ac_header_compiler=yes
37296else
37297 $as_echo "$as_me: failed program was:" >&5
37298sed 's/^/| /' conftest.$ac_ext >&5
37299
37300 ac_header_compiler=no
37301fi
37302
37303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37304{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37305$as_echo "$ac_header_compiler" >&6; }
37306
37307# Is the header present?
37308{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
37309$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
37310cat >conftest.$ac_ext <<_ACEOF
37311/* confdefs.h. */
37312_ACEOF
37313cat confdefs.h >>conftest.$ac_ext
37314cat >>conftest.$ac_ext <<_ACEOF
37315/* end confdefs.h. */
37316#include <libdjvu/ddjvuapi.h>
37317_ACEOF
37318if { (ac_try="$ac_cpp conftest.$ac_ext"
37319case "(($ac_try" in
37320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37321 *) ac_try_echo=$ac_try;;
37322esac
37323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37324$as_echo "$ac_try_echo") >&5
37325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37326 ac_status=$?
37327 grep -v '^ *+' conftest.er1 >conftest.err
37328 rm -f conftest.er1
37329 cat conftest.err >&5
37330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); } >/dev/null && {
37332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37333 test ! -s conftest.err
37334 }; then
37335 ac_header_preproc=yes
37336else
37337 $as_echo "$as_me: failed program was:" >&5
37338sed 's/^/| /' conftest.$ac_ext >&5
37339
37340 ac_header_preproc=no
37341fi
37342
37343rm -f conftest.err conftest.$ac_ext
37344{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37345$as_echo "$ac_header_preproc" >&6; }
37346
37347# So? What about this header?
37348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37349 yes:no: )
37350 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
37351$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37352 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
37353$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
37354 ac_header_preproc=yes
37355 ;;
37356 no:yes:* )
37357 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
37358$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
37359 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
37360$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
37361 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
37362$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
37363 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
37364$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
37365 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
37366$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
37367 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
37368$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
37369 ( cat <<\_ASBOX
37370## ----------------------------------------- ##
37371## Report this to http://www.imagemagick.org ##
37372## ----------------------------------------- ##
37373_ASBOX
37374 ) | sed "s/^/$as_me: WARNING: /" >&2
37375 ;;
37376esac
37377{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37378$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37379if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37380 $as_echo_n "(cached) " >&6
37381else
37382 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
37383fi
37384{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37385$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37386
37387fi
37388if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
37389 passed=`expr $passed + 1`
37390else
37391 failed=`expr $failed + 1`
37392fi
37393
37394
37395 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
37396$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
37397if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
37398 $as_echo_n "(cached) " >&6
37399else
37400 ac_check_lib_save_LIBS=$LIBS
37401LIBS="-ldjvulibre $LIBS"
37402cat >conftest.$ac_ext <<_ACEOF
37403/* confdefs.h. */
37404_ACEOF
37405cat confdefs.h >>conftest.$ac_ext
37406cat >>conftest.$ac_ext <<_ACEOF
37407/* end confdefs.h. */
37408
37409/* Override any GCC internal prototype to avoid an error.
37410 Use char because int might match the return type of a GCC
37411 builtin and then its argument prototype would still apply. */
37412#ifdef __cplusplus
37413extern "C"
37414#endif
37415char ddjvu_context_create ();
37416int
37417main ()
37418{
37419return ddjvu_context_create ();
37420 ;
37421 return 0;
37422}
37423_ACEOF
37424rm -f conftest.$ac_objext conftest$ac_exeext
37425if { (ac_try="$ac_link"
37426case "(($ac_try" in
37427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428 *) ac_try_echo=$ac_try;;
37429esac
37430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37431$as_echo "$ac_try_echo") >&5
37432 (eval "$ac_link") 2>conftest.er1
37433 ac_status=$?
37434 grep -v '^ *+' conftest.er1 >conftest.err
37435 rm -f conftest.er1
37436 cat conftest.err >&5
37437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); } && {
37439 test -z "$ac_c_werror_flag" ||
37440 test ! -s conftest.err
37441 } && test -s conftest$ac_exeext && {
37442 test "$cross_compiling" = yes ||
37443 $as_test_x conftest$ac_exeext
37444 }; then
37445 ac_cv_lib_djvulibre_ddjvu_context_create=yes
37446else
37447 $as_echo "$as_me: failed program was:" >&5
37448sed 's/^/| /' conftest.$ac_ext >&5
37449
37450 ac_cv_lib_djvulibre_ddjvu_context_create=no
37451fi
37452
37453rm -rf conftest.dSYM
37454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37455 conftest$ac_exeext conftest.$ac_ext
37456LIBS=$ac_check_lib_save_LIBS
37457fi
37458{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
37459$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
37460if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
37461 passed=`expr $passed + 1`
37462else
37463 failed=`expr $failed + 1`
37464fi
37465
37466 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
37467$as_echo_n "checking if DJVU package is complete... " >&6; }
37468 if test $passed -gt 0; then
37469 if test $failed -gt 0; then
37470 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37471$as_echo "no -- some components failed test" >&6; }
37472 have_djvu='no (failed tests)'
37473 else
37474 DJVU_LIBS='-ldjvulibre'
37475 LIBS="$DJVU_LIBS $LIBS"
37476
37477cat >>confdefs.h <<\_ACEOF
37478#define DJVU_DELEGATE 1
37479_ACEOF
37480
37481 { $as_echo "$as_me:$LINENO: result: yes" >&5
37482$as_echo "yes" >&6; }
37483 have_djvu='yes'
37484 fi
37485 else
37486 { $as_echo "$as_me:$LINENO: result: no" >&5
37487$as_echo "no" >&6; }
37488 fi
37489fi
37490 if test "$have_djvu" = 'yes'; then
37491 DJVU_DELEGATE_TRUE=
37492 DJVU_DELEGATE_FALSE='#'
37493else
37494 DJVU_DELEGATE_TRUE='#'
37495 DJVU_DELEGATE_FALSE=
37496fi
37497
37498
37499
37500
37501#
37502# Check for FFTW delegate library.
37503#
37504
37505# Check whether --with-fftw was given.
37506if test "${with_fftw+set}" = set; then
37507 withval=$with_fftw; with_fftw=$withval
37508else
37509 with_fftw='yes'
37510fi
37511
37512
37513if test "$with_fftw" != 'yes'; then
37514 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
37515fi
37516
37517have_fftw='no'
37518FFTW_LIBS=''
37519if test "$with_fftw" != 'no'; then
37520 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37521$as_echo "-------------------------------------------------------------" >&6; }
37522 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
37523$as_echo_n "checking for FFTW... " >&6; }
37524 { $as_echo "$as_me:$LINENO: result: " >&5
37525$as_echo "" >&6; }
37526 failed=0
37527 passed=0
37528 if test "${ac_cv_header_fftw3_h+set}" = set; then
37529 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37530$as_echo_n "checking for fftw3.h... " >&6; }
37531if test "${ac_cv_header_fftw3_h+set}" = set; then
37532 $as_echo_n "(cached) " >&6
37533fi
37534{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37535$as_echo "$ac_cv_header_fftw3_h" >&6; }
37536else
37537 # Is the header compilable?
37538{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
37539$as_echo_n "checking fftw3.h usability... " >&6; }
37540cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
37546$ac_includes_default
37547#include <fftw3.h>
37548_ACEOF
37549rm -f conftest.$ac_objext
37550if { (ac_try="$ac_compile"
37551case "(($ac_try" in
37552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37553 *) ac_try_echo=$ac_try;;
37554esac
37555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37556$as_echo "$ac_try_echo") >&5
37557 (eval "$ac_compile") 2>conftest.er1
37558 ac_status=$?
37559 grep -v '^ *+' conftest.er1 >conftest.err
37560 rm -f conftest.er1
37561 cat conftest.err >&5
37562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); } && {
37564 test -z "$ac_c_werror_flag" ||
37565 test ! -s conftest.err
37566 } && test -s conftest.$ac_objext; then
37567 ac_header_compiler=yes
37568else
37569 $as_echo "$as_me: failed program was:" >&5
37570sed 's/^/| /' conftest.$ac_ext >&5
37571
37572 ac_header_compiler=no
37573fi
37574
37575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37576{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37577$as_echo "$ac_header_compiler" >&6; }
37578
37579# Is the header present?
37580{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
37581$as_echo_n "checking fftw3.h presence... " >&6; }
37582cat >conftest.$ac_ext <<_ACEOF
37583/* confdefs.h. */
37584_ACEOF
37585cat confdefs.h >>conftest.$ac_ext
37586cat >>conftest.$ac_ext <<_ACEOF
37587/* end confdefs.h. */
37588#include <fftw3.h>
37589_ACEOF
37590if { (ac_try="$ac_cpp conftest.$ac_ext"
37591case "(($ac_try" in
37592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37593 *) ac_try_echo=$ac_try;;
37594esac
37595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37596$as_echo "$ac_try_echo") >&5
37597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37598 ac_status=$?
37599 grep -v '^ *+' conftest.er1 >conftest.err
37600 rm -f conftest.er1
37601 cat conftest.err >&5
37602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); } >/dev/null && {
37604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37605 test ! -s conftest.err
37606 }; then
37607 ac_header_preproc=yes
37608else
37609 $as_echo "$as_me: failed program was:" >&5
37610sed 's/^/| /' conftest.$ac_ext >&5
37611
37612 ac_header_preproc=no
37613fi
37614
37615rm -f conftest.err conftest.$ac_ext
37616{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37617$as_echo "$ac_header_preproc" >&6; }
37618
37619# So? What about this header?
37620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37621 yes:no: )
37622 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37623$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37624 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37625$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37626 ac_header_preproc=yes
37627 ;;
37628 no:yes:* )
37629 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37630$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37631 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37632$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37633 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37634$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37635 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37636$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37637 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37638$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37639 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37640$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37641 ( cat <<\_ASBOX
37642## ----------------------------------------- ##
37643## Report this to http://www.imagemagick.org ##
37644## ----------------------------------------- ##
37645_ASBOX
37646 ) | sed "s/^/$as_me: WARNING: /" >&2
37647 ;;
37648esac
37649{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37650$as_echo_n "checking for fftw3.h... " >&6; }
37651if test "${ac_cv_header_fftw3_h+set}" = set; then
37652 $as_echo_n "(cached) " >&6
37653else
37654 ac_cv_header_fftw3_h=$ac_header_preproc
37655fi
37656{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37657$as_echo "$ac_cv_header_fftw3_h" >&6; }
37658
37659fi
37660if test "x$ac_cv_header_fftw3_h" = x""yes; then
37661 passed=`expr $passed + 1`
37662else
37663 failed=`expr $failed + 1`
37664fi
37665
37666
37667 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37668$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37669if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37670 $as_echo_n "(cached) " >&6
37671else
37672 ac_check_lib_save_LIBS=$LIBS
37673LIBS="-lfftw3 $LIBS"
37674cat >conftest.$ac_ext <<_ACEOF
37675/* confdefs.h. */
37676_ACEOF
37677cat confdefs.h >>conftest.$ac_ext
37678cat >>conftest.$ac_ext <<_ACEOF
37679/* end confdefs.h. */
37680
37681/* Override any GCC internal prototype to avoid an error.
37682 Use char because int might match the return type of a GCC
37683 builtin and then its argument prototype would still apply. */
37684#ifdef __cplusplus
37685extern "C"
37686#endif
37687char fftw_execute ();
37688int
37689main ()
37690{
37691return fftw_execute ();
37692 ;
37693 return 0;
37694}
37695_ACEOF
37696rm -f conftest.$ac_objext conftest$ac_exeext
37697if { (ac_try="$ac_link"
37698case "(($ac_try" in
37699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37700 *) ac_try_echo=$ac_try;;
37701esac
37702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37703$as_echo "$ac_try_echo") >&5
37704 (eval "$ac_link") 2>conftest.er1
37705 ac_status=$?
37706 grep -v '^ *+' conftest.er1 >conftest.err
37707 rm -f conftest.er1
37708 cat conftest.err >&5
37709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); } && {
37711 test -z "$ac_c_werror_flag" ||
37712 test ! -s conftest.err
37713 } && test -s conftest$ac_exeext && {
37714 test "$cross_compiling" = yes ||
37715 $as_test_x conftest$ac_exeext
37716 }; then
37717 ac_cv_lib_fftw3_fftw_execute=yes
37718else
37719 $as_echo "$as_me: failed program was:" >&5
37720sed 's/^/| /' conftest.$ac_ext >&5
37721
37722 ac_cv_lib_fftw3_fftw_execute=no
37723fi
37724
37725rm -rf conftest.dSYM
37726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37727 conftest$ac_exeext conftest.$ac_ext
37728LIBS=$ac_check_lib_save_LIBS
37729fi
37730{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37731$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37732if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37733 passed=`expr $passed + 1`
37734else
37735 failed=`expr $failed + 1`
37736fi
37737
37738 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37739$as_echo_n "checking if FFTW package is complete... " >&6; }
37740 if test $passed -gt 0; then
37741 if test $failed -gt 0; then
37742 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37743$as_echo "no -- some components failed test" >&6; }
37744 have_fftw='no (failed tests)'
37745 else
37746 FFTW_LIBS='-lfftw3'
37747 LIBS="$FFTW_LIBS $LIBS"
37748
37749cat >>confdefs.h <<\_ACEOF
37750#define FFTW_DELEGATE 1
37751_ACEOF
37752
37753 { $as_echo "$as_me:$LINENO: result: yes" >&5
37754$as_echo "yes" >&6; }
37755 have_fftw='yes'
37756 fi
37757 else
37758 { $as_echo "$as_me:$LINENO: result: no" >&5
37759$as_echo "no" >&6; }
37760 fi
37761fi
37762 if test "$have_fftw" = 'yes'; then
37763 FFTW_DELEGATE_TRUE=
37764 FFTW_DELEGATE_FALSE='#'
37765else
37766 FFTW_DELEGATE_TRUE='#'
37767 FFTW_DELEGATE_FALSE=
37768fi
37769
37770
37771
37772
37773#
37774# Check for FlashPIX delegate library.
37775#
37776
37777# Check whether --with-fpx was given.
37778if test "${with_fpx+set}" = set; then
37779 withval=$with_fpx; with_fpx=$withval
37780else
37781 with_fpx='yes'
37782fi
37783
37784
37785if test "$with_fpx" != 'yes'; then
37786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
37787fi
37788
37789have_fpx='no'
37790FPX_LIBS=''
37791if test "$with_fpx" != 'no'; then
37792 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37793$as_echo "-------------------------------------------------------------" >&6; }
37794 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
37795$as_echo_n "checking for FlashPIX... " >&6; }
37796 { $as_echo "$as_me:$LINENO: result: " >&5
37797$as_echo "" >&6; }
37798 failed=0
37799 passed=0
37800 ac_ext=cpp
37801ac_cpp='$CXXCPP $CPPFLAGS'
37802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37805
37806
37807if test "${ac_cv_header_fpxlib_h+set}" = set; then
37808 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
37809$as_echo_n "checking for fpxlib.h... " >&6; }
37810if test "${ac_cv_header_fpxlib_h+set}" = set; then
37811 $as_echo_n "(cached) " >&6
37812fi
37813{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
37814$as_echo "$ac_cv_header_fpxlib_h" >&6; }
37815else
37816 # Is the header compilable?
37817{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
37818$as_echo_n "checking fpxlib.h usability... " >&6; }
37819cat >conftest.$ac_ext <<_ACEOF
37820/* confdefs.h. */
37821_ACEOF
37822cat confdefs.h >>conftest.$ac_ext
37823cat >>conftest.$ac_ext <<_ACEOF
37824/* end confdefs.h. */
37825$ac_includes_default
37826#include <fpxlib.h>
37827_ACEOF
37828rm -f conftest.$ac_objext
37829if { (ac_try="$ac_compile"
37830case "(($ac_try" in
37831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832 *) ac_try_echo=$ac_try;;
37833esac
37834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37835$as_echo "$ac_try_echo") >&5
37836 (eval "$ac_compile") 2>conftest.er1
37837 ac_status=$?
37838 grep -v '^ *+' conftest.er1 >conftest.err
37839 rm -f conftest.er1
37840 cat conftest.err >&5
37841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); } && {
37843 test -z "$ac_cxx_werror_flag" ||
37844 test ! -s conftest.err
37845 } && test -s conftest.$ac_objext; then
37846 ac_header_compiler=yes
37847else
37848 $as_echo "$as_me: failed program was:" >&5
37849sed 's/^/| /' conftest.$ac_ext >&5
37850
37851 ac_header_compiler=no
37852fi
37853
37854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37855{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37856$as_echo "$ac_header_compiler" >&6; }
37857
37858# Is the header present?
37859{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
37860$as_echo_n "checking fpxlib.h presence... " >&6; }
37861cat >conftest.$ac_ext <<_ACEOF
37862/* confdefs.h. */
37863_ACEOF
37864cat confdefs.h >>conftest.$ac_ext
37865cat >>conftest.$ac_ext <<_ACEOF
37866/* end confdefs.h. */
37867#include <fpxlib.h>
37868_ACEOF
37869if { (ac_try="$ac_cpp conftest.$ac_ext"
37870case "(($ac_try" in
37871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37872 *) ac_try_echo=$ac_try;;
37873esac
37874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37875$as_echo "$ac_try_echo") >&5
37876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37877 ac_status=$?
37878 grep -v '^ *+' conftest.er1 >conftest.err
37879 rm -f conftest.er1
37880 cat conftest.err >&5
37881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); } >/dev/null && {
37883 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
37884 test ! -s conftest.err
37885 }; then
37886 ac_header_preproc=yes
37887else
37888 $as_echo "$as_me: failed program was:" >&5
37889sed 's/^/| /' conftest.$ac_ext >&5
37890
37891 ac_header_preproc=no
37892fi
37893
37894rm -f conftest.err conftest.$ac_ext
37895{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37896$as_echo "$ac_header_preproc" >&6; }
37897
37898# So? What about this header?
37899case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37900 yes:no: )
37901 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37902$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37903 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
37904$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
37905 ac_header_preproc=yes
37906 ;;
37907 no:yes:* )
37908 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
37909$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
37910 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
37911$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
37912 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
37913$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
37914 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
37915$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37916 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
37917$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
37918 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
37919$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
37920 ( cat <<\_ASBOX
37921## ----------------------------------------- ##
37922## Report this to http://www.imagemagick.org ##
37923## ----------------------------------------- ##
37924_ASBOX
37925 ) | sed "s/^/$as_me: WARNING: /" >&2
37926 ;;
37927esac
37928{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
37929$as_echo_n "checking for fpxlib.h... " >&6; }
37930if test "${ac_cv_header_fpxlib_h+set}" = set; then
37931 $as_echo_n "(cached) " >&6
37932else
37933 ac_cv_header_fpxlib_h=$ac_header_preproc
37934fi
37935{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
37936$as_echo "$ac_cv_header_fpxlib_h" >&6; }
37937
37938fi
37939if test "x$ac_cv_header_fpxlib_h" = x""yes; then
37940 passed=`expr $passed + 1`
37941else
37942 failed=`expr $failed + 1`
37943fi
37944
37945
37946 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
37947$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
37948if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
37949 $as_echo_n "(cached) " >&6
37950else
37951 ac_check_lib_save_LIBS=$LIBS
37952LIBS="-lfpx $LIBS"
37953cat >conftest.$ac_ext <<_ACEOF
37954/* confdefs.h. */
37955_ACEOF
37956cat confdefs.h >>conftest.$ac_ext
37957cat >>conftest.$ac_ext <<_ACEOF
37958/* end confdefs.h. */
37959
37960/* Override any GCC internal prototype to avoid an error.
37961 Use char because int might match the return type of a GCC
37962 builtin and then its argument prototype would still apply. */
37963#ifdef __cplusplus
37964extern "C"
37965#endif
37966char FPX_OpenImageByFilename ();
37967int
37968main ()
37969{
37970return FPX_OpenImageByFilename ();
37971 ;
37972 return 0;
37973}
37974_ACEOF
37975rm -f conftest.$ac_objext conftest$ac_exeext
37976if { (ac_try="$ac_link"
37977case "(($ac_try" in
37978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37979 *) ac_try_echo=$ac_try;;
37980esac
37981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37982$as_echo "$ac_try_echo") >&5
37983 (eval "$ac_link") 2>conftest.er1
37984 ac_status=$?
37985 grep -v '^ *+' conftest.er1 >conftest.err
37986 rm -f conftest.er1
37987 cat conftest.err >&5
37988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); } && {
37990 test -z "$ac_cxx_werror_flag" ||
37991 test ! -s conftest.err
37992 } && test -s conftest$ac_exeext && {
37993 test "$cross_compiling" = yes ||
37994 $as_test_x conftest$ac_exeext
37995 }; then
37996 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
37997else
37998 $as_echo "$as_me: failed program was:" >&5
37999sed 's/^/| /' conftest.$ac_ext >&5
38000
38001 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
38002fi
38003
38004rm -rf conftest.dSYM
38005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38006 conftest$ac_exeext conftest.$ac_ext
38007LIBS=$ac_check_lib_save_LIBS
38008fi
38009{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
38010$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
38011if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
38012 passed=`expr $passed + 1`
38013else
38014 failed=`expr $failed + 1`
38015fi
38016
38017 ac_ext=c
38018ac_cpp='$CPP $CPPFLAGS'
38019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38021ac_compiler_gnu=$ac_cv_c_compiler_gnu
38022
38023 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
38024$as_echo_n "checking if FlashPIX package is complete... " >&6; }
38025 if test $passed -gt 0; then
38026 if test $failed -gt 0; then
38027 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38028$as_echo "no -- some components failed test" >&6; }
38029 have_fpx='no (failed tests)'
38030 else
38031 FPX_LIBS='-lfpx'
38032
38033cat >>confdefs.h <<\_ACEOF
38034#define FPX_DELEGATE 1
38035_ACEOF
38036
38037 { $as_echo "$as_me:$LINENO: result: yes" >&5
38038$as_echo "yes" >&6; }
38039 have_fpx='yes'
38040 PERLMAINCC="$CXX"
38041 fi
38042 else
38043 { $as_echo "$as_me:$LINENO: result: no" >&5
38044$as_echo "no" >&6; }
38045 fi
38046fi
38047 if test "$have_fpx" = 'yes'; then
38048 FPX_DELEGATE_TRUE=
38049 FPX_DELEGATE_FALSE='#'
38050else
38051 FPX_DELEGATE_TRUE='#'
38052 FPX_DELEGATE_FALSE=
38053fi
38054
38055
38056
38057
38058#
38059# Check for fontconfig delegate library.
38060#
38061
38062# Check whether --with-fontconfig was given.
38063if test "${with_fontconfig+set}" = set; then
38064 withval=$with_fontconfig; with_fontconfig=$withval
38065else
38066 with_fontconfig=$have_x
38067fi
38068
38069
38070if test "$with_fontconfig" != 'yes'; then
38071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
38072fi
38073
38074have_fontconfig='no'
38075FONTCONFIG_CFLAGS=""
38076FONTCONFIG_LIBS=""
38077FONTCONFIG_PKG=""
38078if test "x$with_fontconfig" = "xyes"; then
38079 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38080$as_echo "-------------------------------------------------------------" >&6; }
38081
38082pkg_failed=no
38083{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
38084$as_echo_n "checking for FONTCONFIG... " >&6; }
38085
38086if test -n "$FONTCONFIG_CFLAGS"; then
38087 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
38088 elif test -n "$PKG_CONFIG"; then
38089 if test -n "$PKG_CONFIG" && \
38090 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38091 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38092 ac_status=$?
38093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); }; then
38095 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
38096else
38097 pkg_failed=yes
38098fi
38099 else
38100 pkg_failed=untried
38101fi
38102if test -n "$FONTCONFIG_LIBS"; then
38103 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
38104 elif test -n "$PKG_CONFIG"; then
38105 if test -n "$PKG_CONFIG" && \
38106 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38107 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38108 ac_status=$?
38109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); }; then
38111 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
38112else
38113 pkg_failed=yes
38114fi
38115 else
38116 pkg_failed=untried
38117fi
38118
38119
38120
38121if test $pkg_failed = yes; then
38122
38123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38124 _pkg_short_errors_supported=yes
38125else
38126 _pkg_short_errors_supported=no
38127fi
38128 if test $_pkg_short_errors_supported = yes; then
38129 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
38130 else
38131 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
38132 fi
38133 # Put the nasty error message in config.log where it belongs
38134 echo "$FONTCONFIG_PKG_ERRORS" >&5
38135
38136 { $as_echo "$as_me:$LINENO: result: no" >&5
38137$as_echo "no" >&6; }
38138 have_fontconfig=no
38139elif test $pkg_failed = untried; then
38140 have_fontconfig=no
38141else
38142 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
38143 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
38144 { $as_echo "$as_me:$LINENO: result: yes" >&5
38145$as_echo "yes" >&6; }
38146 have_fontconfig=yes
38147fi
38148 { $as_echo "$as_me:$LINENO: result: " >&5
38149$as_echo "" >&6; }
38150fi
38151
38152if test "$have_fontconfig" = 'yes'; then
38153
38154cat >>confdefs.h <<\_ACEOF
38155#define FONTCONFIG_DELEGATE 1
38156_ACEOF
38157
38158 if test "$with_modules" = 'no'; then
38159 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
38160 fi
38161fi
38162
38163 if test "$have_fontconfig" = 'yes'; then
38164 FONTCONFIG_DELEGATE_TRUE=
38165 FONTCONFIG_DELEGATE_FALSE='#'
38166else
38167 FONTCONFIG_DELEGATE_TRUE='#'
38168 FONTCONFIG_DELEGATE_FALSE=
38169fi
38170
38171
38172
38173
38174
38175#
38176# Check for freetype delegate library.
38177#
38178
38179# Check whether --with-freetype was given.
38180if test "${with_freetype+set}" = set; then
38181 withval=$with_freetype; with_freetype=$withval
38182else
38183 with_freetype='yes'
38184fi
38185
38186
38187
38188if test "$with_freetype" != 'yes'; then
38189 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
38190fi
38191
38192have_freetype='no'
38193FREETYPE_LIBS=''
38194if test "$with_freetype" != 'no'; then
38195 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38196$as_echo "-------------------------------------------------------------" >&6; }
38197 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
38198$as_echo_n "checking for FreeType 2.0... " >&6; }
38199 { $as_echo "$as_me:$LINENO: result: " >&5
38200$as_echo "" >&6; }
38201 failed=0
38202 passed=0
38203 PERSIST_LDFLAGS="$LDFLAGS"
38204 PERSIST_CPPFLAGS="$CPPFLAGS"
38205 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
38206 :
38207 else
38208 freetype_config=''
38209 for ac_prog in freetype-config
38210do
38211 # Extract the first word of "$ac_prog", so it can be a program name with args.
38212set dummy $ac_prog; ac_word=$2
38213{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38214$as_echo_n "checking for $ac_word... " >&6; }
38215if test "${ac_cv_prog_freetype_config+set}" = set; then
38216 $as_echo_n "(cached) " >&6
38217else
38218 if test -n "$freetype_config"; then
38219 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
38220else
38221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38222for as_dir in $PATH
38223do
38224 IFS=$as_save_IFS
38225 test -z "$as_dir" && as_dir=.
38226 for ac_exec_ext in '' $ac_executable_extensions; do
38227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38228 ac_cv_prog_freetype_config="$ac_prog"
38229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38230 break 2
38231 fi
38232done
38233done
38234IFS=$as_save_IFS
38235
38236fi
38237fi
38238freetype_config=$ac_cv_prog_freetype_config
38239if test -n "$freetype_config"; then
38240 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
38241$as_echo "$freetype_config" >&6; }
38242else
38243 { $as_echo "$as_me:$LINENO: result: no" >&5
38244$as_echo "no" >&6; }
38245fi
38246
38247
38248 test -n "$freetype_config" && break
38249done
38250 if test -n "$freetype_config"; then
38251 freetype_cflags=`$freetype_config --cflags`
38252 freetype_libs=`$freetype_config --libs`
38253 LDFLAGS="$LDFLAGS $freetype_libs"
38254 CPPFLAGS="$freetype_cflags $CPPFLAGS"
38255 fi
38256 fi
38257
38258 if test "$FREETYPE_LIBS" = ''; then
38259 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
38260$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
38261if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
38262 $as_echo_n "(cached) " >&6
38263else
38264 ac_check_lib_save_LIBS=$LIBS
38265LIBS="-lfreetype $LIBS"
38266cat >conftest.$ac_ext <<_ACEOF
38267/* confdefs.h. */
38268_ACEOF
38269cat confdefs.h >>conftest.$ac_ext
38270cat >>conftest.$ac_ext <<_ACEOF
38271/* end confdefs.h. */
38272
38273/* Override any GCC internal prototype to avoid an error.
38274 Use char because int might match the return type of a GCC
38275 builtin and then its argument prototype would still apply. */
38276#ifdef __cplusplus
38277extern "C"
38278#endif
38279char FT_Init_FreeType ();
38280int
38281main ()
38282{
38283return FT_Init_FreeType ();
38284 ;
38285 return 0;
38286}
38287_ACEOF
38288rm -f conftest.$ac_objext conftest$ac_exeext
38289if { (ac_try="$ac_link"
38290case "(($ac_try" in
38291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38292 *) ac_try_echo=$ac_try;;
38293esac
38294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38295$as_echo "$ac_try_echo") >&5
38296 (eval "$ac_link") 2>conftest.er1
38297 ac_status=$?
38298 grep -v '^ *+' conftest.er1 >conftest.err
38299 rm -f conftest.er1
38300 cat conftest.err >&5
38301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302 (exit $ac_status); } && {
38303 test -z "$ac_c_werror_flag" ||
38304 test ! -s conftest.err
38305 } && test -s conftest$ac_exeext && {
38306 test "$cross_compiling" = yes ||
38307 $as_test_x conftest$ac_exeext
38308 }; then
38309 ac_cv_lib_freetype_FT_Init_FreeType=yes
38310else
38311 $as_echo "$as_me: failed program was:" >&5
38312sed 's/^/| /' conftest.$ac_ext >&5
38313
38314 ac_cv_lib_freetype_FT_Init_FreeType=no
38315fi
38316
38317rm -rf conftest.dSYM
38318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38319 conftest$ac_exeext conftest.$ac_ext
38320LIBS=$ac_check_lib_save_LIBS
38321fi
38322{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
38323$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
38324if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
38325 FREETYPE_LIBS='-lfreetype'
38326fi
38327
38328 if test "$FREETYPE_LIBS" != ''; then
38329 passed=`expr $passed + 1`
38330 else
38331 failed=`expr $failed + 1`
38332 LDFLAGS="$PERSIST_LDFLAGS"
38333 fi
38334 fi
38335
38336 if test "${ac_cv_header_ft2build_h+set}" = set; then
38337 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38338$as_echo_n "checking for ft2build.h... " >&6; }
38339if test "${ac_cv_header_ft2build_h+set}" = set; then
38340 $as_echo_n "(cached) " >&6
38341fi
38342{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38343$as_echo "$ac_cv_header_ft2build_h" >&6; }
38344else
38345 # Is the header compilable?
38346{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
38347$as_echo_n "checking ft2build.h usability... " >&6; }
38348cat >conftest.$ac_ext <<_ACEOF
38349/* confdefs.h. */
38350_ACEOF
38351cat confdefs.h >>conftest.$ac_ext
38352cat >>conftest.$ac_ext <<_ACEOF
38353/* end confdefs.h. */
38354$ac_includes_default
38355#include <ft2build.h>
38356_ACEOF
38357rm -f conftest.$ac_objext
38358if { (ac_try="$ac_compile"
38359case "(($ac_try" in
38360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38361 *) ac_try_echo=$ac_try;;
38362esac
38363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38364$as_echo "$ac_try_echo") >&5
38365 (eval "$ac_compile") 2>conftest.er1
38366 ac_status=$?
38367 grep -v '^ *+' conftest.er1 >conftest.err
38368 rm -f conftest.er1
38369 cat conftest.err >&5
38370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371 (exit $ac_status); } && {
38372 test -z "$ac_c_werror_flag" ||
38373 test ! -s conftest.err
38374 } && test -s conftest.$ac_objext; then
38375 ac_header_compiler=yes
38376else
38377 $as_echo "$as_me: failed program was:" >&5
38378sed 's/^/| /' conftest.$ac_ext >&5
38379
38380 ac_header_compiler=no
38381fi
38382
38383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38384{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38385$as_echo "$ac_header_compiler" >&6; }
38386
38387# Is the header present?
38388{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
38389$as_echo_n "checking ft2build.h presence... " >&6; }
38390cat >conftest.$ac_ext <<_ACEOF
38391/* confdefs.h. */
38392_ACEOF
38393cat confdefs.h >>conftest.$ac_ext
38394cat >>conftest.$ac_ext <<_ACEOF
38395/* end confdefs.h. */
38396#include <ft2build.h>
38397_ACEOF
38398if { (ac_try="$ac_cpp conftest.$ac_ext"
38399case "(($ac_try" in
38400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38401 *) ac_try_echo=$ac_try;;
38402esac
38403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38404$as_echo "$ac_try_echo") >&5
38405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38406 ac_status=$?
38407 grep -v '^ *+' conftest.er1 >conftest.err
38408 rm -f conftest.er1
38409 cat conftest.err >&5
38410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); } >/dev/null && {
38412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38413 test ! -s conftest.err
38414 }; then
38415 ac_header_preproc=yes
38416else
38417 $as_echo "$as_me: failed program was:" >&5
38418sed 's/^/| /' conftest.$ac_ext >&5
38419
38420 ac_header_preproc=no
38421fi
38422
38423rm -f conftest.err conftest.$ac_ext
38424{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38425$as_echo "$ac_header_preproc" >&6; }
38426
38427# So? What about this header?
38428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38429 yes:no: )
38430 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
38431$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38432 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
38433$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
38434 ac_header_preproc=yes
38435 ;;
38436 no:yes:* )
38437 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
38438$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
38439 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
38440$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
38441 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
38442$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
38443 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
38444$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
38445 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
38446$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
38447 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
38448$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
38449 ( cat <<\_ASBOX
38450## ----------------------------------------- ##
38451## Report this to http://www.imagemagick.org ##
38452## ----------------------------------------- ##
38453_ASBOX
38454 ) | sed "s/^/$as_me: WARNING: /" >&2
38455 ;;
38456esac
38457{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38458$as_echo_n "checking for ft2build.h... " >&6; }
38459if test "${ac_cv_header_ft2build_h+set}" = set; then
38460 $as_echo_n "(cached) " >&6
38461else
38462 ac_cv_header_ft2build_h=$ac_header_preproc
38463fi
38464{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38465$as_echo "$ac_cv_header_ft2build_h" >&6; }
38466
38467fi
38468if test "x$ac_cv_header_ft2build_h" = x""yes; then
38469 FT2BUILD_H='#include <ft2build.h>'
38470else
38471 ft2build=''
38472fi
38473
38474
38475 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
38476$as_echo_n "checking for freetype/freetype.h... " >&6; }
38477if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
38478 $as_echo_n "(cached) " >&6
38479else
38480 cat >conftest.$ac_ext <<_ACEOF
38481/* confdefs.h. */
38482_ACEOF
38483cat confdefs.h >>conftest.$ac_ext
38484cat >>conftest.$ac_ext <<_ACEOF
38485/* end confdefs.h. */
38486$FT2BUILD_H
38487
38488#include <freetype/freetype.h>
38489_ACEOF
38490rm -f conftest.$ac_objext
38491if { (ac_try="$ac_compile"
38492case "(($ac_try" in
38493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38494 *) ac_try_echo=$ac_try;;
38495esac
38496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38497$as_echo "$ac_try_echo") >&5
38498 (eval "$ac_compile") 2>conftest.er1
38499 ac_status=$?
38500 grep -v '^ *+' conftest.er1 >conftest.err
38501 rm -f conftest.er1
38502 cat conftest.err >&5
38503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504 (exit $ac_status); } && {
38505 test -z "$ac_c_werror_flag" ||
38506 test ! -s conftest.err
38507 } && test -s conftest.$ac_objext; then
38508 ac_cv_header_freetype_freetype_h=yes
38509else
38510 $as_echo "$as_me: failed program was:" >&5
38511sed 's/^/| /' conftest.$ac_ext >&5
38512
38513 ac_cv_header_freetype_freetype_h=no
38514fi
38515
38516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38517fi
38518{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
38519$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
38520if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
38521 have_freetype_h='yes'
38522else
38523 have_freetype_h='no'
38524fi
38525
38526
38527 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
38528 passed=`expr $passed + 1`
38529 else
38530 failed=`expr $failed + 1`
38531 CPPFLAGS="$PERSIST_CPPFLAGS"
38532 fi
38533
38534 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
38535$as_echo_n "checking if FreeType package is complete... " >&6; }
38536 if test $passed -gt 0; then
38537 if test $failed -gt 0; then
38538 FREETYPE_LIBS=''
38539 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38540$as_echo "no -- some components failed test" >&6; }
38541 have_freetype='no (failed tests)'
38542 else
38543 LIBS="$FREETYPE_LIBS $LIBS"
38544
38545cat >>confdefs.h <<\_ACEOF
38546#define FREETYPE_DELEGATE 1
38547_ACEOF
38548
38549 if test "$ac_cv_header_ft2build_h" = 'yes'; then
38550
38551cat >>confdefs.h <<\_ACEOF
38552#define HAVE_FT2BUILD_H 1
38553_ACEOF
38554
38555 fi
38556 { $as_echo "$as_me:$LINENO: result: yes" >&5
38557$as_echo "yes" >&6; }
38558 have_freetype='yes'
38559 fi
38560 else
38561 { $as_echo "$as_me:$LINENO: result: no" >&5
38562$as_echo "no" >&6; }
38563 fi
38564fi
38565 if test "$have_freetype" = 'yes'; then
38566 FREETYPE_DELEGATE_TRUE=
38567 FREETYPE_DELEGATE_FALSE='#'
38568else
38569 FREETYPE_DELEGATE_TRUE='#'
38570 FREETYPE_DELEGATE_FALSE=
38571fi
38572
38573
38574
38575
38576
38577#
38578# Check for Ghostscript library or framework.
38579#
38580# Test for iapi.h & test for gsapi_new_instance in -lgs
38581# or -framework Ghostscript
38582
38583
38584# Check whether --with-gslib was given.
38585if test "${with_gslib+set}" = set; then
38586 withval=$with_gslib; with_gslib=$withval
38587else
38588 with_gslib='no'
38589fi
38590
38591
38592if test "$with_gslib" != 'yes'; then
38593 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38594fi
38595
38596have_gslib='no'
38597GS_LIBS=''
38598if test "$with_gslib" != 'no'; then
38599 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38600$as_echo "-------------------------------------------------------------" >&6; }
38601 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38602$as_echo_n "checking for Ghostscript... " >&6; }
38603 { $as_echo "$as_me:$LINENO: result: " >&5
38604$as_echo "" >&6; }
38605 framework=0;
38606 failed=0
38607 passed=0
38608 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38609 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38610$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38611if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38612 $as_echo_n "(cached) " >&6
38613fi
38614{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38615$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38616else
38617 # Is the header compilable?
38618{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38619$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38620cat >conftest.$ac_ext <<_ACEOF
38621/* confdefs.h. */
38622_ACEOF
38623cat confdefs.h >>conftest.$ac_ext
38624cat >>conftest.$ac_ext <<_ACEOF
38625/* end confdefs.h. */
38626$ac_includes_default
38627#include <ghostscript/iapi.h>
38628_ACEOF
38629rm -f conftest.$ac_objext
38630if { (ac_try="$ac_compile"
38631case "(($ac_try" in
38632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38633 *) ac_try_echo=$ac_try;;
38634esac
38635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38636$as_echo "$ac_try_echo") >&5
38637 (eval "$ac_compile") 2>conftest.er1
38638 ac_status=$?
38639 grep -v '^ *+' conftest.er1 >conftest.err
38640 rm -f conftest.er1
38641 cat conftest.err >&5
38642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); } && {
38644 test -z "$ac_c_werror_flag" ||
38645 test ! -s conftest.err
38646 } && test -s conftest.$ac_objext; then
38647 ac_header_compiler=yes
38648else
38649 $as_echo "$as_me: failed program was:" >&5
38650sed 's/^/| /' conftest.$ac_ext >&5
38651
38652 ac_header_compiler=no
38653fi
38654
38655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38656{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38657$as_echo "$ac_header_compiler" >&6; }
38658
38659# Is the header present?
38660{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38661$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38662cat >conftest.$ac_ext <<_ACEOF
38663/* confdefs.h. */
38664_ACEOF
38665cat confdefs.h >>conftest.$ac_ext
38666cat >>conftest.$ac_ext <<_ACEOF
38667/* end confdefs.h. */
38668#include <ghostscript/iapi.h>
38669_ACEOF
38670if { (ac_try="$ac_cpp conftest.$ac_ext"
38671case "(($ac_try" in
38672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38673 *) ac_try_echo=$ac_try;;
38674esac
38675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38676$as_echo "$ac_try_echo") >&5
38677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38678 ac_status=$?
38679 grep -v '^ *+' conftest.er1 >conftest.err
38680 rm -f conftest.er1
38681 cat conftest.err >&5
38682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); } >/dev/null && {
38684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38685 test ! -s conftest.err
38686 }; then
38687 ac_header_preproc=yes
38688else
38689 $as_echo "$as_me: failed program was:" >&5
38690sed 's/^/| /' conftest.$ac_ext >&5
38691
38692 ac_header_preproc=no
38693fi
38694
38695rm -f conftest.err conftest.$ac_ext
38696{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38697$as_echo "$ac_header_preproc" >&6; }
38698
38699# So? What about this header?
38700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38701 yes:no: )
38702 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38703$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38704 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38705$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38706 ac_header_preproc=yes
38707 ;;
38708 no:yes:* )
38709 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38710$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38711 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38712$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38713 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38714$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38715 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38716$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38717 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38718$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38719 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38720$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38721 ( cat <<\_ASBOX
38722## ----------------------------------------- ##
38723## Report this to http://www.imagemagick.org ##
38724## ----------------------------------------- ##
38725_ASBOX
38726 ) | sed "s/^/$as_me: WARNING: /" >&2
38727 ;;
38728esac
38729{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38730$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38731if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38732 $as_echo_n "(cached) " >&6
38733else
38734 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38735fi
38736{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38737$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38738
38739fi
38740if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38741 passed=`expr $passed + 1`
38742else
38743 failed=`expr $failed + 1`
38744fi
38745
38746
38747 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38748 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38749$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38750if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38751 $as_echo_n "(cached) " >&6
38752fi
38753{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38754$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38755else
38756 # Is the header compilable?
38757{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
38758$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
38759cat >conftest.$ac_ext <<_ACEOF
38760/* confdefs.h. */
38761_ACEOF
38762cat confdefs.h >>conftest.$ac_ext
38763cat >>conftest.$ac_ext <<_ACEOF
38764/* end confdefs.h. */
38765$ac_includes_default
38766#include <ghostscript/ierrors.h>
38767_ACEOF
38768rm -f conftest.$ac_objext
38769if { (ac_try="$ac_compile"
38770case "(($ac_try" in
38771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38772 *) ac_try_echo=$ac_try;;
38773esac
38774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38775$as_echo "$ac_try_echo") >&5
38776 (eval "$ac_compile") 2>conftest.er1
38777 ac_status=$?
38778 grep -v '^ *+' conftest.er1 >conftest.err
38779 rm -f conftest.er1
38780 cat conftest.err >&5
38781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } && {
38783 test -z "$ac_c_werror_flag" ||
38784 test ! -s conftest.err
38785 } && test -s conftest.$ac_objext; then
38786 ac_header_compiler=yes
38787else
38788 $as_echo "$as_me: failed program was:" >&5
38789sed 's/^/| /' conftest.$ac_ext >&5
38790
38791 ac_header_compiler=no
38792fi
38793
38794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38795{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38796$as_echo "$ac_header_compiler" >&6; }
38797
38798# Is the header present?
38799{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
38800$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
38801cat >conftest.$ac_ext <<_ACEOF
38802/* confdefs.h. */
38803_ACEOF
38804cat confdefs.h >>conftest.$ac_ext
38805cat >>conftest.$ac_ext <<_ACEOF
38806/* end confdefs.h. */
38807#include <ghostscript/ierrors.h>
38808_ACEOF
38809if { (ac_try="$ac_cpp conftest.$ac_ext"
38810case "(($ac_try" in
38811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38812 *) ac_try_echo=$ac_try;;
38813esac
38814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38815$as_echo "$ac_try_echo") >&5
38816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38817 ac_status=$?
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
38821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } >/dev/null && {
38823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38824 test ! -s conftest.err
38825 }; then
38826 ac_header_preproc=yes
38827else
38828 $as_echo "$as_me: failed program was:" >&5
38829sed 's/^/| /' conftest.$ac_ext >&5
38830
38831 ac_header_preproc=no
38832fi
38833
38834rm -f conftest.err conftest.$ac_ext
38835{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38836$as_echo "$ac_header_preproc" >&6; }
38837
38838# So? What about this header?
38839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38840 yes:no: )
38841 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
38842$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38843 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
38844$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
38845 ac_header_preproc=yes
38846 ;;
38847 no:yes:* )
38848 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
38849$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
38850 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
38851$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
38852 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
38853$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
38854 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
38855$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
38856 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
38857$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
38858 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
38859$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
38860 ( cat <<\_ASBOX
38861## ----------------------------------------- ##
38862## Report this to http://www.imagemagick.org ##
38863## ----------------------------------------- ##
38864_ASBOX
38865 ) | sed "s/^/$as_me: WARNING: /" >&2
38866 ;;
38867esac
38868{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38869$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38870if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38871 $as_echo_n "(cached) " >&6
38872else
38873 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
38874fi
38875{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38876$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38877
38878fi
38879if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
38880 passed=`expr $passed + 1`
38881else
38882 failed=`expr $failed + 1`
38883fi
38884
38885
38886 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
38887$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
38888if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
38889 $as_echo_n "(cached) " >&6
38890else
38891 ac_check_framework_save_LIBS=$LIBS
38892LIBS="-framework Ghostscript $LIBS"
38893cat >conftest.$ac_ext <<_ACEOF
38894/* confdefs.h. */
38895_ACEOF
38896cat confdefs.h >>conftest.$ac_ext
38897cat >>conftest.$ac_ext <<_ACEOF
38898/* end confdefs.h. */
38899
38900/* Override any GCC internal prototype to avoid an error.
38901 Use char because int might match the return type of a GCC
38902 builtin and then its argument prototype would still apply. */
38903#ifdef __cplusplus
38904extern "C"
38905#endif
38906char gsapi_new_instance ();
38907int
38908main ()
38909{
38910return gsapi_new_instance ();
38911 ;
38912 return 0;
38913}
38914_ACEOF
38915rm -f conftest.$ac_objext conftest$ac_exeext
38916if { (ac_try="$ac_link"
38917case "(($ac_try" in
38918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38919 *) ac_try_echo=$ac_try;;
38920esac
38921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38922$as_echo "$ac_try_echo") >&5
38923 (eval "$ac_link") 2>conftest.er1
38924 ac_status=$?
38925 grep -v '^ *+' conftest.er1 >conftest.err
38926 rm -f conftest.er1
38927 cat conftest.err >&5
38928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38929 (exit $ac_status); } && {
38930 test -z "$ac_c_werror_flag" ||
38931 test ! -s conftest.err
38932 } && test -s conftest$ac_exeext && {
38933 test "$cross_compiling" = yes ||
38934 $as_test_x conftest$ac_exeext
38935 }; then
38936 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
38937else
38938 $as_echo "$as_me: failed program was:" >&5
38939sed 's/^/| /' conftest.$ac_ext >&5
38940
38941 ac_cv_framework_Ghostscript_gsapi_new_instance=no
38942fi
38943
38944rm -rf conftest.dSYM
38945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38946 conftest$ac_exeext conftest.$ac_ext
38947LIBS=$ac_check_framework_save_LIBS
38948fi
38949{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
38950$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
38951if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
38952 framework=`expr $framework + 1`
38953else
38954 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
38955$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
38956if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
38957 $as_echo_n "(cached) " >&6
38958else
38959 ac_check_lib_save_LIBS=$LIBS
38960LIBS="-lgs $LIBS"
38961cat >conftest.$ac_ext <<_ACEOF
38962/* confdefs.h. */
38963_ACEOF
38964cat confdefs.h >>conftest.$ac_ext
38965cat >>conftest.$ac_ext <<_ACEOF
38966/* end confdefs.h. */
38967
38968/* Override any GCC internal prototype to avoid an error.
38969 Use char because int might match the return type of a GCC
38970 builtin and then its argument prototype would still apply. */
38971#ifdef __cplusplus
38972extern "C"
38973#endif
38974char gsapi_new_instance ();
38975int
38976main ()
38977{
38978return gsapi_new_instance ();
38979 ;
38980 return 0;
38981}
38982_ACEOF
38983rm -f conftest.$ac_objext conftest$ac_exeext
38984if { (ac_try="$ac_link"
38985case "(($ac_try" in
38986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38987 *) ac_try_echo=$ac_try;;
38988esac
38989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38990$as_echo "$ac_try_echo") >&5
38991 (eval "$ac_link") 2>conftest.er1
38992 ac_status=$?
38993 grep -v '^ *+' conftest.er1 >conftest.err
38994 rm -f conftest.er1
38995 cat conftest.err >&5
38996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997 (exit $ac_status); } && {
38998 test -z "$ac_c_werror_flag" ||
38999 test ! -s conftest.err
39000 } && test -s conftest$ac_exeext && {
39001 test "$cross_compiling" = yes ||
39002 $as_test_x conftest$ac_exeext
39003 }; then
39004 ac_cv_lib_gs_gsapi_new_instance=yes
39005else
39006 $as_echo "$as_me: failed program was:" >&5
39007sed 's/^/| /' conftest.$ac_ext >&5
39008
39009 ac_cv_lib_gs_gsapi_new_instance=no
39010fi
39011
39012rm -rf conftest.dSYM
39013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39014 conftest$ac_exeext conftest.$ac_ext
39015LIBS=$ac_check_lib_save_LIBS
39016fi
39017{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
39018$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
39019if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
39020 passed=`expr $passed + 1`
39021else
39022 failed=`expr $failed + 1`
39023fi
39024
39025fi
39026
39027 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
39028$as_echo_n "checking if Ghostscript package is complete... " >&6; }
39029 if test $passed -gt 0; then
39030 if test $failed -gt 0; then
39031 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39032$as_echo "no -- some components failed test" >&6; }
39033 have_gslib='no (failed tests)'
39034 else
39035 if test $framework -gt 0; then
39036 GS_LIBS='-framework Ghostscript'
39037 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
39038$as_echo "yes, using framework." >&6; }
39039 else
39040 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
39041$as_echo "yes, using library." >&6; }
39042 GS_LIBS='-lgs'
39043 fi
39044 LIBS="$GS_LIBS $LIBS"
39045
39046cat >>confdefs.h <<\_ACEOF
39047#define GS_DELEGATE 1
39048_ACEOF
39049
39050 have_gslib='yes'
39051 fi
39052 else
39053 { $as_echo "$as_me:$LINENO: result: no" >&5
39054$as_echo "no" >&6; }
39055 fi
39056fi
39057 if test "$have_gslib" = 'yes'; then
39058 GS_DELEGATE_TRUE=
39059 GS_DELEGATE_FALSE='#'
39060else
39061 GS_DELEGATE_TRUE='#'
39062 GS_DELEGATE_FALSE=
39063fi
39064
39065
39066
39067# Set default font search path
39068
39069# Check whether --with-fontpath was given.
39070if test "${with_fontpath+set}" = set; then
39071 withval=$with_fontpath; with_fontpath=$withval
39072else
39073 with_fontpath=''
39074fi
39075
39076
39077if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
39078 with_fontpath=''
39079else
39080
39081cat >>confdefs.h <<_ACEOF
39082#define MAGICK_FONT_PATH "$with_fontpath"
39083_ACEOF
39084
39085fi
39086if test "$with_fontpath=" != ''; then
39087 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
39088fi
39089
39090# Set Ghostscript font directory
39091
39092# Check whether --with-gs-font-dir was given.
39093if test "${with_gs_font_dir+set}" = set; then
39094 withval=$with_gs_font_dir; with_gs_font_dir=$withval
39095else
39096 with_gs_font_dir='default'
39097fi
39098
39099
39100if test "$with_gs_font_dir" != 'default'; then
39101 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
39102fi
39103
39104
39105#
39106# Check for GVC delegate library.
39107#
39108
39109# Check whether --with-gvc was given.
39110if test "${with_gvc+set}" = set; then
39111 withval=$with_gvc; with_gvc=$withval
39112else
39113 with_gvc='yes'
39114fi
39115
39116
39117if test "$with_gvc" != 'yes'; then
39118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
39119fi
39120
39121GVC_PKG=""
39122if test "x$with_gvc" = "xyes"; then
39123 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39124$as_echo "-------------------------------------------------------------" >&6; }
39125
39126pkg_failed=no
39127{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
39128$as_echo_n "checking for GVC... " >&6; }
39129
39130if test -n "$GVC_CFLAGS"; then
39131 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
39132 elif test -n "$PKG_CONFIG"; then
39133 if test -n "$PKG_CONFIG" && \
39134 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39135 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39136 ac_status=$?
39137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138 (exit $ac_status); }; then
39139 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
39140else
39141 pkg_failed=yes
39142fi
39143 else
39144 pkg_failed=untried
39145fi
39146if test -n "$GVC_LIBS"; then
39147 pkg_cv_GVC_LIBS="$GVC_LIBS"
39148 elif test -n "$PKG_CONFIG"; then
39149 if test -n "$PKG_CONFIG" && \
39150 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39151 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39152 ac_status=$?
39153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); }; then
39155 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
39156else
39157 pkg_failed=yes
39158fi
39159 else
39160 pkg_failed=untried
39161fi
39162
39163
39164
39165if test $pkg_failed = yes; then
39166
39167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39168 _pkg_short_errors_supported=yes
39169else
39170 _pkg_short_errors_supported=no
39171fi
39172 if test $_pkg_short_errors_supported = yes; then
39173 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
39174 else
39175 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
39176 fi
39177 # Put the nasty error message in config.log where it belongs
39178 echo "$GVC_PKG_ERRORS" >&5
39179
39180 { $as_echo "$as_me:$LINENO: result: no" >&5
39181$as_echo "no" >&6; }
39182 have_gvc=no
39183elif test $pkg_failed = untried; then
39184 have_gvc=no
39185else
39186 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
39187 GVC_LIBS=$pkg_cv_GVC_LIBS
39188 { $as_echo "$as_me:$LINENO: result: yes" >&5
39189$as_echo "yes" >&6; }
39190 have_gvc=yes
39191fi
39192 { $as_echo "$as_me:$LINENO: result: " >&5
39193$as_echo "" >&6; }
39194fi
39195
39196if test "$have_gvc" = 'yes'; then
39197
39198cat >>confdefs.h <<\_ACEOF
39199#define GVC_DELEGATE 1
39200_ACEOF
39201
39202 if test "$with_modules" = 'no'; then
39203 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
39204 fi
39205fi
39206
39207 if test "$have_gvc" = 'yes'; then
39208 GVC_DELEGATE_TRUE=
39209 GVC_DELEGATE_FALSE='#'
39210else
39211 GVC_DELEGATE_TRUE='#'
39212 GVC_DELEGATE_FALSE=
39213fi
39214
39215
39216
39217
39218
39219#
39220# Check for JBIG delegate library.
39221#
39222
39223
39224# Check whether --with-jbig was given.
39225if test "${with_jbig+set}" = set; then
39226 withval=$with_jbig; with_jbig=$withval
39227else
39228 with_jbig='yes'
39229fi
39230
39231
39232have_jbig='no'
39233JBIG_LIBS=''
39234if test "$with_jbig" != 'no'; then
39235 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39236$as_echo "-------------------------------------------------------------" >&6; }
39237 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
39238$as_echo_n "checking for JBIG... " >&6; }
39239 { $as_echo "$as_me:$LINENO: result: " >&5
39240$as_echo "" >&6; }
39241 failed=0
39242 passed=0
39243 if test "${ac_cv_header_jbig_h+set}" = set; then
39244 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39245$as_echo_n "checking for jbig.h... " >&6; }
39246if test "${ac_cv_header_jbig_h+set}" = set; then
39247 $as_echo_n "(cached) " >&6
39248fi
39249{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39250$as_echo "$ac_cv_header_jbig_h" >&6; }
39251else
39252 # Is the header compilable?
39253{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
39254$as_echo_n "checking jbig.h usability... " >&6; }
39255cat >conftest.$ac_ext <<_ACEOF
39256/* confdefs.h. */
39257_ACEOF
39258cat confdefs.h >>conftest.$ac_ext
39259cat >>conftest.$ac_ext <<_ACEOF
39260/* end confdefs.h. */
39261$ac_includes_default
39262#include <jbig.h>
39263_ACEOF
39264rm -f conftest.$ac_objext
39265if { (ac_try="$ac_compile"
39266case "(($ac_try" in
39267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268 *) ac_try_echo=$ac_try;;
39269esac
39270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39271$as_echo "$ac_try_echo") >&5
39272 (eval "$ac_compile") 2>conftest.er1
39273 ac_status=$?
39274 grep -v '^ *+' conftest.er1 >conftest.err
39275 rm -f conftest.er1
39276 cat conftest.err >&5
39277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); } && {
39279 test -z "$ac_c_werror_flag" ||
39280 test ! -s conftest.err
39281 } && test -s conftest.$ac_objext; then
39282 ac_header_compiler=yes
39283else
39284 $as_echo "$as_me: failed program was:" >&5
39285sed 's/^/| /' conftest.$ac_ext >&5
39286
39287 ac_header_compiler=no
39288fi
39289
39290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39291{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39292$as_echo "$ac_header_compiler" >&6; }
39293
39294# Is the header present?
39295{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
39296$as_echo_n "checking jbig.h presence... " >&6; }
39297cat >conftest.$ac_ext <<_ACEOF
39298/* confdefs.h. */
39299_ACEOF
39300cat confdefs.h >>conftest.$ac_ext
39301cat >>conftest.$ac_ext <<_ACEOF
39302/* end confdefs.h. */
39303#include <jbig.h>
39304_ACEOF
39305if { (ac_try="$ac_cpp conftest.$ac_ext"
39306case "(($ac_try" in
39307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39308 *) ac_try_echo=$ac_try;;
39309esac
39310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39311$as_echo "$ac_try_echo") >&5
39312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39313 ac_status=$?
39314 grep -v '^ *+' conftest.er1 >conftest.err
39315 rm -f conftest.er1
39316 cat conftest.err >&5
39317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318 (exit $ac_status); } >/dev/null && {
39319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39320 test ! -s conftest.err
39321 }; then
39322 ac_header_preproc=yes
39323else
39324 $as_echo "$as_me: failed program was:" >&5
39325sed 's/^/| /' conftest.$ac_ext >&5
39326
39327 ac_header_preproc=no
39328fi
39329
39330rm -f conftest.err conftest.$ac_ext
39331{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39332$as_echo "$ac_header_preproc" >&6; }
39333
39334# So? What about this header?
39335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39336 yes:no: )
39337 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39338$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39339 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
39340$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
39341 ac_header_preproc=yes
39342 ;;
39343 no:yes:* )
39344 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
39345$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
39346 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
39347$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
39348 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
39349$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
39350 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
39351$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39352 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
39353$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
39354 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
39355$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
39356 ( cat <<\_ASBOX
39357## ----------------------------------------- ##
39358## Report this to http://www.imagemagick.org ##
39359## ----------------------------------------- ##
39360_ASBOX
39361 ) | sed "s/^/$as_me: WARNING: /" >&2
39362 ;;
39363esac
39364{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39365$as_echo_n "checking for jbig.h... " >&6; }
39366if test "${ac_cv_header_jbig_h+set}" = set; then
39367 $as_echo_n "(cached) " >&6
39368else
39369 ac_cv_header_jbig_h=$ac_header_preproc
39370fi
39371{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39372$as_echo "$ac_cv_header_jbig_h" >&6; }
39373
39374fi
39375if test "x$ac_cv_header_jbig_h" = x""yes; then
39376 passed=`expr $passed + 1`
39377else
39378 failed=`expr $failed + 1`
39379fi
39380
39381
39382 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
39383$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
39384if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
39385 $as_echo_n "(cached) " >&6
39386else
39387 ac_check_lib_save_LIBS=$LIBS
39388LIBS="-ljbig $LIBS"
39389cat >conftest.$ac_ext <<_ACEOF
39390/* confdefs.h. */
39391_ACEOF
39392cat confdefs.h >>conftest.$ac_ext
39393cat >>conftest.$ac_ext <<_ACEOF
39394/* end confdefs.h. */
39395
39396/* Override any GCC internal prototype to avoid an error.
39397 Use char because int might match the return type of a GCC
39398 builtin and then its argument prototype would still apply. */
39399#ifdef __cplusplus
39400extern "C"
39401#endif
39402char jbg_dec_init ();
39403int
39404main ()
39405{
39406return jbg_dec_init ();
39407 ;
39408 return 0;
39409}
39410_ACEOF
39411rm -f conftest.$ac_objext conftest$ac_exeext
39412if { (ac_try="$ac_link"
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_link") 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); } && {
39426 test -z "$ac_c_werror_flag" ||
39427 test ! -s conftest.err
39428 } && test -s conftest$ac_exeext && {
39429 test "$cross_compiling" = yes ||
39430 $as_test_x conftest$ac_exeext
39431 }; then
39432 ac_cv_lib_jbig_jbg_dec_init=yes
39433else
39434 $as_echo "$as_me: failed program was:" >&5
39435sed 's/^/| /' conftest.$ac_ext >&5
39436
39437 ac_cv_lib_jbig_jbg_dec_init=no
39438fi
39439
39440rm -rf conftest.dSYM
39441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39442 conftest$ac_exeext conftest.$ac_ext
39443LIBS=$ac_check_lib_save_LIBS
39444fi
39445{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
39446$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
39447if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
39448 passed=`expr $passed + 1`
39449else
39450 failed=`expr $failed + 1`
39451fi
39452
39453 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
39454$as_echo_n "checking if JBIG package is complete... " >&6; }
39455 if test $passed -gt 0; then
39456 if test $failed -gt 0; then
39457 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39458$as_echo "no -- some components failed test" >&6; }
39459 have_jbig='no (failed tests)'
39460 else
39461 JBIG_LIBS='-ljbig'
39462 LIBS="$JBIG_LIBS $LIBS"
39463
39464cat >>confdefs.h <<\_ACEOF
39465#define JBIG_DELEGATE 1
39466_ACEOF
39467
39468 { $as_echo "$as_me:$LINENO: result: yes" >&5
39469$as_echo "yes" >&6; }
39470 have_jbig='yes'
39471 fi
39472 else
39473 { $as_echo "$as_me:$LINENO: result: no" >&5
39474$as_echo "no" >&6; }
39475 fi
39476fi
39477 if test "$have_jbig" = 'yes'; then
39478 JBIG_DELEGATE_TRUE=
39479 JBIG_DELEGATE_FALSE='#'
39480else
39481 JBIG_DELEGATE_TRUE='#'
39482 JBIG_DELEGATE_FALSE=
39483fi
39484
39485
39486
39487
39488#
39489# Check for JPEG delegate library.
39490#
39491
39492# Check whether --with-jpeg was given.
39493if test "${with_jpeg+set}" = set; then
39494 withval=$with_jpeg; with_jpeg=$withval
39495else
39496 with_jpeg='yes'
39497fi
39498
39499
39500if test "$with_jpeg" != 'yes'; then
39501 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
39502fi
39503
39504have_jpeg='no'
39505JPEG_LIBS=''
39506if test "$with_jpeg" != 'no'; then
39507 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39508$as_echo "-------------------------------------------------------------" >&6; }
39509 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
39510$as_echo_n "checking for JPEG... " >&6; }
39511 { $as_echo "$as_me:$LINENO: result: " >&5
39512$as_echo "" >&6; }
39513 failed=0
39514 passed=0
39515 if test "${ac_cv_header_jconfig_h+set}" = set; then
39516 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39517$as_echo_n "checking for jconfig.h... " >&6; }
39518if test "${ac_cv_header_jconfig_h+set}" = set; then
39519 $as_echo_n "(cached) " >&6
39520fi
39521{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39522$as_echo "$ac_cv_header_jconfig_h" >&6; }
39523else
39524 # Is the header compilable?
39525{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
39526$as_echo_n "checking jconfig.h usability... " >&6; }
39527cat >conftest.$ac_ext <<_ACEOF
39528/* confdefs.h. */
39529_ACEOF
39530cat confdefs.h >>conftest.$ac_ext
39531cat >>conftest.$ac_ext <<_ACEOF
39532/* end confdefs.h. */
39533$ac_includes_default
39534#include <jconfig.h>
39535_ACEOF
39536rm -f conftest.$ac_objext
39537if { (ac_try="$ac_compile"
39538case "(($ac_try" in
39539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39540 *) ac_try_echo=$ac_try;;
39541esac
39542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39543$as_echo "$ac_try_echo") >&5
39544 (eval "$ac_compile") 2>conftest.er1
39545 ac_status=$?
39546 grep -v '^ *+' conftest.er1 >conftest.err
39547 rm -f conftest.er1
39548 cat conftest.err >&5
39549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); } && {
39551 test -z "$ac_c_werror_flag" ||
39552 test ! -s conftest.err
39553 } && test -s conftest.$ac_objext; then
39554 ac_header_compiler=yes
39555else
39556 $as_echo "$as_me: failed program was:" >&5
39557sed 's/^/| /' conftest.$ac_ext >&5
39558
39559 ac_header_compiler=no
39560fi
39561
39562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39563{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39564$as_echo "$ac_header_compiler" >&6; }
39565
39566# Is the header present?
39567{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
39568$as_echo_n "checking jconfig.h presence... " >&6; }
39569cat >conftest.$ac_ext <<_ACEOF
39570/* confdefs.h. */
39571_ACEOF
39572cat confdefs.h >>conftest.$ac_ext
39573cat >>conftest.$ac_ext <<_ACEOF
39574/* end confdefs.h. */
39575#include <jconfig.h>
39576_ACEOF
39577if { (ac_try="$ac_cpp conftest.$ac_ext"
39578case "(($ac_try" in
39579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39580 *) ac_try_echo=$ac_try;;
39581esac
39582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39583$as_echo "$ac_try_echo") >&5
39584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39585 ac_status=$?
39586 grep -v '^ *+' conftest.er1 >conftest.err
39587 rm -f conftest.er1
39588 cat conftest.err >&5
39589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } >/dev/null && {
39591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39592 test ! -s conftest.err
39593 }; then
39594 ac_header_preproc=yes
39595else
39596 $as_echo "$as_me: failed program was:" >&5
39597sed 's/^/| /' conftest.$ac_ext >&5
39598
39599 ac_header_preproc=no
39600fi
39601
39602rm -f conftest.err conftest.$ac_ext
39603{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39604$as_echo "$ac_header_preproc" >&6; }
39605
39606# So? What about this header?
39607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39608 yes:no: )
39609 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39610$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39611 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39612$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39613 ac_header_preproc=yes
39614 ;;
39615 no:yes:* )
39616 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39617$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39618 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39619$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39620 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39621$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39622 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39623$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39624 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39625$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39626 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39627$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39628 ( cat <<\_ASBOX
39629## ----------------------------------------- ##
39630## Report this to http://www.imagemagick.org ##
39631## ----------------------------------------- ##
39632_ASBOX
39633 ) | sed "s/^/$as_me: WARNING: /" >&2
39634 ;;
39635esac
39636{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39637$as_echo_n "checking for jconfig.h... " >&6; }
39638if test "${ac_cv_header_jconfig_h+set}" = set; then
39639 $as_echo_n "(cached) " >&6
39640else
39641 ac_cv_header_jconfig_h=$ac_header_preproc
39642fi
39643{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39644$as_echo "$ac_cv_header_jconfig_h" >&6; }
39645
39646fi
39647if test "x$ac_cv_header_jconfig_h" = x""yes; then
39648 passed=`expr $passed + 1`
39649else
39650 failed=`expr $failed + 1`
39651fi
39652
39653
39654 if test "${ac_cv_header_jerror_h+set}" = set; then
39655 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39656$as_echo_n "checking for jerror.h... " >&6; }
39657if test "${ac_cv_header_jerror_h+set}" = set; then
39658 $as_echo_n "(cached) " >&6
39659fi
39660{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39661$as_echo "$ac_cv_header_jerror_h" >&6; }
39662else
39663 # Is the header compilable?
39664{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39665$as_echo_n "checking jerror.h usability... " >&6; }
39666cat >conftest.$ac_ext <<_ACEOF
39667/* confdefs.h. */
39668_ACEOF
39669cat confdefs.h >>conftest.$ac_ext
39670cat >>conftest.$ac_ext <<_ACEOF
39671/* end confdefs.h. */
39672$ac_includes_default
39673#include <jerror.h>
39674_ACEOF
39675rm -f conftest.$ac_objext
39676if { (ac_try="$ac_compile"
39677case "(($ac_try" in
39678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39679 *) ac_try_echo=$ac_try;;
39680esac
39681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39682$as_echo "$ac_try_echo") >&5
39683 (eval "$ac_compile") 2>conftest.er1
39684 ac_status=$?
39685 grep -v '^ *+' conftest.er1 >conftest.err
39686 rm -f conftest.er1
39687 cat conftest.err >&5
39688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689 (exit $ac_status); } && {
39690 test -z "$ac_c_werror_flag" ||
39691 test ! -s conftest.err
39692 } && test -s conftest.$ac_objext; then
39693 ac_header_compiler=yes
39694else
39695 $as_echo "$as_me: failed program was:" >&5
39696sed 's/^/| /' conftest.$ac_ext >&5
39697
39698 ac_header_compiler=no
39699fi
39700
39701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39702{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39703$as_echo "$ac_header_compiler" >&6; }
39704
39705# Is the header present?
39706{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39707$as_echo_n "checking jerror.h presence... " >&6; }
39708cat >conftest.$ac_ext <<_ACEOF
39709/* confdefs.h. */
39710_ACEOF
39711cat confdefs.h >>conftest.$ac_ext
39712cat >>conftest.$ac_ext <<_ACEOF
39713/* end confdefs.h. */
39714#include <jerror.h>
39715_ACEOF
39716if { (ac_try="$ac_cpp conftest.$ac_ext"
39717case "(($ac_try" in
39718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39719 *) ac_try_echo=$ac_try;;
39720esac
39721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39722$as_echo "$ac_try_echo") >&5
39723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39724 ac_status=$?
39725 grep -v '^ *+' conftest.er1 >conftest.err
39726 rm -f conftest.er1
39727 cat conftest.err >&5
39728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729 (exit $ac_status); } >/dev/null && {
39730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39731 test ! -s conftest.err
39732 }; then
39733 ac_header_preproc=yes
39734else
39735 $as_echo "$as_me: failed program was:" >&5
39736sed 's/^/| /' conftest.$ac_ext >&5
39737
39738 ac_header_preproc=no
39739fi
39740
39741rm -f conftest.err conftest.$ac_ext
39742{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39743$as_echo "$ac_header_preproc" >&6; }
39744
39745# So? What about this header?
39746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39747 yes:no: )
39748 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
39749$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39750 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
39751$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
39752 ac_header_preproc=yes
39753 ;;
39754 no:yes:* )
39755 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
39756$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
39757 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
39758$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
39759 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
39760$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
39761 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
39762$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
39763 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
39764$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
39765 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
39766$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
39767 ( cat <<\_ASBOX
39768## ----------------------------------------- ##
39769## Report this to http://www.imagemagick.org ##
39770## ----------------------------------------- ##
39771_ASBOX
39772 ) | sed "s/^/$as_me: WARNING: /" >&2
39773 ;;
39774esac
39775{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39776$as_echo_n "checking for jerror.h... " >&6; }
39777if test "${ac_cv_header_jerror_h+set}" = set; then
39778 $as_echo_n "(cached) " >&6
39779else
39780 ac_cv_header_jerror_h=$ac_header_preproc
39781fi
39782{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39783$as_echo "$ac_cv_header_jerror_h" >&6; }
39784
39785fi
39786if test "x$ac_cv_header_jerror_h" = x""yes; then
39787 passed=`expr $passed + 1`
39788else
39789 failed=`expr $failed + 1`
39790fi
39791
39792
39793 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39794 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
39795$as_echo_n "checking for jmorecfg.h... " >&6; }
39796if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39797 $as_echo_n "(cached) " >&6
39798fi
39799{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
39800$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
39801else
39802 # Is the header compilable?
39803{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
39804$as_echo_n "checking jmorecfg.h usability... " >&6; }
39805cat >conftest.$ac_ext <<_ACEOF
39806/* confdefs.h. */
39807_ACEOF
39808cat confdefs.h >>conftest.$ac_ext
39809cat >>conftest.$ac_ext <<_ACEOF
39810/* end confdefs.h. */
39811$ac_includes_default
39812#include <jmorecfg.h>
39813_ACEOF
39814rm -f conftest.$ac_objext
39815if { (ac_try="$ac_compile"
39816case "(($ac_try" in
39817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39818 *) ac_try_echo=$ac_try;;
39819esac
39820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39821$as_echo "$ac_try_echo") >&5
39822 (eval "$ac_compile") 2>conftest.er1
39823 ac_status=$?
39824 grep -v '^ *+' conftest.er1 >conftest.err
39825 rm -f conftest.er1
39826 cat conftest.err >&5
39827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828 (exit $ac_status); } && {
39829 test -z "$ac_c_werror_flag" ||
39830 test ! -s conftest.err
39831 } && test -s conftest.$ac_objext; then
39832 ac_header_compiler=yes
39833else
39834 $as_echo "$as_me: failed program was:" >&5
39835sed 's/^/| /' conftest.$ac_ext >&5
39836
39837 ac_header_compiler=no
39838fi
39839
39840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39841{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39842$as_echo "$ac_header_compiler" >&6; }
39843
39844# Is the header present?
39845{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
39846$as_echo_n "checking jmorecfg.h presence... " >&6; }
39847cat >conftest.$ac_ext <<_ACEOF
39848/* confdefs.h. */
39849_ACEOF
39850cat confdefs.h >>conftest.$ac_ext
39851cat >>conftest.$ac_ext <<_ACEOF
39852/* end confdefs.h. */
39853#include <jmorecfg.h>
39854_ACEOF
39855if { (ac_try="$ac_cpp conftest.$ac_ext"
39856case "(($ac_try" in
39857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39858 *) ac_try_echo=$ac_try;;
39859esac
39860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39861$as_echo "$ac_try_echo") >&5
39862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39863 ac_status=$?
39864 grep -v '^ *+' conftest.er1 >conftest.err
39865 rm -f conftest.er1
39866 cat conftest.err >&5
39867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); } >/dev/null && {
39869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39870 test ! -s conftest.err
39871 }; then
39872 ac_header_preproc=yes
39873else
39874 $as_echo "$as_me: failed program was:" >&5
39875sed 's/^/| /' conftest.$ac_ext >&5
39876
39877 ac_header_preproc=no
39878fi
39879
39880rm -f conftest.err conftest.$ac_ext
39881{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39882$as_echo "$ac_header_preproc" >&6; }
39883
39884# So? What about this header?
39885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39886 yes:no: )
39887 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
39888$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39889 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
39890$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
39891 ac_header_preproc=yes
39892 ;;
39893 no:yes:* )
39894 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
39895$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
39896 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
39897$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
39898 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
39899$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
39900 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
39901$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
39902 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
39903$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
39904 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
39905$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
39906 ( cat <<\_ASBOX
39907## ----------------------------------------- ##
39908## Report this to http://www.imagemagick.org ##
39909## ----------------------------------------- ##
39910_ASBOX
39911 ) | sed "s/^/$as_me: WARNING: /" >&2
39912 ;;
39913esac
39914{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
39915$as_echo_n "checking for jmorecfg.h... " >&6; }
39916if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39917 $as_echo_n "(cached) " >&6
39918else
39919 ac_cv_header_jmorecfg_h=$ac_header_preproc
39920fi
39921{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
39922$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
39923
39924fi
39925if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
39926 passed=`expr $passed + 1`
39927else
39928 failed=`expr $failed + 1`
39929fi
39930
39931
39932 if test "${ac_cv_header_jpeglib_h+set}" = set; then
39933 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
39934$as_echo_n "checking for jpeglib.h... " >&6; }
39935if test "${ac_cv_header_jpeglib_h+set}" = set; then
39936 $as_echo_n "(cached) " >&6
39937fi
39938{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
39939$as_echo "$ac_cv_header_jpeglib_h" >&6; }
39940else
39941 # Is the header compilable?
39942{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
39943$as_echo_n "checking jpeglib.h usability... " >&6; }
39944cat >conftest.$ac_ext <<_ACEOF
39945/* confdefs.h. */
39946_ACEOF
39947cat confdefs.h >>conftest.$ac_ext
39948cat >>conftest.$ac_ext <<_ACEOF
39949/* end confdefs.h. */
39950$ac_includes_default
39951#include <jpeglib.h>
39952_ACEOF
39953rm -f conftest.$ac_objext
39954if { (ac_try="$ac_compile"
39955case "(($ac_try" in
39956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957 *) ac_try_echo=$ac_try;;
39958esac
39959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39960$as_echo "$ac_try_echo") >&5
39961 (eval "$ac_compile") 2>conftest.er1
39962 ac_status=$?
39963 grep -v '^ *+' conftest.er1 >conftest.err
39964 rm -f conftest.er1
39965 cat conftest.err >&5
39966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); } && {
39968 test -z "$ac_c_werror_flag" ||
39969 test ! -s conftest.err
39970 } && test -s conftest.$ac_objext; then
39971 ac_header_compiler=yes
39972else
39973 $as_echo "$as_me: failed program was:" >&5
39974sed 's/^/| /' conftest.$ac_ext >&5
39975
39976 ac_header_compiler=no
39977fi
39978
39979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39980{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39981$as_echo "$ac_header_compiler" >&6; }
39982
39983# Is the header present?
39984{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
39985$as_echo_n "checking jpeglib.h presence... " >&6; }
39986cat >conftest.$ac_ext <<_ACEOF
39987/* confdefs.h. */
39988_ACEOF
39989cat confdefs.h >>conftest.$ac_ext
39990cat >>conftest.$ac_ext <<_ACEOF
39991/* end confdefs.h. */
39992#include <jpeglib.h>
39993_ACEOF
39994if { (ac_try="$ac_cpp conftest.$ac_ext"
39995case "(($ac_try" in
39996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39997 *) ac_try_echo=$ac_try;;
39998esac
39999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40000$as_echo "$ac_try_echo") >&5
40001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40002 ac_status=$?
40003 grep -v '^ *+' conftest.er1 >conftest.err
40004 rm -f conftest.er1
40005 cat conftest.err >&5
40006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007 (exit $ac_status); } >/dev/null && {
40008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40009 test ! -s conftest.err
40010 }; then
40011 ac_header_preproc=yes
40012else
40013 $as_echo "$as_me: failed program was:" >&5
40014sed 's/^/| /' conftest.$ac_ext >&5
40015
40016 ac_header_preproc=no
40017fi
40018
40019rm -f conftest.err conftest.$ac_ext
40020{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40021$as_echo "$ac_header_preproc" >&6; }
40022
40023# So? What about this header?
40024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40025 yes:no: )
40026 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40027$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40028 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
40029$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
40030 ac_header_preproc=yes
40031 ;;
40032 no:yes:* )
40033 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
40034$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
40035 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
40036$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
40037 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
40038$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
40039 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
40040$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40041 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
40042$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
40043 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
40044$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
40045 ( cat <<\_ASBOX
40046## ----------------------------------------- ##
40047## Report this to http://www.imagemagick.org ##
40048## ----------------------------------------- ##
40049_ASBOX
40050 ) | sed "s/^/$as_me: WARNING: /" >&2
40051 ;;
40052esac
40053{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40054$as_echo_n "checking for jpeglib.h... " >&6; }
40055if test "${ac_cv_header_jpeglib_h+set}" = set; then
40056 $as_echo_n "(cached) " >&6
40057else
40058 ac_cv_header_jpeglib_h=$ac_header_preproc
40059fi
40060{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40061$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40062
40063fi
40064if test "x$ac_cv_header_jpeglib_h" = x""yes; then
40065 passed=`expr $passed + 1`
40066else
40067 failed=`expr $failed + 1`
40068fi
40069
40070
40071 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
40072$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40073if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
40074 $as_echo_n "(cached) " >&6
40075else
40076 ac_check_lib_save_LIBS=$LIBS
40077LIBS="-ljpeg $LIBS"
40078cat >conftest.$ac_ext <<_ACEOF
40079/* confdefs.h. */
40080_ACEOF
40081cat confdefs.h >>conftest.$ac_ext
40082cat >>conftest.$ac_ext <<_ACEOF
40083/* end confdefs.h. */
40084
40085/* Override any GCC internal prototype to avoid an error.
40086 Use char because int might match the return type of a GCC
40087 builtin and then its argument prototype would still apply. */
40088#ifdef __cplusplus
40089extern "C"
40090#endif
40091char jpeg_read_header ();
40092int
40093main ()
40094{
40095return jpeg_read_header ();
40096 ;
40097 return 0;
40098}
40099_ACEOF
40100rm -f conftest.$ac_objext conftest$ac_exeext
40101if { (ac_try="$ac_link"
40102case "(($ac_try" in
40103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40104 *) ac_try_echo=$ac_try;;
40105esac
40106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40107$as_echo "$ac_try_echo") >&5
40108 (eval "$ac_link") 2>conftest.er1
40109 ac_status=$?
40110 grep -v '^ *+' conftest.er1 >conftest.err
40111 rm -f conftest.er1
40112 cat conftest.err >&5
40113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114 (exit $ac_status); } && {
40115 test -z "$ac_c_werror_flag" ||
40116 test ! -s conftest.err
40117 } && test -s conftest$ac_exeext && {
40118 test "$cross_compiling" = yes ||
40119 $as_test_x conftest$ac_exeext
40120 }; then
40121 ac_cv_lib_jpeg_jpeg_read_header=yes
40122else
40123 $as_echo "$as_me: failed program was:" >&5
40124sed 's/^/| /' conftest.$ac_ext >&5
40125
40126 ac_cv_lib_jpeg_jpeg_read_header=no
40127fi
40128
40129rm -rf conftest.dSYM
40130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40131 conftest$ac_exeext conftest.$ac_ext
40132LIBS=$ac_check_lib_save_LIBS
40133fi
40134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40135$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40136if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
40137 passed=`expr $passed + 1`
40138else
40139 failed=`expr $failed + 1`
40140fi
40141
40142
40143# Test for compatible JPEG library
40144if test "$ac_cv_jpeg_version_ok" != 'yes'; then
40145{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
40146$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
40147if test "${ac_cv_jpeg_version_ok+set}" = set; then
40148 $as_echo_n "(cached) " >&6
40149else
40150 cat >conftest.$ac_ext <<_ACEOF
40151/* confdefs.h. */
40152_ACEOF
40153cat confdefs.h >>conftest.$ac_ext
40154cat >>conftest.$ac_ext <<_ACEOF
40155/* end confdefs.h. */
40156#include <stdio.h>
40157#include <stdlib.h>
40158#include <jpeglib.h>
40159
40160int
40161main ()
40162{
40163
40164#if JPEG_LIB_VERSION < 62
40165#error IJG JPEG library must be version 6b or newer!
40166#endif
40167return 0;
40168
40169 ;
40170 return 0;
40171}
40172_ACEOF
40173rm -f conftest.$ac_objext
40174if { (ac_try="$ac_compile"
40175case "(($ac_try" in
40176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40177 *) ac_try_echo=$ac_try;;
40178esac
40179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40180$as_echo "$ac_try_echo") >&5
40181 (eval "$ac_compile") 2>conftest.er1
40182 ac_status=$?
40183 grep -v '^ *+' conftest.er1 >conftest.err
40184 rm -f conftest.er1
40185 cat conftest.err >&5
40186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187 (exit $ac_status); } && {
40188 test -z "$ac_c_werror_flag" ||
40189 test ! -s conftest.err
40190 } && test -s conftest.$ac_objext; then
40191 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
40192else
40193 $as_echo "$as_me: failed program was:" >&5
40194sed 's/^/| /' conftest.$ac_ext >&5
40195
40196 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
40197fi
40198
40199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40200fi
40201{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
40202$as_echo "$ac_cv_jpeg_version_ok" >&6; }
40203fi
40204 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
40205$as_echo_n "checking if JPEG package is complete... " >&6; }
40206 if test $passed -gt 0; then
40207 if test $failed -gt 0; then
40208 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40209$as_echo "no -- some components failed test" >&6; }
40210 have_jpeg='no (failed tests)'
40211 else
40212 JPEG_LIBS='-ljpeg'
40213 LIBS="$JPEG_LIBS $LIBS"
40214
40215cat >>confdefs.h <<\_ACEOF
40216#define JPEG_DELEGATE 1
40217_ACEOF
40218
40219 { $as_echo "$as_me:$LINENO: result: yes" >&5
40220$as_echo "yes" >&6; }
40221 have_jpeg='yes'
40222 fi
40223 else
40224 { $as_echo "$as_me:$LINENO: result: no" >&5
40225$as_echo "no" >&6; }
40226 fi
40227fi
40228 if test "$have_jpeg" = 'yes'; then
40229 JPEG_DELEGATE_TRUE=
40230 JPEG_DELEGATE_FALSE='#'
40231else
40232 JPEG_DELEGATE_TRUE='#'
40233 JPEG_DELEGATE_FALSE=
40234fi
40235
40236
40237
40238
40239#
40240# Check for JPEG Version 2 delegate library.
40241#
40242
40243# Check whether --with-jp2 was given.
40244if test "${with_jp2+set}" = set; then
40245 withval=$with_jp2; with_jp2=$withval
40246else
40247 with_jp2='yes'
40248fi
40249
40250
40251if test "$with_jp2" != 'yes'; then
40252 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
40253fi
40254
40255have_jp2='no'
40256JP2_LIBS=''
40257if test "$with_jp2" != 'no'; then
40258 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40259$as_echo "-------------------------------------------------------------" >&6; }
40260 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
40261$as_echo_n "checking for JPEG Version 2... " >&6; }
40262 { $as_echo "$as_me:$LINENO: result: " >&5
40263$as_echo "" >&6; }
40264 failed=0
40265 passed=0
40266 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40267 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40268$as_echo_n "checking for jasper/jasper.h... " >&6; }
40269if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40270 $as_echo_n "(cached) " >&6
40271fi
40272{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40273$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40274else
40275 # Is the header compilable?
40276{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
40277$as_echo_n "checking jasper/jasper.h usability... " >&6; }
40278cat >conftest.$ac_ext <<_ACEOF
40279/* confdefs.h. */
40280_ACEOF
40281cat confdefs.h >>conftest.$ac_ext
40282cat >>conftest.$ac_ext <<_ACEOF
40283/* end confdefs.h. */
40284$ac_includes_default
40285#include <jasper/jasper.h>
40286_ACEOF
40287rm -f conftest.$ac_objext
40288if { (ac_try="$ac_compile"
40289case "(($ac_try" in
40290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40291 *) ac_try_echo=$ac_try;;
40292esac
40293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40294$as_echo "$ac_try_echo") >&5
40295 (eval "$ac_compile") 2>conftest.er1
40296 ac_status=$?
40297 grep -v '^ *+' conftest.er1 >conftest.err
40298 rm -f conftest.er1
40299 cat conftest.err >&5
40300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40301 (exit $ac_status); } && {
40302 test -z "$ac_c_werror_flag" ||
40303 test ! -s conftest.err
40304 } && test -s conftest.$ac_objext; then
40305 ac_header_compiler=yes
40306else
40307 $as_echo "$as_me: failed program was:" >&5
40308sed 's/^/| /' conftest.$ac_ext >&5
40309
40310 ac_header_compiler=no
40311fi
40312
40313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40314{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40315$as_echo "$ac_header_compiler" >&6; }
40316
40317# Is the header present?
40318{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
40319$as_echo_n "checking jasper/jasper.h presence... " >&6; }
40320cat >conftest.$ac_ext <<_ACEOF
40321/* confdefs.h. */
40322_ACEOF
40323cat confdefs.h >>conftest.$ac_ext
40324cat >>conftest.$ac_ext <<_ACEOF
40325/* end confdefs.h. */
40326#include <jasper/jasper.h>
40327_ACEOF
40328if { (ac_try="$ac_cpp conftest.$ac_ext"
40329case "(($ac_try" in
40330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40331 *) ac_try_echo=$ac_try;;
40332esac
40333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40334$as_echo "$ac_try_echo") >&5
40335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40336 ac_status=$?
40337 grep -v '^ *+' conftest.er1 >conftest.err
40338 rm -f conftest.er1
40339 cat conftest.err >&5
40340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40341 (exit $ac_status); } >/dev/null && {
40342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40343 test ! -s conftest.err
40344 }; then
40345 ac_header_preproc=yes
40346else
40347 $as_echo "$as_me: failed program was:" >&5
40348sed 's/^/| /' conftest.$ac_ext >&5
40349
40350 ac_header_preproc=no
40351fi
40352
40353rm -f conftest.err conftest.$ac_ext
40354{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40355$as_echo "$ac_header_preproc" >&6; }
40356
40357# So? What about this header?
40358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40359 yes:no: )
40360 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
40361$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40362 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
40363$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
40364 ac_header_preproc=yes
40365 ;;
40366 no:yes:* )
40367 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
40368$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
40369 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
40370$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
40371 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
40372$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
40373 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
40374$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
40375 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
40376$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
40377 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
40378$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
40379 ( cat <<\_ASBOX
40380## ----------------------------------------- ##
40381## Report this to http://www.imagemagick.org ##
40382## ----------------------------------------- ##
40383_ASBOX
40384 ) | sed "s/^/$as_me: WARNING: /" >&2
40385 ;;
40386esac
40387{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40388$as_echo_n "checking for jasper/jasper.h... " >&6; }
40389if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40390 $as_echo_n "(cached) " >&6
40391else
40392 ac_cv_header_jasper_jasper_h=$ac_header_preproc
40393fi
40394{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40395$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40396
40397fi
40398if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
40399 passed=`expr $passed + 1`
40400else
40401 failed=`expr $failed + 1`
40402fi
40403
40404
40405 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
40406$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
40407if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
40408 $as_echo_n "(cached) " >&6
40409else
40410 ac_check_lib_save_LIBS=$LIBS
40411LIBS="-ljasper $LIBS"
40412cat >conftest.$ac_ext <<_ACEOF
40413/* confdefs.h. */
40414_ACEOF
40415cat confdefs.h >>conftest.$ac_ext
40416cat >>conftest.$ac_ext <<_ACEOF
40417/* end confdefs.h. */
40418
40419/* Override any GCC internal prototype to avoid an error.
40420 Use char because int might match the return type of a GCC
40421 builtin and then its argument prototype would still apply. */
40422#ifdef __cplusplus
40423extern "C"
40424#endif
40425char jas_stream_fopen ();
40426int
40427main ()
40428{
40429return jas_stream_fopen ();
40430 ;
40431 return 0;
40432}
40433_ACEOF
40434rm -f conftest.$ac_objext conftest$ac_exeext
40435if { (ac_try="$ac_link"
40436case "(($ac_try" in
40437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40438 *) ac_try_echo=$ac_try;;
40439esac
40440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40441$as_echo "$ac_try_echo") >&5
40442 (eval "$ac_link") 2>conftest.er1
40443 ac_status=$?
40444 grep -v '^ *+' conftest.er1 >conftest.err
40445 rm -f conftest.er1
40446 cat conftest.err >&5
40447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40448 (exit $ac_status); } && {
40449 test -z "$ac_c_werror_flag" ||
40450 test ! -s conftest.err
40451 } && test -s conftest$ac_exeext && {
40452 test "$cross_compiling" = yes ||
40453 $as_test_x conftest$ac_exeext
40454 }; then
40455 ac_cv_lib_jasper_jas_stream_fopen=yes
40456else
40457 $as_echo "$as_me: failed program was:" >&5
40458sed 's/^/| /' conftest.$ac_ext >&5
40459
40460 ac_cv_lib_jasper_jas_stream_fopen=no
40461fi
40462
40463rm -rf conftest.dSYM
40464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40465 conftest$ac_exeext conftest.$ac_ext
40466LIBS=$ac_check_lib_save_LIBS
40467fi
40468{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
40469$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
40470if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
40471 passed=`expr $passed + 1`
40472else
40473 failed=`expr $failed + 1`
40474fi
40475
40476 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
40477$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
40478 if test $passed -gt 0; then
40479 if test $failed -gt 0; then
40480 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40481$as_echo "no -- some components failed test" >&6; }
40482 have_jp2='no (failed tests)'
40483 else
40484 JP2_LIBS='-ljasper'
40485 LIBS="$JP2_LIBS $LIBS"
40486
40487cat >>confdefs.h <<\_ACEOF
40488#define JP2_DELEGATE 1
40489_ACEOF
40490
40491 { $as_echo "$as_me:$LINENO: result: yes" >&5
40492$as_echo "yes" >&6; }
40493 have_jp2='yes'
40494 fi
40495 else
40496 { $as_echo "$as_me:$LINENO: result: no" >&5
40497$as_echo "no" >&6; }
40498 fi
40499fi
40500 if test "$have_jp2" = 'yes'; then
40501 JP2_DELEGATE_TRUE=
40502 JP2_DELEGATE_FALSE='#'
40503else
40504 JP2_DELEGATE_TRUE='#'
40505 JP2_DELEGATE_FALSE=
40506fi
40507
40508
40509
40510
40511#
40512# Check for LCMS delegate library.
40513#
40514
40515# Check whether --with-lcms was given.
40516if test "${with_lcms+set}" = set; then
40517 withval=$with_lcms; with_lcms=$withval
40518else
40519 with_lcms='yes'
40520fi
40521
40522
40523if test "$with_lcms" != 'yes'; then
40524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
40525fi
40526
40527have_lcms='no'
40528LCMS_LIBS=''
40529if test "$with_lcms" != 'no'; then
40530 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40531$as_echo "-------------------------------------------------------------" >&6; }
40532 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
40533$as_echo_n "checking for LCMS... " >&6; }
40534 { $as_echo "$as_me:$LINENO: result: " >&5
40535$as_echo "" >&6; }
40536 failed=0
40537 passed=0
40538 have_lcms_header='no'
40539 if test "${ac_cv_header_lcms_h+set}" = set; then
40540 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40541$as_echo_n "checking for lcms.h... " >&6; }
40542if test "${ac_cv_header_lcms_h+set}" = set; then
40543 $as_echo_n "(cached) " >&6
40544fi
40545{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40546$as_echo "$ac_cv_header_lcms_h" >&6; }
40547else
40548 # Is the header compilable?
40549{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
40550$as_echo_n "checking lcms.h usability... " >&6; }
40551cat >conftest.$ac_ext <<_ACEOF
40552/* confdefs.h. */
40553_ACEOF
40554cat confdefs.h >>conftest.$ac_ext
40555cat >>conftest.$ac_ext <<_ACEOF
40556/* end confdefs.h. */
40557$ac_includes_default
40558#include <lcms.h>
40559_ACEOF
40560rm -f conftest.$ac_objext
40561if { (ac_try="$ac_compile"
40562case "(($ac_try" in
40563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40564 *) ac_try_echo=$ac_try;;
40565esac
40566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40567$as_echo "$ac_try_echo") >&5
40568 (eval "$ac_compile") 2>conftest.er1
40569 ac_status=$?
40570 grep -v '^ *+' conftest.er1 >conftest.err
40571 rm -f conftest.er1
40572 cat conftest.err >&5
40573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); } && {
40575 test -z "$ac_c_werror_flag" ||
40576 test ! -s conftest.err
40577 } && test -s conftest.$ac_objext; then
40578 ac_header_compiler=yes
40579else
40580 $as_echo "$as_me: failed program was:" >&5
40581sed 's/^/| /' conftest.$ac_ext >&5
40582
40583 ac_header_compiler=no
40584fi
40585
40586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40587{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40588$as_echo "$ac_header_compiler" >&6; }
40589
40590# Is the header present?
40591{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40592$as_echo_n "checking lcms.h presence... " >&6; }
40593cat >conftest.$ac_ext <<_ACEOF
40594/* confdefs.h. */
40595_ACEOF
40596cat confdefs.h >>conftest.$ac_ext
40597cat >>conftest.$ac_ext <<_ACEOF
40598/* end confdefs.h. */
40599#include <lcms.h>
40600_ACEOF
40601if { (ac_try="$ac_cpp conftest.$ac_ext"
40602case "(($ac_try" in
40603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40604 *) ac_try_echo=$ac_try;;
40605esac
40606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40607$as_echo "$ac_try_echo") >&5
40608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40609 ac_status=$?
40610 grep -v '^ *+' conftest.er1 >conftest.err
40611 rm -f conftest.er1
40612 cat conftest.err >&5
40613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40614 (exit $ac_status); } >/dev/null && {
40615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40616 test ! -s conftest.err
40617 }; then
40618 ac_header_preproc=yes
40619else
40620 $as_echo "$as_me: failed program was:" >&5
40621sed 's/^/| /' conftest.$ac_ext >&5
40622
40623 ac_header_preproc=no
40624fi
40625
40626rm -f conftest.err conftest.$ac_ext
40627{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40628$as_echo "$ac_header_preproc" >&6; }
40629
40630# So? What about this header?
40631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40632 yes:no: )
40633 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40634$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40635 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40636$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40637 ac_header_preproc=yes
40638 ;;
40639 no:yes:* )
40640 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40641$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40642 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40643$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40644 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40645$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40646 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40647$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40648 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40649$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40650 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40651$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40652 ( cat <<\_ASBOX
40653## ----------------------------------------- ##
40654## Report this to http://www.imagemagick.org ##
40655## ----------------------------------------- ##
40656_ASBOX
40657 ) | sed "s/^/$as_me: WARNING: /" >&2
40658 ;;
40659esac
40660{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40661$as_echo_n "checking for lcms.h... " >&6; }
40662if test "${ac_cv_header_lcms_h+set}" = set; then
40663 $as_echo_n "(cached) " >&6
40664else
40665 ac_cv_header_lcms_h=$ac_header_preproc
40666fi
40667{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40668$as_echo "$ac_cv_header_lcms_h" >&6; }
40669
40670fi
40671if test "x$ac_cv_header_lcms_h" = x""yes; then
40672 have_lcms_header='yes'
40673fi
40674
40675
40676 if test "$have_lcms_header" = 'yes'; then
40677 passed=`expr $passed + 1`
40678
40679cat >>confdefs.h <<\_ACEOF
40680#define HAVE_LCMS_H 1
40681_ACEOF
40682
40683 else
40684 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40685 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40686$as_echo_n "checking for lcms/lcms.h... " >&6; }
40687if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40688 $as_echo_n "(cached) " >&6
40689fi
40690{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40691$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40692else
40693 # Is the header compilable?
40694{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40695$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40696cat >conftest.$ac_ext <<_ACEOF
40697/* confdefs.h. */
40698_ACEOF
40699cat confdefs.h >>conftest.$ac_ext
40700cat >>conftest.$ac_ext <<_ACEOF
40701/* end confdefs.h. */
40702$ac_includes_default
40703#include <lcms/lcms.h>
40704_ACEOF
40705rm -f conftest.$ac_objext
40706if { (ac_try="$ac_compile"
40707case "(($ac_try" in
40708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40709 *) ac_try_echo=$ac_try;;
40710esac
40711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40712$as_echo "$ac_try_echo") >&5
40713 (eval "$ac_compile") 2>conftest.er1
40714 ac_status=$?
40715 grep -v '^ *+' conftest.er1 >conftest.err
40716 rm -f conftest.er1
40717 cat conftest.err >&5
40718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719 (exit $ac_status); } && {
40720 test -z "$ac_c_werror_flag" ||
40721 test ! -s conftest.err
40722 } && test -s conftest.$ac_objext; then
40723 ac_header_compiler=yes
40724else
40725 $as_echo "$as_me: failed program was:" >&5
40726sed 's/^/| /' conftest.$ac_ext >&5
40727
40728 ac_header_compiler=no
40729fi
40730
40731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40732{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40733$as_echo "$ac_header_compiler" >&6; }
40734
40735# Is the header present?
40736{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40737$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40738cat >conftest.$ac_ext <<_ACEOF
40739/* confdefs.h. */
40740_ACEOF
40741cat confdefs.h >>conftest.$ac_ext
40742cat >>conftest.$ac_ext <<_ACEOF
40743/* end confdefs.h. */
40744#include <lcms/lcms.h>
40745_ACEOF
40746if { (ac_try="$ac_cpp conftest.$ac_ext"
40747case "(($ac_try" in
40748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40749 *) ac_try_echo=$ac_try;;
40750esac
40751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40752$as_echo "$ac_try_echo") >&5
40753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40754 ac_status=$?
40755 grep -v '^ *+' conftest.er1 >conftest.err
40756 rm -f conftest.er1
40757 cat conftest.err >&5
40758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759 (exit $ac_status); } >/dev/null && {
40760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40761 test ! -s conftest.err
40762 }; then
40763 ac_header_preproc=yes
40764else
40765 $as_echo "$as_me: failed program was:" >&5
40766sed 's/^/| /' conftest.$ac_ext >&5
40767
40768 ac_header_preproc=no
40769fi
40770
40771rm -f conftest.err conftest.$ac_ext
40772{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40773$as_echo "$ac_header_preproc" >&6; }
40774
40775# So? What about this header?
40776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40777 yes:no: )
40778 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40779$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40780 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
40781$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
40782 ac_header_preproc=yes
40783 ;;
40784 no:yes:* )
40785 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
40786$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
40787 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
40788$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
40789 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
40790$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
40791 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40792$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40793 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
40794$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
40795 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
40796$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
40797 ( cat <<\_ASBOX
40798## ----------------------------------------- ##
40799## Report this to http://www.imagemagick.org ##
40800## ----------------------------------------- ##
40801_ASBOX
40802 ) | sed "s/^/$as_me: WARNING: /" >&2
40803 ;;
40804esac
40805{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40806$as_echo_n "checking for lcms/lcms.h... " >&6; }
40807if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40808 $as_echo_n "(cached) " >&6
40809else
40810 ac_cv_header_lcms_lcms_h=$ac_header_preproc
40811fi
40812{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40813$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40814
40815fi
40816if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
40817 have_lcms_header='yes'
40818fi
40819
40820
40821 if test "$have_lcms_header" = 'yes'; then
40822 passed=`expr $passed + 1`
40823
40824cat >>confdefs.h <<\_ACEOF
40825#define HAVE_LCMS_LCMS_H 1
40826_ACEOF
40827
40828 else
40829 failed=`expr $failed + 1`
40830 fi
40831 fi
40832 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
40833$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
40834if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
40835 $as_echo_n "(cached) " >&6
40836else
40837 ac_check_lib_save_LIBS=$LIBS
40838LIBS="-llcms $LIBS"
40839cat >conftest.$ac_ext <<_ACEOF
40840/* confdefs.h. */
40841_ACEOF
40842cat confdefs.h >>conftest.$ac_ext
40843cat >>conftest.$ac_ext <<_ACEOF
40844/* end confdefs.h. */
40845
40846/* Override any GCC internal prototype to avoid an error.
40847 Use char because int might match the return type of a GCC
40848 builtin and then its argument prototype would still apply. */
40849#ifdef __cplusplus
40850extern "C"
40851#endif
40852char cmsOpenProfileFromMem ();
40853int
40854main ()
40855{
40856return cmsOpenProfileFromMem ();
40857 ;
40858 return 0;
40859}
40860_ACEOF
40861rm -f conftest.$ac_objext conftest$ac_exeext
40862if { (ac_try="$ac_link"
40863case "(($ac_try" in
40864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40865 *) ac_try_echo=$ac_try;;
40866esac
40867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40868$as_echo "$ac_try_echo") >&5
40869 (eval "$ac_link") 2>conftest.er1
40870 ac_status=$?
40871 grep -v '^ *+' conftest.er1 >conftest.err
40872 rm -f conftest.er1
40873 cat conftest.err >&5
40874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875 (exit $ac_status); } && {
40876 test -z "$ac_c_werror_flag" ||
40877 test ! -s conftest.err
40878 } && test -s conftest$ac_exeext && {
40879 test "$cross_compiling" = yes ||
40880 $as_test_x conftest$ac_exeext
40881 }; then
40882 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
40883else
40884 $as_echo "$as_me: failed program was:" >&5
40885sed 's/^/| /' conftest.$ac_ext >&5
40886
40887 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
40888fi
40889
40890rm -rf conftest.dSYM
40891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40892 conftest$ac_exeext conftest.$ac_ext
40893LIBS=$ac_check_lib_save_LIBS
40894fi
40895{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
40896$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
40897if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
40898 passed=`expr $passed + 1`
40899else
40900 failed=`expr $failed + 1`
40901fi
40902
40903 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
40904$as_echo_n "checking if LCMS package is complete... " >&6; }
40905 if test $passed -gt 0; then
40906 if test $failed -gt 0; then
40907 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40908$as_echo "no -- some components failed test" >&6; }
40909 have_lcms='no (failed tests)'
40910 else
40911 LCMS_LIBS='-llcms'
40912 LIBS="$LCMS_LIBS $LIBS"
40913
40914cat >>confdefs.h <<\_ACEOF
40915#define LCMS_DELEGATE 1
40916_ACEOF
40917
40918 { $as_echo "$as_me:$LINENO: result: yes" >&5
40919$as_echo "yes" >&6; }
40920 have_lcms='yes'
40921 fi
40922 else
40923 { $as_echo "$as_me:$LINENO: result: no" >&5
40924$as_echo "no" >&6; }
40925 fi
40926fi
40927 if test "$have_lcms" = 'yes'; then
40928 LCMS_DELEGATE_TRUE=
40929 LCMS_DELEGATE_FALSE='#'
40930else
40931 LCMS_DELEGATE_TRUE='#'
40932 LCMS_DELEGATE_FALSE=
40933fi
40934
40935
40936
40937
40938#
40939# Check for the LQR (Liquid Rescale) delegate library.
40940#
40941
40942# Check whether --with-lqr was given.
40943if test "${with_lqr+set}" = set; then
40944 withval=$with_lqr; with_lqr=$withval
40945else
40946 with_lqr='yes'
40947fi
40948
40949
40950if test "$with_lqr" != 'yes'; then
40951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
40952fi
40953
40954have_lqr='no'
40955LQR_CFLAGS=""
40956LQR_LIBS=""
40957LQR_PKG=""
40958if test "x$with_lqr" = "xyes"; then
40959 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40960$as_echo "-------------------------------------------------------------" >&6; }
40961
40962pkg_failed=no
40963{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
40964$as_echo_n "checking for LQR... " >&6; }
40965
40966if test -n "$LQR_CFLAGS"; then
40967 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
40968 elif test -n "$PKG_CONFIG"; then
40969 if test -n "$PKG_CONFIG" && \
40970 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
40971 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
40972 ac_status=$?
40973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); }; then
40975 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
40976else
40977 pkg_failed=yes
40978fi
40979 else
40980 pkg_failed=untried
40981fi
40982if test -n "$LQR_LIBS"; then
40983 pkg_cv_LQR_LIBS="$LQR_LIBS"
40984 elif test -n "$PKG_CONFIG"; then
40985 if test -n "$PKG_CONFIG" && \
40986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
40987 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
40988 ac_status=$?
40989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990 (exit $ac_status); }; then
40991 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
40992else
40993 pkg_failed=yes
40994fi
40995 else
40996 pkg_failed=untried
40997fi
40998
40999
41000
41001if test $pkg_failed = yes; then
41002
41003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41004 _pkg_short_errors_supported=yes
41005else
41006 _pkg_short_errors_supported=no
41007fi
41008 if test $_pkg_short_errors_supported = yes; then
41009 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
41010 else
41011 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
41012 fi
41013 # Put the nasty error message in config.log where it belongs
41014 echo "$LQR_PKG_ERRORS" >&5
41015
41016 { $as_echo "$as_me:$LINENO: result: no" >&5
41017$as_echo "no" >&6; }
41018 have_lqr=no
41019elif test $pkg_failed = untried; then
41020 have_lqr=no
41021else
41022 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
41023 LQR_LIBS=$pkg_cv_LQR_LIBS
41024 { $as_echo "$as_me:$LINENO: result: yes" >&5
41025$as_echo "yes" >&6; }
41026 have_lqr=yes
41027fi
41028 { $as_echo "$as_me:$LINENO: result: " >&5
41029$as_echo "" >&6; }
41030fi
41031
41032if test "$have_lqr" = 'yes'; then
41033
41034cat >>confdefs.h <<\_ACEOF
41035#define LQR_DELEGATE 1
41036_ACEOF
41037
41038 CFLAGS="$LQR_CFLAGS $CFLAGS"
41039fi
41040
41041 if test "$have_lqr" = 'yes'; then
41042 LQR_DELEGATE_TRUE=
41043 LQR_DELEGATE_FALSE='#'
41044else
41045 LQR_DELEGATE_TRUE='#'
41046 LQR_DELEGATE_FALSE=
41047fi
41048
41049
41050
41051
41052
41053#
41054# Check for the OpenEXR delegate library.
41055#
41056
41057# Check whether --with-openexr was given.
41058if test "${with_openexr+set}" = set; then
41059 withval=$with_openexr; with_openexr=$withval
41060else
41061 with_openexr='yes'
41062fi
41063
41064
41065if test "$with_openexr" != 'yes'; then
41066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
41067fi
41068
41069have_openexr='no'
41070OPENEXR_CFLAGS=""
41071OPENEXR_LIBS=""
41072OPENEXR_PKG=""
41073if test "x$with_openexr" = "xyes"; then
41074 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41075$as_echo "-------------------------------------------------------------" >&6; }
41076
41077pkg_failed=no
41078{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
41079$as_echo_n "checking for OPENEXR... " >&6; }
41080
41081if test -n "$OPENEXR_CFLAGS"; then
41082 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
41083 elif test -n "$PKG_CONFIG"; then
41084 if test -n "$PKG_CONFIG" && \
41085 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41086 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41087 ac_status=$?
41088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); }; then
41090 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
41091else
41092 pkg_failed=yes
41093fi
41094 else
41095 pkg_failed=untried
41096fi
41097if test -n "$OPENEXR_LIBS"; then
41098 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
41099 elif test -n "$PKG_CONFIG"; then
41100 if test -n "$PKG_CONFIG" && \
41101 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41102 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41103 ac_status=$?
41104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41105 (exit $ac_status); }; then
41106 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
41107else
41108 pkg_failed=yes
41109fi
41110 else
41111 pkg_failed=untried
41112fi
41113
41114
41115
41116if test $pkg_failed = yes; then
41117
41118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41119 _pkg_short_errors_supported=yes
41120else
41121 _pkg_short_errors_supported=no
41122fi
41123 if test $_pkg_short_errors_supported = yes; then
41124 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
41125 else
41126 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
41127 fi
41128 # Put the nasty error message in config.log where it belongs
41129 echo "$OPENEXR_PKG_ERRORS" >&5
41130
41131 { $as_echo "$as_me:$LINENO: result: no" >&5
41132$as_echo "no" >&6; }
41133 have_openexr=no
41134elif test $pkg_failed = untried; then
41135 have_openexr=no
41136else
41137 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
41138 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
41139 { $as_echo "$as_me:$LINENO: result: yes" >&5
41140$as_echo "yes" >&6; }
41141 have_openexr=yes
41142fi
41143 { $as_echo "$as_me:$LINENO: result: " >&5
41144$as_echo "" >&6; }
41145fi
41146
41147if test "$have_openexr" = 'yes'; then
41148
41149cat >>confdefs.h <<\_ACEOF
41150#define OPENEXR_DELEGATE 1
41151_ACEOF
41152
41153 if test "$with_modules" = 'no'; then
41154 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
41155 fi
41156fi
41157
41158 if test "$have_openexr" = 'yes'; then
41159 OPENEXR_DELEGATE_TRUE=
41160 OPENEXR_DELEGATE_FALSE='#'
41161else
41162 OPENEXR_DELEGATE_TRUE='#'
41163 OPENEXR_DELEGATE_FALSE=
41164fi
41165
41166
41167
41168
41169
41170#
41171# Check for PNG delegate library.
41172#
41173
41174# Check whether --with-png was given.
41175if test "${with_png+set}" = set; then
41176 withval=$with_png; with_png=$withval
41177else
41178 with_png='yes'
41179fi
41180
41181
41182if test "$with_png" != 'yes'; then
41183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
41184fi
41185
41186have_png='no'
41187PNG_LIBS=''
41188if test "$with_png" != 'no'; then
41189 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41190$as_echo "-------------------------------------------------------------" >&6; }
41191 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
41192$as_echo_n "checking for PNG... " >&6; }
41193 { $as_echo "$as_me:$LINENO: result: " >&5
41194$as_echo "" >&6; }
41195 failed=0
41196 passed=0
41197 if test "${ac_cv_header_png_h+set}" = set; then
41198 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
41199$as_echo_n "checking for png.h... " >&6; }
41200if test "${ac_cv_header_png_h+set}" = set; then
41201 $as_echo_n "(cached) " >&6
41202fi
41203{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41204$as_echo "$ac_cv_header_png_h" >&6; }
41205else
41206 # Is the header compilable?
41207{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
41208$as_echo_n "checking png.h usability... " >&6; }
41209cat >conftest.$ac_ext <<_ACEOF
41210/* confdefs.h. */
41211_ACEOF
41212cat confdefs.h >>conftest.$ac_ext
41213cat >>conftest.$ac_ext <<_ACEOF
41214/* end confdefs.h. */
41215$ac_includes_default
41216#include <png.h>
41217_ACEOF
41218rm -f conftest.$ac_objext
41219if { (ac_try="$ac_compile"
41220case "(($ac_try" in
41221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41222 *) ac_try_echo=$ac_try;;
41223esac
41224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41225$as_echo "$ac_try_echo") >&5
41226 (eval "$ac_compile") 2>conftest.er1
41227 ac_status=$?
41228 grep -v '^ *+' conftest.er1 >conftest.err
41229 rm -f conftest.er1
41230 cat conftest.err >&5
41231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); } && {
41233 test -z "$ac_c_werror_flag" ||
41234 test ! -s conftest.err
41235 } && test -s conftest.$ac_objext; then
41236 ac_header_compiler=yes
41237else
41238 $as_echo "$as_me: failed program was:" >&5
41239sed 's/^/| /' conftest.$ac_ext >&5
41240
41241 ac_header_compiler=no
41242fi
41243
41244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41245{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41246$as_echo "$ac_header_compiler" >&6; }
41247
41248# Is the header present?
41249{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
41250$as_echo_n "checking png.h presence... " >&6; }
41251cat >conftest.$ac_ext <<_ACEOF
41252/* confdefs.h. */
41253_ACEOF
41254cat confdefs.h >>conftest.$ac_ext
41255cat >>conftest.$ac_ext <<_ACEOF
41256/* end confdefs.h. */
41257#include <png.h>
41258_ACEOF
41259if { (ac_try="$ac_cpp conftest.$ac_ext"
41260case "(($ac_try" in
41261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41262 *) ac_try_echo=$ac_try;;
41263esac
41264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41265$as_echo "$ac_try_echo") >&5
41266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41267 ac_status=$?
41268 grep -v '^ *+' conftest.er1 >conftest.err
41269 rm -f conftest.er1
41270 cat conftest.err >&5
41271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41272 (exit $ac_status); } >/dev/null && {
41273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41274 test ! -s conftest.err
41275 }; then
41276 ac_header_preproc=yes
41277else
41278 $as_echo "$as_me: failed program was:" >&5
41279sed 's/^/| /' conftest.$ac_ext >&5
41280
41281 ac_header_preproc=no
41282fi
41283
41284rm -f conftest.err conftest.$ac_ext
41285{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41286$as_echo "$ac_header_preproc" >&6; }
41287
41288# So? What about this header?
41289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41290 yes:no: )
41291 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
41292$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41293 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
41294$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
41295 ac_header_preproc=yes
41296 ;;
41297 no:yes:* )
41298 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
41299$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
41300 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
41301$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
41302 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
41303$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
41304 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
41305$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
41306 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
41307$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
41308 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
41309$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
41310 ( cat <<\_ASBOX
41311## ----------------------------------------- ##
41312## Report this to http://www.imagemagick.org ##
41313## ----------------------------------------- ##
41314_ASBOX
41315 ) | sed "s/^/$as_me: WARNING: /" >&2
41316 ;;
41317esac
41318{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
41319$as_echo_n "checking for png.h... " >&6; }
41320if test "${ac_cv_header_png_h+set}" = set; then
41321 $as_echo_n "(cached) " >&6
41322else
41323 ac_cv_header_png_h=$ac_header_preproc
41324fi
41325{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41326$as_echo "$ac_cv_header_png_h" >&6; }
41327
41328fi
41329if test "x$ac_cv_header_png_h" = x""yes; then
41330 passed=`expr $passed + 1`
41331else
41332 failed=`expr $failed + 1`
41333fi
41334
41335
41336 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
41337$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
41338if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
41339 $as_echo_n "(cached) " >&6
41340else
41341 ac_check_lib_save_LIBS=$LIBS
41342LIBS="-lpng $LIBS"
41343cat >conftest.$ac_ext <<_ACEOF
41344/* confdefs.h. */
41345_ACEOF
41346cat confdefs.h >>conftest.$ac_ext
41347cat >>conftest.$ac_ext <<_ACEOF
41348/* end confdefs.h. */
41349
41350/* Override any GCC internal prototype to avoid an error.
41351 Use char because int might match the return type of a GCC
41352 builtin and then its argument prototype would still apply. */
41353#ifdef __cplusplus
41354extern "C"
41355#endif
41356char png_get_io_ptr ();
41357int
41358main ()
41359{
41360return png_get_io_ptr ();
41361 ;
41362 return 0;
41363}
41364_ACEOF
41365rm -f conftest.$ac_objext conftest$ac_exeext
41366if { (ac_try="$ac_link"
41367case "(($ac_try" in
41368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41369 *) ac_try_echo=$ac_try;;
41370esac
41371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41372$as_echo "$ac_try_echo") >&5
41373 (eval "$ac_link") 2>conftest.er1
41374 ac_status=$?
41375 grep -v '^ *+' conftest.er1 >conftest.err
41376 rm -f conftest.er1
41377 cat conftest.err >&5
41378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379 (exit $ac_status); } && {
41380 test -z "$ac_c_werror_flag" ||
41381 test ! -s conftest.err
41382 } && test -s conftest$ac_exeext && {
41383 test "$cross_compiling" = yes ||
41384 $as_test_x conftest$ac_exeext
41385 }; then
41386 ac_cv_lib_png_png_get_io_ptr=yes
41387else
41388 $as_echo "$as_me: failed program was:" >&5
41389sed 's/^/| /' conftest.$ac_ext >&5
41390
41391 ac_cv_lib_png_png_get_io_ptr=no
41392fi
41393
41394rm -rf conftest.dSYM
41395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41396 conftest$ac_exeext conftest.$ac_ext
41397LIBS=$ac_check_lib_save_LIBS
41398fi
41399{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
41400$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
41401if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
41402 passed=`expr $passed + 1`
41403else
41404 failed=`expr $failed + 1`
41405fi
41406
41407 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
41408$as_echo_n "checking if PNG package is complete... " >&6; }
41409 if test $passed -gt 0; then
41410 if test $failed -gt 0; then
41411 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41412$as_echo "no -- some components failed test" >&6; }
41413 have_png='no (failed tests)'
41414 else
41415 PNG_LIBS='-lpng'
41416 LIBS="$PNG_LIBS $LIBS"
41417
41418cat >>confdefs.h <<\_ACEOF
41419#define PNG_DELEGATE 1
41420_ACEOF
41421
41422 { $as_echo "$as_me:$LINENO: result: yes" >&5
41423$as_echo "yes" >&6; }
41424 have_png='yes'
41425 fi
41426 else
41427 { $as_echo "$as_me:$LINENO: result: no" >&5
41428$as_echo "no" >&6; }
41429 fi
41430fi
41431 if test "$have_png" = 'yes'; then
41432 PNG_DELEGATE_TRUE=
41433 PNG_DELEGATE_FALSE='#'
41434else
41435 PNG_DELEGATE_TRUE='#'
41436 PNG_DELEGATE_FALSE=
41437fi
41438
41439
41440
41441
41442#
41443# Check for RSVG delegate library.
41444#
41445
41446# Check whether --with-rsvg was given.
41447if test "${with_rsvg+set}" = set; then
41448 withval=$with_rsvg; with_rsvg=$withval
41449else
41450 with_rsvg=$have_x
41451fi
41452
41453
41454if test "$with_rsvg" != 'yes'; then
41455 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
41456fi
41457
41458have_rsvg='no'
41459have_cairo='no'
41460RSVG_CFLAGS=""
41461RSVG_LIBS=""
41462RSVG_PKG=""
41463if test "x$with_rsvg" = "xyes"; then
41464 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41465$as_echo "-------------------------------------------------------------" >&6; }
41466
41467pkg_failed=no
41468{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
41469$as_echo_n "checking for RSVG... " >&6; }
41470
41471if test -n "$RSVG_CFLAGS"; then
41472 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
41473 elif test -n "$PKG_CONFIG"; then
41474 if test -n "$PKG_CONFIG" && \
41475 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41476 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41477 ac_status=$?
41478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); }; then
41480 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41481else
41482 pkg_failed=yes
41483fi
41484 else
41485 pkg_failed=untried
41486fi
41487if test -n "$RSVG_LIBS"; then
41488 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
41489 elif test -n "$PKG_CONFIG"; then
41490 if test -n "$PKG_CONFIG" && \
41491 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41492 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41493 ac_status=$?
41494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495 (exit $ac_status); }; then
41496 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41497else
41498 pkg_failed=yes
41499fi
41500 else
41501 pkg_failed=untried
41502fi
41503
41504
41505
41506if test $pkg_failed = yes; then
41507
41508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41509 _pkg_short_errors_supported=yes
41510else
41511 _pkg_short_errors_supported=no
41512fi
41513 if test $_pkg_short_errors_supported = yes; then
41514 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41515 else
41516 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41517 fi
41518 # Put the nasty error message in config.log where it belongs
41519 echo "$RSVG_PKG_ERRORS" >&5
41520
41521 { $as_echo "$as_me:$LINENO: result: no" >&5
41522$as_echo "no" >&6; }
41523 have_rsvg=no
41524elif test $pkg_failed = untried; then
41525 have_rsvg=no
41526else
41527 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
41528 RSVG_LIBS=$pkg_cv_RSVG_LIBS
41529 { $as_echo "$as_me:$LINENO: result: yes" >&5
41530$as_echo "yes" >&6; }
41531 have_rsvg=yes
41532fi
41533 { $as_echo "$as_me:$LINENO: result: " >&5
41534$as_echo "" >&6; }
41535
41536pkg_failed=no
41537{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
41538$as_echo_n "checking for CAIRO_SVG... " >&6; }
41539
41540if test -n "$CAIRO_SVG_CFLAGS"; then
41541 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
41542 elif test -n "$PKG_CONFIG"; then
41543 if test -n "$PKG_CONFIG" && \
41544 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41545 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41546 ac_status=$?
41547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); }; then
41549 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
41550else
41551 pkg_failed=yes
41552fi
41553 else
41554 pkg_failed=untried
41555fi
41556if test -n "$CAIRO_SVG_LIBS"; then
41557 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
41558 elif test -n "$PKG_CONFIG"; then
41559 if test -n "$PKG_CONFIG" && \
41560 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41561 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41562 ac_status=$?
41563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); }; then
41565 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
41566else
41567 pkg_failed=yes
41568fi
41569 else
41570 pkg_failed=untried
41571fi
41572
41573
41574
41575if test $pkg_failed = yes; then
41576
41577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41578 _pkg_short_errors_supported=yes
41579else
41580 _pkg_short_errors_supported=no
41581fi
41582 if test $_pkg_short_errors_supported = yes; then
41583 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41584 else
41585 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41586 fi
41587 # Put the nasty error message in config.log where it belongs
41588 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41589
41590 { $as_echo "$as_me:$LINENO: result: no" >&5
41591$as_echo "no" >&6; }
41592 have_cairo=no
41593elif test $pkg_failed = untried; then
41594 have_cairo=no
41595else
41596 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41597 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41598 { $as_echo "$as_me:$LINENO: result: yes" >&5
41599$as_echo "yes" >&6; }
41600 have_cairo=yes
41601fi
41602 { $as_echo "$as_me:$LINENO: result: " >&5
41603$as_echo "" >&6; }
41604fi
41605
41606if test "$have_rsvg" = 'yes'; then
41607
41608cat >>confdefs.h <<\_ACEOF
41609#define RSVG_DELEGATE 1
41610_ACEOF
41611
41612 if test "$with_modules" = 'no'; then
41613 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41614 fi
41615fi
41616
41617if test "$have_cairo" = 'yes'; then
41618
41619cat >>confdefs.h <<\_ACEOF
41620#define CAIRO_DELEGATE 1
41621_ACEOF
41622
41623 if test "$with_modules" = 'no'; then
41624 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41625 fi
41626fi
41627
41628 if test "$have_rsvg" = 'yes'; then
41629 RSVG_DELEGATE_TRUE=
41630 RSVG_DELEGATE_FALSE='#'
41631else
41632 RSVG_DELEGATE_TRUE='#'
41633 RSVG_DELEGATE_FALSE=
41634fi
41635
41636 if test "$have_cairo" = 'yes'; then
41637 CAIRO_DELEGATE_TRUE=
41638 CAIRO_DELEGATE_FALSE='#'
41639else
41640 CAIRO_DELEGATE_TRUE='#'
41641 CAIRO_DELEGATE_FALSE=
41642fi
41643
41644
41645
41646
41647
41648#
41649# Check for TIFF delegate library.
41650#
41651
41652# Check whether --with-tiff was given.
41653if test "${with_tiff+set}" = set; then
41654 withval=$with_tiff; with_tiff=$withval
41655else
41656 with_tiff='yes'
41657fi
41658
41659
41660if test "$with_tiff" != 'yes'; then
41661 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41662fi
41663
41664have_tiff='no'
41665TIFF_LIBS=''
41666if test "$with_tiff" != 'no'; then
41667 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41668$as_echo "-------------------------------------------------------------" >&6; }
41669 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41670$as_echo_n "checking for TIFF... " >&6; }
41671 { $as_echo "$as_me:$LINENO: result: " >&5
41672$as_echo "" >&6; }
41673 failed=0
41674 passed=0
41675 if test "${ac_cv_header_tiff_h+set}" = set; then
41676 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41677$as_echo_n "checking for tiff.h... " >&6; }
41678if test "${ac_cv_header_tiff_h+set}" = set; then
41679 $as_echo_n "(cached) " >&6
41680fi
41681{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41682$as_echo "$ac_cv_header_tiff_h" >&6; }
41683else
41684 # Is the header compilable?
41685{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41686$as_echo_n "checking tiff.h usability... " >&6; }
41687cat >conftest.$ac_ext <<_ACEOF
41688/* confdefs.h. */
41689_ACEOF
41690cat confdefs.h >>conftest.$ac_ext
41691cat >>conftest.$ac_ext <<_ACEOF
41692/* end confdefs.h. */
41693$ac_includes_default
41694#include <tiff.h>
41695_ACEOF
41696rm -f conftest.$ac_objext
41697if { (ac_try="$ac_compile"
41698case "(($ac_try" in
41699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41700 *) ac_try_echo=$ac_try;;
41701esac
41702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41703$as_echo "$ac_try_echo") >&5
41704 (eval "$ac_compile") 2>conftest.er1
41705 ac_status=$?
41706 grep -v '^ *+' conftest.er1 >conftest.err
41707 rm -f conftest.er1
41708 cat conftest.err >&5
41709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); } && {
41711 test -z "$ac_c_werror_flag" ||
41712 test ! -s conftest.err
41713 } && test -s conftest.$ac_objext; then
41714 ac_header_compiler=yes
41715else
41716 $as_echo "$as_me: failed program was:" >&5
41717sed 's/^/| /' conftest.$ac_ext >&5
41718
41719 ac_header_compiler=no
41720fi
41721
41722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41723{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41724$as_echo "$ac_header_compiler" >&6; }
41725
41726# Is the header present?
41727{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41728$as_echo_n "checking tiff.h presence... " >&6; }
41729cat >conftest.$ac_ext <<_ACEOF
41730/* confdefs.h. */
41731_ACEOF
41732cat confdefs.h >>conftest.$ac_ext
41733cat >>conftest.$ac_ext <<_ACEOF
41734/* end confdefs.h. */
41735#include <tiff.h>
41736_ACEOF
41737if { (ac_try="$ac_cpp conftest.$ac_ext"
41738case "(($ac_try" in
41739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41740 *) ac_try_echo=$ac_try;;
41741esac
41742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41743$as_echo "$ac_try_echo") >&5
41744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41745 ac_status=$?
41746 grep -v '^ *+' conftest.er1 >conftest.err
41747 rm -f conftest.er1
41748 cat conftest.err >&5
41749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); } >/dev/null && {
41751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41752 test ! -s conftest.err
41753 }; then
41754 ac_header_preproc=yes
41755else
41756 $as_echo "$as_me: failed program was:" >&5
41757sed 's/^/| /' conftest.$ac_ext >&5
41758
41759 ac_header_preproc=no
41760fi
41761
41762rm -f conftest.err conftest.$ac_ext
41763{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41764$as_echo "$ac_header_preproc" >&6; }
41765
41766# So? What about this header?
41767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41768 yes:no: )
41769 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
41770$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41771 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
41772$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
41773 ac_header_preproc=yes
41774 ;;
41775 no:yes:* )
41776 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
41777$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
41778 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
41779$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
41780 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
41781$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
41782 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
41783$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
41784 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
41785$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
41786 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
41787$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
41788 ( cat <<\_ASBOX
41789## ----------------------------------------- ##
41790## Report this to http://www.imagemagick.org ##
41791## ----------------------------------------- ##
41792_ASBOX
41793 ) | sed "s/^/$as_me: WARNING: /" >&2
41794 ;;
41795esac
41796{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41797$as_echo_n "checking for tiff.h... " >&6; }
41798if test "${ac_cv_header_tiff_h+set}" = set; then
41799 $as_echo_n "(cached) " >&6
41800else
41801 ac_cv_header_tiff_h=$ac_header_preproc
41802fi
41803{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41804$as_echo "$ac_cv_header_tiff_h" >&6; }
41805
41806fi
41807if test "x$ac_cv_header_tiff_h" = x""yes; then
41808 passed=`expr $passed + 1`
41809else
41810 failed=`expr $failed + 1`
41811fi
41812
41813
41814 if test "${ac_cv_header_tiffio_h+set}" = set; then
41815 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
41816$as_echo_n "checking for tiffio.h... " >&6; }
41817if test "${ac_cv_header_tiffio_h+set}" = set; then
41818 $as_echo_n "(cached) " >&6
41819fi
41820{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
41821$as_echo "$ac_cv_header_tiffio_h" >&6; }
41822else
41823 # Is the header compilable?
41824{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
41825$as_echo_n "checking tiffio.h usability... " >&6; }
41826cat >conftest.$ac_ext <<_ACEOF
41827/* confdefs.h. */
41828_ACEOF
41829cat confdefs.h >>conftest.$ac_ext
41830cat >>conftest.$ac_ext <<_ACEOF
41831/* end confdefs.h. */
41832$ac_includes_default
41833#include <tiffio.h>
41834_ACEOF
41835rm -f conftest.$ac_objext
41836if { (ac_try="$ac_compile"
41837case "(($ac_try" in
41838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41839 *) ac_try_echo=$ac_try;;
41840esac
41841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41842$as_echo "$ac_try_echo") >&5
41843 (eval "$ac_compile") 2>conftest.er1
41844 ac_status=$?
41845 grep -v '^ *+' conftest.er1 >conftest.err
41846 rm -f conftest.er1
41847 cat conftest.err >&5
41848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); } && {
41850 test -z "$ac_c_werror_flag" ||
41851 test ! -s conftest.err
41852 } && test -s conftest.$ac_objext; then
41853 ac_header_compiler=yes
41854else
41855 $as_echo "$as_me: failed program was:" >&5
41856sed 's/^/| /' conftest.$ac_ext >&5
41857
41858 ac_header_compiler=no
41859fi
41860
41861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41862{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41863$as_echo "$ac_header_compiler" >&6; }
41864
41865# Is the header present?
41866{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
41867$as_echo_n "checking tiffio.h presence... " >&6; }
41868cat >conftest.$ac_ext <<_ACEOF
41869/* confdefs.h. */
41870_ACEOF
41871cat confdefs.h >>conftest.$ac_ext
41872cat >>conftest.$ac_ext <<_ACEOF
41873/* end confdefs.h. */
41874#include <tiffio.h>
41875_ACEOF
41876if { (ac_try="$ac_cpp conftest.$ac_ext"
41877case "(($ac_try" in
41878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41879 *) ac_try_echo=$ac_try;;
41880esac
41881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41882$as_echo "$ac_try_echo") >&5
41883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41884 ac_status=$?
41885 grep -v '^ *+' conftest.er1 >conftest.err
41886 rm -f conftest.er1
41887 cat conftest.err >&5
41888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); } >/dev/null && {
41890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41891 test ! -s conftest.err
41892 }; then
41893 ac_header_preproc=yes
41894else
41895 $as_echo "$as_me: failed program was:" >&5
41896sed 's/^/| /' conftest.$ac_ext >&5
41897
41898 ac_header_preproc=no
41899fi
41900
41901rm -f conftest.err conftest.$ac_ext
41902{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41903$as_echo "$ac_header_preproc" >&6; }
41904
41905# So? What about this header?
41906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41907 yes:no: )
41908 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
41909$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41910 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
41911$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
41912 ac_header_preproc=yes
41913 ;;
41914 no:yes:* )
41915 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
41916$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
41917 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
41918$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
41919 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
41920$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
41921 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
41922$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
41923 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
41924$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
41925 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
41926$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
41927 ( cat <<\_ASBOX
41928## ----------------------------------------- ##
41929## Report this to http://www.imagemagick.org ##
41930## ----------------------------------------- ##
41931_ASBOX
41932 ) | sed "s/^/$as_me: WARNING: /" >&2
41933 ;;
41934esac
41935{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
41936$as_echo_n "checking for tiffio.h... " >&6; }
41937if test "${ac_cv_header_tiffio_h+set}" = set; then
41938 $as_echo_n "(cached) " >&6
41939else
41940 ac_cv_header_tiffio_h=$ac_header_preproc
41941fi
41942{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
41943$as_echo "$ac_cv_header_tiffio_h" >&6; }
41944
41945fi
41946if test "x$ac_cv_header_tiffio_h" = x""yes; then
41947 passed=`expr $passed + 1`
41948else
41949 failed=`expr $failed + 1`
41950fi
41951
41952
41953 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
41954$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
41955if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
41956 $as_echo_n "(cached) " >&6
41957else
41958 ac_check_lib_save_LIBS=$LIBS
41959LIBS="-ltiff $LIBS"
41960cat >conftest.$ac_ext <<_ACEOF
41961/* confdefs.h. */
41962_ACEOF
41963cat confdefs.h >>conftest.$ac_ext
41964cat >>conftest.$ac_ext <<_ACEOF
41965/* end confdefs.h. */
41966
41967/* Override any GCC internal prototype to avoid an error.
41968 Use char because int might match the return type of a GCC
41969 builtin and then its argument prototype would still apply. */
41970#ifdef __cplusplus
41971extern "C"
41972#endif
41973char TIFFOpen ();
41974int
41975main ()
41976{
41977return TIFFOpen ();
41978 ;
41979 return 0;
41980}
41981_ACEOF
41982rm -f conftest.$ac_objext conftest$ac_exeext
41983if { (ac_try="$ac_link"
41984case "(($ac_try" in
41985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41986 *) ac_try_echo=$ac_try;;
41987esac
41988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41989$as_echo "$ac_try_echo") >&5
41990 (eval "$ac_link") 2>conftest.er1
41991 ac_status=$?
41992 grep -v '^ *+' conftest.er1 >conftest.err
41993 rm -f conftest.er1
41994 cat conftest.err >&5
41995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996 (exit $ac_status); } && {
41997 test -z "$ac_c_werror_flag" ||
41998 test ! -s conftest.err
41999 } && test -s conftest$ac_exeext && {
42000 test "$cross_compiling" = yes ||
42001 $as_test_x conftest$ac_exeext
42002 }; then
42003 ac_cv_lib_tiff_TIFFOpen=yes
42004else
42005 $as_echo "$as_me: failed program was:" >&5
42006sed 's/^/| /' conftest.$ac_ext >&5
42007
42008 ac_cv_lib_tiff_TIFFOpen=no
42009fi
42010
42011rm -rf conftest.dSYM
42012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42013 conftest$ac_exeext conftest.$ac_ext
42014LIBS=$ac_check_lib_save_LIBS
42015fi
42016{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
42017$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
42018if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
42019 passed=`expr $passed + 1`
42020else
42021 failed=`expr $failed + 1`
42022fi
42023
42024 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
42025$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
42026if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
42027 $as_echo_n "(cached) " >&6
42028else
42029 ac_check_lib_save_LIBS=$LIBS
42030LIBS="-ltiff $LIBS"
42031cat >conftest.$ac_ext <<_ACEOF
42032/* confdefs.h. */
42033_ACEOF
42034cat confdefs.h >>conftest.$ac_ext
42035cat >>conftest.$ac_ext <<_ACEOF
42036/* end confdefs.h. */
42037
42038/* Override any GCC internal prototype to avoid an error.
42039 Use char because int might match the return type of a GCC
42040 builtin and then its argument prototype would still apply. */
42041#ifdef __cplusplus
42042extern "C"
42043#endif
42044char TIFFClientOpen ();
42045int
42046main ()
42047{
42048return TIFFClientOpen ();
42049 ;
42050 return 0;
42051}
42052_ACEOF
42053rm -f conftest.$ac_objext conftest$ac_exeext
42054if { (ac_try="$ac_link"
42055case "(($ac_try" in
42056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42057 *) ac_try_echo=$ac_try;;
42058esac
42059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42060$as_echo "$ac_try_echo") >&5
42061 (eval "$ac_link") 2>conftest.er1
42062 ac_status=$?
42063 grep -v '^ *+' conftest.er1 >conftest.err
42064 rm -f conftest.er1
42065 cat conftest.err >&5
42066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067 (exit $ac_status); } && {
42068 test -z "$ac_c_werror_flag" ||
42069 test ! -s conftest.err
42070 } && test -s conftest$ac_exeext && {
42071 test "$cross_compiling" = yes ||
42072 $as_test_x conftest$ac_exeext
42073 }; then
42074 ac_cv_lib_tiff_TIFFClientOpen=yes
42075else
42076 $as_echo "$as_me: failed program was:" >&5
42077sed 's/^/| /' conftest.$ac_ext >&5
42078
42079 ac_cv_lib_tiff_TIFFClientOpen=no
42080fi
42081
42082rm -rf conftest.dSYM
42083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42084 conftest$ac_exeext conftest.$ac_ext
42085LIBS=$ac_check_lib_save_LIBS
42086fi
42087{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
42088$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
42089if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
42090 passed=`expr $passed + 1`
42091else
42092 failed=`expr $failed + 1`
42093fi
42094
42095 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
42096$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
42097if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
42098 $as_echo_n "(cached) " >&6
42099else
42100 ac_check_lib_save_LIBS=$LIBS
42101LIBS="-ltiff $LIBS"
42102cat >conftest.$ac_ext <<_ACEOF
42103/* confdefs.h. */
42104_ACEOF
42105cat confdefs.h >>conftest.$ac_ext
42106cat >>conftest.$ac_ext <<_ACEOF
42107/* end confdefs.h. */
42108
42109/* Override any GCC internal prototype to avoid an error.
42110 Use char because int might match the return type of a GCC
42111 builtin and then its argument prototype would still apply. */
42112#ifdef __cplusplus
42113extern "C"
42114#endif
42115char TIFFIsByteSwapped ();
42116int
42117main ()
42118{
42119return TIFFIsByteSwapped ();
42120 ;
42121 return 0;
42122}
42123_ACEOF
42124rm -f conftest.$ac_objext conftest$ac_exeext
42125if { (ac_try="$ac_link"
42126case "(($ac_try" in
42127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42128 *) ac_try_echo=$ac_try;;
42129esac
42130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42131$as_echo "$ac_try_echo") >&5
42132 (eval "$ac_link") 2>conftest.er1
42133 ac_status=$?
42134 grep -v '^ *+' conftest.er1 >conftest.err
42135 rm -f conftest.er1
42136 cat conftest.err >&5
42137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); } && {
42139 test -z "$ac_c_werror_flag" ||
42140 test ! -s conftest.err
42141 } && test -s conftest$ac_exeext && {
42142 test "$cross_compiling" = yes ||
42143 $as_test_x conftest$ac_exeext
42144 }; then
42145 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
42146else
42147 $as_echo "$as_me: failed program was:" >&5
42148sed 's/^/| /' conftest.$ac_ext >&5
42149
42150 ac_cv_lib_tiff_TIFFIsByteSwapped=no
42151fi
42152
42153rm -rf conftest.dSYM
42154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42155 conftest$ac_exeext conftest.$ac_ext
42156LIBS=$ac_check_lib_save_LIBS
42157fi
42158{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
42159$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
42160if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
42161 passed=`expr $passed + 1`
42162else
42163 failed=`expr $failed + 1`
42164fi
42165
42166 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
42167$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
42168if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
42169 $as_echo_n "(cached) " >&6
42170else
42171 ac_check_lib_save_LIBS=$LIBS
42172LIBS="-ltiff $LIBS"
42173cat >conftest.$ac_ext <<_ACEOF
42174/* confdefs.h. */
42175_ACEOF
42176cat confdefs.h >>conftest.$ac_ext
42177cat >>conftest.$ac_ext <<_ACEOF
42178/* end confdefs.h. */
42179
42180/* Override any GCC internal prototype to avoid an error.
42181 Use char because int might match the return type of a GCC
42182 builtin and then its argument prototype would still apply. */
42183#ifdef __cplusplus
42184extern "C"
42185#endif
42186char TIFFReadRGBATile ();
42187int
42188main ()
42189{
42190return TIFFReadRGBATile ();
42191 ;
42192 return 0;
42193}
42194_ACEOF
42195rm -f conftest.$ac_objext conftest$ac_exeext
42196if { (ac_try="$ac_link"
42197case "(($ac_try" in
42198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42199 *) ac_try_echo=$ac_try;;
42200esac
42201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42202$as_echo "$ac_try_echo") >&5
42203 (eval "$ac_link") 2>conftest.er1
42204 ac_status=$?
42205 grep -v '^ *+' conftest.er1 >conftest.err
42206 rm -f conftest.er1
42207 cat conftest.err >&5
42208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209 (exit $ac_status); } && {
42210 test -z "$ac_c_werror_flag" ||
42211 test ! -s conftest.err
42212 } && test -s conftest$ac_exeext && {
42213 test "$cross_compiling" = yes ||
42214 $as_test_x conftest$ac_exeext
42215 }; then
42216 ac_cv_lib_tiff_TIFFReadRGBATile=yes
42217else
42218 $as_echo "$as_me: failed program was:" >&5
42219sed 's/^/| /' conftest.$ac_ext >&5
42220
42221 ac_cv_lib_tiff_TIFFReadRGBATile=no
42222fi
42223
42224rm -rf conftest.dSYM
42225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42226 conftest$ac_exeext conftest.$ac_ext
42227LIBS=$ac_check_lib_save_LIBS
42228fi
42229{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
42230$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
42231if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
42232 passed=`expr $passed + 1`
42233else
42234 failed=`expr $failed + 1`
42235fi
42236
42237 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
42238$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
42239if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
42240 $as_echo_n "(cached) " >&6
42241else
42242 ac_check_lib_save_LIBS=$LIBS
42243LIBS="-ltiff $LIBS"
42244cat >conftest.$ac_ext <<_ACEOF
42245/* confdefs.h. */
42246_ACEOF
42247cat confdefs.h >>conftest.$ac_ext
42248cat >>conftest.$ac_ext <<_ACEOF
42249/* end confdefs.h. */
42250
42251/* Override any GCC internal prototype to avoid an error.
42252 Use char because int might match the return type of a GCC
42253 builtin and then its argument prototype would still apply. */
42254#ifdef __cplusplus
42255extern "C"
42256#endif
42257char TIFFReadRGBAStrip ();
42258int
42259main ()
42260{
42261return TIFFReadRGBAStrip ();
42262 ;
42263 return 0;
42264}
42265_ACEOF
42266rm -f conftest.$ac_objext conftest$ac_exeext
42267if { (ac_try="$ac_link"
42268case "(($ac_try" in
42269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42270 *) ac_try_echo=$ac_try;;
42271esac
42272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42273$as_echo "$ac_try_echo") >&5
42274 (eval "$ac_link") 2>conftest.er1
42275 ac_status=$?
42276 grep -v '^ *+' conftest.er1 >conftest.err
42277 rm -f conftest.er1
42278 cat conftest.err >&5
42279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42280 (exit $ac_status); } && {
42281 test -z "$ac_c_werror_flag" ||
42282 test ! -s conftest.err
42283 } && test -s conftest$ac_exeext && {
42284 test "$cross_compiling" = yes ||
42285 $as_test_x conftest$ac_exeext
42286 }; then
42287 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
42288else
42289 $as_echo "$as_me: failed program was:" >&5
42290sed 's/^/| /' conftest.$ac_ext >&5
42291
42292 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
42293fi
42294
42295rm -rf conftest.dSYM
42296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42297 conftest$ac_exeext conftest.$ac_ext
42298LIBS=$ac_check_lib_save_LIBS
42299fi
42300{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
42301$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
42302if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
42303 passed=`expr $passed + 1`
42304else
42305 failed=`expr $failed + 1`
42306fi
42307
42308 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
42309$as_echo_n "checking if TIFF package is complete... " >&6; }
42310 if test $passed -gt 0; then
42311 if test $failed -gt 0; then
42312 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42313$as_echo "no -- some components failed test" >&6; }
42314 have_tiff='no (failed tests)'
42315 else
42316 TIFF_LIBS='-ltiff'
42317 LIBS="$TIFF_LIBS $LIBS"
42318
42319cat >>confdefs.h <<\_ACEOF
42320#define TIFF_DELEGATE 1
42321_ACEOF
42322
42323 { $as_echo "$as_me:$LINENO: result: yes" >&5
42324$as_echo "yes" >&6; }
42325 have_tiff='yes'
42326
42327for ac_header in tiffconf.h
42328do
42329as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42332$as_echo_n "checking for $ac_header... " >&6; }
42333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42334 $as_echo_n "(cached) " >&6
42335fi
42336ac_res=`eval 'as_val=${'$as_ac_Header'}
42337 $as_echo "$as_val"'`
42338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42339$as_echo "$ac_res" >&6; }
42340else
42341 # Is the header compilable?
42342{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42343$as_echo_n "checking $ac_header usability... " >&6; }
42344cat >conftest.$ac_ext <<_ACEOF
42345/* confdefs.h. */
42346_ACEOF
42347cat confdefs.h >>conftest.$ac_ext
42348cat >>conftest.$ac_ext <<_ACEOF
42349/* end confdefs.h. */
42350$ac_includes_default
42351#include <$ac_header>
42352_ACEOF
42353rm -f conftest.$ac_objext
42354if { (ac_try="$ac_compile"
42355case "(($ac_try" in
42356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42357 *) ac_try_echo=$ac_try;;
42358esac
42359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42360$as_echo "$ac_try_echo") >&5
42361 (eval "$ac_compile") 2>conftest.er1
42362 ac_status=$?
42363 grep -v '^ *+' conftest.er1 >conftest.err
42364 rm -f conftest.er1
42365 cat conftest.err >&5
42366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); } && {
42368 test -z "$ac_c_werror_flag" ||
42369 test ! -s conftest.err
42370 } && test -s conftest.$ac_objext; then
42371 ac_header_compiler=yes
42372else
42373 $as_echo "$as_me: failed program was:" >&5
42374sed 's/^/| /' conftest.$ac_ext >&5
42375
42376 ac_header_compiler=no
42377fi
42378
42379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42380{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42381$as_echo "$ac_header_compiler" >&6; }
42382
42383# Is the header present?
42384{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42385$as_echo_n "checking $ac_header presence... " >&6; }
42386cat >conftest.$ac_ext <<_ACEOF
42387/* confdefs.h. */
42388_ACEOF
42389cat confdefs.h >>conftest.$ac_ext
42390cat >>conftest.$ac_ext <<_ACEOF
42391/* end confdefs.h. */
42392#include <$ac_header>
42393_ACEOF
42394if { (ac_try="$ac_cpp conftest.$ac_ext"
42395case "(($ac_try" in
42396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42397 *) ac_try_echo=$ac_try;;
42398esac
42399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42400$as_echo "$ac_try_echo") >&5
42401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42402 ac_status=$?
42403 grep -v '^ *+' conftest.er1 >conftest.err
42404 rm -f conftest.er1
42405 cat conftest.err >&5
42406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42407 (exit $ac_status); } >/dev/null && {
42408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42409 test ! -s conftest.err
42410 }; then
42411 ac_header_preproc=yes
42412else
42413 $as_echo "$as_me: failed program was:" >&5
42414sed 's/^/| /' conftest.$ac_ext >&5
42415
42416 ac_header_preproc=no
42417fi
42418
42419rm -f conftest.err conftest.$ac_ext
42420{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42421$as_echo "$ac_header_preproc" >&6; }
42422
42423# So? What about this header?
42424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42425 yes:no: )
42426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42427$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42429$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42430 ac_header_preproc=yes
42431 ;;
42432 no:yes:* )
42433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42434$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42436$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42438$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42440$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42442$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42444$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42445 ( cat <<\_ASBOX
42446## ----------------------------------------- ##
42447## Report this to http://www.imagemagick.org ##
42448## ----------------------------------------- ##
42449_ASBOX
42450 ) | sed "s/^/$as_me: WARNING: /" >&2
42451 ;;
42452esac
42453{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42454$as_echo_n "checking for $ac_header... " >&6; }
42455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42456 $as_echo_n "(cached) " >&6
42457else
42458 eval "$as_ac_Header=\$ac_header_preproc"
42459fi
42460ac_res=`eval 'as_val=${'$as_ac_Header'}
42461 $as_echo "$as_val"'`
42462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42463$as_echo "$ac_res" >&6; }
42464
42465fi
42466as_val=`eval 'as_val=${'$as_ac_Header'}
42467 $as_echo "$as_val"'`
42468 if test "x$as_val" = x""yes; then
42469 cat >>confdefs.h <<_ACEOF
42470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42471_ACEOF
42472
42473fi
42474
42475done
42476
42477
42478
42479
42480
42481
42482
42483
42484for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
42485 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
42486 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
42487do
42488as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42489{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42490$as_echo_n "checking for $ac_func... " >&6; }
42491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42492 $as_echo_n "(cached) " >&6
42493else
42494 cat >conftest.$ac_ext <<_ACEOF
42495/* confdefs.h. */
42496_ACEOF
42497cat confdefs.h >>conftest.$ac_ext
42498cat >>conftest.$ac_ext <<_ACEOF
42499/* end confdefs.h. */
42500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42502#define $ac_func innocuous_$ac_func
42503
42504/* System header to define __stub macros and hopefully few prototypes,
42505 which can conflict with char $ac_func (); below.
42506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42507 <limits.h> exists even on freestanding compilers. */
42508
42509#ifdef __STDC__
42510# include <limits.h>
42511#else
42512# include <assert.h>
42513#endif
42514
42515#undef $ac_func
42516
42517/* Override any GCC internal prototype to avoid an error.
42518 Use char because int might match the return type of a GCC
42519 builtin and then its argument prototype would still apply. */
42520#ifdef __cplusplus
42521extern "C"
42522#endif
42523char $ac_func ();
42524/* The GNU C library defines this for functions which it implements
42525 to always fail with ENOSYS. Some functions are actually named
42526 something starting with __ and the normal name is an alias. */
42527#if defined __stub_$ac_func || defined __stub___$ac_func
42528choke me
42529#endif
42530
42531int
42532main ()
42533{
42534return $ac_func ();
42535 ;
42536 return 0;
42537}
42538_ACEOF
42539rm -f conftest.$ac_objext conftest$ac_exeext
42540if { (ac_try="$ac_link"
42541case "(($ac_try" in
42542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42543 *) ac_try_echo=$ac_try;;
42544esac
42545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42546$as_echo "$ac_try_echo") >&5
42547 (eval "$ac_link") 2>conftest.er1
42548 ac_status=$?
42549 grep -v '^ *+' conftest.er1 >conftest.err
42550 rm -f conftest.er1
42551 cat conftest.err >&5
42552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42553 (exit $ac_status); } && {
42554 test -z "$ac_c_werror_flag" ||
42555 test ! -s conftest.err
42556 } && test -s conftest$ac_exeext && {
42557 test "$cross_compiling" = yes ||
42558 $as_test_x conftest$ac_exeext
42559 }; then
42560 eval "$as_ac_var=yes"
42561else
42562 $as_echo "$as_me: failed program was:" >&5
42563sed 's/^/| /' conftest.$ac_ext >&5
42564
42565 eval "$as_ac_var=no"
42566fi
42567
42568rm -rf conftest.dSYM
42569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42570 conftest$ac_exeext conftest.$ac_ext
42571fi
42572ac_res=`eval 'as_val=${'$as_ac_var'}
42573 $as_echo "$as_val"'`
42574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42575$as_echo "$ac_res" >&6; }
42576as_val=`eval 'as_val=${'$as_ac_var'}
42577 $as_echo "$as_val"'`
42578 if test "x$as_val" = x""yes; then
42579 cat >>confdefs.h <<_ACEOF
42580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42581_ACEOF
42582
42583fi
42584done
42585
42586 fi
42587 else
42588 { $as_echo "$as_me:$LINENO: result: no" >&5
42589$as_echo "no" >&6; }
42590 fi
42591fi
42592 if test "$have_tiff" = 'yes'; then
42593 TIFF_DELEGATE_TRUE=
42594 TIFF_DELEGATE_FALSE='#'
42595else
42596 TIFF_DELEGATE_TRUE='#'
42597 TIFF_DELEGATE_FALSE=
42598fi
42599
42600
42601
42602
42603#
42604# Set Windows font directory.
42605#
42606
42607# Check whether --with-windows-font-dir was given.
42608if test "${with_windows_font_dir+set}" = set; then
42609 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42610else
42611 with_windows_font_dir=''
42612fi
42613
42614if test "$with_windows_font_dir" != '' ; then
42615 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42616fi
42617
42618
42619#
42620# Check for WMF delegate library.
42621#
42622
42623# Check whether --with-wmf was given.
42624if test "${with_wmf+set}" = set; then
42625 withval=$with_wmf; with_wmf=$withval
42626else
42627 with_wmf=$with_modules
42628fi
42629
42630
42631if test "$with_wmf" != 'yes'; then
42632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42633fi
42634
42635have_wmf='no'
42636WMF_LIBS=''
42637WMF_LIBS_DEPS=''
42638OLIBS="$LIBS"
42639if test "$with_wmf" != 'no'; then
42640 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42641$as_echo "-------------------------------------------------------------" >&6; }
42642 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42643$as_echo_n "checking for WMF... " >&6; }
42644 { $as_echo "$as_me:$LINENO: result: " >&5
42645$as_echo "" >&6; }
42646 have_libwmf='no'
42647 have_libwmflite='no'
42648 have_libwmf_ipa_h='no'
42649
42650 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42651$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42652if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42653 $as_echo_n "(cached) " >&6
42654else
42655 cat >conftest.$ac_ext <<_ACEOF
42656/* confdefs.h. */
42657_ACEOF
42658cat confdefs.h >>conftest.$ac_ext
42659cat >>conftest.$ac_ext <<_ACEOF
42660/* end confdefs.h. */
42661$FT2BUILD_H
42662
42663#include <libwmf/ipa.h>
42664_ACEOF
42665rm -f conftest.$ac_objext
42666if { (ac_try="$ac_compile"
42667case "(($ac_try" in
42668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42669 *) ac_try_echo=$ac_try;;
42670esac
42671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42672$as_echo "$ac_try_echo") >&5
42673 (eval "$ac_compile") 2>conftest.er1
42674 ac_status=$?
42675 grep -v '^ *+' conftest.er1 >conftest.err
42676 rm -f conftest.er1
42677 cat conftest.err >&5
42678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42679 (exit $ac_status); } && {
42680 test -z "$ac_c_werror_flag" ||
42681 test ! -s conftest.err
42682 } && test -s conftest.$ac_objext; then
42683 ac_cv_header_libwmf_ipa_h=yes
42684else
42685 $as_echo "$as_me: failed program was:" >&5
42686sed 's/^/| /' conftest.$ac_ext >&5
42687
42688 ac_cv_header_libwmf_ipa_h=no
42689fi
42690
42691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42692fi
42693{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42694$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42695if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42696 have_libwmf_ipa_h='yes'
42697fi
42698
42699
42700 if test "$have_libwmf_ipa_h" = 'yes'; then
42701 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42702$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42703if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42704 $as_echo_n "(cached) " >&6
42705else
42706 ac_check_lib_save_LIBS=$LIBS
42707LIBS="-lwmflite $LIBS"
42708cat >conftest.$ac_ext <<_ACEOF
42709/* confdefs.h. */
42710_ACEOF
42711cat confdefs.h >>conftest.$ac_ext
42712cat >>conftest.$ac_ext <<_ACEOF
42713/* end confdefs.h. */
42714
42715/* Override any GCC internal prototype to avoid an error.
42716 Use char because int might match the return type of a GCC
42717 builtin and then its argument prototype would still apply. */
42718#ifdef __cplusplus
42719extern "C"
42720#endif
42721char wmf_lite_create ();
42722int
42723main ()
42724{
42725return wmf_lite_create ();
42726 ;
42727 return 0;
42728}
42729_ACEOF
42730rm -f conftest.$ac_objext conftest$ac_exeext
42731if { (ac_try="$ac_link"
42732case "(($ac_try" in
42733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42734 *) ac_try_echo=$ac_try;;
42735esac
42736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42737$as_echo "$ac_try_echo") >&5
42738 (eval "$ac_link") 2>conftest.er1
42739 ac_status=$?
42740 grep -v '^ *+' conftest.er1 >conftest.err
42741 rm -f conftest.er1
42742 cat conftest.err >&5
42743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42744 (exit $ac_status); } && {
42745 test -z "$ac_c_werror_flag" ||
42746 test ! -s conftest.err
42747 } && test -s conftest$ac_exeext && {
42748 test "$cross_compiling" = yes ||
42749 $as_test_x conftest$ac_exeext
42750 }; then
42751 ac_cv_lib_wmflite_wmf_lite_create=yes
42752else
42753 $as_echo "$as_me: failed program was:" >&5
42754sed 's/^/| /' conftest.$ac_ext >&5
42755
42756 ac_cv_lib_wmflite_wmf_lite_create=no
42757fi
42758
42759rm -rf conftest.dSYM
42760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42761 conftest$ac_exeext conftest.$ac_ext
42762LIBS=$ac_check_lib_save_LIBS
42763fi
42764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
42765$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
42766if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
42767 have_libwmflite='yes'
42768fi
42769
42770 if test "$have_libwmflite" = 'yes'; then
42771
42772cat >>confdefs.h <<\_ACEOF
42773#define WMFLITE_DELEGATE 1
42774_ACEOF
42775
42776 WMF_LIBS='-lwmflite'
42777 LIBS="$WMF_LIBS $LIBS"
42778 have_wmf='yes'
42779 else
42780 WMF_LIBS_DEPS=''
42781 WMF_CONFIG_LIBS=`libwmf-config --libs`
42782 for lib in xml2 expat freetype jpeg png z; do
42783 testlib="-l${lib}"
42784 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
42785 done
42786 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
42787$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
42788if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
42789 $as_echo_n "(cached) " >&6
42790else
42791 ac_check_lib_save_LIBS=$LIBS
42792LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
42793cat >conftest.$ac_ext <<_ACEOF
42794/* confdefs.h. */
42795_ACEOF
42796cat confdefs.h >>conftest.$ac_ext
42797cat >>conftest.$ac_ext <<_ACEOF
42798/* end confdefs.h. */
42799
42800/* Override any GCC internal prototype to avoid an error.
42801 Use char because int might match the return type of a GCC
42802 builtin and then its argument prototype would still apply. */
42803#ifdef __cplusplus
42804extern "C"
42805#endif
42806char wmf_api_create ();
42807int
42808main ()
42809{
42810return wmf_api_create ();
42811 ;
42812 return 0;
42813}
42814_ACEOF
42815rm -f conftest.$ac_objext conftest$ac_exeext
42816if { (ac_try="$ac_link"
42817case "(($ac_try" in
42818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42819 *) ac_try_echo=$ac_try;;
42820esac
42821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42822$as_echo "$ac_try_echo") >&5
42823 (eval "$ac_link") 2>conftest.er1
42824 ac_status=$?
42825 grep -v '^ *+' conftest.er1 >conftest.err
42826 rm -f conftest.er1
42827 cat conftest.err >&5
42828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829 (exit $ac_status); } && {
42830 test -z "$ac_c_werror_flag" ||
42831 test ! -s conftest.err
42832 } && test -s conftest$ac_exeext && {
42833 test "$cross_compiling" = yes ||
42834 $as_test_x conftest$ac_exeext
42835 }; then
42836 ac_cv_lib_wmf_wmf_api_create=yes
42837else
42838 $as_echo "$as_me: failed program was:" >&5
42839sed 's/^/| /' conftest.$ac_ext >&5
42840
42841 ac_cv_lib_wmf_wmf_api_create=no
42842fi
42843
42844rm -rf conftest.dSYM
42845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42846 conftest$ac_exeext conftest.$ac_ext
42847LIBS=$ac_check_lib_save_LIBS
42848fi
42849{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
42850$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
42851if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
42852 have_libwmf='yes'
42853fi
42854
42855 if test "$have_libwmf" = 'yes'; then
42856
42857cat >>confdefs.h <<\_ACEOF
42858#define WMF_DELEGATE 1
42859_ACEOF
42860
42861 WMF_LIBS='-lwmf'
42862 LIBS="$WMF_LIBS $LIBS"
42863 have_wmf='yes'
42864 else
42865 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42866$as_echo "no -- some components failed test" >&6; }
42867 have_wmf='no (failed tests)'
42868 have_wmflite='no (failed tests)'
42869 LIBS="$OLIBS"
42870 WMF_LIBS=''
42871 fi
42872 fi
42873 fi
42874 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
42875$as_echo_n "checking if WMF package is complete... " >&6; }
42876 if test "$have_wmf" = 'yes'; then
42877 { $as_echo "$as_me:$LINENO: result: yes" >&5
42878$as_echo "yes" >&6; }
42879 else
42880 { $as_echo "$as_me:$LINENO: result: no" >&5
42881$as_echo "no" >&6; }
42882 fi
42883fi
42884 if test "$have_wmf" = 'yes'; then
42885 WMF_DELEGATE_TRUE=
42886 WMF_DELEGATE_FALSE='#'
42887else
42888 WMF_DELEGATE_TRUE='#'
42889 WMF_DELEGATE_FALSE=
42890fi
42891
42892
42893
42894
42895
42896#
42897# Check for XML delegate library.
42898#
42899
42900# Check whether --with-xml was given.
42901if test "${with_xml+set}" = set; then
42902 withval=$with_xml; with_xml=$withval
42903else
42904 with_xml=$have_x
42905fi
42906
42907
42908if test "$with_xml" != 'yes' ; then
42909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
42910fi
42911
42912have_xml='no'
42913XML_LIBS=''
42914if test "$with_xml" != 'no'; then
42915 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42916$as_echo "-------------------------------------------------------------" >&6; }
42917 { $as_echo "$as_me:$LINENO: checking for XML" >&5
42918$as_echo_n "checking for XML... " >&6; }
42919 { $as_echo "$as_me:$LINENO: result: " >&5
42920$as_echo "" >&6; }
42921 PERSIST_LDFLAGS=$LDFLAGS
42922 PERSIST_CPPFLAGS=$CPPFLAGS
42923 xml2_config=''
42924 for ac_prog in xml2-config
42925do
42926 # Extract the first word of "$ac_prog", so it can be a program name with args.
42927set dummy $ac_prog; ac_word=$2
42928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42929$as_echo_n "checking for $ac_word... " >&6; }
42930if test "${ac_cv_prog_xml2_config+set}" = set; then
42931 $as_echo_n "(cached) " >&6
42932else
42933 if test -n "$xml2_config"; then
42934 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
42935else
42936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42937for as_dir in $PATH
42938do
42939 IFS=$as_save_IFS
42940 test -z "$as_dir" && as_dir=.
42941 for ac_exec_ext in '' $ac_executable_extensions; do
42942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42943 ac_cv_prog_xml2_config="$ac_prog"
42944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42945 break 2
42946 fi
42947done
42948done
42949IFS=$as_save_IFS
42950
42951fi
42952fi
42953xml2_config=$ac_cv_prog_xml2_config
42954if test -n "$xml2_config"; then
42955 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
42956$as_echo "$xml2_config" >&6; }
42957else
42958 { $as_echo "$as_me:$LINENO: result: no" >&5
42959$as_echo "no" >&6; }
42960fi
42961
42962
42963 test -n "$xml2_config" && break
42964done
42965 if test -n "$xml2_config"; then
42966 # Debian installs libxml headers under /usr/include/libxml2/libxml with
42967 # the shared library installed under /usr/lib, whereas the package
42968 # installs itself under $prefix/libxml and $prefix/lib.
42969 xml2_prefix=`xml2-config --prefix`
42970 if test -d "${xml2_prefix}/include/libxml2"; then
42971 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
42972 fi
42973 if test "${xml2_prefix}" != '/usr'; then
42974 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
42975 fi
42976 fi
42977 failed=0
42978 passed=0
42979 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42980 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
42981$as_echo_n "checking for libxml/parser.h... " >&6; }
42982if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42983 $as_echo_n "(cached) " >&6
42984fi
42985{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
42986$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
42987else
42988 # Is the header compilable?
42989{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
42990$as_echo_n "checking libxml/parser.h usability... " >&6; }
42991cat >conftest.$ac_ext <<_ACEOF
42992/* confdefs.h. */
42993_ACEOF
42994cat confdefs.h >>conftest.$ac_ext
42995cat >>conftest.$ac_ext <<_ACEOF
42996/* end confdefs.h. */
42997$ac_includes_default
42998#include <libxml/parser.h>
42999_ACEOF
43000rm -f conftest.$ac_objext
43001if { (ac_try="$ac_compile"
43002case "(($ac_try" in
43003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43004 *) ac_try_echo=$ac_try;;
43005esac
43006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43007$as_echo "$ac_try_echo") >&5
43008 (eval "$ac_compile") 2>conftest.er1
43009 ac_status=$?
43010 grep -v '^ *+' conftest.er1 >conftest.err
43011 rm -f conftest.er1
43012 cat conftest.err >&5
43013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014 (exit $ac_status); } && {
43015 test -z "$ac_c_werror_flag" ||
43016 test ! -s conftest.err
43017 } && test -s conftest.$ac_objext; then
43018 ac_header_compiler=yes
43019else
43020 $as_echo "$as_me: failed program was:" >&5
43021sed 's/^/| /' conftest.$ac_ext >&5
43022
43023 ac_header_compiler=no
43024fi
43025
43026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43027{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43028$as_echo "$ac_header_compiler" >&6; }
43029
43030# Is the header present?
43031{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
43032$as_echo_n "checking libxml/parser.h presence... " >&6; }
43033cat >conftest.$ac_ext <<_ACEOF
43034/* confdefs.h. */
43035_ACEOF
43036cat confdefs.h >>conftest.$ac_ext
43037cat >>conftest.$ac_ext <<_ACEOF
43038/* end confdefs.h. */
43039#include <libxml/parser.h>
43040_ACEOF
43041if { (ac_try="$ac_cpp conftest.$ac_ext"
43042case "(($ac_try" in
43043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43044 *) ac_try_echo=$ac_try;;
43045esac
43046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43047$as_echo "$ac_try_echo") >&5
43048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43049 ac_status=$?
43050 grep -v '^ *+' conftest.er1 >conftest.err
43051 rm -f conftest.er1
43052 cat conftest.err >&5
43053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054 (exit $ac_status); } >/dev/null && {
43055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43056 test ! -s conftest.err
43057 }; then
43058 ac_header_preproc=yes
43059else
43060 $as_echo "$as_me: failed program was:" >&5
43061sed 's/^/| /' conftest.$ac_ext >&5
43062
43063 ac_header_preproc=no
43064fi
43065
43066rm -f conftest.err conftest.$ac_ext
43067{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43068$as_echo "$ac_header_preproc" >&6; }
43069
43070# So? What about this header?
43071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43072 yes:no: )
43073 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
43074$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43075 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
43076$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
43077 ac_header_preproc=yes
43078 ;;
43079 no:yes:* )
43080 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
43081$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
43082 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
43083$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
43084 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
43085$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
43086 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
43087$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
43088 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
43089$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
43090 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
43091$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
43092 ( cat <<\_ASBOX
43093## ----------------------------------------- ##
43094## Report this to http://www.imagemagick.org ##
43095## ----------------------------------------- ##
43096_ASBOX
43097 ) | sed "s/^/$as_me: WARNING: /" >&2
43098 ;;
43099esac
43100{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43101$as_echo_n "checking for libxml/parser.h... " >&6; }
43102if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43103 $as_echo_n "(cached) " >&6
43104else
43105 ac_cv_header_libxml_parser_h=$ac_header_preproc
43106fi
43107{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43108$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43109
43110fi
43111if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
43112 passed=`expr $passed + 1`
43113else
43114 failed=`expr $failed + 1`
43115fi
43116
43117
43118 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
43119$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
43120if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
43121 $as_echo_n "(cached) " >&6
43122else
43123 ac_check_lib_save_LIBS=$LIBS
43124LIBS="-lxml2 $LIBS"
43125cat >conftest.$ac_ext <<_ACEOF
43126/* confdefs.h. */
43127_ACEOF
43128cat confdefs.h >>conftest.$ac_ext
43129cat >>conftest.$ac_ext <<_ACEOF
43130/* end confdefs.h. */
43131
43132/* Override any GCC internal prototype to avoid an error.
43133 Use char because int might match the return type of a GCC
43134 builtin and then its argument prototype would still apply. */
43135#ifdef __cplusplus
43136extern "C"
43137#endif
43138char xmlParseExternalEntity ();
43139int
43140main ()
43141{
43142return xmlParseExternalEntity ();
43143 ;
43144 return 0;
43145}
43146_ACEOF
43147rm -f conftest.$ac_objext conftest$ac_exeext
43148if { (ac_try="$ac_link"
43149case "(($ac_try" in
43150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43151 *) ac_try_echo=$ac_try;;
43152esac
43153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43154$as_echo "$ac_try_echo") >&5
43155 (eval "$ac_link") 2>conftest.er1
43156 ac_status=$?
43157 grep -v '^ *+' conftest.er1 >conftest.err
43158 rm -f conftest.er1
43159 cat conftest.err >&5
43160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43161 (exit $ac_status); } && {
43162 test -z "$ac_c_werror_flag" ||
43163 test ! -s conftest.err
43164 } && test -s conftest$ac_exeext && {
43165 test "$cross_compiling" = yes ||
43166 $as_test_x conftest$ac_exeext
43167 }; then
43168 ac_cv_lib_xml2_xmlParseExternalEntity=yes
43169else
43170 $as_echo "$as_me: failed program was:" >&5
43171sed 's/^/| /' conftest.$ac_ext >&5
43172
43173 ac_cv_lib_xml2_xmlParseExternalEntity=no
43174fi
43175
43176rm -rf conftest.dSYM
43177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43178 conftest$ac_exeext conftest.$ac_ext
43179LIBS=$ac_check_lib_save_LIBS
43180fi
43181{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
43182$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
43183if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
43184 passed=`expr $passed + 1`
43185else
43186 failed=`expr $failed + 1`
43187fi
43188
43189 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
43190$as_echo_n "checking if XML package is complete... " >&6; }
43191 if test $passed -gt 0; then
43192 if test $failed -gt 0; then
43193 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43194$as_echo "no -- some components failed test" >&6; }
43195 have_xml='no (failed tests)'
43196 LDFLAGS="$PERSIST_LDFLAGS"
43197 CPPFLAGS="$PERSIST_CPPFLAGS"
43198 else
43199 XML_LIBS='-lxml2'
43200 LIBS="$XML_LIBS $LIBS"
43201
43202cat >>confdefs.h <<\_ACEOF
43203#define XML_DELEGATE 1
43204_ACEOF
43205
43206 { $as_echo "$as_me:$LINENO: result: yes" >&5
43207$as_echo "yes" >&6; }
43208 have_xml='yes'
43209 fi
43210 else
43211 { $as_echo "$as_me:$LINENO: result: no" >&5
43212$as_echo "no" >&6; }
43213 fi
43214fi
43215 if test "$have_xml" = 'yes'; then
43216 XML_DELEGATE_TRUE=
43217 XML_DELEGATE_FALSE='#'
43218else
43219 XML_DELEGATE_TRUE='#'
43220 XML_DELEGATE_FALSE=
43221fi
43222
43223
43224
43225
43226# Substitute compiler name to build/link PerlMagick
43227#
43228
43229
43230#
43231# Configure install Paths
43232#
43233
43234# Subdirectory under lib to place ImageMagick lib files
43235LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43236
43237cat >>confdefs.h <<_ACEOF
43238#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
43239_ACEOF
43240
43241
43242# Path to ImageMagick bin directory
43243EXECUTABLE_PATH="${BIN_DIR}"
43244DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
43245case "${build_os}" in
43246 mingw* )
43247 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
43248 ;;
43249esac
43250
43251cat >>confdefs.h <<_ACEOF
43252#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
43253_ACEOF
43254
43255
43256
43257# Path to ImageMagick lib
43258LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
43259DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
43260case "${build_os}" in
43261 mingw* )
43262 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
43263 ;;
43264esac
43265
43266cat >>confdefs.h <<_ACEOF
43267#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
43268_ACEOF
43269
43270
43271
43272# Subdirectory under lib to place ImageMagick configuration files
43273CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43274
43275cat >>confdefs.h <<_ACEOF
43276#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
43277_ACEOF
43278
43279CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43280DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43281case "${build_os}" in
43282 mingw* )
43283 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
43284 ;;
43285esac
43286
43287cat >>confdefs.h <<_ACEOF
43288#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
43289_ACEOF
43290
43291
43292
43293#
43294# Subdirectory under lib to place ImageMagick coder module files
43295CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
43296
43297cat >>confdefs.h <<_ACEOF
43298#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
43299_ACEOF
43300
43301CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
43302DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
43303case "${build_os}" in
43304 mingw* )
43305 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
43306 ;;
43307esac
43308
43309cat >>confdefs.h <<_ACEOF
43310#define CODER_PATH "$DEFINE_CODER_PATH"
43311_ACEOF
43312
43313
43314
43315#
43316# Subdirectory under lib to place ImageMagick filter module files
43317FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
43318
43319cat >>confdefs.h <<_ACEOF
43320#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
43321_ACEOF
43322
43323FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
43324DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
43325case "${build_os}" in
43326 mingw* )
43327 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
43328 ;;
43329esac
43330
43331cat >>confdefs.h <<_ACEOF
43332#define FILTER_PATH "$DEFINE_FILTER_PATH"
43333_ACEOF
43334
43335
43336
43337#
43338# Path to ImageMagick documentation files
43339DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43340DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
43341DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
43342case "${build_os}" in
43343 mingw* )
43344 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
43345 ;;
43346esac
43347
43348cat >>confdefs.h <<_ACEOF
43349#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
43350_ACEOF
43351
43352
43353
43354#
43355# Path to ImageMagick share files
43356SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43357SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
43358DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
43359case "${build_os}" in
43360 mingw* )
43361 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
43362 ;;
43363esac
43364
43365cat >>confdefs.h <<_ACEOF
43366#define SHARE_PATH "$DEFINE_SHARE_PATH"
43367_ACEOF
43368
43369
43370
43371# Subdirectory under share to place ImageMagick configuration files
43372SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43373
43374cat >>confdefs.h <<_ACEOF
43375#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
43376_ACEOF
43377
43378SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
43379DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
43380case "${build_os}" in
43381 mingw* )
43382 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
43383 ;;
43384esac
43385
43386cat >>confdefs.h <<_ACEOF
43387#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
43388_ACEOF
43389
43390
43391
43392#
43393# program_transform_name is formed for use in a Makefile, so create a
43394# modified version for use in a shell script.
43395configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
43396
43397# Default delegate definitions
43398{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43399$as_echo "-------------------------------------------------------------" >&6; }
43400{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
43401$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
43402{ $as_echo "$as_me:$LINENO: result: " >&5
43403$as_echo "" >&6; }
43404AutotraceDecodeDelegateDefault='autotrace'
43405AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000043406BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000043407BZIPDelegateDefault='bzip2'
43408BrowseDelegateDefault='xdg-open'
43409CGMDecodeDelegateDefault='ralcgm'
43410CatDelegateDefault='cat'
43411DNGDecodeDelegateDefault='ufraw-batch'
43412GVCDecodeDelegateDefault='dot'
43413DVIDecodeDelegateDefault='dvips'
43414EchoDelegateDefault='echo'
43415EditorDelegateDefault='xterm'
43416FIGDecodeDelegateDefault='fig2dev'
43417ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
43418DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
43419MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
43420GnuplotDecodeDelegateDefault='gnuplot'
43421HDRDecodeDelegateDefault='ra_pfm'
43422HPGLDecodeDelegateDefault='hp2xx'
43423HTMLDecodeDelegateDefault='html2ps'
43424ILBMDecodeDelegateDefault='ilbmtoppm'
43425ILBMEncodeDelegateDefault='ppmtoilbm'
43426LPDelegateDefault='lp'
43427LPRDelegateDefault='lpr'
43428LZWDecodeDelegateDefault='uncompress'
43429LZWEncodeDelegateDefault='compress'
43430LaunchDelegateDefault='gimp'
43431MANDelegateDefault='groff'
43432MPEGDecodeDelegateDefault='ffmpeg'
43433MPEGEncodeDelegateDefault='ffmpeg'
43434MVDelegateDefault='mv'
43435PCLDelegateDefault='pcl6'
43436PGPDecodeDelegateDefault='pgpv'
43437POVDelegateDefault='povray'
43438if test "$native_win32_build" = 'yes'; then
43439 PSDelegateDefault='gswin32c'
43440elif test $framework -gt 0; then
43441 PSDelegateDefault='gsc'
43442else
43443 PSDelegateDefault='gs'
43444fi
43445RLEEncodeDelegateDefault='rawtorle'
43446RMDelegateDefault='rm'
43447SCANDecodeDelegateDefault='scanimage'
43448TXTDelegateDefault='enscript'
43449WMFDecodeDelegateDefault='wmf2eps'
43450WWWDecodeDelegateDefault='curl'
43451XPSDelegateDefault='gxps'
43452ZipDelegateDefault='gzip'
43453
43454# Search for delegates
43455# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
43456set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
43457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43458$as_echo_n "checking for $ac_word... " >&6; }
43459if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
43460 $as_echo_n "(cached) " >&6
43461else
43462 case $AutotraceDecodeDelegate in
43463 [\\/]* | ?:[\\/]*)
43464 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
43465 ;;
43466 *)
43467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43468for as_dir in $PATH
43469do
43470 IFS=$as_save_IFS
43471 test -z "$as_dir" && as_dir=.
43472 for ac_exec_ext in '' $ac_executable_extensions; do
43473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43474 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43476 break 2
43477 fi
43478done
43479done
43480IFS=$as_save_IFS
43481
43482 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
43483 ;;
43484esac
43485fi
43486AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
43487if test -n "$AutotraceDecodeDelegate"; then
43488 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
43489$as_echo "$AutotraceDecodeDelegate" >&6; }
43490else
43491 { $as_echo "$as_me:$LINENO: result: no" >&5
43492$as_echo "no" >&6; }
43493fi
43494
43495
43496# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
43497set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
43498{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43499$as_echo_n "checking for $ac_word... " >&6; }
43500if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
43501 $as_echo_n "(cached) " >&6
43502else
43503 case $AVIDecodeDelegate in
43504 [\\/]* | ?:[\\/]*)
43505 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
43506 ;;
43507 *)
43508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43509for as_dir in $PATH
43510do
43511 IFS=$as_save_IFS
43512 test -z "$as_dir" && as_dir=.
43513 for ac_exec_ext in '' $ac_executable_extensions; do
43514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43515 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43517 break 2
43518 fi
43519done
43520done
43521IFS=$as_save_IFS
43522
43523 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
43524 ;;
43525esac
43526fi
43527AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
43528if test -n "$AVIDecodeDelegate"; then
43529 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
43530$as_echo "$AVIDecodeDelegate" >&6; }
43531else
43532 { $as_echo "$as_me:$LINENO: result: no" >&5
43533$as_echo "no" >&6; }
43534fi
43535
43536
43537# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
43538set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
43539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43540$as_echo_n "checking for $ac_word... " >&6; }
43541if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
43542 $as_echo_n "(cached) " >&6
43543else
43544 case $BlenderDecodeDelegate in
43545 [\\/]* | ?:[\\/]*)
43546 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
43547 ;;
43548 *)
43549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43550for as_dir in $PATH
43551do
43552 IFS=$as_save_IFS
43553 test -z "$as_dir" && as_dir=.
43554 for ac_exec_ext in '' $ac_executable_extensions; do
43555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43556 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43558 break 2
43559 fi
43560done
43561done
43562IFS=$as_save_IFS
43563
43564 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
43565 ;;
43566esac
43567fi
43568BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
43569if test -n "$BlenderDecodeDelegate"; then
43570 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
43571$as_echo "$BlenderDecodeDelegate" >&6; }
43572else
43573 { $as_echo "$as_me:$LINENO: result: no" >&5
43574$as_echo "no" >&6; }
43575fi
43576
43577
43578# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
43579set dummy "$BZIPDelegateDefault"; ac_word=$2
43580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43581$as_echo_n "checking for $ac_word... " >&6; }
43582if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43583 $as_echo_n "(cached) " >&6
43584else
43585 case $BZIPDelegate in
43586 [\\/]* | ?:[\\/]*)
43587 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43588 ;;
43589 *)
43590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43591for as_dir in $PATH
43592do
43593 IFS=$as_save_IFS
43594 test -z "$as_dir" && as_dir=.
43595 for ac_exec_ext in '' $ac_executable_extensions; do
43596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43597 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43599 break 2
43600 fi
43601done
43602done
43603IFS=$as_save_IFS
43604
43605 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43606 ;;
43607esac
43608fi
43609BZIPDelegate=$ac_cv_path_BZIPDelegate
43610if test -n "$BZIPDelegate"; then
43611 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43612$as_echo "$BZIPDelegate" >&6; }
43613else
43614 { $as_echo "$as_me:$LINENO: result: no" >&5
43615$as_echo "no" >&6; }
43616fi
43617
43618
43619# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43620set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43621{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43622$as_echo_n "checking for $ac_word... " >&6; }
43623if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43624 $as_echo_n "(cached) " >&6
43625else
43626 case $BrowseDelegate in
43627 [\\/]* | ?:[\\/]*)
43628 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43629 ;;
43630 *)
43631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43632for as_dir in $PATH
43633do
43634 IFS=$as_save_IFS
43635 test -z "$as_dir" && as_dir=.
43636 for ac_exec_ext in '' $ac_executable_extensions; do
43637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43638 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43640 break 2
43641 fi
43642done
43643done
43644IFS=$as_save_IFS
43645
43646 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43647 ;;
43648esac
43649fi
43650BrowseDelegate=$ac_cv_path_BrowseDelegate
43651if test -n "$BrowseDelegate"; then
43652 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43653$as_echo "$BrowseDelegate" >&6; }
43654else
43655 { $as_echo "$as_me:$LINENO: result: no" >&5
43656$as_echo "no" >&6; }
43657fi
43658
43659
43660# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43661set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43663$as_echo_n "checking for $ac_word... " >&6; }
43664if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43665 $as_echo_n "(cached) " >&6
43666else
43667 case $CGMDecodeDelegate in
43668 [\\/]* | ?:[\\/]*)
43669 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43670 ;;
43671 *)
43672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43673for as_dir in $PATH
43674do
43675 IFS=$as_save_IFS
43676 test -z "$as_dir" && as_dir=.
43677 for ac_exec_ext in '' $ac_executable_extensions; do
43678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43679 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43681 break 2
43682 fi
43683done
43684done
43685IFS=$as_save_IFS
43686
43687 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43688 ;;
43689esac
43690fi
43691CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43692if test -n "$CGMDecodeDelegate"; then
43693 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43694$as_echo "$CGMDecodeDelegate" >&6; }
43695else
43696 { $as_echo "$as_me:$LINENO: result: no" >&5
43697$as_echo "no" >&6; }
43698fi
43699
43700
43701# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43702set dummy "$CatDelegateDefault"; ac_word=$2
43703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43704$as_echo_n "checking for $ac_word... " >&6; }
43705if test "${ac_cv_path_CatDelegate+set}" = set; then
43706 $as_echo_n "(cached) " >&6
43707else
43708 case $CatDelegate in
43709 [\\/]* | ?:[\\/]*)
43710 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43711 ;;
43712 *)
43713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43714for as_dir in $PATH
43715do
43716 IFS=$as_save_IFS
43717 test -z "$as_dir" && as_dir=.
43718 for ac_exec_ext in '' $ac_executable_extensions; do
43719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43720 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43722 break 2
43723 fi
43724done
43725done
43726IFS=$as_save_IFS
43727
43728 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43729 ;;
43730esac
43731fi
43732CatDelegate=$ac_cv_path_CatDelegate
43733if test -n "$CatDelegate"; then
43734 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43735$as_echo "$CatDelegate" >&6; }
43736else
43737 { $as_echo "$as_me:$LINENO: result: no" >&5
43738$as_echo "no" >&6; }
43739fi
43740
43741
43742# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
43743set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
43744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43745$as_echo_n "checking for $ac_word... " >&6; }
43746if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
43747 $as_echo_n "(cached) " >&6
43748else
43749 case $DNGDecodeDelegate in
43750 [\\/]* | ?:[\\/]*)
43751 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
43752 ;;
43753 *)
43754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43755for as_dir in $PATH
43756do
43757 IFS=$as_save_IFS
43758 test -z "$as_dir" && as_dir=.
43759 for ac_exec_ext in '' $ac_executable_extensions; do
43760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43761 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43763 break 2
43764 fi
43765done
43766done
43767IFS=$as_save_IFS
43768
43769 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
43770 ;;
43771esac
43772fi
43773DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
43774if test -n "$DNGDecodeDelegate"; then
43775 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
43776$as_echo "$DNGDecodeDelegate" >&6; }
43777else
43778 { $as_echo "$as_me:$LINENO: result: no" >&5
43779$as_echo "no" >&6; }
43780fi
43781
43782
43783# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
43784set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
43785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43786$as_echo_n "checking for $ac_word... " >&6; }
43787if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
43788 $as_echo_n "(cached) " >&6
43789else
43790 case $GVCDecodeDelegate in
43791 [\\/]* | ?:[\\/]*)
43792 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
43793 ;;
43794 *)
43795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43796for as_dir in $PATH
43797do
43798 IFS=$as_save_IFS
43799 test -z "$as_dir" && as_dir=.
43800 for ac_exec_ext in '' $ac_executable_extensions; do
43801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43802 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43804 break 2
43805 fi
43806done
43807done
43808IFS=$as_save_IFS
43809
43810 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
43811 ;;
43812esac
43813fi
43814GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
43815if test -n "$GVCDecodeDelegate"; then
43816 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
43817$as_echo "$GVCDecodeDelegate" >&6; }
43818else
43819 { $as_echo "$as_me:$LINENO: result: no" >&5
43820$as_echo "no" >&6; }
43821fi
43822
43823
43824# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
43825set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
43826{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43827$as_echo_n "checking for $ac_word... " >&6; }
43828if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
43829 $as_echo_n "(cached) " >&6
43830else
43831 case $DVIDecodeDelegate in
43832 [\\/]* | ?:[\\/]*)
43833 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
43834 ;;
43835 *)
43836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43837for as_dir in $PATH
43838do
43839 IFS=$as_save_IFS
43840 test -z "$as_dir" && as_dir=.
43841 for ac_exec_ext in '' $ac_executable_extensions; do
43842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43843 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43845 break 2
43846 fi
43847done
43848done
43849IFS=$as_save_IFS
43850
43851 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
43852 ;;
43853esac
43854fi
43855DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
43856if test -n "$DVIDecodeDelegate"; then
43857 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
43858$as_echo "$DVIDecodeDelegate" >&6; }
43859else
43860 { $as_echo "$as_me:$LINENO: result: no" >&5
43861$as_echo "no" >&6; }
43862fi
43863
43864
43865# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
43866set dummy "$EchoDelegateDefault"; ac_word=$2
43867{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43868$as_echo_n "checking for $ac_word... " >&6; }
43869if test "${ac_cv_path_EchoDelegate+set}" = set; then
43870 $as_echo_n "(cached) " >&6
43871else
43872 case $EchoDelegate in
43873 [\\/]* | ?:[\\/]*)
43874 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
43875 ;;
43876 *)
43877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43878for as_dir in $PATH
43879do
43880 IFS=$as_save_IFS
43881 test -z "$as_dir" && as_dir=.
43882 for ac_exec_ext in '' $ac_executable_extensions; do
43883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43884 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
43885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43886 break 2
43887 fi
43888done
43889done
43890IFS=$as_save_IFS
43891
43892 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
43893 ;;
43894esac
43895fi
43896EchoDelegate=$ac_cv_path_EchoDelegate
43897if test -n "$EchoDelegate"; then
43898 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
43899$as_echo "$EchoDelegate" >&6; }
43900else
43901 { $as_echo "$as_me:$LINENO: result: no" >&5
43902$as_echo "no" >&6; }
43903fi
43904
43905
43906# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
43907set dummy "$EditorDelegateDefault"; ac_word=$2
43908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43909$as_echo_n "checking for $ac_word... " >&6; }
43910if test "${ac_cv_path_EditorDelegate+set}" = set; then
43911 $as_echo_n "(cached) " >&6
43912else
43913 case $EditorDelegate in
43914 [\\/]* | ?:[\\/]*)
43915 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
43916 ;;
43917 *)
43918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43919for as_dir in $PATH
43920do
43921 IFS=$as_save_IFS
43922 test -z "$as_dir" && as_dir=.
43923 for ac_exec_ext in '' $ac_executable_extensions; do
43924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43925 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
43926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43927 break 2
43928 fi
43929done
43930done
43931IFS=$as_save_IFS
43932
43933 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
43934 ;;
43935esac
43936fi
43937EditorDelegate=$ac_cv_path_EditorDelegate
43938if test -n "$EditorDelegate"; then
43939 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
43940$as_echo "$EditorDelegate" >&6; }
43941else
43942 { $as_echo "$as_me:$LINENO: result: no" >&5
43943$as_echo "no" >&6; }
43944fi
43945
43946
43947# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
43948set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
43949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43950$as_echo_n "checking for $ac_word... " >&6; }
43951if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
43952 $as_echo_n "(cached) " >&6
43953else
43954 case $FIGDecodeDelegate in
43955 [\\/]* | ?:[\\/]*)
43956 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
43957 ;;
43958 *)
43959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43960for as_dir in $PATH
43961do
43962 IFS=$as_save_IFS
43963 test -z "$as_dir" && as_dir=.
43964 for ac_exec_ext in '' $ac_executable_extensions; do
43965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43966 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43968 break 2
43969 fi
43970done
43971done
43972IFS=$as_save_IFS
43973
43974 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
43975 ;;
43976esac
43977fi
43978FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
43979if test -n "$FIGDecodeDelegate"; then
43980 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
43981$as_echo "$FIGDecodeDelegate" >&6; }
43982else
43983 { $as_echo "$as_me:$LINENO: result: no" >&5
43984$as_echo "no" >&6; }
43985fi
43986
43987
43988# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
43989set dummy "$ConvertDelegateDefault"; ac_word=$2
43990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43991$as_echo_n "checking for $ac_word... " >&6; }
43992if test "${ac_cv_path_ConvertDelegate+set}" = set; then
43993 $as_echo_n "(cached) " >&6
43994else
43995 case $ConvertDelegate in
43996 [\\/]* | ?:[\\/]*)
43997 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
43998 ;;
43999 *)
44000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44001for as_dir in $PATH
44002do
44003 IFS=$as_save_IFS
44004 test -z "$as_dir" && as_dir=.
44005 for ac_exec_ext in '' $ac_executable_extensions; do
44006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44007 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
44008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44009 break 2
44010 fi
44011done
44012done
44013IFS=$as_save_IFS
44014
44015 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
44016 ;;
44017esac
44018fi
44019ConvertDelegate=$ac_cv_path_ConvertDelegate
44020if test -n "$ConvertDelegate"; then
44021 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
44022$as_echo "$ConvertDelegate" >&6; }
44023else
44024 { $as_echo "$as_me:$LINENO: result: no" >&5
44025$as_echo "no" >&6; }
44026fi
44027
44028
44029# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
44030set dummy "$DisplayDelegateDefault"; ac_word=$2
44031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44032$as_echo_n "checking for $ac_word... " >&6; }
44033if test "${ac_cv_path_DisplayDelegate+set}" = set; then
44034 $as_echo_n "(cached) " >&6
44035else
44036 case $DisplayDelegate in
44037 [\\/]* | ?:[\\/]*)
44038 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
44039 ;;
44040 *)
44041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44042for as_dir in $PATH
44043do
44044 IFS=$as_save_IFS
44045 test -z "$as_dir" && as_dir=.
44046 for ac_exec_ext in '' $ac_executable_extensions; do
44047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44048 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
44049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44050 break 2
44051 fi
44052done
44053done
44054IFS=$as_save_IFS
44055
44056 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
44057 ;;
44058esac
44059fi
44060DisplayDelegate=$ac_cv_path_DisplayDelegate
44061if test -n "$DisplayDelegate"; then
44062 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
44063$as_echo "$DisplayDelegate" >&6; }
44064else
44065 { $as_echo "$as_me:$LINENO: result: no" >&5
44066$as_echo "no" >&6; }
44067fi
44068
44069
44070# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
44071set dummy "$MogrifyDelegateDefault"; ac_word=$2
44072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44073$as_echo_n "checking for $ac_word... " >&6; }
44074if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
44075 $as_echo_n "(cached) " >&6
44076else
44077 case $MogrifyDelegate in
44078 [\\/]* | ?:[\\/]*)
44079 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
44080 ;;
44081 *)
44082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44083for as_dir in $PATH
44084do
44085 IFS=$as_save_IFS
44086 test -z "$as_dir" && as_dir=.
44087 for ac_exec_ext in '' $ac_executable_extensions; do
44088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44089 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
44090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44091 break 2
44092 fi
44093done
44094done
44095IFS=$as_save_IFS
44096
44097 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
44098 ;;
44099esac
44100fi
44101MogrifyDelegate=$ac_cv_path_MogrifyDelegate
44102if test -n "$MogrifyDelegate"; then
44103 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
44104$as_echo "$MogrifyDelegate" >&6; }
44105else
44106 { $as_echo "$as_me:$LINENO: result: no" >&5
44107$as_echo "no" >&6; }
44108fi
44109
44110
44111# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
44112set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
44113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44114$as_echo_n "checking for $ac_word... " >&6; }
44115if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
44116 $as_echo_n "(cached) " >&6
44117else
44118 case $GnuplotDecodeDelegate in
44119 [\\/]* | ?:[\\/]*)
44120 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
44121 ;;
44122 *)
44123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44124for as_dir in $PATH
44125do
44126 IFS=$as_save_IFS
44127 test -z "$as_dir" && as_dir=.
44128 for ac_exec_ext in '' $ac_executable_extensions; do
44129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44130 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44132 break 2
44133 fi
44134done
44135done
44136IFS=$as_save_IFS
44137
44138 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
44139 ;;
44140esac
44141fi
44142GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
44143if test -n "$GnuplotDecodeDelegate"; then
44144 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
44145$as_echo "$GnuplotDecodeDelegate" >&6; }
44146else
44147 { $as_echo "$as_me:$LINENO: result: no" >&5
44148$as_echo "no" >&6; }
44149fi
44150
44151
44152# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
44153set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
44154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44155$as_echo_n "checking for $ac_word... " >&6; }
44156if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
44157 $as_echo_n "(cached) " >&6
44158else
44159 case $HDRDecodeDelegate in
44160 [\\/]* | ?:[\\/]*)
44161 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
44162 ;;
44163 *)
44164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44165for as_dir in $PATH
44166do
44167 IFS=$as_save_IFS
44168 test -z "$as_dir" && as_dir=.
44169 for ac_exec_ext in '' $ac_executable_extensions; do
44170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44171 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44173 break 2
44174 fi
44175done
44176done
44177IFS=$as_save_IFS
44178
44179 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
44180 ;;
44181esac
44182fi
44183HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
44184if test -n "$HDRDecodeDelegate"; then
44185 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
44186$as_echo "$HDRDecodeDelegate" >&6; }
44187else
44188 { $as_echo "$as_me:$LINENO: result: no" >&5
44189$as_echo "no" >&6; }
44190fi
44191
44192
44193# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
44194set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
44195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44196$as_echo_n "checking for $ac_word... " >&6; }
44197if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
44198 $as_echo_n "(cached) " >&6
44199else
44200 case $HPGLDecodeDelegate in
44201 [\\/]* | ?:[\\/]*)
44202 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
44203 ;;
44204 *)
44205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44206for as_dir in $PATH
44207do
44208 IFS=$as_save_IFS
44209 test -z "$as_dir" && as_dir=.
44210 for ac_exec_ext in '' $ac_executable_extensions; do
44211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44212 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44214 break 2
44215 fi
44216done
44217done
44218IFS=$as_save_IFS
44219
44220 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
44221 ;;
44222esac
44223fi
44224HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
44225if test -n "$HPGLDecodeDelegate"; then
44226 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
44227$as_echo "$HPGLDecodeDelegate" >&6; }
44228else
44229 { $as_echo "$as_me:$LINENO: result: no" >&5
44230$as_echo "no" >&6; }
44231fi
44232
44233
44234# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
44235set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
44236{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44237$as_echo_n "checking for $ac_word... " >&6; }
44238if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
44239 $as_echo_n "(cached) " >&6
44240else
44241 case $HTMLDecodeDelegate in
44242 [\\/]* | ?:[\\/]*)
44243 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
44244 ;;
44245 *)
44246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44247for as_dir in $PATH
44248do
44249 IFS=$as_save_IFS
44250 test -z "$as_dir" && as_dir=.
44251 for ac_exec_ext in '' $ac_executable_extensions; do
44252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44253 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44255 break 2
44256 fi
44257done
44258done
44259IFS=$as_save_IFS
44260
44261 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
44262 ;;
44263esac
44264fi
44265HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
44266if test -n "$HTMLDecodeDelegate"; then
44267 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
44268$as_echo "$HTMLDecodeDelegate" >&6; }
44269else
44270 { $as_echo "$as_me:$LINENO: result: no" >&5
44271$as_echo "no" >&6; }
44272fi
44273
44274
44275# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
44276set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
44277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44278$as_echo_n "checking for $ac_word... " >&6; }
44279if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
44280 $as_echo_n "(cached) " >&6
44281else
44282 case $ILBMDecodeDelegate in
44283 [\\/]* | ?:[\\/]*)
44284 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
44285 ;;
44286 *)
44287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44288for as_dir in $PATH
44289do
44290 IFS=$as_save_IFS
44291 test -z "$as_dir" && as_dir=.
44292 for ac_exec_ext in '' $ac_executable_extensions; do
44293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44294 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44296 break 2
44297 fi
44298done
44299done
44300IFS=$as_save_IFS
44301
44302 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
44303 ;;
44304esac
44305fi
44306ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
44307if test -n "$ILBMDecodeDelegate"; then
44308 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
44309$as_echo "$ILBMDecodeDelegate" >&6; }
44310else
44311 { $as_echo "$as_me:$LINENO: result: no" >&5
44312$as_echo "no" >&6; }
44313fi
44314
44315
44316# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
44317set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
44318{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44319$as_echo_n "checking for $ac_word... " >&6; }
44320if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
44321 $as_echo_n "(cached) " >&6
44322else
44323 case $ILBMEncodeDelegate in
44324 [\\/]* | ?:[\\/]*)
44325 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
44326 ;;
44327 *)
44328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44329for as_dir in $PATH
44330do
44331 IFS=$as_save_IFS
44332 test -z "$as_dir" && as_dir=.
44333 for ac_exec_ext in '' $ac_executable_extensions; do
44334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44335 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44337 break 2
44338 fi
44339done
44340done
44341IFS=$as_save_IFS
44342
44343 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
44344 ;;
44345esac
44346fi
44347ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
44348if test -n "$ILBMEncodeDelegate"; then
44349 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
44350$as_echo "$ILBMEncodeDelegate" >&6; }
44351else
44352 { $as_echo "$as_me:$LINENO: result: no" >&5
44353$as_echo "no" >&6; }
44354fi
44355
44356
44357# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
44358set dummy "$LPDelegateDefault"; ac_word=$2
44359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44360$as_echo_n "checking for $ac_word... " >&6; }
44361if test "${ac_cv_path_LPDelegate+set}" = set; then
44362 $as_echo_n "(cached) " >&6
44363else
44364 case $LPDelegate in
44365 [\\/]* | ?:[\\/]*)
44366 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
44367 ;;
44368 *)
44369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44370for as_dir in $PATH
44371do
44372 IFS=$as_save_IFS
44373 test -z "$as_dir" && as_dir=.
44374 for ac_exec_ext in '' $ac_executable_extensions; do
44375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44376 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
44377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44378 break 2
44379 fi
44380done
44381done
44382IFS=$as_save_IFS
44383
44384 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
44385 ;;
44386esac
44387fi
44388LPDelegate=$ac_cv_path_LPDelegate
44389if test -n "$LPDelegate"; then
44390 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
44391$as_echo "$LPDelegate" >&6; }
44392else
44393 { $as_echo "$as_me:$LINENO: result: no" >&5
44394$as_echo "no" >&6; }
44395fi
44396
44397
44398# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
44399set dummy "$LPRDelegateDefault"; ac_word=$2
44400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44401$as_echo_n "checking for $ac_word... " >&6; }
44402if test "${ac_cv_path_LPRDelegate+set}" = set; then
44403 $as_echo_n "(cached) " >&6
44404else
44405 case $LPRDelegate in
44406 [\\/]* | ?:[\\/]*)
44407 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
44408 ;;
44409 *)
44410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44411for as_dir in $PATH
44412do
44413 IFS=$as_save_IFS
44414 test -z "$as_dir" && as_dir=.
44415 for ac_exec_ext in '' $ac_executable_extensions; do
44416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44417 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
44418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44419 break 2
44420 fi
44421done
44422done
44423IFS=$as_save_IFS
44424
44425 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
44426 ;;
44427esac
44428fi
44429LPRDelegate=$ac_cv_path_LPRDelegate
44430if test -n "$LPRDelegate"; then
44431 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
44432$as_echo "$LPRDelegate" >&6; }
44433else
44434 { $as_echo "$as_me:$LINENO: result: no" >&5
44435$as_echo "no" >&6; }
44436fi
44437
44438
44439# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
44440set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
44441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44442$as_echo_n "checking for $ac_word... " >&6; }
44443if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
44444 $as_echo_n "(cached) " >&6
44445else
44446 case $LZWDecodeDelegate in
44447 [\\/]* | ?:[\\/]*)
44448 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
44449 ;;
44450 *)
44451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44452for as_dir in $PATH
44453do
44454 IFS=$as_save_IFS
44455 test -z "$as_dir" && as_dir=.
44456 for ac_exec_ext in '' $ac_executable_extensions; do
44457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44458 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44460 break 2
44461 fi
44462done
44463done
44464IFS=$as_save_IFS
44465
44466 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
44467 ;;
44468esac
44469fi
44470LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
44471if test -n "$LZWDecodeDelegate"; then
44472 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
44473$as_echo "$LZWDecodeDelegate" >&6; }
44474else
44475 { $as_echo "$as_me:$LINENO: result: no" >&5
44476$as_echo "no" >&6; }
44477fi
44478
44479
44480# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
44481set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
44482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44483$as_echo_n "checking for $ac_word... " >&6; }
44484if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
44485 $as_echo_n "(cached) " >&6
44486else
44487 case $LZWEncodeDelegate in
44488 [\\/]* | ?:[\\/]*)
44489 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
44490 ;;
44491 *)
44492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44493for as_dir in $PATH
44494do
44495 IFS=$as_save_IFS
44496 test -z "$as_dir" && as_dir=.
44497 for ac_exec_ext in '' $ac_executable_extensions; do
44498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44499 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44501 break 2
44502 fi
44503done
44504done
44505IFS=$as_save_IFS
44506
44507 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
44508 ;;
44509esac
44510fi
44511LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
44512if test -n "$LZWEncodeDelegate"; then
44513 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
44514$as_echo "$LZWEncodeDelegate" >&6; }
44515else
44516 { $as_echo "$as_me:$LINENO: result: no" >&5
44517$as_echo "no" >&6; }
44518fi
44519
44520
44521# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
44522set dummy "$LaunchDelegateDefault"; ac_word=$2
44523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44524$as_echo_n "checking for $ac_word... " >&6; }
44525if test "${ac_cv_path_LaunchDelegate+set}" = set; then
44526 $as_echo_n "(cached) " >&6
44527else
44528 case $LaunchDelegate in
44529 [\\/]* | ?:[\\/]*)
44530 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
44531 ;;
44532 *)
44533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44534for as_dir in $PATH
44535do
44536 IFS=$as_save_IFS
44537 test -z "$as_dir" && as_dir=.
44538 for ac_exec_ext in '' $ac_executable_extensions; do
44539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44540 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
44541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44542 break 2
44543 fi
44544done
44545done
44546IFS=$as_save_IFS
44547
44548 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
44549 ;;
44550esac
44551fi
44552LaunchDelegate=$ac_cv_path_LaunchDelegate
44553if test -n "$LaunchDelegate"; then
44554 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
44555$as_echo "$LaunchDelegate" >&6; }
44556else
44557 { $as_echo "$as_me:$LINENO: result: no" >&5
44558$as_echo "no" >&6; }
44559fi
44560
44561
44562# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
44563set dummy "$MANDelegateDefault"; ac_word=$2
44564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44565$as_echo_n "checking for $ac_word... " >&6; }
44566if test "${ac_cv_path_MANDelegate+set}" = set; then
44567 $as_echo_n "(cached) " >&6
44568else
44569 case $MANDelegate in
44570 [\\/]* | ?:[\\/]*)
44571 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
44572 ;;
44573 *)
44574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44575for as_dir in $PATH
44576do
44577 IFS=$as_save_IFS
44578 test -z "$as_dir" && as_dir=.
44579 for ac_exec_ext in '' $ac_executable_extensions; do
44580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44581 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44583 break 2
44584 fi
44585done
44586done
44587IFS=$as_save_IFS
44588
44589 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44590 ;;
44591esac
44592fi
44593MANDelegate=$ac_cv_path_MANDelegate
44594if test -n "$MANDelegate"; then
44595 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44596$as_echo "$MANDelegate" >&6; }
44597else
44598 { $as_echo "$as_me:$LINENO: result: no" >&5
44599$as_echo "no" >&6; }
44600fi
44601
44602
44603# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44604set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44606$as_echo_n "checking for $ac_word... " >&6; }
44607if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44608 $as_echo_n "(cached) " >&6
44609else
44610 case $MPEGDecodeDelegate in
44611 [\\/]* | ?:[\\/]*)
44612 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44613 ;;
44614 *)
44615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44616for as_dir in $PATH
44617do
44618 IFS=$as_save_IFS
44619 test -z "$as_dir" && as_dir=.
44620 for ac_exec_ext in '' $ac_executable_extensions; do
44621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44622 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44624 break 2
44625 fi
44626done
44627done
44628IFS=$as_save_IFS
44629
44630 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44631 ;;
44632esac
44633fi
44634MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44635if test -n "$MPEGDecodeDelegate"; then
44636 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44637$as_echo "$MPEGDecodeDelegate" >&6; }
44638else
44639 { $as_echo "$as_me:$LINENO: result: no" >&5
44640$as_echo "no" >&6; }
44641fi
44642
44643
44644# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44645set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44646{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44647$as_echo_n "checking for $ac_word... " >&6; }
44648if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44649 $as_echo_n "(cached) " >&6
44650else
44651 case $MPEGEncodeDelegate in
44652 [\\/]* | ?:[\\/]*)
44653 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44654 ;;
44655 *)
44656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44657for as_dir in $PATH
44658do
44659 IFS=$as_save_IFS
44660 test -z "$as_dir" && as_dir=.
44661 for ac_exec_ext in '' $ac_executable_extensions; do
44662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44663 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44665 break 2
44666 fi
44667done
44668done
44669IFS=$as_save_IFS
44670
44671 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44672 ;;
44673esac
44674fi
44675MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44676if test -n "$MPEGEncodeDelegate"; then
44677 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44678$as_echo "$MPEGEncodeDelegate" >&6; }
44679else
44680 { $as_echo "$as_me:$LINENO: result: no" >&5
44681$as_echo "no" >&6; }
44682fi
44683
44684
44685# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44686set dummy "$MVDelegateDefault"; ac_word=$2
44687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44688$as_echo_n "checking for $ac_word... " >&6; }
44689if test "${ac_cv_path_MVDelegate+set}" = set; then
44690 $as_echo_n "(cached) " >&6
44691else
44692 case $MVDelegate in
44693 [\\/]* | ?:[\\/]*)
44694 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44695 ;;
44696 *)
44697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44698for as_dir in $PATH
44699do
44700 IFS=$as_save_IFS
44701 test -z "$as_dir" && as_dir=.
44702 for ac_exec_ext in '' $ac_executable_extensions; do
44703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44704 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44706 break 2
44707 fi
44708done
44709done
44710IFS=$as_save_IFS
44711
44712 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44713 ;;
44714esac
44715fi
44716MVDelegate=$ac_cv_path_MVDelegate
44717if test -n "$MVDelegate"; then
44718 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44719$as_echo "$MVDelegate" >&6; }
44720else
44721 { $as_echo "$as_me:$LINENO: result: no" >&5
44722$as_echo "no" >&6; }
44723fi
44724
44725
44726# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44727set dummy "$PCLDelegateDefault"; ac_word=$2
44728{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44729$as_echo_n "checking for $ac_word... " >&6; }
44730if test "${ac_cv_path_PCLDelegate+set}" = set; then
44731 $as_echo_n "(cached) " >&6
44732else
44733 case $PCLDelegate in
44734 [\\/]* | ?:[\\/]*)
44735 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44736 ;;
44737 *)
44738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44739for as_dir in $PATH
44740do
44741 IFS=$as_save_IFS
44742 test -z "$as_dir" && as_dir=.
44743 for ac_exec_ext in '' $ac_executable_extensions; do
44744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44745 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
44746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44747 break 2
44748 fi
44749done
44750done
44751IFS=$as_save_IFS
44752
44753 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
44754 ;;
44755esac
44756fi
44757PCLDelegate=$ac_cv_path_PCLDelegate
44758if test -n "$PCLDelegate"; then
44759 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
44760$as_echo "$PCLDelegate" >&6; }
44761else
44762 { $as_echo "$as_me:$LINENO: result: no" >&5
44763$as_echo "no" >&6; }
44764fi
44765
44766
44767# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
44768set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
44769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44770$as_echo_n "checking for $ac_word... " >&6; }
44771if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
44772 $as_echo_n "(cached) " >&6
44773else
44774 case $PGPDecodeDelegate in
44775 [\\/]* | ?:[\\/]*)
44776 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
44777 ;;
44778 *)
44779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44780for as_dir in $PATH
44781do
44782 IFS=$as_save_IFS
44783 test -z "$as_dir" && as_dir=.
44784 for ac_exec_ext in '' $ac_executable_extensions; do
44785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44786 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44788 break 2
44789 fi
44790done
44791done
44792IFS=$as_save_IFS
44793
44794 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
44795 ;;
44796esac
44797fi
44798PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
44799if test -n "$PGPDecodeDelegate"; then
44800 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
44801$as_echo "$PGPDecodeDelegate" >&6; }
44802else
44803 { $as_echo "$as_me:$LINENO: result: no" >&5
44804$as_echo "no" >&6; }
44805fi
44806
44807
44808# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
44809set dummy "$POVDelegateDefault"; ac_word=$2
44810{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44811$as_echo_n "checking for $ac_word... " >&6; }
44812if test "${ac_cv_path_POVDelegate+set}" = set; then
44813 $as_echo_n "(cached) " >&6
44814else
44815 case $POVDelegate in
44816 [\\/]* | ?:[\\/]*)
44817 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
44818 ;;
44819 *)
44820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44821for as_dir in $PATH
44822do
44823 IFS=$as_save_IFS
44824 test -z "$as_dir" && as_dir=.
44825 for ac_exec_ext in '' $ac_executable_extensions; do
44826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44827 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
44828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44829 break 2
44830 fi
44831done
44832done
44833IFS=$as_save_IFS
44834
44835 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
44836 ;;
44837esac
44838fi
44839POVDelegate=$ac_cv_path_POVDelegate
44840if test -n "$POVDelegate"; then
44841 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
44842$as_echo "$POVDelegate" >&6; }
44843else
44844 { $as_echo "$as_me:$LINENO: result: no" >&5
44845$as_echo "no" >&6; }
44846fi
44847
44848
44849for ac_prog in gsx gsc "$PSDelegateDefault"
44850do
44851 # Extract the first word of "$ac_prog", so it can be a program name with args.
44852set dummy $ac_prog; ac_word=$2
44853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44854$as_echo_n "checking for $ac_word... " >&6; }
44855if test "${ac_cv_path_PSDelegate+set}" = set; then
44856 $as_echo_n "(cached) " >&6
44857else
44858 case $PSDelegate in
44859 [\\/]* | ?:[\\/]*)
44860 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
44861 ;;
44862 *)
44863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44864for as_dir in $PATH
44865do
44866 IFS=$as_save_IFS
44867 test -z "$as_dir" && as_dir=.
44868 for ac_exec_ext in '' $ac_executable_extensions; do
44869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44870 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
44871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44872 break 2
44873 fi
44874done
44875done
44876IFS=$as_save_IFS
44877
44878 ;;
44879esac
44880fi
44881PSDelegate=$ac_cv_path_PSDelegate
44882if test -n "$PSDelegate"; then
44883 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
44884$as_echo "$PSDelegate" >&6; }
44885else
44886 { $as_echo "$as_me:$LINENO: result: no" >&5
44887$as_echo "no" >&6; }
44888fi
44889
44890
44891 test -n "$PSDelegate" && break
44892done
44893test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
44894
44895# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
44896set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
44897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44898$as_echo_n "checking for $ac_word... " >&6; }
44899if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
44900 $as_echo_n "(cached) " >&6
44901else
44902 case $RLEEncodeDelegate in
44903 [\\/]* | ?:[\\/]*)
44904 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
44905 ;;
44906 *)
44907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44908for as_dir in $PATH
44909do
44910 IFS=$as_save_IFS
44911 test -z "$as_dir" && as_dir=.
44912 for ac_exec_ext in '' $ac_executable_extensions; do
44913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44914 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44916 break 2
44917 fi
44918done
44919done
44920IFS=$as_save_IFS
44921
44922 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
44923 ;;
44924esac
44925fi
44926RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
44927if test -n "$RLEEncodeDelegate"; then
44928 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
44929$as_echo "$RLEEncodeDelegate" >&6; }
44930else
44931 { $as_echo "$as_me:$LINENO: result: no" >&5
44932$as_echo "no" >&6; }
44933fi
44934
44935
44936# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
44937set dummy "$RMDelegateDefault"; ac_word=$2
44938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44939$as_echo_n "checking for $ac_word... " >&6; }
44940if test "${ac_cv_path_RMDelegate+set}" = set; then
44941 $as_echo_n "(cached) " >&6
44942else
44943 case $RMDelegate in
44944 [\\/]* | ?:[\\/]*)
44945 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
44946 ;;
44947 *)
44948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44949for as_dir in $PATH
44950do
44951 IFS=$as_save_IFS
44952 test -z "$as_dir" && as_dir=.
44953 for ac_exec_ext in '' $ac_executable_extensions; do
44954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44955 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
44956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44957 break 2
44958 fi
44959done
44960done
44961IFS=$as_save_IFS
44962
44963 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
44964 ;;
44965esac
44966fi
44967RMDelegate=$ac_cv_path_RMDelegate
44968if test -n "$RMDelegate"; then
44969 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
44970$as_echo "$RMDelegate" >&6; }
44971else
44972 { $as_echo "$as_me:$LINENO: result: no" >&5
44973$as_echo "no" >&6; }
44974fi
44975
44976
44977# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
44978set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
44979{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44980$as_echo_n "checking for $ac_word... " >&6; }
44981if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
44982 $as_echo_n "(cached) " >&6
44983else
44984 case $SCANDecodeDelegate in
44985 [\\/]* | ?:[\\/]*)
44986 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
44987 ;;
44988 *)
44989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44990for as_dir in $PATH
44991do
44992 IFS=$as_save_IFS
44993 test -z "$as_dir" && as_dir=.
44994 for ac_exec_ext in '' $ac_executable_extensions; do
44995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44996 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44998 break 2
44999 fi
45000done
45001done
45002IFS=$as_save_IFS
45003
45004 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
45005 ;;
45006esac
45007fi
45008SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
45009if test -n "$SCANDecodeDelegate"; then
45010 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
45011$as_echo "$SCANDecodeDelegate" >&6; }
45012else
45013 { $as_echo "$as_me:$LINENO: result: no" >&5
45014$as_echo "no" >&6; }
45015fi
45016
45017
45018# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
45019set dummy "$TXTDelegateDefault"; ac_word=$2
45020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45021$as_echo_n "checking for $ac_word... " >&6; }
45022if test "${ac_cv_path_TXTDelegate+set}" = set; then
45023 $as_echo_n "(cached) " >&6
45024else
45025 case $TXTDelegate in
45026 [\\/]* | ?:[\\/]*)
45027 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
45028 ;;
45029 *)
45030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45031for as_dir in $PATH
45032do
45033 IFS=$as_save_IFS
45034 test -z "$as_dir" && as_dir=.
45035 for ac_exec_ext in '' $ac_executable_extensions; do
45036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45037 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
45038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45039 break 2
45040 fi
45041done
45042done
45043IFS=$as_save_IFS
45044
45045 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
45046 ;;
45047esac
45048fi
45049TXTDelegate=$ac_cv_path_TXTDelegate
45050if test -n "$TXTDelegate"; then
45051 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
45052$as_echo "$TXTDelegate" >&6; }
45053else
45054 { $as_echo "$as_me:$LINENO: result: no" >&5
45055$as_echo "no" >&6; }
45056fi
45057
45058
45059# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
45060set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
45061{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45062$as_echo_n "checking for $ac_word... " >&6; }
45063if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
45064 $as_echo_n "(cached) " >&6
45065else
45066 case $WMFDecodeDelegate in
45067 [\\/]* | ?:[\\/]*)
45068 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
45069 ;;
45070 *)
45071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45072for as_dir in $PATH
45073do
45074 IFS=$as_save_IFS
45075 test -z "$as_dir" && as_dir=.
45076 for ac_exec_ext in '' $ac_executable_extensions; do
45077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45078 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45080 break 2
45081 fi
45082done
45083done
45084IFS=$as_save_IFS
45085
45086 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
45087 ;;
45088esac
45089fi
45090WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
45091if test -n "$WMFDecodeDelegate"; then
45092 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
45093$as_echo "$WMFDecodeDelegate" >&6; }
45094else
45095 { $as_echo "$as_me:$LINENO: result: no" >&5
45096$as_echo "no" >&6; }
45097fi
45098
45099
45100# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
45101set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
45102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45103$as_echo_n "checking for $ac_word... " >&6; }
45104if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
45105 $as_echo_n "(cached) " >&6
45106else
45107 case $WWWDecodeDelegate in
45108 [\\/]* | ?:[\\/]*)
45109 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
45110 ;;
45111 *)
45112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45113for as_dir in $PATH
45114do
45115 IFS=$as_save_IFS
45116 test -z "$as_dir" && as_dir=.
45117 for ac_exec_ext in '' $ac_executable_extensions; do
45118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45119 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45121 break 2
45122 fi
45123done
45124done
45125IFS=$as_save_IFS
45126
45127 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
45128 ;;
45129esac
45130fi
45131WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
45132if test -n "$WWWDecodeDelegate"; then
45133 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
45134$as_echo "$WWWDecodeDelegate" >&6; }
45135else
45136 { $as_echo "$as_me:$LINENO: result: no" >&5
45137$as_echo "no" >&6; }
45138fi
45139
45140
45141# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
45142set dummy "$XPSDelegateDefault"; ac_word=$2
45143{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45144$as_echo_n "checking for $ac_word... " >&6; }
45145if test "${ac_cv_path_XPSDelegate+set}" = set; then
45146 $as_echo_n "(cached) " >&6
45147else
45148 case $XPSDelegate in
45149 [\\/]* | ?:[\\/]*)
45150 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
45151 ;;
45152 *)
45153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45154for as_dir in $PATH
45155do
45156 IFS=$as_save_IFS
45157 test -z "$as_dir" && as_dir=.
45158 for ac_exec_ext in '' $ac_executable_extensions; do
45159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45160 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
45161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45162 break 2
45163 fi
45164done
45165done
45166IFS=$as_save_IFS
45167
45168 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
45169 ;;
45170esac
45171fi
45172XPSDelegate=$ac_cv_path_XPSDelegate
45173if test -n "$XPSDelegate"; then
45174 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
45175$as_echo "$XPSDelegate" >&6; }
45176else
45177 { $as_echo "$as_me:$LINENO: result: no" >&5
45178$as_echo "no" >&6; }
45179fi
45180
45181
45182# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
45183set dummy "$ZipDelegateDefault"; ac_word=$2
45184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45185$as_echo_n "checking for $ac_word... " >&6; }
45186if test "${ac_cv_path_ZipDelegate+set}" = set; then
45187 $as_echo_n "(cached) " >&6
45188else
45189 case $ZipDelegate in
45190 [\\/]* | ?:[\\/]*)
45191 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
45192 ;;
45193 *)
45194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45195for as_dir in $PATH
45196do
45197 IFS=$as_save_IFS
45198 test -z "$as_dir" && as_dir=.
45199 for ac_exec_ext in '' $ac_executable_extensions; do
45200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45201 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
45202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45203 break 2
45204 fi
45205done
45206done
45207IFS=$as_save_IFS
45208
45209 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
45210 ;;
45211esac
45212fi
45213ZipDelegate=$ac_cv_path_ZipDelegate
45214if test -n "$ZipDelegate"; then
45215 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
45216$as_echo "$ZipDelegate" >&6; }
45217else
45218 { $as_echo "$as_me:$LINENO: result: no" >&5
45219$as_echo "no" >&6; }
45220fi
45221
45222
45223
45224# Prefer lpr to lp; lp needs options tacked on.
45225if test "$LPRDelegate" != no; then
45226 PrintDelegate="$LPRDelegate"
45227else
45228 PrintDelegate="$LPDelegate -c -s"
45229fi
45230
45231
45232# Installed ImageMagick utiltity paths
45233ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
45234DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
45235MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
45236
45237# Set delegate booleans
45238have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
45239have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
45240have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
45241have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
45242have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
45243have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
45244have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
45245have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
45246have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
45247have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
45248have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
45249
45250#
45251# Test for font directories
45252#
45253type_include_files=''
45254
45255# Windows
45256windows_font_dir=''
45257if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
45258 windows_font_dir="${with_windows_font_dir}/"
45259fi
45260if test -n "$windows_font_dir"; then
45261 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
45262 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
45263 fi
45264 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
45265 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
45266 fi
45267 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
45268 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
45269 fi
45270fi
45271if test -n "$windows_font_dir"; then
45272 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
45273fi
45274
45275
45276# Ghostscript
45277{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
45278$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
45279ghostscript_font_dir=''
45280if test "${with_gs_font_dir}" != 'default'; then
45281 ghostscript_font_dir="${with_gs_font_dir}/"
45282else
45283 if test "${native_win32_build}" = 'yes'; then
45284 # Native Windows Build
45285 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
45286 if test -f "${font_dir}a010013l.pfb"; then
45287 ghostscript_font_dir="$font_dir"
45288 break 1
45289 fi
45290 done
45291 if test "${PSDelegate}" != 'gswin32c'; then
45292 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
45293 fi
45294 else
45295 # Linux / Mac OS X / Unix Build
45296 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
45297 if test -f "${font_dir}a010013l.pfb"; then
45298 ghostscript_font_dir="${font_dir}"
45299 break 1
45300 fi
45301 done
45302 if test "${ghostscript_font_dir}x" = 'x'; then
45303 if test "$PSDelegate" != 'gs'; then
45304 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
45305 fi
45306 fi
45307 fi
45308fi
45309if test "${ghostscript_font_dir}x" != 'x'; then
45310 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
45311 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
45312$as_echo "$ghostscript_font_dir" >&6; }
45313else
45314 { $as_echo "$as_me:$LINENO: result: not found!" >&5
45315$as_echo "not found!" >&6; };
45316fi
45317
45318case "${build_os}" in
45319 mingw* )
45320 PSDelegate=`$WinPathScript "$PSDelegate" 1`
45321 ;;
45322esac
45323
45324
45325
45326#
45327# Handle case where user doesn't want frozen paths
45328#
45329if test "$with_frozenpaths" != 'yes'; then
45330 # Re-set delegate definitions to default (no paths)
45331 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
45332 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
45333 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
45334 BZIPDelegate="$BZIPDelegateDefault"
45335 BrowseDelegate="$BrowseDelegateDefault"
45336 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
45337 CatDelegate="$CatDelegateDefault"
45338 ConvertDelegate="$ConvertDelegateDefault"
45339 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
45340 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
45341 EchoDelegate="$EchoDelegateDefault"
45342 EditorDelegate="$EditorDelegateDefault"
45343 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
45344 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
45345 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
45346 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
45347 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
45348 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
45349 LPDelegate="$LPDelegateDefault"
45350 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
45351 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
45352 LaunchDelegate="$LaunchDelegateDefault"
45353 MANDelegate="$MANDelegateDefault"
45354 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
45355 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
45356 MVDelegate="$MVDelegateDefault"
45357 MogrifyDelegate="$MogrifyDelegateDefault"
45358 PCLDelegate="$PCLDelegateDefault"
45359 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
45360 POVDelegate="$POVDelegateDefault"
45361 PSDelegate="$PSDelegateDefault"
45362 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
45363 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
45364 RMDelegate="$RMDelegateDefault"
45365 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
45366 ShowImageDelegate="$ShowImageDelegateDefault"
45367 TXTDelegate="$TXTDelegateDefault"
45368 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
45369 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
45370 XPSDelegate="$XPSDelegateDefault"
45371 ZipDelegate="$ZipDelegateDefault"
45372fi
45373
45374# Delegate substitutions
45375
45376
45377
45378
45379
45380
45381
45382
45383
45384
45385
45386
45387
45388
45389
45390
45391
45392
45393
45394
45395
45396
45397
45398
45399
45400
45401
45402
45403
45404
45405
45406
45407
45408
45409
45410
45411
45412
45413
45414
45415
45416
45417#
45418# RPM support.
45419#
45420RPM=''
45421for ac_prog in gnutar gtar tar
45422do
45423 # Extract the first word of "$ac_prog", so it can be a program name with args.
45424set dummy $ac_prog; ac_word=$2
45425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45426$as_echo_n "checking for $ac_word... " >&6; }
45427if test "${ac_cv_prog_TAR+set}" = set; then
45428 $as_echo_n "(cached) " >&6
45429else
45430 if test -n "$TAR"; then
45431 ac_cv_prog_TAR="$TAR" # Let the user override the test.
45432else
45433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45434for as_dir in $PATH
45435do
45436 IFS=$as_save_IFS
45437 test -z "$as_dir" && as_dir=.
45438 for ac_exec_ext in '' $ac_executable_extensions; do
45439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45440 ac_cv_prog_TAR="$ac_prog"
45441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45442 break 2
45443 fi
45444done
45445done
45446IFS=$as_save_IFS
45447
45448fi
45449fi
45450TAR=$ac_cv_prog_TAR
45451if test -n "$TAR"; then
45452 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
45453$as_echo "$TAR" >&6; }
45454else
45455 { $as_echo "$as_me:$LINENO: result: no" >&5
45456$as_echo "no" >&6; }
45457fi
45458
45459
45460 test -n "$TAR" && break
45461done
45462
45463for ac_prog in perl
45464do
45465 # Extract the first word of "$ac_prog", so it can be a program name with args.
45466set dummy $ac_prog; ac_word=$2
45467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45468$as_echo_n "checking for $ac_word... " >&6; }
45469if test "${ac_cv_prog_PERL+set}" = set; then
45470 $as_echo_n "(cached) " >&6
45471else
45472 if test -n "$PERL"; then
45473 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45474else
45475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45476for as_dir in $PATH
45477do
45478 IFS=$as_save_IFS
45479 test -z "$as_dir" && as_dir=.
45480 for ac_exec_ext in '' $ac_executable_extensions; do
45481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45482 ac_cv_prog_PERL="$ac_prog"
45483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45484 break 2
45485 fi
45486done
45487done
45488IFS=$as_save_IFS
45489
45490fi
45491fi
45492PERL=$ac_cv_prog_PERL
45493if test -n "$PERL"; then
45494 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45495$as_echo "$PERL" >&6; }
45496else
45497 { $as_echo "$as_me:$LINENO: result: no" >&5
45498$as_echo "no" >&6; }
45499fi
45500
45501
45502 test -n "$PERL" && break
45503done
45504
45505for ac_prog in rpmbuild rpm
45506do
45507 # Extract the first word of "$ac_prog", so it can be a program name with args.
45508set dummy $ac_prog; ac_word=$2
45509{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45510$as_echo_n "checking for $ac_word... " >&6; }
45511if test "${ac_cv_prog_RPM+set}" = set; then
45512 $as_echo_n "(cached) " >&6
45513else
45514 if test -n "$RPM"; then
45515 ac_cv_prog_RPM="$RPM" # Let the user override the test.
45516else
45517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45518for as_dir in $PATH
45519do
45520 IFS=$as_save_IFS
45521 test -z "$as_dir" && as_dir=.
45522 for ac_exec_ext in '' $ac_executable_extensions; do
45523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45524 ac_cv_prog_RPM="$ac_prog"
45525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45526 break 2
45527 fi
45528done
45529done
45530IFS=$as_save_IFS
45531
45532fi
45533fi
45534RPM=$ac_cv_prog_RPM
45535if test -n "$RPM"; then
45536 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
45537$as_echo "$RPM" >&6; }
45538else
45539 { $as_echo "$as_me:$LINENO: result: no" >&5
45540$as_echo "no" >&6; }
45541fi
45542
45543
45544 test -n "$RPM" && break
45545done
45546
45547
45548ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
45549
45550
45551AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
45552
45553
45554AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
45555
45556
45557AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
45558
45559
45560 if test "x$RPM" != "x" ; then
45561 RPM_DELEGATE_TRUE=
45562 RPM_DELEGATE_FALSE='#'
45563else
45564 RPM_DELEGATE_TRUE='#'
45565 RPM_DELEGATE_FALSE=
45566fi
45567
45568
45569#
45570# 7ZIP support (http://p7zip.sourceforge.net/)
45571#
45572P7ZIP=''
45573for ac_prog in 7za
45574do
45575 # Extract the first word of "$ac_prog", so it can be a program name with args.
45576set dummy $ac_prog; ac_word=$2
45577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45578$as_echo_n "checking for $ac_word... " >&6; }
45579if test "${ac_cv_prog_P7ZIP+set}" = set; then
45580 $as_echo_n "(cached) " >&6
45581else
45582 if test -n "$P7ZIP"; then
45583 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45584else
45585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45586for as_dir in $PATH
45587do
45588 IFS=$as_save_IFS
45589 test -z "$as_dir" && as_dir=.
45590 for ac_exec_ext in '' $ac_executable_extensions; do
45591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45592 ac_cv_prog_P7ZIP="$ac_prog"
45593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45594 break 2
45595 fi
45596done
45597done
45598IFS=$as_save_IFS
45599
45600fi
45601fi
45602P7ZIP=$ac_cv_prog_P7ZIP
45603if test -n "$P7ZIP"; then
45604 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45605$as_echo "$P7ZIP" >&6; }
45606else
45607 { $as_echo "$as_me:$LINENO: result: no" >&5
45608$as_echo "no" >&6; }
45609fi
45610
45611
45612 test -n "$P7ZIP" && break
45613done
45614
45615
45616 if test "x$P7ZIP" != "x" ; then
45617 P7ZIP_DELEGATE_TRUE=
45618 P7ZIP_DELEGATE_FALSE='#'
45619else
45620 P7ZIP_DELEGATE_TRUE='#'
45621 P7ZIP_DELEGATE_FALSE=
45622fi
45623
45624
45625#
45626# ZIP support (http://www.info-zip.org/Zip.html)
45627#
45628ZIP=''
45629for ac_prog in zip
45630do
45631 # Extract the first word of "$ac_prog", so it can be a program name with args.
45632set dummy $ac_prog; ac_word=$2
45633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45634$as_echo_n "checking for $ac_word... " >&6; }
45635if test "${ac_cv_prog_ZIP+set}" = set; then
45636 $as_echo_n "(cached) " >&6
45637else
45638 if test -n "$ZIP"; then
45639 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45640else
45641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45642for as_dir in $PATH
45643do
45644 IFS=$as_save_IFS
45645 test -z "$as_dir" && as_dir=.
45646 for ac_exec_ext in '' $ac_executable_extensions; do
45647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45648 ac_cv_prog_ZIP="$ac_prog"
45649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45650 break 2
45651 fi
45652done
45653done
45654IFS=$as_save_IFS
45655
45656fi
45657fi
45658ZIP=$ac_cv_prog_ZIP
45659if test -n "$ZIP"; then
45660 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45661$as_echo "$ZIP" >&6; }
45662else
45663 { $as_echo "$as_me:$LINENO: result: no" >&5
45664$as_echo "no" >&6; }
45665fi
45666
45667
45668 test -n "$ZIP" && break
45669done
45670
45671
45672 if test "x$ZIP" != "x" ; then
45673 ZIP_DELEGATE_TRUE=
45674 ZIP_DELEGATE_FALSE='#'
45675else
45676 ZIP_DELEGATE_TRUE='#'
45677 ZIP_DELEGATE_FALSE=
45678fi
45679
45680
45681#
45682# GhostPCL related configuration.
45683#
45684PCLColorDevice=ppmraw
45685PCLCMYKDevice=bmpsep8
45686PCLMonoDevice=pbmraw
45687if test -z "$PCLVersion"; then
45688 PCLVersion='unknown'
45689fi
45690if test $have_pcl = 'yes'; then
45691 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45692$as_echo "-------------------------------------------------------------" >&6; }
45693 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45694$as_echo_n "checking for PCL... " >&6; }
45695 { $as_echo "$as_me:$LINENO: result: " >&5
45696$as_echo "" >&6; }
45697 # PCLColorDevice
45698 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45699$as_echo_n "checking for pcl color device... " >&6; }
45700 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45701 :
45702 else
45703 PCLColorDevice=ppmraw
45704 fi
45705 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45706$as_echo "$PCLColorDevice" >&6; }
45707
45708 # PCLCMYKDevice
45709 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45710$as_echo_n "checking for pcl CMYK device... " >&6; }
45711 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45712 :
45713 else
45714 PCLCMYKDevice=$PCLColorDevice
45715 fi
45716 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45717$as_echo "$PCLCMYKDevice" >&6; }
45718
45719 # PCLMonoDevice
45720 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45721$as_echo_n "checking for pcl mono device... " >&6; }
45722 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45723 :
45724 else
45725 PCLMonoDevice=$PCLColorDevice
45726 fi
45727 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45728$as_echo "$PCLMonoDevice" >&6; }
45729fi
45730
45731
45732
45733
45734
45735
45736#
45737# GhostXPS related configuration.
45738#
45739XPSColorDevice=ppmraw
45740XPSCMYKDevice=bmpsep8
45741XPSMonoDevice=pbmraw
45742if test -z "$XPSVersion"; then
45743 XPSVersion='unknown'
45744fi
45745if test $have_xps = 'yes'; then
45746 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45747$as_echo "-------------------------------------------------------------" >&6; }
45748 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
45749$as_echo_n "checking for XPS... " >&6; }
45750 { $as_echo "$as_me:$LINENO: result: " >&5
45751$as_echo "" >&6; }
45752 # XPSColorDevice
45753 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
45754$as_echo_n "checking for xps color device... " >&6; }
45755 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45756 :
45757 else
45758 XPSColorDevice=ppmraw
45759 fi
45760 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
45761$as_echo "$XPSColorDevice" >&6; }
45762
45763 # XPSCMYKDevice
45764 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
45765$as_echo_n "checking for xps CMYK device... " >&6; }
45766 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45767 :
45768 else
45769 XPSCMYKDevice=$XPSColorDevice
45770 fi
45771 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
45772$as_echo "$XPSCMYKDevice" >&6; }
45773
45774 # XPSMonoDevice
45775 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
45776$as_echo_n "checking for xps mono device... " >&6; }
45777 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45778 :
45779 else
45780 XPSMonoDevice=$XPSColorDevice
45781 fi
45782 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
45783$as_echo "$XPSMonoDevice" >&6; }
45784fi
45785
45786
45787
45788
45789
45790
45791#
45792# Ghostscript related configuration.
45793#
45794if test "$have_png" = 'yes'; then
45795 GSAlphaDevice=pngalpha
45796else
45797 GSAlphaDevice=pnmraw
45798fi
45799GSColorDevice=pnmraw
45800GSCMYKDevice=pam
45801GSMonoDevice=pbmraw
45802GSPDFDevice=pdfwrite
45803GSPSDevice=pswrite
45804GSEPSDevice=epswrite
45805GSVersion='unknown'
45806if test $have_gs = 'yes'; then
45807 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45808$as_echo "-------------------------------------------------------------" >&6; }
45809 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
45810$as_echo_n "checking for Ghostscript... " >&6; }
45811 { $as_echo "$as_me:$LINENO: result: " >&5
45812$as_echo "" >&6; }
45813 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
45814$as_echo_n "checking for Ghostscript version... " >&6; }
45815 if GSVersion=`$PSDelegate --version`; then
45816 :
45817 else
45818 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
45819 fi
45820 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
45821$as_echo "$GSVersion" >&6; }
45822
45823 # GSAlphaDevice
45824 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
45825$as_echo_n "checking for gs alpha device... " >&6; }
45826 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45827 :
45828 else
45829 GSAlphaDevice=pnmraw
45830 fi
45831 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
45832$as_echo "$GSAlphaDevice" >&6; }
45833
45834 # GSColorDevice
45835 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
45836$as_echo_n "checking for gs color device... " >&6; }
45837 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45838 :
45839 else
45840 GSColorDevice=pnmraw
45841 fi
45842 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
45843$as_echo "$GSColorDevice" >&6; }
45844
45845 # GSCMYKDevice
45846 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
45847$as_echo_n "checking for gs CMYK device... " >&6; }
45848 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45849 :
45850 else
45851 GSCMYKDevice=bmpsep8
45852 fi
45853 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
45854$as_echo "$GSCMYKDevice" >&6; }
45855
45856 # GSMonoDevice
45857 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
45858$as_echo_n "checking for gs mono device... " >&6; }
45859 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45860 :
45861 else
45862 GSMonoDevice=$GSColorDevice
45863 fi
45864 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
45865$as_echo "$GSMonoDevice" >&6; }
45866
45867 # GSPDFDevice
45868 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
45869$as_echo_n "checking for gs PDF writing device... " >&6; }
45870 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45871 :
45872 else
45873 GSPDFDevice=nodevice
45874 fi
45875 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
45876$as_echo "$GSPDFDevice" >&6; }
45877
45878 # GSPSDevice
45879 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
45880$as_echo_n "checking for gs PS writing device... " >&6; }
45881 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45882 :
45883 else
45884 GSPSDevice=nodevice
45885 fi
45886 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
45887$as_echo "$GSPSDevice" >&6; }
45888
45889 # GSEPSDevice
45890 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
45891$as_echo_n "checking for gs EPS writing device... " >&6; }
45892 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45893 :
45894 else
45895 GSEPSDevice=nodevice
45896 fi
45897 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
45898$as_echo "$GSEPSDevice" >&6; }
45899fi
45900
45901
45902
45903
45904
45905
45906
45907
45908
45909
45910#
45911# PerlMagick-related configuration
45912#
45913
45914# Look for PERL if PerlMagick requested
45915# If name/path of desired PERL interpreter is specified, look for that one first
45916have_perl='no'
45917if test "$with_perl" != 'no'; then
45918 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45919$as_echo "-------------------------------------------------------------" >&6; }
45920 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
45921$as_echo_n "checking for Perl... " >&6; }
45922 { $as_echo "$as_me:$LINENO: result: " >&5
45923$as_echo "" >&6; }
45924 if test "$with_perl" != 'yes'; then
45925 { $as_echo "$as_me:$LINENO: checking for perl" >&5
45926$as_echo_n "checking for perl... " >&6; }
45927if test "${ac_cv_path_PERL+set}" = set; then
45928 $as_echo_n "(cached) " >&6
45929else
45930 ac_cv_path_PERL="$with_perl"
45931fi
45932{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
45933$as_echo "$ac_cv_path_PERL" >&6; };
45934 PERL=$ac_cv_path_PERL
45935 have_perl="$ac_cv_path_PERL"
45936 else
45937 for ac_prog in perl perl5
45938do
45939 # Extract the first word of "$ac_prog", so it can be a program name with args.
45940set dummy $ac_prog; ac_word=$2
45941{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45942$as_echo_n "checking for $ac_word... " >&6; }
45943if test "${ac_cv_path_PERL+set}" = set; then
45944 $as_echo_n "(cached) " >&6
45945else
45946 case $PERL in
45947 [\\/]* | ?:[\\/]*)
45948 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
45949 ;;
45950 *)
45951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45952for as_dir in $PATH
45953do
45954 IFS=$as_save_IFS
45955 test -z "$as_dir" && as_dir=.
45956 for ac_exec_ext in '' $ac_executable_extensions; do
45957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45958 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
45959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45960 break 2
45961 fi
45962done
45963done
45964IFS=$as_save_IFS
45965
45966 ;;
45967esac
45968fi
45969PERL=$ac_cv_path_PERL
45970if test -n "$PERL"; then
45971 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45972$as_echo "$PERL" >&6; }
45973else
45974 { $as_echo "$as_me:$LINENO: result: no" >&5
45975$as_echo "no" >&6; }
45976fi
45977
45978
45979 test -n "$PERL" && break
45980done
45981 if test "$ac_cv_path_PERL"; then
45982 have_perl="$ac_cv_path_PERL"
45983 fi
45984 fi
45985fi
45986
45987with_perl_static='no'
45988with_perl_dynamic='no'
45989if test "$have_perl" != 'no'; then
45990 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
45991 with_perl_static='yes'
45992 fi
45993 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
45994 with_perl_dynamic='yes'
45995 fi
45996 # Is PERL's MakeMaker new enough to support DESTDIR?
45997 # Make sure we have perl
45998if test -z "$PERL"; then
45999# Extract the first word of "perl", so it can be a program name with args.
46000set dummy perl; ac_word=$2
46001{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46002$as_echo_n "checking for $ac_word... " >&6; }
46003if test "${ac_cv_prog_PERL+set}" = set; then
46004 $as_echo_n "(cached) " >&6
46005else
46006 if test -n "$PERL"; then
46007 ac_cv_prog_PERL="$PERL" # Let the user override the test.
46008else
46009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46010for as_dir in $PATH
46011do
46012 IFS=$as_save_IFS
46013 test -z "$as_dir" && as_dir=.
46014 for ac_exec_ext in '' $ac_executable_extensions; do
46015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46016 ac_cv_prog_PERL="perl"
46017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46018 break 2
46019 fi
46020done
46021done
46022IFS=$as_save_IFS
46023
46024fi
46025fi
46026PERL=$ac_cv_prog_PERL
46027if test -n "$PERL"; then
46028 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46029$as_echo "$PERL" >&6; }
46030else
46031 { $as_echo "$as_me:$LINENO: result: no" >&5
46032$as_echo "no" >&6; }
46033fi
46034
46035
46036fi
46037
46038# Check if version of Perl is sufficient
46039ac_perl_version="5.8.1"
46040
46041if test "x$PERL" != "x"; then
46042 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
46043$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
46044 # NB: It would be nice to log the error if there is one, but we cannot rely
46045 # on autoconf internals
46046 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
46047 if test $? -ne 0; then
46048 { $as_echo "$as_me:$LINENO: result: no" >&5
46049$as_echo "no" >&6; };
46050 PERL_SUPPORTS_DESTDIR='no'
46051 else
46052 { $as_echo "$as_me:$LINENO: result: ok" >&5
46053$as_echo "ok" >&6; };
46054 PERL_SUPPORTS_DESTDIR='yes'
46055 fi
46056else
46057 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
46058$as_echo "$as_me: WARNING: could not find perl" >&2;}
46059fi
46060
46061fi
46062 if test "$have_perl" != 'no'; then
46063 WITH_PERL_TRUE=
46064 WITH_PERL_FALSE='#'
46065else
46066 WITH_PERL_TRUE='#'
46067 WITH_PERL_FALSE=
46068fi
46069
46070 if test $with_perl_static = 'yes'; then
46071 WITH_PERL_STATIC_TRUE=
46072 WITH_PERL_STATIC_FALSE='#'
46073else
46074 WITH_PERL_STATIC_TRUE='#'
46075 WITH_PERL_STATIC_FALSE=
46076fi
46077
46078 if test $with_perl_dynamic = 'yes'; then
46079 WITH_PERL_DYNAMIC_TRUE=
46080 WITH_PERL_DYNAMIC_FALSE='#'
46081else
46082 WITH_PERL_DYNAMIC_TRUE='#'
46083 WITH_PERL_DYNAMIC_FALSE=
46084fi
46085
46086
46087
46088# Determine path to pick up MagickCore library from for use with building PerlMagick
46089MAGICKCORE_PATH="${LIB_DIR}"
46090if test $with_perl_static = 'yes'; then
46091 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
46092 libtool_objdir=$objdir
46093
46094 # Linker search path to library, followed by -lMagickCore
46095 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
46096fi
46097
46098
46099# Create a simple string containing format names for all delegate libraries
46100DELEGATES=''
46101if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
46102if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
46103if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
46104if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
46105if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
46106if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
46107if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
46108if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
46109if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
46110if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
46111if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
46112if test "$have_jpeg" = 'yes'; then
46113 DELEGATES="$DELEGATES jpeg";
46114 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
46115fi
46116if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
46117if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
46118if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
46119if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
46120if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
46121if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
46122if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
46123if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
46124if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
46125if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
46126if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
46127if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
46128
46129
46130
46131#
46132# Handle special compiler flags
46133#
46134
46135# Add '-p' if prof source profiling support enabled
46136if test "$enable_prof" = 'yes'; then
46137 CFLAGS="-p $CFLAGS"
46138 CXXFLAGS="-p $CXXFLAGS"
46139 LDFLAGS="-p $LDFLAGS"
46140fi
46141
46142# Add '-pg' if gprof source profiling support enabled
46143if test "$enable_gprof" = 'yes'; then
46144 CFLAGS="-pg $CFLAGS"
46145 CXXFLAGS="-pg $CXXFLAGS"
46146 LDFLAGS="-pg $LDFLAGS"
46147fi
46148
46149# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
46150# This is a gcc-specific feature
46151if test "$enable_gcov" = 'yes'; then
46152
46153{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
46154$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
46155if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
46156 $as_echo_n "(cached) " >&6
46157else
46158 ac_check_lib_save_LIBS=$LIBS
46159LIBS="-lgcov $LIBS"
46160cat >conftest.$ac_ext <<_ACEOF
46161/* confdefs.h. */
46162_ACEOF
46163cat confdefs.h >>conftest.$ac_ext
46164cat >>conftest.$ac_ext <<_ACEOF
46165/* end confdefs.h. */
46166
46167/* Override any GCC internal prototype to avoid an error.
46168 Use char because int might match the return type of a GCC
46169 builtin and then its argument prototype would still apply. */
46170#ifdef __cplusplus
46171extern "C"
46172#endif
46173char _gcov_init ();
46174int
46175main ()
46176{
46177return _gcov_init ();
46178 ;
46179 return 0;
46180}
46181_ACEOF
46182rm -f conftest.$ac_objext conftest$ac_exeext
46183if { (ac_try="$ac_link"
46184case "(($ac_try" in
46185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46186 *) ac_try_echo=$ac_try;;
46187esac
46188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46189$as_echo "$ac_try_echo") >&5
46190 (eval "$ac_link") 2>conftest.er1
46191 ac_status=$?
46192 grep -v '^ *+' conftest.er1 >conftest.err
46193 rm -f conftest.er1
46194 cat conftest.err >&5
46195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46196 (exit $ac_status); } && {
46197 test -z "$ac_c_werror_flag" ||
46198 test ! -s conftest.err
46199 } && test -s conftest$ac_exeext && {
46200 test "$cross_compiling" = yes ||
46201 $as_test_x conftest$ac_exeext
46202 }; then
46203 ac_cv_lib_gcov__gcov_init=yes
46204else
46205 $as_echo "$as_me: failed program was:" >&5
46206sed 's/^/| /' conftest.$ac_ext >&5
46207
46208 ac_cv_lib_gcov__gcov_init=no
46209fi
46210
46211rm -rf conftest.dSYM
46212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46213 conftest$ac_exeext conftest.$ac_ext
46214LIBS=$ac_check_lib_save_LIBS
46215fi
46216{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
46217$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
46218if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
46219 cat >>confdefs.h <<_ACEOF
46220#define HAVE_LIBGCOV 1
46221_ACEOF
46222
46223 LIBS="-lgcov $LIBS"
46224
46225fi
46226
46227
46228{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
46229$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
46230if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
46231 $as_echo_n "(cached) " >&6
46232else
46233 ac_check_lib_save_LIBS=$LIBS
46234LIBS="-lgcov $LIBS"
46235cat >conftest.$ac_ext <<_ACEOF
46236/* confdefs.h. */
46237_ACEOF
46238cat confdefs.h >>conftest.$ac_ext
46239cat >>conftest.$ac_ext <<_ACEOF
46240/* end confdefs.h. */
46241
46242/* Override any GCC internal prototype to avoid an error.
46243 Use char because int might match the return type of a GCC
46244 builtin and then its argument prototype would still apply. */
46245#ifdef __cplusplus
46246extern "C"
46247#endif
46248char __gcov_init ();
46249int
46250main ()
46251{
46252return __gcov_init ();
46253 ;
46254 return 0;
46255}
46256_ACEOF
46257rm -f conftest.$ac_objext conftest$ac_exeext
46258if { (ac_try="$ac_link"
46259case "(($ac_try" in
46260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46261 *) ac_try_echo=$ac_try;;
46262esac
46263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46264$as_echo "$ac_try_echo") >&5
46265 (eval "$ac_link") 2>conftest.er1
46266 ac_status=$?
46267 grep -v '^ *+' conftest.er1 >conftest.err
46268 rm -f conftest.er1
46269 cat conftest.err >&5
46270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46271 (exit $ac_status); } && {
46272 test -z "$ac_c_werror_flag" ||
46273 test ! -s conftest.err
46274 } && test -s conftest$ac_exeext && {
46275 test "$cross_compiling" = yes ||
46276 $as_test_x conftest$ac_exeext
46277 }; then
46278 ac_cv_lib_gcov___gcov_init=yes
46279else
46280 $as_echo "$as_me: failed program was:" >&5
46281sed 's/^/| /' conftest.$ac_ext >&5
46282
46283 ac_cv_lib_gcov___gcov_init=no
46284fi
46285
46286rm -rf conftest.dSYM
46287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46288 conftest$ac_exeext conftest.$ac_ext
46289LIBS=$ac_check_lib_save_LIBS
46290fi
46291{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
46292$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
46293if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
46294 cat >>confdefs.h <<_ACEOF
46295#define HAVE_LIBGCOV 1
46296_ACEOF
46297
46298 LIBS="-lgcov $LIBS"
46299
46300fi
46301
46302 case "$target_os" in
46303 darwin*)
46304 OSX_GCOV_LDFLAG="-Wl,-single_module"
46305 ;;
46306 *)
46307 OSX_GCOV_LDFLAG=""
46308 ;;
46309 esac
46310
46311 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
46312 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
46313 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
46314fi
46315
46316#
46317# Build library dependency list for libMagickCore
46318#
46319
46320MAGICK_LIBLTDL='' # Libltdl for build
46321MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
46322MAGICK_LTDLDEPS='' # extra libltdl dependencies
46323if test "$with_ltdl" != 'no'
46324then
46325 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
46326 MAGICK_API_LIBLTDL='-lltdl'
46327 fi
46328 MAGICK_LIBLTDL=${LIBLTDL}
46329 MAGICK_LTDLDEPS=${LTDLDEPS}
46330fi
46331
46332
46333
46334if test "$with_modules" != 'no'; then
46335 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"
46336else
46337 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"
46338fi
46339
46340
46341#
46342# Remove extraneous spaces from output variables (asthetic)
46343#
46344X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
46345X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
46346X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
46347X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
46348
46349CC=`echo $CC | sed -e 's/ */ /g'`
46350CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
46351CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
46352CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
46353DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
46354DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
46355LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
46356TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46357MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
46358#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46359
46360# Pass only user-provided LIBS as "global" libraries
46361LIBS=$USER_LIBS
46362
46363#AC_SUBST(CPPFLAGS)
46364
46365#AC_SUBST(LDFLAGS)
46366#AC_SUBST(X_PRE_LIBS)
46367#AC_SUBST(X_LIBS)
46368#AC_SUBST(X_EXTRA_LIBS)
46369
46370MAGICK_CFLAGS=$CFLAGS
46371MAGICK_CXXFLAGS="$CXXFLAGS"
46372MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
46373MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
46374MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
46375MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
46376
46377
46378
46379
46380
46381
46382
46383
46384# Set configured scripts to executable.
46385ac_config_commands="$ac_config_commands default"
46386
46387ac_config_commands="$ac_config_commands MagickCore-config.in"
46388
46389ac_config_commands="$ac_config_commands Magick-config.in"
46390
46391ac_config_commands="$ac_config_commands MagickWand-config.in"
46392
46393ac_config_commands="$ac_config_commands Wand-config.in"
46394
46395ac_config_commands="$ac_config_commands Magick++-config.in"
46396
46397ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
46398
46399
46400{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46401$as_echo "-------------------------------------------------------------" >&6; }
46402{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
46403$as_echo "Update ImageMagick configuration" >&6; }
46404cat >confcache <<\_ACEOF
46405# This file is a shell script that caches the results of configure
46406# tests run on this system so they can be shared between configure
46407# scripts and configure runs, see configure's option --config-cache.
46408# It is not useful on other systems. If it contains results you don't
46409# want to keep, you may remove or edit it.
46410#
46411# config.status only pays attention to the cache file if you give it
46412# the --recheck option to rerun configure.
46413#
46414# `ac_cv_env_foo' variables (set or unset) will be overridden when
46415# loading this file, other *unset* `ac_cv_foo' will be assigned the
46416# following values.
46417
46418_ACEOF
46419
46420# The following way of writing the cache mishandles newlines in values,
46421# but we know of no workaround that is simple, portable, and efficient.
46422# So, we kill variables containing newlines.
46423# Ultrix sh set writes to stderr and can't be redirected directly,
46424# and sets the high bit in the cache file unless we assign to the vars.
46425(
46426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46427 eval ac_val=\$$ac_var
46428 case $ac_val in #(
46429 *${as_nl}*)
46430 case $ac_var in #(
46431 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46432$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46433 esac
46434 case $ac_var in #(
46435 _ | IFS | as_nl) ;; #(
46436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46437 *) $as_unset $ac_var ;;
46438 esac ;;
46439 esac
46440 done
46441
46442 (set) 2>&1 |
46443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46444 *${as_nl}ac_space=\ *)
46445 # `set' does not quote correctly, so add quotes (double-quote
46446 # substitution turns \\\\ into \\, and sed turns \\ into \).
46447 sed -n \
46448 "s/'/'\\\\''/g;
46449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46450 ;; #(
46451 *)
46452 # `set' quotes correctly as required by POSIX, so do not add quotes.
46453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46454 ;;
46455 esac |
46456 sort
46457) |
46458 sed '
46459 /^ac_cv_env_/b end
46460 t clear
46461 :clear
46462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46463 t end
46464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46465 :end' >>confcache
46466if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46467 if test -w "$cache_file"; then
46468 test "x$cache_file" != "x/dev/null" &&
46469 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46470$as_echo "$as_me: updating cache $cache_file" >&6;}
46471 cat confcache >$cache_file
46472 else
46473 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46474$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46475 fi
46476fi
46477rm -f confcache
46478
46479test "x$prefix" = xNONE && prefix=$ac_default_prefix
46480# Let make expand exec_prefix.
46481test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46482
46483DEFS=-DHAVE_CONFIG_H
46484
46485ac_libobjs=
46486ac_ltlibobjs=
46487for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46488 # 1. Remove the extension, and $U if already installed.
46489 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46490 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46492 # will be set to the directory where LIBOBJS objects are built.
46493 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46494 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46495done
46496LIBOBJS=$ac_libobjs
46497
46498LTLIBOBJS=$ac_ltlibobjs
46499
46500
46501 if test -n "$EXEEXT"; then
46502 am__EXEEXT_TRUE=
46503 am__EXEEXT_FALSE='#'
46504else
46505 am__EXEEXT_TRUE='#'
46506 am__EXEEXT_FALSE=
46507fi
46508
46509if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46510 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46511Usually this means the macro was only invoked conditionally." >&5
46512$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
46513Usually this means the macro was only invoked conditionally." >&2;}
46514 { (exit 1); exit 1; }; }
46515fi
46516if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46517 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46518Usually this means the macro was only invoked conditionally." >&5
46519$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46520Usually this means the macro was only invoked conditionally." >&2;}
46521 { (exit 1); exit 1; }; }
46522fi
46523if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46524 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46525Usually this means the macro was only invoked conditionally." >&5
46526$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46527Usually this means the macro was only invoked conditionally." >&2;}
46528 { (exit 1); exit 1; }; }
46529fi
46530if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
46531 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46532Usually this means the macro was only invoked conditionally." >&5
46533$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46534Usually this means the macro was only invoked conditionally." >&2;}
46535 { (exit 1); exit 1; }; }
46536fi
46537if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
46538 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46539Usually this means the macro was only invoked conditionally." >&5
46540$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46541Usually this means the macro was only invoked conditionally." >&2;}
46542 { (exit 1); exit 1; }; }
46543fi
46544if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
46545 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
46546Usually this means the macro was only invoked conditionally." >&5
46547$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
46548Usually this means the macro was only invoked conditionally." >&2;}
46549 { (exit 1); exit 1; }; }
46550fi
46551if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
46552 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
46553Usually this means the macro was only invoked conditionally." >&5
46554$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
46555Usually this means the macro was only invoked conditionally." >&2;}
46556 { (exit 1); exit 1; }; }
46557fi
46558if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46559 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46560Usually this means the macro was only invoked conditionally." >&5
46561$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46562Usually this means the macro was only invoked conditionally." >&2;}
46563 { (exit 1); exit 1; }; }
46564fi
46565if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
46566 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
46567Usually this means the macro was only invoked conditionally." >&5
46568$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
46569Usually this means the macro was only invoked conditionally." >&2;}
46570 { (exit 1); exit 1; }; }
46571fi
46572if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
46573 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46574Usually this means the macro was only invoked conditionally." >&5
46575$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46576Usually this means the macro was only invoked conditionally." >&2;}
46577 { (exit 1); exit 1; }; }
46578fi
46579LT_CONFIG_H=config/config.h
46580
46581 _ltdl_libobjs=
46582 _ltdl_ltlibobjs=
46583 if test -n "$_LT_LIBOBJS"; then
46584 # Remove the extension.
46585 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46586 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46587 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46588 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46589 done
46590 fi
46591 ltdl_LIBOBJS=$_ltdl_libobjs
46592
46593 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46594
46595
46596if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46597 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46598Usually this means the macro was only invoked conditionally." >&5
46599$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46600Usually this means the macro was only invoked conditionally." >&2;}
46601 { (exit 1); exit 1; }; }
46602fi
46603if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46604 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46605Usually this means the macro was only invoked conditionally." >&5
46606$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46607Usually this means the macro was only invoked conditionally." >&2;}
46608 { (exit 1); exit 1; }; }
46609fi
46610if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46611 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46612Usually this means the macro was only invoked conditionally." >&5
46613$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46614Usually this means the macro was only invoked conditionally." >&2;}
46615 { (exit 1); exit 1; }; }
46616fi
46617
46618if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46619 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46620Usually this means the macro was only invoked conditionally." >&5
46621$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46622Usually this means the macro was only invoked conditionally." >&2;}
46623 { (exit 1); exit 1; }; }
46624fi
46625if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46626 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46627Usually this means the macro was only invoked conditionally." >&5
46628$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46629Usually this means the macro was only invoked conditionally." >&2;}
46630 { (exit 1); exit 1; }; }
46631fi
46632if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46633 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46634Usually this means the macro was only invoked conditionally." >&5
46635$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46636Usually this means the macro was only invoked conditionally." >&2;}
46637 { (exit 1); exit 1; }; }
46638fi
46639if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46640 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46641Usually this means the macro was only invoked conditionally." >&5
46642$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46643Usually this means the macro was only invoked conditionally." >&2;}
46644 { (exit 1); exit 1; }; }
46645fi
46646if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46647 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46648Usually this means the macro was only invoked conditionally." >&5
46649$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46650Usually this means the macro was only invoked conditionally." >&2;}
46651 { (exit 1); exit 1; }; }
46652fi
46653if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46654 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46655Usually this means the macro was only invoked conditionally." >&5
46656$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46657Usually this means the macro was only invoked conditionally." >&2;}
46658 { (exit 1); exit 1; }; }
46659fi
46660if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46661 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46662Usually this means the macro was only invoked conditionally." >&5
46663$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46664Usually this means the macro was only invoked conditionally." >&2;}
46665 { (exit 1); exit 1; }; }
46666fi
46667if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46668 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46669Usually this means the macro was only invoked conditionally." >&5
46670$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46671Usually this means the macro was only invoked conditionally." >&2;}
46672 { (exit 1); exit 1; }; }
46673fi
46674if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46675 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46676Usually this means the macro was only invoked conditionally." >&5
46677$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46678Usually this means the macro was only invoked conditionally." >&2;}
46679 { (exit 1); exit 1; }; }
46680fi
46681if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46682 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46683Usually this means the macro was only invoked conditionally." >&5
46684$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46685Usually this means the macro was only invoked conditionally." >&2;}
46686 { (exit 1); exit 1; }; }
46687fi
46688if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46689 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46690Usually this means the macro was only invoked conditionally." >&5
46691$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46692Usually this means the macro was only invoked conditionally." >&2;}
46693 { (exit 1); exit 1; }; }
46694fi
46695if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46696 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46697Usually this means the macro was only invoked conditionally." >&5
46698$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46699Usually this means the macro was only invoked conditionally." >&2;}
46700 { (exit 1); exit 1; }; }
46701fi
46702if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46703 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46704Usually this means the macro was only invoked conditionally." >&5
46705$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46706Usually this means the macro was only invoked conditionally." >&2;}
46707 { (exit 1); exit 1; }; }
46708fi
46709if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46710 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46711Usually this means the macro was only invoked conditionally." >&5
46712$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46713Usually this means the macro was only invoked conditionally." >&2;}
46714 { (exit 1); exit 1; }; }
46715fi
46716if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46717 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46718Usually this means the macro was only invoked conditionally." >&5
46719$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46720Usually this means the macro was only invoked conditionally." >&2;}
46721 { (exit 1); exit 1; }; }
46722fi
46723if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46724 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46725Usually this means the macro was only invoked conditionally." >&5
46726$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46727Usually this means the macro was only invoked conditionally." >&2;}
46728 { (exit 1); exit 1; }; }
46729fi
46730if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46731 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46732Usually this means the macro was only invoked conditionally." >&5
46733$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46734Usually this means the macro was only invoked conditionally." >&2;}
46735 { (exit 1); exit 1; }; }
46736fi
46737if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46738 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46739Usually this means the macro was only invoked conditionally." >&5
46740$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46741Usually this means the macro was only invoked conditionally." >&2;}
46742 { (exit 1); exit 1; }; }
46743fi
46744if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
46745 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
46746Usually this means the macro was only invoked conditionally." >&5
46747$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
46748Usually this means the macro was only invoked conditionally." >&2;}
46749 { (exit 1); exit 1; }; }
46750fi
46751if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
46752 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
46753Usually this means the macro was only invoked conditionally." >&5
46754$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
46755Usually this means the macro was only invoked conditionally." >&2;}
46756 { (exit 1); exit 1; }; }
46757fi
46758if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
46759 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46760Usually this means the macro was only invoked conditionally." >&5
46761$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46762Usually this means the macro was only invoked conditionally." >&2;}
46763 { (exit 1); exit 1; }; }
46764fi
46765if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
46766 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
46767Usually this means the macro was only invoked conditionally." >&5
46768$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
46769Usually this means the macro was only invoked conditionally." >&2;}
46770 { (exit 1); exit 1; }; }
46771fi
46772if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
46773 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
46774Usually this means the macro was only invoked conditionally." >&5
46775$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
46776Usually this means the macro was only invoked conditionally." >&2;}
46777 { (exit 1); exit 1; }; }
46778fi
46779if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
46780 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
46781Usually this means the macro was only invoked conditionally." >&5
46782$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
46783Usually this means the macro was only invoked conditionally." >&2;}
46784 { (exit 1); exit 1; }; }
46785fi
46786if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
46787 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
46788Usually this means the macro was only invoked conditionally." >&5
46789$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
46790Usually this means the macro was only invoked conditionally." >&2;}
46791 { (exit 1); exit 1; }; }
46792fi
46793if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
46794 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
46795Usually this means the macro was only invoked conditionally." >&5
46796$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
46797Usually this means the macro was only invoked conditionally." >&2;}
46798 { (exit 1); exit 1; }; }
46799fi
46800if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
46801 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
46802Usually this means the macro was only invoked conditionally." >&5
46803$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
46804Usually this means the macro was only invoked conditionally." >&2;}
46805 { (exit 1); exit 1; }; }
46806fi
46807if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
46808 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
46809Usually this means the macro was only invoked conditionally." >&5
46810$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
46811Usually this means the macro was only invoked conditionally." >&2;}
46812 { (exit 1); exit 1; }; }
46813fi
46814if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
46815 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
46816Usually this means the macro was only invoked conditionally." >&5
46817$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
46818Usually this means the macro was only invoked conditionally." >&2;}
46819 { (exit 1); exit 1; }; }
46820fi
46821if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
46822 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
46823Usually this means the macro was only invoked conditionally." >&5
46824$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
46825Usually this means the macro was only invoked conditionally." >&2;}
46826 { (exit 1); exit 1; }; }
46827fi
46828if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
46829 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
46830Usually this means the macro was only invoked conditionally." >&5
46831$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
46832Usually this means the macro was only invoked conditionally." >&2;}
46833 { (exit 1); exit 1; }; }
46834fi
46835if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
46836 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
46837Usually this means the macro was only invoked conditionally." >&5
46838$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
46839Usually this means the macro was only invoked conditionally." >&2;}
46840 { (exit 1); exit 1; }; }
46841fi
46842if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
46843 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
46844Usually this means the macro was only invoked conditionally." >&5
46845$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
46846Usually this means the macro was only invoked conditionally." >&2;}
46847 { (exit 1); exit 1; }; }
46848fi
46849
46850: ${CONFIG_STATUS=./config.status}
46851ac_write_fail=0
46852ac_clean_files_save=$ac_clean_files
46853ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46854{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46855$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
46856cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46857#! $SHELL
46858# Generated by $as_me.
46859# Run this file to recreate the current configuration.
46860# Compiler output produced by configure, useful for debugging
46861# configure, is in config.log if it exists.
46862
46863debug=false
46864ac_cs_recheck=false
46865ac_cs_silent=false
46866SHELL=\${CONFIG_SHELL-$SHELL}
46867_ACEOF
46868
46869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46870## --------------------- ##
46871## M4sh Initialization. ##
46872## --------------------- ##
46873
46874# Be more Bourne compatible
46875DUALCASE=1; export DUALCASE # for MKS sh
46876if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46877 emulate sh
46878 NULLCMD=:
46879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46880 # is contrary to our usage. Disable this feature.
46881 alias -g '${1+"$@"}'='"$@"'
46882 setopt NO_GLOB_SUBST
46883else
46884 case `(set -o) 2>/dev/null` in
46885 *posix*) set -o posix ;;
46886esac
46887
46888fi
46889
46890
46891
46892
46893# PATH needs CR
46894# Avoid depending upon Character Ranges.
46895as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46896as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46897as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46898as_cr_digits='0123456789'
46899as_cr_alnum=$as_cr_Letters$as_cr_digits
46900
46901as_nl='
46902'
46903export as_nl
46904# Printing a long string crashes Solaris 7 /usr/bin/printf.
46905as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46906as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46907as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46908if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
46909 as_echo='printf %s\n'
46910 as_echo_n='printf %s'
46911else
46912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
46913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
46914 as_echo_n='/usr/ucb/echo -n'
46915 else
46916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
46917 as_echo_n_body='eval
46918 arg=$1;
46919 case $arg in
46920 *"$as_nl"*)
46921 expr "X$arg" : "X\\(.*\\)$as_nl";
46922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
46923 esac;
46924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
46925 '
46926 export as_echo_n_body
46927 as_echo_n='sh -c $as_echo_n_body as_echo'
46928 fi
46929 export as_echo_body
46930 as_echo='sh -c $as_echo_body as_echo'
46931fi
46932
46933# The user is always right.
46934if test "${PATH_SEPARATOR+set}" != set; then
46935 PATH_SEPARATOR=:
46936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
46937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
46938 PATH_SEPARATOR=';'
46939 }
46940fi
46941
46942# Support unset when possible.
46943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46944 as_unset=unset
46945else
46946 as_unset=false
46947fi
46948
46949
46950# IFS
46951# We need space, tab and new line, in precisely that order. Quoting is
46952# there to prevent editors from complaining about space-tab.
46953# (If _AS_PATH_WALK were called with IFS unset, it would disable word
46954# splitting by setting IFS to empty value.)
46955IFS=" "" $as_nl"
46956
46957# Find who we are. Look in the path if we contain no directory separator.
46958case $0 in
46959 *[\\/]* ) as_myself=$0 ;;
46960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46961for as_dir in $PATH
46962do
46963 IFS=$as_save_IFS
46964 test -z "$as_dir" && as_dir=.
46965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46966done
46967IFS=$as_save_IFS
46968
46969 ;;
46970esac
46971# We did not find ourselves, most probably we were run as `sh COMMAND'
46972# in which case we are not to be found in the path.
46973if test "x$as_myself" = x; then
46974 as_myself=$0
46975fi
46976if test ! -f "$as_myself"; then
46977 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46978 { (exit 1); exit 1; }
46979fi
46980
46981# Work around bugs in pre-3.0 UWIN ksh.
46982for as_var in ENV MAIL MAILPATH
46983do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46984done
46985PS1='$ '
46986PS2='> '
46987PS4='+ '
46988
46989# NLS nuisances.
46990LC_ALL=C
46991export LC_ALL
46992LANGUAGE=C
46993export LANGUAGE
46994
46995# Required to use basename.
46996if expr a : '\(a\)' >/dev/null 2>&1 &&
46997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46998 as_expr=expr
46999else
47000 as_expr=false
47001fi
47002
47003if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47004 as_basename=basename
47005else
47006 as_basename=false
47007fi
47008
47009
47010# Name of the executable.
47011as_me=`$as_basename -- "$0" ||
47012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47013 X"$0" : 'X\(//\)$' \| \
47014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47015$as_echo X/"$0" |
47016 sed '/^.*\/\([^/][^/]*\)\/*$/{
47017 s//\1/
47018 q
47019 }
47020 /^X\/\(\/\/\)$/{
47021 s//\1/
47022 q
47023 }
47024 /^X\/\(\/\).*/{
47025 s//\1/
47026 q
47027 }
47028 s/.*/./; q'`
47029
47030# CDPATH.
47031$as_unset CDPATH
47032
47033
47034
47035 as_lineno_1=$LINENO
47036 as_lineno_2=$LINENO
47037 test "x$as_lineno_1" != "x$as_lineno_2" &&
47038 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47039
47040 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47041 # uniformly replaced by the line number. The first 'sed' inserts a
47042 # line-number line after each line using $LINENO; the second 'sed'
47043 # does the real work. The second script uses 'N' to pair each
47044 # line-number line with the line containing $LINENO, and appends
47045 # trailing '-' during substitution so that $LINENO is not a special
47046 # case at line end.
47047 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47048 # scripts with optimization help from Paolo Bonzini. Blame Lee
47049 # E. McMahon (1931-1989) for sed's syntax. :-)
47050 sed -n '
47051 p
47052 /[$]LINENO/=
47053 ' <$as_myself |
47054 sed '
47055 s/[$]LINENO.*/&-/
47056 t lineno
47057 b
47058 :lineno
47059 N
47060 :loop
47061 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47062 t loop
47063 s/-\n.*//
47064 ' >$as_me.lineno &&
47065 chmod +x "$as_me.lineno" ||
47066 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47067 { (exit 1); exit 1; }; }
47068
47069 # Don't try to exec as it changes $[0], causing all sort of problems
47070 # (the dirname of $[0] is not the place where we might find the
47071 # original and so on. Autoconf is especially sensitive to this).
47072 . "./$as_me.lineno"
47073 # Exit status is that of the last command.
47074 exit
47075}
47076
47077
47078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47079 as_dirname=dirname
47080else
47081 as_dirname=false
47082fi
47083
47084ECHO_C= ECHO_N= ECHO_T=
47085case `echo -n x` in
47086-n*)
47087 case `echo 'x\c'` in
47088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47089 *) ECHO_C='\c';;
47090 esac;;
47091*)
47092 ECHO_N='-n';;
47093esac
47094if expr a : '\(a\)' >/dev/null 2>&1 &&
47095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47096 as_expr=expr
47097else
47098 as_expr=false
47099fi
47100
47101rm -f conf$$ conf$$.exe conf$$.file
47102if test -d conf$$.dir; then
47103 rm -f conf$$.dir/conf$$.file
47104else
47105 rm -f conf$$.dir
47106 mkdir conf$$.dir 2>/dev/null
47107fi
47108if (echo >conf$$.file) 2>/dev/null; then
47109 if ln -s conf$$.file conf$$ 2>/dev/null; then
47110 as_ln_s='ln -s'
47111 # ... but there are two gotchas:
47112 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47113 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47114 # In both cases, we have to default to `cp -p'.
47115 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47116 as_ln_s='cp -p'
47117 elif ln conf$$.file conf$$ 2>/dev/null; then
47118 as_ln_s=ln
47119 else
47120 as_ln_s='cp -p'
47121 fi
47122else
47123 as_ln_s='cp -p'
47124fi
47125rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47126rmdir conf$$.dir 2>/dev/null
47127
47128if mkdir -p . 2>/dev/null; then
47129 as_mkdir_p=:
47130else
47131 test -d ./-p && rmdir ./-p
47132 as_mkdir_p=false
47133fi
47134
47135if test -x / >/dev/null 2>&1; then
47136 as_test_x='test -x'
47137else
47138 if ls -dL / >/dev/null 2>&1; then
47139 as_ls_L_option=L
47140 else
47141 as_ls_L_option=
47142 fi
47143 as_test_x='
47144 eval sh -c '\''
47145 if test -d "$1"; then
47146 test -d "$1/.";
47147 else
47148 case $1 in
47149 -*)set "./$1";;
47150 esac;
47151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47152 ???[sx]*):;;*)false;;esac;fi
47153 '\'' sh
47154 '
47155fi
47156as_executable_p=$as_test_x
47157
47158# Sed expression to map a string onto a valid CPP name.
47159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47160
47161# Sed expression to map a string onto a valid variable name.
47162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47163
47164
47165exec 6>&1
47166
47167# Save the log message, to keep $[0] and so on meaningful, and to
47168# report actual input values of CONFIG_FILES etc. instead of their
47169# values after options handling.
47170ac_log="
cristybf083432009-09-13 04:31:08 +000047171This file was extended by ImageMagick $as_me 6.5.6, which was
cristy3ed852e2009-09-05 21:47:34 +000047172generated by GNU Autoconf 2.63. Invocation command line was
47173
47174 CONFIG_FILES = $CONFIG_FILES
47175 CONFIG_HEADERS = $CONFIG_HEADERS
47176 CONFIG_LINKS = $CONFIG_LINKS
47177 CONFIG_COMMANDS = $CONFIG_COMMANDS
47178 $ $0 $@
47179
47180on `(hostname || uname -n) 2>/dev/null | sed 1q`
47181"
47182
47183_ACEOF
47184
47185case $ac_config_files in *"
47186"*) set x $ac_config_files; shift; ac_config_files=$*;;
47187esac
47188
47189case $ac_config_headers in *"
47190"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47191esac
47192
47193
47194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47195# Files that config.status was made for.
47196config_files="$ac_config_files"
47197config_headers="$ac_config_headers"
47198config_commands="$ac_config_commands"
47199
47200_ACEOF
47201
47202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47203ac_cs_usage="\
47204\`$as_me' instantiates files from templates according to the
47205current configuration.
47206
47207Usage: $0 [OPTION]... [FILE]...
47208
47209 -h, --help print this help, then exit
47210 -V, --version print version number and configuration settings, then exit
47211 -q, --quiet, --silent
47212 do not print progress messages
47213 -d, --debug don't remove temporary files
47214 --recheck update $as_me by reconfiguring in the same conditions
47215 --file=FILE[:TEMPLATE]
47216 instantiate the configuration file FILE
47217 --header=FILE[:TEMPLATE]
47218 instantiate the configuration header FILE
47219
47220Configuration files:
47221$config_files
47222
47223Configuration headers:
47224$config_headers
47225
47226Configuration commands:
47227$config_commands
47228
47229Report bugs to <bug-autoconf@gnu.org>."
47230
47231_ACEOF
47232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47233ac_cs_version="\\
cristybf083432009-09-13 04:31:08 +000047234ImageMagick config.status 6.5.6
cristy3ed852e2009-09-05 21:47:34 +000047235configured by $0, generated by GNU Autoconf 2.63,
47236 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47237
47238Copyright (C) 2008 Free Software Foundation, Inc.
47239This config.status script is free software; the Free Software Foundation
47240gives unlimited permission to copy, distribute and modify it."
47241
47242ac_pwd='$ac_pwd'
47243srcdir='$srcdir'
47244INSTALL='$INSTALL'
47245MKDIR_P='$MKDIR_P'
47246AWK='$AWK'
47247test -n "\$AWK" || AWK=awk
47248_ACEOF
47249
47250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47251# The default lists apply if the user does not specify any file.
47252ac_need_defaults=:
47253while test $# != 0
47254do
47255 case $1 in
47256 --*=*)
47257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47258 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47259 ac_shift=:
47260 ;;
47261 *)
47262 ac_option=$1
47263 ac_optarg=$2
47264 ac_shift=shift
47265 ;;
47266 esac
47267
47268 case $ac_option in
47269 # Handling of the options.
47270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47271 ac_cs_recheck=: ;;
47272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47273 $as_echo "$ac_cs_version"; exit ;;
47274 --debug | --debu | --deb | --de | --d | -d )
47275 debug=: ;;
47276 --file | --fil | --fi | --f )
47277 $ac_shift
47278 case $ac_optarg in
47279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47280 esac
47281 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
47282 ac_need_defaults=false;;
47283 --header | --heade | --head | --hea )
47284 $ac_shift
47285 case $ac_optarg in
47286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47287 esac
47288 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
47289 ac_need_defaults=false;;
47290 --he | --h)
47291 # Conflict between --help and --header
47292 { $as_echo "$as_me: error: ambiguous option: $1
47293Try \`$0 --help' for more information." >&2
47294 { (exit 1); exit 1; }; };;
47295 --help | --hel | -h )
47296 $as_echo "$ac_cs_usage"; exit ;;
47297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47299 ac_cs_silent=: ;;
47300
47301 # This is an error.
47302 -*) { $as_echo "$as_me: error: unrecognized option: $1
47303Try \`$0 --help' for more information." >&2
47304 { (exit 1); exit 1; }; } ;;
47305
47306 *) ac_config_targets="$ac_config_targets $1"
47307 ac_need_defaults=false ;;
47308
47309 esac
47310 shift
47311done
47312
47313ac_configure_extra_args=
47314
47315if $ac_cs_silent; then
47316 exec 6>/dev/null
47317 ac_configure_extra_args="$ac_configure_extra_args --silent"
47318fi
47319
47320_ACEOF
47321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47322if \$ac_cs_recheck; then
47323 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47324 shift
47325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47326 CONFIG_SHELL='$SHELL'
47327 export CONFIG_SHELL
47328 exec "\$@"
47329fi
47330
47331_ACEOF
47332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47333exec 5>>config.log
47334{
47335 echo
47336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47337## Running $as_me. ##
47338_ASBOX
47339 $as_echo "$ac_log"
47340} >&5
47341
47342_ACEOF
47343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47344#
47345# INIT-COMMANDS
47346#
47347PACKAGE="$PACKAGE"
47348AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47349
47350
47351# The HP-UX ksh and POSIX shell print the target directory to stdout
47352# if CDPATH is set.
47353(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47354
47355sed_quote_subst='$sed_quote_subst'
47356double_quote_subst='$double_quote_subst'
47357delay_variable_subst='$delay_variable_subst'
47358SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
47359Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
47360GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
47361EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
47362FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
47363LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
47364macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
47365macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
47366AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
47367DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47368OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
47369enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
47370enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
47371pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
47372enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
47373host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
47374host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
47375host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
47376build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
47377build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
47378build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
47379NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
47380LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
47381max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
47382ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
47383exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
47384lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
47385lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
47386lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
47387reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
47388reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47389deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
47390file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
47391AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
47392AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47393STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
47394RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
47395old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47396old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47397old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47398CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
47399CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47400compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
47401GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
47402lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
47403lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
47404lt_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"`'
47405lt_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"`'
47406objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
47407SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
47408ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
47409MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
47410lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
47411lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
47412lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
47413lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
47414lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
47415need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
47416DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
47417NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
47418LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
47419OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47420OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
47421libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
47422shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47423extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47424archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
47425enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
47426export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47427whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47428compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
47429old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47430old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47431archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47432archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47433module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47434module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47435with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
47436allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47437no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47438hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47439hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
47440hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
47441hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
47442hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
47443hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
47444hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47445hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
47446inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
47447link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
47448fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
47449always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
47450export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47451exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47452include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47453prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47454file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
47455variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
47456need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
47457need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
47458version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
47459runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47460shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47461shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
47462libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47463library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
47464soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47465postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47466postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47467finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47468finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
47469hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
47470sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47471sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47472hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
47473enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
47474enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
47475enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
47476old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
47477striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
47478compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
47479predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47480postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47481predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
47482postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
47483compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
47484LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47485old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47486compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47487GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47488lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47489lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47490lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47491lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47492lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47493archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47494enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47495export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47496whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47497compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47498old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47499old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47500archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47501archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47502module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47503module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47504with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47505allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47506no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47507hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47508hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47509hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47510hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47511hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47512hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47513hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47514hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47515inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47516link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47517fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47518always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47519export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47520exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47521include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47522prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47523file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47524hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47525compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47526predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47527postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47528predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47529postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47530compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47531
47532LTCC='$LTCC'
47533LTCFLAGS='$LTCFLAGS'
47534compiler='$compiler_DEFAULT'
47535
47536# Quote evaled strings.
47537for var in SED \
47538GREP \
47539EGREP \
47540FGREP \
47541LD \
47542NM \
47543LN_S \
47544lt_SP2NL \
47545lt_NL2SP \
47546reload_flag \
47547deplibs_check_method \
47548file_magic_cmd \
47549AR \
47550AR_FLAGS \
47551STRIP \
47552RANLIB \
47553CC \
47554CFLAGS \
47555compiler \
47556lt_cv_sys_global_symbol_pipe \
47557lt_cv_sys_global_symbol_to_cdecl \
47558lt_cv_sys_global_symbol_to_c_name_address \
47559lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47560SHELL \
47561ECHO \
47562lt_prog_compiler_no_builtin_flag \
47563lt_prog_compiler_wl \
47564lt_prog_compiler_pic \
47565lt_prog_compiler_static \
47566lt_cv_prog_compiler_c_o \
47567need_locks \
47568DSYMUTIL \
47569NMEDIT \
47570LIPO \
47571OTOOL \
47572OTOOL64 \
47573shrext_cmds \
47574export_dynamic_flag_spec \
47575whole_archive_flag_spec \
47576compiler_needs_object \
47577with_gnu_ld \
47578allow_undefined_flag \
47579no_undefined_flag \
47580hardcode_libdir_flag_spec \
47581hardcode_libdir_flag_spec_ld \
47582hardcode_libdir_separator \
47583fix_srcfile_path \
47584exclude_expsyms \
47585include_expsyms \
47586file_list_spec \
47587variables_saved_for_relink \
47588libname_spec \
47589library_names_spec \
47590soname_spec \
47591finish_eval \
47592old_striplib \
47593striplib \
47594compiler_lib_search_dirs \
47595predep_objects \
47596postdep_objects \
47597predeps \
47598postdeps \
47599compiler_lib_search_path \
47600LD_CXX \
47601compiler_CXX \
47602lt_prog_compiler_no_builtin_flag_CXX \
47603lt_prog_compiler_wl_CXX \
47604lt_prog_compiler_pic_CXX \
47605lt_prog_compiler_static_CXX \
47606lt_cv_prog_compiler_c_o_CXX \
47607export_dynamic_flag_spec_CXX \
47608whole_archive_flag_spec_CXX \
47609compiler_needs_object_CXX \
47610with_gnu_ld_CXX \
47611allow_undefined_flag_CXX \
47612no_undefined_flag_CXX \
47613hardcode_libdir_flag_spec_CXX \
47614hardcode_libdir_flag_spec_ld_CXX \
47615hardcode_libdir_separator_CXX \
47616fix_srcfile_path_CXX \
47617exclude_expsyms_CXX \
47618include_expsyms_CXX \
47619file_list_spec_CXX \
47620compiler_lib_search_dirs_CXX \
47621predep_objects_CXX \
47622postdep_objects_CXX \
47623predeps_CXX \
47624postdeps_CXX \
47625compiler_lib_search_path_CXX; do
47626 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47627 *[\\\\\\\`\\"\\\$]*)
47628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47629 ;;
47630 *)
47631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47632 ;;
47633 esac
47634done
47635
47636# Double-quote double-evaled strings.
47637for var in reload_cmds \
47638old_postinstall_cmds \
47639old_postuninstall_cmds \
47640old_archive_cmds \
47641extract_expsyms_cmds \
47642old_archive_from_new_cmds \
47643old_archive_from_expsyms_cmds \
47644archive_cmds \
47645archive_expsym_cmds \
47646module_cmds \
47647module_expsym_cmds \
47648export_symbols_cmds \
47649prelink_cmds \
47650postinstall_cmds \
47651postuninstall_cmds \
47652finish_cmds \
47653sys_lib_search_path_spec \
47654sys_lib_dlsearch_path_spec \
47655old_archive_cmds_CXX \
47656old_archive_from_new_cmds_CXX \
47657old_archive_from_expsyms_cmds_CXX \
47658archive_cmds_CXX \
47659archive_expsym_cmds_CXX \
47660module_cmds_CXX \
47661module_expsym_cmds_CXX \
47662export_symbols_cmds_CXX \
47663prelink_cmds_CXX; do
47664 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47665 *[\\\\\\\`\\"\\\$]*)
47666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47667 ;;
47668 *)
47669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47670 ;;
47671 esac
47672done
47673
47674# Fix-up fallback echo if it was mangled by the above quoting rules.
47675case \$lt_ECHO in
47676*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47677 ;;
47678esac
47679
47680ac_aux_dir='$ac_aux_dir'
47681xsi_shell='$xsi_shell'
47682lt_shell_append='$lt_shell_append'
47683
47684# See if we are running on zsh, and set the options which allow our
47685# commands through without removal of \ escapes INIT.
47686if test -n "\${ZSH_VERSION+set}" ; then
47687 setopt NO_GLOB_SUBST
47688fi
47689
47690
47691 PACKAGE='$PACKAGE'
47692 VERSION='$VERSION'
47693 TIMESTAMP='$TIMESTAMP'
47694 RM='$RM'
47695 ofile='$ofile'
47696
47697
47698
47699
47700
47701
47702_ACEOF
47703
47704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47705
47706# Handling of arguments.
47707for ac_config_target in $ac_config_targets
47708do
47709 case $ac_config_target in
47710 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47711 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47712 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47713 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47714 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47715 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47716 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47717 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47718 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47719 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47720 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47721 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47722 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47723 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47724 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47725 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47726 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47727 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47728 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47730 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47731 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47732 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47733 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47734 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47735 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47736 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47737 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47738 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47739 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47740 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47741 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
47742 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
47743 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
47744 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
47745 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
47746 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
47747 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
47748 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
47749 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
47750 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47751 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47752 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47753 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
47754 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
47755 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
47756 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
47757 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
47758 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
47759
47760 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47761$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47762 { (exit 1); exit 1; }; };;
47763 esac
47764done
47765
47766
47767# If the user did not use the arguments to specify the items to instantiate,
47768# then the envvar interface is used. Set only those that are not.
47769# We use the long form for the default assignment because of an extremely
47770# bizarre bug on SunOS 4.1.3.
47771if $ac_need_defaults; then
47772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47775fi
47776
47777# Have a temporary directory for convenience. Make it in the build tree
47778# simply because there is no reason against having it here, and in addition,
47779# creating and moving files from /tmp can sometimes cause problems.
47780# Hook for its removal unless debugging.
47781# Note that there is a small window in which the directory will not be cleaned:
47782# after its creation but before its name has been assigned to `$tmp'.
47783$debug ||
47784{
47785 tmp=
47786 trap 'exit_status=$?
47787 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
47788' 0
47789 trap '{ (exit 1); exit 1; }' 1 2 13 15
47790}
47791# Create a (secure) tmp directory for tmp files.
47792
47793{
47794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47795 test -n "$tmp" && test -d "$tmp"
47796} ||
47797{
47798 tmp=./conf$$-$RANDOM
47799 (umask 077 && mkdir "$tmp")
47800} ||
47801{
47802 $as_echo "$as_me: cannot create a temporary directory in ." >&2
47803 { (exit 1); exit 1; }
47804}
47805
47806# Set up the scripts for CONFIG_FILES section.
47807# No need to generate them if there are no CONFIG_FILES.
47808# This happens for instance with `./config.status config.h'.
47809if test -n "$CONFIG_FILES"; then
47810
47811
47812ac_cr=' '
47813ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47814if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47815 ac_cs_awk_cr='\\r'
47816else
47817 ac_cs_awk_cr=$ac_cr
47818fi
47819
47820echo 'BEGIN {' >"$tmp/subs1.awk" &&
47821_ACEOF
47822
47823
47824{
47825 echo "cat >conf$$subs.awk <<_ACEOF" &&
47826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47827 echo "_ACEOF"
47828} >conf$$subs.sh ||
47829 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47830$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47831 { (exit 1); exit 1; }; }
47832ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
47833ac_delim='%!_!# '
47834for ac_last_try in false false false false false :; do
47835 . ./conf$$subs.sh ||
47836 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47837$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47838 { (exit 1); exit 1; }; }
47839
47840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47841 if test $ac_delim_n = $ac_delim_num; then
47842 break
47843 elif $ac_last_try; then
47844 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47845$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47846 { (exit 1); exit 1; }; }
47847 else
47848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47849 fi
47850done
47851rm -f conf$$subs.sh
47852
47853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47854cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47855_ACEOF
47856sed -n '
47857h
47858s/^/S["/; s/!.*/"]=/
47859p
47860g
47861s/^[^!]*!//
47862:repl
47863t repl
47864s/'"$ac_delim"'$//
47865t delim
47866:nl
47867h
47868s/\(.\{148\}\).*/\1/
47869t more1
47870s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47871p
47872n
47873b repl
47874:more1
47875s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47876p
47877g
47878s/.\{148\}//
47879t nl
47880:delim
47881h
47882s/\(.\{148\}\).*/\1/
47883t more2
47884s/["\\]/\\&/g; s/^/"/; s/$/"/
47885p
47886b
47887:more2
47888s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47889p
47890g
47891s/.\{148\}//
47892t delim
47893' <conf$$subs.awk | sed '
47894/^[^""]/{
47895 N
47896 s/\n//
47897}
47898' >>$CONFIG_STATUS || ac_write_fail=1
47899rm -f conf$$subs.awk
47900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47901_ACAWK
47902cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47903 for (key in S) S_is_set[key] = 1
47904 FS = ""
47905
47906}
47907{
47908 line = $ 0
47909 nfields = split(line, field, "@")
47910 substed = 0
47911 len = length(field[1])
47912 for (i = 2; i < nfields; i++) {
47913 key = field[i]
47914 keylen = length(key)
47915 if (S_is_set[key]) {
47916 value = S[key]
47917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47918 len += length(value) + length(field[++i])
47919 substed = 1
47920 } else
47921 len += 1 + keylen
47922 }
47923
47924 print line
47925}
47926
47927_ACAWK
47928_ACEOF
47929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47930if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47931 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47932else
47933 cat
47934fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47935 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47936$as_echo "$as_me: error: could not setup config files machinery" >&2;}
47937 { (exit 1); exit 1; }; }
47938_ACEOF
47939
47940# VPATH may cause trouble with some makes, so we remove $(srcdir),
47941# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47942# trailing colons and then remove the whole line if VPATH becomes empty
47943# (actually we leave an empty line to preserve line numbers).
47944if test "x$srcdir" = x.; then
47945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47946s/:*\$(srcdir):*/:/
47947s/:*\${srcdir}:*/:/
47948s/:*@srcdir@:*/:/
47949s/^\([^=]*=[ ]*\):*/\1/
47950s/:*$//
47951s/^[^=]*=[ ]*$//
47952}'
47953fi
47954
47955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47956fi # test -n "$CONFIG_FILES"
47957
47958# Set up the scripts for CONFIG_HEADERS section.
47959# No need to generate them if there are no CONFIG_HEADERS.
47960# This happens for instance with `./config.status Makefile'.
47961if test -n "$CONFIG_HEADERS"; then
47962cat >"$tmp/defines.awk" <<\_ACAWK ||
47963BEGIN {
47964_ACEOF
47965
47966# Transform confdefs.h into an awk script `defines.awk', embedded as
47967# here-document in config.status, that substitutes the proper values into
47968# config.h.in to produce config.h.
47969
47970# Create a delimiter string that does not exist in confdefs.h, to ease
47971# handling of long lines.
47972ac_delim='%!_!# '
47973for ac_last_try in false false :; do
47974 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47975 if test -z "$ac_t"; then
47976 break
47977 elif $ac_last_try; then
47978 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47979$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47980 { (exit 1); exit 1; }; }
47981 else
47982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47983 fi
47984done
47985
47986# For the awk script, D is an array of macro values keyed by name,
47987# likewise P contains macro parameters if any. Preserve backslash
47988# newline sequences.
47989
47990ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47991sed -n '
47992s/.\{148\}/&'"$ac_delim"'/g
47993t rset
47994:rset
47995s/^[ ]*#[ ]*define[ ][ ]*/ /
47996t def
47997d
47998:def
47999s/\\$//
48000t bsnl
48001s/["\\]/\\&/g
48002s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48003D["\1"]=" \3"/p
48004s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48005d
48006:bsnl
48007s/["\\]/\\&/g
48008s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48009D["\1"]=" \3\\\\\\n"\\/p
48010t cont
48011s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48012t cont
48013d
48014:cont
48015n
48016s/.\{148\}/&'"$ac_delim"'/g
48017t clear
48018:clear
48019s/\\$//
48020t bsnlc
48021s/["\\]/\\&/g; s/^/"/; s/$/"/p
48022d
48023:bsnlc
48024s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48025b cont
48026' <confdefs.h | sed '
48027s/'"$ac_delim"'/"\\\
48028"/g' >>$CONFIG_STATUS || ac_write_fail=1
48029
48030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48031 for (key in D) D_is_set[key] = 1
48032 FS = ""
48033}
48034/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48035 line = \$ 0
48036 split(line, arg, " ")
48037 if (arg[1] == "#") {
48038 defundef = arg[2]
48039 mac1 = arg[3]
48040 } else {
48041 defundef = substr(arg[1], 2)
48042 mac1 = arg[2]
48043 }
48044 split(mac1, mac2, "(") #)
48045 macro = mac2[1]
48046 prefix = substr(line, 1, index(line, defundef) - 1)
48047 if (D_is_set[macro]) {
48048 # Preserve the white space surrounding the "#".
48049 print prefix "define", macro P[macro] D[macro]
48050 next
48051 } else {
48052 # Replace #undef with comments. This is necessary, for example,
48053 # in the case of _POSIX_SOURCE, which is predefined and required
48054 # on some systems where configure will not decide to define it.
48055 if (defundef == "undef") {
48056 print "/*", prefix defundef, macro, "*/"
48057 next
48058 }
48059 }
48060}
48061{ print }
48062_ACAWK
48063_ACEOF
48064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48065 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48066$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48067 { (exit 1); exit 1; }; }
48068fi # test -n "$CONFIG_HEADERS"
48069
48070
48071eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48072shift
48073for ac_tag
48074do
48075 case $ac_tag in
48076 :[FHLC]) ac_mode=$ac_tag; continue;;
48077 esac
48078 case $ac_mode$ac_tag in
48079 :[FHL]*:*);;
48080 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48081$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48082 { (exit 1); exit 1; }; };;
48083 :[FH]-) ac_tag=-:-;;
48084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48085 esac
48086 ac_save_IFS=$IFS
48087 IFS=:
48088 set x $ac_tag
48089 IFS=$ac_save_IFS
48090 shift
48091 ac_file=$1
48092 shift
48093
48094 case $ac_mode in
48095 :L) ac_source=$1;;
48096 :[FH])
48097 ac_file_inputs=
48098 for ac_f
48099 do
48100 case $ac_f in
48101 -) ac_f="$tmp/stdin";;
48102 *) # Look for the file first in the build tree, then in the source tree
48103 # (if the path is not absolute). The absolute path cannot be DOS-style,
48104 # because $ac_f cannot contain `:'.
48105 test -f "$ac_f" ||
48106 case $ac_f in
48107 [\\/$]*) false;;
48108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48109 esac ||
48110 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48111$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48112 { (exit 1); exit 1; }; };;
48113 esac
48114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48115 ac_file_inputs="$ac_file_inputs '$ac_f'"
48116 done
48117
48118 # Let's still pretend it is `configure' which instantiates (i.e., don't
48119 # use $as_me), people would be surprised to read:
48120 # /* config.h. Generated by config.status. */
48121 configure_input='Generated from '`
48122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48123 `' by configure.'
48124 if test x"$ac_file" != x-; then
48125 configure_input="$ac_file. $configure_input"
48126 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
48127$as_echo "$as_me: creating $ac_file" >&6;}
48128 fi
48129 # Neutralize special characters interpreted by sed in replacement strings.
48130 case $configure_input in #(
48131 *\&* | *\|* | *\\* )
48132 ac_sed_conf_input=`$as_echo "$configure_input" |
48133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48134 *) ac_sed_conf_input=$configure_input;;
48135 esac
48136
48137 case $ac_tag in
48138 *:-:* | *:-) cat >"$tmp/stdin" \
48139 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48140$as_echo "$as_me: error: could not create $ac_file" >&2;}
48141 { (exit 1); exit 1; }; } ;;
48142 esac
48143 ;;
48144 esac
48145
48146 ac_dir=`$as_dirname -- "$ac_file" ||
48147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48148 X"$ac_file" : 'X\(//\)[^/]' \| \
48149 X"$ac_file" : 'X\(//\)$' \| \
48150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48151$as_echo X"$ac_file" |
48152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48153 s//\1/
48154 q
48155 }
48156 /^X\(\/\/\)[^/].*/{
48157 s//\1/
48158 q
48159 }
48160 /^X\(\/\/\)$/{
48161 s//\1/
48162 q
48163 }
48164 /^X\(\/\).*/{
48165 s//\1/
48166 q
48167 }
48168 s/.*/./; q'`
48169 { as_dir="$ac_dir"
48170 case $as_dir in #(
48171 -*) as_dir=./$as_dir;;
48172 esac
48173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48174 as_dirs=
48175 while :; do
48176 case $as_dir in #(
48177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48178 *) as_qdir=$as_dir;;
48179 esac
48180 as_dirs="'$as_qdir' $as_dirs"
48181 as_dir=`$as_dirname -- "$as_dir" ||
48182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48183 X"$as_dir" : 'X\(//\)[^/]' \| \
48184 X"$as_dir" : 'X\(//\)$' \| \
48185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48186$as_echo X"$as_dir" |
48187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48188 s//\1/
48189 q
48190 }
48191 /^X\(\/\/\)[^/].*/{
48192 s//\1/
48193 q
48194 }
48195 /^X\(\/\/\)$/{
48196 s//\1/
48197 q
48198 }
48199 /^X\(\/\).*/{
48200 s//\1/
48201 q
48202 }
48203 s/.*/./; q'`
48204 test -d "$as_dir" && break
48205 done
48206 test -z "$as_dirs" || eval "mkdir $as_dirs"
48207 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48208$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48209 { (exit 1); exit 1; }; }; }
48210 ac_builddir=.
48211
48212case "$ac_dir" in
48213.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48214*)
48215 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48216 # A ".." for each directory in $ac_dir_suffix.
48217 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48218 case $ac_top_builddir_sub in
48219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48221 esac ;;
48222esac
48223ac_abs_top_builddir=$ac_pwd
48224ac_abs_builddir=$ac_pwd$ac_dir_suffix
48225# for backward compatibility:
48226ac_top_builddir=$ac_top_build_prefix
48227
48228case $srcdir in
48229 .) # We are building in place.
48230 ac_srcdir=.
48231 ac_top_srcdir=$ac_top_builddir_sub
48232 ac_abs_top_srcdir=$ac_pwd ;;
48233 [\\/]* | ?:[\\/]* ) # Absolute name.
48234 ac_srcdir=$srcdir$ac_dir_suffix;
48235 ac_top_srcdir=$srcdir
48236 ac_abs_top_srcdir=$srcdir ;;
48237 *) # Relative name.
48238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48239 ac_top_srcdir=$ac_top_build_prefix$srcdir
48240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48241esac
48242ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48243
48244
48245 case $ac_mode in
48246 :F)
48247 #
48248 # CONFIG_FILE
48249 #
48250
48251 case $INSTALL in
48252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48254 esac
48255 ac_MKDIR_P=$MKDIR_P
48256 case $MKDIR_P in
48257 [\\/$]* | ?:[\\/]* ) ;;
48258 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48259 esac
48260_ACEOF
48261
48262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48263# If the template does not know about datarootdir, expand it.
48264# FIXME: This hack should be removed a few years after 2.60.
48265ac_datarootdir_hack=; ac_datarootdir_seen=
48266
48267ac_sed_dataroot='
48268/datarootdir/ {
48269 p
48270 q
48271}
48272/@datadir@/p
48273/@docdir@/p
48274/@infodir@/p
48275/@localedir@/p
48276/@mandir@/p
48277'
48278case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48279*datarootdir*) ac_datarootdir_seen=yes;;
48280*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48281 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48282$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48283_ACEOF
48284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48285 ac_datarootdir_hack='
48286 s&@datadir@&$datadir&g
48287 s&@docdir@&$docdir&g
48288 s&@infodir@&$infodir&g
48289 s&@localedir@&$localedir&g
48290 s&@mandir@&$mandir&g
48291 s&\\\${datarootdir}&$datarootdir&g' ;;
48292esac
48293_ACEOF
48294
48295# Neutralize VPATH when `$srcdir' = `.'.
48296# Shell code in configure.ac might set extrasub.
48297# FIXME: do we really want to maintain this feature?
48298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48299ac_sed_extra="$ac_vpsub
48300$extrasub
48301_ACEOF
48302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48303:t
48304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48305s|@configure_input@|$ac_sed_conf_input|;t t
48306s&@top_builddir@&$ac_top_builddir_sub&;t t
48307s&@top_build_prefix@&$ac_top_build_prefix&;t t
48308s&@srcdir@&$ac_srcdir&;t t
48309s&@abs_srcdir@&$ac_abs_srcdir&;t t
48310s&@top_srcdir@&$ac_top_srcdir&;t t
48311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48312s&@builddir@&$ac_builddir&;t t
48313s&@abs_builddir@&$ac_abs_builddir&;t t
48314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48315s&@INSTALL@&$ac_INSTALL&;t t
48316s&@MKDIR_P@&$ac_MKDIR_P&;t t
48317$ac_datarootdir_hack
48318"
48319eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
48320 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48321$as_echo "$as_me: error: could not create $ac_file" >&2;}
48322 { (exit 1); exit 1; }; }
48323
48324test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
48326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
48327 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48328which seems to be undefined. Please make sure it is defined." >&5
48329$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48330which seems to be undefined. Please make sure it is defined." >&2;}
48331
48332 rm -f "$tmp/stdin"
48333 case $ac_file in
48334 -) cat "$tmp/out" && rm -f "$tmp/out";;
48335 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
48336 esac \
48337 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48338$as_echo "$as_me: error: could not create $ac_file" >&2;}
48339 { (exit 1); exit 1; }; }
48340 ;;
48341 :H)
48342 #
48343 # CONFIG_HEADER
48344 #
48345 if test x"$ac_file" != x-; then
48346 {
48347 $as_echo "/* $configure_input */" \
48348 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
48349 } >"$tmp/config.h" \
48350 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48351$as_echo "$as_me: error: could not create $ac_file" >&2;}
48352 { (exit 1); exit 1; }; }
48353 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
48354 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48355$as_echo "$as_me: $ac_file is unchanged" >&6;}
48356 else
48357 rm -f "$ac_file"
48358 mv "$tmp/config.h" "$ac_file" \
48359 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48360$as_echo "$as_me: error: could not create $ac_file" >&2;}
48361 { (exit 1); exit 1; }; }
48362 fi
48363 else
48364 $as_echo "/* $configure_input */" \
48365 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
48366 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
48367$as_echo "$as_me: error: could not create -" >&2;}
48368 { (exit 1); exit 1; }; }
48369 fi
48370# Compute "$ac_file"'s index in $config_headers.
48371_am_arg="$ac_file"
48372_am_stamp_count=1
48373for _am_header in $config_headers :; do
48374 case $_am_header in
48375 $_am_arg | $_am_arg:* )
48376 break ;;
48377 * )
48378 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48379 esac
48380done
48381echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48382$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48383 X"$_am_arg" : 'X\(//\)[^/]' \| \
48384 X"$_am_arg" : 'X\(//\)$' \| \
48385 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48386$as_echo X"$_am_arg" |
48387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48388 s//\1/
48389 q
48390 }
48391 /^X\(\/\/\)[^/].*/{
48392 s//\1/
48393 q
48394 }
48395 /^X\(\/\/\)$/{
48396 s//\1/
48397 q
48398 }
48399 /^X\(\/\).*/{
48400 s//\1/
48401 q
48402 }
48403 s/.*/./; q'`/stamp-h$_am_stamp_count
48404 ;;
48405
48406 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
48407$as_echo "$as_me: executing $ac_file commands" >&6;}
48408 ;;
48409 esac
48410
48411
48412 case $ac_file$ac_mode in
48413 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
48414ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
48415ac_prefix_conf_PKG=`echo MagickCore`
48416ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
48417ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
48418ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
48419if test ".$ac_prefix_conf_INP" = "."; then
48420 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
48421 case "$ac_file" in
48422 *.h) ac_prefix_conf_INP=$ac_file ;;
48423 *)
48424 esac
48425 test ".$ac_prefix_conf_INP" != "." && break
48426 done
48427fi
48428if test ".$ac_prefix_conf_INP" = "."; then
48429 case "$ac_prefix_conf_OUT" in
48430 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
48431 ;;
48432 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
48433 ;;
48434 *) ac_prefix_conf_INP=config.h
48435 ;;
48436 esac
48437fi
48438if test -z "$ac_prefix_conf_PKG" ; then
48439 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
48440$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
48441 { (exit 1); exit 1; }; }
48442else
48443 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
48444 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
48445 fi fi
48446 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
48447$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
48448 if test -f $ac_prefix_conf_INP ; then
48449 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
48450 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
48451 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
48452 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
48453 echo "#endif/" >>conftest.prefix
48454 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
48455 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
48456 echo "#endif/" >> conftest.prefix
48457 # now executing _script on _DEF input to create _OUT output file
48458 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
48459 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
48460 echo ' ' >>$tmp/pconfig.h
48461 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
48462
48463 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
48464 echo ' ' >>$tmp/pconfig.h
48465 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
48466 echo "#endif" >>$tmp/pconfig.h
48467 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
48468 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
48469$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
48470 else
48471 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
48472$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48473 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
48474 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
48475 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
48476$as_echo X"$ac_prefix_conf_OUT" |
48477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48478 s//\1/
48479 q
48480 }
48481 /^X\(\/\/\)[^/].*/{
48482 s//\1/
48483 q
48484 }
48485 /^X\(\/\/\)$/{
48486 s//\1/
48487 q
48488 }
48489 /^X\(\/\).*/{
48490 s//\1/
48491 q
48492 }
48493 s/.*/./; q'`
48494 { as_dir="$ac_dir"
48495 case $as_dir in #(
48496 -*) as_dir=./$as_dir;;
48497 esac
48498 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48499 as_dirs=
48500 while :; do
48501 case $as_dir in #(
48502 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48503 *) as_qdir=$as_dir;;
48504 esac
48505 as_dirs="'$as_qdir' $as_dirs"
48506 as_dir=`$as_dirname -- "$as_dir" ||
48507$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48508 X"$as_dir" : 'X\(//\)[^/]' \| \
48509 X"$as_dir" : 'X\(//\)$' \| \
48510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48511$as_echo X"$as_dir" |
48512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48513 s//\1/
48514 q
48515 }
48516 /^X\(\/\/\)[^/].*/{
48517 s//\1/
48518 q
48519 }
48520 /^X\(\/\/\)$/{
48521 s//\1/
48522 q
48523 }
48524 /^X\(\/\).*/{
48525 s//\1/
48526 q
48527 }
48528 s/.*/./; q'`
48529 test -d "$as_dir" && break
48530 done
48531 test -z "$as_dirs" || eval "mkdir $as_dirs"
48532 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48533$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48534 { (exit 1); exit 1; }; }; }
48535 rm -f "$ac_prefix_conf_OUT"
48536 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
48537 fi
48538 cp conftest.prefix _configs.sed
48539 else
48540 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
48541$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
48542 { (exit 1); exit 1; }; }
48543 fi
48544 rm -f conftest.*
48545fi
48546 ;;
48547 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48548 # Autoconf 2.62 quotes --file arguments for eval, but not when files
48549 # are listed without --file. Let's play safe and only enable the eval
48550 # if we detect the quoting.
48551 case $CONFIG_FILES in
48552 *\'*) eval set x "$CONFIG_FILES" ;;
48553 *) set x $CONFIG_FILES ;;
48554 esac
48555 shift
48556 for mf
48557 do
48558 # Strip MF so we end up with the name of the file.
48559 mf=`echo "$mf" | sed -e 's/:.*$//'`
48560 # Check whether this is an Automake generated Makefile or not.
48561 # We used to match only the files named `Makefile.in', but
48562 # some people rename them; so instead we look at the file content.
48563 # Grep'ing the first line is not enough: some people post-process
48564 # each Makefile.in and add a new line on top of each file to say so.
48565 # Grep'ing the whole file is not good either: AIX grep has a line
48566 # limit of 2048, but all sed's we know have understand at least 4000.
48567 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
48568 dirpart=`$as_dirname -- "$mf" ||
48569$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48570 X"$mf" : 'X\(//\)[^/]' \| \
48571 X"$mf" : 'X\(//\)$' \| \
48572 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
48573$as_echo X"$mf" |
48574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48575 s//\1/
48576 q
48577 }
48578 /^X\(\/\/\)[^/].*/{
48579 s//\1/
48580 q
48581 }
48582 /^X\(\/\/\)$/{
48583 s//\1/
48584 q
48585 }
48586 /^X\(\/\).*/{
48587 s//\1/
48588 q
48589 }
48590 s/.*/./; q'`
48591 else
48592 continue
48593 fi
48594 # Extract the definition of DEPDIR, am__include, and am__quote
48595 # from the Makefile without running `make'.
48596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48597 test -z "$DEPDIR" && continue
48598 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48599 test -z "am__include" && continue
48600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48601 # When using ansi2knr, U may be empty or an underscore; expand it
48602 U=`sed -n 's/^U = //p' < "$mf"`
48603 # Find all dependency output files, they are included files with
48604 # $(DEPDIR) in their names. We invoke sed twice because it is the
48605 # simplest approach to changing $(DEPDIR) to its actual value in the
48606 # expansion.
48607 for file in `sed -n "
48608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48610 # Make sure the directory exists.
48611 test -f "$dirpart/$file" && continue
48612 fdir=`$as_dirname -- "$file" ||
48613$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48614 X"$file" : 'X\(//\)[^/]' \| \
48615 X"$file" : 'X\(//\)$' \| \
48616 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48617$as_echo X"$file" |
48618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48619 s//\1/
48620 q
48621 }
48622 /^X\(\/\/\)[^/].*/{
48623 s//\1/
48624 q
48625 }
48626 /^X\(\/\/\)$/{
48627 s//\1/
48628 q
48629 }
48630 /^X\(\/\).*/{
48631 s//\1/
48632 q
48633 }
48634 s/.*/./; q'`
48635 { as_dir=$dirpart/$fdir
48636 case $as_dir in #(
48637 -*) as_dir=./$as_dir;;
48638 esac
48639 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48640 as_dirs=
48641 while :; do
48642 case $as_dir in #(
48643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48644 *) as_qdir=$as_dir;;
48645 esac
48646 as_dirs="'$as_qdir' $as_dirs"
48647 as_dir=`$as_dirname -- "$as_dir" ||
48648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48649 X"$as_dir" : 'X\(//\)[^/]' \| \
48650 X"$as_dir" : 'X\(//\)$' \| \
48651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48652$as_echo X"$as_dir" |
48653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48654 s//\1/
48655 q
48656 }
48657 /^X\(\/\/\)[^/].*/{
48658 s//\1/
48659 q
48660 }
48661 /^X\(\/\/\)$/{
48662 s//\1/
48663 q
48664 }
48665 /^X\(\/\).*/{
48666 s//\1/
48667 q
48668 }
48669 s/.*/./; q'`
48670 test -d "$as_dir" && break
48671 done
48672 test -z "$as_dirs" || eval "mkdir $as_dirs"
48673 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48674$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48675 { (exit 1); exit 1; }; }; }
48676 # echo "creating $dirpart/$file"
48677 echo '# dummy' > "$dirpart/$file"
48678 done
48679 done
48680}
48681 ;;
48682 "libtool":C)
48683
48684 # See if we are running on zsh, and set the options which allow our
48685 # commands through without removal of \ escapes.
48686 if test -n "${ZSH_VERSION+set}" ; then
48687 setopt NO_GLOB_SUBST
48688 fi
48689
48690 cfgfile="${ofile}T"
48691 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48692 $RM "$cfgfile"
48693
48694 cat <<_LT_EOF >> "$cfgfile"
48695#! $SHELL
48696
48697# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48698# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48699# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48700# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48701#
48702# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48703# 2006, 2007, 2008 Free Software Foundation, Inc.
48704# Written by Gordon Matzigkeit, 1996
48705#
48706# This file is part of GNU Libtool.
48707#
48708# GNU Libtool is free software; you can redistribute it and/or
48709# modify it under the terms of the GNU General Public License as
48710# published by the Free Software Foundation; either version 2 of
48711# the License, or (at your option) any later version.
48712#
48713# As a special exception to the GNU General Public License,
48714# if you distribute this file as part of a program or library that
48715# is built using GNU Libtool, you may include this file under the
48716# same distribution terms that you use for the rest of that program.
48717#
48718# GNU Libtool is distributed in the hope that it will be useful,
48719# but WITHOUT ANY WARRANTY; without even the implied warranty of
48720# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48721# GNU General Public License for more details.
48722#
48723# You should have received a copy of the GNU General Public License
48724# along with GNU Libtool; see the file COPYING. If not, a copy
48725# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48726# obtained by writing to the Free Software Foundation, Inc.,
48727# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48728
48729
48730# The names of the tagged configurations supported by this script.
48731available_tags="CXX "
48732
48733# ### BEGIN LIBTOOL CONFIG
48734
48735# A sed program that does not truncate output.
48736SED=$lt_SED
48737
48738# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48739Xsed="\$SED -e 1s/^X//"
48740
48741# A grep program that handles long lines.
48742GREP=$lt_GREP
48743
48744# An ERE matcher.
48745EGREP=$lt_EGREP
48746
48747# A literal string matcher.
48748FGREP=$lt_FGREP
48749
48750# Which release of libtool.m4 was used?
48751macro_version=$macro_version
48752macro_revision=$macro_revision
48753
48754# Assembler program.
48755AS=$AS
48756
48757# DLL creation program.
48758DLLTOOL=$DLLTOOL
48759
48760# Object dumper program.
48761OBJDUMP=$OBJDUMP
48762
48763# Whether or not to build shared libraries.
48764build_libtool_libs=$enable_shared
48765
48766# Whether or not to build static libraries.
48767build_old_libs=$enable_static
48768
48769# What type of objects to build.
48770pic_mode=$pic_mode
48771
48772# Whether or not to optimize for fast installation.
48773fast_install=$enable_fast_install
48774
48775# The host system.
48776host_alias=$host_alias
48777host=$host
48778host_os=$host_os
48779
48780# The build system.
48781build_alias=$build_alias
48782build=$build
48783build_os=$build_os
48784
48785# A BSD- or MS-compatible name lister.
48786NM=$lt_NM
48787
48788# Whether we need soft or hard links.
48789LN_S=$lt_LN_S
48790
48791# What is the maximum length of a command?
48792max_cmd_len=$max_cmd_len
48793
48794# Object file suffix (normally "o").
48795objext=$ac_objext
48796
48797# Executable file suffix (normally "").
48798exeext=$exeext
48799
48800# whether the shell understands "unset".
48801lt_unset=$lt_unset
48802
48803# turn spaces into newlines.
48804SP2NL=$lt_lt_SP2NL
48805
48806# turn newlines into spaces.
48807NL2SP=$lt_lt_NL2SP
48808
48809# How to create reloadable object files.
48810reload_flag=$lt_reload_flag
48811reload_cmds=$lt_reload_cmds
48812
48813# Method to check whether dependent libraries are shared objects.
48814deplibs_check_method=$lt_deplibs_check_method
48815
48816# Command to use when deplibs_check_method == "file_magic".
48817file_magic_cmd=$lt_file_magic_cmd
48818
48819# The archiver.
48820AR=$lt_AR
48821AR_FLAGS=$lt_AR_FLAGS
48822
48823# A symbol stripping program.
48824STRIP=$lt_STRIP
48825
48826# Commands used to install an old-style archive.
48827RANLIB=$lt_RANLIB
48828old_postinstall_cmds=$lt_old_postinstall_cmds
48829old_postuninstall_cmds=$lt_old_postuninstall_cmds
48830
48831# A C compiler.
48832LTCC=$lt_CC
48833
48834# LTCC compiler flags.
48835LTCFLAGS=$lt_CFLAGS
48836
48837# Take the output of nm and produce a listing of raw symbols and C names.
48838global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48839
48840# Transform the output of nm in a proper C declaration.
48841global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48842
48843# Transform the output of nm in a C name address pair.
48844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48845
48846# Transform the output of nm in a C name address pair when lib prefix is needed.
48847global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48848
48849# The name of the directory that contains temporary libtool files.
48850objdir=$objdir
48851
48852# Shell to use when invoking shell scripts.
48853SHELL=$lt_SHELL
48854
48855# An echo program that does not interpret backslashes.
48856ECHO=$lt_ECHO
48857
48858# Used to examine libraries when file_magic_cmd begins with "file".
48859MAGIC_CMD=$MAGIC_CMD
48860
48861# Must we lock files when doing compilation?
48862need_locks=$lt_need_locks
48863
48864# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48865DSYMUTIL=$lt_DSYMUTIL
48866
48867# Tool to change global to local symbols on Mac OS X.
48868NMEDIT=$lt_NMEDIT
48869
48870# Tool to manipulate fat objects and archives on Mac OS X.
48871LIPO=$lt_LIPO
48872
48873# ldd/readelf like tool for Mach-O binaries on Mac OS X.
48874OTOOL=$lt_OTOOL
48875
48876# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48877OTOOL64=$lt_OTOOL64
48878
48879# Old archive suffix (normally "a").
48880libext=$libext
48881
48882# Shared library suffix (normally ".so").
48883shrext_cmds=$lt_shrext_cmds
48884
48885# The commands to extract the exported symbol list from a shared archive.
48886extract_expsyms_cmds=$lt_extract_expsyms_cmds
48887
48888# Variables whose values should be saved in libtool wrapper scripts and
48889# restored at link time.
48890variables_saved_for_relink=$lt_variables_saved_for_relink
48891
48892# Do we need the "lib" prefix for modules?
48893need_lib_prefix=$need_lib_prefix
48894
48895# Do we need a version for libraries?
48896need_version=$need_version
48897
48898# Library versioning type.
48899version_type=$version_type
48900
48901# Shared library runtime path variable.
48902runpath_var=$runpath_var
48903
48904# Shared library path variable.
48905shlibpath_var=$shlibpath_var
48906
48907# Is shlibpath searched before the hard-coded library search path?
48908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48909
48910# Format of library name prefix.
48911libname_spec=$lt_libname_spec
48912
48913# List of archive names. First name is the real one, the rest are links.
48914# The last name is the one that the linker finds with -lNAME
48915library_names_spec=$lt_library_names_spec
48916
48917# The coded name of the library, if different from the real name.
48918soname_spec=$lt_soname_spec
48919
48920# Command to use after installation of a shared archive.
48921postinstall_cmds=$lt_postinstall_cmds
48922
48923# Command to use after uninstallation of a shared archive.
48924postuninstall_cmds=$lt_postuninstall_cmds
48925
48926# Commands used to finish a libtool library installation in a directory.
48927finish_cmds=$lt_finish_cmds
48928
48929# As "finish_cmds", except a single script fragment to be evaled but
48930# not shown.
48931finish_eval=$lt_finish_eval
48932
48933# Whether we should hardcode library paths into libraries.
48934hardcode_into_libs=$hardcode_into_libs
48935
48936# Compile-time system search path for libraries.
48937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48938
48939# Run-time system search path for libraries.
48940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
48941
48942# Whether dlopen is supported.
48943dlopen_support=$enable_dlopen
48944
48945# Whether dlopen of programs is supported.
48946dlopen_self=$enable_dlopen_self
48947
48948# Whether dlopen of statically linked programs is supported.
48949dlopen_self_static=$enable_dlopen_self_static
48950
48951# Commands to strip libraries.
48952old_striplib=$lt_old_striplib
48953striplib=$lt_striplib
48954
48955
48956# The linker used to build libraries.
48957LD=$lt_LD
48958
48959# Commands used to build an old-style archive.
48960old_archive_cmds=$lt_old_archive_cmds
48961
48962# A language specific compiler.
48963CC=$lt_compiler
48964
48965# Is the compiler the GNU compiler?
48966with_gcc=$GCC
48967
48968# Compiler flag to turn off builtin functions.
48969no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48970
48971# How to pass a linker flag through the compiler.
48972wl=$lt_lt_prog_compiler_wl
48973
48974# Additional compiler flags for building library objects.
48975pic_flag=$lt_lt_prog_compiler_pic
48976
48977# Compiler flag to prevent dynamic linking.
48978link_static_flag=$lt_lt_prog_compiler_static
48979
48980# Does compiler simultaneously support -c and -o options?
48981compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48982
48983# Whether or not to add -lc for building shared libraries.
48984build_libtool_need_lc=$archive_cmds_need_lc
48985
48986# Whether or not to disallow shared libs when runtime libs are static.
48987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48988
48989# Compiler flag to allow reflexive dlopens.
48990export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48991
48992# Compiler flag to generate shared objects directly from archives.
48993whole_archive_flag_spec=$lt_whole_archive_flag_spec
48994
48995# Whether the compiler copes with passing no objects directly.
48996compiler_needs_object=$lt_compiler_needs_object
48997
48998# Create an old-style archive from a shared archive.
48999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49000
49001# Create a temporary old-style archive to link instead of a shared archive.
49002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49003
49004# Commands used to build a shared archive.
49005archive_cmds=$lt_archive_cmds
49006archive_expsym_cmds=$lt_archive_expsym_cmds
49007
49008# Commands used to build a loadable module if different from building
49009# a shared archive.
49010module_cmds=$lt_module_cmds
49011module_expsym_cmds=$lt_module_expsym_cmds
49012
49013# Whether we are building with GNU ld or not.
49014with_gnu_ld=$lt_with_gnu_ld
49015
49016# Flag that allows shared libraries with undefined symbols to be built.
49017allow_undefined_flag=$lt_allow_undefined_flag
49018
49019# Flag that enforces no undefined symbols.
49020no_undefined_flag=$lt_no_undefined_flag
49021
49022# Flag to hardcode \$libdir into a binary during linking.
49023# This must work even if \$libdir does not exist
49024hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49025
49026# If ld is used when linking, flag to hardcode \$libdir into a binary
49027# during linking. This must work even if \$libdir does not exist.
49028hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49029
49030# Whether we need a single "-rpath" flag with a separated argument.
49031hardcode_libdir_separator=$lt_hardcode_libdir_separator
49032
49033# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49034# DIR into the resulting binary.
49035hardcode_direct=$hardcode_direct
49036
49037# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49038# DIR into the resulting binary and the resulting library dependency is
49039# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49040# library is relocated.
49041hardcode_direct_absolute=$hardcode_direct_absolute
49042
49043# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49044# into the resulting binary.
49045hardcode_minus_L=$hardcode_minus_L
49046
49047# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49048# into the resulting binary.
49049hardcode_shlibpath_var=$hardcode_shlibpath_var
49050
49051# Set to "yes" if building a shared library automatically hardcodes DIR
49052# into the library and all subsequent libraries and executables linked
49053# against it.
49054hardcode_automatic=$hardcode_automatic
49055
49056# Set to yes if linker adds runtime paths of dependent libraries
49057# to runtime path list.
49058inherit_rpath=$inherit_rpath
49059
49060# Whether libtool must link a program against all its dependency libraries.
49061link_all_deplibs=$link_all_deplibs
49062
49063# Fix the shell variable \$srcfile for the compiler.
49064fix_srcfile_path=$lt_fix_srcfile_path
49065
49066# Set to "yes" if exported symbols are required.
49067always_export_symbols=$always_export_symbols
49068
49069# The commands to list exported symbols.
49070export_symbols_cmds=$lt_export_symbols_cmds
49071
49072# Symbols that should not be listed in the preloaded symbols.
49073exclude_expsyms=$lt_exclude_expsyms
49074
49075# Symbols that must always be exported.
49076include_expsyms=$lt_include_expsyms
49077
49078# Commands necessary for linking programs (against libraries) with templates.
49079prelink_cmds=$lt_prelink_cmds
49080
49081# Specify filename containing input files.
49082file_list_spec=$lt_file_list_spec
49083
49084# How to hardcode a shared library path into an executable.
49085hardcode_action=$hardcode_action
49086
49087# The directories searched by this compiler when creating a shared library.
49088compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49089
49090# Dependencies to place before and after the objects being linked to
49091# create a shared library.
49092predep_objects=$lt_predep_objects
49093postdep_objects=$lt_postdep_objects
49094predeps=$lt_predeps
49095postdeps=$lt_postdeps
49096
49097# The library search path used internally by the compiler when linking
49098# a shared library.
49099compiler_lib_search_path=$lt_compiler_lib_search_path
49100
49101# ### END LIBTOOL CONFIG
49102
49103_LT_EOF
49104
49105 case $host_os in
49106 aix3*)
49107 cat <<\_LT_EOF >> "$cfgfile"
49108# AIX sometimes has problems with the GCC collect2 program. For some
49109# reason, if we set the COLLECT_NAMES environment variable, the problems
49110# vanish in a puff of smoke.
49111if test "X${COLLECT_NAMES+set}" != Xset; then
49112 COLLECT_NAMES=
49113 export COLLECT_NAMES
49114fi
49115_LT_EOF
49116 ;;
49117 esac
49118
49119
49120ltmain="$ac_aux_dir/ltmain.sh"
49121
49122
49123 # We use sed instead of cat because bash on DJGPP gets confused if
49124 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49125 # text mode, it properly converts lines to CR/LF. This bash problem
49126 # is reportedly fixed, but why not run on old versions too?
49127 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49128 || (rm -f "$cfgfile"; exit 1)
49129
49130 case $xsi_shell in
49131 yes)
49132 cat << \_LT_EOF >> "$cfgfile"
49133
49134# func_dirname file append nondir_replacement
49135# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49136# otherwise set result to NONDIR_REPLACEMENT.
49137func_dirname ()
49138{
49139 case ${1} in
49140 */*) func_dirname_result="${1%/*}${2}" ;;
49141 * ) func_dirname_result="${3}" ;;
49142 esac
49143}
49144
49145# func_basename file
49146func_basename ()
49147{
49148 func_basename_result="${1##*/}"
49149}
49150
49151# func_dirname_and_basename file append nondir_replacement
49152# perform func_basename and func_dirname in a single function
49153# call:
49154# dirname: Compute the dirname of FILE. If nonempty,
49155# add APPEND to the result, otherwise set result
49156# to NONDIR_REPLACEMENT.
49157# value returned in "$func_dirname_result"
49158# basename: Compute filename of FILE.
49159# value retuned in "$func_basename_result"
49160# Implementation must be kept synchronized with func_dirname
49161# and func_basename. For efficiency, we do not delegate to
49162# those functions but instead duplicate the functionality here.
49163func_dirname_and_basename ()
49164{
49165 case ${1} in
49166 */*) func_dirname_result="${1%/*}${2}" ;;
49167 * ) func_dirname_result="${3}" ;;
49168 esac
49169 func_basename_result="${1##*/}"
49170}
49171
49172# func_stripname prefix suffix name
49173# strip PREFIX and SUFFIX off of NAME.
49174# PREFIX and SUFFIX must not contain globbing or regex special
49175# characters, hashes, percent signs, but SUFFIX may contain a leading
49176# dot (in which case that matches only a dot).
49177func_stripname ()
49178{
49179 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49180 # positional parameters, so assign one to ordinary parameter first.
49181 func_stripname_result=${3}
49182 func_stripname_result=${func_stripname_result#"${1}"}
49183 func_stripname_result=${func_stripname_result%"${2}"}
49184}
49185
49186# func_opt_split
49187func_opt_split ()
49188{
49189 func_opt_split_opt=${1%%=*}
49190 func_opt_split_arg=${1#*=}
49191}
49192
49193# func_lo2o object
49194func_lo2o ()
49195{
49196 case ${1} in
49197 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49198 *) func_lo2o_result=${1} ;;
49199 esac
49200}
49201
49202# func_xform libobj-or-source
49203func_xform ()
49204{
49205 func_xform_result=${1%.*}.lo
49206}
49207
49208# func_arith arithmetic-term...
49209func_arith ()
49210{
49211 func_arith_result=$(( $* ))
49212}
49213
49214# func_len string
49215# STRING may not start with a hyphen.
49216func_len ()
49217{
49218 func_len_result=${#1}
49219}
49220
49221_LT_EOF
49222 ;;
49223 *) # Bourne compatible functions.
49224 cat << \_LT_EOF >> "$cfgfile"
49225
49226# func_dirname file append nondir_replacement
49227# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49228# otherwise set result to NONDIR_REPLACEMENT.
49229func_dirname ()
49230{
49231 # Extract subdirectory from the argument.
49232 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49233 if test "X$func_dirname_result" = "X${1}"; then
49234 func_dirname_result="${3}"
49235 else
49236 func_dirname_result="$func_dirname_result${2}"
49237 fi
49238}
49239
49240# func_basename file
49241func_basename ()
49242{
49243 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49244}
49245
49246
49247# func_stripname prefix suffix name
49248# strip PREFIX and SUFFIX off of NAME.
49249# PREFIX and SUFFIX must not contain globbing or regex special
49250# characters, hashes, percent signs, but SUFFIX may contain a leading
49251# dot (in which case that matches only a dot).
49252# func_strip_suffix prefix name
49253func_stripname ()
49254{
49255 case ${2} in
49256 .*) func_stripname_result=`$ECHO "X${3}" \
49257 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49258 *) func_stripname_result=`$ECHO "X${3}" \
49259 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49260 esac
49261}
49262
49263# sed scripts:
49264my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49265my_sed_long_arg='1s/^-[^=]*=//'
49266
49267# func_opt_split
49268func_opt_split ()
49269{
49270 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49271 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49272}
49273
49274# func_lo2o object
49275func_lo2o ()
49276{
49277 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49278}
49279
49280# func_xform libobj-or-source
49281func_xform ()
49282{
49283 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49284}
49285
49286# func_arith arithmetic-term...
49287func_arith ()
49288{
49289 func_arith_result=`expr "$@"`
49290}
49291
49292# func_len string
49293# STRING may not start with a hyphen.
49294func_len ()
49295{
49296 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
49297}
49298
49299_LT_EOF
49300esac
49301
49302case $lt_shell_append in
49303 yes)
49304 cat << \_LT_EOF >> "$cfgfile"
49305
49306# func_append var value
49307# Append VALUE to the end of shell variable VAR.
49308func_append ()
49309{
49310 eval "$1+=\$2"
49311}
49312_LT_EOF
49313 ;;
49314 *)
49315 cat << \_LT_EOF >> "$cfgfile"
49316
49317# func_append var value
49318# Append VALUE to the end of shell variable VAR.
49319func_append ()
49320{
49321 eval "$1=\$$1\$2"
49322}
49323
49324_LT_EOF
49325 ;;
49326 esac
49327
49328
49329 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
49330 || (rm -f "$cfgfile"; exit 1)
49331
49332 mv -f "$cfgfile" "$ofile" ||
49333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49334 chmod +x "$ofile"
49335
49336
49337 cat <<_LT_EOF >> "$ofile"
49338
49339# ### BEGIN LIBTOOL TAG CONFIG: CXX
49340
49341# The linker used to build libraries.
49342LD=$lt_LD_CXX
49343
49344# Commands used to build an old-style archive.
49345old_archive_cmds=$lt_old_archive_cmds_CXX
49346
49347# A language specific compiler.
49348CC=$lt_compiler_CXX
49349
49350# Is the compiler the GNU compiler?
49351with_gcc=$GCC_CXX
49352
49353# Compiler flag to turn off builtin functions.
49354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
49355
49356# How to pass a linker flag through the compiler.
49357wl=$lt_lt_prog_compiler_wl_CXX
49358
49359# Additional compiler flags for building library objects.
49360pic_flag=$lt_lt_prog_compiler_pic_CXX
49361
49362# Compiler flag to prevent dynamic linking.
49363link_static_flag=$lt_lt_prog_compiler_static_CXX
49364
49365# Does compiler simultaneously support -c and -o options?
49366compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
49367
49368# Whether or not to add -lc for building shared libraries.
49369build_libtool_need_lc=$archive_cmds_need_lc_CXX
49370
49371# Whether or not to disallow shared libs when runtime libs are static.
49372allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
49373
49374# Compiler flag to allow reflexive dlopens.
49375export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
49376
49377# Compiler flag to generate shared objects directly from archives.
49378whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
49379
49380# Whether the compiler copes with passing no objects directly.
49381compiler_needs_object=$lt_compiler_needs_object_CXX
49382
49383# Create an old-style archive from a shared archive.
49384old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
49385
49386# Create a temporary old-style archive to link instead of a shared archive.
49387old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
49388
49389# Commands used to build a shared archive.
49390archive_cmds=$lt_archive_cmds_CXX
49391archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
49392
49393# Commands used to build a loadable module if different from building
49394# a shared archive.
49395module_cmds=$lt_module_cmds_CXX
49396module_expsym_cmds=$lt_module_expsym_cmds_CXX
49397
49398# Whether we are building with GNU ld or not.
49399with_gnu_ld=$lt_with_gnu_ld_CXX
49400
49401# Flag that allows shared libraries with undefined symbols to be built.
49402allow_undefined_flag=$lt_allow_undefined_flag_CXX
49403
49404# Flag that enforces no undefined symbols.
49405no_undefined_flag=$lt_no_undefined_flag_CXX
49406
49407# Flag to hardcode \$libdir into a binary during linking.
49408# This must work even if \$libdir does not exist
49409hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
49410
49411# If ld is used when linking, flag to hardcode \$libdir into a binary
49412# during linking. This must work even if \$libdir does not exist.
49413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
49414
49415# Whether we need a single "-rpath" flag with a separated argument.
49416hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
49417
49418# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49419# DIR into the resulting binary.
49420hardcode_direct=$hardcode_direct_CXX
49421
49422# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49423# DIR into the resulting binary and the resulting library dependency is
49424# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49425# library is relocated.
49426hardcode_direct_absolute=$hardcode_direct_absolute_CXX
49427
49428# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49429# into the resulting binary.
49430hardcode_minus_L=$hardcode_minus_L_CXX
49431
49432# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49433# into the resulting binary.
49434hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
49435
49436# Set to "yes" if building a shared library automatically hardcodes DIR
49437# into the library and all subsequent libraries and executables linked
49438# against it.
49439hardcode_automatic=$hardcode_automatic_CXX
49440
49441# Set to yes if linker adds runtime paths of dependent libraries
49442# to runtime path list.
49443inherit_rpath=$inherit_rpath_CXX
49444
49445# Whether libtool must link a program against all its dependency libraries.
49446link_all_deplibs=$link_all_deplibs_CXX
49447
49448# Fix the shell variable \$srcfile for the compiler.
49449fix_srcfile_path=$lt_fix_srcfile_path_CXX
49450
49451# Set to "yes" if exported symbols are required.
49452always_export_symbols=$always_export_symbols_CXX
49453
49454# The commands to list exported symbols.
49455export_symbols_cmds=$lt_export_symbols_cmds_CXX
49456
49457# Symbols that should not be listed in the preloaded symbols.
49458exclude_expsyms=$lt_exclude_expsyms_CXX
49459
49460# Symbols that must always be exported.
49461include_expsyms=$lt_include_expsyms_CXX
49462
49463# Commands necessary for linking programs (against libraries) with templates.
49464prelink_cmds=$lt_prelink_cmds_CXX
49465
49466# Specify filename containing input files.
49467file_list_spec=$lt_file_list_spec_CXX
49468
49469# How to hardcode a shared library path into an executable.
49470hardcode_action=$hardcode_action_CXX
49471
49472# The directories searched by this compiler when creating a shared library.
49473compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
49474
49475# Dependencies to place before and after the objects being linked to
49476# create a shared library.
49477predep_objects=$lt_predep_objects_CXX
49478postdep_objects=$lt_postdep_objects_CXX
49479predeps=$lt_predeps_CXX
49480postdeps=$lt_postdeps_CXX
49481
49482# The library search path used internally by the compiler when linking
49483# a shared library.
49484compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
49485
49486# ### END LIBTOOL TAG CONFIG: CXX
49487_LT_EOF
49488
49489 ;;
49490 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
49491 "Magick-config.in":C) chmod +x magick/Magick-config ;;
49492 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
49493 "Wand-config.in":C) chmod +x wand/Wand-config ;;
49494 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
49495 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
49496
49497 esac
49498done # for ac_tag
49499
49500
49501{ (exit 0); exit 0; }
49502_ACEOF
49503chmod +x $CONFIG_STATUS
49504ac_clean_files=$ac_clean_files_save
49505
49506test $ac_write_fail = 0 ||
49507 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49508$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49509 { (exit 1); exit 1; }; }
49510
49511
49512# configure is writing to config.log, and then calls config.status.
49513# config.status does its own redirection, appending to config.log.
49514# Unfortunately, on DOS this fails, as config.log is still kept open
49515# by configure, so config.status won't be able to write to it; its
49516# output is simply discarded. So we exec the FD to /dev/null,
49517# effectively closing config.log, so it can be properly (re)opened and
49518# appended to by config.status. When coming back to configure, we
49519# need to make the FD available again.
49520if test "$no_create" != yes; then
49521 ac_cs_success=:
49522 ac_config_status_args=
49523 test "$silent" = yes &&
49524 ac_config_status_args="$ac_config_status_args --quiet"
49525 exec 5>/dev/null
49526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49527 exec 5>>config.log
49528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49529 # would make configure fail if this is the last instruction.
49530 $ac_cs_success || { (exit 1); exit 1; }
49531fi
49532if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49533 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49534$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49535fi
49536
49537
49538rm -f magick-version
49539
49540result_ghostscript_font_dir='none'
49541if test "${ghostscript_font_dir}x" != 'x'; then
49542 result_ghostscript_font_dir=$ghostscript_font_dir
49543fi
49544
49545result_windows_font_dir='none'
49546if test "${windows_font_dir}x" != 'x'; then
49547 result_windows_font_dir=${windows_font_dir}
49548fi
49549
49550{ $as_echo "$as_me:$LINENO: result:
49551ImageMagick is configured as follows. Please verify that this configuration
49552matches your expectations.
49553
49554Host system type: $host
49555Build system type: $build
49556
49557 Option Value
49558-------------------------------------------------------------------------------
49559Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49560Static libraries --enable-static=$enable_static $libtool_build_static_libs
49561Module support --with-modules=$with_modules $with_modules
49562GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49563Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49564High Dynamic Range Imagery
49565 --enable-hdri=$enable_hdri $enable_hdri
49566
49567Delegate Configuration:
49568BZLIB --with-bzlib=$with_bzlib $have_bzlib
49569Autotrace --with-autotrace=$with_autotrace $have_autotrace
49570DJVU --with-djvu=$with_djvu $have_djvu
49571DPS --with-dps=$with_dps $have_dps
49572FFTW --with-fftw=$with_fftw $have_fftw
49573FlashPIX --with-fpx=$with_fpx $have_fpx
49574FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49575FreeType --with-freetype=$with_freetype $have_freetype
49576GhostPCL None $PCLDelegate ($PCLVersion)
49577GhostXPS None $XPSDelegate ($XPSVersion)
49578Ghostscript None $PSDelegate ($GSVersion)
49579Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49580Ghostscript lib --with-gslib=$with_gslib $have_gslib
49581Graphviz --with-gvc=$with_gvc $have_gvc
49582JBIG --with-jbig=$with_jbig $have_jbig
49583JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49584JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49585LCMS --with-lcms=$with_lcms $have_lcms
49586LQR --with-lqr=$with_lqr $have_lqr
49587Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49588OpenEXR --with-openexr=$with_openexr $have_openexr
49589PERL --with-perl=$with_perl $have_perl
49590PNG --with-png=$with_png $have_png
49591RSVG --with-rsvg=$with_rsvg $have_rsvg
49592TIFF --with-tiff=$with_tiff $have_tiff
49593Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49594WMF --with-wmf=$with_wmf $have_wmf
49595X11 --with-x=$with_x $have_x
49596XML --with-xml=$with_xml $have_xml
49597ZLIB --with-zlib=$with_zlib $have_zlib
49598
49599X11 Configuration:
49600 X_CFLAGS = $X_CFLAGS
49601 X_PRE_LIBS = $X_PRE_LIBS
49602 X_LIBS = $X_LIBS
49603 X_EXTRA_LIBS = $X_EXTRA_LIBS
49604
49605Options used to compile and link:
49606 PREFIX = $PREFIX_DIR
49607 EXEC-PREFIX = $EXEC_PREFIX_DIR
49608 VERSION = $PACKAGE_VERSION
49609 CC = $CC
49610 CFLAGS = $CFLAGS
49611 MAGICK_CFLAGS = $MAGICK_CFLAGS
49612 CPPFLAGS = $MAGICK_CPPFLAGS
49613 PCFLAGS = $MAGICK_PCFLAGS
49614 DEFS = $DEFS
49615 LDFLAGS = $LDFLAGS
49616 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49617 LIBS = $MAGICK_LIBS
49618 CXX = $CXX
49619 CXXFLAGS = $CXXFLAGS
49620" >&5
49621$as_echo "
49622ImageMagick is configured as follows. Please verify that this configuration
49623matches your expectations.
49624
49625Host system type: $host
49626Build system type: $build
49627
49628 Option Value
49629-------------------------------------------------------------------------------
49630Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49631Static libraries --enable-static=$enable_static $libtool_build_static_libs
49632Module support --with-modules=$with_modules $with_modules
49633GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49634Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49635High Dynamic Range Imagery
49636 --enable-hdri=$enable_hdri $enable_hdri
49637
49638Delegate Configuration:
49639BZLIB --with-bzlib=$with_bzlib $have_bzlib
49640Autotrace --with-autotrace=$with_autotrace $have_autotrace
49641DJVU --with-djvu=$with_djvu $have_djvu
49642DPS --with-dps=$with_dps $have_dps
49643FFTW --with-fftw=$with_fftw $have_fftw
49644FlashPIX --with-fpx=$with_fpx $have_fpx
49645FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49646FreeType --with-freetype=$with_freetype $have_freetype
49647GhostPCL None $PCLDelegate ($PCLVersion)
49648GhostXPS None $XPSDelegate ($XPSVersion)
49649Ghostscript None $PSDelegate ($GSVersion)
49650Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49651Ghostscript lib --with-gslib=$with_gslib $have_gslib
49652Graphviz --with-gvc=$with_gvc $have_gvc
49653JBIG --with-jbig=$with_jbig $have_jbig
49654JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49655JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49656LCMS --with-lcms=$with_lcms $have_lcms
49657LQR --with-lqr=$with_lqr $have_lqr
49658Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49659OpenEXR --with-openexr=$with_openexr $have_openexr
49660PERL --with-perl=$with_perl $have_perl
49661PNG --with-png=$with_png $have_png
49662RSVG --with-rsvg=$with_rsvg $have_rsvg
49663TIFF --with-tiff=$with_tiff $have_tiff
49664Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49665WMF --with-wmf=$with_wmf $have_wmf
49666X11 --with-x=$with_x $have_x
49667XML --with-xml=$with_xml $have_xml
49668ZLIB --with-zlib=$with_zlib $have_zlib
49669
49670X11 Configuration:
49671 X_CFLAGS = $X_CFLAGS
49672 X_PRE_LIBS = $X_PRE_LIBS
49673 X_LIBS = $X_LIBS
49674 X_EXTRA_LIBS = $X_EXTRA_LIBS
49675
49676Options used to compile and link:
49677 PREFIX = $PREFIX_DIR
49678 EXEC-PREFIX = $EXEC_PREFIX_DIR
49679 VERSION = $PACKAGE_VERSION
49680 CC = $CC
49681 CFLAGS = $CFLAGS
49682 MAGICK_CFLAGS = $MAGICK_CFLAGS
49683 CPPFLAGS = $MAGICK_CPPFLAGS
49684 PCFLAGS = $MAGICK_PCFLAGS
49685 DEFS = $DEFS
49686 LDFLAGS = $LDFLAGS
49687 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49688 LIBS = $MAGICK_LIBS
49689 CXX = $CXX
49690 CXXFLAGS = $CXXFLAGS
49691" >&6; }