blob: 4d324a8d6b47e45a3abb89e805d4ea032db99f0d [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyd934d102009-10-10 12:55:13 +00003# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.7.
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'
cristyd934d102009-10-10 12:55:13 +0000752PACKAGE_VERSION='6.5.7'
753PACKAGE_STRING='ImageMagick 6.5.7'
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
cristyd934d102009-10-10 12:55:13 +00001873\`configure' configures ImageMagick 6.5.7 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
cristyd934d102009-10-10 12:55:13 +00001948 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
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
cristyd934d102009-10-10 12:55:13 +00002152ImageMagick configure 6.5.7
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
cristyd934d102009-10-10 12:55:13 +00002166It was created by ImageMagick $as_me 6.5.7, 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
cristye43a45e2009-09-28 14:49:00 +000031355for ac_func in _exit atexit clock 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 +000031356do
31357as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31358{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31359$as_echo_n "checking for $ac_func... " >&6; }
31360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31361 $as_echo_n "(cached) " >&6
31362else
31363 cat >conftest.$ac_ext <<_ACEOF
31364/* confdefs.h. */
31365_ACEOF
31366cat confdefs.h >>conftest.$ac_ext
31367cat >>conftest.$ac_ext <<_ACEOF
31368/* end confdefs.h. */
31369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31371#define $ac_func innocuous_$ac_func
31372
31373/* System header to define __stub macros and hopefully few prototypes,
31374 which can conflict with char $ac_func (); below.
31375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31376 <limits.h> exists even on freestanding compilers. */
31377
31378#ifdef __STDC__
31379# include <limits.h>
31380#else
31381# include <assert.h>
31382#endif
31383
31384#undef $ac_func
31385
31386/* Override any GCC internal prototype to avoid an error.
31387 Use char because int might match the return type of a GCC
31388 builtin and then its argument prototype would still apply. */
31389#ifdef __cplusplus
31390extern "C"
31391#endif
31392char $ac_func ();
31393/* The GNU C library defines this for functions which it implements
31394 to always fail with ENOSYS. Some functions are actually named
31395 something starting with __ and the normal name is an alias. */
31396#if defined __stub_$ac_func || defined __stub___$ac_func
31397choke me
31398#endif
31399
31400int
31401main ()
31402{
31403return $ac_func ();
31404 ;
31405 return 0;
31406}
31407_ACEOF
31408rm -f conftest.$ac_objext conftest$ac_exeext
31409if { (ac_try="$ac_link"
31410case "(($ac_try" in
31411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 *) ac_try_echo=$ac_try;;
31413esac
31414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31415$as_echo "$ac_try_echo") >&5
31416 (eval "$ac_link") 2>conftest.er1
31417 ac_status=$?
31418 grep -v '^ *+' conftest.er1 >conftest.err
31419 rm -f conftest.er1
31420 cat conftest.err >&5
31421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); } && {
31423 test -z "$ac_c_werror_flag" ||
31424 test ! -s conftest.err
31425 } && test -s conftest$ac_exeext && {
31426 test "$cross_compiling" = yes ||
31427 $as_test_x conftest$ac_exeext
31428 }; then
31429 eval "$as_ac_var=yes"
31430else
31431 $as_echo "$as_me: failed program was:" >&5
31432sed 's/^/| /' conftest.$ac_ext >&5
31433
31434 eval "$as_ac_var=no"
31435fi
31436
31437rm -rf conftest.dSYM
31438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31439 conftest$ac_exeext conftest.$ac_ext
31440fi
31441ac_res=`eval 'as_val=${'$as_ac_var'}
31442 $as_echo "$as_val"'`
31443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31444$as_echo "$ac_res" >&6; }
31445as_val=`eval 'as_val=${'$as_ac_var'}
31446 $as_echo "$as_val"'`
31447 if test "x$as_val" = x""yes; then
31448 cat >>confdefs.h <<_ACEOF
31449#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31450_ACEOF
31451
31452fi
31453done
31454
31455
cristye43a45e2009-09-28 14:49:00 +000031456#
31457# Check for clock_gettime().
31458#
31459{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31460$as_echo_n "checking for library containing clock_gettime... " >&6; }
31461if test "${ac_cv_search_clock_gettime+set}" = set; then
31462 $as_echo_n "(cached) " >&6
31463else
31464 ac_func_search_save_LIBS=$LIBS
31465cat >conftest.$ac_ext <<_ACEOF
31466/* confdefs.h. */
31467_ACEOF
31468cat confdefs.h >>conftest.$ac_ext
31469cat >>conftest.$ac_ext <<_ACEOF
31470/* end confdefs.h. */
31471
31472/* Override any GCC internal prototype to avoid an error.
31473 Use char because int might match the return type of a GCC
31474 builtin and then its argument prototype would still apply. */
31475#ifdef __cplusplus
31476extern "C"
31477#endif
31478char clock_gettime ();
31479int
31480main ()
31481{
31482return clock_gettime ();
31483 ;
31484 return 0;
31485}
31486_ACEOF
31487for ac_lib in '' rt; do
31488 if test -z "$ac_lib"; then
31489 ac_res="none required"
31490 else
31491 ac_res=-l$ac_lib
31492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31493 fi
31494 rm -f conftest.$ac_objext conftest$ac_exeext
31495if { (ac_try="$ac_link"
31496case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31499esac
31500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31501$as_echo "$ac_try_echo") >&5
31502 (eval "$ac_link") 2>conftest.er1
31503 ac_status=$?
31504 grep -v '^ *+' conftest.er1 >conftest.err
31505 rm -f conftest.er1
31506 cat conftest.err >&5
31507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } && {
31509 test -z "$ac_c_werror_flag" ||
31510 test ! -s conftest.err
31511 } && test -s conftest$ac_exeext && {
31512 test "$cross_compiling" = yes ||
31513 $as_test_x conftest$ac_exeext
31514 }; then
31515 ac_cv_search_clock_gettime=$ac_res
31516else
31517 $as_echo "$as_me: failed program was:" >&5
31518sed 's/^/| /' conftest.$ac_ext >&5
31519
31520
31521fi
31522
31523rm -rf conftest.dSYM
31524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31525 conftest$ac_exeext
31526 if test "${ac_cv_search_clock_gettime+set}" = set; then
31527 break
31528fi
31529done
31530if test "${ac_cv_search_clock_gettime+set}" = set; then
31531 :
31532else
31533 ac_cv_search_clock_gettime=no
31534fi
31535rm conftest.$ac_ext
31536LIBS=$ac_func_search_save_LIBS
31537fi
31538{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31539$as_echo "$ac_cv_search_clock_gettime" >&6; }
31540ac_res=$ac_cv_search_clock_gettime
31541if test "$ac_res" != no; then
31542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31543
31544
31545cat >>confdefs.h <<\_ACEOF
31546#define HAVE_CLOCK_GETTIME 1
31547_ACEOF
31548
cristyc1c61662009-09-30 14:04:37 +000031549 { $as_echo "$as_me:$LINENO: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000031550$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristyc1c61662009-09-30 14:04:37 +000031551 cat >conftest.$ac_ext <<_ACEOF
cristye43a45e2009-09-28 14:49:00 +000031552/* confdefs.h. */
31553_ACEOF
31554cat confdefs.h >>conftest.$ac_ext
31555cat >>conftest.$ac_ext <<_ACEOF
31556/* end confdefs.h. */
31557#include <time.h>
31558int
31559main ()
31560{
31561clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000031562 ;
31563 return 0;
31564}
31565_ACEOF
31566rm -f conftest.$ac_objext
31567if { (ac_try="$ac_compile"
31568case "(($ac_try" in
31569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570 *) ac_try_echo=$ac_try;;
31571esac
31572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31573$as_echo "$ac_try_echo") >&5
31574 (eval "$ac_compile") 2>conftest.er1
31575 ac_status=$?
31576 grep -v '^ *+' conftest.er1 >conftest.err
31577 rm -f conftest.er1
31578 cat conftest.err >&5
31579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } && {
31581 test -z "$ac_c_werror_flag" ||
31582 test ! -s conftest.err
31583 } && test -s conftest.$ac_objext; then
31584
31585 { $as_echo "$as_me:$LINENO: result: yes" >&5
31586$as_echo "yes" >&6; }
31587
31588cat >>confdefs.h <<\_ACEOF
31589#define HAVE_CLOCK_REALTIME 1
31590_ACEOF
31591
31592
31593else
31594 $as_echo "$as_me: failed program was:" >&5
31595sed 's/^/| /' conftest.$ac_ext >&5
31596
31597 { $as_echo "$as_me:$LINENO: result: no" >&5
31598$as_echo "no" >&6; }
31599
31600fi
31601
31602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31603
31604else
31605
31606
31607
31608for ac_func in gettimeofday ftime
31609do
31610as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31611{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31612$as_echo_n "checking for $ac_func... " >&6; }
31613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31614 $as_echo_n "(cached) " >&6
31615else
31616 cat >conftest.$ac_ext <<_ACEOF
31617/* confdefs.h. */
31618_ACEOF
31619cat confdefs.h >>conftest.$ac_ext
31620cat >>conftest.$ac_ext <<_ACEOF
31621/* end confdefs.h. */
31622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31624#define $ac_func innocuous_$ac_func
31625
31626/* System header to define __stub macros and hopefully few prototypes,
31627 which can conflict with char $ac_func (); below.
31628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31629 <limits.h> exists even on freestanding compilers. */
31630
31631#ifdef __STDC__
31632# include <limits.h>
31633#else
31634# include <assert.h>
31635#endif
31636
31637#undef $ac_func
31638
31639/* Override any GCC internal prototype to avoid an error.
31640 Use char because int might match the return type of a GCC
31641 builtin and then its argument prototype would still apply. */
31642#ifdef __cplusplus
31643extern "C"
31644#endif
31645char $ac_func ();
31646/* The GNU C library defines this for functions which it implements
31647 to always fail with ENOSYS. Some functions are actually named
31648 something starting with __ and the normal name is an alias. */
31649#if defined __stub_$ac_func || defined __stub___$ac_func
31650choke me
31651#endif
31652
31653int
31654main ()
31655{
31656return $ac_func ();
31657 ;
31658 return 0;
31659}
31660_ACEOF
31661rm -f conftest.$ac_objext conftest$ac_exeext
31662if { (ac_try="$ac_link"
31663case "(($ac_try" in
31664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665 *) ac_try_echo=$ac_try;;
31666esac
31667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31668$as_echo "$ac_try_echo") >&5
31669 (eval "$ac_link") 2>conftest.er1
31670 ac_status=$?
31671 grep -v '^ *+' conftest.er1 >conftest.err
31672 rm -f conftest.er1
31673 cat conftest.err >&5
31674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } && {
31676 test -z "$ac_c_werror_flag" ||
31677 test ! -s conftest.err
31678 } && test -s conftest$ac_exeext && {
31679 test "$cross_compiling" = yes ||
31680 $as_test_x conftest$ac_exeext
31681 }; then
31682 eval "$as_ac_var=yes"
31683else
31684 $as_echo "$as_me: failed program was:" >&5
31685sed 's/^/| /' conftest.$ac_ext >&5
31686
31687 eval "$as_ac_var=no"
31688fi
31689
31690rm -rf conftest.dSYM
31691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31692 conftest$ac_exeext conftest.$ac_ext
31693fi
31694ac_res=`eval 'as_val=${'$as_ac_var'}
31695 $as_echo "$as_val"'`
31696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31697$as_echo "$ac_res" >&6; }
31698as_val=`eval 'as_val=${'$as_ac_var'}
31699 $as_echo "$as_val"'`
31700 if test "x$as_val" = x""yes; then
31701 cat >>confdefs.h <<_ACEOF
31702#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31703_ACEOF
31704 break
31705fi
31706done
31707
31708
31709
31710fi
31711
31712
cristy3ed852e2009-09-05 21:47:34 +000031713########
31714#
31715# Check for function prototypes
31716#
31717########
31718
31719{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
31720$as_echo_n "checking whether pread is declared... " >&6; }
31721if test "${ac_cv_have_decl_pread+set}" = set; then
31722 $as_echo_n "(cached) " >&6
31723else
31724 cat >conftest.$ac_ext <<_ACEOF
31725/* confdefs.h. */
31726_ACEOF
31727cat confdefs.h >>conftest.$ac_ext
31728cat >>conftest.$ac_ext <<_ACEOF
31729/* end confdefs.h. */
31730
31731#include <unistd.h>
31732
31733int
31734main ()
31735{
31736#ifndef pread
31737 (void) pread;
31738#endif
31739
31740 ;
31741 return 0;
31742}
31743_ACEOF
31744rm -f conftest.$ac_objext
31745if { (ac_try="$ac_compile"
31746case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31749esac
31750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31751$as_echo "$ac_try_echo") >&5
31752 (eval "$ac_compile") 2>conftest.er1
31753 ac_status=$?
31754 grep -v '^ *+' conftest.er1 >conftest.err
31755 rm -f conftest.er1
31756 cat conftest.err >&5
31757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } && {
31759 test -z "$ac_c_werror_flag" ||
31760 test ! -s conftest.err
31761 } && test -s conftest.$ac_objext; then
31762 ac_cv_have_decl_pread=yes
31763else
31764 $as_echo "$as_me: failed program was:" >&5
31765sed 's/^/| /' conftest.$ac_ext >&5
31766
31767 ac_cv_have_decl_pread=no
31768fi
31769
31770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31771fi
31772{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
31773$as_echo "$ac_cv_have_decl_pread" >&6; }
31774if test "x$ac_cv_have_decl_pread" = x""yes; then
31775
31776cat >>confdefs.h <<_ACEOF
31777#define HAVE_DECL_PREAD 1
31778_ACEOF
31779
31780
31781else
31782 cat >>confdefs.h <<_ACEOF
31783#define HAVE_DECL_PREAD 0
31784_ACEOF
31785
31786
31787fi
31788{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
31789$as_echo_n "checking whether pwrite is declared... " >&6; }
31790if test "${ac_cv_have_decl_pwrite+set}" = set; then
31791 $as_echo_n "(cached) " >&6
31792else
31793 cat >conftest.$ac_ext <<_ACEOF
31794/* confdefs.h. */
31795_ACEOF
31796cat confdefs.h >>conftest.$ac_ext
31797cat >>conftest.$ac_ext <<_ACEOF
31798/* end confdefs.h. */
31799
31800#include <unistd.h>
31801
31802int
31803main ()
31804{
31805#ifndef pwrite
31806 (void) pwrite;
31807#endif
31808
31809 ;
31810 return 0;
31811}
31812_ACEOF
31813rm -f conftest.$ac_objext
31814if { (ac_try="$ac_compile"
31815case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818esac
31819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31820$as_echo "$ac_try_echo") >&5
31821 (eval "$ac_compile") 2>conftest.er1
31822 ac_status=$?
31823 grep -v '^ *+' conftest.er1 >conftest.err
31824 rm -f conftest.er1
31825 cat conftest.err >&5
31826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); } && {
31828 test -z "$ac_c_werror_flag" ||
31829 test ! -s conftest.err
31830 } && test -s conftest.$ac_objext; then
31831 ac_cv_have_decl_pwrite=yes
31832else
31833 $as_echo "$as_me: failed program was:" >&5
31834sed 's/^/| /' conftest.$ac_ext >&5
31835
31836 ac_cv_have_decl_pwrite=no
31837fi
31838
31839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31840fi
31841{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
31842$as_echo "$ac_cv_have_decl_pwrite" >&6; }
31843if test "x$ac_cv_have_decl_pwrite" = x""yes; then
31844
31845cat >>confdefs.h <<_ACEOF
31846#define HAVE_DECL_PWRITE 1
31847_ACEOF
31848
31849
31850else
31851 cat >>confdefs.h <<_ACEOF
31852#define HAVE_DECL_PWRITE 0
31853_ACEOF
31854
31855
31856fi
31857
31858
31859
31860{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
31861$as_echo_n "checking whether strlcpy is declared... " >&6; }
31862if test "${ac_cv_have_decl_strlcpy+set}" = set; then
31863 $as_echo_n "(cached) " >&6
31864else
31865 cat >conftest.$ac_ext <<_ACEOF
31866/* confdefs.h. */
31867_ACEOF
31868cat confdefs.h >>conftest.$ac_ext
31869cat >>conftest.$ac_ext <<_ACEOF
31870/* end confdefs.h. */
31871
31872#include <strings.h>
31873
31874int
31875main ()
31876{
31877#ifndef strlcpy
31878 (void) strlcpy;
31879#endif
31880
31881 ;
31882 return 0;
31883}
31884_ACEOF
31885rm -f conftest.$ac_objext
31886if { (ac_try="$ac_compile"
31887case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31890esac
31891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31892$as_echo "$ac_try_echo") >&5
31893 (eval "$ac_compile") 2>conftest.er1
31894 ac_status=$?
31895 grep -v '^ *+' conftest.er1 >conftest.err
31896 rm -f conftest.er1
31897 cat conftest.err >&5
31898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } && {
31900 test -z "$ac_c_werror_flag" ||
31901 test ! -s conftest.err
31902 } && test -s conftest.$ac_objext; then
31903 ac_cv_have_decl_strlcpy=yes
31904else
31905 $as_echo "$as_me: failed program was:" >&5
31906sed 's/^/| /' conftest.$ac_ext >&5
31907
31908 ac_cv_have_decl_strlcpy=no
31909fi
31910
31911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31912fi
31913{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
31914$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
31915if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
31916
31917cat >>confdefs.h <<_ACEOF
31918#define HAVE_DECL_STRLCPY 1
31919_ACEOF
31920
31921
31922else
31923 cat >>confdefs.h <<_ACEOF
31924#define HAVE_DECL_STRLCPY 0
31925_ACEOF
31926
31927
31928fi
31929
31930
31931
31932{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
31933$as_echo_n "checking whether vsnprintf is declared... " >&6; }
31934if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
31935 $as_echo_n "(cached) " >&6
31936else
31937 cat >conftest.$ac_ext <<_ACEOF
31938/* confdefs.h. */
31939_ACEOF
31940cat confdefs.h >>conftest.$ac_ext
31941cat >>conftest.$ac_ext <<_ACEOF
31942/* end confdefs.h. */
31943
31944#include <stdio.h>
31945#include <stdarg.h>
31946
31947int
31948main ()
31949{
31950#ifndef vsnprintf
31951 (void) vsnprintf;
31952#endif
31953
31954 ;
31955 return 0;
31956}
31957_ACEOF
31958rm -f conftest.$ac_objext
31959if { (ac_try="$ac_compile"
31960case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963esac
31964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31965$as_echo "$ac_try_echo") >&5
31966 (eval "$ac_compile") 2>conftest.er1
31967 ac_status=$?
31968 grep -v '^ *+' conftest.er1 >conftest.err
31969 rm -f conftest.er1
31970 cat conftest.err >&5
31971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } && {
31973 test -z "$ac_c_werror_flag" ||
31974 test ! -s conftest.err
31975 } && test -s conftest.$ac_objext; then
31976 ac_cv_have_decl_vsnprintf=yes
31977else
31978 $as_echo "$as_me: failed program was:" >&5
31979sed 's/^/| /' conftest.$ac_ext >&5
31980
31981 ac_cv_have_decl_vsnprintf=no
31982fi
31983
31984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31985fi
31986{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
31987$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
31988if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
31989
31990cat >>confdefs.h <<_ACEOF
31991#define HAVE_DECL_VSNPRINTF 1
31992_ACEOF
31993
31994
31995else
31996 cat >>confdefs.h <<_ACEOF
31997#define HAVE_DECL_VSNPRINTF 0
31998_ACEOF
31999
32000
32001fi
32002
32003
32004
32005########
32006#
32007# C++ Support Tests (For Magick++)
32008#
32009########
32010have_magick_plus_plus='no'
32011if test "$with_magick_plus_plus" = 'yes'; then
32012 OLIBS="$LIBS"
32013 LIBS=''
32014 ac_ext=cpp
32015ac_cpp='$CXXCPP $CPPFLAGS'
32016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32019
32020
32021 # Full set of headers used...
32022 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
32023 # functional iomanip iosfwd iostream iterator list string strstream utility
32024 ac_ext=cpp
32025ac_cpp='$CXXCPP $CPPFLAGS'
32026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32029
32030 ac_ext=cpp
32031ac_cpp='$CXXCPP $CPPFLAGS'
32032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32035if test -z "$CXX"; then
32036 if test -n "$CCC"; then
32037 CXX=$CCC
32038 else
32039 if test -n "$ac_tool_prefix"; then
32040 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
32041 do
32042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32045$as_echo_n "checking for $ac_word... " >&6; }
32046if test "${ac_cv_prog_CXX+set}" = set; then
32047 $as_echo_n "(cached) " >&6
32048else
32049 if test -n "$CXX"; then
32050 ac_cv_prog_CXX="$CXX" # Let the user override the test.
32051else
32052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32053for as_dir in $PATH
32054do
32055 IFS=$as_save_IFS
32056 test -z "$as_dir" && as_dir=.
32057 for ac_exec_ext in '' $ac_executable_extensions; do
32058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32059 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
32060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32061 break 2
32062 fi
32063done
32064done
32065IFS=$as_save_IFS
32066
32067fi
32068fi
32069CXX=$ac_cv_prog_CXX
32070if test -n "$CXX"; then
32071 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
32072$as_echo "$CXX" >&6; }
32073else
32074 { $as_echo "$as_me:$LINENO: result: no" >&5
32075$as_echo "no" >&6; }
32076fi
32077
32078
32079 test -n "$CXX" && break
32080 done
32081fi
32082if test -z "$CXX"; then
32083 ac_ct_CXX=$CXX
32084 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
32085do
32086 # Extract the first word of "$ac_prog", so it can be a program name with args.
32087set dummy $ac_prog; ac_word=$2
32088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32089$as_echo_n "checking for $ac_word... " >&6; }
32090if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
32091 $as_echo_n "(cached) " >&6
32092else
32093 if test -n "$ac_ct_CXX"; then
32094 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32095else
32096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32097for as_dir in $PATH
32098do
32099 IFS=$as_save_IFS
32100 test -z "$as_dir" && as_dir=.
32101 for ac_exec_ext in '' $ac_executable_extensions; do
32102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32103 ac_cv_prog_ac_ct_CXX="$ac_prog"
32104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32105 break 2
32106 fi
32107done
32108done
32109IFS=$as_save_IFS
32110
32111fi
32112fi
32113ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32114if test -n "$ac_ct_CXX"; then
32115 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
32116$as_echo "$ac_ct_CXX" >&6; }
32117else
32118 { $as_echo "$as_me:$LINENO: result: no" >&5
32119$as_echo "no" >&6; }
32120fi
32121
32122
32123 test -n "$ac_ct_CXX" && break
32124done
32125
32126 if test "x$ac_ct_CXX" = x; then
32127 CXX="g++"
32128 else
32129 case $cross_compiling:$ac_tool_warned in
32130yes:)
32131{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
32132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32133ac_tool_warned=yes ;;
32134esac
32135 CXX=$ac_ct_CXX
32136 fi
32137fi
32138
32139 fi
32140fi
32141# Provide some information about the compiler.
32142$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
32143set X $ac_compile
32144ac_compiler=$2
32145{ (ac_try="$ac_compiler --version >&5"
32146case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32149esac
32150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32151$as_echo "$ac_try_echo") >&5
32152 (eval "$ac_compiler --version >&5") 2>&5
32153 ac_status=$?
32154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); }
32156{ (ac_try="$ac_compiler -v >&5"
32157case "(($ac_try" in
32158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32159 *) ac_try_echo=$ac_try;;
32160esac
32161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32162$as_echo "$ac_try_echo") >&5
32163 (eval "$ac_compiler -v >&5") 2>&5
32164 ac_status=$?
32165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }
32167{ (ac_try="$ac_compiler -V >&5"
32168case "(($ac_try" in
32169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32170 *) ac_try_echo=$ac_try;;
32171esac
32172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32173$as_echo "$ac_try_echo") >&5
32174 (eval "$ac_compiler -V >&5") 2>&5
32175 ac_status=$?
32176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }
32178
32179{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
32180$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
32181if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
32182 $as_echo_n "(cached) " >&6
32183else
32184 cat >conftest.$ac_ext <<_ACEOF
32185/* confdefs.h. */
32186_ACEOF
32187cat confdefs.h >>conftest.$ac_ext
32188cat >>conftest.$ac_ext <<_ACEOF
32189/* end confdefs.h. */
32190
32191int
32192main ()
32193{
32194#ifndef __GNUC__
32195 choke me
32196#endif
32197
32198 ;
32199 return 0;
32200}
32201_ACEOF
32202rm -f conftest.$ac_objext
32203if { (ac_try="$ac_compile"
32204case "(($ac_try" in
32205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206 *) ac_try_echo=$ac_try;;
32207esac
32208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32209$as_echo "$ac_try_echo") >&5
32210 (eval "$ac_compile") 2>conftest.er1
32211 ac_status=$?
32212 grep -v '^ *+' conftest.er1 >conftest.err
32213 rm -f conftest.er1
32214 cat conftest.err >&5
32215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); } && {
32217 test -z "$ac_cxx_werror_flag" ||
32218 test ! -s conftest.err
32219 } && test -s conftest.$ac_objext; then
32220 ac_compiler_gnu=yes
32221else
32222 $as_echo "$as_me: failed program was:" >&5
32223sed 's/^/| /' conftest.$ac_ext >&5
32224
32225 ac_compiler_gnu=no
32226fi
32227
32228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32229ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
32230
32231fi
32232{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
32233$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
32234if test $ac_compiler_gnu = yes; then
32235 GXX=yes
32236else
32237 GXX=
32238fi
32239ac_test_CXXFLAGS=${CXXFLAGS+set}
32240ac_save_CXXFLAGS=$CXXFLAGS
32241{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
32242$as_echo_n "checking whether $CXX accepts -g... " >&6; }
32243if test "${ac_cv_prog_cxx_g+set}" = set; then
32244 $as_echo_n "(cached) " >&6
32245else
32246 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
32247 ac_cxx_werror_flag=yes
32248 ac_cv_prog_cxx_g=no
32249 CXXFLAGS="-g"
32250 cat >conftest.$ac_ext <<_ACEOF
32251/* confdefs.h. */
32252_ACEOF
32253cat confdefs.h >>conftest.$ac_ext
32254cat >>conftest.$ac_ext <<_ACEOF
32255/* end confdefs.h. */
32256
32257int
32258main ()
32259{
32260
32261 ;
32262 return 0;
32263}
32264_ACEOF
32265rm -f conftest.$ac_objext
32266if { (ac_try="$ac_compile"
32267case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32270esac
32271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32272$as_echo "$ac_try_echo") >&5
32273 (eval "$ac_compile") 2>conftest.er1
32274 ac_status=$?
32275 grep -v '^ *+' conftest.er1 >conftest.err
32276 rm -f conftest.er1
32277 cat conftest.err >&5
32278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); } && {
32280 test -z "$ac_cxx_werror_flag" ||
32281 test ! -s conftest.err
32282 } && test -s conftest.$ac_objext; then
32283 ac_cv_prog_cxx_g=yes
32284else
32285 $as_echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
32288 CXXFLAGS=""
32289 cat >conftest.$ac_ext <<_ACEOF
32290/* confdefs.h. */
32291_ACEOF
32292cat confdefs.h >>conftest.$ac_ext
32293cat >>conftest.$ac_ext <<_ACEOF
32294/* end confdefs.h. */
32295
32296int
32297main ()
32298{
32299
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 :
32323else
32324 $as_echo "$as_me: failed program was:" >&5
32325sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32328 CXXFLAGS="-g"
32329 cat >conftest.$ac_ext <<_ACEOF
32330/* confdefs.h. */
32331_ACEOF
32332cat confdefs.h >>conftest.$ac_ext
32333cat >>conftest.$ac_ext <<_ACEOF
32334/* end confdefs.h. */
32335
32336int
32337main ()
32338{
32339
32340 ;
32341 return 0;
32342}
32343_ACEOF
32344rm -f conftest.$ac_objext
32345if { (ac_try="$ac_compile"
32346case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32349esac
32350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32351$as_echo "$ac_try_echo") >&5
32352 (eval "$ac_compile") 2>conftest.er1
32353 ac_status=$?
32354 grep -v '^ *+' conftest.er1 >conftest.err
32355 rm -f conftest.er1
32356 cat conftest.err >&5
32357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); } && {
32359 test -z "$ac_cxx_werror_flag" ||
32360 test ! -s conftest.err
32361 } && test -s conftest.$ac_objext; then
32362 ac_cv_prog_cxx_g=yes
32363else
32364 $as_echo "$as_me: failed program was:" >&5
32365sed 's/^/| /' conftest.$ac_ext >&5
32366
32367
32368fi
32369
32370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32371fi
32372
32373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32374fi
32375
32376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32378fi
32379{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
32380$as_echo "$ac_cv_prog_cxx_g" >&6; }
32381if test "$ac_test_CXXFLAGS" = set; then
32382 CXXFLAGS=$ac_save_CXXFLAGS
32383elif test $ac_cv_prog_cxx_g = yes; then
32384 if test "$GXX" = yes; then
32385 CXXFLAGS="-g -O2"
32386 else
32387 CXXFLAGS="-g"
32388 fi
32389else
32390 if test "$GXX" = yes; then
32391 CXXFLAGS="-O2"
32392 else
32393 CXXFLAGS=
32394 fi
32395fi
32396ac_ext=cpp
32397ac_cpp='$CXXCPP $CPPFLAGS'
32398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32401
32402depcc="$CXX" am_compiler_list=
32403
32404{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32405$as_echo_n "checking dependency style of $depcc... " >&6; }
32406if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
32407 $as_echo_n "(cached) " >&6
32408else
32409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32410 # We make a subdir and do the tests there. Otherwise we can end up
32411 # making bogus files that we don't know about and never remove. For
32412 # instance it was reported that on HP-UX the gcc test will end up
32413 # making a dummy file named `D' -- because `-MD' means `put the output
32414 # in D'.
32415 mkdir conftest.dir
32416 # Copy depcomp to subdir because otherwise we won't find it if we're
32417 # using a relative directory.
32418 cp "$am_depcomp" conftest.dir
32419 cd conftest.dir
32420 # We will build objects and dependencies in a subdirectory because
32421 # it helps to detect inapplicable dependency modes. For instance
32422 # both Tru64's cc and ICC support -MD to output dependencies as a
32423 # side effect of compilation, but ICC will put the dependencies in
32424 # the current directory while Tru64 will put them in the object
32425 # directory.
32426 mkdir sub
32427
32428 am_cv_CXX_dependencies_compiler_type=none
32429 if test "$am_compiler_list" = ""; then
32430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32431 fi
32432 am__universal=false
32433 case " $depcc " in #(
32434 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32435 esac
32436
32437 for depmode in $am_compiler_list; do
32438 # Setup a source with many dependencies, because some compilers
32439 # like to wrap large dependency lists on column 80 (with \), and
32440 # we should not choose a depcomp mode which is confused by this.
32441 #
32442 # We need to recreate these files for each test, as the compiler may
32443 # overwrite some of them when testing with obscure command lines.
32444 # This happens at least with the AIX C compiler.
32445 : > sub/conftest.c
32446 for i in 1 2 3 4 5 6; do
32447 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
32449 # Solaris 8's {/usr,}/bin/sh.
32450 touch sub/conftst$i.h
32451 done
32452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32453
32454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
32455 # mode. It turns out that the SunPro C++ compiler does not properly
32456 # handle `-M -o', and we need to detect this. Also, some Intel
32457 # versions had trouble with output in subdirs
32458 am__obj=sub/conftest.${OBJEXT-o}
32459 am__minus_obj="-o $am__obj"
32460 case $depmode in
32461 gcc)
32462 # This depmode causes a compiler race in universal mode.
32463 test "$am__universal" = false || continue
32464 ;;
32465 nosideeffect)
32466 # after this tag, mechanisms are not by side-effect, so they'll
32467 # only be used when explicitly requested
32468 if test "x$enable_dependency_tracking" = xyes; then
32469 continue
32470 else
32471 break
32472 fi
32473 ;;
32474 msvisualcpp | msvcmsys)
32475 # This compiler won't grok `-c -o', but also, the minuso test has
32476 # not run yet. These depmodes are late enough in the game, and
32477 # so weak that their functioning should not be impacted.
32478 am__obj=conftest.${OBJEXT-o}
32479 am__minus_obj=
32480 ;;
32481 none) break ;;
32482 esac
32483 if depmode=$depmode \
32484 source=sub/conftest.c object=$am__obj \
32485 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32486 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32487 >/dev/null 2>conftest.err &&
32488 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32490 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32492 # icc doesn't choke on unknown options, it will just issue warnings
32493 # or remarks (even with -Werror). So we grep stderr for any message
32494 # that says an option was ignored or not supported.
32495 # When given -MP, icc 7.0 and 7.1 complain thusly:
32496 # icc: Command line warning: ignoring option '-M'; no argument required
32497 # The diagnosis changed in icc 8.0:
32498 # icc: Command line remark: option '-MP' not supported
32499 if (grep 'ignoring option' conftest.err ||
32500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32501 am_cv_CXX_dependencies_compiler_type=$depmode
32502 break
32503 fi
32504 fi
32505 done
32506
32507 cd ..
32508 rm -rf conftest.dir
32509else
32510 am_cv_CXX_dependencies_compiler_type=none
32511fi
32512
32513fi
32514{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
32515$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32516CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32517
32518 if
32519 test "x$enable_dependency_tracking" != xno \
32520 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32521 am__fastdepCXX_TRUE=
32522 am__fastdepCXX_FALSE='#'
32523else
32524 am__fastdepCXX_TRUE='#'
32525 am__fastdepCXX_FALSE=
32526fi
32527
32528
32529 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
32530$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
32531if test "${ac_cv_cxx_have_bool+set}" = set; then
32532 $as_echo_n "(cached) " >&6
32533else
32534
32535 ac_ext=cpp
32536ac_cpp='$CXXCPP $CPPFLAGS'
32537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540
32541 cat >conftest.$ac_ext <<_ACEOF
32542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547
32548int f(int x){return 1;}
32549int f(char x){return 1;}
32550int f(bool x){return 1;}
32551
32552int
32553main ()
32554{
32555bool b = true; return f(b);
32556 ;
32557 return 0;
32558}
32559_ACEOF
32560rm -f conftest.$ac_objext
32561if { (ac_try="$ac_compile"
32562case "(($ac_try" in
32563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564 *) ac_try_echo=$ac_try;;
32565esac
32566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32567$as_echo "$ac_try_echo") >&5
32568 (eval "$ac_compile") 2>conftest.er1
32569 ac_status=$?
32570 grep -v '^ *+' conftest.er1 >conftest.err
32571 rm -f conftest.er1
32572 cat conftest.err >&5
32573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); } && {
32575 test -z "$ac_cxx_werror_flag" ||
32576 test ! -s conftest.err
32577 } && test -s conftest.$ac_objext; then
32578 ac_cv_cxx_have_bool=yes
32579else
32580 $as_echo "$as_me: failed program was:" >&5
32581sed 's/^/| /' conftest.$ac_ext >&5
32582
32583 ac_cv_cxx_have_bool=no
32584fi
32585
32586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32587 ac_ext=cpp
32588ac_cpp='$CXXCPP $CPPFLAGS'
32589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32592
32593
32594fi
32595{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
32596$as_echo "$ac_cv_cxx_have_bool" >&6; }
32597if test "$ac_cv_cxx_have_bool" = yes; then
32598
32599cat >>confdefs.h <<\_ACEOF
32600#define HAVE_BOOL /**/
32601_ACEOF
32602
32603fi
32604
32605 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32606$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
32607if test "${ac_cv_cxx_have_namespaces+set}" = set; then
32608 $as_echo_n "(cached) " >&6
32609else
32610
32611 ac_ext=cpp
32612ac_cpp='$CXXCPP $CPPFLAGS'
32613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32616
32617 cat >conftest.$ac_ext <<_ACEOF
32618/* confdefs.h. */
32619_ACEOF
32620cat confdefs.h >>conftest.$ac_ext
32621cat >>conftest.$ac_ext <<_ACEOF
32622/* end confdefs.h. */
32623namespace Outer { namespace Inner { int i = 0; }}
32624int
32625main ()
32626{
32627using namespace Outer::Inner; return i;
32628 ;
32629 return 0;
32630}
32631_ACEOF
32632rm -f conftest.$ac_objext
32633if { (ac_try="$ac_compile"
32634case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32637esac
32638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32639$as_echo "$ac_try_echo") >&5
32640 (eval "$ac_compile") 2>conftest.er1
32641 ac_status=$?
32642 grep -v '^ *+' conftest.er1 >conftest.err
32643 rm -f conftest.er1
32644 cat conftest.err >&5
32645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } && {
32647 test -z "$ac_cxx_werror_flag" ||
32648 test ! -s conftest.err
32649 } && test -s conftest.$ac_objext; then
32650 ac_cv_cxx_have_namespaces=yes
32651else
32652 $as_echo "$as_me: failed program was:" >&5
32653sed 's/^/| /' conftest.$ac_ext >&5
32654
32655 ac_cv_cxx_have_namespaces=no
32656fi
32657
32658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32659 ac_ext=cpp
32660ac_cpp='$CXXCPP $CPPFLAGS'
32661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32664
32665
32666fi
32667{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
32668$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
32669if test "$ac_cv_cxx_have_namespaces" = yes; then
32670
32671cat >>confdefs.h <<\_ACEOF
32672#define HAVE_NAMESPACES /**/
32673_ACEOF
32674
32675fi
32676
32677 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
32678$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
32679if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
32680 $as_echo_n "(cached) " >&6
32681else
32682
32683 ac_ext=cpp
32684ac_cpp='$CXXCPP $CPPFLAGS'
32685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32688
32689 cat >conftest.$ac_ext <<_ACEOF
32690/* confdefs.h. */
32691_ACEOF
32692cat confdefs.h >>conftest.$ac_ext
32693cat >>conftest.$ac_ext <<_ACEOF
32694/* end confdefs.h. */
32695#include <iostream>
32696 std::istream& is = std::cin;
32697
32698int
32699main ()
32700{
32701return 0;
32702 ;
32703 return 0;
32704}
32705_ACEOF
32706rm -f conftest.$ac_objext
32707if { (ac_try="$ac_compile"
32708case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32711esac
32712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32713$as_echo "$ac_try_echo") >&5
32714 (eval "$ac_compile") 2>conftest.er1
32715 ac_status=$?
32716 grep -v '^ *+' conftest.er1 >conftest.err
32717 rm -f conftest.er1
32718 cat conftest.err >&5
32719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); } && {
32721 test -z "$ac_cxx_werror_flag" ||
32722 test ! -s conftest.err
32723 } && test -s conftest.$ac_objext; then
32724 ac_cv_cxx_have_std_namespace=yes
32725else
32726 $as_echo "$as_me: failed program was:" >&5
32727sed 's/^/| /' conftest.$ac_ext >&5
32728
32729 ac_cv_cxx_have_std_namespace=no
32730fi
32731
32732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733 ac_ext=cpp
32734ac_cpp='$CXXCPP $CPPFLAGS'
32735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32738
32739
32740fi
32741{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
32742$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
32743if test "$ac_cv_cxx_have_std_namespace" = yes; then
32744
32745cat >>confdefs.h <<\_ACEOF
32746#define HAVE_STD_NAMESPACE /**/
32747_ACEOF
32748
32749fi
32750
32751 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
32752$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
32753if test "${ac_cv_cxx_have_std_libs+set}" = set; then
32754 $as_echo_n "(cached) " >&6
32755else
32756
32757
32758 ac_ext=cpp
32759ac_cpp='$CXXCPP $CPPFLAGS'
32760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32763
32764 cat >conftest.$ac_ext <<_ACEOF
32765/* confdefs.h. */
32766_ACEOF
32767cat confdefs.h >>conftest.$ac_ext
32768cat >>conftest.$ac_ext <<_ACEOF
32769/* end confdefs.h. */
32770#include <iostream>
32771#include <map>
32772#include <iomanip>
32773#include <cmath>
32774#ifdef HAVE_NAMESPACES
32775using namespace std;
32776#endif
32777int
32778main ()
32779{
32780return 0;
32781 ;
32782 return 0;
32783}
32784_ACEOF
32785rm -f conftest.$ac_objext
32786if { (ac_try="$ac_compile"
32787case "(($ac_try" in
32788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789 *) ac_try_echo=$ac_try;;
32790esac
32791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32792$as_echo "$ac_try_echo") >&5
32793 (eval "$ac_compile") 2>conftest.er1
32794 ac_status=$?
32795 grep -v '^ *+' conftest.er1 >conftest.err
32796 rm -f conftest.er1
32797 cat conftest.err >&5
32798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); } && {
32800 test -z "$ac_cxx_werror_flag" ||
32801 test ! -s conftest.err
32802 } && test -s conftest.$ac_objext; then
32803 ac_cv_cxx_have_std_libs=yes
32804else
32805 $as_echo "$as_me: failed program was:" >&5
32806sed 's/^/| /' conftest.$ac_ext >&5
32807
32808 ac_cv_cxx_have_std_libs=no
32809fi
32810
32811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32812 ac_ext=cpp
32813ac_cpp='$CXXCPP $CPPFLAGS'
32814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32817
32818
32819fi
32820{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
32821$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
32822if test "$ac_cv_cxx_have_std_libs" = yes; then
32823
32824cat >>confdefs.h <<\_ACEOF
32825#define HAVE_STD_LIBS /**/
32826_ACEOF
32827
32828fi
32829
32830 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
32831$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
32832if test "${ac_cv_cxx_have_lstring+set}" = set; then
32833 $as_echo_n "(cached) " >&6
32834else
32835
32836 ac_ext=cpp
32837ac_cpp='$CXXCPP $CPPFLAGS'
32838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32841
32842 cat >conftest.$ac_ext <<_ACEOF
32843/* confdefs.h. */
32844_ACEOF
32845cat confdefs.h >>conftest.$ac_ext
32846cat >>conftest.$ac_ext <<_ACEOF
32847/* end confdefs.h. */
32848const wchar_t* s=L"wide string";
32849_ACEOF
32850rm -f conftest.$ac_objext
32851if { (ac_try="$ac_compile"
32852case "(($ac_try" in
32853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854 *) ac_try_echo=$ac_try;;
32855esac
32856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32857$as_echo "$ac_try_echo") >&5
32858 (eval "$ac_compile") 2>conftest.er1
32859 ac_status=$?
32860 grep -v '^ *+' conftest.er1 >conftest.err
32861 rm -f conftest.er1
32862 cat conftest.err >&5
32863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); } && {
32865 test -z "$ac_cxx_werror_flag" ||
32866 test ! -s conftest.err
32867 } && test -s conftest.$ac_objext; then
32868 ac_cv_cxx_have_lstring=yes
32869else
32870 $as_echo "$as_me: failed program was:" >&5
32871sed 's/^/| /' conftest.$ac_ext >&5
32872
32873 ac_cv_cxx_have_lstring=no
32874fi
32875
32876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32877 ac_ext=cpp
32878ac_cpp='$CXXCPP $CPPFLAGS'
32879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32882
32883
32884fi
32885{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
32886$as_echo "$ac_cv_cxx_have_lstring" >&6; }
32887if test "$ac_cv_cxx_have_lstring" = yes; then
32888
32889cat >>confdefs.h <<\_ACEOF
32890#define HAVE_LSTRING /**/
32891_ACEOF
32892
32893fi
32894
32895
32896 OPENMP_CXXFLAGS=
32897 # Check whether --enable-openmp was given.
32898if test "${enable_openmp+set}" = set; then
32899 enableval=$enable_openmp;
32900fi
32901
32902 if test "$enable_openmp" != no; then
32903 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
32904$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
32905if test "${ac_cv_prog_cxx_openmp+set}" = set; then
32906 $as_echo_n "(cached) " >&6
32907else
32908 cat >conftest.$ac_ext <<_ACEOF
32909
32910#ifndef _OPENMP
32911 choke me
32912#endif
32913#include <omp.h>
32914int main () { return omp_get_num_threads (); }
32915
32916_ACEOF
32917rm -f conftest.$ac_objext conftest$ac_exeext
32918if { (ac_try="$ac_link"
32919case "(($ac_try" in
32920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921 *) ac_try_echo=$ac_try;;
32922esac
32923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32924$as_echo "$ac_try_echo") >&5
32925 (eval "$ac_link") 2>conftest.er1
32926 ac_status=$?
32927 grep -v '^ *+' conftest.er1 >conftest.err
32928 rm -f conftest.er1
32929 cat conftest.err >&5
32930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931 (exit $ac_status); } && {
32932 test -z "$ac_cxx_werror_flag" ||
32933 test ! -s conftest.err
32934 } && test -s conftest$ac_exeext && {
32935 test "$cross_compiling" = yes ||
32936 $as_test_x conftest$ac_exeext
32937 }; then
32938 ac_cv_prog_cxx_openmp='none needed'
32939else
32940 $as_echo "$as_me: failed program was:" >&5
32941sed 's/^/| /' conftest.$ac_ext >&5
32942
32943 ac_cv_prog_cxx_openmp='unsupported'
32944 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
32945 ac_save_CXXFLAGS=$CXXFLAGS
32946 CXXFLAGS="$CXXFLAGS $ac_option"
32947 cat >conftest.$ac_ext <<_ACEOF
32948
32949#ifndef _OPENMP
32950 choke me
32951#endif
32952#include <omp.h>
32953int main () { return omp_get_num_threads (); }
32954
32955_ACEOF
32956rm -f conftest.$ac_objext conftest$ac_exeext
32957if { (ac_try="$ac_link"
32958case "(($ac_try" in
32959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32960 *) ac_try_echo=$ac_try;;
32961esac
32962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32963$as_echo "$ac_try_echo") >&5
32964 (eval "$ac_link") 2>conftest.er1
32965 ac_status=$?
32966 grep -v '^ *+' conftest.er1 >conftest.err
32967 rm -f conftest.er1
32968 cat conftest.err >&5
32969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); } && {
32971 test -z "$ac_cxx_werror_flag" ||
32972 test ! -s conftest.err
32973 } && test -s conftest$ac_exeext && {
32974 test "$cross_compiling" = yes ||
32975 $as_test_x conftest$ac_exeext
32976 }; then
32977 ac_cv_prog_cxx_openmp=$ac_option
32978else
32979 $as_echo "$as_me: failed program was:" >&5
32980sed 's/^/| /' conftest.$ac_ext >&5
32981
32982
32983fi
32984
32985rm -rf conftest.dSYM
32986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32987 conftest$ac_exeext conftest.$ac_ext
32988 CXXFLAGS=$ac_save_CXXFLAGS
32989 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
32990 break
32991 fi
32992 done
32993fi
32994
32995rm -rf conftest.dSYM
32996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32997 conftest$ac_exeext conftest.$ac_ext
32998fi
32999{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
33000$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
33001 case $ac_cv_prog_cxx_openmp in #(
33002 "none needed" | unsupported)
33003 ;; #(
33004 *)
33005 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
33006 esac
33007 fi
33008
33009
33010 ac_ext=c
33011ac_cpp='$CPP $CPPFLAGS'
33012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33014ac_compiler_gnu=$ac_cv_c_compiler_gnu
33015
33016
33017 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
33018$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
33019 if \
33020 test $ac_cv_cxx_have_bool = 'yes' && \
33021 test $ac_cv_cxx_have_lstring = 'yes' && \
33022 test $ac_cv_cxx_have_namespaces = 'yes' && \
33023 test $ac_cv_cxx_have_std_libs = 'yes' && \
33024 test $ac_cv_cxx_have_std_namespace = 'yes'; then
33025 have_magick_plus_plus='yes'
33026 else
33027 have_magick_plus_plus='no (failed tests)'
33028 fi
33029 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
33030$as_echo "$have_magick_plus_plus" >&6; }
33031 LIBS="$OLIBS"
33032fi
33033 if test "$have_magick_plus_plus" = 'yes'; then
33034 WITH_MAGICK_PLUS_PLUS_TRUE=
33035 WITH_MAGICK_PLUS_PLUS_FALSE='#'
33036else
33037 WITH_MAGICK_PLUS_PLUS_TRUE='#'
33038 WITH_MAGICK_PLUS_PLUS_FALSE=
33039fi
33040
33041
33042# Only check for delegate libraries in subdirectories if requested.
33043if test "$enable_delegate_build" != 'no'; then
33044 # Check for delegate sub-directories and add -I & -L options as required.
33045 # This presumes that delegates are installed as detailed in the ImageMagick
33046 # README. If delegates are installed in a standard location where the
33047 # compiler will automatically find them then these options should not be
33048 # required.
33049
33050 #
33051 # Most delegates have includes in the same directory as the library, but not all...
33052 #
33053 # Includes
33054 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
33055 if test -d "$builddir/$dir"; then
33056 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
33057 else
33058 if test -d "$srcdirfull/$dir"; then
33059 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
33060 fi
33061 fi
33062 done
33063
33064 # Libraries
33065 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
33066 if test -d "$builddir/$dir/.libs"; then
33067 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
33068 else
33069 if test -d "$srcdirfull/$dir/.libs"; then
33070 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
33071 fi
33072 fi
33073 if test -d "$builddir/$dir"; then
33074 LDFLAGS="$LDFLAGS -L$builddir/$dir"
33075 else
33076 if test -d "$srcdirfull/$dir"; then
33077 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
33078 fi
33079 fi
33080 done
33081fi
33082
33083# Assume that delegate headers reside under same directory as ImageMagick
33084# installation prefix.
33085MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
33086
33087#
33088# Find the X11 RGB database
33089#
33090{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
33091$as_echo_n "checking for X11 configure files... " >&6; }
33092if test "${im_cv_x_configure+set}" = set; then
33093 $as_echo_n "(cached) " >&6
33094else
33095 # Look for the header file in a standard set of common directories.
33096# Check X11 before X11Rn because it is often a symlink to the current release.
33097 for ac_dir in \
33098 /lib/usr/lib/X11 \
33099 /usr/X11/lib \
33100 /usr/X11R4/lib \
33101 /usr/X11R5/lib \
33102 /usr/X11R6/lib \
33103 /usr/X11R7/lib \
33104 /usr/X386/lib \
33105 /usr/XFree86/lib/X11 \
33106 /usr/athena/lib \
33107 /usr/lib \
33108 /usr/lib/X11 \
33109 /usr/lib/X11R4 \
33110 /usr/lib/X11R5 \
33111 /usr/lib/X11R6 \
33112 /usr/lib/X11R7 \
33113 /usr/local/X11/lib \
33114 /usr/local/X11R4/lib \
33115 /usr/local/X11R5/lib \
33116 /usr/local/X11R6/lib \
33117 /usr/local/lib \
33118 /usr/local/lib/X11 \
33119 /usr/local/lib/X11R4 \
33120 /usr/local/lib/X11R5 \
33121 /usr/local/lib/X11R6 \
33122 /usr/local/lib/X11R7 \
33123 /usr/local/x11r5/lib \
33124 /usr/lpp/Xamples/lib \
33125 /usr/openwin/lib \
33126 /usr/openwin/share/lib \
33127 /usr/unsupported/lib \
33128 /usr/x386/lib \
33129 ; do
33130 if test -f "$ac_dir/X11/rgb.txt"; then
33131 im_cv_x_configure="$ac_dir/X11/"
33132 break
33133 elif test -f "$ac_dir/rgb.txt"; then
33134 im_cv_x_configure="$ac_dir/"
33135 break
33136 fi
33137
33138 done
33139fi
33140{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
33141$as_echo "$im_cv_x_configure" >&6; }
33142X11_CONFIGURE_PATH="$im_cv_x_configure"
33143case "${build_os}" in
33144 mingw* )
33145 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
33146 ;;
33147esac
33148
33149cat >>confdefs.h <<_ACEOF
33150#define X11_CONFIGURE_PATH "$X11ConfigurePath"
33151_ACEOF
33152
33153
33154#
33155# Find OpenMP library
33156#
33157GOMP_LIBS=''
33158if test "$enable_openmp" != 'no'; then
33159 if test "${GCC}" = "yes"; then
33160 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
33161$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
33162if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
33163 $as_echo_n "(cached) " >&6
33164else
33165 ac_check_lib_save_LIBS=$LIBS
33166LIBS="-lgomp $LIBS"
33167cat >conftest.$ac_ext <<_ACEOF
33168/* confdefs.h. */
33169_ACEOF
33170cat confdefs.h >>conftest.$ac_ext
33171cat >>conftest.$ac_ext <<_ACEOF
33172/* end confdefs.h. */
33173
33174/* Override any GCC internal prototype to avoid an error.
33175 Use char because int might match the return type of a GCC
33176 builtin and then its argument prototype would still apply. */
33177#ifdef __cplusplus
33178extern "C"
33179#endif
33180char GOMP_parallel_start ();
33181int
33182main ()
33183{
33184return GOMP_parallel_start ();
33185 ;
33186 return 0;
33187}
33188_ACEOF
33189rm -f conftest.$ac_objext conftest$ac_exeext
33190if { (ac_try="$ac_link"
33191case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33194esac
33195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33196$as_echo "$ac_try_echo") >&5
33197 (eval "$ac_link") 2>conftest.er1
33198 ac_status=$?
33199 grep -v '^ *+' conftest.er1 >conftest.err
33200 rm -f conftest.er1
33201 cat conftest.err >&5
33202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); } && {
33204 test -z "$ac_c_werror_flag" ||
33205 test ! -s conftest.err
33206 } && test -s conftest$ac_exeext && {
33207 test "$cross_compiling" = yes ||
33208 $as_test_x conftest$ac_exeext
33209 }; then
33210 ac_cv_lib_gomp_GOMP_parallel_start=yes
33211else
33212 $as_echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_cv_lib_gomp_GOMP_parallel_start=no
33216fi
33217
33218rm -rf conftest.dSYM
33219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33220 conftest$ac_exeext conftest.$ac_ext
33221LIBS=$ac_check_lib_save_LIBS
33222fi
33223{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
33224$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
33225if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
33226 GOMP_LIBS="-lgomp"
33227fi
33228 # gcc
33229 else
33230 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
33231$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
33232if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
33233 $as_echo_n "(cached) " >&6
33234else
33235 ac_check_lib_save_LIBS=$LIBS
33236LIBS="-lmtsk $LIBS"
33237cat >conftest.$ac_ext <<_ACEOF
33238/* confdefs.h. */
33239_ACEOF
33240cat confdefs.h >>conftest.$ac_ext
33241cat >>conftest.$ac_ext <<_ACEOF
33242/* end confdefs.h. */
33243
33244/* Override any GCC internal prototype to avoid an error.
33245 Use char because int might match the return type of a GCC
33246 builtin and then its argument prototype would still apply. */
33247#ifdef __cplusplus
33248extern "C"
33249#endif
33250char sunw_mp_register_warn ();
33251int
33252main ()
33253{
33254return sunw_mp_register_warn ();
33255 ;
33256 return 0;
33257}
33258_ACEOF
33259rm -f conftest.$ac_objext conftest$ac_exeext
33260if { (ac_try="$ac_link"
33261case "(($ac_try" in
33262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33263 *) ac_try_echo=$ac_try;;
33264esac
33265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33266$as_echo "$ac_try_echo") >&5
33267 (eval "$ac_link") 2>conftest.er1
33268 ac_status=$?
33269 grep -v '^ *+' conftest.er1 >conftest.err
33270 rm -f conftest.er1
33271 cat conftest.err >&5
33272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } && {
33274 test -z "$ac_c_werror_flag" ||
33275 test ! -s conftest.err
33276 } && test -s conftest$ac_exeext && {
33277 test "$cross_compiling" = yes ||
33278 $as_test_x conftest$ac_exeext
33279 }; then
33280 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
33281else
33282 $as_echo "$as_me: failed program was:" >&5
33283sed 's/^/| /' conftest.$ac_ext >&5
33284
33285 ac_cv_lib_mtsk_sunw_mp_register_warn=no
33286fi
33287
33288rm -rf conftest.dSYM
33289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33290 conftest$ac_exeext conftest.$ac_ext
33291LIBS=$ac_check_lib_save_LIBS
33292fi
33293{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
33294$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
33295if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
33296 GOMP_LIBS="-lmtsk"
33297fi
33298 # solaris cc
33299 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
33300$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
33301if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
33302 $as_echo_n "(cached) " >&6
33303else
33304 ac_check_lib_save_LIBS=$LIBS
33305LIBS="-lxlsmp $LIBS"
33306cat >conftest.$ac_ext <<_ACEOF
33307/* confdefs.h. */
33308_ACEOF
33309cat confdefs.h >>conftest.$ac_ext
33310cat >>conftest.$ac_ext <<_ACEOF
33311/* end confdefs.h. */
33312
33313/* Override any GCC internal prototype to avoid an error.
33314 Use char because int might match the return type of a GCC
33315 builtin and then its argument prototype would still apply. */
33316#ifdef __cplusplus
33317extern "C"
33318#endif
33319char _xlsmpFlush ();
33320int
33321main ()
33322{
33323return _xlsmpFlush ();
33324 ;
33325 return 0;
33326}
33327_ACEOF
33328rm -f conftest.$ac_objext conftest$ac_exeext
33329if { (ac_try="$ac_link"
33330case "(($ac_try" in
33331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332 *) ac_try_echo=$ac_try;;
33333esac
33334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33335$as_echo "$ac_try_echo") >&5
33336 (eval "$ac_link") 2>conftest.er1
33337 ac_status=$?
33338 grep -v '^ *+' conftest.er1 >conftest.err
33339 rm -f conftest.er1
33340 cat conftest.err >&5
33341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); } && {
33343 test -z "$ac_c_werror_flag" ||
33344 test ! -s conftest.err
33345 } && test -s conftest$ac_exeext && {
33346 test "$cross_compiling" = yes ||
33347 $as_test_x conftest$ac_exeext
33348 }; then
33349 ac_cv_lib_xlsmp__xlsmpFlush=yes
33350else
33351 $as_echo "$as_me: failed program was:" >&5
33352sed 's/^/| /' conftest.$ac_ext >&5
33353
33354 ac_cv_lib_xlsmp__xlsmpFlush=no
33355fi
33356
33357rm -rf conftest.dSYM
33358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33359 conftest$ac_exeext conftest.$ac_ext
33360LIBS=$ac_check_lib_save_LIBS
33361fi
33362{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
33363$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
33364if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
33365 GOMP_LIBS="-lxlsmp"
33366fi
33367 # AIX xlc
33368 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
33369$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
33370if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
33371 $as_echo_n "(cached) " >&6
33372else
33373 ac_check_lib_save_LIBS=$LIBS
33374LIBS="-lmp $LIBS"
33375cat >conftest.$ac_ext <<_ACEOF
33376/* confdefs.h. */
33377_ACEOF
33378cat confdefs.h >>conftest.$ac_ext
33379cat >>conftest.$ac_ext <<_ACEOF
33380/* end confdefs.h. */
33381
33382/* Override any GCC internal prototype to avoid an error.
33383 Use char because int might match the return type of a GCC
33384 builtin and then its argument prototype would still apply. */
33385#ifdef __cplusplus
33386extern "C"
33387#endif
33388char mp_destroy ();
33389int
33390main ()
33391{
33392return mp_destroy ();
33393 ;
33394 return 0;
33395}
33396_ACEOF
33397rm -f conftest.$ac_objext conftest$ac_exeext
33398if { (ac_try="$ac_link"
33399case "(($ac_try" in
33400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401 *) ac_try_echo=$ac_try;;
33402esac
33403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33404$as_echo "$ac_try_echo") >&5
33405 (eval "$ac_link") 2>conftest.er1
33406 ac_status=$?
33407 grep -v '^ *+' conftest.er1 >conftest.err
33408 rm -f conftest.er1
33409 cat conftest.err >&5
33410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); } && {
33412 test -z "$ac_c_werror_flag" ||
33413 test ! -s conftest.err
33414 } && test -s conftest$ac_exeext && {
33415 test "$cross_compiling" = yes ||
33416 $as_test_x conftest$ac_exeext
33417 }; then
33418 ac_cv_lib_mp_mp_destroy=yes
33419else
33420 $as_echo "$as_me: failed program was:" >&5
33421sed 's/^/| /' conftest.$ac_ext >&5
33422
33423 ac_cv_lib_mp_mp_destroy=no
33424fi
33425
33426rm -rf conftest.dSYM
33427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33428 conftest$ac_exeext conftest.$ac_ext
33429LIBS=$ac_check_lib_save_LIBS
33430fi
33431{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
33432$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
33433if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
33434 GOMP_LIBS="-lmp"
33435fi
33436 # SGI IRIX 6.5 MIPSpro C/C++
33437 fi
33438 LIBS="$GOMP_LIBS $LIBS"
33439fi
33440
33441
33442#
33443# Find Posix threads library
33444#
33445THREAD_LIBS=''
33446if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
33447
33448 if test "x$PTHREAD_LIBS" = "x"; then
33449 case "${host_cpu}-${host_os}" in
33450 *-freebsd*)
33451
33452
33453
33454ac_ext=c
33455ac_cpp='$CPP $CPPFLAGS'
33456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33458ac_compiler_gnu=$ac_cv_c_compiler_gnu
33459
33460magick_pthread_lib_ok=no
33461
33462LIB=-lc_r
33463save_LIBS="$LIBS"
33464LIBS="$LIBS $LIB"
33465
33466{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33467$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33468cat >conftest.$ac_ext <<_ACEOF
33469/* confdefs.h. */
33470_ACEOF
33471cat confdefs.h >>conftest.$ac_ext
33472cat >>conftest.$ac_ext <<_ACEOF
33473/* end confdefs.h. */
33474#include <pthread.h>
33475int
33476main ()
33477{
33478 pthread_t th;
33479 pthread_join(th, 0);
33480 pthread_attr_init(0);
33481 pthread_cleanup_push(0, 0);
33482 pthread_create(0,0,0,0);
33483 pthread_cleanup_pop(0);
33484 ;
33485 return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext conftest$ac_exeext
33489if { (ac_try="$ac_link"
33490case "(($ac_try" in
33491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492 *) ac_try_echo=$ac_try;;
33493esac
33494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33495$as_echo "$ac_try_echo") >&5
33496 (eval "$ac_link") 2>conftest.er1
33497 ac_status=$?
33498 grep -v '^ *+' conftest.er1 >conftest.err
33499 rm -f conftest.er1
33500 cat conftest.err >&5
33501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); } && {
33503 test -z "$ac_c_werror_flag" ||
33504 test ! -s conftest.err
33505 } && test -s conftest$ac_exeext && {
33506 test "$cross_compiling" = yes ||
33507 $as_test_x conftest$ac_exeext
33508 }; then
33509 magick_pthread_lib_ok=yes
33510else
33511 $as_echo "$as_me: failed program was:" >&5
33512sed 's/^/| /' conftest.$ac_ext >&5
33513
33514
33515fi
33516
33517rm -rf conftest.dSYM
33518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33519 conftest$ac_exeext conftest.$ac_ext
33520
33521{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33522$as_echo "${magick_pthread_lib_ok}" >&6; }
33523if test "$magick_pthread_lib_ok" = yes
33524then
33525 PTHREAD_LIBS=-lc_r
33526 :
33527else
33528
33529 :
33530fi
33531
33532LIBS="$save_LIBS"
33533
33534ac_ext=c
33535ac_cpp='$CPP $CPPFLAGS'
33536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33538ac_compiler_gnu=$ac_cv_c_compiler_gnu
33539
33540 ;;
33541 esac
33542 fi
33543
33544 for lib in pthread pthreads; do
33545 if test "x$PTHREAD_LIBS" = "x"; then
33546
33547
33548
33549ac_ext=c
33550ac_cpp='$CPP $CPPFLAGS'
33551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33553ac_compiler_gnu=$ac_cv_c_compiler_gnu
33554
33555magick_pthread_lib_ok=no
33556
33557LIB=-l$lib
33558save_LIBS="$LIBS"
33559LIBS="$LIBS $LIB"
33560
33561{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33562$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33563cat >conftest.$ac_ext <<_ACEOF
33564/* confdefs.h. */
33565_ACEOF
33566cat confdefs.h >>conftest.$ac_ext
33567cat >>conftest.$ac_ext <<_ACEOF
33568/* end confdefs.h. */
33569#include <pthread.h>
33570int
33571main ()
33572{
33573 pthread_t th;
33574 pthread_join(th, 0);
33575 pthread_attr_init(0);
33576 pthread_cleanup_push(0, 0);
33577 pthread_create(0,0,0,0);
33578 pthread_cleanup_pop(0);
33579 ;
33580 return 0;
33581}
33582_ACEOF
33583rm -f conftest.$ac_objext conftest$ac_exeext
33584if { (ac_try="$ac_link"
33585case "(($ac_try" in
33586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33587 *) ac_try_echo=$ac_try;;
33588esac
33589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33590$as_echo "$ac_try_echo") >&5
33591 (eval "$ac_link") 2>conftest.er1
33592 ac_status=$?
33593 grep -v '^ *+' conftest.er1 >conftest.err
33594 rm -f conftest.er1
33595 cat conftest.err >&5
33596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); } && {
33598 test -z "$ac_c_werror_flag" ||
33599 test ! -s conftest.err
33600 } && test -s conftest$ac_exeext && {
33601 test "$cross_compiling" = yes ||
33602 $as_test_x conftest$ac_exeext
33603 }; then
33604 magick_pthread_lib_ok=yes
33605else
33606 $as_echo "$as_me: failed program was:" >&5
33607sed 's/^/| /' conftest.$ac_ext >&5
33608
33609
33610fi
33611
33612rm -rf conftest.dSYM
33613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33614 conftest$ac_exeext conftest.$ac_ext
33615
33616{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33617$as_echo "${magick_pthread_lib_ok}" >&6; }
33618if test "$magick_pthread_lib_ok" = yes
33619then
33620 PTHREAD_LIBS=-l$lib
33621 :
33622else
33623
33624 :
33625fi
33626
33627LIBS="$save_LIBS"
33628
33629ac_ext=c
33630ac_cpp='$CPP $CPPFLAGS'
33631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33633ac_compiler_gnu=$ac_cv_c_compiler_gnu
33634
33635
33636 fi
33637 done
33638
33639 THREAD_LIBS="$PTHREAD_LIBS"
33640 LIBS="$LIBS $THREAD_LIBS"
33641fi
33642
33643
33644#
33645# Check for umem.
33646#
33647have_umem='no'
33648UMEM_LIBS=''
33649if test "$with_umem" != 'no'; then
33650 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
33651$as_echo_n "checking for UMEM support ... " >&6; }
33652 { $as_echo "$as_me:$LINENO: result: " >&5
33653$as_echo "" >&6; }
33654 failed=0
33655 passed=0
33656 if test "${ac_cv_header_umem_h+set}" = set; then
33657 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33658$as_echo_n "checking for umem.h... " >&6; }
33659if test "${ac_cv_header_umem_h+set}" = set; then
33660 $as_echo_n "(cached) " >&6
33661fi
33662{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33663$as_echo "$ac_cv_header_umem_h" >&6; }
33664else
33665 # Is the header compilable?
33666{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
33667$as_echo_n "checking umem.h usability... " >&6; }
33668cat >conftest.$ac_ext <<_ACEOF
33669/* confdefs.h. */
33670_ACEOF
33671cat confdefs.h >>conftest.$ac_ext
33672cat >>conftest.$ac_ext <<_ACEOF
33673/* end confdefs.h. */
33674$ac_includes_default
33675#include <umem.h>
33676_ACEOF
33677rm -f conftest.$ac_objext
33678if { (ac_try="$ac_compile"
33679case "(($ac_try" in
33680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33681 *) ac_try_echo=$ac_try;;
33682esac
33683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33684$as_echo "$ac_try_echo") >&5
33685 (eval "$ac_compile") 2>conftest.er1
33686 ac_status=$?
33687 grep -v '^ *+' conftest.er1 >conftest.err
33688 rm -f conftest.er1
33689 cat conftest.err >&5
33690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); } && {
33692 test -z "$ac_c_werror_flag" ||
33693 test ! -s conftest.err
33694 } && test -s conftest.$ac_objext; then
33695 ac_header_compiler=yes
33696else
33697 $as_echo "$as_me: failed program was:" >&5
33698sed 's/^/| /' conftest.$ac_ext >&5
33699
33700 ac_header_compiler=no
33701fi
33702
33703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33704{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33705$as_echo "$ac_header_compiler" >&6; }
33706
33707# Is the header present?
33708{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
33709$as_echo_n "checking umem.h presence... " >&6; }
33710cat >conftest.$ac_ext <<_ACEOF
33711/* confdefs.h. */
33712_ACEOF
33713cat confdefs.h >>conftest.$ac_ext
33714cat >>conftest.$ac_ext <<_ACEOF
33715/* end confdefs.h. */
33716#include <umem.h>
33717_ACEOF
33718if { (ac_try="$ac_cpp conftest.$ac_ext"
33719case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33722esac
33723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33724$as_echo "$ac_try_echo") >&5
33725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33726 ac_status=$?
33727 grep -v '^ *+' conftest.er1 >conftest.err
33728 rm -f conftest.er1
33729 cat conftest.err >&5
33730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); } >/dev/null && {
33732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33733 test ! -s conftest.err
33734 }; then
33735 ac_header_preproc=yes
33736else
33737 $as_echo "$as_me: failed program was:" >&5
33738sed 's/^/| /' conftest.$ac_ext >&5
33739
33740 ac_header_preproc=no
33741fi
33742
33743rm -f conftest.err conftest.$ac_ext
33744{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33745$as_echo "$ac_header_preproc" >&6; }
33746
33747# So? What about this header?
33748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33749 yes:no: )
33750 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
33751$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33752 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
33753$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
33754 ac_header_preproc=yes
33755 ;;
33756 no:yes:* )
33757 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
33758$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
33759 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
33760$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
33761 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
33762$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
33763 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
33764$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
33765 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
33766$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
33767 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
33768$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
33769 ( cat <<\_ASBOX
33770## ----------------------------------------- ##
33771## Report this to http://www.imagemagick.org ##
33772## ----------------------------------------- ##
33773_ASBOX
33774 ) | sed "s/^/$as_me: WARNING: /" >&2
33775 ;;
33776esac
33777{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33778$as_echo_n "checking for umem.h... " >&6; }
33779if test "${ac_cv_header_umem_h+set}" = set; then
33780 $as_echo_n "(cached) " >&6
33781else
33782 ac_cv_header_umem_h=$ac_header_preproc
33783fi
33784{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33785$as_echo "$ac_cv_header_umem_h" >&6; }
33786
33787fi
33788if test "x$ac_cv_header_umem_h" = x""yes; then
33789 passed=`expr $passed + 1`
33790else
33791 failed=`expr $failed + 1`
33792fi
33793
33794
33795 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
33796$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
33797if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
33798 $as_echo_n "(cached) " >&6
33799else
33800 ac_check_lib_save_LIBS=$LIBS
33801LIBS="-lumem $LIBS"
33802cat >conftest.$ac_ext <<_ACEOF
33803/* confdefs.h. */
33804_ACEOF
33805cat confdefs.h >>conftest.$ac_ext
33806cat >>conftest.$ac_ext <<_ACEOF
33807/* end confdefs.h. */
33808
33809/* Override any GCC internal prototype to avoid an error.
33810 Use char because int might match the return type of a GCC
33811 builtin and then its argument prototype would still apply. */
33812#ifdef __cplusplus
33813extern "C"
33814#endif
33815char umem_alloc ();
33816int
33817main ()
33818{
33819return umem_alloc ();
33820 ;
33821 return 0;
33822}
33823_ACEOF
33824rm -f conftest.$ac_objext conftest$ac_exeext
33825if { (ac_try="$ac_link"
33826case "(($ac_try" in
33827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828 *) ac_try_echo=$ac_try;;
33829esac
33830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33831$as_echo "$ac_try_echo") >&5
33832 (eval "$ac_link") 2>conftest.er1
33833 ac_status=$?
33834 grep -v '^ *+' conftest.er1 >conftest.err
33835 rm -f conftest.er1
33836 cat conftest.err >&5
33837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); } && {
33839 test -z "$ac_c_werror_flag" ||
33840 test ! -s conftest.err
33841 } && test -s conftest$ac_exeext && {
33842 test "$cross_compiling" = yes ||
33843 $as_test_x conftest$ac_exeext
33844 }; then
33845 ac_cv_lib_umem_umem_alloc=yes
33846else
33847 $as_echo "$as_me: failed program was:" >&5
33848sed 's/^/| /' conftest.$ac_ext >&5
33849
33850 ac_cv_lib_umem_umem_alloc=no
33851fi
33852
33853rm -rf conftest.dSYM
33854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33855 conftest$ac_exeext conftest.$ac_ext
33856LIBS=$ac_check_lib_save_LIBS
33857fi
33858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
33859$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
33860if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
33861 passed=`expr $passed + 1`
33862else
33863 failed=`expr $failed + 1`
33864fi
33865
33866 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
33867$as_echo_n "checking for umem_free in -lumem... " >&6; }
33868if test "${ac_cv_lib_umem_umem_free+set}" = set; then
33869 $as_echo_n "(cached) " >&6
33870else
33871 ac_check_lib_save_LIBS=$LIBS
33872LIBS="-lumem $LIBS"
33873cat >conftest.$ac_ext <<_ACEOF
33874/* confdefs.h. */
33875_ACEOF
33876cat confdefs.h >>conftest.$ac_ext
33877cat >>conftest.$ac_ext <<_ACEOF
33878/* end confdefs.h. */
33879
33880/* Override any GCC internal prototype to avoid an error.
33881 Use char because int might match the return type of a GCC
33882 builtin and then its argument prototype would still apply. */
33883#ifdef __cplusplus
33884extern "C"
33885#endif
33886char umem_free ();
33887int
33888main ()
33889{
33890return umem_free ();
33891 ;
33892 return 0;
33893}
33894_ACEOF
33895rm -f conftest.$ac_objext conftest$ac_exeext
33896if { (ac_try="$ac_link"
33897case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33900esac
33901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33902$as_echo "$ac_try_echo") >&5
33903 (eval "$ac_link") 2>conftest.er1
33904 ac_status=$?
33905 grep -v '^ *+' conftest.er1 >conftest.err
33906 rm -f conftest.er1
33907 cat conftest.err >&5
33908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } && {
33910 test -z "$ac_c_werror_flag" ||
33911 test ! -s conftest.err
33912 } && test -s conftest$ac_exeext && {
33913 test "$cross_compiling" = yes ||
33914 $as_test_x conftest$ac_exeext
33915 }; then
33916 ac_cv_lib_umem_umem_free=yes
33917else
33918 $as_echo "$as_me: failed program was:" >&5
33919sed 's/^/| /' conftest.$ac_ext >&5
33920
33921 ac_cv_lib_umem_umem_free=no
33922fi
33923
33924rm -rf conftest.dSYM
33925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33926 conftest$ac_exeext conftest.$ac_ext
33927LIBS=$ac_check_lib_save_LIBS
33928fi
33929{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
33930$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
33931if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
33932 passed=`expr $passed + 1`
33933else
33934 failed=`expr $failed + 1`
33935fi
33936
33937 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
33938$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
33939 if test $passed -gt 0; then
33940 if test $failed -gt 0; then
33941 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33942$as_echo "no -- some components failed test" >&6; }
33943 have_umem='no (failed tests)'
33944 else
33945 UMEM_LIBS='-lumem'
33946 LIBS="$UMEM_LIBS $LIBS"
33947
33948cat >>confdefs.h <<\_ACEOF
33949#define HasUMEM 1
33950_ACEOF
33951
33952 { $as_echo "$as_me:$LINENO: result: yes" >&5
33953$as_echo "yes" >&6; }
33954 have_umem='yes'
33955 fi
33956 else
33957 { $as_echo "$as_me:$LINENO: result: no" >&5
33958$as_echo "no" >&6; }
33959 fi
33960fi
33961 if test "$have_umem" = 'yes'; then
33962 HasUMEM_TRUE=
33963 HasUMEM_FALSE='#'
33964else
33965 HasUMEM_TRUE='#'
33966 HasUMEM_FALSE=
33967fi
33968
33969
33970
33971#
33972# Add support for ccmalloc memory debugging library if requested
33973#
33974have_ccmalloc='no'
33975CCMALLOC_LIBS=''
33976if test "$enable_ccmalloc" = 'yes'; then
33977 # Extract the first word of "ccmalloc", so it can be a program name with args.
33978set dummy ccmalloc; ac_word=$2
33979{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33980$as_echo_n "checking for $ac_word... " >&6; }
33981if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
33982 $as_echo_n "(cached) " >&6
33983else
33984 case $CCMALLOCDelegate in
33985 [\\/]* | ?:[\\/]*)
33986 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
33987 ;;
33988 *)
33989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33990for as_dir in $PATH
33991do
33992 IFS=$as_save_IFS
33993 test -z "$as_dir" && as_dir=.
33994 for ac_exec_ext in '' $ac_executable_extensions; do
33995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33996 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
33997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33998 break 2
33999 fi
34000done
34001done
34002IFS=$as_save_IFS
34003
34004 ;;
34005esac
34006fi
34007CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
34008if test -n "$CCMALLOCDelegate"; then
34009 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
34010$as_echo "$CCMALLOCDelegate" >&6; }
34011else
34012 { $as_echo "$as_me:$LINENO: result: no" >&5
34013$as_echo "no" >&6; }
34014fi
34015
34016
34017 if test -n "$CCMALLOCDelegate"; then
34018 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
34019 OLIBS="$LIBS"
34020 # Assume that gcc is used with ccmalloc.
34021 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
34022 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
34023$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
34024if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
34025 $as_echo_n "(cached) " >&6
34026else
34027 ac_check_lib_save_LIBS=$LIBS
34028LIBS="-lccmalloc -ldl $LIBS"
34029cat >conftest.$ac_ext <<_ACEOF
34030/* confdefs.h. */
34031_ACEOF
34032cat confdefs.h >>conftest.$ac_ext
34033cat >>conftest.$ac_ext <<_ACEOF
34034/* end confdefs.h. */
34035
34036/* Override any GCC internal prototype to avoid an error.
34037 Use char because int might match the return type of a GCC
34038 builtin and then its argument prototype would still apply. */
34039#ifdef __cplusplus
34040extern "C"
34041#endif
34042char ccmalloc_malloc ();
34043int
34044main ()
34045{
34046return ccmalloc_malloc ();
34047 ;
34048 return 0;
34049}
34050_ACEOF
34051rm -f conftest.$ac_objext conftest$ac_exeext
34052if { (ac_try="$ac_link"
34053case "(($ac_try" in
34054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34055 *) ac_try_echo=$ac_try;;
34056esac
34057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34058$as_echo "$ac_try_echo") >&5
34059 (eval "$ac_link") 2>conftest.er1
34060 ac_status=$?
34061 grep -v '^ *+' conftest.er1 >conftest.err
34062 rm -f conftest.er1
34063 cat conftest.err >&5
34064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } && {
34066 test -z "$ac_c_werror_flag" ||
34067 test ! -s conftest.err
34068 } && test -s conftest$ac_exeext && {
34069 test "$cross_compiling" = yes ||
34070 $as_test_x conftest$ac_exeext
34071 }; then
34072 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
34073else
34074 $as_echo "$as_me: failed program was:" >&5
34075sed 's/^/| /' conftest.$ac_ext >&5
34076
34077 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
34078fi
34079
34080rm -rf conftest.dSYM
34081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34082 conftest$ac_exeext conftest.$ac_ext
34083LIBS=$ac_check_lib_save_LIBS
34084fi
34085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
34086$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
34087if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
34088 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
34089fi
34090
34091 if test -n "$CCMALLOC_LIBS"; then
34092 LIBS="$OLIBS"
34093 LIBS="$LIBS $CCMALLOC_LIBS"
34094 have_ccmalloc='yes'
34095 else
34096 LIBS="$OLIBS"
34097 fi
34098 fi
34099fi
34100
34101#
34102# Add support for efence memory debugging library if requested
34103#
34104if test "$enable_efence" = 'yes'; then
34105 EFENCE_LIBS='-lefence'
34106 LIBS="$EFENCE_LIBS $LIBS"
34107fi
34108
34109#
34110# Find math library
34111#
34112MATH_LIBS=''
34113{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
34114$as_echo_n "checking for sqrt in -lm... " >&6; }
34115if test "${ac_cv_lib_m_sqrt+set}" = set; then
34116 $as_echo_n "(cached) " >&6
34117else
34118 ac_check_lib_save_LIBS=$LIBS
34119LIBS="-lm $LIBS"
34120cat >conftest.$ac_ext <<_ACEOF
34121/* confdefs.h. */
34122_ACEOF
34123cat confdefs.h >>conftest.$ac_ext
34124cat >>conftest.$ac_ext <<_ACEOF
34125/* end confdefs.h. */
34126
34127/* Override any GCC internal prototype to avoid an error.
34128 Use char because int might match the return type of a GCC
34129 builtin and then its argument prototype would still apply. */
34130#ifdef __cplusplus
34131extern "C"
34132#endif
34133char sqrt ();
34134int
34135main ()
34136{
34137return sqrt ();
34138 ;
34139 return 0;
34140}
34141_ACEOF
34142rm -f conftest.$ac_objext conftest$ac_exeext
34143if { (ac_try="$ac_link"
34144case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34147esac
34148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34149$as_echo "$ac_try_echo") >&5
34150 (eval "$ac_link") 2>conftest.er1
34151 ac_status=$?
34152 grep -v '^ *+' conftest.er1 >conftest.err
34153 rm -f conftest.er1
34154 cat conftest.err >&5
34155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); } && {
34157 test -z "$ac_c_werror_flag" ||
34158 test ! -s conftest.err
34159 } && test -s conftest$ac_exeext && {
34160 test "$cross_compiling" = yes ||
34161 $as_test_x conftest$ac_exeext
34162 }; then
34163 ac_cv_lib_m_sqrt=yes
34164else
34165 $as_echo "$as_me: failed program was:" >&5
34166sed 's/^/| /' conftest.$ac_ext >&5
34167
34168 ac_cv_lib_m_sqrt=no
34169fi
34170
34171rm -rf conftest.dSYM
34172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34173 conftest$ac_exeext conftest.$ac_ext
34174LIBS=$ac_check_lib_save_LIBS
34175fi
34176{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
34177$as_echo "$ac_cv_lib_m_sqrt" >&6; }
34178if test "x$ac_cv_lib_m_sqrt" = x""yes; then
34179 MATH_LIBS="-lm"
34180fi
34181
34182LIBS="$MATH_LIBS $LIBS"
34183
34184
34185
34186#
34187# Check for BZLIB
34188#
34189
34190
34191# Check whether --with-bzlib was given.
34192if test "${with_bzlib+set}" = set; then
34193 withval=$with_bzlib; with_bzlib=$withval
34194else
34195 with_bzlib='yes'
34196fi
34197
34198
34199if test "$with_bzlib" != 'yes'; then
34200 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
34201fi
34202
34203have_bzlib='no'
34204if test "$with_bzlib" != 'no'; then
34205 BZLIB_LIBS=''
34206 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
34207$as_echo "-------------------------------------------------------------" >&6; }
34208 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
34209$as_echo_n "checking for BZLIB... " >&6; }
34210 { $as_echo "$as_me:$LINENO: result: " >&5
34211$as_echo "" >&6; }
34212 failed=0
34213 passed=0
34214 found_libbz=0
34215 if test "${ac_cv_header_bzlib_h+set}" = set; then
34216 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34217$as_echo_n "checking for bzlib.h... " >&6; }
34218if test "${ac_cv_header_bzlib_h+set}" = set; then
34219 $as_echo_n "(cached) " >&6
34220fi
34221{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34222$as_echo "$ac_cv_header_bzlib_h" >&6; }
34223else
34224 # Is the header compilable?
34225{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
34226$as_echo_n "checking bzlib.h usability... " >&6; }
34227cat >conftest.$ac_ext <<_ACEOF
34228/* confdefs.h. */
34229_ACEOF
34230cat confdefs.h >>conftest.$ac_ext
34231cat >>conftest.$ac_ext <<_ACEOF
34232/* end confdefs.h. */
34233$ac_includes_default
34234#include <bzlib.h>
34235_ACEOF
34236rm -f conftest.$ac_objext
34237if { (ac_try="$ac_compile"
34238case "(($ac_try" in
34239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34240 *) ac_try_echo=$ac_try;;
34241esac
34242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34243$as_echo "$ac_try_echo") >&5
34244 (eval "$ac_compile") 2>conftest.er1
34245 ac_status=$?
34246 grep -v '^ *+' conftest.er1 >conftest.err
34247 rm -f conftest.er1
34248 cat conftest.err >&5
34249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); } && {
34251 test -z "$ac_c_werror_flag" ||
34252 test ! -s conftest.err
34253 } && test -s conftest.$ac_objext; then
34254 ac_header_compiler=yes
34255else
34256 $as_echo "$as_me: failed program was:" >&5
34257sed 's/^/| /' conftest.$ac_ext >&5
34258
34259 ac_header_compiler=no
34260fi
34261
34262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34263{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34264$as_echo "$ac_header_compiler" >&6; }
34265
34266# Is the header present?
34267{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
34268$as_echo_n "checking bzlib.h presence... " >&6; }
34269cat >conftest.$ac_ext <<_ACEOF
34270/* confdefs.h. */
34271_ACEOF
34272cat confdefs.h >>conftest.$ac_ext
34273cat >>conftest.$ac_ext <<_ACEOF
34274/* end confdefs.h. */
34275#include <bzlib.h>
34276_ACEOF
34277if { (ac_try="$ac_cpp conftest.$ac_ext"
34278case "(($ac_try" in
34279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34280 *) ac_try_echo=$ac_try;;
34281esac
34282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34283$as_echo "$ac_try_echo") >&5
34284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34285 ac_status=$?
34286 grep -v '^ *+' conftest.er1 >conftest.err
34287 rm -f conftest.er1
34288 cat conftest.err >&5
34289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); } >/dev/null && {
34291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34292 test ! -s conftest.err
34293 }; then
34294 ac_header_preproc=yes
34295else
34296 $as_echo "$as_me: failed program was:" >&5
34297sed 's/^/| /' conftest.$ac_ext >&5
34298
34299 ac_header_preproc=no
34300fi
34301
34302rm -f conftest.err conftest.$ac_ext
34303{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34304$as_echo "$ac_header_preproc" >&6; }
34305
34306# So? What about this header?
34307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34308 yes:no: )
34309 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34310$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34311 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
34312$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
34313 ac_header_preproc=yes
34314 ;;
34315 no:yes:* )
34316 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
34317$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
34318 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
34319$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
34320 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
34321$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
34322 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
34323$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34324 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
34325$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
34326 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
34327$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
34328 ( cat <<\_ASBOX
34329## ----------------------------------------- ##
34330## Report this to http://www.imagemagick.org ##
34331## ----------------------------------------- ##
34332_ASBOX
34333 ) | sed "s/^/$as_me: WARNING: /" >&2
34334 ;;
34335esac
34336{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34337$as_echo_n "checking for bzlib.h... " >&6; }
34338if test "${ac_cv_header_bzlib_h+set}" = set; then
34339 $as_echo_n "(cached) " >&6
34340else
34341 ac_cv_header_bzlib_h=$ac_header_preproc
34342fi
34343{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34344$as_echo "$ac_cv_header_bzlib_h" >&6; }
34345
34346fi
34347if test "x$ac_cv_header_bzlib_h" = x""yes; then
34348 passed=`expr $passed + 1`
34349else
34350 failed=`expr $failed + 1`
34351fi
34352
34353
34354 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
34355$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
34356if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
34357 $as_echo_n "(cached) " >&6
34358else
34359 ac_check_lib_save_LIBS=$LIBS
34360LIBS="-lbz2 $LIBS"
34361cat >conftest.$ac_ext <<_ACEOF
34362/* confdefs.h. */
34363_ACEOF
34364cat confdefs.h >>conftest.$ac_ext
34365cat >>conftest.$ac_ext <<_ACEOF
34366/* end confdefs.h. */
34367
34368/* Override any GCC internal prototype to avoid an error.
34369 Use char because int might match the return type of a GCC
34370 builtin and then its argument prototype would still apply. */
34371#ifdef __cplusplus
34372extern "C"
34373#endif
34374char BZ2_bzDecompress ();
34375int
34376main ()
34377{
34378return BZ2_bzDecompress ();
34379 ;
34380 return 0;
34381}
34382_ACEOF
34383rm -f conftest.$ac_objext conftest$ac_exeext
34384if { (ac_try="$ac_link"
34385case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34388esac
34389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34390$as_echo "$ac_try_echo") >&5
34391 (eval "$ac_link") 2>conftest.er1
34392 ac_status=$?
34393 grep -v '^ *+' conftest.er1 >conftest.err
34394 rm -f conftest.er1
34395 cat conftest.err >&5
34396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); } && {
34398 test -z "$ac_c_werror_flag" ||
34399 test ! -s conftest.err
34400 } && test -s conftest$ac_exeext && {
34401 test "$cross_compiling" = yes ||
34402 $as_test_x conftest$ac_exeext
34403 }; then
34404 ac_cv_lib_bz2_BZ2_bzDecompress=yes
34405else
34406 $as_echo "$as_me: failed program was:" >&5
34407sed 's/^/| /' conftest.$ac_ext >&5
34408
34409 ac_cv_lib_bz2_BZ2_bzDecompress=no
34410fi
34411
34412rm -rf conftest.dSYM
34413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34414 conftest$ac_exeext conftest.$ac_ext
34415LIBS=$ac_check_lib_save_LIBS
34416fi
34417{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
34418$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
34419if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
34420 found_libbz=`expr $found_libbz + 1`
34421fi
34422
34423 if test "$native_win32_build" = 'yes'; then
34424 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
34425$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
34426if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
34427 $as_echo_n "(cached) " >&6
34428else
34429 ac_check_lib_save_LIBS=$LIBS
34430LIBS="-lbz2 $LIBS"
34431cat >conftest.$ac_ext <<_ACEOF
34432/* confdefs.h. */
34433_ACEOF
34434cat confdefs.h >>conftest.$ac_ext
34435cat >>conftest.$ac_ext <<_ACEOF
34436/* end confdefs.h. */
34437
34438/* Override any GCC internal prototype to avoid an error.
34439 Use char because int might match the return type of a GCC
34440 builtin and then its argument prototype would still apply. */
34441#ifdef __cplusplus
34442extern "C"
34443#endif
34444char _imp__BZ2_decompress ();
34445int
34446main ()
34447{
34448return _imp__BZ2_decompress ();
34449 ;
34450 return 0;
34451}
34452_ACEOF
34453rm -f conftest.$ac_objext conftest$ac_exeext
34454if { (ac_try="$ac_link"
34455case "(($ac_try" in
34456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34457 *) ac_try_echo=$ac_try;;
34458esac
34459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34460$as_echo "$ac_try_echo") >&5
34461 (eval "$ac_link") 2>conftest.er1
34462 ac_status=$?
34463 grep -v '^ *+' conftest.er1 >conftest.err
34464 rm -f conftest.er1
34465 cat conftest.err >&5
34466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); } && {
34468 test -z "$ac_c_werror_flag" ||
34469 test ! -s conftest.err
34470 } && test -s conftest$ac_exeext && {
34471 test "$cross_compiling" = yes ||
34472 $as_test_x conftest$ac_exeext
34473 }; then
34474 ac_cv_lib_bz2__imp__BZ2_decompress=yes
34475else
34476 $as_echo "$as_me: failed program was:" >&5
34477sed 's/^/| /' conftest.$ac_ext >&5
34478
34479 ac_cv_lib_bz2__imp__BZ2_decompress=no
34480fi
34481
34482rm -rf conftest.dSYM
34483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34484 conftest$ac_exeext conftest.$ac_ext
34485LIBS=$ac_check_lib_save_LIBS
34486fi
34487{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
34488$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
34489if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
34490 found_libbz=`expr $found_libbz + 1`
34491fi
34492
34493 fi
34494 if test $found_libbz -gt 0; then
34495 passed=`expr $passed + 1`
34496 else
34497 failed=`expr $failed + 1`
34498 fi
34499 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
34500$as_echo_n "checking if BZLIB package is complete... " >&6; }
34501 if test $passed -gt 0; then
34502 if test $failed -gt 0; then
34503 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
34504$as_echo "no -- some components failed test" >&6; }
34505 have_bzlib='no (failed tests)'
34506 else
34507 BZLIB_LIBS='-lbz2'
34508 LIBS="$BZLIB_LIBS $LIBS"
34509
34510cat >>confdefs.h <<\_ACEOF
34511#define BZLIB_DELEGATE 1
34512_ACEOF
34513
34514 { $as_echo "$as_me:$LINENO: result: yes" >&5
34515$as_echo "yes" >&6; }
34516 have_bzlib='yes'
34517 fi
34518 else
34519 { $as_echo "$as_me:$LINENO: result: no" >&5
34520$as_echo "no" >&6; }
34521 fi
34522fi
34523 if test "$have_bzlib" = 'yes'; then
34524 BZLIB_DELEGATE_TRUE=
34525 BZLIB_DELEGATE_FALSE='#'
34526else
34527 BZLIB_DELEGATE_TRUE='#'
34528 BZLIB_DELEGATE_FALSE=
34529fi
34530
34531
34532
34533#
34534# Find the X11 include and library directories.
34535#
34536IPC_LIBS=''
34537X11_LIBS=''
34538XEXT_LIBS=''
34539XT_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000034540if test "$no_x" = yes; then
34541 # Not all programs may use this symbol, but it does not hurt to define it.
34542
34543cat >>confdefs.h <<\_ACEOF
34544#define X_DISPLAY_MISSING 1
34545_ACEOF
34546
34547 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34548else
34549 if test -n "$x_includes"; then
34550 X_CFLAGS="$X_CFLAGS -I$x_includes"
34551 fi
34552
34553 # It would also be nice to do this for all -L options, not just this one.
34554 if test -n "$x_libraries"; then
34555 X_LIBS="$X_LIBS -L$x_libraries"
34556 # For Solaris; some versions of Sun CC require a space after -R and
34557 # others require no space. Words are not sufficient . . . .
34558 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34559$as_echo_n "checking whether -R must be followed by a space... " >&6; }
34560 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34561 ac_xsave_c_werror_flag=$ac_c_werror_flag
34562 ac_c_werror_flag=yes
34563 cat >conftest.$ac_ext <<_ACEOF
34564/* confdefs.h. */
34565_ACEOF
34566cat confdefs.h >>conftest.$ac_ext
34567cat >>conftest.$ac_ext <<_ACEOF
34568/* end confdefs.h. */
34569
34570int
34571main ()
34572{
34573
34574 ;
34575 return 0;
34576}
34577_ACEOF
34578rm -f conftest.$ac_objext conftest$ac_exeext
34579if { (ac_try="$ac_link"
34580case "(($ac_try" in
34581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582 *) ac_try_echo=$ac_try;;
34583esac
34584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34585$as_echo "$ac_try_echo") >&5
34586 (eval "$ac_link") 2>conftest.er1
34587 ac_status=$?
34588 grep -v '^ *+' conftest.er1 >conftest.err
34589 rm -f conftest.er1
34590 cat conftest.err >&5
34591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } && {
34593 test -z "$ac_c_werror_flag" ||
34594 test ! -s conftest.err
34595 } && test -s conftest$ac_exeext && {
34596 test "$cross_compiling" = yes ||
34597 $as_test_x conftest$ac_exeext
34598 }; then
34599 { $as_echo "$as_me:$LINENO: result: no" >&5
34600$as_echo "no" >&6; }
34601 X_LIBS="$X_LIBS -R$x_libraries"
34602else
34603 $as_echo "$as_me: failed program was:" >&5
34604sed 's/^/| /' conftest.$ac_ext >&5
34605
34606 LIBS="$ac_xsave_LIBS -R $x_libraries"
34607 cat >conftest.$ac_ext <<_ACEOF
34608/* confdefs.h. */
34609_ACEOF
34610cat confdefs.h >>conftest.$ac_ext
34611cat >>conftest.$ac_ext <<_ACEOF
34612/* end confdefs.h. */
34613
34614int
34615main ()
34616{
34617
34618 ;
34619 return 0;
34620}
34621_ACEOF
34622rm -f conftest.$ac_objext conftest$ac_exeext
34623if { (ac_try="$ac_link"
34624case "(($ac_try" in
34625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34626 *) ac_try_echo=$ac_try;;
34627esac
34628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34629$as_echo "$ac_try_echo") >&5
34630 (eval "$ac_link") 2>conftest.er1
34631 ac_status=$?
34632 grep -v '^ *+' conftest.er1 >conftest.err
34633 rm -f conftest.er1
34634 cat conftest.err >&5
34635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); } && {
34637 test -z "$ac_c_werror_flag" ||
34638 test ! -s conftest.err
34639 } && test -s conftest$ac_exeext && {
34640 test "$cross_compiling" = yes ||
34641 $as_test_x conftest$ac_exeext
34642 }; then
34643 { $as_echo "$as_me:$LINENO: result: yes" >&5
34644$as_echo "yes" >&6; }
34645 X_LIBS="$X_LIBS -R $x_libraries"
34646else
34647 $as_echo "$as_me: failed program was:" >&5
34648sed 's/^/| /' conftest.$ac_ext >&5
34649
34650 { $as_echo "$as_me:$LINENO: result: neither works" >&5
34651$as_echo "neither works" >&6; }
34652fi
34653
34654rm -rf conftest.dSYM
34655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34656 conftest$ac_exeext conftest.$ac_ext
34657fi
34658
34659rm -rf conftest.dSYM
34660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34661 conftest$ac_exeext conftest.$ac_ext
34662 ac_c_werror_flag=$ac_xsave_c_werror_flag
34663 LIBS=$ac_xsave_LIBS
34664 fi
34665
34666 # Check for system-dependent libraries X programs must link with.
34667 # Do this before checking for the system-independent R6 libraries
34668 # (-lICE), since we may need -lsocket or whatever for X linking.
34669
34670 if test "$ISC" = yes; then
34671 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34672 else
34673 # Martyn Johnson says this is needed for Ultrix, if the X
34674 # libraries were built with DECnet support. And Karl Berry says
34675 # the Alpha needs dnet_stub (dnet does not exist).
34676 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34677 cat >conftest.$ac_ext <<_ACEOF
34678/* confdefs.h. */
34679_ACEOF
34680cat confdefs.h >>conftest.$ac_ext
34681cat >>conftest.$ac_ext <<_ACEOF
34682/* end confdefs.h. */
34683
34684/* Override any GCC internal prototype to avoid an error.
34685 Use char because int might match the return type of a GCC
34686 builtin and then its argument prototype would still apply. */
34687#ifdef __cplusplus
34688extern "C"
34689#endif
34690char XOpenDisplay ();
34691int
34692main ()
34693{
34694return XOpenDisplay ();
34695 ;
34696 return 0;
34697}
34698_ACEOF
34699rm -f conftest.$ac_objext conftest$ac_exeext
34700if { (ac_try="$ac_link"
34701case "(($ac_try" in
34702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703 *) ac_try_echo=$ac_try;;
34704esac
34705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34706$as_echo "$ac_try_echo") >&5
34707 (eval "$ac_link") 2>conftest.er1
34708 ac_status=$?
34709 grep -v '^ *+' conftest.er1 >conftest.err
34710 rm -f conftest.er1
34711 cat conftest.err >&5
34712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } && {
34714 test -z "$ac_c_werror_flag" ||
34715 test ! -s conftest.err
34716 } && test -s conftest$ac_exeext && {
34717 test "$cross_compiling" = yes ||
34718 $as_test_x conftest$ac_exeext
34719 }; then
34720 :
34721else
34722 $as_echo "$as_me: failed program was:" >&5
34723sed 's/^/| /' conftest.$ac_ext >&5
34724
34725 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34726$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
34727if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34728 $as_echo_n "(cached) " >&6
34729else
34730 ac_check_lib_save_LIBS=$LIBS
34731LIBS="-ldnet $LIBS"
34732cat >conftest.$ac_ext <<_ACEOF
34733/* confdefs.h. */
34734_ACEOF
34735cat confdefs.h >>conftest.$ac_ext
34736cat >>conftest.$ac_ext <<_ACEOF
34737/* end confdefs.h. */
34738
34739/* Override any GCC internal prototype to avoid an error.
34740 Use char because int might match the return type of a GCC
34741 builtin and then its argument prototype would still apply. */
34742#ifdef __cplusplus
34743extern "C"
34744#endif
34745char dnet_ntoa ();
34746int
34747main ()
34748{
34749return dnet_ntoa ();
34750 ;
34751 return 0;
34752}
34753_ACEOF
34754rm -f conftest.$ac_objext conftest$ac_exeext
34755if { (ac_try="$ac_link"
34756case "(($ac_try" in
34757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34758 *) ac_try_echo=$ac_try;;
34759esac
34760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34761$as_echo "$ac_try_echo") >&5
34762 (eval "$ac_link") 2>conftest.er1
34763 ac_status=$?
34764 grep -v '^ *+' conftest.er1 >conftest.err
34765 rm -f conftest.er1
34766 cat conftest.err >&5
34767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); } && {
34769 test -z "$ac_c_werror_flag" ||
34770 test ! -s conftest.err
34771 } && test -s conftest$ac_exeext && {
34772 test "$cross_compiling" = yes ||
34773 $as_test_x conftest$ac_exeext
34774 }; then
34775 ac_cv_lib_dnet_dnet_ntoa=yes
34776else
34777 $as_echo "$as_me: failed program was:" >&5
34778sed 's/^/| /' conftest.$ac_ext >&5
34779
34780 ac_cv_lib_dnet_dnet_ntoa=no
34781fi
34782
34783rm -rf conftest.dSYM
34784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34785 conftest$ac_exeext conftest.$ac_ext
34786LIBS=$ac_check_lib_save_LIBS
34787fi
34788{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34789$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34790if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
34791 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34792fi
34793
34794 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34795 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34796$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
34797if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34798 $as_echo_n "(cached) " >&6
34799else
34800 ac_check_lib_save_LIBS=$LIBS
34801LIBS="-ldnet_stub $LIBS"
34802cat >conftest.$ac_ext <<_ACEOF
34803/* confdefs.h. */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h. */
34808
34809/* Override any GCC internal prototype to avoid an error.
34810 Use char because int might match the return type of a GCC
34811 builtin and then its argument prototype would still apply. */
34812#ifdef __cplusplus
34813extern "C"
34814#endif
34815char dnet_ntoa ();
34816int
34817main ()
34818{
34819return dnet_ntoa ();
34820 ;
34821 return 0;
34822}
34823_ACEOF
34824rm -f conftest.$ac_objext conftest$ac_exeext
34825if { (ac_try="$ac_link"
34826case "(($ac_try" in
34827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34828 *) ac_try_echo=$ac_try;;
34829esac
34830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34831$as_echo "$ac_try_echo") >&5
34832 (eval "$ac_link") 2>conftest.er1
34833 ac_status=$?
34834 grep -v '^ *+' conftest.er1 >conftest.err
34835 rm -f conftest.er1
34836 cat conftest.err >&5
34837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } && {
34839 test -z "$ac_c_werror_flag" ||
34840 test ! -s conftest.err
34841 } && test -s conftest$ac_exeext && {
34842 test "$cross_compiling" = yes ||
34843 $as_test_x conftest$ac_exeext
34844 }; then
34845 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34846else
34847 $as_echo "$as_me: failed program was:" >&5
34848sed 's/^/| /' conftest.$ac_ext >&5
34849
34850 ac_cv_lib_dnet_stub_dnet_ntoa=no
34851fi
34852
34853rm -rf conftest.dSYM
34854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34855 conftest$ac_exeext conftest.$ac_ext
34856LIBS=$ac_check_lib_save_LIBS
34857fi
34858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34859$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34860if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34861 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34862fi
34863
34864 fi
34865fi
34866
34867rm -rf conftest.dSYM
34868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34869 conftest$ac_exeext conftest.$ac_ext
34870 LIBS="$ac_xsave_LIBS"
34871
34872 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34873 # to get the SysV transport functions.
34874 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34875 # needs -lnsl.
34876 # The nsl library prevents programs from opening the X display
34877 # on Irix 5.2, according to T.E. Dickey.
34878 # The functions gethostbyname, getservbyname, and inet_addr are
34879 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34880 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34881$as_echo_n "checking for gethostbyname... " >&6; }
34882if test "${ac_cv_func_gethostbyname+set}" = set; then
34883 $as_echo_n "(cached) " >&6
34884else
34885 cat >conftest.$ac_ext <<_ACEOF
34886/* confdefs.h. */
34887_ACEOF
34888cat confdefs.h >>conftest.$ac_ext
34889cat >>conftest.$ac_ext <<_ACEOF
34890/* end confdefs.h. */
34891/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34893#define gethostbyname innocuous_gethostbyname
34894
34895/* System header to define __stub macros and hopefully few prototypes,
34896 which can conflict with char gethostbyname (); below.
34897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34898 <limits.h> exists even on freestanding compilers. */
34899
34900#ifdef __STDC__
34901# include <limits.h>
34902#else
34903# include <assert.h>
34904#endif
34905
34906#undef gethostbyname
34907
34908/* Override any GCC internal prototype to avoid an error.
34909 Use char because int might match the return type of a GCC
34910 builtin and then its argument prototype would still apply. */
34911#ifdef __cplusplus
34912extern "C"
34913#endif
34914char gethostbyname ();
34915/* The GNU C library defines this for functions which it implements
34916 to always fail with ENOSYS. Some functions are actually named
34917 something starting with __ and the normal name is an alias. */
34918#if defined __stub_gethostbyname || defined __stub___gethostbyname
34919choke me
34920#endif
34921
34922int
34923main ()
34924{
34925return gethostbyname ();
34926 ;
34927 return 0;
34928}
34929_ACEOF
34930rm -f conftest.$ac_objext conftest$ac_exeext
34931if { (ac_try="$ac_link"
34932case "(($ac_try" in
34933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34934 *) ac_try_echo=$ac_try;;
34935esac
34936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34937$as_echo "$ac_try_echo") >&5
34938 (eval "$ac_link") 2>conftest.er1
34939 ac_status=$?
34940 grep -v '^ *+' conftest.er1 >conftest.err
34941 rm -f conftest.er1
34942 cat conftest.err >&5
34943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); } && {
34945 test -z "$ac_c_werror_flag" ||
34946 test ! -s conftest.err
34947 } && test -s conftest$ac_exeext && {
34948 test "$cross_compiling" = yes ||
34949 $as_test_x conftest$ac_exeext
34950 }; then
34951 ac_cv_func_gethostbyname=yes
34952else
34953 $as_echo "$as_me: failed program was:" >&5
34954sed 's/^/| /' conftest.$ac_ext >&5
34955
34956 ac_cv_func_gethostbyname=no
34957fi
34958
34959rm -rf conftest.dSYM
34960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34961 conftest$ac_exeext conftest.$ac_ext
34962fi
34963{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34964$as_echo "$ac_cv_func_gethostbyname" >&6; }
34965
34966 if test $ac_cv_func_gethostbyname = no; then
34967 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34968$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34969if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34970 $as_echo_n "(cached) " >&6
34971else
34972 ac_check_lib_save_LIBS=$LIBS
34973LIBS="-lnsl $LIBS"
34974cat >conftest.$ac_ext <<_ACEOF
34975/* confdefs.h. */
34976_ACEOF
34977cat confdefs.h >>conftest.$ac_ext
34978cat >>conftest.$ac_ext <<_ACEOF
34979/* end confdefs.h. */
34980
34981/* Override any GCC internal prototype to avoid an error.
34982 Use char because int might match the return type of a GCC
34983 builtin and then its argument prototype would still apply. */
34984#ifdef __cplusplus
34985extern "C"
34986#endif
34987char gethostbyname ();
34988int
34989main ()
34990{
34991return gethostbyname ();
34992 ;
34993 return 0;
34994}
34995_ACEOF
34996rm -f conftest.$ac_objext conftest$ac_exeext
34997if { (ac_try="$ac_link"
34998case "(($ac_try" in
34999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35000 *) ac_try_echo=$ac_try;;
35001esac
35002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35003$as_echo "$ac_try_echo") >&5
35004 (eval "$ac_link") 2>conftest.er1
35005 ac_status=$?
35006 grep -v '^ *+' conftest.er1 >conftest.err
35007 rm -f conftest.er1
35008 cat conftest.err >&5
35009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010 (exit $ac_status); } && {
35011 test -z "$ac_c_werror_flag" ||
35012 test ! -s conftest.err
35013 } && test -s conftest$ac_exeext && {
35014 test "$cross_compiling" = yes ||
35015 $as_test_x conftest$ac_exeext
35016 }; then
35017 ac_cv_lib_nsl_gethostbyname=yes
35018else
35019 $as_echo "$as_me: failed program was:" >&5
35020sed 's/^/| /' conftest.$ac_ext >&5
35021
35022 ac_cv_lib_nsl_gethostbyname=no
35023fi
35024
35025rm -rf conftest.dSYM
35026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35027 conftest$ac_exeext conftest.$ac_ext
35028LIBS=$ac_check_lib_save_LIBS
35029fi
35030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
35031$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
35032if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
35033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
35034fi
35035
35036 if test $ac_cv_lib_nsl_gethostbyname = no; then
35037 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
35038$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
35039if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
35040 $as_echo_n "(cached) " >&6
35041else
35042 ac_check_lib_save_LIBS=$LIBS
35043LIBS="-lbsd $LIBS"
35044cat >conftest.$ac_ext <<_ACEOF
35045/* confdefs.h. */
35046_ACEOF
35047cat confdefs.h >>conftest.$ac_ext
35048cat >>conftest.$ac_ext <<_ACEOF
35049/* end confdefs.h. */
35050
35051/* Override any GCC internal prototype to avoid an error.
35052 Use char because int might match the return type of a GCC
35053 builtin and then its argument prototype would still apply. */
35054#ifdef __cplusplus
35055extern "C"
35056#endif
35057char gethostbyname ();
35058int
35059main ()
35060{
35061return gethostbyname ();
35062 ;
35063 return 0;
35064}
35065_ACEOF
35066rm -f conftest.$ac_objext conftest$ac_exeext
35067if { (ac_try="$ac_link"
35068case "(($ac_try" in
35069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35070 *) ac_try_echo=$ac_try;;
35071esac
35072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35073$as_echo "$ac_try_echo") >&5
35074 (eval "$ac_link") 2>conftest.er1
35075 ac_status=$?
35076 grep -v '^ *+' conftest.er1 >conftest.err
35077 rm -f conftest.er1
35078 cat conftest.err >&5
35079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080 (exit $ac_status); } && {
35081 test -z "$ac_c_werror_flag" ||
35082 test ! -s conftest.err
35083 } && test -s conftest$ac_exeext && {
35084 test "$cross_compiling" = yes ||
35085 $as_test_x conftest$ac_exeext
35086 }; then
35087 ac_cv_lib_bsd_gethostbyname=yes
35088else
35089 $as_echo "$as_me: failed program was:" >&5
35090sed 's/^/| /' conftest.$ac_ext >&5
35091
35092 ac_cv_lib_bsd_gethostbyname=no
35093fi
35094
35095rm -rf conftest.dSYM
35096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35097 conftest$ac_exeext conftest.$ac_ext
35098LIBS=$ac_check_lib_save_LIBS
35099fi
35100{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
35101$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
35102if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
35103 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
35104fi
35105
35106 fi
35107 fi
35108
35109 # lieder@skyler.mavd.honeywell.com says without -lsocket,
35110 # socket/setsockopt and other routines are undefined under SCO ODT
35111 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
35112 # on later versions), says Simon Leinen: it contains gethostby*
35113 # variants that don't use the name server (or something). -lsocket
35114 # must be given before -lnsl if both are needed. We assume that
35115 # if connect needs -lnsl, so does gethostbyname.
35116 { $as_echo "$as_me:$LINENO: checking for connect" >&5
35117$as_echo_n "checking for connect... " >&6; }
35118if test "${ac_cv_func_connect+set}" = set; then
35119 $as_echo_n "(cached) " >&6
35120else
35121 cat >conftest.$ac_ext <<_ACEOF
35122/* confdefs.h. */
35123_ACEOF
35124cat confdefs.h >>conftest.$ac_ext
35125cat >>conftest.$ac_ext <<_ACEOF
35126/* end confdefs.h. */
35127/* Define connect to an innocuous variant, in case <limits.h> declares connect.
35128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35129#define connect innocuous_connect
35130
35131/* System header to define __stub macros and hopefully few prototypes,
35132 which can conflict with char connect (); below.
35133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35134 <limits.h> exists even on freestanding compilers. */
35135
35136#ifdef __STDC__
35137# include <limits.h>
35138#else
35139# include <assert.h>
35140#endif
35141
35142#undef connect
35143
35144/* Override any GCC internal prototype to avoid an error.
35145 Use char because int might match the return type of a GCC
35146 builtin and then its argument prototype would still apply. */
35147#ifdef __cplusplus
35148extern "C"
35149#endif
35150char connect ();
35151/* The GNU C library defines this for functions which it implements
35152 to always fail with ENOSYS. Some functions are actually named
35153 something starting with __ and the normal name is an alias. */
35154#if defined __stub_connect || defined __stub___connect
35155choke me
35156#endif
35157
35158int
35159main ()
35160{
35161return connect ();
35162 ;
35163 return 0;
35164}
35165_ACEOF
35166rm -f conftest.$ac_objext conftest$ac_exeext
35167if { (ac_try="$ac_link"
35168case "(($ac_try" in
35169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35170 *) ac_try_echo=$ac_try;;
35171esac
35172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35173$as_echo "$ac_try_echo") >&5
35174 (eval "$ac_link") 2>conftest.er1
35175 ac_status=$?
35176 grep -v '^ *+' conftest.er1 >conftest.err
35177 rm -f conftest.er1
35178 cat conftest.err >&5
35179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); } && {
35181 test -z "$ac_c_werror_flag" ||
35182 test ! -s conftest.err
35183 } && test -s conftest$ac_exeext && {
35184 test "$cross_compiling" = yes ||
35185 $as_test_x conftest$ac_exeext
35186 }; then
35187 ac_cv_func_connect=yes
35188else
35189 $as_echo "$as_me: failed program was:" >&5
35190sed 's/^/| /' conftest.$ac_ext >&5
35191
35192 ac_cv_func_connect=no
35193fi
35194
35195rm -rf conftest.dSYM
35196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35197 conftest$ac_exeext conftest.$ac_ext
35198fi
35199{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
35200$as_echo "$ac_cv_func_connect" >&6; }
35201
35202 if test $ac_cv_func_connect = no; then
35203 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
35204$as_echo_n "checking for connect in -lsocket... " >&6; }
35205if test "${ac_cv_lib_socket_connect+set}" = set; then
35206 $as_echo_n "(cached) " >&6
35207else
35208 ac_check_lib_save_LIBS=$LIBS
35209LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
35210cat >conftest.$ac_ext <<_ACEOF
35211/* confdefs.h. */
35212_ACEOF
35213cat confdefs.h >>conftest.$ac_ext
35214cat >>conftest.$ac_ext <<_ACEOF
35215/* end confdefs.h. */
35216
35217/* Override any GCC internal prototype to avoid an error.
35218 Use char because int might match the return type of a GCC
35219 builtin and then its argument prototype would still apply. */
35220#ifdef __cplusplus
35221extern "C"
35222#endif
35223char connect ();
35224int
35225main ()
35226{
35227return connect ();
35228 ;
35229 return 0;
35230}
35231_ACEOF
35232rm -f conftest.$ac_objext conftest$ac_exeext
35233if { (ac_try="$ac_link"
35234case "(($ac_try" in
35235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35236 *) ac_try_echo=$ac_try;;
35237esac
35238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35239$as_echo "$ac_try_echo") >&5
35240 (eval "$ac_link") 2>conftest.er1
35241 ac_status=$?
35242 grep -v '^ *+' conftest.er1 >conftest.err
35243 rm -f conftest.er1
35244 cat conftest.err >&5
35245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); } && {
35247 test -z "$ac_c_werror_flag" ||
35248 test ! -s conftest.err
35249 } && test -s conftest$ac_exeext && {
35250 test "$cross_compiling" = yes ||
35251 $as_test_x conftest$ac_exeext
35252 }; then
35253 ac_cv_lib_socket_connect=yes
35254else
35255 $as_echo "$as_me: failed program was:" >&5
35256sed 's/^/| /' conftest.$ac_ext >&5
35257
35258 ac_cv_lib_socket_connect=no
35259fi
35260
35261rm -rf conftest.dSYM
35262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35263 conftest$ac_exeext conftest.$ac_ext
35264LIBS=$ac_check_lib_save_LIBS
35265fi
35266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35267$as_echo "$ac_cv_lib_socket_connect" >&6; }
35268if test "x$ac_cv_lib_socket_connect" = x""yes; then
35269 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35270fi
35271
35272 fi
35273
35274 # Guillermo Gomez says -lposix is necessary on A/UX.
35275 { $as_echo "$as_me:$LINENO: checking for remove" >&5
35276$as_echo_n "checking for remove... " >&6; }
35277if test "${ac_cv_func_remove+set}" = set; then
35278 $as_echo_n "(cached) " >&6
35279else
35280 cat >conftest.$ac_ext <<_ACEOF
35281/* confdefs.h. */
35282_ACEOF
35283cat confdefs.h >>conftest.$ac_ext
35284cat >>conftest.$ac_ext <<_ACEOF
35285/* end confdefs.h. */
35286/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35288#define remove innocuous_remove
35289
35290/* System header to define __stub macros and hopefully few prototypes,
35291 which can conflict with char remove (); below.
35292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35293 <limits.h> exists even on freestanding compilers. */
35294
35295#ifdef __STDC__
35296# include <limits.h>
35297#else
35298# include <assert.h>
35299#endif
35300
35301#undef remove
35302
35303/* Override any GCC internal prototype to avoid an error.
35304 Use char because int might match the return type of a GCC
35305 builtin and then its argument prototype would still apply. */
35306#ifdef __cplusplus
35307extern "C"
35308#endif
35309char remove ();
35310/* The GNU C library defines this for functions which it implements
35311 to always fail with ENOSYS. Some functions are actually named
35312 something starting with __ and the normal name is an alias. */
35313#if defined __stub_remove || defined __stub___remove
35314choke me
35315#endif
35316
35317int
35318main ()
35319{
35320return remove ();
35321 ;
35322 return 0;
35323}
35324_ACEOF
35325rm -f conftest.$ac_objext conftest$ac_exeext
35326if { (ac_try="$ac_link"
35327case "(($ac_try" in
35328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35329 *) ac_try_echo=$ac_try;;
35330esac
35331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35332$as_echo "$ac_try_echo") >&5
35333 (eval "$ac_link") 2>conftest.er1
35334 ac_status=$?
35335 grep -v '^ *+' conftest.er1 >conftest.err
35336 rm -f conftest.er1
35337 cat conftest.err >&5
35338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); } && {
35340 test -z "$ac_c_werror_flag" ||
35341 test ! -s conftest.err
35342 } && test -s conftest$ac_exeext && {
35343 test "$cross_compiling" = yes ||
35344 $as_test_x conftest$ac_exeext
35345 }; then
35346 ac_cv_func_remove=yes
35347else
35348 $as_echo "$as_me: failed program was:" >&5
35349sed 's/^/| /' conftest.$ac_ext >&5
35350
35351 ac_cv_func_remove=no
35352fi
35353
35354rm -rf conftest.dSYM
35355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35356 conftest$ac_exeext conftest.$ac_ext
35357fi
35358{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35359$as_echo "$ac_cv_func_remove" >&6; }
35360
35361 if test $ac_cv_func_remove = no; then
35362 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35363$as_echo_n "checking for remove in -lposix... " >&6; }
35364if test "${ac_cv_lib_posix_remove+set}" = set; then
35365 $as_echo_n "(cached) " >&6
35366else
35367 ac_check_lib_save_LIBS=$LIBS
35368LIBS="-lposix $LIBS"
35369cat >conftest.$ac_ext <<_ACEOF
35370/* confdefs.h. */
35371_ACEOF
35372cat confdefs.h >>conftest.$ac_ext
35373cat >>conftest.$ac_ext <<_ACEOF
35374/* end confdefs.h. */
35375
35376/* Override any GCC internal prototype to avoid an error.
35377 Use char because int might match the return type of a GCC
35378 builtin and then its argument prototype would still apply. */
35379#ifdef __cplusplus
35380extern "C"
35381#endif
35382char remove ();
35383int
35384main ()
35385{
35386return remove ();
35387 ;
35388 return 0;
35389}
35390_ACEOF
35391rm -f conftest.$ac_objext conftest$ac_exeext
35392if { (ac_try="$ac_link"
35393case "(($ac_try" in
35394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35395 *) ac_try_echo=$ac_try;;
35396esac
35397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35398$as_echo "$ac_try_echo") >&5
35399 (eval "$ac_link") 2>conftest.er1
35400 ac_status=$?
35401 grep -v '^ *+' conftest.er1 >conftest.err
35402 rm -f conftest.er1
35403 cat conftest.err >&5
35404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); } && {
35406 test -z "$ac_c_werror_flag" ||
35407 test ! -s conftest.err
35408 } && test -s conftest$ac_exeext && {
35409 test "$cross_compiling" = yes ||
35410 $as_test_x conftest$ac_exeext
35411 }; then
35412 ac_cv_lib_posix_remove=yes
35413else
35414 $as_echo "$as_me: failed program was:" >&5
35415sed 's/^/| /' conftest.$ac_ext >&5
35416
35417 ac_cv_lib_posix_remove=no
35418fi
35419
35420rm -rf conftest.dSYM
35421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35422 conftest$ac_exeext conftest.$ac_ext
35423LIBS=$ac_check_lib_save_LIBS
35424fi
35425{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35426$as_echo "$ac_cv_lib_posix_remove" >&6; }
35427if test "x$ac_cv_lib_posix_remove" = x""yes; then
35428 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35429fi
35430
35431 fi
35432
35433 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35434 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
35435$as_echo_n "checking for shmat... " >&6; }
35436if test "${ac_cv_func_shmat+set}" = set; then
35437 $as_echo_n "(cached) " >&6
35438else
35439 cat >conftest.$ac_ext <<_ACEOF
35440/* confdefs.h. */
35441_ACEOF
35442cat confdefs.h >>conftest.$ac_ext
35443cat >>conftest.$ac_ext <<_ACEOF
35444/* end confdefs.h. */
35445/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35447#define shmat innocuous_shmat
35448
35449/* System header to define __stub macros and hopefully few prototypes,
35450 which can conflict with char shmat (); below.
35451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35452 <limits.h> exists even on freestanding compilers. */
35453
35454#ifdef __STDC__
35455# include <limits.h>
35456#else
35457# include <assert.h>
35458#endif
35459
35460#undef shmat
35461
35462/* Override any GCC internal prototype to avoid an error.
35463 Use char because int might match the return type of a GCC
35464 builtin and then its argument prototype would still apply. */
35465#ifdef __cplusplus
35466extern "C"
35467#endif
35468char shmat ();
35469/* The GNU C library defines this for functions which it implements
35470 to always fail with ENOSYS. Some functions are actually named
35471 something starting with __ and the normal name is an alias. */
35472#if defined __stub_shmat || defined __stub___shmat
35473choke me
35474#endif
35475
35476int
35477main ()
35478{
35479return shmat ();
35480 ;
35481 return 0;
35482}
35483_ACEOF
35484rm -f conftest.$ac_objext conftest$ac_exeext
35485if { (ac_try="$ac_link"
35486case "(($ac_try" in
35487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35488 *) ac_try_echo=$ac_try;;
35489esac
35490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35491$as_echo "$ac_try_echo") >&5
35492 (eval "$ac_link") 2>conftest.er1
35493 ac_status=$?
35494 grep -v '^ *+' conftest.er1 >conftest.err
35495 rm -f conftest.er1
35496 cat conftest.err >&5
35497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } && {
35499 test -z "$ac_c_werror_flag" ||
35500 test ! -s conftest.err
35501 } && test -s conftest$ac_exeext && {
35502 test "$cross_compiling" = yes ||
35503 $as_test_x conftest$ac_exeext
35504 }; then
35505 ac_cv_func_shmat=yes
35506else
35507 $as_echo "$as_me: failed program was:" >&5
35508sed 's/^/| /' conftest.$ac_ext >&5
35509
35510 ac_cv_func_shmat=no
35511fi
35512
35513rm -rf conftest.dSYM
35514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35515 conftest$ac_exeext conftest.$ac_ext
35516fi
35517{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35518$as_echo "$ac_cv_func_shmat" >&6; }
35519
35520 if test $ac_cv_func_shmat = no; then
35521 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35522$as_echo_n "checking for shmat in -lipc... " >&6; }
35523if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35524 $as_echo_n "(cached) " >&6
35525else
35526 ac_check_lib_save_LIBS=$LIBS
35527LIBS="-lipc $LIBS"
35528cat >conftest.$ac_ext <<_ACEOF
35529/* confdefs.h. */
35530_ACEOF
35531cat confdefs.h >>conftest.$ac_ext
35532cat >>conftest.$ac_ext <<_ACEOF
35533/* end confdefs.h. */
35534
35535/* Override any GCC internal prototype to avoid an error.
35536 Use char because int might match the return type of a GCC
35537 builtin and then its argument prototype would still apply. */
35538#ifdef __cplusplus
35539extern "C"
35540#endif
35541char shmat ();
35542int
35543main ()
35544{
35545return shmat ();
35546 ;
35547 return 0;
35548}
35549_ACEOF
35550rm -f conftest.$ac_objext conftest$ac_exeext
35551if { (ac_try="$ac_link"
35552case "(($ac_try" in
35553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35554 *) ac_try_echo=$ac_try;;
35555esac
35556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35557$as_echo "$ac_try_echo") >&5
35558 (eval "$ac_link") 2>conftest.er1
35559 ac_status=$?
35560 grep -v '^ *+' conftest.er1 >conftest.err
35561 rm -f conftest.er1
35562 cat conftest.err >&5
35563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); } && {
35565 test -z "$ac_c_werror_flag" ||
35566 test ! -s conftest.err
35567 } && test -s conftest$ac_exeext && {
35568 test "$cross_compiling" = yes ||
35569 $as_test_x conftest$ac_exeext
35570 }; then
35571 ac_cv_lib_ipc_shmat=yes
35572else
35573 $as_echo "$as_me: failed program was:" >&5
35574sed 's/^/| /' conftest.$ac_ext >&5
35575
35576 ac_cv_lib_ipc_shmat=no
35577fi
35578
35579rm -rf conftest.dSYM
35580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35581 conftest$ac_exeext conftest.$ac_ext
35582LIBS=$ac_check_lib_save_LIBS
35583fi
35584{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35585$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
35586if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
35587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35588fi
35589
35590 fi
35591 fi
35592
35593 # Check for libraries that X11R6 Xt/Xaw programs need.
35594 ac_save_LDFLAGS=$LDFLAGS
35595 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35596 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35597 # check for ICE first), but we must link in the order -lSM -lICE or
35598 # we get undefined symbols. So assume we have SM if we have ICE.
35599 # These have to be linked with before -lX11, unlike the other
35600 # libraries we check for below, so use a different variable.
35601 # John Interrante, Karl Berry
35602 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35603$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
35604if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35605 $as_echo_n "(cached) " >&6
35606else
35607 ac_check_lib_save_LIBS=$LIBS
35608LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35609cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h. */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h. */
35615
35616/* Override any GCC internal prototype to avoid an error.
35617 Use char because int might match the return type of a GCC
35618 builtin and then its argument prototype would still apply. */
35619#ifdef __cplusplus
35620extern "C"
35621#endif
35622char IceConnectionNumber ();
35623int
35624main ()
35625{
35626return IceConnectionNumber ();
35627 ;
35628 return 0;
35629}
35630_ACEOF
35631rm -f conftest.$ac_objext conftest$ac_exeext
35632if { (ac_try="$ac_link"
35633case "(($ac_try" in
35634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35635 *) ac_try_echo=$ac_try;;
35636esac
35637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35638$as_echo "$ac_try_echo") >&5
35639 (eval "$ac_link") 2>conftest.er1
35640 ac_status=$?
35641 grep -v '^ *+' conftest.er1 >conftest.err
35642 rm -f conftest.er1
35643 cat conftest.err >&5
35644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); } && {
35646 test -z "$ac_c_werror_flag" ||
35647 test ! -s conftest.err
35648 } && test -s conftest$ac_exeext && {
35649 test "$cross_compiling" = yes ||
35650 $as_test_x conftest$ac_exeext
35651 }; then
35652 ac_cv_lib_ICE_IceConnectionNumber=yes
35653else
35654 $as_echo "$as_me: failed program was:" >&5
35655sed 's/^/| /' conftest.$ac_ext >&5
35656
35657 ac_cv_lib_ICE_IceConnectionNumber=no
35658fi
35659
35660rm -rf conftest.dSYM
35661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35662 conftest$ac_exeext conftest.$ac_ext
35663LIBS=$ac_check_lib_save_LIBS
35664fi
35665{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35666$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35667if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
35668 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35669fi
35670
35671 LDFLAGS=$ac_save_LDFLAGS
35672
35673fi
35674
35675if test "$no_x" != 'yes'; then
35676 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35677$as_echo "-------------------------------------------------------------" >&6; }
35678 { $as_echo "$as_me:$LINENO: checking for X11" >&5
35679$as_echo_n "checking for X11... " >&6; }
35680 { $as_echo "$as_me:$LINENO: result: " >&5
35681$as_echo "" >&6; }
35682 LDFLAGS="$LDFLAGS $X_LIBS"
35683 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
35684 LIBS="$X11_LIBS $LIBS"
35685 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
35686
35687
35688cat >>confdefs.h <<\_ACEOF
35689#define X11_DELEGATE 1
35690_ACEOF
35691
35692 #
35693 # Check for X11 shared memory extension
35694 #
35695 # shmctl is required to support the shared memory extension
35696 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
35697$as_echo_n "checking for shmctl... " >&6; }
35698if test "${ac_cv_func_shmctl+set}" = set; then
35699 $as_echo_n "(cached) " >&6
35700else
35701 cat >conftest.$ac_ext <<_ACEOF
35702/* confdefs.h. */
35703_ACEOF
35704cat confdefs.h >>conftest.$ac_ext
35705cat >>conftest.$ac_ext <<_ACEOF
35706/* end confdefs.h. */
35707/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
35708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35709#define shmctl innocuous_shmctl
35710
35711/* System header to define __stub macros and hopefully few prototypes,
35712 which can conflict with char shmctl (); below.
35713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35714 <limits.h> exists even on freestanding compilers. */
35715
35716#ifdef __STDC__
35717# include <limits.h>
35718#else
35719# include <assert.h>
35720#endif
35721
35722#undef shmctl
35723
35724/* Override any GCC internal prototype to avoid an error.
35725 Use char because int might match the return type of a GCC
35726 builtin and then its argument prototype would still apply. */
35727#ifdef __cplusplus
35728extern "C"
35729#endif
35730char shmctl ();
35731/* The GNU C library defines this for functions which it implements
35732 to always fail with ENOSYS. Some functions are actually named
35733 something starting with __ and the normal name is an alias. */
35734#if defined __stub_shmctl || defined __stub___shmctl
35735choke me
35736#endif
35737
35738int
35739main ()
35740{
35741return shmctl ();
35742 ;
35743 return 0;
35744}
35745_ACEOF
35746rm -f conftest.$ac_objext conftest$ac_exeext
35747if { (ac_try="$ac_link"
35748case "(($ac_try" in
35749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750 *) ac_try_echo=$ac_try;;
35751esac
35752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35753$as_echo "$ac_try_echo") >&5
35754 (eval "$ac_link") 2>conftest.er1
35755 ac_status=$?
35756 grep -v '^ *+' conftest.er1 >conftest.err
35757 rm -f conftest.er1
35758 cat conftest.err >&5
35759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); } && {
35761 test -z "$ac_c_werror_flag" ||
35762 test ! -s conftest.err
35763 } && test -s conftest$ac_exeext && {
35764 test "$cross_compiling" = yes ||
35765 $as_test_x conftest$ac_exeext
35766 }; then
35767 ac_cv_func_shmctl=yes
35768else
35769 $as_echo "$as_me: failed program was:" >&5
35770sed 's/^/| /' conftest.$ac_ext >&5
35771
35772 ac_cv_func_shmctl=no
35773fi
35774
35775rm -rf conftest.dSYM
35776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35777 conftest$ac_exeext conftest.$ac_ext
35778fi
35779{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
35780$as_echo "$ac_cv_func_shmctl" >&6; }
35781if test "x$ac_cv_func_shmctl" = x""yes; then
35782 have_shmctl='yes'
35783fi
35784
35785 if test "$have_shmctl" != 'yes'; then
35786 PERSIST_LIBS=$LIBS
35787 LIBS="$LIBS -lcygipc"
35788 cat >conftest.$ac_ext <<_ACEOF
35789/* confdefs.h. */
35790_ACEOF
35791cat confdefs.h >>conftest.$ac_ext
35792cat >>conftest.$ac_ext <<_ACEOF
35793/* end confdefs.h. */
35794
35795/* Override any GCC internal prototype to avoid an error.
35796 Use char because int might match the return type of a GCC
35797 builtin and then its argument prototype would still apply. */
35798#ifdef __cplusplus
35799extern "C"
35800#endif
35801char shmctl ();
35802int
35803main ()
35804{
35805return shmctl ();
35806 ;
35807 return 0;
35808}
35809_ACEOF
35810rm -f conftest.$ac_objext conftest$ac_exeext
35811if { (ac_try="$ac_link"
35812case "(($ac_try" in
35813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35814 *) ac_try_echo=$ac_try;;
35815esac
35816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35817$as_echo "$ac_try_echo") >&5
35818 (eval "$ac_link") 2>conftest.er1
35819 ac_status=$?
35820 grep -v '^ *+' conftest.er1 >conftest.err
35821 rm -f conftest.er1
35822 cat conftest.err >&5
35823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 (exit $ac_status); } && {
35825 test -z "$ac_c_werror_flag" ||
35826 test ! -s conftest.err
35827 } && test -s conftest$ac_exeext && {
35828 test "$cross_compiling" = yes ||
35829 $as_test_x conftest$ac_exeext
35830 }; then
35831 have_shmctl='yes'; IPC_LIBS='-lcygipc'
35832else
35833 $as_echo "$as_me: failed program was:" >&5
35834sed 's/^/| /' conftest.$ac_ext >&5
35835
35836
35837fi
35838
35839rm -rf conftest.dSYM
35840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35841 conftest$ac_exeext conftest.$ac_ext
35842 LIBS=$PERSIST_LIBS
35843 fi
35844
35845 if test "$have_shmctl" = 'yes'; then
35846 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35847$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35848if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35849 $as_echo_n "(cached) " >&6
35850else
35851 ac_check_lib_save_LIBS=$LIBS
35852LIBS="-lXext $LIBS"
35853cat >conftest.$ac_ext <<_ACEOF
35854/* confdefs.h. */
35855_ACEOF
35856cat confdefs.h >>conftest.$ac_ext
35857cat >>conftest.$ac_ext <<_ACEOF
35858/* end confdefs.h. */
35859
35860/* Override any GCC internal prototype to avoid an error.
35861 Use char because int might match the return type of a GCC
35862 builtin and then its argument prototype would still apply. */
35863#ifdef __cplusplus
35864extern "C"
35865#endif
35866char XShmAttach ();
35867int
35868main ()
35869{
35870return XShmAttach ();
35871 ;
35872 return 0;
35873}
35874_ACEOF
35875rm -f conftest.$ac_objext conftest$ac_exeext
35876if { (ac_try="$ac_link"
35877case "(($ac_try" in
35878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35879 *) ac_try_echo=$ac_try;;
35880esac
35881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35882$as_echo "$ac_try_echo") >&5
35883 (eval "$ac_link") 2>conftest.er1
35884 ac_status=$?
35885 grep -v '^ *+' conftest.er1 >conftest.err
35886 rm -f conftest.er1
35887 cat conftest.err >&5
35888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); } && {
35890 test -z "$ac_c_werror_flag" ||
35891 test ! -s conftest.err
35892 } && test -s conftest$ac_exeext && {
35893 test "$cross_compiling" = yes ||
35894 $as_test_x conftest$ac_exeext
35895 }; then
35896 ac_cv_lib_Xext_XShmAttach=yes
35897else
35898 $as_echo "$as_me: failed program was:" >&5
35899sed 's/^/| /' conftest.$ac_ext >&5
35900
35901 ac_cv_lib_Xext_XShmAttach=no
35902fi
35903
35904rm -rf conftest.dSYM
35905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35906 conftest$ac_exeext conftest.$ac_ext
35907LIBS=$ac_check_lib_save_LIBS
35908fi
35909{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35910$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35911if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35912 XEXT_LIBS='-lXext' ;
35913cat >>confdefs.h <<\_ACEOF
35914#define HAVE_SHARED_MEMORY 1
35915_ACEOF
35916
35917fi
35918
35919 fi
35920
35921 #
35922 # Check for X11 shape extension
35923 #
35924 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35925$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35926if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35927 $as_echo_n "(cached) " >&6
35928else
35929 ac_check_lib_save_LIBS=$LIBS
35930LIBS="-lXext $LIBS"
35931cat >conftest.$ac_ext <<_ACEOF
35932/* confdefs.h. */
35933_ACEOF
35934cat confdefs.h >>conftest.$ac_ext
35935cat >>conftest.$ac_ext <<_ACEOF
35936/* end confdefs.h. */
35937
35938/* Override any GCC internal prototype to avoid an error.
35939 Use char because int might match the return type of a GCC
35940 builtin and then its argument prototype would still apply. */
35941#ifdef __cplusplus
35942extern "C"
35943#endif
35944char XShapeCombineMask ();
35945int
35946main ()
35947{
35948return XShapeCombineMask ();
35949 ;
35950 return 0;
35951}
35952_ACEOF
35953rm -f conftest.$ac_objext conftest$ac_exeext
35954if { (ac_try="$ac_link"
35955case "(($ac_try" in
35956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35957 *) ac_try_echo=$ac_try;;
35958esac
35959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35960$as_echo "$ac_try_echo") >&5
35961 (eval "$ac_link") 2>conftest.er1
35962 ac_status=$?
35963 grep -v '^ *+' conftest.er1 >conftest.err
35964 rm -f conftest.er1
35965 cat conftest.err >&5
35966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); } && {
35968 test -z "$ac_c_werror_flag" ||
35969 test ! -s conftest.err
35970 } && test -s conftest$ac_exeext && {
35971 test "$cross_compiling" = yes ||
35972 $as_test_x conftest$ac_exeext
35973 }; then
35974 ac_cv_lib_Xext_XShapeCombineMask=yes
35975else
35976 $as_echo "$as_me: failed program was:" >&5
35977sed 's/^/| /' conftest.$ac_ext >&5
35978
35979 ac_cv_lib_Xext_XShapeCombineMask=no
35980fi
35981
35982rm -rf conftest.dSYM
35983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35984 conftest$ac_exeext conftest.$ac_ext
35985LIBS=$ac_check_lib_save_LIBS
35986fi
35987{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35988$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35989if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35990 XEXT_LIBS='-lXext' ;
35991cat >>confdefs.h <<\_ACEOF
35992#define HAVE_SHAPE 1
35993_ACEOF
35994
35995fi
35996
35997 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35998$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35999if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
36000 $as_echo_n "(cached) " >&6
36001else
36002 ac_check_lib_save_LIBS=$LIBS
36003LIBS="-lXt $LIBS"
36004cat >conftest.$ac_ext <<_ACEOF
36005/* confdefs.h. */
36006_ACEOF
36007cat confdefs.h >>conftest.$ac_ext
36008cat >>conftest.$ac_ext <<_ACEOF
36009/* end confdefs.h. */
36010
36011/* Override any GCC internal prototype to avoid an error.
36012 Use char because int might match the return type of a GCC
36013 builtin and then its argument prototype would still apply. */
36014#ifdef __cplusplus
36015extern "C"
36016#endif
36017char XtSetEventDispatcher ();
36018int
36019main ()
36020{
36021return XtSetEventDispatcher ();
36022 ;
36023 return 0;
36024}
36025_ACEOF
36026rm -f conftest.$ac_objext conftest$ac_exeext
36027if { (ac_try="$ac_link"
36028case "(($ac_try" in
36029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030 *) ac_try_echo=$ac_try;;
36031esac
36032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36033$as_echo "$ac_try_echo") >&5
36034 (eval "$ac_link") 2>conftest.er1
36035 ac_status=$?
36036 grep -v '^ *+' conftest.er1 >conftest.err
36037 rm -f conftest.er1
36038 cat conftest.err >&5
36039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } && {
36041 test -z "$ac_c_werror_flag" ||
36042 test ! -s conftest.err
36043 } && test -s conftest$ac_exeext && {
36044 test "$cross_compiling" = yes ||
36045 $as_test_x conftest$ac_exeext
36046 }; then
36047 ac_cv_lib_Xt_XtSetEventDispatcher=yes
36048else
36049 $as_echo "$as_me: failed program was:" >&5
36050sed 's/^/| /' conftest.$ac_ext >&5
36051
36052 ac_cv_lib_Xt_XtSetEventDispatcher=no
36053fi
36054
36055rm -rf conftest.dSYM
36056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36057 conftest$ac_exeext conftest.$ac_ext
36058LIBS=$ac_check_lib_save_LIBS
36059fi
36060{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
36061$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
36062if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
36063 XT_LIBS='-lXt'
36064fi
36065
36066 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
36067fi
36068if test "$no_x" != 'yes'; then
36069 have_x='yes'
36070else
36071 have_x='no'
36072fi
36073 if test "$have_x" = 'yes'; then
36074 X11_DELEGATE_TRUE=
36075 X11_DELEGATE_FALSE='#'
36076else
36077 X11_DELEGATE_TRUE='#'
36078 X11_DELEGATE_FALSE=
36079fi
36080
36081
36082
36083
36084
36085#
36086# Check for ZLIB
36087#
36088
36089# Check whether --with-zlib was given.
36090if test "${with_zlib+set}" = set; then
36091 withval=$with_zlib; with_zlib=$withval
36092else
36093 with_zlib='yes'
36094fi
36095
36096
36097if test "$with_zlib" != 'yes'; then
36098 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
36099fi
36100
36101have_zlib='no'
36102ZLIB_LIBS=''
36103if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
36104 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36105$as_echo "-------------------------------------------------------------" >&6; }
36106 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
36107$as_echo_n "checking for ZLIB... " >&6; }
36108 { $as_echo "$as_me:$LINENO: result: " >&5
36109$as_echo "" >&6; }
36110 ZLIB_LIBS=''
36111 failed=0
36112 passed=0
36113 if test "${ac_cv_header_zconf_h+set}" = set; then
36114 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36115$as_echo_n "checking for zconf.h... " >&6; }
36116if test "${ac_cv_header_zconf_h+set}" = set; then
36117 $as_echo_n "(cached) " >&6
36118fi
36119{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36120$as_echo "$ac_cv_header_zconf_h" >&6; }
36121else
36122 # Is the header compilable?
36123{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
36124$as_echo_n "checking zconf.h usability... " >&6; }
36125cat >conftest.$ac_ext <<_ACEOF
36126/* confdefs.h. */
36127_ACEOF
36128cat confdefs.h >>conftest.$ac_ext
36129cat >>conftest.$ac_ext <<_ACEOF
36130/* end confdefs.h. */
36131$ac_includes_default
36132#include <zconf.h>
36133_ACEOF
36134rm -f conftest.$ac_objext
36135if { (ac_try="$ac_compile"
36136case "(($ac_try" in
36137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36138 *) ac_try_echo=$ac_try;;
36139esac
36140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36141$as_echo "$ac_try_echo") >&5
36142 (eval "$ac_compile") 2>conftest.er1
36143 ac_status=$?
36144 grep -v '^ *+' conftest.er1 >conftest.err
36145 rm -f conftest.er1
36146 cat conftest.err >&5
36147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); } && {
36149 test -z "$ac_c_werror_flag" ||
36150 test ! -s conftest.err
36151 } && test -s conftest.$ac_objext; then
36152 ac_header_compiler=yes
36153else
36154 $as_echo "$as_me: failed program was:" >&5
36155sed 's/^/| /' conftest.$ac_ext >&5
36156
36157 ac_header_compiler=no
36158fi
36159
36160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36161{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36162$as_echo "$ac_header_compiler" >&6; }
36163
36164# Is the header present?
36165{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
36166$as_echo_n "checking zconf.h presence... " >&6; }
36167cat >conftest.$ac_ext <<_ACEOF
36168/* confdefs.h. */
36169_ACEOF
36170cat confdefs.h >>conftest.$ac_ext
36171cat >>conftest.$ac_ext <<_ACEOF
36172/* end confdefs.h. */
36173#include <zconf.h>
36174_ACEOF
36175if { (ac_try="$ac_cpp conftest.$ac_ext"
36176case "(($ac_try" in
36177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36178 *) ac_try_echo=$ac_try;;
36179esac
36180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36181$as_echo "$ac_try_echo") >&5
36182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36183 ac_status=$?
36184 grep -v '^ *+' conftest.er1 >conftest.err
36185 rm -f conftest.er1
36186 cat conftest.err >&5
36187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } >/dev/null && {
36189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36190 test ! -s conftest.err
36191 }; then
36192 ac_header_preproc=yes
36193else
36194 $as_echo "$as_me: failed program was:" >&5
36195sed 's/^/| /' conftest.$ac_ext >&5
36196
36197 ac_header_preproc=no
36198fi
36199
36200rm -f conftest.err conftest.$ac_ext
36201{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36202$as_echo "$ac_header_preproc" >&6; }
36203
36204# So? What about this header?
36205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36206 yes:no: )
36207 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
36208$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36209 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
36210$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
36211 ac_header_preproc=yes
36212 ;;
36213 no:yes:* )
36214 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
36215$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
36216 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
36217$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
36218 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
36219$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
36220 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
36221$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
36222 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
36223$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
36224 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
36225$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
36226 ( cat <<\_ASBOX
36227## ----------------------------------------- ##
36228## Report this to http://www.imagemagick.org ##
36229## ----------------------------------------- ##
36230_ASBOX
36231 ) | sed "s/^/$as_me: WARNING: /" >&2
36232 ;;
36233esac
36234{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36235$as_echo_n "checking for zconf.h... " >&6; }
36236if test "${ac_cv_header_zconf_h+set}" = set; then
36237 $as_echo_n "(cached) " >&6
36238else
36239 ac_cv_header_zconf_h=$ac_header_preproc
36240fi
36241{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36242$as_echo "$ac_cv_header_zconf_h" >&6; }
36243
36244fi
36245if test "x$ac_cv_header_zconf_h" = x""yes; then
36246 passed=`expr $passed + 1`
36247else
36248 failed=`expr $failed + 1`
36249fi
36250
36251
36252 if test "${ac_cv_header_zlib_h+set}" = set; then
36253 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36254$as_echo_n "checking for zlib.h... " >&6; }
36255if test "${ac_cv_header_zlib_h+set}" = set; then
36256 $as_echo_n "(cached) " >&6
36257fi
36258{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36259$as_echo "$ac_cv_header_zlib_h" >&6; }
36260else
36261 # Is the header compilable?
36262{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
36263$as_echo_n "checking zlib.h usability... " >&6; }
36264cat >conftest.$ac_ext <<_ACEOF
36265/* confdefs.h. */
36266_ACEOF
36267cat confdefs.h >>conftest.$ac_ext
36268cat >>conftest.$ac_ext <<_ACEOF
36269/* end confdefs.h. */
36270$ac_includes_default
36271#include <zlib.h>
36272_ACEOF
36273rm -f conftest.$ac_objext
36274if { (ac_try="$ac_compile"
36275case "(($ac_try" in
36276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36277 *) ac_try_echo=$ac_try;;
36278esac
36279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36280$as_echo "$ac_try_echo") >&5
36281 (eval "$ac_compile") 2>conftest.er1
36282 ac_status=$?
36283 grep -v '^ *+' conftest.er1 >conftest.err
36284 rm -f conftest.er1
36285 cat conftest.err >&5
36286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); } && {
36288 test -z "$ac_c_werror_flag" ||
36289 test ! -s conftest.err
36290 } && test -s conftest.$ac_objext; then
36291 ac_header_compiler=yes
36292else
36293 $as_echo "$as_me: failed program was:" >&5
36294sed 's/^/| /' conftest.$ac_ext >&5
36295
36296 ac_header_compiler=no
36297fi
36298
36299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36300{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36301$as_echo "$ac_header_compiler" >&6; }
36302
36303# Is the header present?
36304{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
36305$as_echo_n "checking zlib.h presence... " >&6; }
36306cat >conftest.$ac_ext <<_ACEOF
36307/* confdefs.h. */
36308_ACEOF
36309cat confdefs.h >>conftest.$ac_ext
36310cat >>conftest.$ac_ext <<_ACEOF
36311/* end confdefs.h. */
36312#include <zlib.h>
36313_ACEOF
36314if { (ac_try="$ac_cpp conftest.$ac_ext"
36315case "(($ac_try" in
36316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36317 *) ac_try_echo=$ac_try;;
36318esac
36319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36320$as_echo "$ac_try_echo") >&5
36321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36322 ac_status=$?
36323 grep -v '^ *+' conftest.er1 >conftest.err
36324 rm -f conftest.er1
36325 cat conftest.err >&5
36326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } >/dev/null && {
36328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36329 test ! -s conftest.err
36330 }; then
36331 ac_header_preproc=yes
36332else
36333 $as_echo "$as_me: failed program was:" >&5
36334sed 's/^/| /' conftest.$ac_ext >&5
36335
36336 ac_header_preproc=no
36337fi
36338
36339rm -f conftest.err conftest.$ac_ext
36340{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36341$as_echo "$ac_header_preproc" >&6; }
36342
36343# So? What about this header?
36344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36345 yes:no: )
36346 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36347$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36348 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36349$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36350 ac_header_preproc=yes
36351 ;;
36352 no:yes:* )
36353 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36354$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36355 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36356$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36357 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36358$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36359 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36360$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36361 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36362$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36363 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36364$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36365 ( cat <<\_ASBOX
36366## ----------------------------------------- ##
36367## Report this to http://www.imagemagick.org ##
36368## ----------------------------------------- ##
36369_ASBOX
36370 ) | sed "s/^/$as_me: WARNING: /" >&2
36371 ;;
36372esac
36373{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36374$as_echo_n "checking for zlib.h... " >&6; }
36375if test "${ac_cv_header_zlib_h+set}" = set; then
36376 $as_echo_n "(cached) " >&6
36377else
36378 ac_cv_header_zlib_h=$ac_header_preproc
36379fi
36380{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36381$as_echo "$ac_cv_header_zlib_h" >&6; }
36382
36383fi
36384if test "x$ac_cv_header_zlib_h" = x""yes; then
36385 passed=`expr $passed + 1`
36386else
36387 failed=`expr $failed + 1`
36388fi
36389
36390
36391 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
36392$as_echo_n "checking for compress in -lz... " >&6; }
36393if test "${ac_cv_lib_z_compress+set}" = set; then
36394 $as_echo_n "(cached) " >&6
36395else
36396 ac_check_lib_save_LIBS=$LIBS
36397LIBS="-lz $LIBS"
36398cat >conftest.$ac_ext <<_ACEOF
36399/* confdefs.h. */
36400_ACEOF
36401cat confdefs.h >>conftest.$ac_ext
36402cat >>conftest.$ac_ext <<_ACEOF
36403/* end confdefs.h. */
36404
36405/* Override any GCC internal prototype to avoid an error.
36406 Use char because int might match the return type of a GCC
36407 builtin and then its argument prototype would still apply. */
36408#ifdef __cplusplus
36409extern "C"
36410#endif
36411char compress ();
36412int
36413main ()
36414{
36415return compress ();
36416 ;
36417 return 0;
36418}
36419_ACEOF
36420rm -f conftest.$ac_objext conftest$ac_exeext
36421if { (ac_try="$ac_link"
36422case "(($ac_try" in
36423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36424 *) ac_try_echo=$ac_try;;
36425esac
36426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36427$as_echo "$ac_try_echo") >&5
36428 (eval "$ac_link") 2>conftest.er1
36429 ac_status=$?
36430 grep -v '^ *+' conftest.er1 >conftest.err
36431 rm -f conftest.er1
36432 cat conftest.err >&5
36433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); } && {
36435 test -z "$ac_c_werror_flag" ||
36436 test ! -s conftest.err
36437 } && test -s conftest$ac_exeext && {
36438 test "$cross_compiling" = yes ||
36439 $as_test_x conftest$ac_exeext
36440 }; then
36441 ac_cv_lib_z_compress=yes
36442else
36443 $as_echo "$as_me: failed program was:" >&5
36444sed 's/^/| /' conftest.$ac_ext >&5
36445
36446 ac_cv_lib_z_compress=no
36447fi
36448
36449rm -rf conftest.dSYM
36450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36451 conftest$ac_exeext conftest.$ac_ext
36452LIBS=$ac_check_lib_save_LIBS
36453fi
36454{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
36455$as_echo "$ac_cv_lib_z_compress" >&6; }
36456if test "x$ac_cv_lib_z_compress" = x""yes; then
36457 passed=`expr $passed + 1`
36458else
36459 failed=`expr $failed + 1`
36460fi
36461
36462 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
36463$as_echo_n "checking for uncompress in -lz... " >&6; }
36464if test "${ac_cv_lib_z_uncompress+set}" = set; then
36465 $as_echo_n "(cached) " >&6
36466else
36467 ac_check_lib_save_LIBS=$LIBS
36468LIBS="-lz $LIBS"
36469cat >conftest.$ac_ext <<_ACEOF
36470/* confdefs.h. */
36471_ACEOF
36472cat confdefs.h >>conftest.$ac_ext
36473cat >>conftest.$ac_ext <<_ACEOF
36474/* end confdefs.h. */
36475
36476/* Override any GCC internal prototype to avoid an error.
36477 Use char because int might match the return type of a GCC
36478 builtin and then its argument prototype would still apply. */
36479#ifdef __cplusplus
36480extern "C"
36481#endif
36482char uncompress ();
36483int
36484main ()
36485{
36486return uncompress ();
36487 ;
36488 return 0;
36489}
36490_ACEOF
36491rm -f conftest.$ac_objext conftest$ac_exeext
36492if { (ac_try="$ac_link"
36493case "(($ac_try" in
36494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36495 *) ac_try_echo=$ac_try;;
36496esac
36497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36498$as_echo "$ac_try_echo") >&5
36499 (eval "$ac_link") 2>conftest.er1
36500 ac_status=$?
36501 grep -v '^ *+' conftest.er1 >conftest.err
36502 rm -f conftest.er1
36503 cat conftest.err >&5
36504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 (exit $ac_status); } && {
36506 test -z "$ac_c_werror_flag" ||
36507 test ! -s conftest.err
36508 } && test -s conftest$ac_exeext && {
36509 test "$cross_compiling" = yes ||
36510 $as_test_x conftest$ac_exeext
36511 }; then
36512 ac_cv_lib_z_uncompress=yes
36513else
36514 $as_echo "$as_me: failed program was:" >&5
36515sed 's/^/| /' conftest.$ac_ext >&5
36516
36517 ac_cv_lib_z_uncompress=no
36518fi
36519
36520rm -rf conftest.dSYM
36521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36522 conftest$ac_exeext conftest.$ac_ext
36523LIBS=$ac_check_lib_save_LIBS
36524fi
36525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
36526$as_echo "$ac_cv_lib_z_uncompress" >&6; }
36527if test "x$ac_cv_lib_z_uncompress" = x""yes; then
36528 passed=`expr $passed + 1`
36529else
36530 failed=`expr $failed + 1`
36531fi
36532
36533 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
36534$as_echo_n "checking for deflate in -lz... " >&6; }
36535if test "${ac_cv_lib_z_deflate+set}" = set; then
36536 $as_echo_n "(cached) " >&6
36537else
36538 ac_check_lib_save_LIBS=$LIBS
36539LIBS="-lz $LIBS"
36540cat >conftest.$ac_ext <<_ACEOF
36541/* confdefs.h. */
36542_ACEOF
36543cat confdefs.h >>conftest.$ac_ext
36544cat >>conftest.$ac_ext <<_ACEOF
36545/* end confdefs.h. */
36546
36547/* Override any GCC internal prototype to avoid an error.
36548 Use char because int might match the return type of a GCC
36549 builtin and then its argument prototype would still apply. */
36550#ifdef __cplusplus
36551extern "C"
36552#endif
36553char deflate ();
36554int
36555main ()
36556{
36557return deflate ();
36558 ;
36559 return 0;
36560}
36561_ACEOF
36562rm -f conftest.$ac_objext conftest$ac_exeext
36563if { (ac_try="$ac_link"
36564case "(($ac_try" in
36565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36566 *) ac_try_echo=$ac_try;;
36567esac
36568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36569$as_echo "$ac_try_echo") >&5
36570 (eval "$ac_link") 2>conftest.er1
36571 ac_status=$?
36572 grep -v '^ *+' conftest.er1 >conftest.err
36573 rm -f conftest.er1
36574 cat conftest.err >&5
36575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36576 (exit $ac_status); } && {
36577 test -z "$ac_c_werror_flag" ||
36578 test ! -s conftest.err
36579 } && test -s conftest$ac_exeext && {
36580 test "$cross_compiling" = yes ||
36581 $as_test_x conftest$ac_exeext
36582 }; then
36583 ac_cv_lib_z_deflate=yes
36584else
36585 $as_echo "$as_me: failed program was:" >&5
36586sed 's/^/| /' conftest.$ac_ext >&5
36587
36588 ac_cv_lib_z_deflate=no
36589fi
36590
36591rm -rf conftest.dSYM
36592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36593 conftest$ac_exeext conftest.$ac_ext
36594LIBS=$ac_check_lib_save_LIBS
36595fi
36596{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
36597$as_echo "$ac_cv_lib_z_deflate" >&6; }
36598if test "x$ac_cv_lib_z_deflate" = x""yes; then
36599 passed=`expr $passed + 1`
36600else
36601 failed=`expr $failed + 1`
36602fi
36603
36604 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
36605$as_echo_n "checking for inflate in -lz... " >&6; }
36606if test "${ac_cv_lib_z_inflate+set}" = set; then
36607 $as_echo_n "(cached) " >&6
36608else
36609 ac_check_lib_save_LIBS=$LIBS
36610LIBS="-lz $LIBS"
36611cat >conftest.$ac_ext <<_ACEOF
36612/* confdefs.h. */
36613_ACEOF
36614cat confdefs.h >>conftest.$ac_ext
36615cat >>conftest.$ac_ext <<_ACEOF
36616/* end confdefs.h. */
36617
36618/* Override any GCC internal prototype to avoid an error.
36619 Use char because int might match the return type of a GCC
36620 builtin and then its argument prototype would still apply. */
36621#ifdef __cplusplus
36622extern "C"
36623#endif
36624char inflate ();
36625int
36626main ()
36627{
36628return inflate ();
36629 ;
36630 return 0;
36631}
36632_ACEOF
36633rm -f conftest.$ac_objext conftest$ac_exeext
36634if { (ac_try="$ac_link"
36635case "(($ac_try" in
36636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36637 *) ac_try_echo=$ac_try;;
36638esac
36639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36640$as_echo "$ac_try_echo") >&5
36641 (eval "$ac_link") 2>conftest.er1
36642 ac_status=$?
36643 grep -v '^ *+' conftest.er1 >conftest.err
36644 rm -f conftest.er1
36645 cat conftest.err >&5
36646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36647 (exit $ac_status); } && {
36648 test -z "$ac_c_werror_flag" ||
36649 test ! -s conftest.err
36650 } && test -s conftest$ac_exeext && {
36651 test "$cross_compiling" = yes ||
36652 $as_test_x conftest$ac_exeext
36653 }; then
36654 ac_cv_lib_z_inflate=yes
36655else
36656 $as_echo "$as_me: failed program was:" >&5
36657sed 's/^/| /' conftest.$ac_ext >&5
36658
36659 ac_cv_lib_z_inflate=no
36660fi
36661
36662rm -rf conftest.dSYM
36663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36664 conftest$ac_exeext conftest.$ac_ext
36665LIBS=$ac_check_lib_save_LIBS
36666fi
36667{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
36668$as_echo "$ac_cv_lib_z_inflate" >&6; }
36669if test "x$ac_cv_lib_z_inflate" = x""yes; then
36670 passed=`expr $passed + 1`
36671else
36672 failed=`expr $failed + 1`
36673fi
36674
36675 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
36676$as_echo_n "checking for gzseek in -lz... " >&6; }
36677if test "${ac_cv_lib_z_gzseek+set}" = set; then
36678 $as_echo_n "(cached) " >&6
36679else
36680 ac_check_lib_save_LIBS=$LIBS
36681LIBS="-lz $LIBS"
36682cat >conftest.$ac_ext <<_ACEOF
36683/* confdefs.h. */
36684_ACEOF
36685cat confdefs.h >>conftest.$ac_ext
36686cat >>conftest.$ac_ext <<_ACEOF
36687/* end confdefs.h. */
36688
36689/* Override any GCC internal prototype to avoid an error.
36690 Use char because int might match the return type of a GCC
36691 builtin and then its argument prototype would still apply. */
36692#ifdef __cplusplus
36693extern "C"
36694#endif
36695char gzseek ();
36696int
36697main ()
36698{
36699return gzseek ();
36700 ;
36701 return 0;
36702}
36703_ACEOF
36704rm -f conftest.$ac_objext conftest$ac_exeext
36705if { (ac_try="$ac_link"
36706case "(($ac_try" in
36707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36708 *) ac_try_echo=$ac_try;;
36709esac
36710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36711$as_echo "$ac_try_echo") >&5
36712 (eval "$ac_link") 2>conftest.er1
36713 ac_status=$?
36714 grep -v '^ *+' conftest.er1 >conftest.err
36715 rm -f conftest.er1
36716 cat conftest.err >&5
36717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } && {
36719 test -z "$ac_c_werror_flag" ||
36720 test ! -s conftest.err
36721 } && test -s conftest$ac_exeext && {
36722 test "$cross_compiling" = yes ||
36723 $as_test_x conftest$ac_exeext
36724 }; then
36725 ac_cv_lib_z_gzseek=yes
36726else
36727 $as_echo "$as_me: failed program was:" >&5
36728sed 's/^/| /' conftest.$ac_ext >&5
36729
36730 ac_cv_lib_z_gzseek=no
36731fi
36732
36733rm -rf conftest.dSYM
36734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36735 conftest$ac_exeext conftest.$ac_ext
36736LIBS=$ac_check_lib_save_LIBS
36737fi
36738{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
36739$as_echo "$ac_cv_lib_z_gzseek" >&6; }
36740if test "x$ac_cv_lib_z_gzseek" = x""yes; then
36741 passed=`expr $passed + 1`
36742else
36743 failed=`expr $failed + 1`
36744fi
36745
36746 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
36747$as_echo_n "checking for gztell in -lz... " >&6; }
36748if test "${ac_cv_lib_z_gztell+set}" = set; then
36749 $as_echo_n "(cached) " >&6
36750else
36751 ac_check_lib_save_LIBS=$LIBS
36752LIBS="-lz $LIBS"
36753cat >conftest.$ac_ext <<_ACEOF
36754/* confdefs.h. */
36755_ACEOF
36756cat confdefs.h >>conftest.$ac_ext
36757cat >>conftest.$ac_ext <<_ACEOF
36758/* end confdefs.h. */
36759
36760/* Override any GCC internal prototype to avoid an error.
36761 Use char because int might match the return type of a GCC
36762 builtin and then its argument prototype would still apply. */
36763#ifdef __cplusplus
36764extern "C"
36765#endif
36766char gztell ();
36767int
36768main ()
36769{
36770return gztell ();
36771 ;
36772 return 0;
36773}
36774_ACEOF
36775rm -f conftest.$ac_objext conftest$ac_exeext
36776if { (ac_try="$ac_link"
36777case "(($ac_try" in
36778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36779 *) ac_try_echo=$ac_try;;
36780esac
36781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36782$as_echo "$ac_try_echo") >&5
36783 (eval "$ac_link") 2>conftest.er1
36784 ac_status=$?
36785 grep -v '^ *+' conftest.er1 >conftest.err
36786 rm -f conftest.er1
36787 cat conftest.err >&5
36788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); } && {
36790 test -z "$ac_c_werror_flag" ||
36791 test ! -s conftest.err
36792 } && test -s conftest$ac_exeext && {
36793 test "$cross_compiling" = yes ||
36794 $as_test_x conftest$ac_exeext
36795 }; then
36796 ac_cv_lib_z_gztell=yes
36797else
36798 $as_echo "$as_me: failed program was:" >&5
36799sed 's/^/| /' conftest.$ac_ext >&5
36800
36801 ac_cv_lib_z_gztell=no
36802fi
36803
36804rm -rf conftest.dSYM
36805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36806 conftest$ac_exeext conftest.$ac_ext
36807LIBS=$ac_check_lib_save_LIBS
36808fi
36809{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
36810$as_echo "$ac_cv_lib_z_gztell" >&6; }
36811if test "x$ac_cv_lib_z_gztell" = x""yes; then
36812 passed=`expr $passed + 1`
36813else
36814 failed=`expr $failed + 1`
36815fi
36816
36817 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
36818$as_echo_n "checking if ZLIB package is complete... " >&6; }
36819 if test $passed -gt 0; then
36820 if test $failed -gt 0; then
36821 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36822$as_echo "no -- some components failed test" >&6; }
36823 have_zlib='no (failed tests)'
36824 else
36825 ZLIB_LIBS='-lz'
36826 LIBS="$ZLIB_LIBS $LIBS"
36827
36828cat >>confdefs.h <<\_ACEOF
36829#define ZLIB_DELEGATE 1
36830_ACEOF
36831
36832 { $as_echo "$as_me:$LINENO: result: yes" >&5
36833$as_echo "yes" >&6; }
36834 have_zlib='yes'
36835 fi
36836 else
36837 { $as_echo "$as_me:$LINENO: result: no" >&5
36838$as_echo "no" >&6; }
36839 fi
36840fi
36841 if test "$have_zlib" = 'yes'; then
36842 ZLIB_DELEGATE_TRUE=
36843 ZLIB_DELEGATE_FALSE='#'
36844else
36845 ZLIB_DELEGATE_TRUE='#'
36846 ZLIB_DELEGATE_FALSE=
36847fi
36848
36849
36850
36851#
36852# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36853#
36854LIB_DL=''
36855if test "$enable_profiling" = 'yes'; then
36856 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36857$as_echo_n "checking for dlopen in -ldl... " >&6; }
36858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36859 $as_echo_n "(cached) " >&6
36860else
36861 ac_check_lib_save_LIBS=$LIBS
36862LIBS="-ldl $LIBS"
36863cat >conftest.$ac_ext <<_ACEOF
36864/* confdefs.h. */
36865_ACEOF
36866cat confdefs.h >>conftest.$ac_ext
36867cat >>conftest.$ac_ext <<_ACEOF
36868/* end confdefs.h. */
36869
36870/* Override any GCC internal prototype to avoid an error.
36871 Use char because int might match the return type of a GCC
36872 builtin and then its argument prototype would still apply. */
36873#ifdef __cplusplus
36874extern "C"
36875#endif
36876char dlopen ();
36877int
36878main ()
36879{
36880return dlopen ();
36881 ;
36882 return 0;
36883}
36884_ACEOF
36885rm -f conftest.$ac_objext conftest$ac_exeext
36886if { (ac_try="$ac_link"
36887case "(($ac_try" in
36888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36889 *) ac_try_echo=$ac_try;;
36890esac
36891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36892$as_echo "$ac_try_echo") >&5
36893 (eval "$ac_link") 2>conftest.er1
36894 ac_status=$?
36895 grep -v '^ *+' conftest.er1 >conftest.err
36896 rm -f conftest.er1
36897 cat conftest.err >&5
36898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); } && {
36900 test -z "$ac_c_werror_flag" ||
36901 test ! -s conftest.err
36902 } && test -s conftest$ac_exeext && {
36903 test "$cross_compiling" = yes ||
36904 $as_test_x conftest$ac_exeext
36905 }; then
36906 ac_cv_lib_dl_dlopen=yes
36907else
36908 $as_echo "$as_me: failed program was:" >&5
36909sed 's/^/| /' conftest.$ac_ext >&5
36910
36911 ac_cv_lib_dl_dlopen=no
36912fi
36913
36914rm -rf conftest.dSYM
36915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36916 conftest$ac_exeext conftest.$ac_ext
36917LIBS=$ac_check_lib_save_LIBS
36918fi
36919{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36920$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36921if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36922 LIB_DL='-ldl'
36923fi
36924
36925 LIBS="$LIB_DL $LIBS"
36926fi
36927
36928
36929
36930#
36931# Check for Autotrace delegate library.
36932#
36933
36934# Check whether --with-autotrace was given.
36935if test "${with_autotrace+set}" = set; then
36936 withval=$with_autotrace; with_autotrace=$withval
36937else
36938 with_autotrace='no'
36939fi
36940
36941
36942if test "$with_autotrace" != 'yes'; then
36943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36944fi
36945
36946have_autotrace='no'
36947AUTOTRACE_CFLAGS=""
36948AUTOTRACE_LIBS=""
36949AUTOTRACE_PKG=""
36950if test "x$with_autotrace" = "xyes"; then
36951 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36952$as_echo "-------------------------------------------------------------" >&6; }
36953
36954pkg_failed=no
36955{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36956$as_echo_n "checking for AUTOTRACE... " >&6; }
36957
36958if test -n "$AUTOTRACE_CFLAGS"; then
36959 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36960 elif test -n "$PKG_CONFIG"; then
36961 if test -n "$PKG_CONFIG" && \
36962 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36963 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36964 ac_status=$?
36965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); }; then
36967 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36968else
36969 pkg_failed=yes
36970fi
36971 else
36972 pkg_failed=untried
36973fi
36974if test -n "$AUTOTRACE_LIBS"; then
36975 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36976 elif test -n "$PKG_CONFIG"; then
36977 if test -n "$PKG_CONFIG" && \
36978 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36979 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36980 ac_status=$?
36981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); }; then
36983 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36984else
36985 pkg_failed=yes
36986fi
36987 else
36988 pkg_failed=untried
36989fi
36990
36991
36992
36993if test $pkg_failed = yes; then
36994
36995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36996 _pkg_short_errors_supported=yes
36997else
36998 _pkg_short_errors_supported=no
36999fi
37000 if test $_pkg_short_errors_supported = yes; then
37001 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
37002 else
37003 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
37004 fi
37005 # Put the nasty error message in config.log where it belongs
37006 echo "$AUTOTRACE_PKG_ERRORS" >&5
37007
37008 { $as_echo "$as_me:$LINENO: result: no" >&5
37009$as_echo "no" >&6; }
37010 have_autotrace=no
37011elif test $pkg_failed = untried; then
37012 have_autotrace=no
37013else
37014 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
37015 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
37016 { $as_echo "$as_me:$LINENO: result: yes" >&5
37017$as_echo "yes" >&6; }
37018 have_autotrace=yes
37019fi
37020 { $as_echo "$as_me:$LINENO: result: " >&5
37021$as_echo "" >&6; }
37022fi
37023
37024if test "$have_autotrace" = 'yes'; then
37025 failed=0
37026
37027cat >>confdefs.h <<\_ACEOF
37028#define AUTOTRACE_DELEGATE 1
37029_ACEOF
37030
37031 if test "$with_modules" = 'no'; then
37032 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
37033 fi
37034fi
37035
37036 if test "$have_autotrace" = 'yes'; then
37037 AUTOTRACE_DELEGATE_TRUE=
37038 AUTOTRACE_DELEGATE_FALSE='#'
37039else
37040 AUTOTRACE_DELEGATE_TRUE='#'
37041 AUTOTRACE_DELEGATE_FALSE=
37042fi
37043
37044
37045
37046
37047
37048#
37049# Check for Display Postscript delegate library.
37050#
37051
37052# Check whether --with-dps was given.
37053if test "${with_dps+set}" = set; then
37054 withval=$with_dps; with_dps=$withval
37055else
37056 with_dps='yes'
37057fi
37058
37059
37060if test "$with_dps" != 'yes'; then
37061 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
37062fi
37063
37064have_dps='no'
37065DPS_LIBS=''
37066if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
37067 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37068$as_echo "-------------------------------------------------------------" >&6; }
37069 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
37070$as_echo_n "checking for DPS... " >&6; }
37071 { $as_echo "$as_me:$LINENO: result: " >&5
37072$as_echo "" >&6; }
37073 failed=0
37074 passed=0
37075 PERSIST_CPPFLAGS="$CPPFLAGS"
37076 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
37077 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37078 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37079$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37080if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37081 $as_echo_n "(cached) " >&6
37082fi
37083{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37084$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37085else
37086 # Is the header compilable?
37087{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
37088$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
37089cat >conftest.$ac_ext <<_ACEOF
37090/* confdefs.h. */
37091_ACEOF
37092cat confdefs.h >>conftest.$ac_ext
37093cat >>conftest.$ac_ext <<_ACEOF
37094/* end confdefs.h. */
37095$ac_includes_default
37096#include <DPS/dpsXclient.h>
37097_ACEOF
37098rm -f conftest.$ac_objext
37099if { (ac_try="$ac_compile"
37100case "(($ac_try" in
37101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37102 *) ac_try_echo=$ac_try;;
37103esac
37104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37105$as_echo "$ac_try_echo") >&5
37106 (eval "$ac_compile") 2>conftest.er1
37107 ac_status=$?
37108 grep -v '^ *+' conftest.er1 >conftest.err
37109 rm -f conftest.er1
37110 cat conftest.err >&5
37111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112 (exit $ac_status); } && {
37113 test -z "$ac_c_werror_flag" ||
37114 test ! -s conftest.err
37115 } && test -s conftest.$ac_objext; then
37116 ac_header_compiler=yes
37117else
37118 $as_echo "$as_me: failed program was:" >&5
37119sed 's/^/| /' conftest.$ac_ext >&5
37120
37121 ac_header_compiler=no
37122fi
37123
37124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37125{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37126$as_echo "$ac_header_compiler" >&6; }
37127
37128# Is the header present?
37129{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
37130$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
37131cat >conftest.$ac_ext <<_ACEOF
37132/* confdefs.h. */
37133_ACEOF
37134cat confdefs.h >>conftest.$ac_ext
37135cat >>conftest.$ac_ext <<_ACEOF
37136/* end confdefs.h. */
37137#include <DPS/dpsXclient.h>
37138_ACEOF
37139if { (ac_try="$ac_cpp conftest.$ac_ext"
37140case "(($ac_try" in
37141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37142 *) ac_try_echo=$ac_try;;
37143esac
37144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37145$as_echo "$ac_try_echo") >&5
37146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37147 ac_status=$?
37148 grep -v '^ *+' conftest.er1 >conftest.err
37149 rm -f conftest.er1
37150 cat conftest.err >&5
37151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); } >/dev/null && {
37153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37154 test ! -s conftest.err
37155 }; then
37156 ac_header_preproc=yes
37157else
37158 $as_echo "$as_me: failed program was:" >&5
37159sed 's/^/| /' conftest.$ac_ext >&5
37160
37161 ac_header_preproc=no
37162fi
37163
37164rm -f conftest.err conftest.$ac_ext
37165{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37166$as_echo "$ac_header_preproc" >&6; }
37167
37168# So? What about this header?
37169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37170 yes:no: )
37171 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
37172$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37173 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
37174$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
37175 ac_header_preproc=yes
37176 ;;
37177 no:yes:* )
37178 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
37179$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
37180 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
37181$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
37182 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
37183$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
37184 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
37185$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
37186 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
37187$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
37188 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
37189$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
37190 ( cat <<\_ASBOX
37191## ----------------------------------------- ##
37192## Report this to http://www.imagemagick.org ##
37193## ----------------------------------------- ##
37194_ASBOX
37195 ) | sed "s/^/$as_me: WARNING: /" >&2
37196 ;;
37197esac
37198{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37199$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37200if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37201 $as_echo_n "(cached) " >&6
37202else
37203 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
37204fi
37205{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37206$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37207
37208fi
37209if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
37210 passed=`expr $passed + 1`
37211else
37212 failed=`expr $failed + 1`
37213fi
37214
37215
37216 # DPS issues:
37217 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
37218 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
37219 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
37220 # ImageMagick itself doesn't use -lXt.
37221 have_libdps='no'
37222 LIBDPS_XT=''
37223 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37224$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37225if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37226 $as_echo_n "(cached) " >&6
37227else
37228 ac_check_lib_save_LIBS=$LIBS
37229LIBS="-ldps $LIBS"
37230cat >conftest.$ac_ext <<_ACEOF
37231/* confdefs.h. */
37232_ACEOF
37233cat confdefs.h >>conftest.$ac_ext
37234cat >>conftest.$ac_ext <<_ACEOF
37235/* end confdefs.h. */
37236
37237/* Override any GCC internal prototype to avoid an error.
37238 Use char because int might match the return type of a GCC
37239 builtin and then its argument prototype would still apply. */
37240#ifdef __cplusplus
37241extern "C"
37242#endif
37243char DPSInitialize ();
37244int
37245main ()
37246{
37247return DPSInitialize ();
37248 ;
37249 return 0;
37250}
37251_ACEOF
37252rm -f conftest.$ac_objext conftest$ac_exeext
37253if { (ac_try="$ac_link"
37254case "(($ac_try" in
37255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37256 *) ac_try_echo=$ac_try;;
37257esac
37258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37259$as_echo "$ac_try_echo") >&5
37260 (eval "$ac_link") 2>conftest.er1
37261 ac_status=$?
37262 grep -v '^ *+' conftest.er1 >conftest.err
37263 rm -f conftest.er1
37264 cat conftest.err >&5
37265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); } && {
37267 test -z "$ac_c_werror_flag" ||
37268 test ! -s conftest.err
37269 } && test -s conftest$ac_exeext && {
37270 test "$cross_compiling" = yes ||
37271 $as_test_x conftest$ac_exeext
37272 }; then
37273 ac_cv_lib_dps_DPSInitialize=yes
37274else
37275 $as_echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278 ac_cv_lib_dps_DPSInitialize=no
37279fi
37280
37281rm -rf conftest.dSYM
37282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37283 conftest$ac_exeext conftest.$ac_ext
37284LIBS=$ac_check_lib_save_LIBS
37285fi
37286{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37287$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37288if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37289 have_libdps='yes'
37290else
37291 have_libdps='no'
37292fi
37293
37294 if test "$have_libdps" != 'yes'; then
37295 # Unset cache variable so we can try again.
37296 unset ac_cv_lib_dps_DPSInitialize
37297 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37298$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37299if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37300 $as_echo_n "(cached) " >&6
37301else
37302 ac_check_lib_save_LIBS=$LIBS
37303LIBS="-ldps -lXt $LIBS"
37304cat >conftest.$ac_ext <<_ACEOF
37305/* confdefs.h. */
37306_ACEOF
37307cat confdefs.h >>conftest.$ac_ext
37308cat >>conftest.$ac_ext <<_ACEOF
37309/* end confdefs.h. */
37310
37311/* Override any GCC internal prototype to avoid an error.
37312 Use char because int might match the return type of a GCC
37313 builtin and then its argument prototype would still apply. */
37314#ifdef __cplusplus
37315extern "C"
37316#endif
37317char DPSInitialize ();
37318int
37319main ()
37320{
37321return DPSInitialize ();
37322 ;
37323 return 0;
37324}
37325_ACEOF
37326rm -f conftest.$ac_objext conftest$ac_exeext
37327if { (ac_try="$ac_link"
37328case "(($ac_try" in
37329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37330 *) ac_try_echo=$ac_try;;
37331esac
37332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37333$as_echo "$ac_try_echo") >&5
37334 (eval "$ac_link") 2>conftest.er1
37335 ac_status=$?
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
37339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } && {
37341 test -z "$ac_c_werror_flag" ||
37342 test ! -s conftest.err
37343 } && test -s conftest$ac_exeext && {
37344 test "$cross_compiling" = yes ||
37345 $as_test_x conftest$ac_exeext
37346 }; then
37347 ac_cv_lib_dps_DPSInitialize=yes
37348else
37349 $as_echo "$as_me: failed program was:" >&5
37350sed 's/^/| /' conftest.$ac_ext >&5
37351
37352 ac_cv_lib_dps_DPSInitialize=no
37353fi
37354
37355rm -rf conftest.dSYM
37356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37357 conftest$ac_exeext conftest.$ac_ext
37358LIBS=$ac_check_lib_save_LIBS
37359fi
37360{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37361$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37362if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37363 have_libdps='yes'
37364else
37365 have_libdps='no'
37366fi
37367
37368 if test "$have_libdps" = 'yes'; then
37369 LIBDPS_XT='-lXt'
37370 fi
37371 fi
37372 if test "$have_libdps" = 'yes'; then
37373 passed=`expr $passed + 1`
37374 else
37375 failed=`expr $failed + 1`
37376 fi
37377 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
37378$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
37379if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
37380 $as_echo_n "(cached) " >&6
37381else
37382 ac_check_lib_save_LIBS=$LIBS
37383LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
37384cat >conftest.$ac_ext <<_ACEOF
37385/* confdefs.h. */
37386_ACEOF
37387cat confdefs.h >>conftest.$ac_ext
37388cat >>conftest.$ac_ext <<_ACEOF
37389/* end confdefs.h. */
37390
37391/* Override any GCC internal prototype to avoid an error.
37392 Use char because int might match the return type of a GCC
37393 builtin and then its argument prototype would still apply. */
37394#ifdef __cplusplus
37395extern "C"
37396#endif
37397char XDPSPixelsPerPoint ();
37398int
37399main ()
37400{
37401return XDPSPixelsPerPoint ();
37402 ;
37403 return 0;
37404}
37405_ACEOF
37406rm -f conftest.$ac_objext conftest$ac_exeext
37407if { (ac_try="$ac_link"
37408case "(($ac_try" in
37409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37410 *) ac_try_echo=$ac_try;;
37411esac
37412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37413$as_echo "$ac_try_echo") >&5
37414 (eval "$ac_link") 2>conftest.er1
37415 ac_status=$?
37416 grep -v '^ *+' conftest.er1 >conftest.err
37417 rm -f conftest.er1
37418 cat conftest.err >&5
37419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); } && {
37421 test -z "$ac_c_werror_flag" ||
37422 test ! -s conftest.err
37423 } && test -s conftest$ac_exeext && {
37424 test "$cross_compiling" = yes ||
37425 $as_test_x conftest$ac_exeext
37426 }; then
37427 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
37428else
37429 $as_echo "$as_me: failed program was:" >&5
37430sed 's/^/| /' conftest.$ac_ext >&5
37431
37432 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
37433fi
37434
37435rm -rf conftest.dSYM
37436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37437 conftest$ac_exeext conftest.$ac_ext
37438LIBS=$ac_check_lib_save_LIBS
37439fi
37440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
37441$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
37442if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
37443 passed=`expr $passed + 1`
37444else
37445 failed=`expr $failed + 1`
37446fi
37447
37448 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
37449$as_echo_n "checking if DPS package is complete... " >&6; }
37450 if test $passed -gt 0; then
37451 if test $failed -gt 0; then
37452 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37453$as_echo "no -- some components failed test" >&6; }
37454 have_dps='no (failed tests)'
37455 CPPFLAGS="$PERSIST_CPPFLAGS"
37456 else
37457 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
37458 LIBS="$DPS_LIBS $LIBS"
37459
37460cat >>confdefs.h <<\_ACEOF
37461#define DPS_DELEGATE 1
37462_ACEOF
37463
37464 { $as_echo "$as_me:$LINENO: result: yes" >&5
37465$as_echo "yes" >&6; }
37466 have_dps='yes'
37467 fi
37468 else
37469 { $as_echo "$as_me:$LINENO: result: no" >&5
37470$as_echo "no" >&6; }
37471 CPPFLAGS=$PERSIST_CPPFLAGS
37472 fi
37473fi
37474 if test "$have_dps" = 'yes'; then
37475 DPS_DELEGATE_TRUE=
37476 DPS_DELEGATE_FALSE='#'
37477else
37478 DPS_DELEGATE_TRUE='#'
37479 DPS_DELEGATE_FALSE=
37480fi
37481
37482
37483
37484
37485#
37486# Check for DJVU delegate library.
37487#
37488
37489# Check whether --with-djvu was given.
37490if test "${with_djvu+set}" = set; then
37491 withval=$with_djvu; with_djvu=$withval
37492else
37493 with_djvu='yes'
37494fi
37495
37496
37497if test "$with_djvu" != 'yes'; then
37498 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
37499fi
37500
37501have_djvu='no'
37502DJVU_LIBS=''
37503if test "$with_djvu" != 'no'; then
37504 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37505$as_echo "-------------------------------------------------------------" >&6; }
37506 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
37507$as_echo_n "checking for DJVU... " >&6; }
37508 { $as_echo "$as_me:$LINENO: result: " >&5
37509$as_echo "" >&6; }
37510 failed=0
37511 passed=0
37512 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37513 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37514$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37515if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37516 $as_echo_n "(cached) " >&6
37517fi
37518{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37519$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37520else
37521 # Is the header compilable?
37522{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
37523$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
37524cat >conftest.$ac_ext <<_ACEOF
37525/* confdefs.h. */
37526_ACEOF
37527cat confdefs.h >>conftest.$ac_ext
37528cat >>conftest.$ac_ext <<_ACEOF
37529/* end confdefs.h. */
37530$ac_includes_default
37531#include <libdjvu/ddjvuapi.h>
37532_ACEOF
37533rm -f conftest.$ac_objext
37534if { (ac_try="$ac_compile"
37535case "(($ac_try" in
37536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37537 *) ac_try_echo=$ac_try;;
37538esac
37539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37540$as_echo "$ac_try_echo") >&5
37541 (eval "$ac_compile") 2>conftest.er1
37542 ac_status=$?
37543 grep -v '^ *+' conftest.er1 >conftest.err
37544 rm -f conftest.er1
37545 cat conftest.err >&5
37546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547 (exit $ac_status); } && {
37548 test -z "$ac_c_werror_flag" ||
37549 test ! -s conftest.err
37550 } && test -s conftest.$ac_objext; then
37551 ac_header_compiler=yes
37552else
37553 $as_echo "$as_me: failed program was:" >&5
37554sed 's/^/| /' conftest.$ac_ext >&5
37555
37556 ac_header_compiler=no
37557fi
37558
37559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37560{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37561$as_echo "$ac_header_compiler" >&6; }
37562
37563# Is the header present?
37564{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
37565$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
37566cat >conftest.$ac_ext <<_ACEOF
37567/* confdefs.h. */
37568_ACEOF
37569cat confdefs.h >>conftest.$ac_ext
37570cat >>conftest.$ac_ext <<_ACEOF
37571/* end confdefs.h. */
37572#include <libdjvu/ddjvuapi.h>
37573_ACEOF
37574if { (ac_try="$ac_cpp conftest.$ac_ext"
37575case "(($ac_try" in
37576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37577 *) ac_try_echo=$ac_try;;
37578esac
37579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37580$as_echo "$ac_try_echo") >&5
37581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37582 ac_status=$?
37583 grep -v '^ *+' conftest.er1 >conftest.err
37584 rm -f conftest.er1
37585 cat conftest.err >&5
37586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); } >/dev/null && {
37588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37589 test ! -s conftest.err
37590 }; then
37591 ac_header_preproc=yes
37592else
37593 $as_echo "$as_me: failed program was:" >&5
37594sed 's/^/| /' conftest.$ac_ext >&5
37595
37596 ac_header_preproc=no
37597fi
37598
37599rm -f conftest.err conftest.$ac_ext
37600{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37601$as_echo "$ac_header_preproc" >&6; }
37602
37603# So? What about this header?
37604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37605 yes:no: )
37606 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
37607$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37608 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
37609$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
37610 ac_header_preproc=yes
37611 ;;
37612 no:yes:* )
37613 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
37614$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
37615 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
37616$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
37617 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
37618$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
37619 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
37620$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
37621 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
37622$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
37623 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
37624$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
37625 ( cat <<\_ASBOX
37626## ----------------------------------------- ##
37627## Report this to http://www.imagemagick.org ##
37628## ----------------------------------------- ##
37629_ASBOX
37630 ) | sed "s/^/$as_me: WARNING: /" >&2
37631 ;;
37632esac
37633{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37634$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37635if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37636 $as_echo_n "(cached) " >&6
37637else
37638 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
37639fi
37640{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37641$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37642
37643fi
37644if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
37645 passed=`expr $passed + 1`
37646else
37647 failed=`expr $failed + 1`
37648fi
37649
37650
37651 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
37652$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
37653if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
37654 $as_echo_n "(cached) " >&6
37655else
37656 ac_check_lib_save_LIBS=$LIBS
37657LIBS="-ldjvulibre $LIBS"
37658cat >conftest.$ac_ext <<_ACEOF
37659/* confdefs.h. */
37660_ACEOF
37661cat confdefs.h >>conftest.$ac_ext
37662cat >>conftest.$ac_ext <<_ACEOF
37663/* end confdefs.h. */
37664
37665/* Override any GCC internal prototype to avoid an error.
37666 Use char because int might match the return type of a GCC
37667 builtin and then its argument prototype would still apply. */
37668#ifdef __cplusplus
37669extern "C"
37670#endif
37671char ddjvu_context_create ();
37672int
37673main ()
37674{
37675return ddjvu_context_create ();
37676 ;
37677 return 0;
37678}
37679_ACEOF
37680rm -f conftest.$ac_objext conftest$ac_exeext
37681if { (ac_try="$ac_link"
37682case "(($ac_try" in
37683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37684 *) ac_try_echo=$ac_try;;
37685esac
37686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37687$as_echo "$ac_try_echo") >&5
37688 (eval "$ac_link") 2>conftest.er1
37689 ac_status=$?
37690 grep -v '^ *+' conftest.er1 >conftest.err
37691 rm -f conftest.er1
37692 cat conftest.err >&5
37693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); } && {
37695 test -z "$ac_c_werror_flag" ||
37696 test ! -s conftest.err
37697 } && test -s conftest$ac_exeext && {
37698 test "$cross_compiling" = yes ||
37699 $as_test_x conftest$ac_exeext
37700 }; then
37701 ac_cv_lib_djvulibre_ddjvu_context_create=yes
37702else
37703 $as_echo "$as_me: failed program was:" >&5
37704sed 's/^/| /' conftest.$ac_ext >&5
37705
37706 ac_cv_lib_djvulibre_ddjvu_context_create=no
37707fi
37708
37709rm -rf conftest.dSYM
37710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37711 conftest$ac_exeext conftest.$ac_ext
37712LIBS=$ac_check_lib_save_LIBS
37713fi
37714{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
37715$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
37716if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
37717 passed=`expr $passed + 1`
37718else
37719 failed=`expr $failed + 1`
37720fi
37721
37722 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
37723$as_echo_n "checking if DJVU package is complete... " >&6; }
37724 if test $passed -gt 0; then
37725 if test $failed -gt 0; then
37726 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37727$as_echo "no -- some components failed test" >&6; }
37728 have_djvu='no (failed tests)'
37729 else
37730 DJVU_LIBS='-ldjvulibre'
37731 LIBS="$DJVU_LIBS $LIBS"
37732
37733cat >>confdefs.h <<\_ACEOF
37734#define DJVU_DELEGATE 1
37735_ACEOF
37736
37737 { $as_echo "$as_me:$LINENO: result: yes" >&5
37738$as_echo "yes" >&6; }
37739 have_djvu='yes'
37740 fi
37741 else
37742 { $as_echo "$as_me:$LINENO: result: no" >&5
37743$as_echo "no" >&6; }
37744 fi
37745fi
37746 if test "$have_djvu" = 'yes'; then
37747 DJVU_DELEGATE_TRUE=
37748 DJVU_DELEGATE_FALSE='#'
37749else
37750 DJVU_DELEGATE_TRUE='#'
37751 DJVU_DELEGATE_FALSE=
37752fi
37753
37754
37755
37756
37757#
37758# Check for FFTW delegate library.
37759#
37760
37761# Check whether --with-fftw was given.
37762if test "${with_fftw+set}" = set; then
37763 withval=$with_fftw; with_fftw=$withval
37764else
37765 with_fftw='yes'
37766fi
37767
37768
37769if test "$with_fftw" != 'yes'; then
37770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
37771fi
37772
37773have_fftw='no'
37774FFTW_LIBS=''
37775if test "$with_fftw" != 'no'; then
37776 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37777$as_echo "-------------------------------------------------------------" >&6; }
37778 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
37779$as_echo_n "checking for FFTW... " >&6; }
37780 { $as_echo "$as_me:$LINENO: result: " >&5
37781$as_echo "" >&6; }
37782 failed=0
37783 passed=0
37784 if test "${ac_cv_header_fftw3_h+set}" = set; then
37785 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37786$as_echo_n "checking for fftw3.h... " >&6; }
37787if test "${ac_cv_header_fftw3_h+set}" = set; then
37788 $as_echo_n "(cached) " >&6
37789fi
37790{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37791$as_echo "$ac_cv_header_fftw3_h" >&6; }
37792else
37793 # Is the header compilable?
37794{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
37795$as_echo_n "checking fftw3.h usability... " >&6; }
37796cat >conftest.$ac_ext <<_ACEOF
37797/* confdefs.h. */
37798_ACEOF
37799cat confdefs.h >>conftest.$ac_ext
37800cat >>conftest.$ac_ext <<_ACEOF
37801/* end confdefs.h. */
37802$ac_includes_default
37803#include <fftw3.h>
37804_ACEOF
37805rm -f conftest.$ac_objext
37806if { (ac_try="$ac_compile"
37807case "(($ac_try" in
37808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37809 *) ac_try_echo=$ac_try;;
37810esac
37811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37812$as_echo "$ac_try_echo") >&5
37813 (eval "$ac_compile") 2>conftest.er1
37814 ac_status=$?
37815 grep -v '^ *+' conftest.er1 >conftest.err
37816 rm -f conftest.er1
37817 cat conftest.err >&5
37818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); } && {
37820 test -z "$ac_c_werror_flag" ||
37821 test ! -s conftest.err
37822 } && test -s conftest.$ac_objext; then
37823 ac_header_compiler=yes
37824else
37825 $as_echo "$as_me: failed program was:" >&5
37826sed 's/^/| /' conftest.$ac_ext >&5
37827
37828 ac_header_compiler=no
37829fi
37830
37831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37832{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37833$as_echo "$ac_header_compiler" >&6; }
37834
37835# Is the header present?
37836{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
37837$as_echo_n "checking fftw3.h presence... " >&6; }
37838cat >conftest.$ac_ext <<_ACEOF
37839/* confdefs.h. */
37840_ACEOF
37841cat confdefs.h >>conftest.$ac_ext
37842cat >>conftest.$ac_ext <<_ACEOF
37843/* end confdefs.h. */
37844#include <fftw3.h>
37845_ACEOF
37846if { (ac_try="$ac_cpp conftest.$ac_ext"
37847case "(($ac_try" in
37848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37849 *) ac_try_echo=$ac_try;;
37850esac
37851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37852$as_echo "$ac_try_echo") >&5
37853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37854 ac_status=$?
37855 grep -v '^ *+' conftest.er1 >conftest.err
37856 rm -f conftest.er1
37857 cat conftest.err >&5
37858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); } >/dev/null && {
37860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37861 test ! -s conftest.err
37862 }; then
37863 ac_header_preproc=yes
37864else
37865 $as_echo "$as_me: failed program was:" >&5
37866sed 's/^/| /' conftest.$ac_ext >&5
37867
37868 ac_header_preproc=no
37869fi
37870
37871rm -f conftest.err conftest.$ac_ext
37872{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37873$as_echo "$ac_header_preproc" >&6; }
37874
37875# So? What about this header?
37876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37877 yes:no: )
37878 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37879$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37880 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37881$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37882 ac_header_preproc=yes
37883 ;;
37884 no:yes:* )
37885 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37886$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37887 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37888$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37889 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37890$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37891 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37892$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37893 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37894$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37895 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37896$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37897 ( cat <<\_ASBOX
37898## ----------------------------------------- ##
37899## Report this to http://www.imagemagick.org ##
37900## ----------------------------------------- ##
37901_ASBOX
37902 ) | sed "s/^/$as_me: WARNING: /" >&2
37903 ;;
37904esac
37905{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37906$as_echo_n "checking for fftw3.h... " >&6; }
37907if test "${ac_cv_header_fftw3_h+set}" = set; then
37908 $as_echo_n "(cached) " >&6
37909else
37910 ac_cv_header_fftw3_h=$ac_header_preproc
37911fi
37912{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37913$as_echo "$ac_cv_header_fftw3_h" >&6; }
37914
37915fi
37916if test "x$ac_cv_header_fftw3_h" = x""yes; then
37917 passed=`expr $passed + 1`
37918else
37919 failed=`expr $failed + 1`
37920fi
37921
37922
37923 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37924$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37925if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37926 $as_echo_n "(cached) " >&6
37927else
37928 ac_check_lib_save_LIBS=$LIBS
37929LIBS="-lfftw3 $LIBS"
37930cat >conftest.$ac_ext <<_ACEOF
37931/* confdefs.h. */
37932_ACEOF
37933cat confdefs.h >>conftest.$ac_ext
37934cat >>conftest.$ac_ext <<_ACEOF
37935/* end confdefs.h. */
37936
37937/* Override any GCC internal prototype to avoid an error.
37938 Use char because int might match the return type of a GCC
37939 builtin and then its argument prototype would still apply. */
37940#ifdef __cplusplus
37941extern "C"
37942#endif
37943char fftw_execute ();
37944int
37945main ()
37946{
37947return fftw_execute ();
37948 ;
37949 return 0;
37950}
37951_ACEOF
37952rm -f conftest.$ac_objext conftest$ac_exeext
37953if { (ac_try="$ac_link"
37954case "(($ac_try" in
37955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37956 *) ac_try_echo=$ac_try;;
37957esac
37958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37959$as_echo "$ac_try_echo") >&5
37960 (eval "$ac_link") 2>conftest.er1
37961 ac_status=$?
37962 grep -v '^ *+' conftest.er1 >conftest.err
37963 rm -f conftest.er1
37964 cat conftest.err >&5
37965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37966 (exit $ac_status); } && {
37967 test -z "$ac_c_werror_flag" ||
37968 test ! -s conftest.err
37969 } && test -s conftest$ac_exeext && {
37970 test "$cross_compiling" = yes ||
37971 $as_test_x conftest$ac_exeext
37972 }; then
37973 ac_cv_lib_fftw3_fftw_execute=yes
37974else
37975 $as_echo "$as_me: failed program was:" >&5
37976sed 's/^/| /' conftest.$ac_ext >&5
37977
37978 ac_cv_lib_fftw3_fftw_execute=no
37979fi
37980
37981rm -rf conftest.dSYM
37982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37983 conftest$ac_exeext conftest.$ac_ext
37984LIBS=$ac_check_lib_save_LIBS
37985fi
37986{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37987$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37988if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37989 passed=`expr $passed + 1`
37990else
37991 failed=`expr $failed + 1`
37992fi
37993
37994 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37995$as_echo_n "checking if FFTW package is complete... " >&6; }
37996 if test $passed -gt 0; then
37997 if test $failed -gt 0; then
37998 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37999$as_echo "no -- some components failed test" >&6; }
38000 have_fftw='no (failed tests)'
38001 else
38002 FFTW_LIBS='-lfftw3'
38003 LIBS="$FFTW_LIBS $LIBS"
38004
38005cat >>confdefs.h <<\_ACEOF
38006#define FFTW_DELEGATE 1
38007_ACEOF
38008
38009 { $as_echo "$as_me:$LINENO: result: yes" >&5
38010$as_echo "yes" >&6; }
38011 have_fftw='yes'
38012 fi
38013 else
38014 { $as_echo "$as_me:$LINENO: result: no" >&5
38015$as_echo "no" >&6; }
38016 fi
38017fi
38018 if test "$have_fftw" = 'yes'; then
38019 FFTW_DELEGATE_TRUE=
38020 FFTW_DELEGATE_FALSE='#'
38021else
38022 FFTW_DELEGATE_TRUE='#'
38023 FFTW_DELEGATE_FALSE=
38024fi
38025
38026
38027
38028
38029#
38030# Check for FlashPIX delegate library.
38031#
38032
38033# Check whether --with-fpx was given.
38034if test "${with_fpx+set}" = set; then
38035 withval=$with_fpx; with_fpx=$withval
38036else
38037 with_fpx='yes'
38038fi
38039
38040
38041if test "$with_fpx" != 'yes'; then
38042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
38043fi
38044
38045have_fpx='no'
38046FPX_LIBS=''
38047if test "$with_fpx" != 'no'; then
38048 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38049$as_echo "-------------------------------------------------------------" >&6; }
38050 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
38051$as_echo_n "checking for FlashPIX... " >&6; }
38052 { $as_echo "$as_me:$LINENO: result: " >&5
38053$as_echo "" >&6; }
38054 failed=0
38055 passed=0
38056 ac_ext=cpp
38057ac_cpp='$CXXCPP $CPPFLAGS'
38058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38061
38062
38063if test "${ac_cv_header_fpxlib_h+set}" = set; then
38064 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38065$as_echo_n "checking for fpxlib.h... " >&6; }
38066if test "${ac_cv_header_fpxlib_h+set}" = set; then
38067 $as_echo_n "(cached) " >&6
38068fi
38069{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38070$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38071else
38072 # Is the header compilable?
38073{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
38074$as_echo_n "checking fpxlib.h usability... " >&6; }
38075cat >conftest.$ac_ext <<_ACEOF
38076/* confdefs.h. */
38077_ACEOF
38078cat confdefs.h >>conftest.$ac_ext
38079cat >>conftest.$ac_ext <<_ACEOF
38080/* end confdefs.h. */
38081$ac_includes_default
38082#include <fpxlib.h>
38083_ACEOF
38084rm -f conftest.$ac_objext
38085if { (ac_try="$ac_compile"
38086case "(($ac_try" in
38087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38088 *) ac_try_echo=$ac_try;;
38089esac
38090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38091$as_echo "$ac_try_echo") >&5
38092 (eval "$ac_compile") 2>conftest.er1
38093 ac_status=$?
38094 grep -v '^ *+' conftest.er1 >conftest.err
38095 rm -f conftest.er1
38096 cat conftest.err >&5
38097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098 (exit $ac_status); } && {
38099 test -z "$ac_cxx_werror_flag" ||
38100 test ! -s conftest.err
38101 } && test -s conftest.$ac_objext; then
38102 ac_header_compiler=yes
38103else
38104 $as_echo "$as_me: failed program was:" >&5
38105sed 's/^/| /' conftest.$ac_ext >&5
38106
38107 ac_header_compiler=no
38108fi
38109
38110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38111{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38112$as_echo "$ac_header_compiler" >&6; }
38113
38114# Is the header present?
38115{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
38116$as_echo_n "checking fpxlib.h presence... " >&6; }
38117cat >conftest.$ac_ext <<_ACEOF
38118/* confdefs.h. */
38119_ACEOF
38120cat confdefs.h >>conftest.$ac_ext
38121cat >>conftest.$ac_ext <<_ACEOF
38122/* end confdefs.h. */
38123#include <fpxlib.h>
38124_ACEOF
38125if { (ac_try="$ac_cpp conftest.$ac_ext"
38126case "(($ac_try" in
38127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128 *) ac_try_echo=$ac_try;;
38129esac
38130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38131$as_echo "$ac_try_echo") >&5
38132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38133 ac_status=$?
38134 grep -v '^ *+' conftest.er1 >conftest.err
38135 rm -f conftest.er1
38136 cat conftest.err >&5
38137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38138 (exit $ac_status); } >/dev/null && {
38139 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
38140 test ! -s conftest.err
38141 }; then
38142 ac_header_preproc=yes
38143else
38144 $as_echo "$as_me: failed program was:" >&5
38145sed 's/^/| /' conftest.$ac_ext >&5
38146
38147 ac_header_preproc=no
38148fi
38149
38150rm -f conftest.err conftest.$ac_ext
38151{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38152$as_echo "$ac_header_preproc" >&6; }
38153
38154# So? What about this header?
38155case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38156 yes:no: )
38157 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38158$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38159 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
38160$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
38161 ac_header_preproc=yes
38162 ;;
38163 no:yes:* )
38164 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
38165$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
38166 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
38167$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
38168 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
38169$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
38170 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
38171$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
38172 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
38173$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
38174 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
38175$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
38176 ( cat <<\_ASBOX
38177## ----------------------------------------- ##
38178## Report this to http://www.imagemagick.org ##
38179## ----------------------------------------- ##
38180_ASBOX
38181 ) | sed "s/^/$as_me: WARNING: /" >&2
38182 ;;
38183esac
38184{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38185$as_echo_n "checking for fpxlib.h... " >&6; }
38186if test "${ac_cv_header_fpxlib_h+set}" = set; then
38187 $as_echo_n "(cached) " >&6
38188else
38189 ac_cv_header_fpxlib_h=$ac_header_preproc
38190fi
38191{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38192$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38193
38194fi
38195if test "x$ac_cv_header_fpxlib_h" = x""yes; then
38196 passed=`expr $passed + 1`
38197else
38198 failed=`expr $failed + 1`
38199fi
38200
38201
38202 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
38203$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
38204if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
38205 $as_echo_n "(cached) " >&6
38206else
38207 ac_check_lib_save_LIBS=$LIBS
38208LIBS="-lfpx $LIBS"
38209cat >conftest.$ac_ext <<_ACEOF
38210/* confdefs.h. */
38211_ACEOF
38212cat confdefs.h >>conftest.$ac_ext
38213cat >>conftest.$ac_ext <<_ACEOF
38214/* end confdefs.h. */
38215
38216/* Override any GCC internal prototype to avoid an error.
38217 Use char because int might match the return type of a GCC
38218 builtin and then its argument prototype would still apply. */
38219#ifdef __cplusplus
38220extern "C"
38221#endif
38222char FPX_OpenImageByFilename ();
38223int
38224main ()
38225{
38226return FPX_OpenImageByFilename ();
38227 ;
38228 return 0;
38229}
38230_ACEOF
38231rm -f conftest.$ac_objext conftest$ac_exeext
38232if { (ac_try="$ac_link"
38233case "(($ac_try" in
38234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235 *) ac_try_echo=$ac_try;;
38236esac
38237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38238$as_echo "$ac_try_echo") >&5
38239 (eval "$ac_link") 2>conftest.er1
38240 ac_status=$?
38241 grep -v '^ *+' conftest.er1 >conftest.err
38242 rm -f conftest.er1
38243 cat conftest.err >&5
38244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); } && {
38246 test -z "$ac_cxx_werror_flag" ||
38247 test ! -s conftest.err
38248 } && test -s conftest$ac_exeext && {
38249 test "$cross_compiling" = yes ||
38250 $as_test_x conftest$ac_exeext
38251 }; then
38252 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
38253else
38254 $as_echo "$as_me: failed program was:" >&5
38255sed 's/^/| /' conftest.$ac_ext >&5
38256
38257 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
38258fi
38259
38260rm -rf conftest.dSYM
38261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38262 conftest$ac_exeext conftest.$ac_ext
38263LIBS=$ac_check_lib_save_LIBS
38264fi
38265{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
38266$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
38267if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
38268 passed=`expr $passed + 1`
38269else
38270 failed=`expr $failed + 1`
38271fi
38272
38273 ac_ext=c
38274ac_cpp='$CPP $CPPFLAGS'
38275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38277ac_compiler_gnu=$ac_cv_c_compiler_gnu
38278
38279 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
38280$as_echo_n "checking if FlashPIX package is complete... " >&6; }
38281 if test $passed -gt 0; then
38282 if test $failed -gt 0; then
38283 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38284$as_echo "no -- some components failed test" >&6; }
38285 have_fpx='no (failed tests)'
38286 else
38287 FPX_LIBS='-lfpx'
38288
38289cat >>confdefs.h <<\_ACEOF
38290#define FPX_DELEGATE 1
38291_ACEOF
38292
38293 { $as_echo "$as_me:$LINENO: result: yes" >&5
38294$as_echo "yes" >&6; }
38295 have_fpx='yes'
38296 PERLMAINCC="$CXX"
38297 fi
38298 else
38299 { $as_echo "$as_me:$LINENO: result: no" >&5
38300$as_echo "no" >&6; }
38301 fi
38302fi
38303 if test "$have_fpx" = 'yes'; then
38304 FPX_DELEGATE_TRUE=
38305 FPX_DELEGATE_FALSE='#'
38306else
38307 FPX_DELEGATE_TRUE='#'
38308 FPX_DELEGATE_FALSE=
38309fi
38310
38311
38312
38313
38314#
38315# Check for fontconfig delegate library.
38316#
38317
38318# Check whether --with-fontconfig was given.
38319if test "${with_fontconfig+set}" = set; then
38320 withval=$with_fontconfig; with_fontconfig=$withval
38321else
38322 with_fontconfig=$have_x
38323fi
38324
38325
38326if test "$with_fontconfig" != 'yes'; then
38327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
38328fi
38329
38330have_fontconfig='no'
38331FONTCONFIG_CFLAGS=""
38332FONTCONFIG_LIBS=""
38333FONTCONFIG_PKG=""
38334if test "x$with_fontconfig" = "xyes"; then
38335 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38336$as_echo "-------------------------------------------------------------" >&6; }
38337
38338pkg_failed=no
38339{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
38340$as_echo_n "checking for FONTCONFIG... " >&6; }
38341
38342if test -n "$FONTCONFIG_CFLAGS"; then
38343 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
38344 elif test -n "$PKG_CONFIG"; then
38345 if test -n "$PKG_CONFIG" && \
38346 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38347 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38348 ac_status=$?
38349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38350 (exit $ac_status); }; then
38351 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
38352else
38353 pkg_failed=yes
38354fi
38355 else
38356 pkg_failed=untried
38357fi
38358if test -n "$FONTCONFIG_LIBS"; then
38359 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
38360 elif test -n "$PKG_CONFIG"; then
38361 if test -n "$PKG_CONFIG" && \
38362 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38363 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38364 ac_status=$?
38365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; then
38367 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
38368else
38369 pkg_failed=yes
38370fi
38371 else
38372 pkg_failed=untried
38373fi
38374
38375
38376
38377if test $pkg_failed = yes; then
38378
38379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38380 _pkg_short_errors_supported=yes
38381else
38382 _pkg_short_errors_supported=no
38383fi
38384 if test $_pkg_short_errors_supported = yes; then
38385 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
38386 else
38387 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
38388 fi
38389 # Put the nasty error message in config.log where it belongs
38390 echo "$FONTCONFIG_PKG_ERRORS" >&5
38391
38392 { $as_echo "$as_me:$LINENO: result: no" >&5
38393$as_echo "no" >&6; }
38394 have_fontconfig=no
38395elif test $pkg_failed = untried; then
38396 have_fontconfig=no
38397else
38398 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
38399 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
38400 { $as_echo "$as_me:$LINENO: result: yes" >&5
38401$as_echo "yes" >&6; }
38402 have_fontconfig=yes
38403fi
38404 { $as_echo "$as_me:$LINENO: result: " >&5
38405$as_echo "" >&6; }
38406fi
38407
38408if test "$have_fontconfig" = 'yes'; then
38409
38410cat >>confdefs.h <<\_ACEOF
38411#define FONTCONFIG_DELEGATE 1
38412_ACEOF
38413
38414 if test "$with_modules" = 'no'; then
38415 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
38416 fi
38417fi
38418
38419 if test "$have_fontconfig" = 'yes'; then
38420 FONTCONFIG_DELEGATE_TRUE=
38421 FONTCONFIG_DELEGATE_FALSE='#'
38422else
38423 FONTCONFIG_DELEGATE_TRUE='#'
38424 FONTCONFIG_DELEGATE_FALSE=
38425fi
38426
38427
38428
38429
38430
38431#
38432# Check for freetype delegate library.
38433#
38434
38435# Check whether --with-freetype was given.
38436if test "${with_freetype+set}" = set; then
38437 withval=$with_freetype; with_freetype=$withval
38438else
38439 with_freetype='yes'
38440fi
38441
38442
38443
38444if test "$with_freetype" != 'yes'; then
38445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
38446fi
38447
38448have_freetype='no'
38449FREETYPE_LIBS=''
38450if test "$with_freetype" != 'no'; then
38451 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38452$as_echo "-------------------------------------------------------------" >&6; }
38453 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
38454$as_echo_n "checking for FreeType 2.0... " >&6; }
38455 { $as_echo "$as_me:$LINENO: result: " >&5
38456$as_echo "" >&6; }
38457 failed=0
38458 passed=0
cristy66291112009-10-03 22:44:36 +000038459 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038460 PERSIST_CPPFLAGS="$CPPFLAGS"
38461 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
38462 :
38463 else
38464 freetype_config=''
38465 for ac_prog in freetype-config
38466do
38467 # Extract the first word of "$ac_prog", so it can be a program name with args.
38468set dummy $ac_prog; ac_word=$2
38469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38470$as_echo_n "checking for $ac_word... " >&6; }
38471if test "${ac_cv_prog_freetype_config+set}" = set; then
38472 $as_echo_n "(cached) " >&6
38473else
38474 if test -n "$freetype_config"; then
38475 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
38476else
38477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38478for as_dir in $PATH
38479do
38480 IFS=$as_save_IFS
38481 test -z "$as_dir" && as_dir=.
38482 for ac_exec_ext in '' $ac_executable_extensions; do
38483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38484 ac_cv_prog_freetype_config="$ac_prog"
38485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38486 break 2
38487 fi
38488done
38489done
38490IFS=$as_save_IFS
38491
38492fi
38493fi
38494freetype_config=$ac_cv_prog_freetype_config
38495if test -n "$freetype_config"; then
38496 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
38497$as_echo "$freetype_config" >&6; }
38498else
38499 { $as_echo "$as_me:$LINENO: result: no" >&5
38500$as_echo "no" >&6; }
38501fi
38502
38503
38504 test -n "$freetype_config" && break
38505done
38506 if test -n "$freetype_config"; then
38507 freetype_cflags=`$freetype_config --cflags`
38508 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000038509 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000038510 CPPFLAGS="$freetype_cflags $CPPFLAGS"
38511 fi
38512 fi
38513
38514 if test "$FREETYPE_LIBS" = ''; then
38515 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
38516$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
38517if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
38518 $as_echo_n "(cached) " >&6
38519else
38520 ac_check_lib_save_LIBS=$LIBS
38521LIBS="-lfreetype $LIBS"
38522cat >conftest.$ac_ext <<_ACEOF
38523/* confdefs.h. */
38524_ACEOF
38525cat confdefs.h >>conftest.$ac_ext
38526cat >>conftest.$ac_ext <<_ACEOF
38527/* end confdefs.h. */
38528
38529/* Override any GCC internal prototype to avoid an error.
38530 Use char because int might match the return type of a GCC
38531 builtin and then its argument prototype would still apply. */
38532#ifdef __cplusplus
38533extern "C"
38534#endif
38535char FT_Init_FreeType ();
38536int
38537main ()
38538{
38539return FT_Init_FreeType ();
38540 ;
38541 return 0;
38542}
38543_ACEOF
38544rm -f conftest.$ac_objext conftest$ac_exeext
38545if { (ac_try="$ac_link"
38546case "(($ac_try" in
38547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38548 *) ac_try_echo=$ac_try;;
38549esac
38550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38551$as_echo "$ac_try_echo") >&5
38552 (eval "$ac_link") 2>conftest.er1
38553 ac_status=$?
38554 grep -v '^ *+' conftest.er1 >conftest.err
38555 rm -f conftest.er1
38556 cat conftest.err >&5
38557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); } && {
38559 test -z "$ac_c_werror_flag" ||
38560 test ! -s conftest.err
38561 } && test -s conftest$ac_exeext && {
38562 test "$cross_compiling" = yes ||
38563 $as_test_x conftest$ac_exeext
38564 }; then
38565 ac_cv_lib_freetype_FT_Init_FreeType=yes
38566else
38567 $as_echo "$as_me: failed program was:" >&5
38568sed 's/^/| /' conftest.$ac_ext >&5
38569
38570 ac_cv_lib_freetype_FT_Init_FreeType=no
38571fi
38572
38573rm -rf conftest.dSYM
38574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38575 conftest$ac_exeext conftest.$ac_ext
38576LIBS=$ac_check_lib_save_LIBS
38577fi
38578{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
38579$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
38580if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
38581 FREETYPE_LIBS='-lfreetype'
38582fi
38583
38584 if test "$FREETYPE_LIBS" != ''; then
38585 passed=`expr $passed + 1`
38586 else
38587 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000038588 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038589 fi
38590 fi
38591
38592 if test "${ac_cv_header_ft2build_h+set}" = set; then
38593 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38594$as_echo_n "checking for ft2build.h... " >&6; }
38595if test "${ac_cv_header_ft2build_h+set}" = set; then
38596 $as_echo_n "(cached) " >&6
38597fi
38598{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38599$as_echo "$ac_cv_header_ft2build_h" >&6; }
38600else
38601 # Is the header compilable?
38602{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
38603$as_echo_n "checking ft2build.h usability... " >&6; }
38604cat >conftest.$ac_ext <<_ACEOF
38605/* confdefs.h. */
38606_ACEOF
38607cat confdefs.h >>conftest.$ac_ext
38608cat >>conftest.$ac_ext <<_ACEOF
38609/* end confdefs.h. */
38610$ac_includes_default
38611#include <ft2build.h>
38612_ACEOF
38613rm -f conftest.$ac_objext
38614if { (ac_try="$ac_compile"
38615case "(($ac_try" in
38616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38617 *) ac_try_echo=$ac_try;;
38618esac
38619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38620$as_echo "$ac_try_echo") >&5
38621 (eval "$ac_compile") 2>conftest.er1
38622 ac_status=$?
38623 grep -v '^ *+' conftest.er1 >conftest.err
38624 rm -f conftest.er1
38625 cat conftest.err >&5
38626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); } && {
38628 test -z "$ac_c_werror_flag" ||
38629 test ! -s conftest.err
38630 } && test -s conftest.$ac_objext; then
38631 ac_header_compiler=yes
38632else
38633 $as_echo "$as_me: failed program was:" >&5
38634sed 's/^/| /' conftest.$ac_ext >&5
38635
38636 ac_header_compiler=no
38637fi
38638
38639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38640{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38641$as_echo "$ac_header_compiler" >&6; }
38642
38643# Is the header present?
38644{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
38645$as_echo_n "checking ft2build.h presence... " >&6; }
38646cat >conftest.$ac_ext <<_ACEOF
38647/* confdefs.h. */
38648_ACEOF
38649cat confdefs.h >>conftest.$ac_ext
38650cat >>conftest.$ac_ext <<_ACEOF
38651/* end confdefs.h. */
38652#include <ft2build.h>
38653_ACEOF
38654if { (ac_try="$ac_cpp conftest.$ac_ext"
38655case "(($ac_try" in
38656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38657 *) ac_try_echo=$ac_try;;
38658esac
38659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38660$as_echo "$ac_try_echo") >&5
38661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38662 ac_status=$?
38663 grep -v '^ *+' conftest.er1 >conftest.err
38664 rm -f conftest.er1
38665 cat conftest.err >&5
38666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); } >/dev/null && {
38668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38669 test ! -s conftest.err
38670 }; then
38671 ac_header_preproc=yes
38672else
38673 $as_echo "$as_me: failed program was:" >&5
38674sed 's/^/| /' conftest.$ac_ext >&5
38675
38676 ac_header_preproc=no
38677fi
38678
38679rm -f conftest.err conftest.$ac_ext
38680{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38681$as_echo "$ac_header_preproc" >&6; }
38682
38683# So? What about this header?
38684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38685 yes:no: )
38686 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
38687$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38688 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
38689$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
38690 ac_header_preproc=yes
38691 ;;
38692 no:yes:* )
38693 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
38694$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
38695 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
38696$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
38697 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
38698$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
38699 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
38700$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
38701 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
38702$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
38703 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
38704$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
38705 ( cat <<\_ASBOX
38706## ----------------------------------------- ##
38707## Report this to http://www.imagemagick.org ##
38708## ----------------------------------------- ##
38709_ASBOX
38710 ) | sed "s/^/$as_me: WARNING: /" >&2
38711 ;;
38712esac
38713{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38714$as_echo_n "checking for ft2build.h... " >&6; }
38715if test "${ac_cv_header_ft2build_h+set}" = set; then
38716 $as_echo_n "(cached) " >&6
38717else
38718 ac_cv_header_ft2build_h=$ac_header_preproc
38719fi
38720{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38721$as_echo "$ac_cv_header_ft2build_h" >&6; }
38722
38723fi
38724if test "x$ac_cv_header_ft2build_h" = x""yes; then
38725 FT2BUILD_H='#include <ft2build.h>'
38726else
38727 ft2build=''
38728fi
38729
38730
38731 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
38732$as_echo_n "checking for freetype/freetype.h... " >&6; }
38733if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
38734 $as_echo_n "(cached) " >&6
38735else
38736 cat >conftest.$ac_ext <<_ACEOF
38737/* confdefs.h. */
38738_ACEOF
38739cat confdefs.h >>conftest.$ac_ext
38740cat >>conftest.$ac_ext <<_ACEOF
38741/* end confdefs.h. */
38742$FT2BUILD_H
38743
38744#include <freetype/freetype.h>
38745_ACEOF
38746rm -f conftest.$ac_objext
38747if { (ac_try="$ac_compile"
38748case "(($ac_try" in
38749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38750 *) ac_try_echo=$ac_try;;
38751esac
38752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38753$as_echo "$ac_try_echo") >&5
38754 (eval "$ac_compile") 2>conftest.er1
38755 ac_status=$?
38756 grep -v '^ *+' conftest.er1 >conftest.err
38757 rm -f conftest.er1
38758 cat conftest.err >&5
38759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760 (exit $ac_status); } && {
38761 test -z "$ac_c_werror_flag" ||
38762 test ! -s conftest.err
38763 } && test -s conftest.$ac_objext; then
38764 ac_cv_header_freetype_freetype_h=yes
38765else
38766 $as_echo "$as_me: failed program was:" >&5
38767sed 's/^/| /' conftest.$ac_ext >&5
38768
38769 ac_cv_header_freetype_freetype_h=no
38770fi
38771
38772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38773fi
38774{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
38775$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
38776if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
38777 have_freetype_h='yes'
38778else
38779 have_freetype_h='no'
38780fi
38781
38782
38783 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
38784 passed=`expr $passed + 1`
38785 else
38786 failed=`expr $failed + 1`
38787 CPPFLAGS="$PERSIST_CPPFLAGS"
38788 fi
38789
38790 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
38791$as_echo_n "checking if FreeType package is complete... " >&6; }
38792 if test $passed -gt 0; then
38793 if test $failed -gt 0; then
38794 FREETYPE_LIBS=''
38795 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38796$as_echo "no -- some components failed test" >&6; }
38797 have_freetype='no (failed tests)'
38798 else
38799 LIBS="$FREETYPE_LIBS $LIBS"
38800
38801cat >>confdefs.h <<\_ACEOF
38802#define FREETYPE_DELEGATE 1
38803_ACEOF
38804
38805 if test "$ac_cv_header_ft2build_h" = 'yes'; then
38806
38807cat >>confdefs.h <<\_ACEOF
38808#define HAVE_FT2BUILD_H 1
38809_ACEOF
38810
38811 fi
38812 { $as_echo "$as_me:$LINENO: result: yes" >&5
38813$as_echo "yes" >&6; }
38814 have_freetype='yes'
38815 fi
38816 else
38817 { $as_echo "$as_me:$LINENO: result: no" >&5
38818$as_echo "no" >&6; }
38819 fi
38820fi
38821 if test "$have_freetype" = 'yes'; then
38822 FREETYPE_DELEGATE_TRUE=
38823 FREETYPE_DELEGATE_FALSE='#'
38824else
38825 FREETYPE_DELEGATE_TRUE='#'
38826 FREETYPE_DELEGATE_FALSE=
38827fi
38828
38829
38830
38831
38832
38833#
38834# Check for Ghostscript library or framework.
38835#
38836# Test for iapi.h & test for gsapi_new_instance in -lgs
38837# or -framework Ghostscript
38838
38839
38840# Check whether --with-gslib was given.
38841if test "${with_gslib+set}" = set; then
38842 withval=$with_gslib; with_gslib=$withval
38843else
38844 with_gslib='no'
38845fi
38846
38847
cristyb7931f12009-09-25 10:22:21 +000038848gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000038849if test "$with_gslib" != 'yes'; then
38850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38851fi
38852
38853have_gslib='no'
38854GS_LIBS=''
38855if test "$with_gslib" != 'no'; then
38856 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38857$as_echo "-------------------------------------------------------------" >&6; }
38858 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38859$as_echo_n "checking for Ghostscript... " >&6; }
38860 { $as_echo "$as_me:$LINENO: result: " >&5
38861$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000038862 framework=0
cristy3ed852e2009-09-05 21:47:34 +000038863 failed=0
38864 passed=0
38865 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38866 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38867$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38868if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38869 $as_echo_n "(cached) " >&6
38870fi
38871{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38872$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38873else
38874 # Is the header compilable?
38875{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38876$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38877cat >conftest.$ac_ext <<_ACEOF
38878/* confdefs.h. */
38879_ACEOF
38880cat confdefs.h >>conftest.$ac_ext
38881cat >>conftest.$ac_ext <<_ACEOF
38882/* end confdefs.h. */
38883$ac_includes_default
38884#include <ghostscript/iapi.h>
38885_ACEOF
38886rm -f conftest.$ac_objext
38887if { (ac_try="$ac_compile"
38888case "(($ac_try" in
38889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38890 *) ac_try_echo=$ac_try;;
38891esac
38892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38893$as_echo "$ac_try_echo") >&5
38894 (eval "$ac_compile") 2>conftest.er1
38895 ac_status=$?
38896 grep -v '^ *+' conftest.er1 >conftest.err
38897 rm -f conftest.er1
38898 cat conftest.err >&5
38899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900 (exit $ac_status); } && {
38901 test -z "$ac_c_werror_flag" ||
38902 test ! -s conftest.err
38903 } && test -s conftest.$ac_objext; then
38904 ac_header_compiler=yes
38905else
38906 $as_echo "$as_me: failed program was:" >&5
38907sed 's/^/| /' conftest.$ac_ext >&5
38908
38909 ac_header_compiler=no
38910fi
38911
38912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38913{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38914$as_echo "$ac_header_compiler" >&6; }
38915
38916# Is the header present?
38917{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38918$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38919cat >conftest.$ac_ext <<_ACEOF
38920/* confdefs.h. */
38921_ACEOF
38922cat confdefs.h >>conftest.$ac_ext
38923cat >>conftest.$ac_ext <<_ACEOF
38924/* end confdefs.h. */
38925#include <ghostscript/iapi.h>
38926_ACEOF
38927if { (ac_try="$ac_cpp conftest.$ac_ext"
38928case "(($ac_try" in
38929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38930 *) ac_try_echo=$ac_try;;
38931esac
38932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38933$as_echo "$ac_try_echo") >&5
38934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38935 ac_status=$?
38936 grep -v '^ *+' conftest.er1 >conftest.err
38937 rm -f conftest.er1
38938 cat conftest.err >&5
38939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38940 (exit $ac_status); } >/dev/null && {
38941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38942 test ! -s conftest.err
38943 }; then
38944 ac_header_preproc=yes
38945else
38946 $as_echo "$as_me: failed program was:" >&5
38947sed 's/^/| /' conftest.$ac_ext >&5
38948
38949 ac_header_preproc=no
38950fi
38951
38952rm -f conftest.err conftest.$ac_ext
38953{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38954$as_echo "$ac_header_preproc" >&6; }
38955
38956# So? What about this header?
38957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38958 yes:no: )
38959 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38960$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38961 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38962$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38963 ac_header_preproc=yes
38964 ;;
38965 no:yes:* )
38966 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38967$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38968 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38969$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38970 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38971$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38972 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38973$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38974 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38975$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38976 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38977$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38978 ( cat <<\_ASBOX
38979## ----------------------------------------- ##
38980## Report this to http://www.imagemagick.org ##
38981## ----------------------------------------- ##
38982_ASBOX
38983 ) | sed "s/^/$as_me: WARNING: /" >&2
38984 ;;
38985esac
38986{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38987$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38988if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38989 $as_echo_n "(cached) " >&6
38990else
38991 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38992fi
38993{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38994$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38995
38996fi
38997if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38998 passed=`expr $passed + 1`
38999else
39000 failed=`expr $failed + 1`
39001fi
39002
39003
39004 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39005 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39006$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39007if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39008 $as_echo_n "(cached) " >&6
39009fi
39010{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39011$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39012else
39013 # Is the header compilable?
39014{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
39015$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
39016cat >conftest.$ac_ext <<_ACEOF
39017/* confdefs.h. */
39018_ACEOF
39019cat confdefs.h >>conftest.$ac_ext
39020cat >>conftest.$ac_ext <<_ACEOF
39021/* end confdefs.h. */
39022$ac_includes_default
39023#include <ghostscript/ierrors.h>
39024_ACEOF
39025rm -f conftest.$ac_objext
39026if { (ac_try="$ac_compile"
39027case "(($ac_try" in
39028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39029 *) ac_try_echo=$ac_try;;
39030esac
39031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39032$as_echo "$ac_try_echo") >&5
39033 (eval "$ac_compile") 2>conftest.er1
39034 ac_status=$?
39035 grep -v '^ *+' conftest.er1 >conftest.err
39036 rm -f conftest.er1
39037 cat conftest.err >&5
39038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039 (exit $ac_status); } && {
39040 test -z "$ac_c_werror_flag" ||
39041 test ! -s conftest.err
39042 } && test -s conftest.$ac_objext; then
39043 ac_header_compiler=yes
39044else
39045 $as_echo "$as_me: failed program was:" >&5
39046sed 's/^/| /' conftest.$ac_ext >&5
39047
39048 ac_header_compiler=no
39049fi
39050
39051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39052{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39053$as_echo "$ac_header_compiler" >&6; }
39054
39055# Is the header present?
39056{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
39057$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
39058cat >conftest.$ac_ext <<_ACEOF
39059/* confdefs.h. */
39060_ACEOF
39061cat confdefs.h >>conftest.$ac_ext
39062cat >>conftest.$ac_ext <<_ACEOF
39063/* end confdefs.h. */
39064#include <ghostscript/ierrors.h>
39065_ACEOF
39066if { (ac_try="$ac_cpp conftest.$ac_ext"
39067case "(($ac_try" in
39068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069 *) ac_try_echo=$ac_try;;
39070esac
39071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39072$as_echo "$ac_try_echo") >&5
39073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39074 ac_status=$?
39075 grep -v '^ *+' conftest.er1 >conftest.err
39076 rm -f conftest.er1
39077 cat conftest.err >&5
39078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079 (exit $ac_status); } >/dev/null && {
39080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39081 test ! -s conftest.err
39082 }; then
39083 ac_header_preproc=yes
39084else
39085 $as_echo "$as_me: failed program was:" >&5
39086sed 's/^/| /' conftest.$ac_ext >&5
39087
39088 ac_header_preproc=no
39089fi
39090
39091rm -f conftest.err conftest.$ac_ext
39092{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39093$as_echo "$ac_header_preproc" >&6; }
39094
39095# So? What about this header?
39096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39097 yes:no: )
39098 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
39099$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39100 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
39101$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
39102 ac_header_preproc=yes
39103 ;;
39104 no:yes:* )
39105 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
39106$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
39107 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
39108$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
39109 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
39110$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
39111 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
39112$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
39113 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
39114$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
39115 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
39116$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
39117 ( cat <<\_ASBOX
39118## ----------------------------------------- ##
39119## Report this to http://www.imagemagick.org ##
39120## ----------------------------------------- ##
39121_ASBOX
39122 ) | sed "s/^/$as_me: WARNING: /" >&2
39123 ;;
39124esac
39125{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39126$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39127if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39128 $as_echo_n "(cached) " >&6
39129else
39130 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
39131fi
39132{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39133$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39134
39135fi
39136if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
39137 passed=`expr $passed + 1`
39138else
39139 failed=`expr $failed + 1`
39140fi
39141
39142
39143 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
39144$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
39145if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
39146 $as_echo_n "(cached) " >&6
39147else
39148 ac_check_framework_save_LIBS=$LIBS
39149LIBS="-framework Ghostscript $LIBS"
39150cat >conftest.$ac_ext <<_ACEOF
39151/* confdefs.h. */
39152_ACEOF
39153cat confdefs.h >>conftest.$ac_ext
39154cat >>conftest.$ac_ext <<_ACEOF
39155/* end confdefs.h. */
39156
39157/* Override any GCC internal prototype to avoid an error.
39158 Use char because int might match the return type of a GCC
39159 builtin and then its argument prototype would still apply. */
39160#ifdef __cplusplus
39161extern "C"
39162#endif
39163char gsapi_new_instance ();
39164int
39165main ()
39166{
39167return gsapi_new_instance ();
39168 ;
39169 return 0;
39170}
39171_ACEOF
39172rm -f conftest.$ac_objext conftest$ac_exeext
39173if { (ac_try="$ac_link"
39174case "(($ac_try" in
39175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39176 *) ac_try_echo=$ac_try;;
39177esac
39178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39179$as_echo "$ac_try_echo") >&5
39180 (eval "$ac_link") 2>conftest.er1
39181 ac_status=$?
39182 grep -v '^ *+' conftest.er1 >conftest.err
39183 rm -f conftest.er1
39184 cat conftest.err >&5
39185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186 (exit $ac_status); } && {
39187 test -z "$ac_c_werror_flag" ||
39188 test ! -s conftest.err
39189 } && test -s conftest$ac_exeext && {
39190 test "$cross_compiling" = yes ||
39191 $as_test_x conftest$ac_exeext
39192 }; then
39193 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
39194else
39195 $as_echo "$as_me: failed program was:" >&5
39196sed 's/^/| /' conftest.$ac_ext >&5
39197
39198 ac_cv_framework_Ghostscript_gsapi_new_instance=no
39199fi
39200
39201rm -rf conftest.dSYM
39202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39203 conftest$ac_exeext conftest.$ac_ext
39204LIBS=$ac_check_framework_save_LIBS
39205fi
39206{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
39207$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
39208if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
39209 framework=`expr $framework + 1`
39210else
39211 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
39212$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
39213if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
39214 $as_echo_n "(cached) " >&6
39215else
39216 ac_check_lib_save_LIBS=$LIBS
39217LIBS="-lgs $LIBS"
39218cat >conftest.$ac_ext <<_ACEOF
39219/* confdefs.h. */
39220_ACEOF
39221cat confdefs.h >>conftest.$ac_ext
39222cat >>conftest.$ac_ext <<_ACEOF
39223/* end confdefs.h. */
39224
39225/* Override any GCC internal prototype to avoid an error.
39226 Use char because int might match the return type of a GCC
39227 builtin and then its argument prototype would still apply. */
39228#ifdef __cplusplus
39229extern "C"
39230#endif
39231char gsapi_new_instance ();
39232int
39233main ()
39234{
39235return gsapi_new_instance ();
39236 ;
39237 return 0;
39238}
39239_ACEOF
39240rm -f conftest.$ac_objext conftest$ac_exeext
39241if { (ac_try="$ac_link"
39242case "(($ac_try" in
39243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39244 *) ac_try_echo=$ac_try;;
39245esac
39246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39247$as_echo "$ac_try_echo") >&5
39248 (eval "$ac_link") 2>conftest.er1
39249 ac_status=$?
39250 grep -v '^ *+' conftest.er1 >conftest.err
39251 rm -f conftest.er1
39252 cat conftest.err >&5
39253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39254 (exit $ac_status); } && {
39255 test -z "$ac_c_werror_flag" ||
39256 test ! -s conftest.err
39257 } && test -s conftest$ac_exeext && {
39258 test "$cross_compiling" = yes ||
39259 $as_test_x conftest$ac_exeext
39260 }; then
39261 ac_cv_lib_gs_gsapi_new_instance=yes
39262else
39263 $as_echo "$as_me: failed program was:" >&5
39264sed 's/^/| /' conftest.$ac_ext >&5
39265
39266 ac_cv_lib_gs_gsapi_new_instance=no
39267fi
39268
39269rm -rf conftest.dSYM
39270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39271 conftest$ac_exeext conftest.$ac_ext
39272LIBS=$ac_check_lib_save_LIBS
39273fi
39274{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
39275$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
39276if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
39277 passed=`expr $passed + 1`
39278else
39279 failed=`expr $failed + 1`
39280fi
39281
39282fi
39283
39284 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
39285$as_echo_n "checking if Ghostscript package is complete... " >&6; }
39286 if test $passed -gt 0; then
39287 if test $failed -gt 0; then
39288 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39289$as_echo "no -- some components failed test" >&6; }
39290 have_gslib='no (failed tests)'
39291 else
39292 if test $framework -gt 0; then
39293 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000039294 gslib_framework='yes'
cristy3ed852e2009-09-05 21:47:34 +000039295 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
39296$as_echo "yes, using framework." >&6; }
39297 else
39298 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
39299$as_echo "yes, using library." >&6; }
39300 GS_LIBS='-lgs'
39301 fi
39302 LIBS="$GS_LIBS $LIBS"
39303
39304cat >>confdefs.h <<\_ACEOF
39305#define GS_DELEGATE 1
39306_ACEOF
39307
39308 have_gslib='yes'
39309 fi
39310 else
39311 { $as_echo "$as_me:$LINENO: result: no" >&5
39312$as_echo "no" >&6; }
39313 fi
39314fi
39315 if test "$have_gslib" = 'yes'; then
39316 GS_DELEGATE_TRUE=
39317 GS_DELEGATE_FALSE='#'
39318else
39319 GS_DELEGATE_TRUE='#'
39320 GS_DELEGATE_FALSE=
39321fi
39322
39323
39324
39325# Set default font search path
39326
39327# Check whether --with-fontpath was given.
39328if test "${with_fontpath+set}" = set; then
39329 withval=$with_fontpath; with_fontpath=$withval
39330else
39331 with_fontpath=''
39332fi
39333
39334
39335if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
39336 with_fontpath=''
39337else
39338
39339cat >>confdefs.h <<_ACEOF
39340#define MAGICK_FONT_PATH "$with_fontpath"
39341_ACEOF
39342
39343fi
39344if test "$with_fontpath=" != ''; then
39345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
39346fi
39347
39348# Set Ghostscript font directory
39349
39350# Check whether --with-gs-font-dir was given.
39351if test "${with_gs_font_dir+set}" = set; then
39352 withval=$with_gs_font_dir; with_gs_font_dir=$withval
39353else
39354 with_gs_font_dir='default'
39355fi
39356
39357
39358if test "$with_gs_font_dir" != 'default'; then
39359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
39360fi
39361
39362
39363#
39364# Check for GVC delegate library.
39365#
39366
39367# Check whether --with-gvc was given.
39368if test "${with_gvc+set}" = set; then
39369 withval=$with_gvc; with_gvc=$withval
39370else
39371 with_gvc='yes'
39372fi
39373
39374
39375if test "$with_gvc" != 'yes'; then
39376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
39377fi
39378
39379GVC_PKG=""
39380if test "x$with_gvc" = "xyes"; then
39381 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39382$as_echo "-------------------------------------------------------------" >&6; }
39383
39384pkg_failed=no
39385{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
39386$as_echo_n "checking for GVC... " >&6; }
39387
39388if test -n "$GVC_CFLAGS"; then
39389 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
39390 elif test -n "$PKG_CONFIG"; then
39391 if test -n "$PKG_CONFIG" && \
39392 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39393 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39394 ac_status=$?
39395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); }; then
39397 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
39398else
39399 pkg_failed=yes
39400fi
39401 else
39402 pkg_failed=untried
39403fi
39404if test -n "$GVC_LIBS"; then
39405 pkg_cv_GVC_LIBS="$GVC_LIBS"
39406 elif test -n "$PKG_CONFIG"; then
39407 if test -n "$PKG_CONFIG" && \
39408 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39409 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39410 ac_status=$?
39411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39412 (exit $ac_status); }; then
39413 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
39414else
39415 pkg_failed=yes
39416fi
39417 else
39418 pkg_failed=untried
39419fi
39420
39421
39422
39423if test $pkg_failed = yes; then
39424
39425if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39426 _pkg_short_errors_supported=yes
39427else
39428 _pkg_short_errors_supported=no
39429fi
39430 if test $_pkg_short_errors_supported = yes; then
39431 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
39432 else
39433 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
39434 fi
39435 # Put the nasty error message in config.log where it belongs
39436 echo "$GVC_PKG_ERRORS" >&5
39437
39438 { $as_echo "$as_me:$LINENO: result: no" >&5
39439$as_echo "no" >&6; }
39440 have_gvc=no
39441elif test $pkg_failed = untried; then
39442 have_gvc=no
39443else
39444 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
39445 GVC_LIBS=$pkg_cv_GVC_LIBS
39446 { $as_echo "$as_me:$LINENO: result: yes" >&5
39447$as_echo "yes" >&6; }
39448 have_gvc=yes
39449fi
39450 { $as_echo "$as_me:$LINENO: result: " >&5
39451$as_echo "" >&6; }
39452fi
39453
39454if test "$have_gvc" = 'yes'; then
39455
39456cat >>confdefs.h <<\_ACEOF
39457#define GVC_DELEGATE 1
39458_ACEOF
39459
39460 if test "$with_modules" = 'no'; then
39461 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
39462 fi
39463fi
39464
39465 if test "$have_gvc" = 'yes'; then
39466 GVC_DELEGATE_TRUE=
39467 GVC_DELEGATE_FALSE='#'
39468else
39469 GVC_DELEGATE_TRUE='#'
39470 GVC_DELEGATE_FALSE=
39471fi
39472
39473
39474
39475
39476
39477#
39478# Check for JBIG delegate library.
39479#
39480
39481
39482# Check whether --with-jbig was given.
39483if test "${with_jbig+set}" = set; then
39484 withval=$with_jbig; with_jbig=$withval
39485else
39486 with_jbig='yes'
39487fi
39488
39489
39490have_jbig='no'
39491JBIG_LIBS=''
39492if test "$with_jbig" != 'no'; then
39493 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39494$as_echo "-------------------------------------------------------------" >&6; }
39495 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
39496$as_echo_n "checking for JBIG... " >&6; }
39497 { $as_echo "$as_me:$LINENO: result: " >&5
39498$as_echo "" >&6; }
39499 failed=0
39500 passed=0
39501 if test "${ac_cv_header_jbig_h+set}" = set; then
39502 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39503$as_echo_n "checking for jbig.h... " >&6; }
39504if test "${ac_cv_header_jbig_h+set}" = set; then
39505 $as_echo_n "(cached) " >&6
39506fi
39507{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39508$as_echo "$ac_cv_header_jbig_h" >&6; }
39509else
39510 # Is the header compilable?
39511{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
39512$as_echo_n "checking jbig.h usability... " >&6; }
39513cat >conftest.$ac_ext <<_ACEOF
39514/* confdefs.h. */
39515_ACEOF
39516cat confdefs.h >>conftest.$ac_ext
39517cat >>conftest.$ac_ext <<_ACEOF
39518/* end confdefs.h. */
39519$ac_includes_default
39520#include <jbig.h>
39521_ACEOF
39522rm -f conftest.$ac_objext
39523if { (ac_try="$ac_compile"
39524case "(($ac_try" in
39525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39526 *) ac_try_echo=$ac_try;;
39527esac
39528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39529$as_echo "$ac_try_echo") >&5
39530 (eval "$ac_compile") 2>conftest.er1
39531 ac_status=$?
39532 grep -v '^ *+' conftest.er1 >conftest.err
39533 rm -f conftest.er1
39534 cat conftest.err >&5
39535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39536 (exit $ac_status); } && {
39537 test -z "$ac_c_werror_flag" ||
39538 test ! -s conftest.err
39539 } && test -s conftest.$ac_objext; then
39540 ac_header_compiler=yes
39541else
39542 $as_echo "$as_me: failed program was:" >&5
39543sed 's/^/| /' conftest.$ac_ext >&5
39544
39545 ac_header_compiler=no
39546fi
39547
39548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39549{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39550$as_echo "$ac_header_compiler" >&6; }
39551
39552# Is the header present?
39553{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
39554$as_echo_n "checking jbig.h presence... " >&6; }
39555cat >conftest.$ac_ext <<_ACEOF
39556/* confdefs.h. */
39557_ACEOF
39558cat confdefs.h >>conftest.$ac_ext
39559cat >>conftest.$ac_ext <<_ACEOF
39560/* end confdefs.h. */
39561#include <jbig.h>
39562_ACEOF
39563if { (ac_try="$ac_cpp conftest.$ac_ext"
39564case "(($ac_try" in
39565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39566 *) ac_try_echo=$ac_try;;
39567esac
39568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39569$as_echo "$ac_try_echo") >&5
39570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39571 ac_status=$?
39572 grep -v '^ *+' conftest.er1 >conftest.err
39573 rm -f conftest.er1
39574 cat conftest.err >&5
39575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39576 (exit $ac_status); } >/dev/null && {
39577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39578 test ! -s conftest.err
39579 }; then
39580 ac_header_preproc=yes
39581else
39582 $as_echo "$as_me: failed program was:" >&5
39583sed 's/^/| /' conftest.$ac_ext >&5
39584
39585 ac_header_preproc=no
39586fi
39587
39588rm -f conftest.err conftest.$ac_ext
39589{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39590$as_echo "$ac_header_preproc" >&6; }
39591
39592# So? What about this header?
39593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39594 yes:no: )
39595 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39596$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39597 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
39598$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
39599 ac_header_preproc=yes
39600 ;;
39601 no:yes:* )
39602 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
39603$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
39604 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
39605$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
39606 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
39607$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
39608 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
39609$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39610 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
39611$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
39612 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
39613$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
39614 ( cat <<\_ASBOX
39615## ----------------------------------------- ##
39616## Report this to http://www.imagemagick.org ##
39617## ----------------------------------------- ##
39618_ASBOX
39619 ) | sed "s/^/$as_me: WARNING: /" >&2
39620 ;;
39621esac
39622{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39623$as_echo_n "checking for jbig.h... " >&6; }
39624if test "${ac_cv_header_jbig_h+set}" = set; then
39625 $as_echo_n "(cached) " >&6
39626else
39627 ac_cv_header_jbig_h=$ac_header_preproc
39628fi
39629{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39630$as_echo "$ac_cv_header_jbig_h" >&6; }
39631
39632fi
39633if test "x$ac_cv_header_jbig_h" = x""yes; then
39634 passed=`expr $passed + 1`
39635else
39636 failed=`expr $failed + 1`
39637fi
39638
39639
39640 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
39641$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
39642if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
39643 $as_echo_n "(cached) " >&6
39644else
39645 ac_check_lib_save_LIBS=$LIBS
39646LIBS="-ljbig $LIBS"
39647cat >conftest.$ac_ext <<_ACEOF
39648/* confdefs.h. */
39649_ACEOF
39650cat confdefs.h >>conftest.$ac_ext
39651cat >>conftest.$ac_ext <<_ACEOF
39652/* end confdefs.h. */
39653
39654/* Override any GCC internal prototype to avoid an error.
39655 Use char because int might match the return type of a GCC
39656 builtin and then its argument prototype would still apply. */
39657#ifdef __cplusplus
39658extern "C"
39659#endif
39660char jbg_dec_init ();
39661int
39662main ()
39663{
39664return jbg_dec_init ();
39665 ;
39666 return 0;
39667}
39668_ACEOF
39669rm -f conftest.$ac_objext conftest$ac_exeext
39670if { (ac_try="$ac_link"
39671case "(($ac_try" in
39672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39673 *) ac_try_echo=$ac_try;;
39674esac
39675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39676$as_echo "$ac_try_echo") >&5
39677 (eval "$ac_link") 2>conftest.er1
39678 ac_status=$?
39679 grep -v '^ *+' conftest.er1 >conftest.err
39680 rm -f conftest.er1
39681 cat conftest.err >&5
39682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); } && {
39684 test -z "$ac_c_werror_flag" ||
39685 test ! -s conftest.err
39686 } && test -s conftest$ac_exeext && {
39687 test "$cross_compiling" = yes ||
39688 $as_test_x conftest$ac_exeext
39689 }; then
39690 ac_cv_lib_jbig_jbg_dec_init=yes
39691else
39692 $as_echo "$as_me: failed program was:" >&5
39693sed 's/^/| /' conftest.$ac_ext >&5
39694
39695 ac_cv_lib_jbig_jbg_dec_init=no
39696fi
39697
39698rm -rf conftest.dSYM
39699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39700 conftest$ac_exeext conftest.$ac_ext
39701LIBS=$ac_check_lib_save_LIBS
39702fi
39703{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
39704$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
39705if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
39706 passed=`expr $passed + 1`
39707else
39708 failed=`expr $failed + 1`
39709fi
39710
39711 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
39712$as_echo_n "checking if JBIG package is complete... " >&6; }
39713 if test $passed -gt 0; then
39714 if test $failed -gt 0; then
39715 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39716$as_echo "no -- some components failed test" >&6; }
39717 have_jbig='no (failed tests)'
39718 else
39719 JBIG_LIBS='-ljbig'
39720 LIBS="$JBIG_LIBS $LIBS"
39721
39722cat >>confdefs.h <<\_ACEOF
39723#define JBIG_DELEGATE 1
39724_ACEOF
39725
39726 { $as_echo "$as_me:$LINENO: result: yes" >&5
39727$as_echo "yes" >&6; }
39728 have_jbig='yes'
39729 fi
39730 else
39731 { $as_echo "$as_me:$LINENO: result: no" >&5
39732$as_echo "no" >&6; }
39733 fi
39734fi
39735 if test "$have_jbig" = 'yes'; then
39736 JBIG_DELEGATE_TRUE=
39737 JBIG_DELEGATE_FALSE='#'
39738else
39739 JBIG_DELEGATE_TRUE='#'
39740 JBIG_DELEGATE_FALSE=
39741fi
39742
39743
39744
39745
39746#
39747# Check for JPEG delegate library.
39748#
39749
39750# Check whether --with-jpeg was given.
39751if test "${with_jpeg+set}" = set; then
39752 withval=$with_jpeg; with_jpeg=$withval
39753else
39754 with_jpeg='yes'
39755fi
39756
39757
39758if test "$with_jpeg" != 'yes'; then
39759 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
39760fi
39761
39762have_jpeg='no'
39763JPEG_LIBS=''
39764if test "$with_jpeg" != 'no'; then
39765 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39766$as_echo "-------------------------------------------------------------" >&6; }
39767 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
39768$as_echo_n "checking for JPEG... " >&6; }
39769 { $as_echo "$as_me:$LINENO: result: " >&5
39770$as_echo "" >&6; }
39771 failed=0
39772 passed=0
39773 if test "${ac_cv_header_jconfig_h+set}" = set; then
39774 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39775$as_echo_n "checking for jconfig.h... " >&6; }
39776if test "${ac_cv_header_jconfig_h+set}" = set; then
39777 $as_echo_n "(cached) " >&6
39778fi
39779{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39780$as_echo "$ac_cv_header_jconfig_h" >&6; }
39781else
39782 # Is the header compilable?
39783{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
39784$as_echo_n "checking jconfig.h usability... " >&6; }
39785cat >conftest.$ac_ext <<_ACEOF
39786/* confdefs.h. */
39787_ACEOF
39788cat confdefs.h >>conftest.$ac_ext
39789cat >>conftest.$ac_ext <<_ACEOF
39790/* end confdefs.h. */
39791$ac_includes_default
39792#include <jconfig.h>
39793_ACEOF
39794rm -f conftest.$ac_objext
39795if { (ac_try="$ac_compile"
39796case "(($ac_try" in
39797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39798 *) ac_try_echo=$ac_try;;
39799esac
39800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39801$as_echo "$ac_try_echo") >&5
39802 (eval "$ac_compile") 2>conftest.er1
39803 ac_status=$?
39804 grep -v '^ *+' conftest.er1 >conftest.err
39805 rm -f conftest.er1
39806 cat conftest.err >&5
39807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808 (exit $ac_status); } && {
39809 test -z "$ac_c_werror_flag" ||
39810 test ! -s conftest.err
39811 } && test -s conftest.$ac_objext; then
39812 ac_header_compiler=yes
39813else
39814 $as_echo "$as_me: failed program was:" >&5
39815sed 's/^/| /' conftest.$ac_ext >&5
39816
39817 ac_header_compiler=no
39818fi
39819
39820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39821{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39822$as_echo "$ac_header_compiler" >&6; }
39823
39824# Is the header present?
39825{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
39826$as_echo_n "checking jconfig.h presence... " >&6; }
39827cat >conftest.$ac_ext <<_ACEOF
39828/* confdefs.h. */
39829_ACEOF
39830cat confdefs.h >>conftest.$ac_ext
39831cat >>conftest.$ac_ext <<_ACEOF
39832/* end confdefs.h. */
39833#include <jconfig.h>
39834_ACEOF
39835if { (ac_try="$ac_cpp conftest.$ac_ext"
39836case "(($ac_try" in
39837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39838 *) ac_try_echo=$ac_try;;
39839esac
39840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39841$as_echo "$ac_try_echo") >&5
39842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39843 ac_status=$?
39844 grep -v '^ *+' conftest.er1 >conftest.err
39845 rm -f conftest.er1
39846 cat conftest.err >&5
39847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); } >/dev/null && {
39849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39850 test ! -s conftest.err
39851 }; then
39852 ac_header_preproc=yes
39853else
39854 $as_echo "$as_me: failed program was:" >&5
39855sed 's/^/| /' conftest.$ac_ext >&5
39856
39857 ac_header_preproc=no
39858fi
39859
39860rm -f conftest.err conftest.$ac_ext
39861{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39862$as_echo "$ac_header_preproc" >&6; }
39863
39864# So? What about this header?
39865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39866 yes:no: )
39867 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39868$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39869 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39870$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39871 ac_header_preproc=yes
39872 ;;
39873 no:yes:* )
39874 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39875$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39876 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39877$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39878 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39879$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39880 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39881$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39882 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39883$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39884 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39885$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39886 ( cat <<\_ASBOX
39887## ----------------------------------------- ##
39888## Report this to http://www.imagemagick.org ##
39889## ----------------------------------------- ##
39890_ASBOX
39891 ) | sed "s/^/$as_me: WARNING: /" >&2
39892 ;;
39893esac
39894{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39895$as_echo_n "checking for jconfig.h... " >&6; }
39896if test "${ac_cv_header_jconfig_h+set}" = set; then
39897 $as_echo_n "(cached) " >&6
39898else
39899 ac_cv_header_jconfig_h=$ac_header_preproc
39900fi
39901{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39902$as_echo "$ac_cv_header_jconfig_h" >&6; }
39903
39904fi
39905if test "x$ac_cv_header_jconfig_h" = x""yes; then
39906 passed=`expr $passed + 1`
39907else
39908 failed=`expr $failed + 1`
39909fi
39910
39911
39912 if test "${ac_cv_header_jerror_h+set}" = set; then
39913 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39914$as_echo_n "checking for jerror.h... " >&6; }
39915if test "${ac_cv_header_jerror_h+set}" = set; then
39916 $as_echo_n "(cached) " >&6
39917fi
39918{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39919$as_echo "$ac_cv_header_jerror_h" >&6; }
39920else
39921 # Is the header compilable?
39922{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39923$as_echo_n "checking jerror.h usability... " >&6; }
39924cat >conftest.$ac_ext <<_ACEOF
39925/* confdefs.h. */
39926_ACEOF
39927cat confdefs.h >>conftest.$ac_ext
39928cat >>conftest.$ac_ext <<_ACEOF
39929/* end confdefs.h. */
39930$ac_includes_default
39931#include <jerror.h>
39932_ACEOF
39933rm -f conftest.$ac_objext
39934if { (ac_try="$ac_compile"
39935case "(($ac_try" in
39936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937 *) ac_try_echo=$ac_try;;
39938esac
39939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39940$as_echo "$ac_try_echo") >&5
39941 (eval "$ac_compile") 2>conftest.er1
39942 ac_status=$?
39943 grep -v '^ *+' conftest.er1 >conftest.err
39944 rm -f conftest.er1
39945 cat conftest.err >&5
39946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); } && {
39948 test -z "$ac_c_werror_flag" ||
39949 test ! -s conftest.err
39950 } && test -s conftest.$ac_objext; then
39951 ac_header_compiler=yes
39952else
39953 $as_echo "$as_me: failed program was:" >&5
39954sed 's/^/| /' conftest.$ac_ext >&5
39955
39956 ac_header_compiler=no
39957fi
39958
39959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39961$as_echo "$ac_header_compiler" >&6; }
39962
39963# Is the header present?
39964{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39965$as_echo_n "checking jerror.h presence... " >&6; }
39966cat >conftest.$ac_ext <<_ACEOF
39967/* confdefs.h. */
39968_ACEOF
39969cat confdefs.h >>conftest.$ac_ext
39970cat >>conftest.$ac_ext <<_ACEOF
39971/* end confdefs.h. */
39972#include <jerror.h>
39973_ACEOF
39974if { (ac_try="$ac_cpp conftest.$ac_ext"
39975case "(($ac_try" in
39976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39977 *) ac_try_echo=$ac_try;;
39978esac
39979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39980$as_echo "$ac_try_echo") >&5
39981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39982 ac_status=$?
39983 grep -v '^ *+' conftest.er1 >conftest.err
39984 rm -f conftest.er1
39985 cat conftest.err >&5
39986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39987 (exit $ac_status); } >/dev/null && {
39988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39989 test ! -s conftest.err
39990 }; then
39991 ac_header_preproc=yes
39992else
39993 $as_echo "$as_me: failed program was:" >&5
39994sed 's/^/| /' conftest.$ac_ext >&5
39995
39996 ac_header_preproc=no
39997fi
39998
39999rm -f conftest.err conftest.$ac_ext
40000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40001$as_echo "$ac_header_preproc" >&6; }
40002
40003# So? What about this header?
40004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40005 yes:no: )
40006 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
40007$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40008 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
40009$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
40010 ac_header_preproc=yes
40011 ;;
40012 no:yes:* )
40013 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
40014$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
40015 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
40016$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
40017 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
40018$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
40019 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
40020$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
40021 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
40022$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
40023 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
40024$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
40025 ( cat <<\_ASBOX
40026## ----------------------------------------- ##
40027## Report this to http://www.imagemagick.org ##
40028## ----------------------------------------- ##
40029_ASBOX
40030 ) | sed "s/^/$as_me: WARNING: /" >&2
40031 ;;
40032esac
40033{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
40034$as_echo_n "checking for jerror.h... " >&6; }
40035if test "${ac_cv_header_jerror_h+set}" = set; then
40036 $as_echo_n "(cached) " >&6
40037else
40038 ac_cv_header_jerror_h=$ac_header_preproc
40039fi
40040{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
40041$as_echo "$ac_cv_header_jerror_h" >&6; }
40042
40043fi
40044if test "x$ac_cv_header_jerror_h" = x""yes; then
40045 passed=`expr $passed + 1`
40046else
40047 failed=`expr $failed + 1`
40048fi
40049
40050
40051 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40052 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40053$as_echo_n "checking for jmorecfg.h... " >&6; }
40054if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40055 $as_echo_n "(cached) " >&6
40056fi
40057{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40058$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40059else
40060 # Is the header compilable?
40061{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
40062$as_echo_n "checking jmorecfg.h usability... " >&6; }
40063cat >conftest.$ac_ext <<_ACEOF
40064/* confdefs.h. */
40065_ACEOF
40066cat confdefs.h >>conftest.$ac_ext
40067cat >>conftest.$ac_ext <<_ACEOF
40068/* end confdefs.h. */
40069$ac_includes_default
40070#include <jmorecfg.h>
40071_ACEOF
40072rm -f conftest.$ac_objext
40073if { (ac_try="$ac_compile"
40074case "(($ac_try" in
40075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40076 *) ac_try_echo=$ac_try;;
40077esac
40078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40079$as_echo "$ac_try_echo") >&5
40080 (eval "$ac_compile") 2>conftest.er1
40081 ac_status=$?
40082 grep -v '^ *+' conftest.er1 >conftest.err
40083 rm -f conftest.er1
40084 cat conftest.err >&5
40085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); } && {
40087 test -z "$ac_c_werror_flag" ||
40088 test ! -s conftest.err
40089 } && test -s conftest.$ac_objext; then
40090 ac_header_compiler=yes
40091else
40092 $as_echo "$as_me: failed program was:" >&5
40093sed 's/^/| /' conftest.$ac_ext >&5
40094
40095 ac_header_compiler=no
40096fi
40097
40098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40099{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40100$as_echo "$ac_header_compiler" >&6; }
40101
40102# Is the header present?
40103{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
40104$as_echo_n "checking jmorecfg.h presence... " >&6; }
40105cat >conftest.$ac_ext <<_ACEOF
40106/* confdefs.h. */
40107_ACEOF
40108cat confdefs.h >>conftest.$ac_ext
40109cat >>conftest.$ac_ext <<_ACEOF
40110/* end confdefs.h. */
40111#include <jmorecfg.h>
40112_ACEOF
40113if { (ac_try="$ac_cpp conftest.$ac_ext"
40114case "(($ac_try" in
40115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40116 *) ac_try_echo=$ac_try;;
40117esac
40118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40119$as_echo "$ac_try_echo") >&5
40120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40121 ac_status=$?
40122 grep -v '^ *+' conftest.er1 >conftest.err
40123 rm -f conftest.er1
40124 cat conftest.err >&5
40125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40126 (exit $ac_status); } >/dev/null && {
40127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40128 test ! -s conftest.err
40129 }; then
40130 ac_header_preproc=yes
40131else
40132 $as_echo "$as_me: failed program was:" >&5
40133sed 's/^/| /' conftest.$ac_ext >&5
40134
40135 ac_header_preproc=no
40136fi
40137
40138rm -f conftest.err conftest.$ac_ext
40139{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40140$as_echo "$ac_header_preproc" >&6; }
40141
40142# So? What about this header?
40143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40144 yes:no: )
40145 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
40146$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40147 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
40148$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
40149 ac_header_preproc=yes
40150 ;;
40151 no:yes:* )
40152 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
40153$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
40154 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
40155$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
40156 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
40157$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
40158 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
40159$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
40160 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
40161$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
40162 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
40163$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
40164 ( cat <<\_ASBOX
40165## ----------------------------------------- ##
40166## Report this to http://www.imagemagick.org ##
40167## ----------------------------------------- ##
40168_ASBOX
40169 ) | sed "s/^/$as_me: WARNING: /" >&2
40170 ;;
40171esac
40172{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40173$as_echo_n "checking for jmorecfg.h... " >&6; }
40174if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40175 $as_echo_n "(cached) " >&6
40176else
40177 ac_cv_header_jmorecfg_h=$ac_header_preproc
40178fi
40179{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40180$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40181
40182fi
40183if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
40184 passed=`expr $passed + 1`
40185else
40186 failed=`expr $failed + 1`
40187fi
40188
40189
40190 if test "${ac_cv_header_jpeglib_h+set}" = set; then
40191 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40192$as_echo_n "checking for jpeglib.h... " >&6; }
40193if test "${ac_cv_header_jpeglib_h+set}" = set; then
40194 $as_echo_n "(cached) " >&6
40195fi
40196{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40197$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40198else
40199 # Is the header compilable?
40200{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
40201$as_echo_n "checking jpeglib.h usability... " >&6; }
40202cat >conftest.$ac_ext <<_ACEOF
40203/* confdefs.h. */
40204_ACEOF
40205cat confdefs.h >>conftest.$ac_ext
40206cat >>conftest.$ac_ext <<_ACEOF
40207/* end confdefs.h. */
40208$ac_includes_default
40209#include <jpeglib.h>
40210_ACEOF
40211rm -f conftest.$ac_objext
40212if { (ac_try="$ac_compile"
40213case "(($ac_try" in
40214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215 *) ac_try_echo=$ac_try;;
40216esac
40217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40218$as_echo "$ac_try_echo") >&5
40219 (eval "$ac_compile") 2>conftest.er1
40220 ac_status=$?
40221 grep -v '^ *+' conftest.er1 >conftest.err
40222 rm -f conftest.er1
40223 cat conftest.err >&5
40224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40225 (exit $ac_status); } && {
40226 test -z "$ac_c_werror_flag" ||
40227 test ! -s conftest.err
40228 } && test -s conftest.$ac_objext; then
40229 ac_header_compiler=yes
40230else
40231 $as_echo "$as_me: failed program was:" >&5
40232sed 's/^/| /' conftest.$ac_ext >&5
40233
40234 ac_header_compiler=no
40235fi
40236
40237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40239$as_echo "$ac_header_compiler" >&6; }
40240
40241# Is the header present?
40242{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
40243$as_echo_n "checking jpeglib.h presence... " >&6; }
40244cat >conftest.$ac_ext <<_ACEOF
40245/* confdefs.h. */
40246_ACEOF
40247cat confdefs.h >>conftest.$ac_ext
40248cat >>conftest.$ac_ext <<_ACEOF
40249/* end confdefs.h. */
40250#include <jpeglib.h>
40251_ACEOF
40252if { (ac_try="$ac_cpp conftest.$ac_ext"
40253case "(($ac_try" in
40254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255 *) ac_try_echo=$ac_try;;
40256esac
40257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40258$as_echo "$ac_try_echo") >&5
40259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40260 ac_status=$?
40261 grep -v '^ *+' conftest.er1 >conftest.err
40262 rm -f conftest.er1
40263 cat conftest.err >&5
40264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265 (exit $ac_status); } >/dev/null && {
40266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40267 test ! -s conftest.err
40268 }; then
40269 ac_header_preproc=yes
40270else
40271 $as_echo "$as_me: failed program was:" >&5
40272sed 's/^/| /' conftest.$ac_ext >&5
40273
40274 ac_header_preproc=no
40275fi
40276
40277rm -f conftest.err conftest.$ac_ext
40278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40279$as_echo "$ac_header_preproc" >&6; }
40280
40281# So? What about this header?
40282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40283 yes:no: )
40284 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40285$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40286 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
40287$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
40288 ac_header_preproc=yes
40289 ;;
40290 no:yes:* )
40291 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
40292$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
40293 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
40294$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
40295 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
40296$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
40297 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
40298$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40299 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
40300$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
40301 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
40302$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
40303 ( cat <<\_ASBOX
40304## ----------------------------------------- ##
40305## Report this to http://www.imagemagick.org ##
40306## ----------------------------------------- ##
40307_ASBOX
40308 ) | sed "s/^/$as_me: WARNING: /" >&2
40309 ;;
40310esac
40311{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40312$as_echo_n "checking for jpeglib.h... " >&6; }
40313if test "${ac_cv_header_jpeglib_h+set}" = set; then
40314 $as_echo_n "(cached) " >&6
40315else
40316 ac_cv_header_jpeglib_h=$ac_header_preproc
40317fi
40318{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40319$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40320
40321fi
40322if test "x$ac_cv_header_jpeglib_h" = x""yes; then
40323 passed=`expr $passed + 1`
40324else
40325 failed=`expr $failed + 1`
40326fi
40327
40328
40329 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
40330$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40331if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
40332 $as_echo_n "(cached) " >&6
40333else
40334 ac_check_lib_save_LIBS=$LIBS
40335LIBS="-ljpeg $LIBS"
40336cat >conftest.$ac_ext <<_ACEOF
40337/* confdefs.h. */
40338_ACEOF
40339cat confdefs.h >>conftest.$ac_ext
40340cat >>conftest.$ac_ext <<_ACEOF
40341/* end confdefs.h. */
40342
40343/* Override any GCC internal prototype to avoid an error.
40344 Use char because int might match the return type of a GCC
40345 builtin and then its argument prototype would still apply. */
40346#ifdef __cplusplus
40347extern "C"
40348#endif
40349char jpeg_read_header ();
40350int
40351main ()
40352{
40353return jpeg_read_header ();
40354 ;
40355 return 0;
40356}
40357_ACEOF
40358rm -f conftest.$ac_objext conftest$ac_exeext
40359if { (ac_try="$ac_link"
40360case "(($ac_try" in
40361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40362 *) ac_try_echo=$ac_try;;
40363esac
40364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40365$as_echo "$ac_try_echo") >&5
40366 (eval "$ac_link") 2>conftest.er1
40367 ac_status=$?
40368 grep -v '^ *+' conftest.er1 >conftest.err
40369 rm -f conftest.er1
40370 cat conftest.err >&5
40371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); } && {
40373 test -z "$ac_c_werror_flag" ||
40374 test ! -s conftest.err
40375 } && test -s conftest$ac_exeext && {
40376 test "$cross_compiling" = yes ||
40377 $as_test_x conftest$ac_exeext
40378 }; then
40379 ac_cv_lib_jpeg_jpeg_read_header=yes
40380else
40381 $as_echo "$as_me: failed program was:" >&5
40382sed 's/^/| /' conftest.$ac_ext >&5
40383
40384 ac_cv_lib_jpeg_jpeg_read_header=no
40385fi
40386
40387rm -rf conftest.dSYM
40388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40389 conftest$ac_exeext conftest.$ac_ext
40390LIBS=$ac_check_lib_save_LIBS
40391fi
40392{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40393$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40394if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
40395 passed=`expr $passed + 1`
40396else
40397 failed=`expr $failed + 1`
40398fi
40399
40400
40401# Test for compatible JPEG library
40402if test "$ac_cv_jpeg_version_ok" != 'yes'; then
40403{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
40404$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
40405if test "${ac_cv_jpeg_version_ok+set}" = set; then
40406 $as_echo_n "(cached) " >&6
40407else
40408 cat >conftest.$ac_ext <<_ACEOF
40409/* confdefs.h. */
40410_ACEOF
40411cat confdefs.h >>conftest.$ac_ext
40412cat >>conftest.$ac_ext <<_ACEOF
40413/* end confdefs.h. */
40414#include <stdio.h>
40415#include <stdlib.h>
40416#include <jpeglib.h>
40417
40418int
40419main ()
40420{
40421
40422#if JPEG_LIB_VERSION < 62
40423#error IJG JPEG library must be version 6b or newer!
40424#endif
40425return 0;
40426
40427 ;
40428 return 0;
40429}
40430_ACEOF
40431rm -f conftest.$ac_objext
40432if { (ac_try="$ac_compile"
40433case "(($ac_try" in
40434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40435 *) ac_try_echo=$ac_try;;
40436esac
40437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40438$as_echo "$ac_try_echo") >&5
40439 (eval "$ac_compile") 2>conftest.er1
40440 ac_status=$?
40441 grep -v '^ *+' conftest.er1 >conftest.err
40442 rm -f conftest.er1
40443 cat conftest.err >&5
40444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445 (exit $ac_status); } && {
40446 test -z "$ac_c_werror_flag" ||
40447 test ! -s conftest.err
40448 } && test -s conftest.$ac_objext; then
40449 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
40450else
40451 $as_echo "$as_me: failed program was:" >&5
40452sed 's/^/| /' conftest.$ac_ext >&5
40453
40454 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
40455fi
40456
40457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40458fi
40459{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
40460$as_echo "$ac_cv_jpeg_version_ok" >&6; }
40461fi
40462 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
40463$as_echo_n "checking if JPEG package is complete... " >&6; }
40464 if test $passed -gt 0; then
40465 if test $failed -gt 0; then
40466 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40467$as_echo "no -- some components failed test" >&6; }
40468 have_jpeg='no (failed tests)'
40469 else
40470 JPEG_LIBS='-ljpeg'
40471 LIBS="$JPEG_LIBS $LIBS"
40472
40473cat >>confdefs.h <<\_ACEOF
40474#define JPEG_DELEGATE 1
40475_ACEOF
40476
40477 { $as_echo "$as_me:$LINENO: result: yes" >&5
40478$as_echo "yes" >&6; }
40479 have_jpeg='yes'
40480 fi
40481 else
40482 { $as_echo "$as_me:$LINENO: result: no" >&5
40483$as_echo "no" >&6; }
40484 fi
40485fi
40486 if test "$have_jpeg" = 'yes'; then
40487 JPEG_DELEGATE_TRUE=
40488 JPEG_DELEGATE_FALSE='#'
40489else
40490 JPEG_DELEGATE_TRUE='#'
40491 JPEG_DELEGATE_FALSE=
40492fi
40493
40494
40495
40496
40497#
40498# Check for JPEG Version 2 delegate library.
40499#
40500
40501# Check whether --with-jp2 was given.
40502if test "${with_jp2+set}" = set; then
40503 withval=$with_jp2; with_jp2=$withval
40504else
40505 with_jp2='yes'
40506fi
40507
40508
40509if test "$with_jp2" != 'yes'; then
40510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
40511fi
40512
40513have_jp2='no'
40514JP2_LIBS=''
40515if test "$with_jp2" != 'no'; then
40516 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40517$as_echo "-------------------------------------------------------------" >&6; }
40518 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
40519$as_echo_n "checking for JPEG Version 2... " >&6; }
40520 { $as_echo "$as_me:$LINENO: result: " >&5
40521$as_echo "" >&6; }
40522 failed=0
40523 passed=0
40524 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40525 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40526$as_echo_n "checking for jasper/jasper.h... " >&6; }
40527if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40528 $as_echo_n "(cached) " >&6
40529fi
40530{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40531$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40532else
40533 # Is the header compilable?
40534{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
40535$as_echo_n "checking jasper/jasper.h usability... " >&6; }
40536cat >conftest.$ac_ext <<_ACEOF
40537/* confdefs.h. */
40538_ACEOF
40539cat confdefs.h >>conftest.$ac_ext
40540cat >>conftest.$ac_ext <<_ACEOF
40541/* end confdefs.h. */
40542$ac_includes_default
40543#include <jasper/jasper.h>
40544_ACEOF
40545rm -f conftest.$ac_objext
40546if { (ac_try="$ac_compile"
40547case "(($ac_try" in
40548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549 *) ac_try_echo=$ac_try;;
40550esac
40551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40552$as_echo "$ac_try_echo") >&5
40553 (eval "$ac_compile") 2>conftest.er1
40554 ac_status=$?
40555 grep -v '^ *+' conftest.er1 >conftest.err
40556 rm -f conftest.er1
40557 cat conftest.err >&5
40558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); } && {
40560 test -z "$ac_c_werror_flag" ||
40561 test ! -s conftest.err
40562 } && test -s conftest.$ac_objext; then
40563 ac_header_compiler=yes
40564else
40565 $as_echo "$as_me: failed program was:" >&5
40566sed 's/^/| /' conftest.$ac_ext >&5
40567
40568 ac_header_compiler=no
40569fi
40570
40571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40572{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40573$as_echo "$ac_header_compiler" >&6; }
40574
40575# Is the header present?
40576{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
40577$as_echo_n "checking jasper/jasper.h presence... " >&6; }
40578cat >conftest.$ac_ext <<_ACEOF
40579/* confdefs.h. */
40580_ACEOF
40581cat confdefs.h >>conftest.$ac_ext
40582cat >>conftest.$ac_ext <<_ACEOF
40583/* end confdefs.h. */
40584#include <jasper/jasper.h>
40585_ACEOF
40586if { (ac_try="$ac_cpp conftest.$ac_ext"
40587case "(($ac_try" in
40588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40589 *) ac_try_echo=$ac_try;;
40590esac
40591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40592$as_echo "$ac_try_echo") >&5
40593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40594 ac_status=$?
40595 grep -v '^ *+' conftest.er1 >conftest.err
40596 rm -f conftest.er1
40597 cat conftest.err >&5
40598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40599 (exit $ac_status); } >/dev/null && {
40600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40601 test ! -s conftest.err
40602 }; then
40603 ac_header_preproc=yes
40604else
40605 $as_echo "$as_me: failed program was:" >&5
40606sed 's/^/| /' conftest.$ac_ext >&5
40607
40608 ac_header_preproc=no
40609fi
40610
40611rm -f conftest.err conftest.$ac_ext
40612{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40613$as_echo "$ac_header_preproc" >&6; }
40614
40615# So? What about this header?
40616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40617 yes:no: )
40618 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
40619$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40620 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
40621$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
40622 ac_header_preproc=yes
40623 ;;
40624 no:yes:* )
40625 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
40626$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
40627 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
40628$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
40629 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
40630$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
40631 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
40632$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
40633 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
40634$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
40635 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
40636$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
40637 ( cat <<\_ASBOX
40638## ----------------------------------------- ##
40639## Report this to http://www.imagemagick.org ##
40640## ----------------------------------------- ##
40641_ASBOX
40642 ) | sed "s/^/$as_me: WARNING: /" >&2
40643 ;;
40644esac
40645{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40646$as_echo_n "checking for jasper/jasper.h... " >&6; }
40647if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40648 $as_echo_n "(cached) " >&6
40649else
40650 ac_cv_header_jasper_jasper_h=$ac_header_preproc
40651fi
40652{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40653$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40654
40655fi
40656if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
40657 passed=`expr $passed + 1`
40658else
40659 failed=`expr $failed + 1`
40660fi
40661
40662
40663 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
40664$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
40665if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
40666 $as_echo_n "(cached) " >&6
40667else
40668 ac_check_lib_save_LIBS=$LIBS
40669LIBS="-ljasper $LIBS"
40670cat >conftest.$ac_ext <<_ACEOF
40671/* confdefs.h. */
40672_ACEOF
40673cat confdefs.h >>conftest.$ac_ext
40674cat >>conftest.$ac_ext <<_ACEOF
40675/* end confdefs.h. */
40676
40677/* Override any GCC internal prototype to avoid an error.
40678 Use char because int might match the return type of a GCC
40679 builtin and then its argument prototype would still apply. */
40680#ifdef __cplusplus
40681extern "C"
40682#endif
40683char jas_stream_fopen ();
40684int
40685main ()
40686{
40687return jas_stream_fopen ();
40688 ;
40689 return 0;
40690}
40691_ACEOF
40692rm -f conftest.$ac_objext conftest$ac_exeext
40693if { (ac_try="$ac_link"
40694case "(($ac_try" in
40695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40696 *) ac_try_echo=$ac_try;;
40697esac
40698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40699$as_echo "$ac_try_echo") >&5
40700 (eval "$ac_link") 2>conftest.er1
40701 ac_status=$?
40702 grep -v '^ *+' conftest.er1 >conftest.err
40703 rm -f conftest.er1
40704 cat conftest.err >&5
40705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40706 (exit $ac_status); } && {
40707 test -z "$ac_c_werror_flag" ||
40708 test ! -s conftest.err
40709 } && test -s conftest$ac_exeext && {
40710 test "$cross_compiling" = yes ||
40711 $as_test_x conftest$ac_exeext
40712 }; then
40713 ac_cv_lib_jasper_jas_stream_fopen=yes
40714else
40715 $as_echo "$as_me: failed program was:" >&5
40716sed 's/^/| /' conftest.$ac_ext >&5
40717
40718 ac_cv_lib_jasper_jas_stream_fopen=no
40719fi
40720
40721rm -rf conftest.dSYM
40722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40723 conftest$ac_exeext conftest.$ac_ext
40724LIBS=$ac_check_lib_save_LIBS
40725fi
40726{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
40727$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
40728if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
40729 passed=`expr $passed + 1`
40730else
40731 failed=`expr $failed + 1`
40732fi
40733
40734 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
40735$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
40736 if test $passed -gt 0; then
40737 if test $failed -gt 0; then
40738 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40739$as_echo "no -- some components failed test" >&6; }
40740 have_jp2='no (failed tests)'
40741 else
40742 JP2_LIBS='-ljasper'
40743 LIBS="$JP2_LIBS $LIBS"
40744
40745cat >>confdefs.h <<\_ACEOF
40746#define JP2_DELEGATE 1
40747_ACEOF
40748
40749 { $as_echo "$as_me:$LINENO: result: yes" >&5
40750$as_echo "yes" >&6; }
40751 have_jp2='yes'
40752 fi
40753 else
40754 { $as_echo "$as_me:$LINENO: result: no" >&5
40755$as_echo "no" >&6; }
40756 fi
40757fi
40758 if test "$have_jp2" = 'yes'; then
40759 JP2_DELEGATE_TRUE=
40760 JP2_DELEGATE_FALSE='#'
40761else
40762 JP2_DELEGATE_TRUE='#'
40763 JP2_DELEGATE_FALSE=
40764fi
40765
40766
40767
40768
40769#
40770# Check for LCMS delegate library.
40771#
40772
40773# Check whether --with-lcms was given.
40774if test "${with_lcms+set}" = set; then
40775 withval=$with_lcms; with_lcms=$withval
40776else
40777 with_lcms='yes'
40778fi
40779
40780
40781if test "$with_lcms" != 'yes'; then
40782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
40783fi
40784
40785have_lcms='no'
40786LCMS_LIBS=''
40787if test "$with_lcms" != 'no'; then
40788 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40789$as_echo "-------------------------------------------------------------" >&6; }
40790 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
40791$as_echo_n "checking for LCMS... " >&6; }
40792 { $as_echo "$as_me:$LINENO: result: " >&5
40793$as_echo "" >&6; }
40794 failed=0
40795 passed=0
40796 have_lcms_header='no'
40797 if test "${ac_cv_header_lcms_h+set}" = set; then
40798 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40799$as_echo_n "checking for lcms.h... " >&6; }
40800if test "${ac_cv_header_lcms_h+set}" = set; then
40801 $as_echo_n "(cached) " >&6
40802fi
40803{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40804$as_echo "$ac_cv_header_lcms_h" >&6; }
40805else
40806 # Is the header compilable?
40807{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
40808$as_echo_n "checking lcms.h usability... " >&6; }
40809cat >conftest.$ac_ext <<_ACEOF
40810/* confdefs.h. */
40811_ACEOF
40812cat confdefs.h >>conftest.$ac_ext
40813cat >>conftest.$ac_ext <<_ACEOF
40814/* end confdefs.h. */
40815$ac_includes_default
40816#include <lcms.h>
40817_ACEOF
40818rm -f conftest.$ac_objext
40819if { (ac_try="$ac_compile"
40820case "(($ac_try" in
40821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40822 *) ac_try_echo=$ac_try;;
40823esac
40824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40825$as_echo "$ac_try_echo") >&5
40826 (eval "$ac_compile") 2>conftest.er1
40827 ac_status=$?
40828 grep -v '^ *+' conftest.er1 >conftest.err
40829 rm -f conftest.er1
40830 cat conftest.err >&5
40831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832 (exit $ac_status); } && {
40833 test -z "$ac_c_werror_flag" ||
40834 test ! -s conftest.err
40835 } && test -s conftest.$ac_objext; then
40836 ac_header_compiler=yes
40837else
40838 $as_echo "$as_me: failed program was:" >&5
40839sed 's/^/| /' conftest.$ac_ext >&5
40840
40841 ac_header_compiler=no
40842fi
40843
40844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40845{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40846$as_echo "$ac_header_compiler" >&6; }
40847
40848# Is the header present?
40849{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40850$as_echo_n "checking lcms.h presence... " >&6; }
40851cat >conftest.$ac_ext <<_ACEOF
40852/* confdefs.h. */
40853_ACEOF
40854cat confdefs.h >>conftest.$ac_ext
40855cat >>conftest.$ac_ext <<_ACEOF
40856/* end confdefs.h. */
40857#include <lcms.h>
40858_ACEOF
40859if { (ac_try="$ac_cpp conftest.$ac_ext"
40860case "(($ac_try" in
40861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40862 *) ac_try_echo=$ac_try;;
40863esac
40864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40865$as_echo "$ac_try_echo") >&5
40866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40867 ac_status=$?
40868 grep -v '^ *+' conftest.er1 >conftest.err
40869 rm -f conftest.er1
40870 cat conftest.err >&5
40871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } >/dev/null && {
40873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40874 test ! -s conftest.err
40875 }; then
40876 ac_header_preproc=yes
40877else
40878 $as_echo "$as_me: failed program was:" >&5
40879sed 's/^/| /' conftest.$ac_ext >&5
40880
40881 ac_header_preproc=no
40882fi
40883
40884rm -f conftest.err conftest.$ac_ext
40885{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40886$as_echo "$ac_header_preproc" >&6; }
40887
40888# So? What about this header?
40889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40890 yes:no: )
40891 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40892$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40893 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40894$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40895 ac_header_preproc=yes
40896 ;;
40897 no:yes:* )
40898 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40899$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40900 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40901$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40902 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40903$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40904 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40905$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40906 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40907$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40908 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40909$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40910 ( cat <<\_ASBOX
40911## ----------------------------------------- ##
40912## Report this to http://www.imagemagick.org ##
40913## ----------------------------------------- ##
40914_ASBOX
40915 ) | sed "s/^/$as_me: WARNING: /" >&2
40916 ;;
40917esac
40918{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40919$as_echo_n "checking for lcms.h... " >&6; }
40920if test "${ac_cv_header_lcms_h+set}" = set; then
40921 $as_echo_n "(cached) " >&6
40922else
40923 ac_cv_header_lcms_h=$ac_header_preproc
40924fi
40925{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40926$as_echo "$ac_cv_header_lcms_h" >&6; }
40927
40928fi
40929if test "x$ac_cv_header_lcms_h" = x""yes; then
40930 have_lcms_header='yes'
40931fi
40932
40933
40934 if test "$have_lcms_header" = 'yes'; then
40935 passed=`expr $passed + 1`
40936
40937cat >>confdefs.h <<\_ACEOF
40938#define HAVE_LCMS_H 1
40939_ACEOF
40940
40941 else
40942 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40943 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40944$as_echo_n "checking for lcms/lcms.h... " >&6; }
40945if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40946 $as_echo_n "(cached) " >&6
40947fi
40948{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40949$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40950else
40951 # Is the header compilable?
40952{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40953$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40954cat >conftest.$ac_ext <<_ACEOF
40955/* confdefs.h. */
40956_ACEOF
40957cat confdefs.h >>conftest.$ac_ext
40958cat >>conftest.$ac_ext <<_ACEOF
40959/* end confdefs.h. */
40960$ac_includes_default
40961#include <lcms/lcms.h>
40962_ACEOF
40963rm -f conftest.$ac_objext
40964if { (ac_try="$ac_compile"
40965case "(($ac_try" in
40966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40967 *) ac_try_echo=$ac_try;;
40968esac
40969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40970$as_echo "$ac_try_echo") >&5
40971 (eval "$ac_compile") 2>conftest.er1
40972 ac_status=$?
40973 grep -v '^ *+' conftest.er1 >conftest.err
40974 rm -f conftest.er1
40975 cat conftest.err >&5
40976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); } && {
40978 test -z "$ac_c_werror_flag" ||
40979 test ! -s conftest.err
40980 } && test -s conftest.$ac_objext; then
40981 ac_header_compiler=yes
40982else
40983 $as_echo "$as_me: failed program was:" >&5
40984sed 's/^/| /' conftest.$ac_ext >&5
40985
40986 ac_header_compiler=no
40987fi
40988
40989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40990{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40991$as_echo "$ac_header_compiler" >&6; }
40992
40993# Is the header present?
40994{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40995$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40996cat >conftest.$ac_ext <<_ACEOF
40997/* confdefs.h. */
40998_ACEOF
40999cat confdefs.h >>conftest.$ac_ext
41000cat >>conftest.$ac_ext <<_ACEOF
41001/* end confdefs.h. */
41002#include <lcms/lcms.h>
41003_ACEOF
41004if { (ac_try="$ac_cpp conftest.$ac_ext"
41005case "(($ac_try" in
41006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41007 *) ac_try_echo=$ac_try;;
41008esac
41009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41010$as_echo "$ac_try_echo") >&5
41011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41012 ac_status=$?
41013 grep -v '^ *+' conftest.er1 >conftest.err
41014 rm -f conftest.er1
41015 cat conftest.err >&5
41016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); } >/dev/null && {
41018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41019 test ! -s conftest.err
41020 }; then
41021 ac_header_preproc=yes
41022else
41023 $as_echo "$as_me: failed program was:" >&5
41024sed 's/^/| /' conftest.$ac_ext >&5
41025
41026 ac_header_preproc=no
41027fi
41028
41029rm -f conftest.err conftest.$ac_ext
41030{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41031$as_echo "$ac_header_preproc" >&6; }
41032
41033# So? What about this header?
41034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41035 yes:no: )
41036 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
41037$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41038 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
41039$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
41040 ac_header_preproc=yes
41041 ;;
41042 no:yes:* )
41043 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
41044$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
41045 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
41046$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
41047 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
41048$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
41049 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
41050$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
41051 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
41052$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
41053 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
41054$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
41055 ( cat <<\_ASBOX
41056## ----------------------------------------- ##
41057## Report this to http://www.imagemagick.org ##
41058## ----------------------------------------- ##
41059_ASBOX
41060 ) | sed "s/^/$as_me: WARNING: /" >&2
41061 ;;
41062esac
41063{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
41064$as_echo_n "checking for lcms/lcms.h... " >&6; }
41065if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
41066 $as_echo_n "(cached) " >&6
41067else
41068 ac_cv_header_lcms_lcms_h=$ac_header_preproc
41069fi
41070{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
41071$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
41072
41073fi
41074if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
41075 have_lcms_header='yes'
41076fi
41077
41078
41079 if test "$have_lcms_header" = 'yes'; then
41080 passed=`expr $passed + 1`
41081
41082cat >>confdefs.h <<\_ACEOF
41083#define HAVE_LCMS_LCMS_H 1
41084_ACEOF
41085
41086 else
41087 failed=`expr $failed + 1`
41088 fi
41089 fi
41090 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
41091$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
41092if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
41093 $as_echo_n "(cached) " >&6
41094else
41095 ac_check_lib_save_LIBS=$LIBS
41096LIBS="-llcms $LIBS"
41097cat >conftest.$ac_ext <<_ACEOF
41098/* confdefs.h. */
41099_ACEOF
41100cat confdefs.h >>conftest.$ac_ext
41101cat >>conftest.$ac_ext <<_ACEOF
41102/* end confdefs.h. */
41103
41104/* Override any GCC internal prototype to avoid an error.
41105 Use char because int might match the return type of a GCC
41106 builtin and then its argument prototype would still apply. */
41107#ifdef __cplusplus
41108extern "C"
41109#endif
41110char cmsOpenProfileFromMem ();
41111int
41112main ()
41113{
41114return cmsOpenProfileFromMem ();
41115 ;
41116 return 0;
41117}
41118_ACEOF
41119rm -f conftest.$ac_objext conftest$ac_exeext
41120if { (ac_try="$ac_link"
41121case "(($ac_try" in
41122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41123 *) ac_try_echo=$ac_try;;
41124esac
41125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41126$as_echo "$ac_try_echo") >&5
41127 (eval "$ac_link") 2>conftest.er1
41128 ac_status=$?
41129 grep -v '^ *+' conftest.er1 >conftest.err
41130 rm -f conftest.er1
41131 cat conftest.err >&5
41132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41133 (exit $ac_status); } && {
41134 test -z "$ac_c_werror_flag" ||
41135 test ! -s conftest.err
41136 } && test -s conftest$ac_exeext && {
41137 test "$cross_compiling" = yes ||
41138 $as_test_x conftest$ac_exeext
41139 }; then
41140 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
41141else
41142 $as_echo "$as_me: failed program was:" >&5
41143sed 's/^/| /' conftest.$ac_ext >&5
41144
41145 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
41146fi
41147
41148rm -rf conftest.dSYM
41149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41150 conftest$ac_exeext conftest.$ac_ext
41151LIBS=$ac_check_lib_save_LIBS
41152fi
41153{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
41154$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
41155if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
41156 passed=`expr $passed + 1`
41157else
41158 failed=`expr $failed + 1`
41159fi
41160
41161 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
41162$as_echo_n "checking if LCMS package is complete... " >&6; }
41163 if test $passed -gt 0; then
41164 if test $failed -gt 0; then
41165 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41166$as_echo "no -- some components failed test" >&6; }
41167 have_lcms='no (failed tests)'
41168 else
41169 LCMS_LIBS='-llcms'
41170 LIBS="$LCMS_LIBS $LIBS"
41171
41172cat >>confdefs.h <<\_ACEOF
41173#define LCMS_DELEGATE 1
41174_ACEOF
41175
41176 { $as_echo "$as_me:$LINENO: result: yes" >&5
41177$as_echo "yes" >&6; }
41178 have_lcms='yes'
41179 fi
41180 else
41181 { $as_echo "$as_me:$LINENO: result: no" >&5
41182$as_echo "no" >&6; }
41183 fi
41184fi
41185 if test "$have_lcms" = 'yes'; then
41186 LCMS_DELEGATE_TRUE=
41187 LCMS_DELEGATE_FALSE='#'
41188else
41189 LCMS_DELEGATE_TRUE='#'
41190 LCMS_DELEGATE_FALSE=
41191fi
41192
41193
41194
41195
41196#
41197# Check for the LQR (Liquid Rescale) delegate library.
41198#
41199
41200# Check whether --with-lqr was given.
41201if test "${with_lqr+set}" = set; then
41202 withval=$with_lqr; with_lqr=$withval
41203else
41204 with_lqr='yes'
41205fi
41206
41207
41208if test "$with_lqr" != 'yes'; then
41209 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
41210fi
41211
41212have_lqr='no'
41213LQR_CFLAGS=""
41214LQR_LIBS=""
41215LQR_PKG=""
41216if test "x$with_lqr" = "xyes"; then
41217 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41218$as_echo "-------------------------------------------------------------" >&6; }
41219
41220pkg_failed=no
41221{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
41222$as_echo_n "checking for LQR... " >&6; }
41223
41224if test -n "$LQR_CFLAGS"; then
41225 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
41226 elif test -n "$PKG_CONFIG"; then
41227 if test -n "$PKG_CONFIG" && \
41228 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41229 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41230 ac_status=$?
41231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); }; then
41233 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
41234else
41235 pkg_failed=yes
41236fi
41237 else
41238 pkg_failed=untried
41239fi
41240if test -n "$LQR_LIBS"; then
41241 pkg_cv_LQR_LIBS="$LQR_LIBS"
41242 elif test -n "$PKG_CONFIG"; then
41243 if test -n "$PKG_CONFIG" && \
41244 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41245 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41246 ac_status=$?
41247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; then
41249 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
41250else
41251 pkg_failed=yes
41252fi
41253 else
41254 pkg_failed=untried
41255fi
41256
41257
41258
41259if test $pkg_failed = yes; then
41260
41261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41262 _pkg_short_errors_supported=yes
41263else
41264 _pkg_short_errors_supported=no
41265fi
41266 if test $_pkg_short_errors_supported = yes; then
41267 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
41268 else
41269 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
41270 fi
41271 # Put the nasty error message in config.log where it belongs
41272 echo "$LQR_PKG_ERRORS" >&5
41273
41274 { $as_echo "$as_me:$LINENO: result: no" >&5
41275$as_echo "no" >&6; }
41276 have_lqr=no
41277elif test $pkg_failed = untried; then
41278 have_lqr=no
41279else
41280 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
41281 LQR_LIBS=$pkg_cv_LQR_LIBS
41282 { $as_echo "$as_me:$LINENO: result: yes" >&5
41283$as_echo "yes" >&6; }
41284 have_lqr=yes
41285fi
41286 { $as_echo "$as_me:$LINENO: result: " >&5
41287$as_echo "" >&6; }
41288fi
41289
41290if test "$have_lqr" = 'yes'; then
41291
41292cat >>confdefs.h <<\_ACEOF
41293#define LQR_DELEGATE 1
41294_ACEOF
41295
41296 CFLAGS="$LQR_CFLAGS $CFLAGS"
41297fi
41298
41299 if test "$have_lqr" = 'yes'; then
41300 LQR_DELEGATE_TRUE=
41301 LQR_DELEGATE_FALSE='#'
41302else
41303 LQR_DELEGATE_TRUE='#'
41304 LQR_DELEGATE_FALSE=
41305fi
41306
41307
41308
41309
41310
41311#
41312# Check for the OpenEXR delegate library.
41313#
41314
41315# Check whether --with-openexr was given.
41316if test "${with_openexr+set}" = set; then
41317 withval=$with_openexr; with_openexr=$withval
41318else
41319 with_openexr='yes'
41320fi
41321
41322
41323if test "$with_openexr" != 'yes'; then
41324 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
41325fi
41326
41327have_openexr='no'
41328OPENEXR_CFLAGS=""
41329OPENEXR_LIBS=""
41330OPENEXR_PKG=""
41331if test "x$with_openexr" = "xyes"; then
41332 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41333$as_echo "-------------------------------------------------------------" >&6; }
41334
41335pkg_failed=no
41336{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
41337$as_echo_n "checking for OPENEXR... " >&6; }
41338
41339if test -n "$OPENEXR_CFLAGS"; then
41340 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
41341 elif test -n "$PKG_CONFIG"; then
41342 if test -n "$PKG_CONFIG" && \
41343 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41344 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41345 ac_status=$?
41346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41347 (exit $ac_status); }; then
41348 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
41349else
41350 pkg_failed=yes
41351fi
41352 else
41353 pkg_failed=untried
41354fi
41355if test -n "$OPENEXR_LIBS"; then
41356 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
41357 elif test -n "$PKG_CONFIG"; then
41358 if test -n "$PKG_CONFIG" && \
41359 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41360 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41361 ac_status=$?
41362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363 (exit $ac_status); }; then
41364 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
41365else
41366 pkg_failed=yes
41367fi
41368 else
41369 pkg_failed=untried
41370fi
41371
41372
41373
41374if test $pkg_failed = yes; then
41375
41376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41377 _pkg_short_errors_supported=yes
41378else
41379 _pkg_short_errors_supported=no
41380fi
41381 if test $_pkg_short_errors_supported = yes; then
41382 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
41383 else
41384 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
41385 fi
41386 # Put the nasty error message in config.log where it belongs
41387 echo "$OPENEXR_PKG_ERRORS" >&5
41388
41389 { $as_echo "$as_me:$LINENO: result: no" >&5
41390$as_echo "no" >&6; }
41391 have_openexr=no
41392elif test $pkg_failed = untried; then
41393 have_openexr=no
41394else
41395 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
41396 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
41397 { $as_echo "$as_me:$LINENO: result: yes" >&5
41398$as_echo "yes" >&6; }
41399 have_openexr=yes
41400fi
41401 { $as_echo "$as_me:$LINENO: result: " >&5
41402$as_echo "" >&6; }
41403fi
41404
41405if test "$have_openexr" = 'yes'; then
41406
41407cat >>confdefs.h <<\_ACEOF
41408#define OPENEXR_DELEGATE 1
41409_ACEOF
41410
41411 if test "$with_modules" = 'no'; then
41412 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
41413 fi
41414fi
41415
41416 if test "$have_openexr" = 'yes'; then
41417 OPENEXR_DELEGATE_TRUE=
41418 OPENEXR_DELEGATE_FALSE='#'
41419else
41420 OPENEXR_DELEGATE_TRUE='#'
41421 OPENEXR_DELEGATE_FALSE=
41422fi
41423
41424
41425
41426
41427
41428#
41429# Check for PNG delegate library.
41430#
41431
41432# Check whether --with-png was given.
41433if test "${with_png+set}" = set; then
41434 withval=$with_png; with_png=$withval
41435else
41436 with_png='yes'
41437fi
41438
41439
41440if test "$with_png" != 'yes'; then
41441 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
41442fi
41443
41444have_png='no'
41445PNG_LIBS=''
41446if test "$with_png" != 'no'; then
41447 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41448$as_echo "-------------------------------------------------------------" >&6; }
41449 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
41450$as_echo_n "checking for PNG... " >&6; }
41451 { $as_echo "$as_me:$LINENO: result: " >&5
41452$as_echo "" >&6; }
41453 failed=0
41454 passed=0
41455 if test "${ac_cv_header_png_h+set}" = set; then
41456 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
41457$as_echo_n "checking for png.h... " >&6; }
41458if test "${ac_cv_header_png_h+set}" = set; then
41459 $as_echo_n "(cached) " >&6
41460fi
41461{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41462$as_echo "$ac_cv_header_png_h" >&6; }
41463else
41464 # Is the header compilable?
41465{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
41466$as_echo_n "checking png.h usability... " >&6; }
41467cat >conftest.$ac_ext <<_ACEOF
41468/* confdefs.h. */
41469_ACEOF
41470cat confdefs.h >>conftest.$ac_ext
41471cat >>conftest.$ac_ext <<_ACEOF
41472/* end confdefs.h. */
41473$ac_includes_default
41474#include <png.h>
41475_ACEOF
41476rm -f conftest.$ac_objext
41477if { (ac_try="$ac_compile"
41478case "(($ac_try" in
41479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41480 *) ac_try_echo=$ac_try;;
41481esac
41482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41483$as_echo "$ac_try_echo") >&5
41484 (eval "$ac_compile") 2>conftest.er1
41485 ac_status=$?
41486 grep -v '^ *+' conftest.er1 >conftest.err
41487 rm -f conftest.er1
41488 cat conftest.err >&5
41489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490 (exit $ac_status); } && {
41491 test -z "$ac_c_werror_flag" ||
41492 test ! -s conftest.err
41493 } && test -s conftest.$ac_objext; then
41494 ac_header_compiler=yes
41495else
41496 $as_echo "$as_me: failed program was:" >&5
41497sed 's/^/| /' conftest.$ac_ext >&5
41498
41499 ac_header_compiler=no
41500fi
41501
41502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41503{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41504$as_echo "$ac_header_compiler" >&6; }
41505
41506# Is the header present?
41507{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
41508$as_echo_n "checking png.h presence... " >&6; }
41509cat >conftest.$ac_ext <<_ACEOF
41510/* confdefs.h. */
41511_ACEOF
41512cat confdefs.h >>conftest.$ac_ext
41513cat >>conftest.$ac_ext <<_ACEOF
41514/* end confdefs.h. */
41515#include <png.h>
41516_ACEOF
41517if { (ac_try="$ac_cpp conftest.$ac_ext"
41518case "(($ac_try" in
41519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41520 *) ac_try_echo=$ac_try;;
41521esac
41522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41523$as_echo "$ac_try_echo") >&5
41524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41525 ac_status=$?
41526 grep -v '^ *+' conftest.er1 >conftest.err
41527 rm -f conftest.er1
41528 cat conftest.err >&5
41529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530 (exit $ac_status); } >/dev/null && {
41531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41532 test ! -s conftest.err
41533 }; then
41534 ac_header_preproc=yes
41535else
41536 $as_echo "$as_me: failed program was:" >&5
41537sed 's/^/| /' conftest.$ac_ext >&5
41538
41539 ac_header_preproc=no
41540fi
41541
41542rm -f conftest.err conftest.$ac_ext
41543{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41544$as_echo "$ac_header_preproc" >&6; }
41545
41546# So? What about this header?
41547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41548 yes:no: )
41549 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
41550$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41551 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
41552$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
41553 ac_header_preproc=yes
41554 ;;
41555 no:yes:* )
41556 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
41557$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
41558 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
41559$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
41560 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
41561$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
41562 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
41563$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
41564 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
41565$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
41566 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
41567$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
41568 ( cat <<\_ASBOX
41569## ----------------------------------------- ##
41570## Report this to http://www.imagemagick.org ##
41571## ----------------------------------------- ##
41572_ASBOX
41573 ) | sed "s/^/$as_me: WARNING: /" >&2
41574 ;;
41575esac
41576{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
41577$as_echo_n "checking for png.h... " >&6; }
41578if test "${ac_cv_header_png_h+set}" = set; then
41579 $as_echo_n "(cached) " >&6
41580else
41581 ac_cv_header_png_h=$ac_header_preproc
41582fi
41583{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41584$as_echo "$ac_cv_header_png_h" >&6; }
41585
41586fi
41587if test "x$ac_cv_header_png_h" = x""yes; then
41588 passed=`expr $passed + 1`
41589else
41590 failed=`expr $failed + 1`
41591fi
41592
41593
41594 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
41595$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
41596if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
41597 $as_echo_n "(cached) " >&6
41598else
41599 ac_check_lib_save_LIBS=$LIBS
41600LIBS="-lpng $LIBS"
41601cat >conftest.$ac_ext <<_ACEOF
41602/* confdefs.h. */
41603_ACEOF
41604cat confdefs.h >>conftest.$ac_ext
41605cat >>conftest.$ac_ext <<_ACEOF
41606/* end confdefs.h. */
41607
41608/* Override any GCC internal prototype to avoid an error.
41609 Use char because int might match the return type of a GCC
41610 builtin and then its argument prototype would still apply. */
41611#ifdef __cplusplus
41612extern "C"
41613#endif
41614char png_get_io_ptr ();
41615int
41616main ()
41617{
41618return png_get_io_ptr ();
41619 ;
41620 return 0;
41621}
41622_ACEOF
41623rm -f conftest.$ac_objext conftest$ac_exeext
41624if { (ac_try="$ac_link"
41625case "(($ac_try" in
41626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41627 *) ac_try_echo=$ac_try;;
41628esac
41629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41630$as_echo "$ac_try_echo") >&5
41631 (eval "$ac_link") 2>conftest.er1
41632 ac_status=$?
41633 grep -v '^ *+' conftest.er1 >conftest.err
41634 rm -f conftest.er1
41635 cat conftest.err >&5
41636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); } && {
41638 test -z "$ac_c_werror_flag" ||
41639 test ! -s conftest.err
41640 } && test -s conftest$ac_exeext && {
41641 test "$cross_compiling" = yes ||
41642 $as_test_x conftest$ac_exeext
41643 }; then
41644 ac_cv_lib_png_png_get_io_ptr=yes
41645else
41646 $as_echo "$as_me: failed program was:" >&5
41647sed 's/^/| /' conftest.$ac_ext >&5
41648
41649 ac_cv_lib_png_png_get_io_ptr=no
41650fi
41651
41652rm -rf conftest.dSYM
41653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41654 conftest$ac_exeext conftest.$ac_ext
41655LIBS=$ac_check_lib_save_LIBS
41656fi
41657{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
41658$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
41659if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
41660 passed=`expr $passed + 1`
41661else
41662 failed=`expr $failed + 1`
41663fi
41664
41665 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
41666$as_echo_n "checking if PNG package is complete... " >&6; }
41667 if test $passed -gt 0; then
41668 if test $failed -gt 0; then
41669 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41670$as_echo "no -- some components failed test" >&6; }
41671 have_png='no (failed tests)'
41672 else
41673 PNG_LIBS='-lpng'
41674 LIBS="$PNG_LIBS $LIBS"
41675
41676cat >>confdefs.h <<\_ACEOF
41677#define PNG_DELEGATE 1
41678_ACEOF
41679
41680 { $as_echo "$as_me:$LINENO: result: yes" >&5
41681$as_echo "yes" >&6; }
41682 have_png='yes'
41683 fi
41684 else
41685 { $as_echo "$as_me:$LINENO: result: no" >&5
41686$as_echo "no" >&6; }
41687 fi
41688fi
41689 if test "$have_png" = 'yes'; then
41690 PNG_DELEGATE_TRUE=
41691 PNG_DELEGATE_FALSE='#'
41692else
41693 PNG_DELEGATE_TRUE='#'
41694 PNG_DELEGATE_FALSE=
41695fi
41696
41697
41698
41699
41700#
41701# Check for RSVG delegate library.
41702#
41703
41704# Check whether --with-rsvg was given.
41705if test "${with_rsvg+set}" = set; then
41706 withval=$with_rsvg; with_rsvg=$withval
41707else
41708 with_rsvg=$have_x
41709fi
41710
41711
41712if test "$with_rsvg" != 'yes'; then
41713 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
41714fi
41715
41716have_rsvg='no'
41717have_cairo='no'
41718RSVG_CFLAGS=""
41719RSVG_LIBS=""
41720RSVG_PKG=""
41721if test "x$with_rsvg" = "xyes"; then
41722 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41723$as_echo "-------------------------------------------------------------" >&6; }
41724
41725pkg_failed=no
41726{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
41727$as_echo_n "checking for RSVG... " >&6; }
41728
41729if test -n "$RSVG_CFLAGS"; then
41730 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
41731 elif test -n "$PKG_CONFIG"; then
41732 if test -n "$PKG_CONFIG" && \
41733 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41734 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41735 ac_status=$?
41736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737 (exit $ac_status); }; then
41738 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41739else
41740 pkg_failed=yes
41741fi
41742 else
41743 pkg_failed=untried
41744fi
41745if test -n "$RSVG_LIBS"; then
41746 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
41747 elif test -n "$PKG_CONFIG"; then
41748 if test -n "$PKG_CONFIG" && \
41749 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41750 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41751 ac_status=$?
41752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753 (exit $ac_status); }; then
41754 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41755else
41756 pkg_failed=yes
41757fi
41758 else
41759 pkg_failed=untried
41760fi
41761
41762
41763
41764if test $pkg_failed = yes; then
41765
41766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41767 _pkg_short_errors_supported=yes
41768else
41769 _pkg_short_errors_supported=no
41770fi
41771 if test $_pkg_short_errors_supported = yes; then
41772 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41773 else
41774 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41775 fi
41776 # Put the nasty error message in config.log where it belongs
41777 echo "$RSVG_PKG_ERRORS" >&5
41778
41779 { $as_echo "$as_me:$LINENO: result: no" >&5
41780$as_echo "no" >&6; }
41781 have_rsvg=no
41782elif test $pkg_failed = untried; then
41783 have_rsvg=no
41784else
41785 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
41786 RSVG_LIBS=$pkg_cv_RSVG_LIBS
41787 { $as_echo "$as_me:$LINENO: result: yes" >&5
41788$as_echo "yes" >&6; }
41789 have_rsvg=yes
41790fi
41791 { $as_echo "$as_me:$LINENO: result: " >&5
41792$as_echo "" >&6; }
41793
41794pkg_failed=no
41795{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
41796$as_echo_n "checking for CAIRO_SVG... " >&6; }
41797
41798if test -n "$CAIRO_SVG_CFLAGS"; then
41799 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
41800 elif test -n "$PKG_CONFIG"; then
41801 if test -n "$PKG_CONFIG" && \
41802 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41803 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41804 ac_status=$?
41805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41806 (exit $ac_status); }; then
41807 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
41808else
41809 pkg_failed=yes
41810fi
41811 else
41812 pkg_failed=untried
41813fi
41814if test -n "$CAIRO_SVG_LIBS"; then
41815 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
41816 elif test -n "$PKG_CONFIG"; then
41817 if test -n "$PKG_CONFIG" && \
41818 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41819 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41820 ac_status=$?
41821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); }; then
41823 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
41824else
41825 pkg_failed=yes
41826fi
41827 else
41828 pkg_failed=untried
41829fi
41830
41831
41832
41833if test $pkg_failed = yes; then
41834
41835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41836 _pkg_short_errors_supported=yes
41837else
41838 _pkg_short_errors_supported=no
41839fi
41840 if test $_pkg_short_errors_supported = yes; then
41841 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41842 else
41843 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41844 fi
41845 # Put the nasty error message in config.log where it belongs
41846 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41847
41848 { $as_echo "$as_me:$LINENO: result: no" >&5
41849$as_echo "no" >&6; }
41850 have_cairo=no
41851elif test $pkg_failed = untried; then
41852 have_cairo=no
41853else
41854 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41855 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41856 { $as_echo "$as_me:$LINENO: result: yes" >&5
41857$as_echo "yes" >&6; }
41858 have_cairo=yes
41859fi
41860 { $as_echo "$as_me:$LINENO: result: " >&5
41861$as_echo "" >&6; }
41862fi
41863
41864if test "$have_rsvg" = 'yes'; then
41865
41866cat >>confdefs.h <<\_ACEOF
41867#define RSVG_DELEGATE 1
41868_ACEOF
41869
41870 if test "$with_modules" = 'no'; then
41871 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41872 fi
41873fi
41874
41875if test "$have_cairo" = 'yes'; then
41876
41877cat >>confdefs.h <<\_ACEOF
41878#define CAIRO_DELEGATE 1
41879_ACEOF
41880
41881 if test "$with_modules" = 'no'; then
41882 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41883 fi
41884fi
41885
41886 if test "$have_rsvg" = 'yes'; then
41887 RSVG_DELEGATE_TRUE=
41888 RSVG_DELEGATE_FALSE='#'
41889else
41890 RSVG_DELEGATE_TRUE='#'
41891 RSVG_DELEGATE_FALSE=
41892fi
41893
41894 if test "$have_cairo" = 'yes'; then
41895 CAIRO_DELEGATE_TRUE=
41896 CAIRO_DELEGATE_FALSE='#'
41897else
41898 CAIRO_DELEGATE_TRUE='#'
41899 CAIRO_DELEGATE_FALSE=
41900fi
41901
41902
41903
41904
41905
41906#
41907# Check for TIFF delegate library.
41908#
41909
41910# Check whether --with-tiff was given.
41911if test "${with_tiff+set}" = set; then
41912 withval=$with_tiff; with_tiff=$withval
41913else
41914 with_tiff='yes'
41915fi
41916
41917
41918if test "$with_tiff" != 'yes'; then
41919 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41920fi
41921
41922have_tiff='no'
41923TIFF_LIBS=''
41924if test "$with_tiff" != 'no'; then
41925 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41926$as_echo "-------------------------------------------------------------" >&6; }
41927 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41928$as_echo_n "checking for TIFF... " >&6; }
41929 { $as_echo "$as_me:$LINENO: result: " >&5
41930$as_echo "" >&6; }
41931 failed=0
41932 passed=0
41933 if test "${ac_cv_header_tiff_h+set}" = set; then
41934 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41935$as_echo_n "checking for tiff.h... " >&6; }
41936if test "${ac_cv_header_tiff_h+set}" = set; then
41937 $as_echo_n "(cached) " >&6
41938fi
41939{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41940$as_echo "$ac_cv_header_tiff_h" >&6; }
41941else
41942 # Is the header compilable?
41943{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41944$as_echo_n "checking tiff.h usability... " >&6; }
41945cat >conftest.$ac_ext <<_ACEOF
41946/* confdefs.h. */
41947_ACEOF
41948cat confdefs.h >>conftest.$ac_ext
41949cat >>conftest.$ac_ext <<_ACEOF
41950/* end confdefs.h. */
41951$ac_includes_default
41952#include <tiff.h>
41953_ACEOF
41954rm -f conftest.$ac_objext
41955if { (ac_try="$ac_compile"
41956case "(($ac_try" in
41957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41958 *) ac_try_echo=$ac_try;;
41959esac
41960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41961$as_echo "$ac_try_echo") >&5
41962 (eval "$ac_compile") 2>conftest.er1
41963 ac_status=$?
41964 grep -v '^ *+' conftest.er1 >conftest.err
41965 rm -f conftest.er1
41966 cat conftest.err >&5
41967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); } && {
41969 test -z "$ac_c_werror_flag" ||
41970 test ! -s conftest.err
41971 } && test -s conftest.$ac_objext; then
41972 ac_header_compiler=yes
41973else
41974 $as_echo "$as_me: failed program was:" >&5
41975sed 's/^/| /' conftest.$ac_ext >&5
41976
41977 ac_header_compiler=no
41978fi
41979
41980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41981{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41982$as_echo "$ac_header_compiler" >&6; }
41983
41984# Is the header present?
41985{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41986$as_echo_n "checking tiff.h presence... " >&6; }
41987cat >conftest.$ac_ext <<_ACEOF
41988/* confdefs.h. */
41989_ACEOF
41990cat confdefs.h >>conftest.$ac_ext
41991cat >>conftest.$ac_ext <<_ACEOF
41992/* end confdefs.h. */
41993#include <tiff.h>
41994_ACEOF
41995if { (ac_try="$ac_cpp conftest.$ac_ext"
41996case "(($ac_try" in
41997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41998 *) ac_try_echo=$ac_try;;
41999esac
42000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42001$as_echo "$ac_try_echo") >&5
42002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42003 ac_status=$?
42004 grep -v '^ *+' conftest.er1 >conftest.err
42005 rm -f conftest.er1
42006 cat conftest.err >&5
42007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008 (exit $ac_status); } >/dev/null && {
42009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42010 test ! -s conftest.err
42011 }; then
42012 ac_header_preproc=yes
42013else
42014 $as_echo "$as_me: failed program was:" >&5
42015sed 's/^/| /' conftest.$ac_ext >&5
42016
42017 ac_header_preproc=no
42018fi
42019
42020rm -f conftest.err conftest.$ac_ext
42021{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42022$as_echo "$ac_header_preproc" >&6; }
42023
42024# So? What about this header?
42025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42026 yes:no: )
42027 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
42028$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42029 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
42030$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
42031 ac_header_preproc=yes
42032 ;;
42033 no:yes:* )
42034 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
42035$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
42036 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
42037$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
42038 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
42039$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
42040 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
42041$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
42042 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
42043$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
42044 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
42045$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
42046 ( cat <<\_ASBOX
42047## ----------------------------------------- ##
42048## Report this to http://www.imagemagick.org ##
42049## ----------------------------------------- ##
42050_ASBOX
42051 ) | sed "s/^/$as_me: WARNING: /" >&2
42052 ;;
42053esac
42054{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
42055$as_echo_n "checking for tiff.h... " >&6; }
42056if test "${ac_cv_header_tiff_h+set}" = set; then
42057 $as_echo_n "(cached) " >&6
42058else
42059 ac_cv_header_tiff_h=$ac_header_preproc
42060fi
42061{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
42062$as_echo "$ac_cv_header_tiff_h" >&6; }
42063
42064fi
42065if test "x$ac_cv_header_tiff_h" = x""yes; then
42066 passed=`expr $passed + 1`
42067else
42068 failed=`expr $failed + 1`
42069fi
42070
42071
42072 if test "${ac_cv_header_tiffio_h+set}" = set; then
42073 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42074$as_echo_n "checking for tiffio.h... " >&6; }
42075if test "${ac_cv_header_tiffio_h+set}" = set; then
42076 $as_echo_n "(cached) " >&6
42077fi
42078{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42079$as_echo "$ac_cv_header_tiffio_h" >&6; }
42080else
42081 # Is the header compilable?
42082{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
42083$as_echo_n "checking tiffio.h usability... " >&6; }
42084cat >conftest.$ac_ext <<_ACEOF
42085/* confdefs.h. */
42086_ACEOF
42087cat confdefs.h >>conftest.$ac_ext
42088cat >>conftest.$ac_ext <<_ACEOF
42089/* end confdefs.h. */
42090$ac_includes_default
42091#include <tiffio.h>
42092_ACEOF
42093rm -f conftest.$ac_objext
42094if { (ac_try="$ac_compile"
42095case "(($ac_try" in
42096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42097 *) ac_try_echo=$ac_try;;
42098esac
42099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42100$as_echo "$ac_try_echo") >&5
42101 (eval "$ac_compile") 2>conftest.er1
42102 ac_status=$?
42103 grep -v '^ *+' conftest.er1 >conftest.err
42104 rm -f conftest.er1
42105 cat conftest.err >&5
42106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107 (exit $ac_status); } && {
42108 test -z "$ac_c_werror_flag" ||
42109 test ! -s conftest.err
42110 } && test -s conftest.$ac_objext; then
42111 ac_header_compiler=yes
42112else
42113 $as_echo "$as_me: failed program was:" >&5
42114sed 's/^/| /' conftest.$ac_ext >&5
42115
42116 ac_header_compiler=no
42117fi
42118
42119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42120{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42121$as_echo "$ac_header_compiler" >&6; }
42122
42123# Is the header present?
42124{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
42125$as_echo_n "checking tiffio.h presence... " >&6; }
42126cat >conftest.$ac_ext <<_ACEOF
42127/* confdefs.h. */
42128_ACEOF
42129cat confdefs.h >>conftest.$ac_ext
42130cat >>conftest.$ac_ext <<_ACEOF
42131/* end confdefs.h. */
42132#include <tiffio.h>
42133_ACEOF
42134if { (ac_try="$ac_cpp conftest.$ac_ext"
42135case "(($ac_try" in
42136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42137 *) ac_try_echo=$ac_try;;
42138esac
42139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42140$as_echo "$ac_try_echo") >&5
42141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42142 ac_status=$?
42143 grep -v '^ *+' conftest.er1 >conftest.err
42144 rm -f conftest.er1
42145 cat conftest.err >&5
42146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147 (exit $ac_status); } >/dev/null && {
42148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42149 test ! -s conftest.err
42150 }; then
42151 ac_header_preproc=yes
42152else
42153 $as_echo "$as_me: failed program was:" >&5
42154sed 's/^/| /' conftest.$ac_ext >&5
42155
42156 ac_header_preproc=no
42157fi
42158
42159rm -f conftest.err conftest.$ac_ext
42160{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42161$as_echo "$ac_header_preproc" >&6; }
42162
42163# So? What about this header?
42164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42165 yes:no: )
42166 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
42167$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42168 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
42169$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
42170 ac_header_preproc=yes
42171 ;;
42172 no:yes:* )
42173 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
42174$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
42175 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
42176$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
42177 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
42178$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
42179 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
42180$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
42181 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
42182$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
42183 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
42184$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
42185 ( cat <<\_ASBOX
42186## ----------------------------------------- ##
42187## Report this to http://www.imagemagick.org ##
42188## ----------------------------------------- ##
42189_ASBOX
42190 ) | sed "s/^/$as_me: WARNING: /" >&2
42191 ;;
42192esac
42193{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42194$as_echo_n "checking for tiffio.h... " >&6; }
42195if test "${ac_cv_header_tiffio_h+set}" = set; then
42196 $as_echo_n "(cached) " >&6
42197else
42198 ac_cv_header_tiffio_h=$ac_header_preproc
42199fi
42200{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42201$as_echo "$ac_cv_header_tiffio_h" >&6; }
42202
42203fi
42204if test "x$ac_cv_header_tiffio_h" = x""yes; then
42205 passed=`expr $passed + 1`
42206else
42207 failed=`expr $failed + 1`
42208fi
42209
42210
42211 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
42212$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
42213if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
42214 $as_echo_n "(cached) " >&6
42215else
42216 ac_check_lib_save_LIBS=$LIBS
42217LIBS="-ltiff $LIBS"
42218cat >conftest.$ac_ext <<_ACEOF
42219/* confdefs.h. */
42220_ACEOF
42221cat confdefs.h >>conftest.$ac_ext
42222cat >>conftest.$ac_ext <<_ACEOF
42223/* end confdefs.h. */
42224
42225/* Override any GCC internal prototype to avoid an error.
42226 Use char because int might match the return type of a GCC
42227 builtin and then its argument prototype would still apply. */
42228#ifdef __cplusplus
42229extern "C"
42230#endif
42231char TIFFOpen ();
42232int
42233main ()
42234{
42235return TIFFOpen ();
42236 ;
42237 return 0;
42238}
42239_ACEOF
42240rm -f conftest.$ac_objext conftest$ac_exeext
42241if { (ac_try="$ac_link"
42242case "(($ac_try" in
42243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42244 *) ac_try_echo=$ac_try;;
42245esac
42246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42247$as_echo "$ac_try_echo") >&5
42248 (eval "$ac_link") 2>conftest.er1
42249 ac_status=$?
42250 grep -v '^ *+' conftest.er1 >conftest.err
42251 rm -f conftest.er1
42252 cat conftest.err >&5
42253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); } && {
42255 test -z "$ac_c_werror_flag" ||
42256 test ! -s conftest.err
42257 } && test -s conftest$ac_exeext && {
42258 test "$cross_compiling" = yes ||
42259 $as_test_x conftest$ac_exeext
42260 }; then
42261 ac_cv_lib_tiff_TIFFOpen=yes
42262else
42263 $as_echo "$as_me: failed program was:" >&5
42264sed 's/^/| /' conftest.$ac_ext >&5
42265
42266 ac_cv_lib_tiff_TIFFOpen=no
42267fi
42268
42269rm -rf conftest.dSYM
42270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42271 conftest$ac_exeext conftest.$ac_ext
42272LIBS=$ac_check_lib_save_LIBS
42273fi
42274{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
42275$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
42276if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
42277 passed=`expr $passed + 1`
42278else
42279 failed=`expr $failed + 1`
42280fi
42281
42282 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
42283$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
42284if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
42285 $as_echo_n "(cached) " >&6
42286else
42287 ac_check_lib_save_LIBS=$LIBS
42288LIBS="-ltiff $LIBS"
42289cat >conftest.$ac_ext <<_ACEOF
42290/* confdefs.h. */
42291_ACEOF
42292cat confdefs.h >>conftest.$ac_ext
42293cat >>conftest.$ac_ext <<_ACEOF
42294/* end confdefs.h. */
42295
42296/* Override any GCC internal prototype to avoid an error.
42297 Use char because int might match the return type of a GCC
42298 builtin and then its argument prototype would still apply. */
42299#ifdef __cplusplus
42300extern "C"
42301#endif
42302char TIFFClientOpen ();
42303int
42304main ()
42305{
42306return TIFFClientOpen ();
42307 ;
42308 return 0;
42309}
42310_ACEOF
42311rm -f conftest.$ac_objext conftest$ac_exeext
42312if { (ac_try="$ac_link"
42313case "(($ac_try" in
42314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42315 *) ac_try_echo=$ac_try;;
42316esac
42317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42318$as_echo "$ac_try_echo") >&5
42319 (eval "$ac_link") 2>conftest.er1
42320 ac_status=$?
42321 grep -v '^ *+' conftest.er1 >conftest.err
42322 rm -f conftest.er1
42323 cat conftest.err >&5
42324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325 (exit $ac_status); } && {
42326 test -z "$ac_c_werror_flag" ||
42327 test ! -s conftest.err
42328 } && test -s conftest$ac_exeext && {
42329 test "$cross_compiling" = yes ||
42330 $as_test_x conftest$ac_exeext
42331 }; then
42332 ac_cv_lib_tiff_TIFFClientOpen=yes
42333else
42334 $as_echo "$as_me: failed program was:" >&5
42335sed 's/^/| /' conftest.$ac_ext >&5
42336
42337 ac_cv_lib_tiff_TIFFClientOpen=no
42338fi
42339
42340rm -rf conftest.dSYM
42341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42342 conftest$ac_exeext conftest.$ac_ext
42343LIBS=$ac_check_lib_save_LIBS
42344fi
42345{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
42346$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
42347if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
42348 passed=`expr $passed + 1`
42349else
42350 failed=`expr $failed + 1`
42351fi
42352
42353 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
42354$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
42355if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
42356 $as_echo_n "(cached) " >&6
42357else
42358 ac_check_lib_save_LIBS=$LIBS
42359LIBS="-ltiff $LIBS"
42360cat >conftest.$ac_ext <<_ACEOF
42361/* confdefs.h. */
42362_ACEOF
42363cat confdefs.h >>conftest.$ac_ext
42364cat >>conftest.$ac_ext <<_ACEOF
42365/* end confdefs.h. */
42366
42367/* Override any GCC internal prototype to avoid an error.
42368 Use char because int might match the return type of a GCC
42369 builtin and then its argument prototype would still apply. */
42370#ifdef __cplusplus
42371extern "C"
42372#endif
42373char TIFFIsByteSwapped ();
42374int
42375main ()
42376{
42377return TIFFIsByteSwapped ();
42378 ;
42379 return 0;
42380}
42381_ACEOF
42382rm -f conftest.$ac_objext conftest$ac_exeext
42383if { (ac_try="$ac_link"
42384case "(($ac_try" in
42385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42386 *) ac_try_echo=$ac_try;;
42387esac
42388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42389$as_echo "$ac_try_echo") >&5
42390 (eval "$ac_link") 2>conftest.er1
42391 ac_status=$?
42392 grep -v '^ *+' conftest.er1 >conftest.err
42393 rm -f conftest.er1
42394 cat conftest.err >&5
42395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42396 (exit $ac_status); } && {
42397 test -z "$ac_c_werror_flag" ||
42398 test ! -s conftest.err
42399 } && test -s conftest$ac_exeext && {
42400 test "$cross_compiling" = yes ||
42401 $as_test_x conftest$ac_exeext
42402 }; then
42403 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
42404else
42405 $as_echo "$as_me: failed program was:" >&5
42406sed 's/^/| /' conftest.$ac_ext >&5
42407
42408 ac_cv_lib_tiff_TIFFIsByteSwapped=no
42409fi
42410
42411rm -rf conftest.dSYM
42412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42413 conftest$ac_exeext conftest.$ac_ext
42414LIBS=$ac_check_lib_save_LIBS
42415fi
42416{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
42417$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
42418if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
42419 passed=`expr $passed + 1`
42420else
42421 failed=`expr $failed + 1`
42422fi
42423
42424 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
42425$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
42426if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
42427 $as_echo_n "(cached) " >&6
42428else
42429 ac_check_lib_save_LIBS=$LIBS
42430LIBS="-ltiff $LIBS"
42431cat >conftest.$ac_ext <<_ACEOF
42432/* confdefs.h. */
42433_ACEOF
42434cat confdefs.h >>conftest.$ac_ext
42435cat >>conftest.$ac_ext <<_ACEOF
42436/* end confdefs.h. */
42437
42438/* Override any GCC internal prototype to avoid an error.
42439 Use char because int might match the return type of a GCC
42440 builtin and then its argument prototype would still apply. */
42441#ifdef __cplusplus
42442extern "C"
42443#endif
42444char TIFFReadRGBATile ();
42445int
42446main ()
42447{
42448return TIFFReadRGBATile ();
42449 ;
42450 return 0;
42451}
42452_ACEOF
42453rm -f conftest.$ac_objext conftest$ac_exeext
42454if { (ac_try="$ac_link"
42455case "(($ac_try" in
42456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42457 *) ac_try_echo=$ac_try;;
42458esac
42459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42460$as_echo "$ac_try_echo") >&5
42461 (eval "$ac_link") 2>conftest.er1
42462 ac_status=$?
42463 grep -v '^ *+' conftest.er1 >conftest.err
42464 rm -f conftest.er1
42465 cat conftest.err >&5
42466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42467 (exit $ac_status); } && {
42468 test -z "$ac_c_werror_flag" ||
42469 test ! -s conftest.err
42470 } && test -s conftest$ac_exeext && {
42471 test "$cross_compiling" = yes ||
42472 $as_test_x conftest$ac_exeext
42473 }; then
42474 ac_cv_lib_tiff_TIFFReadRGBATile=yes
42475else
42476 $as_echo "$as_me: failed program was:" >&5
42477sed 's/^/| /' conftest.$ac_ext >&5
42478
42479 ac_cv_lib_tiff_TIFFReadRGBATile=no
42480fi
42481
42482rm -rf conftest.dSYM
42483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42484 conftest$ac_exeext conftest.$ac_ext
42485LIBS=$ac_check_lib_save_LIBS
42486fi
42487{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
42488$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
42489if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
42490 passed=`expr $passed + 1`
42491else
42492 failed=`expr $failed + 1`
42493fi
42494
42495 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
42496$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
42497if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
42498 $as_echo_n "(cached) " >&6
42499else
42500 ac_check_lib_save_LIBS=$LIBS
42501LIBS="-ltiff $LIBS"
42502cat >conftest.$ac_ext <<_ACEOF
42503/* confdefs.h. */
42504_ACEOF
42505cat confdefs.h >>conftest.$ac_ext
42506cat >>conftest.$ac_ext <<_ACEOF
42507/* end confdefs.h. */
42508
42509/* Override any GCC internal prototype to avoid an error.
42510 Use char because int might match the return type of a GCC
42511 builtin and then its argument prototype would still apply. */
42512#ifdef __cplusplus
42513extern "C"
42514#endif
42515char TIFFReadRGBAStrip ();
42516int
42517main ()
42518{
42519return TIFFReadRGBAStrip ();
42520 ;
42521 return 0;
42522}
42523_ACEOF
42524rm -f conftest.$ac_objext conftest$ac_exeext
42525if { (ac_try="$ac_link"
42526case "(($ac_try" in
42527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42528 *) ac_try_echo=$ac_try;;
42529esac
42530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42531$as_echo "$ac_try_echo") >&5
42532 (eval "$ac_link") 2>conftest.er1
42533 ac_status=$?
42534 grep -v '^ *+' conftest.er1 >conftest.err
42535 rm -f conftest.er1
42536 cat conftest.err >&5
42537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42538 (exit $ac_status); } && {
42539 test -z "$ac_c_werror_flag" ||
42540 test ! -s conftest.err
42541 } && test -s conftest$ac_exeext && {
42542 test "$cross_compiling" = yes ||
42543 $as_test_x conftest$ac_exeext
42544 }; then
42545 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
42546else
42547 $as_echo "$as_me: failed program was:" >&5
42548sed 's/^/| /' conftest.$ac_ext >&5
42549
42550 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
42551fi
42552
42553rm -rf conftest.dSYM
42554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42555 conftest$ac_exeext conftest.$ac_ext
42556LIBS=$ac_check_lib_save_LIBS
42557fi
42558{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
42559$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
42560if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
42561 passed=`expr $passed + 1`
42562else
42563 failed=`expr $failed + 1`
42564fi
42565
42566 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
42567$as_echo_n "checking if TIFF package is complete... " >&6; }
42568 if test $passed -gt 0; then
42569 if test $failed -gt 0; then
42570 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42571$as_echo "no -- some components failed test" >&6; }
42572 have_tiff='no (failed tests)'
42573 else
42574 TIFF_LIBS='-ltiff'
42575 LIBS="$TIFF_LIBS $LIBS"
42576
42577cat >>confdefs.h <<\_ACEOF
42578#define TIFF_DELEGATE 1
42579_ACEOF
42580
42581 { $as_echo "$as_me:$LINENO: result: yes" >&5
42582$as_echo "yes" >&6; }
42583 have_tiff='yes'
42584
42585for ac_header in tiffconf.h
42586do
42587as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42590$as_echo_n "checking for $ac_header... " >&6; }
42591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42592 $as_echo_n "(cached) " >&6
42593fi
42594ac_res=`eval 'as_val=${'$as_ac_Header'}
42595 $as_echo "$as_val"'`
42596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42597$as_echo "$ac_res" >&6; }
42598else
42599 # Is the header compilable?
42600{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42601$as_echo_n "checking $ac_header usability... " >&6; }
42602cat >conftest.$ac_ext <<_ACEOF
42603/* confdefs.h. */
42604_ACEOF
42605cat confdefs.h >>conftest.$ac_ext
42606cat >>conftest.$ac_ext <<_ACEOF
42607/* end confdefs.h. */
42608$ac_includes_default
42609#include <$ac_header>
42610_ACEOF
42611rm -f conftest.$ac_objext
42612if { (ac_try="$ac_compile"
42613case "(($ac_try" in
42614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42615 *) ac_try_echo=$ac_try;;
42616esac
42617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42618$as_echo "$ac_try_echo") >&5
42619 (eval "$ac_compile") 2>conftest.er1
42620 ac_status=$?
42621 grep -v '^ *+' conftest.er1 >conftest.err
42622 rm -f conftest.er1
42623 cat conftest.err >&5
42624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42625 (exit $ac_status); } && {
42626 test -z "$ac_c_werror_flag" ||
42627 test ! -s conftest.err
42628 } && test -s conftest.$ac_objext; then
42629 ac_header_compiler=yes
42630else
42631 $as_echo "$as_me: failed program was:" >&5
42632sed 's/^/| /' conftest.$ac_ext >&5
42633
42634 ac_header_compiler=no
42635fi
42636
42637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42638{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42639$as_echo "$ac_header_compiler" >&6; }
42640
42641# Is the header present?
42642{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42643$as_echo_n "checking $ac_header presence... " >&6; }
42644cat >conftest.$ac_ext <<_ACEOF
42645/* confdefs.h. */
42646_ACEOF
42647cat confdefs.h >>conftest.$ac_ext
42648cat >>conftest.$ac_ext <<_ACEOF
42649/* end confdefs.h. */
42650#include <$ac_header>
42651_ACEOF
42652if { (ac_try="$ac_cpp conftest.$ac_ext"
42653case "(($ac_try" in
42654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42655 *) ac_try_echo=$ac_try;;
42656esac
42657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42658$as_echo "$ac_try_echo") >&5
42659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42660 ac_status=$?
42661 grep -v '^ *+' conftest.er1 >conftest.err
42662 rm -f conftest.er1
42663 cat conftest.err >&5
42664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665 (exit $ac_status); } >/dev/null && {
42666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42667 test ! -s conftest.err
42668 }; then
42669 ac_header_preproc=yes
42670else
42671 $as_echo "$as_me: failed program was:" >&5
42672sed 's/^/| /' conftest.$ac_ext >&5
42673
42674 ac_header_preproc=no
42675fi
42676
42677rm -f conftest.err conftest.$ac_ext
42678{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42679$as_echo "$ac_header_preproc" >&6; }
42680
42681# So? What about this header?
42682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42683 yes:no: )
42684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42685$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42687$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42688 ac_header_preproc=yes
42689 ;;
42690 no:yes:* )
42691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42692$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42694$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42696$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42698$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42700$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42702$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42703 ( cat <<\_ASBOX
42704## ----------------------------------------- ##
42705## Report this to http://www.imagemagick.org ##
42706## ----------------------------------------- ##
42707_ASBOX
42708 ) | sed "s/^/$as_me: WARNING: /" >&2
42709 ;;
42710esac
42711{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42712$as_echo_n "checking for $ac_header... " >&6; }
42713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42714 $as_echo_n "(cached) " >&6
42715else
42716 eval "$as_ac_Header=\$ac_header_preproc"
42717fi
42718ac_res=`eval 'as_val=${'$as_ac_Header'}
42719 $as_echo "$as_val"'`
42720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42721$as_echo "$ac_res" >&6; }
42722
42723fi
42724as_val=`eval 'as_val=${'$as_ac_Header'}
42725 $as_echo "$as_val"'`
42726 if test "x$as_val" = x""yes; then
42727 cat >>confdefs.h <<_ACEOF
42728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42729_ACEOF
42730
42731fi
42732
42733done
42734
42735
42736
42737
42738
42739
42740
42741
42742for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
42743 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
42744 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
42745do
42746as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42747{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42748$as_echo_n "checking for $ac_func... " >&6; }
42749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42750 $as_echo_n "(cached) " >&6
42751else
42752 cat >conftest.$ac_ext <<_ACEOF
42753/* confdefs.h. */
42754_ACEOF
42755cat confdefs.h >>conftest.$ac_ext
42756cat >>conftest.$ac_ext <<_ACEOF
42757/* end confdefs.h. */
42758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42760#define $ac_func innocuous_$ac_func
42761
42762/* System header to define __stub macros and hopefully few prototypes,
42763 which can conflict with char $ac_func (); below.
42764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42765 <limits.h> exists even on freestanding compilers. */
42766
42767#ifdef __STDC__
42768# include <limits.h>
42769#else
42770# include <assert.h>
42771#endif
42772
42773#undef $ac_func
42774
42775/* Override any GCC internal prototype to avoid an error.
42776 Use char because int might match the return type of a GCC
42777 builtin and then its argument prototype would still apply. */
42778#ifdef __cplusplus
42779extern "C"
42780#endif
42781char $ac_func ();
42782/* The GNU C library defines this for functions which it implements
42783 to always fail with ENOSYS. Some functions are actually named
42784 something starting with __ and the normal name is an alias. */
42785#if defined __stub_$ac_func || defined __stub___$ac_func
42786choke me
42787#endif
42788
42789int
42790main ()
42791{
42792return $ac_func ();
42793 ;
42794 return 0;
42795}
42796_ACEOF
42797rm -f conftest.$ac_objext conftest$ac_exeext
42798if { (ac_try="$ac_link"
42799case "(($ac_try" in
42800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42801 *) ac_try_echo=$ac_try;;
42802esac
42803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42804$as_echo "$ac_try_echo") >&5
42805 (eval "$ac_link") 2>conftest.er1
42806 ac_status=$?
42807 grep -v '^ *+' conftest.er1 >conftest.err
42808 rm -f conftest.er1
42809 cat conftest.err >&5
42810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42811 (exit $ac_status); } && {
42812 test -z "$ac_c_werror_flag" ||
42813 test ! -s conftest.err
42814 } && test -s conftest$ac_exeext && {
42815 test "$cross_compiling" = yes ||
42816 $as_test_x conftest$ac_exeext
42817 }; then
42818 eval "$as_ac_var=yes"
42819else
42820 $as_echo "$as_me: failed program was:" >&5
42821sed 's/^/| /' conftest.$ac_ext >&5
42822
42823 eval "$as_ac_var=no"
42824fi
42825
42826rm -rf conftest.dSYM
42827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42828 conftest$ac_exeext conftest.$ac_ext
42829fi
42830ac_res=`eval 'as_val=${'$as_ac_var'}
42831 $as_echo "$as_val"'`
42832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42833$as_echo "$ac_res" >&6; }
42834as_val=`eval 'as_val=${'$as_ac_var'}
42835 $as_echo "$as_val"'`
42836 if test "x$as_val" = x""yes; then
42837 cat >>confdefs.h <<_ACEOF
42838#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42839_ACEOF
42840
42841fi
42842done
42843
42844 fi
42845 else
42846 { $as_echo "$as_me:$LINENO: result: no" >&5
42847$as_echo "no" >&6; }
42848 fi
42849fi
42850 if test "$have_tiff" = 'yes'; then
42851 TIFF_DELEGATE_TRUE=
42852 TIFF_DELEGATE_FALSE='#'
42853else
42854 TIFF_DELEGATE_TRUE='#'
42855 TIFF_DELEGATE_FALSE=
42856fi
42857
42858
42859
42860
42861#
42862# Set Windows font directory.
42863#
42864
42865# Check whether --with-windows-font-dir was given.
42866if test "${with_windows_font_dir+set}" = set; then
42867 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42868else
42869 with_windows_font_dir=''
42870fi
42871
42872if test "$with_windows_font_dir" != '' ; then
42873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42874fi
42875
42876
42877#
42878# Check for WMF delegate library.
42879#
42880
42881# Check whether --with-wmf was given.
42882if test "${with_wmf+set}" = set; then
42883 withval=$with_wmf; with_wmf=$withval
42884else
42885 with_wmf=$with_modules
42886fi
42887
42888
42889if test "$with_wmf" != 'yes'; then
42890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42891fi
42892
42893have_wmf='no'
42894WMF_LIBS=''
42895WMF_LIBS_DEPS=''
42896OLIBS="$LIBS"
42897if test "$with_wmf" != 'no'; then
42898 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42899$as_echo "-------------------------------------------------------------" >&6; }
42900 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42901$as_echo_n "checking for WMF... " >&6; }
42902 { $as_echo "$as_me:$LINENO: result: " >&5
42903$as_echo "" >&6; }
42904 have_libwmf='no'
42905 have_libwmflite='no'
42906 have_libwmf_ipa_h='no'
42907
42908 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42909$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42910if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42911 $as_echo_n "(cached) " >&6
42912else
42913 cat >conftest.$ac_ext <<_ACEOF
42914/* confdefs.h. */
42915_ACEOF
42916cat confdefs.h >>conftest.$ac_ext
42917cat >>conftest.$ac_ext <<_ACEOF
42918/* end confdefs.h. */
42919$FT2BUILD_H
42920
42921#include <libwmf/ipa.h>
42922_ACEOF
42923rm -f conftest.$ac_objext
42924if { (ac_try="$ac_compile"
42925case "(($ac_try" in
42926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42927 *) ac_try_echo=$ac_try;;
42928esac
42929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42930$as_echo "$ac_try_echo") >&5
42931 (eval "$ac_compile") 2>conftest.er1
42932 ac_status=$?
42933 grep -v '^ *+' conftest.er1 >conftest.err
42934 rm -f conftest.er1
42935 cat conftest.err >&5
42936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42937 (exit $ac_status); } && {
42938 test -z "$ac_c_werror_flag" ||
42939 test ! -s conftest.err
42940 } && test -s conftest.$ac_objext; then
42941 ac_cv_header_libwmf_ipa_h=yes
42942else
42943 $as_echo "$as_me: failed program was:" >&5
42944sed 's/^/| /' conftest.$ac_ext >&5
42945
42946 ac_cv_header_libwmf_ipa_h=no
42947fi
42948
42949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42950fi
42951{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42952$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42953if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42954 have_libwmf_ipa_h='yes'
42955fi
42956
42957
42958 if test "$have_libwmf_ipa_h" = 'yes'; then
42959 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42960$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42961if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42962 $as_echo_n "(cached) " >&6
42963else
42964 ac_check_lib_save_LIBS=$LIBS
42965LIBS="-lwmflite $LIBS"
42966cat >conftest.$ac_ext <<_ACEOF
42967/* confdefs.h. */
42968_ACEOF
42969cat confdefs.h >>conftest.$ac_ext
42970cat >>conftest.$ac_ext <<_ACEOF
42971/* end confdefs.h. */
42972
42973/* Override any GCC internal prototype to avoid an error.
42974 Use char because int might match the return type of a GCC
42975 builtin and then its argument prototype would still apply. */
42976#ifdef __cplusplus
42977extern "C"
42978#endif
42979char wmf_lite_create ();
42980int
42981main ()
42982{
42983return wmf_lite_create ();
42984 ;
42985 return 0;
42986}
42987_ACEOF
42988rm -f conftest.$ac_objext conftest$ac_exeext
42989if { (ac_try="$ac_link"
42990case "(($ac_try" in
42991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42992 *) ac_try_echo=$ac_try;;
42993esac
42994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42995$as_echo "$ac_try_echo") >&5
42996 (eval "$ac_link") 2>conftest.er1
42997 ac_status=$?
42998 grep -v '^ *+' conftest.er1 >conftest.err
42999 rm -f conftest.er1
43000 cat conftest.err >&5
43001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43002 (exit $ac_status); } && {
43003 test -z "$ac_c_werror_flag" ||
43004 test ! -s conftest.err
43005 } && test -s conftest$ac_exeext && {
43006 test "$cross_compiling" = yes ||
43007 $as_test_x conftest$ac_exeext
43008 }; then
43009 ac_cv_lib_wmflite_wmf_lite_create=yes
43010else
43011 $as_echo "$as_me: failed program was:" >&5
43012sed 's/^/| /' conftest.$ac_ext >&5
43013
43014 ac_cv_lib_wmflite_wmf_lite_create=no
43015fi
43016
43017rm -rf conftest.dSYM
43018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43019 conftest$ac_exeext conftest.$ac_ext
43020LIBS=$ac_check_lib_save_LIBS
43021fi
43022{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
43023$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
43024if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
43025 have_libwmflite='yes'
43026fi
43027
43028 if test "$have_libwmflite" = 'yes'; then
43029
43030cat >>confdefs.h <<\_ACEOF
43031#define WMFLITE_DELEGATE 1
43032_ACEOF
43033
43034 WMF_LIBS='-lwmflite'
43035 LIBS="$WMF_LIBS $LIBS"
43036 have_wmf='yes'
43037 else
43038 WMF_LIBS_DEPS=''
43039 WMF_CONFIG_LIBS=`libwmf-config --libs`
43040 for lib in xml2 expat freetype jpeg png z; do
43041 testlib="-l${lib}"
43042 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
43043 done
43044 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
43045$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
43046if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
43047 $as_echo_n "(cached) " >&6
43048else
43049 ac_check_lib_save_LIBS=$LIBS
43050LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
43051cat >conftest.$ac_ext <<_ACEOF
43052/* confdefs.h. */
43053_ACEOF
43054cat confdefs.h >>conftest.$ac_ext
43055cat >>conftest.$ac_ext <<_ACEOF
43056/* end confdefs.h. */
43057
43058/* Override any GCC internal prototype to avoid an error.
43059 Use char because int might match the return type of a GCC
43060 builtin and then its argument prototype would still apply. */
43061#ifdef __cplusplus
43062extern "C"
43063#endif
43064char wmf_api_create ();
43065int
43066main ()
43067{
43068return wmf_api_create ();
43069 ;
43070 return 0;
43071}
43072_ACEOF
43073rm -f conftest.$ac_objext conftest$ac_exeext
43074if { (ac_try="$ac_link"
43075case "(($ac_try" in
43076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43077 *) ac_try_echo=$ac_try;;
43078esac
43079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43080$as_echo "$ac_try_echo") >&5
43081 (eval "$ac_link") 2>conftest.er1
43082 ac_status=$?
43083 grep -v '^ *+' conftest.er1 >conftest.err
43084 rm -f conftest.er1
43085 cat conftest.err >&5
43086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087 (exit $ac_status); } && {
43088 test -z "$ac_c_werror_flag" ||
43089 test ! -s conftest.err
43090 } && test -s conftest$ac_exeext && {
43091 test "$cross_compiling" = yes ||
43092 $as_test_x conftest$ac_exeext
43093 }; then
43094 ac_cv_lib_wmf_wmf_api_create=yes
43095else
43096 $as_echo "$as_me: failed program was:" >&5
43097sed 's/^/| /' conftest.$ac_ext >&5
43098
43099 ac_cv_lib_wmf_wmf_api_create=no
43100fi
43101
43102rm -rf conftest.dSYM
43103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43104 conftest$ac_exeext conftest.$ac_ext
43105LIBS=$ac_check_lib_save_LIBS
43106fi
43107{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
43108$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
43109if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
43110 have_libwmf='yes'
43111fi
43112
43113 if test "$have_libwmf" = 'yes'; then
43114
43115cat >>confdefs.h <<\_ACEOF
43116#define WMF_DELEGATE 1
43117_ACEOF
43118
43119 WMF_LIBS='-lwmf'
43120 LIBS="$WMF_LIBS $LIBS"
43121 have_wmf='yes'
43122 else
43123 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43124$as_echo "no -- some components failed test" >&6; }
43125 have_wmf='no (failed tests)'
43126 have_wmflite='no (failed tests)'
43127 LIBS="$OLIBS"
43128 WMF_LIBS=''
43129 fi
43130 fi
43131 fi
43132 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
43133$as_echo_n "checking if WMF package is complete... " >&6; }
43134 if test "$have_wmf" = 'yes'; then
43135 { $as_echo "$as_me:$LINENO: result: yes" >&5
43136$as_echo "yes" >&6; }
43137 else
43138 { $as_echo "$as_me:$LINENO: result: no" >&5
43139$as_echo "no" >&6; }
43140 fi
43141fi
43142 if test "$have_wmf" = 'yes'; then
43143 WMF_DELEGATE_TRUE=
43144 WMF_DELEGATE_FALSE='#'
43145else
43146 WMF_DELEGATE_TRUE='#'
43147 WMF_DELEGATE_FALSE=
43148fi
43149
43150
43151
43152
43153
43154#
43155# Check for XML delegate library.
43156#
43157
43158# Check whether --with-xml was given.
43159if test "${with_xml+set}" = set; then
43160 withval=$with_xml; with_xml=$withval
43161else
43162 with_xml=$have_x
43163fi
43164
43165
43166if test "$with_xml" != 'yes' ; then
43167 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
43168fi
43169
43170have_xml='no'
43171XML_LIBS=''
43172if test "$with_xml" != 'no'; then
43173 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43174$as_echo "-------------------------------------------------------------" >&6; }
43175 { $as_echo "$as_me:$LINENO: checking for XML" >&5
43176$as_echo_n "checking for XML... " >&6; }
43177 { $as_echo "$as_me:$LINENO: result: " >&5
43178$as_echo "" >&6; }
43179 PERSIST_LDFLAGS=$LDFLAGS
43180 PERSIST_CPPFLAGS=$CPPFLAGS
43181 xml2_config=''
43182 for ac_prog in xml2-config
43183do
43184 # Extract the first word of "$ac_prog", so it can be a program name with args.
43185set dummy $ac_prog; ac_word=$2
43186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43187$as_echo_n "checking for $ac_word... " >&6; }
43188if test "${ac_cv_prog_xml2_config+set}" = set; then
43189 $as_echo_n "(cached) " >&6
43190else
43191 if test -n "$xml2_config"; then
43192 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
43193else
43194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43195for as_dir in $PATH
43196do
43197 IFS=$as_save_IFS
43198 test -z "$as_dir" && as_dir=.
43199 for ac_exec_ext in '' $ac_executable_extensions; do
43200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43201 ac_cv_prog_xml2_config="$ac_prog"
43202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43203 break 2
43204 fi
43205done
43206done
43207IFS=$as_save_IFS
43208
43209fi
43210fi
43211xml2_config=$ac_cv_prog_xml2_config
43212if test -n "$xml2_config"; then
43213 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
43214$as_echo "$xml2_config" >&6; }
43215else
43216 { $as_echo "$as_me:$LINENO: result: no" >&5
43217$as_echo "no" >&6; }
43218fi
43219
43220
43221 test -n "$xml2_config" && break
43222done
43223 if test -n "$xml2_config"; then
43224 # Debian installs libxml headers under /usr/include/libxml2/libxml with
43225 # the shared library installed under /usr/lib, whereas the package
43226 # installs itself under $prefix/libxml and $prefix/lib.
43227 xml2_prefix=`xml2-config --prefix`
43228 if test -d "${xml2_prefix}/include/libxml2"; then
43229 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
43230 fi
43231 if test "${xml2_prefix}" != '/usr'; then
43232 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
43233 fi
43234 fi
43235 failed=0
43236 passed=0
43237 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43238 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43239$as_echo_n "checking for libxml/parser.h... " >&6; }
43240if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43241 $as_echo_n "(cached) " >&6
43242fi
43243{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43244$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43245else
43246 # Is the header compilable?
43247{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
43248$as_echo_n "checking libxml/parser.h usability... " >&6; }
43249cat >conftest.$ac_ext <<_ACEOF
43250/* confdefs.h. */
43251_ACEOF
43252cat confdefs.h >>conftest.$ac_ext
43253cat >>conftest.$ac_ext <<_ACEOF
43254/* end confdefs.h. */
43255$ac_includes_default
43256#include <libxml/parser.h>
43257_ACEOF
43258rm -f conftest.$ac_objext
43259if { (ac_try="$ac_compile"
43260case "(($ac_try" in
43261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43262 *) ac_try_echo=$ac_try;;
43263esac
43264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43265$as_echo "$ac_try_echo") >&5
43266 (eval "$ac_compile") 2>conftest.er1
43267 ac_status=$?
43268 grep -v '^ *+' conftest.er1 >conftest.err
43269 rm -f conftest.er1
43270 cat conftest.err >&5
43271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); } && {
43273 test -z "$ac_c_werror_flag" ||
43274 test ! -s conftest.err
43275 } && test -s conftest.$ac_objext; then
43276 ac_header_compiler=yes
43277else
43278 $as_echo "$as_me: failed program was:" >&5
43279sed 's/^/| /' conftest.$ac_ext >&5
43280
43281 ac_header_compiler=no
43282fi
43283
43284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43285{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43286$as_echo "$ac_header_compiler" >&6; }
43287
43288# Is the header present?
43289{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
43290$as_echo_n "checking libxml/parser.h presence... " >&6; }
43291cat >conftest.$ac_ext <<_ACEOF
43292/* confdefs.h. */
43293_ACEOF
43294cat confdefs.h >>conftest.$ac_ext
43295cat >>conftest.$ac_ext <<_ACEOF
43296/* end confdefs.h. */
43297#include <libxml/parser.h>
43298_ACEOF
43299if { (ac_try="$ac_cpp conftest.$ac_ext"
43300case "(($ac_try" in
43301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43302 *) ac_try_echo=$ac_try;;
43303esac
43304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43305$as_echo "$ac_try_echo") >&5
43306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43307 ac_status=$?
43308 grep -v '^ *+' conftest.er1 >conftest.err
43309 rm -f conftest.er1
43310 cat conftest.err >&5
43311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43312 (exit $ac_status); } >/dev/null && {
43313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43314 test ! -s conftest.err
43315 }; then
43316 ac_header_preproc=yes
43317else
43318 $as_echo "$as_me: failed program was:" >&5
43319sed 's/^/| /' conftest.$ac_ext >&5
43320
43321 ac_header_preproc=no
43322fi
43323
43324rm -f conftest.err conftest.$ac_ext
43325{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43326$as_echo "$ac_header_preproc" >&6; }
43327
43328# So? What about this header?
43329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43330 yes:no: )
43331 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
43332$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43333 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
43334$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
43335 ac_header_preproc=yes
43336 ;;
43337 no:yes:* )
43338 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
43339$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
43340 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
43341$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
43342 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
43343$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
43344 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
43345$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
43346 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
43347$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
43348 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
43349$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
43350 ( cat <<\_ASBOX
43351## ----------------------------------------- ##
43352## Report this to http://www.imagemagick.org ##
43353## ----------------------------------------- ##
43354_ASBOX
43355 ) | sed "s/^/$as_me: WARNING: /" >&2
43356 ;;
43357esac
43358{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43359$as_echo_n "checking for libxml/parser.h... " >&6; }
43360if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43361 $as_echo_n "(cached) " >&6
43362else
43363 ac_cv_header_libxml_parser_h=$ac_header_preproc
43364fi
43365{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43366$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43367
43368fi
43369if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
43370 passed=`expr $passed + 1`
43371else
43372 failed=`expr $failed + 1`
43373fi
43374
43375
43376 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
43377$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
43378if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
43379 $as_echo_n "(cached) " >&6
43380else
43381 ac_check_lib_save_LIBS=$LIBS
43382LIBS="-lxml2 $LIBS"
43383cat >conftest.$ac_ext <<_ACEOF
43384/* confdefs.h. */
43385_ACEOF
43386cat confdefs.h >>conftest.$ac_ext
43387cat >>conftest.$ac_ext <<_ACEOF
43388/* end confdefs.h. */
43389
43390/* Override any GCC internal prototype to avoid an error.
43391 Use char because int might match the return type of a GCC
43392 builtin and then its argument prototype would still apply. */
43393#ifdef __cplusplus
43394extern "C"
43395#endif
43396char xmlParseExternalEntity ();
43397int
43398main ()
43399{
43400return xmlParseExternalEntity ();
43401 ;
43402 return 0;
43403}
43404_ACEOF
43405rm -f conftest.$ac_objext conftest$ac_exeext
43406if { (ac_try="$ac_link"
43407case "(($ac_try" in
43408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43409 *) ac_try_echo=$ac_try;;
43410esac
43411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43412$as_echo "$ac_try_echo") >&5
43413 (eval "$ac_link") 2>conftest.er1
43414 ac_status=$?
43415 grep -v '^ *+' conftest.er1 >conftest.err
43416 rm -f conftest.er1
43417 cat conftest.err >&5
43418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43419 (exit $ac_status); } && {
43420 test -z "$ac_c_werror_flag" ||
43421 test ! -s conftest.err
43422 } && test -s conftest$ac_exeext && {
43423 test "$cross_compiling" = yes ||
43424 $as_test_x conftest$ac_exeext
43425 }; then
43426 ac_cv_lib_xml2_xmlParseExternalEntity=yes
43427else
43428 $as_echo "$as_me: failed program was:" >&5
43429sed 's/^/| /' conftest.$ac_ext >&5
43430
43431 ac_cv_lib_xml2_xmlParseExternalEntity=no
43432fi
43433
43434rm -rf conftest.dSYM
43435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43436 conftest$ac_exeext conftest.$ac_ext
43437LIBS=$ac_check_lib_save_LIBS
43438fi
43439{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
43440$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
43441if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
43442 passed=`expr $passed + 1`
43443else
43444 failed=`expr $failed + 1`
43445fi
43446
43447 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
43448$as_echo_n "checking if XML package is complete... " >&6; }
43449 if test $passed -gt 0; then
43450 if test $failed -gt 0; then
43451 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43452$as_echo "no -- some components failed test" >&6; }
43453 have_xml='no (failed tests)'
43454 LDFLAGS="$PERSIST_LDFLAGS"
43455 CPPFLAGS="$PERSIST_CPPFLAGS"
43456 else
43457 XML_LIBS='-lxml2'
43458 LIBS="$XML_LIBS $LIBS"
43459
43460cat >>confdefs.h <<\_ACEOF
43461#define XML_DELEGATE 1
43462_ACEOF
43463
43464 { $as_echo "$as_me:$LINENO: result: yes" >&5
43465$as_echo "yes" >&6; }
43466 have_xml='yes'
43467 fi
43468 else
43469 { $as_echo "$as_me:$LINENO: result: no" >&5
43470$as_echo "no" >&6; }
43471 fi
43472fi
43473 if test "$have_xml" = 'yes'; then
43474 XML_DELEGATE_TRUE=
43475 XML_DELEGATE_FALSE='#'
43476else
43477 XML_DELEGATE_TRUE='#'
43478 XML_DELEGATE_FALSE=
43479fi
43480
43481
43482
43483
43484# Substitute compiler name to build/link PerlMagick
43485#
43486
43487
43488#
43489# Configure install Paths
43490#
43491
43492# Subdirectory under lib to place ImageMagick lib files
43493LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43494
43495cat >>confdefs.h <<_ACEOF
43496#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
43497_ACEOF
43498
43499
43500# Path to ImageMagick bin directory
43501EXECUTABLE_PATH="${BIN_DIR}"
43502DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
43503case "${build_os}" in
43504 mingw* )
43505 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
43506 ;;
43507esac
43508
43509cat >>confdefs.h <<_ACEOF
43510#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
43511_ACEOF
43512
43513
43514
43515# Path to ImageMagick lib
43516LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
43517DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
43518case "${build_os}" in
43519 mingw* )
43520 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
43521 ;;
43522esac
43523
43524cat >>confdefs.h <<_ACEOF
43525#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
43526_ACEOF
43527
43528
43529
43530# Subdirectory under lib to place ImageMagick configuration files
43531CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43532
43533cat >>confdefs.h <<_ACEOF
43534#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
43535_ACEOF
43536
43537CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43538DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43539case "${build_os}" in
43540 mingw* )
43541 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
43542 ;;
43543esac
43544
43545cat >>confdefs.h <<_ACEOF
43546#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
43547_ACEOF
43548
43549
43550
43551#
43552# Subdirectory under lib to place ImageMagick coder module files
43553CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
43554
43555cat >>confdefs.h <<_ACEOF
43556#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
43557_ACEOF
43558
43559CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
43560DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
43561case "${build_os}" in
43562 mingw* )
43563 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
43564 ;;
43565esac
43566
43567cat >>confdefs.h <<_ACEOF
43568#define CODER_PATH "$DEFINE_CODER_PATH"
43569_ACEOF
43570
43571
43572
43573#
43574# Subdirectory under lib to place ImageMagick filter module files
43575FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
43576
43577cat >>confdefs.h <<_ACEOF
43578#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
43579_ACEOF
43580
43581FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
43582DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
43583case "${build_os}" in
43584 mingw* )
43585 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
43586 ;;
43587esac
43588
43589cat >>confdefs.h <<_ACEOF
43590#define FILTER_PATH "$DEFINE_FILTER_PATH"
43591_ACEOF
43592
43593
43594
43595#
43596# Path to ImageMagick documentation files
43597DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43598DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
43599DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
43600case "${build_os}" in
43601 mingw* )
43602 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
43603 ;;
43604esac
43605
43606cat >>confdefs.h <<_ACEOF
43607#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
43608_ACEOF
43609
43610
43611
43612#
43613# Path to ImageMagick share files
43614SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43615SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
43616DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
43617case "${build_os}" in
43618 mingw* )
43619 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
43620 ;;
43621esac
43622
43623cat >>confdefs.h <<_ACEOF
43624#define SHARE_PATH "$DEFINE_SHARE_PATH"
43625_ACEOF
43626
43627
43628
43629# Subdirectory under share to place ImageMagick configuration files
43630SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43631
43632cat >>confdefs.h <<_ACEOF
43633#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
43634_ACEOF
43635
43636SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
43637DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
43638case "${build_os}" in
43639 mingw* )
43640 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
43641 ;;
43642esac
43643
43644cat >>confdefs.h <<_ACEOF
43645#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
43646_ACEOF
43647
43648
43649
43650#
43651# program_transform_name is formed for use in a Makefile, so create a
43652# modified version for use in a shell script.
43653configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
43654
43655# Default delegate definitions
43656{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43657$as_echo "-------------------------------------------------------------" >&6; }
43658{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
43659$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
43660{ $as_echo "$as_me:$LINENO: result: " >&5
43661$as_echo "" >&6; }
43662AutotraceDecodeDelegateDefault='autotrace'
43663AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000043664BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000043665BZIPDelegateDefault='bzip2'
43666BrowseDelegateDefault='xdg-open'
43667CGMDecodeDelegateDefault='ralcgm'
43668CatDelegateDefault='cat'
43669DNGDecodeDelegateDefault='ufraw-batch'
43670GVCDecodeDelegateDefault='dot'
43671DVIDecodeDelegateDefault='dvips'
43672EchoDelegateDefault='echo'
43673EditorDelegateDefault='xterm'
43674FIGDecodeDelegateDefault='fig2dev'
43675ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
43676DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
43677MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
43678GnuplotDecodeDelegateDefault='gnuplot'
43679HDRDecodeDelegateDefault='ra_pfm'
43680HPGLDecodeDelegateDefault='hp2xx'
43681HTMLDecodeDelegateDefault='html2ps'
43682ILBMDecodeDelegateDefault='ilbmtoppm'
43683ILBMEncodeDelegateDefault='ppmtoilbm'
43684LPDelegateDefault='lp'
43685LPRDelegateDefault='lpr'
43686LZWDecodeDelegateDefault='uncompress'
43687LZWEncodeDelegateDefault='compress'
43688LaunchDelegateDefault='gimp'
43689MANDelegateDefault='groff'
43690MPEGDecodeDelegateDefault='ffmpeg'
43691MPEGEncodeDelegateDefault='ffmpeg'
43692MVDelegateDefault='mv'
43693PCLDelegateDefault='pcl6'
43694PGPDecodeDelegateDefault='pgpv'
43695POVDelegateDefault='povray'
43696if test "$native_win32_build" = 'yes'; then
43697 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000043698elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000043699 PSDelegateDefault='gsc'
43700else
43701 PSDelegateDefault='gs'
43702fi
43703RLEEncodeDelegateDefault='rawtorle'
43704RMDelegateDefault='rm'
43705SCANDecodeDelegateDefault='scanimage'
43706TXTDelegateDefault='enscript'
43707WMFDecodeDelegateDefault='wmf2eps'
43708WWWDecodeDelegateDefault='curl'
43709XPSDelegateDefault='gxps'
43710ZipDelegateDefault='gzip'
43711
43712# Search for delegates
43713# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
43714set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
43715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43716$as_echo_n "checking for $ac_word... " >&6; }
43717if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
43718 $as_echo_n "(cached) " >&6
43719else
43720 case $AutotraceDecodeDelegate in
43721 [\\/]* | ?:[\\/]*)
43722 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
43723 ;;
43724 *)
43725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43726for as_dir in $PATH
43727do
43728 IFS=$as_save_IFS
43729 test -z "$as_dir" && as_dir=.
43730 for ac_exec_ext in '' $ac_executable_extensions; do
43731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43732 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43734 break 2
43735 fi
43736done
43737done
43738IFS=$as_save_IFS
43739
43740 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
43741 ;;
43742esac
43743fi
43744AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
43745if test -n "$AutotraceDecodeDelegate"; then
43746 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
43747$as_echo "$AutotraceDecodeDelegate" >&6; }
43748else
43749 { $as_echo "$as_me:$LINENO: result: no" >&5
43750$as_echo "no" >&6; }
43751fi
43752
43753
43754# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
43755set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
43756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43757$as_echo_n "checking for $ac_word... " >&6; }
43758if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
43759 $as_echo_n "(cached) " >&6
43760else
43761 case $AVIDecodeDelegate in
43762 [\\/]* | ?:[\\/]*)
43763 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
43764 ;;
43765 *)
43766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43767for as_dir in $PATH
43768do
43769 IFS=$as_save_IFS
43770 test -z "$as_dir" && as_dir=.
43771 for ac_exec_ext in '' $ac_executable_extensions; do
43772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43773 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43775 break 2
43776 fi
43777done
43778done
43779IFS=$as_save_IFS
43780
43781 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
43782 ;;
43783esac
43784fi
43785AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
43786if test -n "$AVIDecodeDelegate"; then
43787 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
43788$as_echo "$AVIDecodeDelegate" >&6; }
43789else
43790 { $as_echo "$as_me:$LINENO: result: no" >&5
43791$as_echo "no" >&6; }
43792fi
43793
43794
43795# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
43796set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
43797{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43798$as_echo_n "checking for $ac_word... " >&6; }
43799if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
43800 $as_echo_n "(cached) " >&6
43801else
43802 case $BlenderDecodeDelegate in
43803 [\\/]* | ?:[\\/]*)
43804 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
43805 ;;
43806 *)
43807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43808for as_dir in $PATH
43809do
43810 IFS=$as_save_IFS
43811 test -z "$as_dir" && as_dir=.
43812 for ac_exec_ext in '' $ac_executable_extensions; do
43813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43814 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43816 break 2
43817 fi
43818done
43819done
43820IFS=$as_save_IFS
43821
43822 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
43823 ;;
43824esac
43825fi
43826BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
43827if test -n "$BlenderDecodeDelegate"; then
43828 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
43829$as_echo "$BlenderDecodeDelegate" >&6; }
43830else
43831 { $as_echo "$as_me:$LINENO: result: no" >&5
43832$as_echo "no" >&6; }
43833fi
43834
43835
43836# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
43837set dummy "$BZIPDelegateDefault"; ac_word=$2
43838{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43839$as_echo_n "checking for $ac_word... " >&6; }
43840if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43841 $as_echo_n "(cached) " >&6
43842else
43843 case $BZIPDelegate in
43844 [\\/]* | ?:[\\/]*)
43845 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43846 ;;
43847 *)
43848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43849for as_dir in $PATH
43850do
43851 IFS=$as_save_IFS
43852 test -z "$as_dir" && as_dir=.
43853 for ac_exec_ext in '' $ac_executable_extensions; do
43854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43855 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43857 break 2
43858 fi
43859done
43860done
43861IFS=$as_save_IFS
43862
43863 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43864 ;;
43865esac
43866fi
43867BZIPDelegate=$ac_cv_path_BZIPDelegate
43868if test -n "$BZIPDelegate"; then
43869 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43870$as_echo "$BZIPDelegate" >&6; }
43871else
43872 { $as_echo "$as_me:$LINENO: result: no" >&5
43873$as_echo "no" >&6; }
43874fi
43875
43876
43877# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43878set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43880$as_echo_n "checking for $ac_word... " >&6; }
43881if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43882 $as_echo_n "(cached) " >&6
43883else
43884 case $BrowseDelegate in
43885 [\\/]* | ?:[\\/]*)
43886 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43887 ;;
43888 *)
43889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43890for as_dir in $PATH
43891do
43892 IFS=$as_save_IFS
43893 test -z "$as_dir" && as_dir=.
43894 for ac_exec_ext in '' $ac_executable_extensions; do
43895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43896 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43898 break 2
43899 fi
43900done
43901done
43902IFS=$as_save_IFS
43903
43904 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43905 ;;
43906esac
43907fi
43908BrowseDelegate=$ac_cv_path_BrowseDelegate
43909if test -n "$BrowseDelegate"; then
43910 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43911$as_echo "$BrowseDelegate" >&6; }
43912else
43913 { $as_echo "$as_me:$LINENO: result: no" >&5
43914$as_echo "no" >&6; }
43915fi
43916
43917
43918# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43919set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43921$as_echo_n "checking for $ac_word... " >&6; }
43922if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43923 $as_echo_n "(cached) " >&6
43924else
43925 case $CGMDecodeDelegate in
43926 [\\/]* | ?:[\\/]*)
43927 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43928 ;;
43929 *)
43930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43931for as_dir in $PATH
43932do
43933 IFS=$as_save_IFS
43934 test -z "$as_dir" && as_dir=.
43935 for ac_exec_ext in '' $ac_executable_extensions; do
43936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43937 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43939 break 2
43940 fi
43941done
43942done
43943IFS=$as_save_IFS
43944
43945 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43946 ;;
43947esac
43948fi
43949CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43950if test -n "$CGMDecodeDelegate"; then
43951 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43952$as_echo "$CGMDecodeDelegate" >&6; }
43953else
43954 { $as_echo "$as_me:$LINENO: result: no" >&5
43955$as_echo "no" >&6; }
43956fi
43957
43958
43959# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43960set dummy "$CatDelegateDefault"; ac_word=$2
43961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43962$as_echo_n "checking for $ac_word... " >&6; }
43963if test "${ac_cv_path_CatDelegate+set}" = set; then
43964 $as_echo_n "(cached) " >&6
43965else
43966 case $CatDelegate in
43967 [\\/]* | ?:[\\/]*)
43968 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43969 ;;
43970 *)
43971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43972for as_dir in $PATH
43973do
43974 IFS=$as_save_IFS
43975 test -z "$as_dir" && as_dir=.
43976 for ac_exec_ext in '' $ac_executable_extensions; do
43977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43978 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43980 break 2
43981 fi
43982done
43983done
43984IFS=$as_save_IFS
43985
43986 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43987 ;;
43988esac
43989fi
43990CatDelegate=$ac_cv_path_CatDelegate
43991if test -n "$CatDelegate"; then
43992 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43993$as_echo "$CatDelegate" >&6; }
43994else
43995 { $as_echo "$as_me:$LINENO: result: no" >&5
43996$as_echo "no" >&6; }
43997fi
43998
43999
44000# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
44001set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
44002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44003$as_echo_n "checking for $ac_word... " >&6; }
44004if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
44005 $as_echo_n "(cached) " >&6
44006else
44007 case $DNGDecodeDelegate in
44008 [\\/]* | ?:[\\/]*)
44009 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
44010 ;;
44011 *)
44012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44013for as_dir in $PATH
44014do
44015 IFS=$as_save_IFS
44016 test -z "$as_dir" && as_dir=.
44017 for ac_exec_ext in '' $ac_executable_extensions; do
44018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44019 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44021 break 2
44022 fi
44023done
44024done
44025IFS=$as_save_IFS
44026
44027 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
44028 ;;
44029esac
44030fi
44031DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
44032if test -n "$DNGDecodeDelegate"; then
44033 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
44034$as_echo "$DNGDecodeDelegate" >&6; }
44035else
44036 { $as_echo "$as_me:$LINENO: result: no" >&5
44037$as_echo "no" >&6; }
44038fi
44039
44040
44041# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
44042set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
44043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44044$as_echo_n "checking for $ac_word... " >&6; }
44045if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
44046 $as_echo_n "(cached) " >&6
44047else
44048 case $GVCDecodeDelegate in
44049 [\\/]* | ?:[\\/]*)
44050 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
44051 ;;
44052 *)
44053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44054for as_dir in $PATH
44055do
44056 IFS=$as_save_IFS
44057 test -z "$as_dir" && as_dir=.
44058 for ac_exec_ext in '' $ac_executable_extensions; do
44059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44060 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44062 break 2
44063 fi
44064done
44065done
44066IFS=$as_save_IFS
44067
44068 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
44069 ;;
44070esac
44071fi
44072GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
44073if test -n "$GVCDecodeDelegate"; then
44074 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
44075$as_echo "$GVCDecodeDelegate" >&6; }
44076else
44077 { $as_echo "$as_me:$LINENO: result: no" >&5
44078$as_echo "no" >&6; }
44079fi
44080
44081
44082# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
44083set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
44084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44085$as_echo_n "checking for $ac_word... " >&6; }
44086if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
44087 $as_echo_n "(cached) " >&6
44088else
44089 case $DVIDecodeDelegate in
44090 [\\/]* | ?:[\\/]*)
44091 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
44092 ;;
44093 *)
44094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44095for as_dir in $PATH
44096do
44097 IFS=$as_save_IFS
44098 test -z "$as_dir" && as_dir=.
44099 for ac_exec_ext in '' $ac_executable_extensions; do
44100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44101 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44103 break 2
44104 fi
44105done
44106done
44107IFS=$as_save_IFS
44108
44109 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
44110 ;;
44111esac
44112fi
44113DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
44114if test -n "$DVIDecodeDelegate"; then
44115 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
44116$as_echo "$DVIDecodeDelegate" >&6; }
44117else
44118 { $as_echo "$as_me:$LINENO: result: no" >&5
44119$as_echo "no" >&6; }
44120fi
44121
44122
44123# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
44124set dummy "$EchoDelegateDefault"; ac_word=$2
44125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44126$as_echo_n "checking for $ac_word... " >&6; }
44127if test "${ac_cv_path_EchoDelegate+set}" = set; then
44128 $as_echo_n "(cached) " >&6
44129else
44130 case $EchoDelegate in
44131 [\\/]* | ?:[\\/]*)
44132 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
44133 ;;
44134 *)
44135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44136for as_dir in $PATH
44137do
44138 IFS=$as_save_IFS
44139 test -z "$as_dir" && as_dir=.
44140 for ac_exec_ext in '' $ac_executable_extensions; do
44141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44142 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
44143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44144 break 2
44145 fi
44146done
44147done
44148IFS=$as_save_IFS
44149
44150 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
44151 ;;
44152esac
44153fi
44154EchoDelegate=$ac_cv_path_EchoDelegate
44155if test -n "$EchoDelegate"; then
44156 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
44157$as_echo "$EchoDelegate" >&6; }
44158else
44159 { $as_echo "$as_me:$LINENO: result: no" >&5
44160$as_echo "no" >&6; }
44161fi
44162
44163
44164# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
44165set dummy "$EditorDelegateDefault"; ac_word=$2
44166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44167$as_echo_n "checking for $ac_word... " >&6; }
44168if test "${ac_cv_path_EditorDelegate+set}" = set; then
44169 $as_echo_n "(cached) " >&6
44170else
44171 case $EditorDelegate in
44172 [\\/]* | ?:[\\/]*)
44173 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
44174 ;;
44175 *)
44176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44177for as_dir in $PATH
44178do
44179 IFS=$as_save_IFS
44180 test -z "$as_dir" && as_dir=.
44181 for ac_exec_ext in '' $ac_executable_extensions; do
44182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44183 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
44184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44185 break 2
44186 fi
44187done
44188done
44189IFS=$as_save_IFS
44190
44191 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
44192 ;;
44193esac
44194fi
44195EditorDelegate=$ac_cv_path_EditorDelegate
44196if test -n "$EditorDelegate"; then
44197 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
44198$as_echo "$EditorDelegate" >&6; }
44199else
44200 { $as_echo "$as_me:$LINENO: result: no" >&5
44201$as_echo "no" >&6; }
44202fi
44203
44204
44205# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
44206set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
44207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44208$as_echo_n "checking for $ac_word... " >&6; }
44209if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
44210 $as_echo_n "(cached) " >&6
44211else
44212 case $FIGDecodeDelegate in
44213 [\\/]* | ?:[\\/]*)
44214 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
44215 ;;
44216 *)
44217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44218for as_dir in $PATH
44219do
44220 IFS=$as_save_IFS
44221 test -z "$as_dir" && as_dir=.
44222 for ac_exec_ext in '' $ac_executable_extensions; do
44223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44224 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44226 break 2
44227 fi
44228done
44229done
44230IFS=$as_save_IFS
44231
44232 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
44233 ;;
44234esac
44235fi
44236FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
44237if test -n "$FIGDecodeDelegate"; then
44238 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
44239$as_echo "$FIGDecodeDelegate" >&6; }
44240else
44241 { $as_echo "$as_me:$LINENO: result: no" >&5
44242$as_echo "no" >&6; }
44243fi
44244
44245
44246# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
44247set dummy "$ConvertDelegateDefault"; ac_word=$2
44248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44249$as_echo_n "checking for $ac_word... " >&6; }
44250if test "${ac_cv_path_ConvertDelegate+set}" = set; then
44251 $as_echo_n "(cached) " >&6
44252else
44253 case $ConvertDelegate in
44254 [\\/]* | ?:[\\/]*)
44255 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
44256 ;;
44257 *)
44258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44259for as_dir in $PATH
44260do
44261 IFS=$as_save_IFS
44262 test -z "$as_dir" && as_dir=.
44263 for ac_exec_ext in '' $ac_executable_extensions; do
44264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44265 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
44266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44267 break 2
44268 fi
44269done
44270done
44271IFS=$as_save_IFS
44272
44273 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
44274 ;;
44275esac
44276fi
44277ConvertDelegate=$ac_cv_path_ConvertDelegate
44278if test -n "$ConvertDelegate"; then
44279 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
44280$as_echo "$ConvertDelegate" >&6; }
44281else
44282 { $as_echo "$as_me:$LINENO: result: no" >&5
44283$as_echo "no" >&6; }
44284fi
44285
44286
44287# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
44288set dummy "$DisplayDelegateDefault"; ac_word=$2
44289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44290$as_echo_n "checking for $ac_word... " >&6; }
44291if test "${ac_cv_path_DisplayDelegate+set}" = set; then
44292 $as_echo_n "(cached) " >&6
44293else
44294 case $DisplayDelegate in
44295 [\\/]* | ?:[\\/]*)
44296 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
44297 ;;
44298 *)
44299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44300for as_dir in $PATH
44301do
44302 IFS=$as_save_IFS
44303 test -z "$as_dir" && as_dir=.
44304 for ac_exec_ext in '' $ac_executable_extensions; do
44305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44306 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
44307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44308 break 2
44309 fi
44310done
44311done
44312IFS=$as_save_IFS
44313
44314 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
44315 ;;
44316esac
44317fi
44318DisplayDelegate=$ac_cv_path_DisplayDelegate
44319if test -n "$DisplayDelegate"; then
44320 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
44321$as_echo "$DisplayDelegate" >&6; }
44322else
44323 { $as_echo "$as_me:$LINENO: result: no" >&5
44324$as_echo "no" >&6; }
44325fi
44326
44327
44328# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
44329set dummy "$MogrifyDelegateDefault"; ac_word=$2
44330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44331$as_echo_n "checking for $ac_word... " >&6; }
44332if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
44333 $as_echo_n "(cached) " >&6
44334else
44335 case $MogrifyDelegate in
44336 [\\/]* | ?:[\\/]*)
44337 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
44338 ;;
44339 *)
44340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44341for as_dir in $PATH
44342do
44343 IFS=$as_save_IFS
44344 test -z "$as_dir" && as_dir=.
44345 for ac_exec_ext in '' $ac_executable_extensions; do
44346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44347 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
44348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44349 break 2
44350 fi
44351done
44352done
44353IFS=$as_save_IFS
44354
44355 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
44356 ;;
44357esac
44358fi
44359MogrifyDelegate=$ac_cv_path_MogrifyDelegate
44360if test -n "$MogrifyDelegate"; then
44361 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
44362$as_echo "$MogrifyDelegate" >&6; }
44363else
44364 { $as_echo "$as_me:$LINENO: result: no" >&5
44365$as_echo "no" >&6; }
44366fi
44367
44368
44369# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
44370set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
44371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44372$as_echo_n "checking for $ac_word... " >&6; }
44373if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
44374 $as_echo_n "(cached) " >&6
44375else
44376 case $GnuplotDecodeDelegate in
44377 [\\/]* | ?:[\\/]*)
44378 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
44379 ;;
44380 *)
44381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44382for as_dir in $PATH
44383do
44384 IFS=$as_save_IFS
44385 test -z "$as_dir" && as_dir=.
44386 for ac_exec_ext in '' $ac_executable_extensions; do
44387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44388 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44390 break 2
44391 fi
44392done
44393done
44394IFS=$as_save_IFS
44395
44396 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
44397 ;;
44398esac
44399fi
44400GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
44401if test -n "$GnuplotDecodeDelegate"; then
44402 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
44403$as_echo "$GnuplotDecodeDelegate" >&6; }
44404else
44405 { $as_echo "$as_me:$LINENO: result: no" >&5
44406$as_echo "no" >&6; }
44407fi
44408
44409
44410# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
44411set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
44412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44413$as_echo_n "checking for $ac_word... " >&6; }
44414if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
44415 $as_echo_n "(cached) " >&6
44416else
44417 case $HDRDecodeDelegate in
44418 [\\/]* | ?:[\\/]*)
44419 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
44420 ;;
44421 *)
44422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44423for as_dir in $PATH
44424do
44425 IFS=$as_save_IFS
44426 test -z "$as_dir" && as_dir=.
44427 for ac_exec_ext in '' $ac_executable_extensions; do
44428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44429 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44431 break 2
44432 fi
44433done
44434done
44435IFS=$as_save_IFS
44436
44437 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
44438 ;;
44439esac
44440fi
44441HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
44442if test -n "$HDRDecodeDelegate"; then
44443 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
44444$as_echo "$HDRDecodeDelegate" >&6; }
44445else
44446 { $as_echo "$as_me:$LINENO: result: no" >&5
44447$as_echo "no" >&6; }
44448fi
44449
44450
44451# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
44452set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
44453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44454$as_echo_n "checking for $ac_word... " >&6; }
44455if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
44456 $as_echo_n "(cached) " >&6
44457else
44458 case $HPGLDecodeDelegate in
44459 [\\/]* | ?:[\\/]*)
44460 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
44461 ;;
44462 *)
44463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44464for as_dir in $PATH
44465do
44466 IFS=$as_save_IFS
44467 test -z "$as_dir" && as_dir=.
44468 for ac_exec_ext in '' $ac_executable_extensions; do
44469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44470 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44472 break 2
44473 fi
44474done
44475done
44476IFS=$as_save_IFS
44477
44478 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
44479 ;;
44480esac
44481fi
44482HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
44483if test -n "$HPGLDecodeDelegate"; then
44484 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
44485$as_echo "$HPGLDecodeDelegate" >&6; }
44486else
44487 { $as_echo "$as_me:$LINENO: result: no" >&5
44488$as_echo "no" >&6; }
44489fi
44490
44491
44492# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
44493set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
44494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44495$as_echo_n "checking for $ac_word... " >&6; }
44496if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
44497 $as_echo_n "(cached) " >&6
44498else
44499 case $HTMLDecodeDelegate in
44500 [\\/]* | ?:[\\/]*)
44501 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
44502 ;;
44503 *)
44504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44505for as_dir in $PATH
44506do
44507 IFS=$as_save_IFS
44508 test -z "$as_dir" && as_dir=.
44509 for ac_exec_ext in '' $ac_executable_extensions; do
44510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44511 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44513 break 2
44514 fi
44515done
44516done
44517IFS=$as_save_IFS
44518
44519 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
44520 ;;
44521esac
44522fi
44523HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
44524if test -n "$HTMLDecodeDelegate"; then
44525 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
44526$as_echo "$HTMLDecodeDelegate" >&6; }
44527else
44528 { $as_echo "$as_me:$LINENO: result: no" >&5
44529$as_echo "no" >&6; }
44530fi
44531
44532
44533# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
44534set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
44535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44536$as_echo_n "checking for $ac_word... " >&6; }
44537if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
44538 $as_echo_n "(cached) " >&6
44539else
44540 case $ILBMDecodeDelegate in
44541 [\\/]* | ?:[\\/]*)
44542 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
44543 ;;
44544 *)
44545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44546for as_dir in $PATH
44547do
44548 IFS=$as_save_IFS
44549 test -z "$as_dir" && as_dir=.
44550 for ac_exec_ext in '' $ac_executable_extensions; do
44551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44552 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44554 break 2
44555 fi
44556done
44557done
44558IFS=$as_save_IFS
44559
44560 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
44561 ;;
44562esac
44563fi
44564ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
44565if test -n "$ILBMDecodeDelegate"; then
44566 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
44567$as_echo "$ILBMDecodeDelegate" >&6; }
44568else
44569 { $as_echo "$as_me:$LINENO: result: no" >&5
44570$as_echo "no" >&6; }
44571fi
44572
44573
44574# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
44575set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
44576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44577$as_echo_n "checking for $ac_word... " >&6; }
44578if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
44579 $as_echo_n "(cached) " >&6
44580else
44581 case $ILBMEncodeDelegate in
44582 [\\/]* | ?:[\\/]*)
44583 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
44584 ;;
44585 *)
44586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44587for as_dir in $PATH
44588do
44589 IFS=$as_save_IFS
44590 test -z "$as_dir" && as_dir=.
44591 for ac_exec_ext in '' $ac_executable_extensions; do
44592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44593 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44595 break 2
44596 fi
44597done
44598done
44599IFS=$as_save_IFS
44600
44601 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
44602 ;;
44603esac
44604fi
44605ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
44606if test -n "$ILBMEncodeDelegate"; then
44607 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
44608$as_echo "$ILBMEncodeDelegate" >&6; }
44609else
44610 { $as_echo "$as_me:$LINENO: result: no" >&5
44611$as_echo "no" >&6; }
44612fi
44613
44614
44615# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
44616set dummy "$LPDelegateDefault"; ac_word=$2
44617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44618$as_echo_n "checking for $ac_word... " >&6; }
44619if test "${ac_cv_path_LPDelegate+set}" = set; then
44620 $as_echo_n "(cached) " >&6
44621else
44622 case $LPDelegate in
44623 [\\/]* | ?:[\\/]*)
44624 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
44625 ;;
44626 *)
44627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44628for as_dir in $PATH
44629do
44630 IFS=$as_save_IFS
44631 test -z "$as_dir" && as_dir=.
44632 for ac_exec_ext in '' $ac_executable_extensions; do
44633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44634 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
44635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44636 break 2
44637 fi
44638done
44639done
44640IFS=$as_save_IFS
44641
44642 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
44643 ;;
44644esac
44645fi
44646LPDelegate=$ac_cv_path_LPDelegate
44647if test -n "$LPDelegate"; then
44648 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
44649$as_echo "$LPDelegate" >&6; }
44650else
44651 { $as_echo "$as_me:$LINENO: result: no" >&5
44652$as_echo "no" >&6; }
44653fi
44654
44655
44656# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
44657set dummy "$LPRDelegateDefault"; ac_word=$2
44658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44659$as_echo_n "checking for $ac_word... " >&6; }
44660if test "${ac_cv_path_LPRDelegate+set}" = set; then
44661 $as_echo_n "(cached) " >&6
44662else
44663 case $LPRDelegate in
44664 [\\/]* | ?:[\\/]*)
44665 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
44666 ;;
44667 *)
44668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44669for as_dir in $PATH
44670do
44671 IFS=$as_save_IFS
44672 test -z "$as_dir" && as_dir=.
44673 for ac_exec_ext in '' $ac_executable_extensions; do
44674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44675 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
44676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44677 break 2
44678 fi
44679done
44680done
44681IFS=$as_save_IFS
44682
44683 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
44684 ;;
44685esac
44686fi
44687LPRDelegate=$ac_cv_path_LPRDelegate
44688if test -n "$LPRDelegate"; then
44689 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
44690$as_echo "$LPRDelegate" >&6; }
44691else
44692 { $as_echo "$as_me:$LINENO: result: no" >&5
44693$as_echo "no" >&6; }
44694fi
44695
44696
44697# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
44698set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
44699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44700$as_echo_n "checking for $ac_word... " >&6; }
44701if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
44702 $as_echo_n "(cached) " >&6
44703else
44704 case $LZWDecodeDelegate in
44705 [\\/]* | ?:[\\/]*)
44706 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
44707 ;;
44708 *)
44709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44710for as_dir in $PATH
44711do
44712 IFS=$as_save_IFS
44713 test -z "$as_dir" && as_dir=.
44714 for ac_exec_ext in '' $ac_executable_extensions; do
44715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44716 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44718 break 2
44719 fi
44720done
44721done
44722IFS=$as_save_IFS
44723
44724 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
44725 ;;
44726esac
44727fi
44728LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
44729if test -n "$LZWDecodeDelegate"; then
44730 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
44731$as_echo "$LZWDecodeDelegate" >&6; }
44732else
44733 { $as_echo "$as_me:$LINENO: result: no" >&5
44734$as_echo "no" >&6; }
44735fi
44736
44737
44738# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
44739set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
44740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44741$as_echo_n "checking for $ac_word... " >&6; }
44742if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
44743 $as_echo_n "(cached) " >&6
44744else
44745 case $LZWEncodeDelegate in
44746 [\\/]* | ?:[\\/]*)
44747 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
44748 ;;
44749 *)
44750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44751for as_dir in $PATH
44752do
44753 IFS=$as_save_IFS
44754 test -z "$as_dir" && as_dir=.
44755 for ac_exec_ext in '' $ac_executable_extensions; do
44756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44757 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44759 break 2
44760 fi
44761done
44762done
44763IFS=$as_save_IFS
44764
44765 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
44766 ;;
44767esac
44768fi
44769LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
44770if test -n "$LZWEncodeDelegate"; then
44771 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
44772$as_echo "$LZWEncodeDelegate" >&6; }
44773else
44774 { $as_echo "$as_me:$LINENO: result: no" >&5
44775$as_echo "no" >&6; }
44776fi
44777
44778
44779# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
44780set dummy "$LaunchDelegateDefault"; ac_word=$2
44781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44782$as_echo_n "checking for $ac_word... " >&6; }
44783if test "${ac_cv_path_LaunchDelegate+set}" = set; then
44784 $as_echo_n "(cached) " >&6
44785else
44786 case $LaunchDelegate in
44787 [\\/]* | ?:[\\/]*)
44788 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
44789 ;;
44790 *)
44791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44792for as_dir in $PATH
44793do
44794 IFS=$as_save_IFS
44795 test -z "$as_dir" && as_dir=.
44796 for ac_exec_ext in '' $ac_executable_extensions; do
44797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44798 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
44799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44800 break 2
44801 fi
44802done
44803done
44804IFS=$as_save_IFS
44805
44806 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
44807 ;;
44808esac
44809fi
44810LaunchDelegate=$ac_cv_path_LaunchDelegate
44811if test -n "$LaunchDelegate"; then
44812 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
44813$as_echo "$LaunchDelegate" >&6; }
44814else
44815 { $as_echo "$as_me:$LINENO: result: no" >&5
44816$as_echo "no" >&6; }
44817fi
44818
44819
44820# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
44821set dummy "$MANDelegateDefault"; ac_word=$2
44822{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44823$as_echo_n "checking for $ac_word... " >&6; }
44824if test "${ac_cv_path_MANDelegate+set}" = set; then
44825 $as_echo_n "(cached) " >&6
44826else
44827 case $MANDelegate in
44828 [\\/]* | ?:[\\/]*)
44829 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
44830 ;;
44831 *)
44832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44833for as_dir in $PATH
44834do
44835 IFS=$as_save_IFS
44836 test -z "$as_dir" && as_dir=.
44837 for ac_exec_ext in '' $ac_executable_extensions; do
44838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44839 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44841 break 2
44842 fi
44843done
44844done
44845IFS=$as_save_IFS
44846
44847 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44848 ;;
44849esac
44850fi
44851MANDelegate=$ac_cv_path_MANDelegate
44852if test -n "$MANDelegate"; then
44853 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44854$as_echo "$MANDelegate" >&6; }
44855else
44856 { $as_echo "$as_me:$LINENO: result: no" >&5
44857$as_echo "no" >&6; }
44858fi
44859
44860
44861# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44862set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44864$as_echo_n "checking for $ac_word... " >&6; }
44865if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44866 $as_echo_n "(cached) " >&6
44867else
44868 case $MPEGDecodeDelegate in
44869 [\\/]* | ?:[\\/]*)
44870 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44871 ;;
44872 *)
44873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44874for as_dir in $PATH
44875do
44876 IFS=$as_save_IFS
44877 test -z "$as_dir" && as_dir=.
44878 for ac_exec_ext in '' $ac_executable_extensions; do
44879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44880 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44881 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44882 break 2
44883 fi
44884done
44885done
44886IFS=$as_save_IFS
44887
44888 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44889 ;;
44890esac
44891fi
44892MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44893if test -n "$MPEGDecodeDelegate"; then
44894 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44895$as_echo "$MPEGDecodeDelegate" >&6; }
44896else
44897 { $as_echo "$as_me:$LINENO: result: no" >&5
44898$as_echo "no" >&6; }
44899fi
44900
44901
44902# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44903set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44905$as_echo_n "checking for $ac_word... " >&6; }
44906if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44907 $as_echo_n "(cached) " >&6
44908else
44909 case $MPEGEncodeDelegate in
44910 [\\/]* | ?:[\\/]*)
44911 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44912 ;;
44913 *)
44914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44915for as_dir in $PATH
44916do
44917 IFS=$as_save_IFS
44918 test -z "$as_dir" && as_dir=.
44919 for ac_exec_ext in '' $ac_executable_extensions; do
44920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44921 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44923 break 2
44924 fi
44925done
44926done
44927IFS=$as_save_IFS
44928
44929 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44930 ;;
44931esac
44932fi
44933MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44934if test -n "$MPEGEncodeDelegate"; then
44935 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44936$as_echo "$MPEGEncodeDelegate" >&6; }
44937else
44938 { $as_echo "$as_me:$LINENO: result: no" >&5
44939$as_echo "no" >&6; }
44940fi
44941
44942
44943# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44944set dummy "$MVDelegateDefault"; ac_word=$2
44945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44946$as_echo_n "checking for $ac_word... " >&6; }
44947if test "${ac_cv_path_MVDelegate+set}" = set; then
44948 $as_echo_n "(cached) " >&6
44949else
44950 case $MVDelegate in
44951 [\\/]* | ?:[\\/]*)
44952 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44953 ;;
44954 *)
44955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44956for as_dir in $PATH
44957do
44958 IFS=$as_save_IFS
44959 test -z "$as_dir" && as_dir=.
44960 for ac_exec_ext in '' $ac_executable_extensions; do
44961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44962 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44964 break 2
44965 fi
44966done
44967done
44968IFS=$as_save_IFS
44969
44970 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44971 ;;
44972esac
44973fi
44974MVDelegate=$ac_cv_path_MVDelegate
44975if test -n "$MVDelegate"; then
44976 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44977$as_echo "$MVDelegate" >&6; }
44978else
44979 { $as_echo "$as_me:$LINENO: result: no" >&5
44980$as_echo "no" >&6; }
44981fi
44982
44983
44984# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44985set dummy "$PCLDelegateDefault"; ac_word=$2
44986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44987$as_echo_n "checking for $ac_word... " >&6; }
44988if test "${ac_cv_path_PCLDelegate+set}" = set; then
44989 $as_echo_n "(cached) " >&6
44990else
44991 case $PCLDelegate in
44992 [\\/]* | ?:[\\/]*)
44993 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44994 ;;
44995 *)
44996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44997for as_dir in $PATH
44998do
44999 IFS=$as_save_IFS
45000 test -z "$as_dir" && as_dir=.
45001 for ac_exec_ext in '' $ac_executable_extensions; do
45002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45003 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
45004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45005 break 2
45006 fi
45007done
45008done
45009IFS=$as_save_IFS
45010
45011 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
45012 ;;
45013esac
45014fi
45015PCLDelegate=$ac_cv_path_PCLDelegate
45016if test -n "$PCLDelegate"; then
45017 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
45018$as_echo "$PCLDelegate" >&6; }
45019else
45020 { $as_echo "$as_me:$LINENO: result: no" >&5
45021$as_echo "no" >&6; }
45022fi
45023
45024
45025# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
45026set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
45027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45028$as_echo_n "checking for $ac_word... " >&6; }
45029if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
45030 $as_echo_n "(cached) " >&6
45031else
45032 case $PGPDecodeDelegate in
45033 [\\/]* | ?:[\\/]*)
45034 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
45035 ;;
45036 *)
45037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45038for as_dir in $PATH
45039do
45040 IFS=$as_save_IFS
45041 test -z "$as_dir" && as_dir=.
45042 for ac_exec_ext in '' $ac_executable_extensions; do
45043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45044 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45046 break 2
45047 fi
45048done
45049done
45050IFS=$as_save_IFS
45051
45052 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
45053 ;;
45054esac
45055fi
45056PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
45057if test -n "$PGPDecodeDelegate"; then
45058 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
45059$as_echo "$PGPDecodeDelegate" >&6; }
45060else
45061 { $as_echo "$as_me:$LINENO: result: no" >&5
45062$as_echo "no" >&6; }
45063fi
45064
45065
45066# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
45067set dummy "$POVDelegateDefault"; ac_word=$2
45068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45069$as_echo_n "checking for $ac_word... " >&6; }
45070if test "${ac_cv_path_POVDelegate+set}" = set; then
45071 $as_echo_n "(cached) " >&6
45072else
45073 case $POVDelegate in
45074 [\\/]* | ?:[\\/]*)
45075 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
45076 ;;
45077 *)
45078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45079for as_dir in $PATH
45080do
45081 IFS=$as_save_IFS
45082 test -z "$as_dir" && as_dir=.
45083 for ac_exec_ext in '' $ac_executable_extensions; do
45084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45085 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
45086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45087 break 2
45088 fi
45089done
45090done
45091IFS=$as_save_IFS
45092
45093 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
45094 ;;
45095esac
45096fi
45097POVDelegate=$ac_cv_path_POVDelegate
45098if test -n "$POVDelegate"; then
45099 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
45100$as_echo "$POVDelegate" >&6; }
45101else
45102 { $as_echo "$as_me:$LINENO: result: no" >&5
45103$as_echo "no" >&6; }
45104fi
45105
45106
45107for ac_prog in gsx gsc "$PSDelegateDefault"
45108do
45109 # Extract the first word of "$ac_prog", so it can be a program name with args.
45110set dummy $ac_prog; ac_word=$2
45111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45112$as_echo_n "checking for $ac_word... " >&6; }
45113if test "${ac_cv_path_PSDelegate+set}" = set; then
45114 $as_echo_n "(cached) " >&6
45115else
45116 case $PSDelegate in
45117 [\\/]* | ?:[\\/]*)
45118 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
45119 ;;
45120 *)
45121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45122for as_dir in $PATH
45123do
45124 IFS=$as_save_IFS
45125 test -z "$as_dir" && as_dir=.
45126 for ac_exec_ext in '' $ac_executable_extensions; do
45127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45128 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
45129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45130 break 2
45131 fi
45132done
45133done
45134IFS=$as_save_IFS
45135
45136 ;;
45137esac
45138fi
45139PSDelegate=$ac_cv_path_PSDelegate
45140if test -n "$PSDelegate"; then
45141 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
45142$as_echo "$PSDelegate" >&6; }
45143else
45144 { $as_echo "$as_me:$LINENO: result: no" >&5
45145$as_echo "no" >&6; }
45146fi
45147
45148
45149 test -n "$PSDelegate" && break
45150done
45151test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
45152
45153# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
45154set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
45155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45156$as_echo_n "checking for $ac_word... " >&6; }
45157if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
45158 $as_echo_n "(cached) " >&6
45159else
45160 case $RLEEncodeDelegate in
45161 [\\/]* | ?:[\\/]*)
45162 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
45163 ;;
45164 *)
45165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45166for as_dir in $PATH
45167do
45168 IFS=$as_save_IFS
45169 test -z "$as_dir" && as_dir=.
45170 for ac_exec_ext in '' $ac_executable_extensions; do
45171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45172 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45174 break 2
45175 fi
45176done
45177done
45178IFS=$as_save_IFS
45179
45180 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
45181 ;;
45182esac
45183fi
45184RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
45185if test -n "$RLEEncodeDelegate"; then
45186 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
45187$as_echo "$RLEEncodeDelegate" >&6; }
45188else
45189 { $as_echo "$as_me:$LINENO: result: no" >&5
45190$as_echo "no" >&6; }
45191fi
45192
45193
45194# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
45195set dummy "$RMDelegateDefault"; ac_word=$2
45196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45197$as_echo_n "checking for $ac_word... " >&6; }
45198if test "${ac_cv_path_RMDelegate+set}" = set; then
45199 $as_echo_n "(cached) " >&6
45200else
45201 case $RMDelegate in
45202 [\\/]* | ?:[\\/]*)
45203 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
45204 ;;
45205 *)
45206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45207for as_dir in $PATH
45208do
45209 IFS=$as_save_IFS
45210 test -z "$as_dir" && as_dir=.
45211 for ac_exec_ext in '' $ac_executable_extensions; do
45212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45213 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
45214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45215 break 2
45216 fi
45217done
45218done
45219IFS=$as_save_IFS
45220
45221 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
45222 ;;
45223esac
45224fi
45225RMDelegate=$ac_cv_path_RMDelegate
45226if test -n "$RMDelegate"; then
45227 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
45228$as_echo "$RMDelegate" >&6; }
45229else
45230 { $as_echo "$as_me:$LINENO: result: no" >&5
45231$as_echo "no" >&6; }
45232fi
45233
45234
45235# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
45236set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
45237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45238$as_echo_n "checking for $ac_word... " >&6; }
45239if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
45240 $as_echo_n "(cached) " >&6
45241else
45242 case $SCANDecodeDelegate in
45243 [\\/]* | ?:[\\/]*)
45244 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
45245 ;;
45246 *)
45247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45248for as_dir in $PATH
45249do
45250 IFS=$as_save_IFS
45251 test -z "$as_dir" && as_dir=.
45252 for ac_exec_ext in '' $ac_executable_extensions; do
45253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45254 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45256 break 2
45257 fi
45258done
45259done
45260IFS=$as_save_IFS
45261
45262 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
45263 ;;
45264esac
45265fi
45266SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
45267if test -n "$SCANDecodeDelegate"; then
45268 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
45269$as_echo "$SCANDecodeDelegate" >&6; }
45270else
45271 { $as_echo "$as_me:$LINENO: result: no" >&5
45272$as_echo "no" >&6; }
45273fi
45274
45275
45276# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
45277set dummy "$TXTDelegateDefault"; ac_word=$2
45278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45279$as_echo_n "checking for $ac_word... " >&6; }
45280if test "${ac_cv_path_TXTDelegate+set}" = set; then
45281 $as_echo_n "(cached) " >&6
45282else
45283 case $TXTDelegate in
45284 [\\/]* | ?:[\\/]*)
45285 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
45286 ;;
45287 *)
45288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45289for as_dir in $PATH
45290do
45291 IFS=$as_save_IFS
45292 test -z "$as_dir" && as_dir=.
45293 for ac_exec_ext in '' $ac_executable_extensions; do
45294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45295 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
45296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45297 break 2
45298 fi
45299done
45300done
45301IFS=$as_save_IFS
45302
45303 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
45304 ;;
45305esac
45306fi
45307TXTDelegate=$ac_cv_path_TXTDelegate
45308if test -n "$TXTDelegate"; then
45309 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
45310$as_echo "$TXTDelegate" >&6; }
45311else
45312 { $as_echo "$as_me:$LINENO: result: no" >&5
45313$as_echo "no" >&6; }
45314fi
45315
45316
45317# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
45318set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
45319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45320$as_echo_n "checking for $ac_word... " >&6; }
45321if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
45322 $as_echo_n "(cached) " >&6
45323else
45324 case $WMFDecodeDelegate in
45325 [\\/]* | ?:[\\/]*)
45326 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
45327 ;;
45328 *)
45329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45330for as_dir in $PATH
45331do
45332 IFS=$as_save_IFS
45333 test -z "$as_dir" && as_dir=.
45334 for ac_exec_ext in '' $ac_executable_extensions; do
45335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45336 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45338 break 2
45339 fi
45340done
45341done
45342IFS=$as_save_IFS
45343
45344 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
45345 ;;
45346esac
45347fi
45348WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
45349if test -n "$WMFDecodeDelegate"; then
45350 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
45351$as_echo "$WMFDecodeDelegate" >&6; }
45352else
45353 { $as_echo "$as_me:$LINENO: result: no" >&5
45354$as_echo "no" >&6; }
45355fi
45356
45357
45358# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
45359set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
45360{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45361$as_echo_n "checking for $ac_word... " >&6; }
45362if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
45363 $as_echo_n "(cached) " >&6
45364else
45365 case $WWWDecodeDelegate in
45366 [\\/]* | ?:[\\/]*)
45367 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
45368 ;;
45369 *)
45370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45371for as_dir in $PATH
45372do
45373 IFS=$as_save_IFS
45374 test -z "$as_dir" && as_dir=.
45375 for ac_exec_ext in '' $ac_executable_extensions; do
45376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45377 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45379 break 2
45380 fi
45381done
45382done
45383IFS=$as_save_IFS
45384
45385 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
45386 ;;
45387esac
45388fi
45389WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
45390if test -n "$WWWDecodeDelegate"; then
45391 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
45392$as_echo "$WWWDecodeDelegate" >&6; }
45393else
45394 { $as_echo "$as_me:$LINENO: result: no" >&5
45395$as_echo "no" >&6; }
45396fi
45397
45398
45399# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
45400set dummy "$XPSDelegateDefault"; ac_word=$2
45401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45402$as_echo_n "checking for $ac_word... " >&6; }
45403if test "${ac_cv_path_XPSDelegate+set}" = set; then
45404 $as_echo_n "(cached) " >&6
45405else
45406 case $XPSDelegate in
45407 [\\/]* | ?:[\\/]*)
45408 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
45409 ;;
45410 *)
45411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45412for as_dir in $PATH
45413do
45414 IFS=$as_save_IFS
45415 test -z "$as_dir" && as_dir=.
45416 for ac_exec_ext in '' $ac_executable_extensions; do
45417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45418 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
45419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45420 break 2
45421 fi
45422done
45423done
45424IFS=$as_save_IFS
45425
45426 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
45427 ;;
45428esac
45429fi
45430XPSDelegate=$ac_cv_path_XPSDelegate
45431if test -n "$XPSDelegate"; then
45432 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
45433$as_echo "$XPSDelegate" >&6; }
45434else
45435 { $as_echo "$as_me:$LINENO: result: no" >&5
45436$as_echo "no" >&6; }
45437fi
45438
45439
45440# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
45441set dummy "$ZipDelegateDefault"; ac_word=$2
45442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45443$as_echo_n "checking for $ac_word... " >&6; }
45444if test "${ac_cv_path_ZipDelegate+set}" = set; then
45445 $as_echo_n "(cached) " >&6
45446else
45447 case $ZipDelegate in
45448 [\\/]* | ?:[\\/]*)
45449 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
45450 ;;
45451 *)
45452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45453for as_dir in $PATH
45454do
45455 IFS=$as_save_IFS
45456 test -z "$as_dir" && as_dir=.
45457 for ac_exec_ext in '' $ac_executable_extensions; do
45458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45459 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
45460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45461 break 2
45462 fi
45463done
45464done
45465IFS=$as_save_IFS
45466
45467 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
45468 ;;
45469esac
45470fi
45471ZipDelegate=$ac_cv_path_ZipDelegate
45472if test -n "$ZipDelegate"; then
45473 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
45474$as_echo "$ZipDelegate" >&6; }
45475else
45476 { $as_echo "$as_me:$LINENO: result: no" >&5
45477$as_echo "no" >&6; }
45478fi
45479
45480
45481
45482# Prefer lpr to lp; lp needs options tacked on.
45483if test "$LPRDelegate" != no; then
45484 PrintDelegate="$LPRDelegate"
45485else
45486 PrintDelegate="$LPDelegate -c -s"
45487fi
45488
45489
45490# Installed ImageMagick utiltity paths
45491ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
45492DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
45493MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
45494
45495# Set delegate booleans
45496have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
45497have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
45498have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
45499have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
45500have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
45501have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
45502have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
45503have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
45504have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
45505have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
45506have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
45507
45508#
45509# Test for font directories
45510#
45511type_include_files=''
45512
45513# Windows
45514windows_font_dir=''
45515if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
45516 windows_font_dir="${with_windows_font_dir}/"
45517fi
45518if test -n "$windows_font_dir"; then
45519 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
45520 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
45521 fi
45522 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
45523 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
45524 fi
45525 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
45526 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
45527 fi
45528fi
45529if test -n "$windows_font_dir"; then
45530 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
45531fi
45532
45533
45534# Ghostscript
45535{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
45536$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
45537ghostscript_font_dir=''
45538if test "${with_gs_font_dir}" != 'default'; then
45539 ghostscript_font_dir="${with_gs_font_dir}/"
45540else
45541 if test "${native_win32_build}" = 'yes'; then
45542 # Native Windows Build
45543 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
45544 if test -f "${font_dir}a010013l.pfb"; then
45545 ghostscript_font_dir="$font_dir"
45546 break 1
45547 fi
45548 done
45549 if test "${PSDelegate}" != 'gswin32c'; then
45550 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
45551 fi
45552 else
45553 # Linux / Mac OS X / Unix Build
45554 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
45555 if test -f "${font_dir}a010013l.pfb"; then
45556 ghostscript_font_dir="${font_dir}"
45557 break 1
45558 fi
45559 done
45560 if test "${ghostscript_font_dir}x" = 'x'; then
45561 if test "$PSDelegate" != 'gs'; then
45562 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
45563 fi
45564 fi
45565 fi
45566fi
45567if test "${ghostscript_font_dir}x" != 'x'; then
45568 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
45569 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
45570$as_echo "$ghostscript_font_dir" >&6; }
45571else
45572 { $as_echo "$as_me:$LINENO: result: not found!" >&5
45573$as_echo "not found!" >&6; };
45574fi
45575
45576case "${build_os}" in
45577 mingw* )
45578 PSDelegate=`$WinPathScript "$PSDelegate" 1`
45579 ;;
45580esac
45581
45582
45583
45584#
45585# Handle case where user doesn't want frozen paths
45586#
45587if test "$with_frozenpaths" != 'yes'; then
45588 # Re-set delegate definitions to default (no paths)
45589 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
45590 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
45591 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
45592 BZIPDelegate="$BZIPDelegateDefault"
45593 BrowseDelegate="$BrowseDelegateDefault"
45594 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
45595 CatDelegate="$CatDelegateDefault"
45596 ConvertDelegate="$ConvertDelegateDefault"
45597 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
45598 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
45599 EchoDelegate="$EchoDelegateDefault"
45600 EditorDelegate="$EditorDelegateDefault"
45601 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
45602 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
45603 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
45604 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
45605 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
45606 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
45607 LPDelegate="$LPDelegateDefault"
45608 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
45609 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
45610 LaunchDelegate="$LaunchDelegateDefault"
45611 MANDelegate="$MANDelegateDefault"
45612 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
45613 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
45614 MVDelegate="$MVDelegateDefault"
45615 MogrifyDelegate="$MogrifyDelegateDefault"
45616 PCLDelegate="$PCLDelegateDefault"
45617 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
45618 POVDelegate="$POVDelegateDefault"
45619 PSDelegate="$PSDelegateDefault"
45620 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
45621 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
45622 RMDelegate="$RMDelegateDefault"
45623 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
45624 ShowImageDelegate="$ShowImageDelegateDefault"
45625 TXTDelegate="$TXTDelegateDefault"
45626 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
45627 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
45628 XPSDelegate="$XPSDelegateDefault"
45629 ZipDelegate="$ZipDelegateDefault"
45630fi
45631
45632# Delegate substitutions
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675#
45676# RPM support.
45677#
45678RPM=''
45679for ac_prog in gnutar gtar tar
45680do
45681 # Extract the first word of "$ac_prog", so it can be a program name with args.
45682set dummy $ac_prog; ac_word=$2
45683{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45684$as_echo_n "checking for $ac_word... " >&6; }
45685if test "${ac_cv_prog_TAR+set}" = set; then
45686 $as_echo_n "(cached) " >&6
45687else
45688 if test -n "$TAR"; then
45689 ac_cv_prog_TAR="$TAR" # Let the user override the test.
45690else
45691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45692for as_dir in $PATH
45693do
45694 IFS=$as_save_IFS
45695 test -z "$as_dir" && as_dir=.
45696 for ac_exec_ext in '' $ac_executable_extensions; do
45697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45698 ac_cv_prog_TAR="$ac_prog"
45699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45700 break 2
45701 fi
45702done
45703done
45704IFS=$as_save_IFS
45705
45706fi
45707fi
45708TAR=$ac_cv_prog_TAR
45709if test -n "$TAR"; then
45710 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
45711$as_echo "$TAR" >&6; }
45712else
45713 { $as_echo "$as_me:$LINENO: result: no" >&5
45714$as_echo "no" >&6; }
45715fi
45716
45717
45718 test -n "$TAR" && break
45719done
45720
45721for ac_prog in perl
45722do
45723 # Extract the first word of "$ac_prog", so it can be a program name with args.
45724set dummy $ac_prog; ac_word=$2
45725{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45726$as_echo_n "checking for $ac_word... " >&6; }
45727if test "${ac_cv_prog_PERL+set}" = set; then
45728 $as_echo_n "(cached) " >&6
45729else
45730 if test -n "$PERL"; then
45731 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45732else
45733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45734for as_dir in $PATH
45735do
45736 IFS=$as_save_IFS
45737 test -z "$as_dir" && as_dir=.
45738 for ac_exec_ext in '' $ac_executable_extensions; do
45739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45740 ac_cv_prog_PERL="$ac_prog"
45741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45742 break 2
45743 fi
45744done
45745done
45746IFS=$as_save_IFS
45747
45748fi
45749fi
45750PERL=$ac_cv_prog_PERL
45751if test -n "$PERL"; then
45752 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45753$as_echo "$PERL" >&6; }
45754else
45755 { $as_echo "$as_me:$LINENO: result: no" >&5
45756$as_echo "no" >&6; }
45757fi
45758
45759
45760 test -n "$PERL" && break
45761done
45762
45763for ac_prog in rpmbuild rpm
45764do
45765 # Extract the first word of "$ac_prog", so it can be a program name with args.
45766set dummy $ac_prog; ac_word=$2
45767{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45768$as_echo_n "checking for $ac_word... " >&6; }
45769if test "${ac_cv_prog_RPM+set}" = set; then
45770 $as_echo_n "(cached) " >&6
45771else
45772 if test -n "$RPM"; then
45773 ac_cv_prog_RPM="$RPM" # Let the user override the test.
45774else
45775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45776for as_dir in $PATH
45777do
45778 IFS=$as_save_IFS
45779 test -z "$as_dir" && as_dir=.
45780 for ac_exec_ext in '' $ac_executable_extensions; do
45781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45782 ac_cv_prog_RPM="$ac_prog"
45783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45784 break 2
45785 fi
45786done
45787done
45788IFS=$as_save_IFS
45789
45790fi
45791fi
45792RPM=$ac_cv_prog_RPM
45793if test -n "$RPM"; then
45794 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
45795$as_echo "$RPM" >&6; }
45796else
45797 { $as_echo "$as_me:$LINENO: result: no" >&5
45798$as_echo "no" >&6; }
45799fi
45800
45801
45802 test -n "$RPM" && break
45803done
45804
45805
45806ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
45807
45808
45809AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
45810
45811
45812AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
45813
45814
45815AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
45816
45817
45818 if test "x$RPM" != "x" ; then
45819 RPM_DELEGATE_TRUE=
45820 RPM_DELEGATE_FALSE='#'
45821else
45822 RPM_DELEGATE_TRUE='#'
45823 RPM_DELEGATE_FALSE=
45824fi
45825
45826
45827#
45828# 7ZIP support (http://p7zip.sourceforge.net/)
45829#
45830P7ZIP=''
45831for ac_prog in 7za
45832do
45833 # Extract the first word of "$ac_prog", so it can be a program name with args.
45834set dummy $ac_prog; ac_word=$2
45835{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45836$as_echo_n "checking for $ac_word... " >&6; }
45837if test "${ac_cv_prog_P7ZIP+set}" = set; then
45838 $as_echo_n "(cached) " >&6
45839else
45840 if test -n "$P7ZIP"; then
45841 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45842else
45843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45844for as_dir in $PATH
45845do
45846 IFS=$as_save_IFS
45847 test -z "$as_dir" && as_dir=.
45848 for ac_exec_ext in '' $ac_executable_extensions; do
45849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45850 ac_cv_prog_P7ZIP="$ac_prog"
45851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45852 break 2
45853 fi
45854done
45855done
45856IFS=$as_save_IFS
45857
45858fi
45859fi
45860P7ZIP=$ac_cv_prog_P7ZIP
45861if test -n "$P7ZIP"; then
45862 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45863$as_echo "$P7ZIP" >&6; }
45864else
45865 { $as_echo "$as_me:$LINENO: result: no" >&5
45866$as_echo "no" >&6; }
45867fi
45868
45869
45870 test -n "$P7ZIP" && break
45871done
45872
45873
45874 if test "x$P7ZIP" != "x" ; then
45875 P7ZIP_DELEGATE_TRUE=
45876 P7ZIP_DELEGATE_FALSE='#'
45877else
45878 P7ZIP_DELEGATE_TRUE='#'
45879 P7ZIP_DELEGATE_FALSE=
45880fi
45881
45882
45883#
45884# ZIP support (http://www.info-zip.org/Zip.html)
45885#
45886ZIP=''
45887for ac_prog in zip
45888do
45889 # Extract the first word of "$ac_prog", so it can be a program name with args.
45890set dummy $ac_prog; ac_word=$2
45891{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45892$as_echo_n "checking for $ac_word... " >&6; }
45893if test "${ac_cv_prog_ZIP+set}" = set; then
45894 $as_echo_n "(cached) " >&6
45895else
45896 if test -n "$ZIP"; then
45897 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45898else
45899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45900for as_dir in $PATH
45901do
45902 IFS=$as_save_IFS
45903 test -z "$as_dir" && as_dir=.
45904 for ac_exec_ext in '' $ac_executable_extensions; do
45905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45906 ac_cv_prog_ZIP="$ac_prog"
45907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45908 break 2
45909 fi
45910done
45911done
45912IFS=$as_save_IFS
45913
45914fi
45915fi
45916ZIP=$ac_cv_prog_ZIP
45917if test -n "$ZIP"; then
45918 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45919$as_echo "$ZIP" >&6; }
45920else
45921 { $as_echo "$as_me:$LINENO: result: no" >&5
45922$as_echo "no" >&6; }
45923fi
45924
45925
45926 test -n "$ZIP" && break
45927done
45928
45929
45930 if test "x$ZIP" != "x" ; then
45931 ZIP_DELEGATE_TRUE=
45932 ZIP_DELEGATE_FALSE='#'
45933else
45934 ZIP_DELEGATE_TRUE='#'
45935 ZIP_DELEGATE_FALSE=
45936fi
45937
45938
45939#
45940# GhostPCL related configuration.
45941#
45942PCLColorDevice=ppmraw
45943PCLCMYKDevice=bmpsep8
45944PCLMonoDevice=pbmraw
45945if test -z "$PCLVersion"; then
45946 PCLVersion='unknown'
45947fi
45948if test $have_pcl = 'yes'; then
45949 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45950$as_echo "-------------------------------------------------------------" >&6; }
45951 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45952$as_echo_n "checking for PCL... " >&6; }
45953 { $as_echo "$as_me:$LINENO: result: " >&5
45954$as_echo "" >&6; }
45955 # PCLColorDevice
45956 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45957$as_echo_n "checking for pcl color device... " >&6; }
45958 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45959 :
45960 else
45961 PCLColorDevice=ppmraw
45962 fi
45963 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45964$as_echo "$PCLColorDevice" >&6; }
45965
45966 # PCLCMYKDevice
45967 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45968$as_echo_n "checking for pcl CMYK device... " >&6; }
45969 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45970 :
45971 else
45972 PCLCMYKDevice=$PCLColorDevice
45973 fi
45974 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45975$as_echo "$PCLCMYKDevice" >&6; }
45976
45977 # PCLMonoDevice
45978 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45979$as_echo_n "checking for pcl mono device... " >&6; }
45980 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45981 :
45982 else
45983 PCLMonoDevice=$PCLColorDevice
45984 fi
45985 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45986$as_echo "$PCLMonoDevice" >&6; }
45987fi
45988
45989
45990
45991
45992
45993
45994#
45995# GhostXPS related configuration.
45996#
45997XPSColorDevice=ppmraw
45998XPSCMYKDevice=bmpsep8
45999XPSMonoDevice=pbmraw
46000if test -z "$XPSVersion"; then
46001 XPSVersion='unknown'
46002fi
46003if test $have_xps = 'yes'; then
46004 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46005$as_echo "-------------------------------------------------------------" >&6; }
46006 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
46007$as_echo_n "checking for XPS... " >&6; }
46008 { $as_echo "$as_me:$LINENO: result: " >&5
46009$as_echo "" >&6; }
46010 # XPSColorDevice
46011 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
46012$as_echo_n "checking for xps color device... " >&6; }
46013 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46014 :
46015 else
46016 XPSColorDevice=ppmraw
46017 fi
46018 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
46019$as_echo "$XPSColorDevice" >&6; }
46020
46021 # XPSCMYKDevice
46022 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
46023$as_echo_n "checking for xps CMYK device... " >&6; }
46024 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46025 :
46026 else
46027 XPSCMYKDevice=$XPSColorDevice
46028 fi
46029 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
46030$as_echo "$XPSCMYKDevice" >&6; }
46031
46032 # XPSMonoDevice
46033 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
46034$as_echo_n "checking for xps mono device... " >&6; }
46035 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46036 :
46037 else
46038 XPSMonoDevice=$XPSColorDevice
46039 fi
46040 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
46041$as_echo "$XPSMonoDevice" >&6; }
46042fi
46043
46044
46045
46046
46047
46048
46049#
46050# Ghostscript related configuration.
46051#
46052if test "$have_png" = 'yes'; then
46053 GSAlphaDevice=pngalpha
46054else
46055 GSAlphaDevice=pnmraw
46056fi
46057GSColorDevice=pnmraw
46058GSCMYKDevice=pam
46059GSMonoDevice=pbmraw
46060GSPDFDevice=pdfwrite
46061GSPSDevice=pswrite
46062GSEPSDevice=epswrite
46063GSVersion='unknown'
46064if test $have_gs = 'yes'; then
46065 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46066$as_echo "-------------------------------------------------------------" >&6; }
46067 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
46068$as_echo_n "checking for Ghostscript... " >&6; }
46069 { $as_echo "$as_me:$LINENO: result: " >&5
46070$as_echo "" >&6; }
46071 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
46072$as_echo_n "checking for Ghostscript version... " >&6; }
46073 if GSVersion=`$PSDelegate --version`; then
46074 :
46075 else
46076 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
46077 fi
46078 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
46079$as_echo "$GSVersion" >&6; }
46080
46081 # GSAlphaDevice
46082 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
46083$as_echo_n "checking for gs alpha device... " >&6; }
46084 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46085 :
46086 else
46087 GSAlphaDevice=pnmraw
46088 fi
46089 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
46090$as_echo "$GSAlphaDevice" >&6; }
46091
46092 # GSColorDevice
46093 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
46094$as_echo_n "checking for gs color device... " >&6; }
46095 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46096 :
46097 else
46098 GSColorDevice=pnmraw
46099 fi
46100 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
46101$as_echo "$GSColorDevice" >&6; }
46102
46103 # GSCMYKDevice
46104 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
46105$as_echo_n "checking for gs CMYK device... " >&6; }
46106 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46107 :
46108 else
46109 GSCMYKDevice=bmpsep8
46110 fi
46111 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
46112$as_echo "$GSCMYKDevice" >&6; }
46113
46114 # GSMonoDevice
46115 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
46116$as_echo_n "checking for gs mono device... " >&6; }
46117 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46118 :
46119 else
46120 GSMonoDevice=$GSColorDevice
46121 fi
46122 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
46123$as_echo "$GSMonoDevice" >&6; }
46124
46125 # GSPDFDevice
46126 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
46127$as_echo_n "checking for gs PDF writing device... " >&6; }
46128 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46129 :
46130 else
46131 GSPDFDevice=nodevice
46132 fi
46133 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
46134$as_echo "$GSPDFDevice" >&6; }
46135
46136 # GSPSDevice
46137 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
46138$as_echo_n "checking for gs PS writing device... " >&6; }
46139 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46140 :
46141 else
46142 GSPSDevice=nodevice
46143 fi
46144 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
46145$as_echo "$GSPSDevice" >&6; }
46146
46147 # GSEPSDevice
46148 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
46149$as_echo_n "checking for gs EPS writing device... " >&6; }
46150 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46151 :
46152 else
46153 GSEPSDevice=nodevice
46154 fi
46155 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
46156$as_echo "$GSEPSDevice" >&6; }
46157fi
46158
46159
46160
46161
46162
46163
46164
46165
46166
46167
46168#
46169# PerlMagick-related configuration
46170#
46171
46172# Look for PERL if PerlMagick requested
46173# If name/path of desired PERL interpreter is specified, look for that one first
46174have_perl='no'
46175if test "$with_perl" != 'no'; then
46176 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46177$as_echo "-------------------------------------------------------------" >&6; }
46178 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
46179$as_echo_n "checking for Perl... " >&6; }
46180 { $as_echo "$as_me:$LINENO: result: " >&5
46181$as_echo "" >&6; }
46182 if test "$with_perl" != 'yes'; then
46183 { $as_echo "$as_me:$LINENO: checking for perl" >&5
46184$as_echo_n "checking for perl... " >&6; }
46185if test "${ac_cv_path_PERL+set}" = set; then
46186 $as_echo_n "(cached) " >&6
46187else
46188 ac_cv_path_PERL="$with_perl"
46189fi
46190{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
46191$as_echo "$ac_cv_path_PERL" >&6; };
46192 PERL=$ac_cv_path_PERL
46193 have_perl="$ac_cv_path_PERL"
46194 else
46195 for ac_prog in perl perl5
46196do
46197 # Extract the first word of "$ac_prog", so it can be a program name with args.
46198set dummy $ac_prog; ac_word=$2
46199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46200$as_echo_n "checking for $ac_word... " >&6; }
46201if test "${ac_cv_path_PERL+set}" = set; then
46202 $as_echo_n "(cached) " >&6
46203else
46204 case $PERL in
46205 [\\/]* | ?:[\\/]*)
46206 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
46207 ;;
46208 *)
46209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46210for as_dir in $PATH
46211do
46212 IFS=$as_save_IFS
46213 test -z "$as_dir" && as_dir=.
46214 for ac_exec_ext in '' $ac_executable_extensions; do
46215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46216 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
46217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46218 break 2
46219 fi
46220done
46221done
46222IFS=$as_save_IFS
46223
46224 ;;
46225esac
46226fi
46227PERL=$ac_cv_path_PERL
46228if test -n "$PERL"; then
46229 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46230$as_echo "$PERL" >&6; }
46231else
46232 { $as_echo "$as_me:$LINENO: result: no" >&5
46233$as_echo "no" >&6; }
46234fi
46235
46236
46237 test -n "$PERL" && break
46238done
46239 if test "$ac_cv_path_PERL"; then
46240 have_perl="$ac_cv_path_PERL"
46241 fi
46242 fi
46243fi
46244
46245with_perl_static='no'
46246with_perl_dynamic='no'
46247if test "$have_perl" != 'no'; then
46248 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
46249 with_perl_static='yes'
46250 fi
46251 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
46252 with_perl_dynamic='yes'
46253 fi
46254 # Is PERL's MakeMaker new enough to support DESTDIR?
46255 # Make sure we have perl
46256if test -z "$PERL"; then
46257# Extract the first word of "perl", so it can be a program name with args.
46258set dummy perl; ac_word=$2
46259{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46260$as_echo_n "checking for $ac_word... " >&6; }
46261if test "${ac_cv_prog_PERL+set}" = set; then
46262 $as_echo_n "(cached) " >&6
46263else
46264 if test -n "$PERL"; then
46265 ac_cv_prog_PERL="$PERL" # Let the user override the test.
46266else
46267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46268for as_dir in $PATH
46269do
46270 IFS=$as_save_IFS
46271 test -z "$as_dir" && as_dir=.
46272 for ac_exec_ext in '' $ac_executable_extensions; do
46273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46274 ac_cv_prog_PERL="perl"
46275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46276 break 2
46277 fi
46278done
46279done
46280IFS=$as_save_IFS
46281
46282fi
46283fi
46284PERL=$ac_cv_prog_PERL
46285if test -n "$PERL"; then
46286 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46287$as_echo "$PERL" >&6; }
46288else
46289 { $as_echo "$as_me:$LINENO: result: no" >&5
46290$as_echo "no" >&6; }
46291fi
46292
46293
46294fi
46295
46296# Check if version of Perl is sufficient
46297ac_perl_version="5.8.1"
46298
46299if test "x$PERL" != "x"; then
46300 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
46301$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
46302 # NB: It would be nice to log the error if there is one, but we cannot rely
46303 # on autoconf internals
46304 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
46305 if test $? -ne 0; then
46306 { $as_echo "$as_me:$LINENO: result: no" >&5
46307$as_echo "no" >&6; };
46308 PERL_SUPPORTS_DESTDIR='no'
46309 else
46310 { $as_echo "$as_me:$LINENO: result: ok" >&5
46311$as_echo "ok" >&6; };
46312 PERL_SUPPORTS_DESTDIR='yes'
46313 fi
46314else
46315 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
46316$as_echo "$as_me: WARNING: could not find perl" >&2;}
46317fi
46318
46319fi
46320 if test "$have_perl" != 'no'; then
46321 WITH_PERL_TRUE=
46322 WITH_PERL_FALSE='#'
46323else
46324 WITH_PERL_TRUE='#'
46325 WITH_PERL_FALSE=
46326fi
46327
46328 if test $with_perl_static = 'yes'; then
46329 WITH_PERL_STATIC_TRUE=
46330 WITH_PERL_STATIC_FALSE='#'
46331else
46332 WITH_PERL_STATIC_TRUE='#'
46333 WITH_PERL_STATIC_FALSE=
46334fi
46335
46336 if test $with_perl_dynamic = 'yes'; then
46337 WITH_PERL_DYNAMIC_TRUE=
46338 WITH_PERL_DYNAMIC_FALSE='#'
46339else
46340 WITH_PERL_DYNAMIC_TRUE='#'
46341 WITH_PERL_DYNAMIC_FALSE=
46342fi
46343
46344
46345
46346# Determine path to pick up MagickCore library from for use with building PerlMagick
46347MAGICKCORE_PATH="${LIB_DIR}"
46348if test $with_perl_static = 'yes'; then
46349 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
46350 libtool_objdir=$objdir
46351
46352 # Linker search path to library, followed by -lMagickCore
46353 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
46354fi
46355
46356
46357# Create a simple string containing format names for all delegate libraries
46358DELEGATES=''
46359if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
46360if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
46361if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
46362if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
46363if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
46364if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
46365if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
46366if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
46367if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
46368if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
46369if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
46370if test "$have_jpeg" = 'yes'; then
46371 DELEGATES="$DELEGATES jpeg";
46372 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
46373fi
46374if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
46375if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
46376if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
46377if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
46378if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
46379if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
46380if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
46381if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
46382if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
46383if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
46384if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
46385if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
46386
46387
46388
46389#
46390# Handle special compiler flags
46391#
46392
46393# Add '-p' if prof source profiling support enabled
46394if test "$enable_prof" = 'yes'; then
46395 CFLAGS="-p $CFLAGS"
46396 CXXFLAGS="-p $CXXFLAGS"
46397 LDFLAGS="-p $LDFLAGS"
46398fi
46399
46400# Add '-pg' if gprof source profiling support enabled
46401if test "$enable_gprof" = 'yes'; then
46402 CFLAGS="-pg $CFLAGS"
46403 CXXFLAGS="-pg $CXXFLAGS"
46404 LDFLAGS="-pg $LDFLAGS"
46405fi
46406
46407# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
46408# This is a gcc-specific feature
46409if test "$enable_gcov" = 'yes'; then
46410
46411{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
46412$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
46413if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
46414 $as_echo_n "(cached) " >&6
46415else
46416 ac_check_lib_save_LIBS=$LIBS
46417LIBS="-lgcov $LIBS"
46418cat >conftest.$ac_ext <<_ACEOF
46419/* confdefs.h. */
46420_ACEOF
46421cat confdefs.h >>conftest.$ac_ext
46422cat >>conftest.$ac_ext <<_ACEOF
46423/* end confdefs.h. */
46424
46425/* Override any GCC internal prototype to avoid an error.
46426 Use char because int might match the return type of a GCC
46427 builtin and then its argument prototype would still apply. */
46428#ifdef __cplusplus
46429extern "C"
46430#endif
46431char _gcov_init ();
46432int
46433main ()
46434{
46435return _gcov_init ();
46436 ;
46437 return 0;
46438}
46439_ACEOF
46440rm -f conftest.$ac_objext conftest$ac_exeext
46441if { (ac_try="$ac_link"
46442case "(($ac_try" in
46443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46444 *) ac_try_echo=$ac_try;;
46445esac
46446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46447$as_echo "$ac_try_echo") >&5
46448 (eval "$ac_link") 2>conftest.er1
46449 ac_status=$?
46450 grep -v '^ *+' conftest.er1 >conftest.err
46451 rm -f conftest.er1
46452 cat conftest.err >&5
46453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46454 (exit $ac_status); } && {
46455 test -z "$ac_c_werror_flag" ||
46456 test ! -s conftest.err
46457 } && test -s conftest$ac_exeext && {
46458 test "$cross_compiling" = yes ||
46459 $as_test_x conftest$ac_exeext
46460 }; then
46461 ac_cv_lib_gcov__gcov_init=yes
46462else
46463 $as_echo "$as_me: failed program was:" >&5
46464sed 's/^/| /' conftest.$ac_ext >&5
46465
46466 ac_cv_lib_gcov__gcov_init=no
46467fi
46468
46469rm -rf conftest.dSYM
46470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46471 conftest$ac_exeext conftest.$ac_ext
46472LIBS=$ac_check_lib_save_LIBS
46473fi
46474{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
46475$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
46476if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
46477 cat >>confdefs.h <<_ACEOF
46478#define HAVE_LIBGCOV 1
46479_ACEOF
46480
46481 LIBS="-lgcov $LIBS"
46482
46483fi
46484
46485
46486{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
46487$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
46488if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
46489 $as_echo_n "(cached) " >&6
46490else
46491 ac_check_lib_save_LIBS=$LIBS
46492LIBS="-lgcov $LIBS"
46493cat >conftest.$ac_ext <<_ACEOF
46494/* confdefs.h. */
46495_ACEOF
46496cat confdefs.h >>conftest.$ac_ext
46497cat >>conftest.$ac_ext <<_ACEOF
46498/* end confdefs.h. */
46499
46500/* Override any GCC internal prototype to avoid an error.
46501 Use char because int might match the return type of a GCC
46502 builtin and then its argument prototype would still apply. */
46503#ifdef __cplusplus
46504extern "C"
46505#endif
46506char __gcov_init ();
46507int
46508main ()
46509{
46510return __gcov_init ();
46511 ;
46512 return 0;
46513}
46514_ACEOF
46515rm -f conftest.$ac_objext conftest$ac_exeext
46516if { (ac_try="$ac_link"
46517case "(($ac_try" in
46518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46519 *) ac_try_echo=$ac_try;;
46520esac
46521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46522$as_echo "$ac_try_echo") >&5
46523 (eval "$ac_link") 2>conftest.er1
46524 ac_status=$?
46525 grep -v '^ *+' conftest.er1 >conftest.err
46526 rm -f conftest.er1
46527 cat conftest.err >&5
46528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46529 (exit $ac_status); } && {
46530 test -z "$ac_c_werror_flag" ||
46531 test ! -s conftest.err
46532 } && test -s conftest$ac_exeext && {
46533 test "$cross_compiling" = yes ||
46534 $as_test_x conftest$ac_exeext
46535 }; then
46536 ac_cv_lib_gcov___gcov_init=yes
46537else
46538 $as_echo "$as_me: failed program was:" >&5
46539sed 's/^/| /' conftest.$ac_ext >&5
46540
46541 ac_cv_lib_gcov___gcov_init=no
46542fi
46543
46544rm -rf conftest.dSYM
46545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46546 conftest$ac_exeext conftest.$ac_ext
46547LIBS=$ac_check_lib_save_LIBS
46548fi
46549{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
46550$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
46551if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
46552 cat >>confdefs.h <<_ACEOF
46553#define HAVE_LIBGCOV 1
46554_ACEOF
46555
46556 LIBS="-lgcov $LIBS"
46557
46558fi
46559
46560 case "$target_os" in
46561 darwin*)
46562 OSX_GCOV_LDFLAG="-Wl,-single_module"
46563 ;;
46564 *)
46565 OSX_GCOV_LDFLAG=""
46566 ;;
46567 esac
46568
46569 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
46570 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
46571 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
46572fi
46573
46574#
46575# Build library dependency list for libMagickCore
46576#
46577
46578MAGICK_LIBLTDL='' # Libltdl for build
46579MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
46580MAGICK_LTDLDEPS='' # extra libltdl dependencies
46581if test "$with_ltdl" != 'no'
46582then
46583 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
46584 MAGICK_API_LIBLTDL='-lltdl'
46585 fi
46586 MAGICK_LIBLTDL=${LIBLTDL}
46587 MAGICK_LTDLDEPS=${LTDLDEPS}
46588fi
46589
46590
46591
46592if test "$with_modules" != 'no'; then
46593 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"
46594else
46595 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"
46596fi
46597
46598
46599#
46600# Remove extraneous spaces from output variables (asthetic)
46601#
46602X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
46603X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
46604X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
46605X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
46606
46607CC=`echo $CC | sed -e 's/ */ /g'`
46608CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
46609CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
46610CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
46611DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
46612DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
46613LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
46614TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46615MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
46616#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46617
46618# Pass only user-provided LIBS as "global" libraries
46619LIBS=$USER_LIBS
46620
46621#AC_SUBST(CPPFLAGS)
46622
46623#AC_SUBST(LDFLAGS)
46624#AC_SUBST(X_PRE_LIBS)
46625#AC_SUBST(X_LIBS)
46626#AC_SUBST(X_EXTRA_LIBS)
46627
46628MAGICK_CFLAGS=$CFLAGS
46629MAGICK_CXXFLAGS="$CXXFLAGS"
46630MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
46631MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
46632MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
46633MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
46634
46635
46636
46637
46638
46639
46640
46641
46642# Set configured scripts to executable.
46643ac_config_commands="$ac_config_commands default"
46644
46645ac_config_commands="$ac_config_commands MagickCore-config.in"
46646
46647ac_config_commands="$ac_config_commands Magick-config.in"
46648
46649ac_config_commands="$ac_config_commands MagickWand-config.in"
46650
46651ac_config_commands="$ac_config_commands Wand-config.in"
46652
46653ac_config_commands="$ac_config_commands Magick++-config.in"
46654
46655ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
46656
46657
46658{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46659$as_echo "-------------------------------------------------------------" >&6; }
46660{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
46661$as_echo "Update ImageMagick configuration" >&6; }
46662cat >confcache <<\_ACEOF
46663# This file is a shell script that caches the results of configure
46664# tests run on this system so they can be shared between configure
46665# scripts and configure runs, see configure's option --config-cache.
46666# It is not useful on other systems. If it contains results you don't
46667# want to keep, you may remove or edit it.
46668#
46669# config.status only pays attention to the cache file if you give it
46670# the --recheck option to rerun configure.
46671#
46672# `ac_cv_env_foo' variables (set or unset) will be overridden when
46673# loading this file, other *unset* `ac_cv_foo' will be assigned the
46674# following values.
46675
46676_ACEOF
46677
46678# The following way of writing the cache mishandles newlines in values,
46679# but we know of no workaround that is simple, portable, and efficient.
46680# So, we kill variables containing newlines.
46681# Ultrix sh set writes to stderr and can't be redirected directly,
46682# and sets the high bit in the cache file unless we assign to the vars.
46683(
46684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46685 eval ac_val=\$$ac_var
46686 case $ac_val in #(
46687 *${as_nl}*)
46688 case $ac_var in #(
46689 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46690$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46691 esac
46692 case $ac_var in #(
46693 _ | IFS | as_nl) ;; #(
46694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46695 *) $as_unset $ac_var ;;
46696 esac ;;
46697 esac
46698 done
46699
46700 (set) 2>&1 |
46701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46702 *${as_nl}ac_space=\ *)
46703 # `set' does not quote correctly, so add quotes (double-quote
46704 # substitution turns \\\\ into \\, and sed turns \\ into \).
46705 sed -n \
46706 "s/'/'\\\\''/g;
46707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46708 ;; #(
46709 *)
46710 # `set' quotes correctly as required by POSIX, so do not add quotes.
46711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46712 ;;
46713 esac |
46714 sort
46715) |
46716 sed '
46717 /^ac_cv_env_/b end
46718 t clear
46719 :clear
46720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46721 t end
46722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46723 :end' >>confcache
46724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46725 if test -w "$cache_file"; then
46726 test "x$cache_file" != "x/dev/null" &&
46727 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46728$as_echo "$as_me: updating cache $cache_file" >&6;}
46729 cat confcache >$cache_file
46730 else
46731 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46732$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46733 fi
46734fi
46735rm -f confcache
46736
46737test "x$prefix" = xNONE && prefix=$ac_default_prefix
46738# Let make expand exec_prefix.
46739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46740
46741DEFS=-DHAVE_CONFIG_H
46742
46743ac_libobjs=
46744ac_ltlibobjs=
46745for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46746 # 1. Remove the extension, and $U if already installed.
46747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46750 # will be set to the directory where LIBOBJS objects are built.
46751 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46752 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46753done
46754LIBOBJS=$ac_libobjs
46755
46756LTLIBOBJS=$ac_ltlibobjs
46757
46758
46759 if test -n "$EXEEXT"; then
46760 am__EXEEXT_TRUE=
46761 am__EXEEXT_FALSE='#'
46762else
46763 am__EXEEXT_TRUE='#'
46764 am__EXEEXT_FALSE=
46765fi
46766
46767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46768 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46769Usually this means the macro was only invoked conditionally." >&5
46770$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
46771Usually this means the macro was only invoked conditionally." >&2;}
46772 { (exit 1); exit 1; }; }
46773fi
46774if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46775 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46776Usually this means the macro was only invoked conditionally." >&5
46777$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46778Usually this means the macro was only invoked conditionally." >&2;}
46779 { (exit 1); exit 1; }; }
46780fi
46781if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46782 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46783Usually this means the macro was only invoked conditionally." >&5
46784$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46785Usually this means the macro was only invoked conditionally." >&2;}
46786 { (exit 1); exit 1; }; }
46787fi
46788if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
46789 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46790Usually this means the macro was only invoked conditionally." >&5
46791$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46792Usually this means the macro was only invoked conditionally." >&2;}
46793 { (exit 1); exit 1; }; }
46794fi
46795if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
46796 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46797Usually this means the macro was only invoked conditionally." >&5
46798$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46799Usually this means the macro was only invoked conditionally." >&2;}
46800 { (exit 1); exit 1; }; }
46801fi
46802if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
46803 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
46804Usually this means the macro was only invoked conditionally." >&5
46805$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
46806Usually this means the macro was only invoked conditionally." >&2;}
46807 { (exit 1); exit 1; }; }
46808fi
46809if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
46810 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
46811Usually this means the macro was only invoked conditionally." >&5
46812$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
46813Usually this means the macro was only invoked conditionally." >&2;}
46814 { (exit 1); exit 1; }; }
46815fi
46816if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46817 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46818Usually this means the macro was only invoked conditionally." >&5
46819$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46820Usually this means the macro was only invoked conditionally." >&2;}
46821 { (exit 1); exit 1; }; }
46822fi
46823if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
46824 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
46825Usually this means the macro was only invoked conditionally." >&5
46826$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
46827Usually this means the macro was only invoked conditionally." >&2;}
46828 { (exit 1); exit 1; }; }
46829fi
46830if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
46831 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46832Usually this means the macro was only invoked conditionally." >&5
46833$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46834Usually this means the macro was only invoked conditionally." >&2;}
46835 { (exit 1); exit 1; }; }
46836fi
46837LT_CONFIG_H=config/config.h
46838
46839 _ltdl_libobjs=
46840 _ltdl_ltlibobjs=
46841 if test -n "$_LT_LIBOBJS"; then
46842 # Remove the extension.
46843 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46844 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46845 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46846 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46847 done
46848 fi
46849 ltdl_LIBOBJS=$_ltdl_libobjs
46850
46851 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46852
46853
46854if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46855 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46856Usually this means the macro was only invoked conditionally." >&5
46857$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46858Usually this means the macro was only invoked conditionally." >&2;}
46859 { (exit 1); exit 1; }; }
46860fi
46861if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46862 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46863Usually this means the macro was only invoked conditionally." >&5
46864$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46865Usually this means the macro was only invoked conditionally." >&2;}
46866 { (exit 1); exit 1; }; }
46867fi
46868if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46869 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46870Usually this means the macro was only invoked conditionally." >&5
46871$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46872Usually this means the macro was only invoked conditionally." >&2;}
46873 { (exit 1); exit 1; }; }
46874fi
46875
46876if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46877 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46878Usually this means the macro was only invoked conditionally." >&5
46879$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46880Usually this means the macro was only invoked conditionally." >&2;}
46881 { (exit 1); exit 1; }; }
46882fi
46883if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46884 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46885Usually this means the macro was only invoked conditionally." >&5
46886$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46887Usually this means the macro was only invoked conditionally." >&2;}
46888 { (exit 1); exit 1; }; }
46889fi
46890if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46891 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46892Usually this means the macro was only invoked conditionally." >&5
46893$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46894Usually this means the macro was only invoked conditionally." >&2;}
46895 { (exit 1); exit 1; }; }
46896fi
46897if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46898 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46899Usually this means the macro was only invoked conditionally." >&5
46900$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46901Usually this means the macro was only invoked conditionally." >&2;}
46902 { (exit 1); exit 1; }; }
46903fi
46904if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46905 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46906Usually this means the macro was only invoked conditionally." >&5
46907$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46908Usually this means the macro was only invoked conditionally." >&2;}
46909 { (exit 1); exit 1; }; }
46910fi
46911if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46912 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46913Usually this means the macro was only invoked conditionally." >&5
46914$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46915Usually this means the macro was only invoked conditionally." >&2;}
46916 { (exit 1); exit 1; }; }
46917fi
46918if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46919 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46920Usually this means the macro was only invoked conditionally." >&5
46921$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46922Usually this means the macro was only invoked conditionally." >&2;}
46923 { (exit 1); exit 1; }; }
46924fi
46925if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46926 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46927Usually this means the macro was only invoked conditionally." >&5
46928$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46929Usually this means the macro was only invoked conditionally." >&2;}
46930 { (exit 1); exit 1; }; }
46931fi
46932if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46933 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46934Usually this means the macro was only invoked conditionally." >&5
46935$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46936Usually this means the macro was only invoked conditionally." >&2;}
46937 { (exit 1); exit 1; }; }
46938fi
46939if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46940 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46941Usually this means the macro was only invoked conditionally." >&5
46942$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46943Usually this means the macro was only invoked conditionally." >&2;}
46944 { (exit 1); exit 1; }; }
46945fi
46946if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46947 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46948Usually this means the macro was only invoked conditionally." >&5
46949$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46950Usually this means the macro was only invoked conditionally." >&2;}
46951 { (exit 1); exit 1; }; }
46952fi
46953if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46954 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46955Usually this means the macro was only invoked conditionally." >&5
46956$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46957Usually this means the macro was only invoked conditionally." >&2;}
46958 { (exit 1); exit 1; }; }
46959fi
46960if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46961 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46962Usually this means the macro was only invoked conditionally." >&5
46963$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46964Usually this means the macro was only invoked conditionally." >&2;}
46965 { (exit 1); exit 1; }; }
46966fi
46967if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46968 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46969Usually this means the macro was only invoked conditionally." >&5
46970$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46971Usually this means the macro was only invoked conditionally." >&2;}
46972 { (exit 1); exit 1; }; }
46973fi
46974if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46975 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46976Usually this means the macro was only invoked conditionally." >&5
46977$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46978Usually this means the macro was only invoked conditionally." >&2;}
46979 { (exit 1); exit 1; }; }
46980fi
46981if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46982 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46983Usually this means the macro was only invoked conditionally." >&5
46984$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46985Usually this means the macro was only invoked conditionally." >&2;}
46986 { (exit 1); exit 1; }; }
46987fi
46988if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46989 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46990Usually this means the macro was only invoked conditionally." >&5
46991$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46992Usually this means the macro was only invoked conditionally." >&2;}
46993 { (exit 1); exit 1; }; }
46994fi
46995if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46996 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46997Usually this means the macro was only invoked conditionally." >&5
46998$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46999Usually this means the macro was only invoked conditionally." >&2;}
47000 { (exit 1); exit 1; }; }
47001fi
47002if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
47003 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
47004Usually this means the macro was only invoked conditionally." >&5
47005$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
47006Usually this means the macro was only invoked conditionally." >&2;}
47007 { (exit 1); exit 1; }; }
47008fi
47009if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
47010 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
47011Usually this means the macro was only invoked conditionally." >&5
47012$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
47013Usually this means the macro was only invoked conditionally." >&2;}
47014 { (exit 1); exit 1; }; }
47015fi
47016if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
47017 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
47018Usually this means the macro was only invoked conditionally." >&5
47019$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
47020Usually this means the macro was only invoked conditionally." >&2;}
47021 { (exit 1); exit 1; }; }
47022fi
47023if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
47024 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
47025Usually this means the macro was only invoked conditionally." >&5
47026$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
47027Usually this means the macro was only invoked conditionally." >&2;}
47028 { (exit 1); exit 1; }; }
47029fi
47030if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
47031 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
47032Usually this means the macro was only invoked conditionally." >&5
47033$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
47034Usually this means the macro was only invoked conditionally." >&2;}
47035 { (exit 1); exit 1; }; }
47036fi
47037if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
47038 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
47039Usually this means the macro was only invoked conditionally." >&5
47040$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
47041Usually this means the macro was only invoked conditionally." >&2;}
47042 { (exit 1); exit 1; }; }
47043fi
47044if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
47045 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
47046Usually this means the macro was only invoked conditionally." >&5
47047$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
47048Usually this means the macro was only invoked conditionally." >&2;}
47049 { (exit 1); exit 1; }; }
47050fi
47051if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
47052 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
47053Usually this means the macro was only invoked conditionally." >&5
47054$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
47055Usually this means the macro was only invoked conditionally." >&2;}
47056 { (exit 1); exit 1; }; }
47057fi
47058if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
47059 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
47060Usually this means the macro was only invoked conditionally." >&5
47061$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
47062Usually this means the macro was only invoked conditionally." >&2;}
47063 { (exit 1); exit 1; }; }
47064fi
47065if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
47066 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
47067Usually this means the macro was only invoked conditionally." >&5
47068$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
47069Usually this means the macro was only invoked conditionally." >&2;}
47070 { (exit 1); exit 1; }; }
47071fi
47072if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
47073 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47074Usually this means the macro was only invoked conditionally." >&5
47075$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47076Usually this means the macro was only invoked conditionally." >&2;}
47077 { (exit 1); exit 1; }; }
47078fi
47079if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
47080 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
47081Usually this means the macro was only invoked conditionally." >&5
47082$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
47083Usually this means the macro was only invoked conditionally." >&2;}
47084 { (exit 1); exit 1; }; }
47085fi
47086if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
47087 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
47088Usually this means the macro was only invoked conditionally." >&5
47089$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
47090Usually this means the macro was only invoked conditionally." >&2;}
47091 { (exit 1); exit 1; }; }
47092fi
47093if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
47094 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
47095Usually this means the macro was only invoked conditionally." >&5
47096$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
47097Usually this means the macro was only invoked conditionally." >&2;}
47098 { (exit 1); exit 1; }; }
47099fi
47100if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
47101 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47102Usually this means the macro was only invoked conditionally." >&5
47103$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47104Usually this means the macro was only invoked conditionally." >&2;}
47105 { (exit 1); exit 1; }; }
47106fi
47107
47108: ${CONFIG_STATUS=./config.status}
47109ac_write_fail=0
47110ac_clean_files_save=$ac_clean_files
47111ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47112{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47113$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47114cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47115#! $SHELL
47116# Generated by $as_me.
47117# Run this file to recreate the current configuration.
47118# Compiler output produced by configure, useful for debugging
47119# configure, is in config.log if it exists.
47120
47121debug=false
47122ac_cs_recheck=false
47123ac_cs_silent=false
47124SHELL=\${CONFIG_SHELL-$SHELL}
47125_ACEOF
47126
47127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47128## --------------------- ##
47129## M4sh Initialization. ##
47130## --------------------- ##
47131
47132# Be more Bourne compatible
47133DUALCASE=1; export DUALCASE # for MKS sh
47134if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47135 emulate sh
47136 NULLCMD=:
47137 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47138 # is contrary to our usage. Disable this feature.
47139 alias -g '${1+"$@"}'='"$@"'
47140 setopt NO_GLOB_SUBST
47141else
47142 case `(set -o) 2>/dev/null` in
47143 *posix*) set -o posix ;;
47144esac
47145
47146fi
47147
47148
47149
47150
47151# PATH needs CR
47152# Avoid depending upon Character Ranges.
47153as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47155as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47156as_cr_digits='0123456789'
47157as_cr_alnum=$as_cr_Letters$as_cr_digits
47158
47159as_nl='
47160'
47161export as_nl
47162# Printing a long string crashes Solaris 7 /usr/bin/printf.
47163as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47164as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47166if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47167 as_echo='printf %s\n'
47168 as_echo_n='printf %s'
47169else
47170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47172 as_echo_n='/usr/ucb/echo -n'
47173 else
47174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47175 as_echo_n_body='eval
47176 arg=$1;
47177 case $arg in
47178 *"$as_nl"*)
47179 expr "X$arg" : "X\\(.*\\)$as_nl";
47180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47181 esac;
47182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47183 '
47184 export as_echo_n_body
47185 as_echo_n='sh -c $as_echo_n_body as_echo'
47186 fi
47187 export as_echo_body
47188 as_echo='sh -c $as_echo_body as_echo'
47189fi
47190
47191# The user is always right.
47192if test "${PATH_SEPARATOR+set}" != set; then
47193 PATH_SEPARATOR=:
47194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47196 PATH_SEPARATOR=';'
47197 }
47198fi
47199
47200# Support unset when possible.
47201if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47202 as_unset=unset
47203else
47204 as_unset=false
47205fi
47206
47207
47208# IFS
47209# We need space, tab and new line, in precisely that order. Quoting is
47210# there to prevent editors from complaining about space-tab.
47211# (If _AS_PATH_WALK were called with IFS unset, it would disable word
47212# splitting by setting IFS to empty value.)
47213IFS=" "" $as_nl"
47214
47215# Find who we are. Look in the path if we contain no directory separator.
47216case $0 in
47217 *[\\/]* ) as_myself=$0 ;;
47218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47219for as_dir in $PATH
47220do
47221 IFS=$as_save_IFS
47222 test -z "$as_dir" && as_dir=.
47223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47224done
47225IFS=$as_save_IFS
47226
47227 ;;
47228esac
47229# We did not find ourselves, most probably we were run as `sh COMMAND'
47230# in which case we are not to be found in the path.
47231if test "x$as_myself" = x; then
47232 as_myself=$0
47233fi
47234if test ! -f "$as_myself"; then
47235 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47236 { (exit 1); exit 1; }
47237fi
47238
47239# Work around bugs in pre-3.0 UWIN ksh.
47240for as_var in ENV MAIL MAILPATH
47241do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47242done
47243PS1='$ '
47244PS2='> '
47245PS4='+ '
47246
47247# NLS nuisances.
47248LC_ALL=C
47249export LC_ALL
47250LANGUAGE=C
47251export LANGUAGE
47252
47253# Required to use basename.
47254if expr a : '\(a\)' >/dev/null 2>&1 &&
47255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47256 as_expr=expr
47257else
47258 as_expr=false
47259fi
47260
47261if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47262 as_basename=basename
47263else
47264 as_basename=false
47265fi
47266
47267
47268# Name of the executable.
47269as_me=`$as_basename -- "$0" ||
47270$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47271 X"$0" : 'X\(//\)$' \| \
47272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47273$as_echo X/"$0" |
47274 sed '/^.*\/\([^/][^/]*\)\/*$/{
47275 s//\1/
47276 q
47277 }
47278 /^X\/\(\/\/\)$/{
47279 s//\1/
47280 q
47281 }
47282 /^X\/\(\/\).*/{
47283 s//\1/
47284 q
47285 }
47286 s/.*/./; q'`
47287
47288# CDPATH.
47289$as_unset CDPATH
47290
47291
47292
47293 as_lineno_1=$LINENO
47294 as_lineno_2=$LINENO
47295 test "x$as_lineno_1" != "x$as_lineno_2" &&
47296 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47297
47298 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47299 # uniformly replaced by the line number. The first 'sed' inserts a
47300 # line-number line after each line using $LINENO; the second 'sed'
47301 # does the real work. The second script uses 'N' to pair each
47302 # line-number line with the line containing $LINENO, and appends
47303 # trailing '-' during substitution so that $LINENO is not a special
47304 # case at line end.
47305 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47306 # scripts with optimization help from Paolo Bonzini. Blame Lee
47307 # E. McMahon (1931-1989) for sed's syntax. :-)
47308 sed -n '
47309 p
47310 /[$]LINENO/=
47311 ' <$as_myself |
47312 sed '
47313 s/[$]LINENO.*/&-/
47314 t lineno
47315 b
47316 :lineno
47317 N
47318 :loop
47319 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47320 t loop
47321 s/-\n.*//
47322 ' >$as_me.lineno &&
47323 chmod +x "$as_me.lineno" ||
47324 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47325 { (exit 1); exit 1; }; }
47326
47327 # Don't try to exec as it changes $[0], causing all sort of problems
47328 # (the dirname of $[0] is not the place where we might find the
47329 # original and so on. Autoconf is especially sensitive to this).
47330 . "./$as_me.lineno"
47331 # Exit status is that of the last command.
47332 exit
47333}
47334
47335
47336if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47337 as_dirname=dirname
47338else
47339 as_dirname=false
47340fi
47341
47342ECHO_C= ECHO_N= ECHO_T=
47343case `echo -n x` in
47344-n*)
47345 case `echo 'x\c'` in
47346 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47347 *) ECHO_C='\c';;
47348 esac;;
47349*)
47350 ECHO_N='-n';;
47351esac
47352if expr a : '\(a\)' >/dev/null 2>&1 &&
47353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47354 as_expr=expr
47355else
47356 as_expr=false
47357fi
47358
47359rm -f conf$$ conf$$.exe conf$$.file
47360if test -d conf$$.dir; then
47361 rm -f conf$$.dir/conf$$.file
47362else
47363 rm -f conf$$.dir
47364 mkdir conf$$.dir 2>/dev/null
47365fi
47366if (echo >conf$$.file) 2>/dev/null; then
47367 if ln -s conf$$.file conf$$ 2>/dev/null; then
47368 as_ln_s='ln -s'
47369 # ... but there are two gotchas:
47370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47372 # In both cases, we have to default to `cp -p'.
47373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47374 as_ln_s='cp -p'
47375 elif ln conf$$.file conf$$ 2>/dev/null; then
47376 as_ln_s=ln
47377 else
47378 as_ln_s='cp -p'
47379 fi
47380else
47381 as_ln_s='cp -p'
47382fi
47383rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47384rmdir conf$$.dir 2>/dev/null
47385
47386if mkdir -p . 2>/dev/null; then
47387 as_mkdir_p=:
47388else
47389 test -d ./-p && rmdir ./-p
47390 as_mkdir_p=false
47391fi
47392
47393if test -x / >/dev/null 2>&1; then
47394 as_test_x='test -x'
47395else
47396 if ls -dL / >/dev/null 2>&1; then
47397 as_ls_L_option=L
47398 else
47399 as_ls_L_option=
47400 fi
47401 as_test_x='
47402 eval sh -c '\''
47403 if test -d "$1"; then
47404 test -d "$1/.";
47405 else
47406 case $1 in
47407 -*)set "./$1";;
47408 esac;
47409 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47410 ???[sx]*):;;*)false;;esac;fi
47411 '\'' sh
47412 '
47413fi
47414as_executable_p=$as_test_x
47415
47416# Sed expression to map a string onto a valid CPP name.
47417as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47418
47419# Sed expression to map a string onto a valid variable name.
47420as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47421
47422
47423exec 6>&1
47424
47425# Save the log message, to keep $[0] and so on meaningful, and to
47426# report actual input values of CONFIG_FILES etc. instead of their
47427# values after options handling.
47428ac_log="
cristyd934d102009-10-10 12:55:13 +000047429This file was extended by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +000047430generated by GNU Autoconf 2.63. Invocation command line was
47431
47432 CONFIG_FILES = $CONFIG_FILES
47433 CONFIG_HEADERS = $CONFIG_HEADERS
47434 CONFIG_LINKS = $CONFIG_LINKS
47435 CONFIG_COMMANDS = $CONFIG_COMMANDS
47436 $ $0 $@
47437
47438on `(hostname || uname -n) 2>/dev/null | sed 1q`
47439"
47440
47441_ACEOF
47442
47443case $ac_config_files in *"
47444"*) set x $ac_config_files; shift; ac_config_files=$*;;
47445esac
47446
47447case $ac_config_headers in *"
47448"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47449esac
47450
47451
47452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47453# Files that config.status was made for.
47454config_files="$ac_config_files"
47455config_headers="$ac_config_headers"
47456config_commands="$ac_config_commands"
47457
47458_ACEOF
47459
47460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47461ac_cs_usage="\
47462\`$as_me' instantiates files from templates according to the
47463current configuration.
47464
47465Usage: $0 [OPTION]... [FILE]...
47466
47467 -h, --help print this help, then exit
47468 -V, --version print version number and configuration settings, then exit
47469 -q, --quiet, --silent
47470 do not print progress messages
47471 -d, --debug don't remove temporary files
47472 --recheck update $as_me by reconfiguring in the same conditions
47473 --file=FILE[:TEMPLATE]
47474 instantiate the configuration file FILE
47475 --header=FILE[:TEMPLATE]
47476 instantiate the configuration header FILE
47477
47478Configuration files:
47479$config_files
47480
47481Configuration headers:
47482$config_headers
47483
47484Configuration commands:
47485$config_commands
47486
47487Report bugs to <bug-autoconf@gnu.org>."
47488
47489_ACEOF
47490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47491ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000047492ImageMagick config.status 6.5.7
cristy3ed852e2009-09-05 21:47:34 +000047493configured by $0, generated by GNU Autoconf 2.63,
47494 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47495
47496Copyright (C) 2008 Free Software Foundation, Inc.
47497This config.status script is free software; the Free Software Foundation
47498gives unlimited permission to copy, distribute and modify it."
47499
47500ac_pwd='$ac_pwd'
47501srcdir='$srcdir'
47502INSTALL='$INSTALL'
47503MKDIR_P='$MKDIR_P'
47504AWK='$AWK'
47505test -n "\$AWK" || AWK=awk
47506_ACEOF
47507
47508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47509# The default lists apply if the user does not specify any file.
47510ac_need_defaults=:
47511while test $# != 0
47512do
47513 case $1 in
47514 --*=*)
47515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47517 ac_shift=:
47518 ;;
47519 *)
47520 ac_option=$1
47521 ac_optarg=$2
47522 ac_shift=shift
47523 ;;
47524 esac
47525
47526 case $ac_option in
47527 # Handling of the options.
47528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47529 ac_cs_recheck=: ;;
47530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47531 $as_echo "$ac_cs_version"; exit ;;
47532 --debug | --debu | --deb | --de | --d | -d )
47533 debug=: ;;
47534 --file | --fil | --fi | --f )
47535 $ac_shift
47536 case $ac_optarg in
47537 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47538 esac
47539 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
47540 ac_need_defaults=false;;
47541 --header | --heade | --head | --hea )
47542 $ac_shift
47543 case $ac_optarg in
47544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47545 esac
47546 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
47547 ac_need_defaults=false;;
47548 --he | --h)
47549 # Conflict between --help and --header
47550 { $as_echo "$as_me: error: ambiguous option: $1
47551Try \`$0 --help' for more information." >&2
47552 { (exit 1); exit 1; }; };;
47553 --help | --hel | -h )
47554 $as_echo "$ac_cs_usage"; exit ;;
47555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47556 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47557 ac_cs_silent=: ;;
47558
47559 # This is an error.
47560 -*) { $as_echo "$as_me: error: unrecognized option: $1
47561Try \`$0 --help' for more information." >&2
47562 { (exit 1); exit 1; }; } ;;
47563
47564 *) ac_config_targets="$ac_config_targets $1"
47565 ac_need_defaults=false ;;
47566
47567 esac
47568 shift
47569done
47570
47571ac_configure_extra_args=
47572
47573if $ac_cs_silent; then
47574 exec 6>/dev/null
47575 ac_configure_extra_args="$ac_configure_extra_args --silent"
47576fi
47577
47578_ACEOF
47579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47580if \$ac_cs_recheck; then
47581 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47582 shift
47583 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47584 CONFIG_SHELL='$SHELL'
47585 export CONFIG_SHELL
47586 exec "\$@"
47587fi
47588
47589_ACEOF
47590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47591exec 5>>config.log
47592{
47593 echo
47594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47595## Running $as_me. ##
47596_ASBOX
47597 $as_echo "$ac_log"
47598} >&5
47599
47600_ACEOF
47601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47602#
47603# INIT-COMMANDS
47604#
47605PACKAGE="$PACKAGE"
47606AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47607
47608
47609# The HP-UX ksh and POSIX shell print the target directory to stdout
47610# if CDPATH is set.
47611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47612
47613sed_quote_subst='$sed_quote_subst'
47614double_quote_subst='$double_quote_subst'
47615delay_variable_subst='$delay_variable_subst'
47616SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
47617Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
47618GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
47619EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
47620FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
47621LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
47622macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
47623macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
47624AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
47625DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47626OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
47627enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
47628enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
47629pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
47630enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
47631host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
47632host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
47633host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
47634build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
47635build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
47636build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
47637NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
47638LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
47639max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
47640ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
47641exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
47642lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
47643lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
47644lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
47645reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
47646reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47647deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
47648file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
47649AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
47650AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47651STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
47652RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
47653old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47654old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47655old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47656CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
47657CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47658compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
47659GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
47660lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
47661lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
47662lt_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"`'
47663lt_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"`'
47664objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
47665SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
47666ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
47667MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
47668lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
47669lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
47670lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
47671lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
47672lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
47673need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
47674DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
47675NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
47676LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
47677OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47678OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
47679libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
47680shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47681extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47682archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
47683enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
47684export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47685whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47686compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
47687old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47688old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47689archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47690archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47691module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47692module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47693with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
47694allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47695no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47696hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47697hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
47698hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
47699hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
47700hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
47701hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
47702hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47703hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
47704inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
47705link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
47706fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
47707always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
47708export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47709exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47710include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47711prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47712file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
47713variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
47714need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
47715need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
47716version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
47717runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47718shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47719shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
47720libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47721library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
47722soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47723postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47724postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47725finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47726finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
47727hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
47728sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47729sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47730hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
47731enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
47732enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
47733enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
47734old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
47735striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
47736compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
47737predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47738postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47739predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
47740postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
47741compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
47742LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47743old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47744compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47745GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47746lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47747lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47748lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47749lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47750lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47751archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47752enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47753export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47754whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47755compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47756old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47757old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47758archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47759archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47760module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47761module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47762with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47763allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47764no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47765hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47766hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47767hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47768hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47769hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47770hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47771hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47772hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47773inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47774link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47775fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47776always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47777export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47778exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47779include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47780prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47781file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47782hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47783compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47784predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47785postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47786predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47787postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47788compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47789
47790LTCC='$LTCC'
47791LTCFLAGS='$LTCFLAGS'
47792compiler='$compiler_DEFAULT'
47793
47794# Quote evaled strings.
47795for var in SED \
47796GREP \
47797EGREP \
47798FGREP \
47799LD \
47800NM \
47801LN_S \
47802lt_SP2NL \
47803lt_NL2SP \
47804reload_flag \
47805deplibs_check_method \
47806file_magic_cmd \
47807AR \
47808AR_FLAGS \
47809STRIP \
47810RANLIB \
47811CC \
47812CFLAGS \
47813compiler \
47814lt_cv_sys_global_symbol_pipe \
47815lt_cv_sys_global_symbol_to_cdecl \
47816lt_cv_sys_global_symbol_to_c_name_address \
47817lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47818SHELL \
47819ECHO \
47820lt_prog_compiler_no_builtin_flag \
47821lt_prog_compiler_wl \
47822lt_prog_compiler_pic \
47823lt_prog_compiler_static \
47824lt_cv_prog_compiler_c_o \
47825need_locks \
47826DSYMUTIL \
47827NMEDIT \
47828LIPO \
47829OTOOL \
47830OTOOL64 \
47831shrext_cmds \
47832export_dynamic_flag_spec \
47833whole_archive_flag_spec \
47834compiler_needs_object \
47835with_gnu_ld \
47836allow_undefined_flag \
47837no_undefined_flag \
47838hardcode_libdir_flag_spec \
47839hardcode_libdir_flag_spec_ld \
47840hardcode_libdir_separator \
47841fix_srcfile_path \
47842exclude_expsyms \
47843include_expsyms \
47844file_list_spec \
47845variables_saved_for_relink \
47846libname_spec \
47847library_names_spec \
47848soname_spec \
47849finish_eval \
47850old_striplib \
47851striplib \
47852compiler_lib_search_dirs \
47853predep_objects \
47854postdep_objects \
47855predeps \
47856postdeps \
47857compiler_lib_search_path \
47858LD_CXX \
47859compiler_CXX \
47860lt_prog_compiler_no_builtin_flag_CXX \
47861lt_prog_compiler_wl_CXX \
47862lt_prog_compiler_pic_CXX \
47863lt_prog_compiler_static_CXX \
47864lt_cv_prog_compiler_c_o_CXX \
47865export_dynamic_flag_spec_CXX \
47866whole_archive_flag_spec_CXX \
47867compiler_needs_object_CXX \
47868with_gnu_ld_CXX \
47869allow_undefined_flag_CXX \
47870no_undefined_flag_CXX \
47871hardcode_libdir_flag_spec_CXX \
47872hardcode_libdir_flag_spec_ld_CXX \
47873hardcode_libdir_separator_CXX \
47874fix_srcfile_path_CXX \
47875exclude_expsyms_CXX \
47876include_expsyms_CXX \
47877file_list_spec_CXX \
47878compiler_lib_search_dirs_CXX \
47879predep_objects_CXX \
47880postdep_objects_CXX \
47881predeps_CXX \
47882postdeps_CXX \
47883compiler_lib_search_path_CXX; do
47884 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47885 *[\\\\\\\`\\"\\\$]*)
47886 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47887 ;;
47888 *)
47889 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47890 ;;
47891 esac
47892done
47893
47894# Double-quote double-evaled strings.
47895for var in reload_cmds \
47896old_postinstall_cmds \
47897old_postuninstall_cmds \
47898old_archive_cmds \
47899extract_expsyms_cmds \
47900old_archive_from_new_cmds \
47901old_archive_from_expsyms_cmds \
47902archive_cmds \
47903archive_expsym_cmds \
47904module_cmds \
47905module_expsym_cmds \
47906export_symbols_cmds \
47907prelink_cmds \
47908postinstall_cmds \
47909postuninstall_cmds \
47910finish_cmds \
47911sys_lib_search_path_spec \
47912sys_lib_dlsearch_path_spec \
47913old_archive_cmds_CXX \
47914old_archive_from_new_cmds_CXX \
47915old_archive_from_expsyms_cmds_CXX \
47916archive_cmds_CXX \
47917archive_expsym_cmds_CXX \
47918module_cmds_CXX \
47919module_expsym_cmds_CXX \
47920export_symbols_cmds_CXX \
47921prelink_cmds_CXX; do
47922 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47923 *[\\\\\\\`\\"\\\$]*)
47924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47925 ;;
47926 *)
47927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47928 ;;
47929 esac
47930done
47931
47932# Fix-up fallback echo if it was mangled by the above quoting rules.
47933case \$lt_ECHO in
47934*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47935 ;;
47936esac
47937
47938ac_aux_dir='$ac_aux_dir'
47939xsi_shell='$xsi_shell'
47940lt_shell_append='$lt_shell_append'
47941
47942# See if we are running on zsh, and set the options which allow our
47943# commands through without removal of \ escapes INIT.
47944if test -n "\${ZSH_VERSION+set}" ; then
47945 setopt NO_GLOB_SUBST
47946fi
47947
47948
47949 PACKAGE='$PACKAGE'
47950 VERSION='$VERSION'
47951 TIMESTAMP='$TIMESTAMP'
47952 RM='$RM'
47953 ofile='$ofile'
47954
47955
47956
47957
47958
47959
47960_ACEOF
47961
47962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47963
47964# Handling of arguments.
47965for ac_config_target in $ac_config_targets
47966do
47967 case $ac_config_target in
47968 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47969 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47970 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47971 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47972 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47973 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47974 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47975 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47976 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47977 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47978 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47979 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47980 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47981 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47982 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47983 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47984 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47985 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47986 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47988 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47989 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47990 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47991 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47992 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47993 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47994 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47995 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47996 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47997 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47998 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47999 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
48000 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
48001 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
48002 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
48003 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
48004 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
48005 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
48006 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
48007 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
48008 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
48009 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
48010 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
48011 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
48012 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
48013 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
48014 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
48015 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
48016 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
48017
48018 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48019$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48020 { (exit 1); exit 1; }; };;
48021 esac
48022done
48023
48024
48025# If the user did not use the arguments to specify the items to instantiate,
48026# then the envvar interface is used. Set only those that are not.
48027# We use the long form for the default assignment because of an extremely
48028# bizarre bug on SunOS 4.1.3.
48029if $ac_need_defaults; then
48030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48033fi
48034
48035# Have a temporary directory for convenience. Make it in the build tree
48036# simply because there is no reason against having it here, and in addition,
48037# creating and moving files from /tmp can sometimes cause problems.
48038# Hook for its removal unless debugging.
48039# Note that there is a small window in which the directory will not be cleaned:
48040# after its creation but before its name has been assigned to `$tmp'.
48041$debug ||
48042{
48043 tmp=
48044 trap 'exit_status=$?
48045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48046' 0
48047 trap '{ (exit 1); exit 1; }' 1 2 13 15
48048}
48049# Create a (secure) tmp directory for tmp files.
48050
48051{
48052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48053 test -n "$tmp" && test -d "$tmp"
48054} ||
48055{
48056 tmp=./conf$$-$RANDOM
48057 (umask 077 && mkdir "$tmp")
48058} ||
48059{
48060 $as_echo "$as_me: cannot create a temporary directory in ." >&2
48061 { (exit 1); exit 1; }
48062}
48063
48064# Set up the scripts for CONFIG_FILES section.
48065# No need to generate them if there are no CONFIG_FILES.
48066# This happens for instance with `./config.status config.h'.
48067if test -n "$CONFIG_FILES"; then
48068
48069
48070ac_cr=' '
48071ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48072if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48073 ac_cs_awk_cr='\\r'
48074else
48075 ac_cs_awk_cr=$ac_cr
48076fi
48077
48078echo 'BEGIN {' >"$tmp/subs1.awk" &&
48079_ACEOF
48080
48081
48082{
48083 echo "cat >conf$$subs.awk <<_ACEOF" &&
48084 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48085 echo "_ACEOF"
48086} >conf$$subs.sh ||
48087 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48088$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48089 { (exit 1); exit 1; }; }
48090ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48091ac_delim='%!_!# '
48092for ac_last_try in false false false false false :; do
48093 . ./conf$$subs.sh ||
48094 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48095$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48096 { (exit 1); exit 1; }; }
48097
48098 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48099 if test $ac_delim_n = $ac_delim_num; then
48100 break
48101 elif $ac_last_try; then
48102 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48103$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48104 { (exit 1); exit 1; }; }
48105 else
48106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48107 fi
48108done
48109rm -f conf$$subs.sh
48110
48111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48112cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48113_ACEOF
48114sed -n '
48115h
48116s/^/S["/; s/!.*/"]=/
48117p
48118g
48119s/^[^!]*!//
48120:repl
48121t repl
48122s/'"$ac_delim"'$//
48123t delim
48124:nl
48125h
48126s/\(.\{148\}\).*/\1/
48127t more1
48128s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48129p
48130n
48131b repl
48132:more1
48133s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48134p
48135g
48136s/.\{148\}//
48137t nl
48138:delim
48139h
48140s/\(.\{148\}\).*/\1/
48141t more2
48142s/["\\]/\\&/g; s/^/"/; s/$/"/
48143p
48144b
48145:more2
48146s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48147p
48148g
48149s/.\{148\}//
48150t delim
48151' <conf$$subs.awk | sed '
48152/^[^""]/{
48153 N
48154 s/\n//
48155}
48156' >>$CONFIG_STATUS || ac_write_fail=1
48157rm -f conf$$subs.awk
48158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48159_ACAWK
48160cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48161 for (key in S) S_is_set[key] = 1
48162 FS = ""
48163
48164}
48165{
48166 line = $ 0
48167 nfields = split(line, field, "@")
48168 substed = 0
48169 len = length(field[1])
48170 for (i = 2; i < nfields; i++) {
48171 key = field[i]
48172 keylen = length(key)
48173 if (S_is_set[key]) {
48174 value = S[key]
48175 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48176 len += length(value) + length(field[++i])
48177 substed = 1
48178 } else
48179 len += 1 + keylen
48180 }
48181
48182 print line
48183}
48184
48185_ACAWK
48186_ACEOF
48187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48188if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48189 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48190else
48191 cat
48192fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48193 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48194$as_echo "$as_me: error: could not setup config files machinery" >&2;}
48195 { (exit 1); exit 1; }; }
48196_ACEOF
48197
48198# VPATH may cause trouble with some makes, so we remove $(srcdir),
48199# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48200# trailing colons and then remove the whole line if VPATH becomes empty
48201# (actually we leave an empty line to preserve line numbers).
48202if test "x$srcdir" = x.; then
48203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48204s/:*\$(srcdir):*/:/
48205s/:*\${srcdir}:*/:/
48206s/:*@srcdir@:*/:/
48207s/^\([^=]*=[ ]*\):*/\1/
48208s/:*$//
48209s/^[^=]*=[ ]*$//
48210}'
48211fi
48212
48213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48214fi # test -n "$CONFIG_FILES"
48215
48216# Set up the scripts for CONFIG_HEADERS section.
48217# No need to generate them if there are no CONFIG_HEADERS.
48218# This happens for instance with `./config.status Makefile'.
48219if test -n "$CONFIG_HEADERS"; then
48220cat >"$tmp/defines.awk" <<\_ACAWK ||
48221BEGIN {
48222_ACEOF
48223
48224# Transform confdefs.h into an awk script `defines.awk', embedded as
48225# here-document in config.status, that substitutes the proper values into
48226# config.h.in to produce config.h.
48227
48228# Create a delimiter string that does not exist in confdefs.h, to ease
48229# handling of long lines.
48230ac_delim='%!_!# '
48231for ac_last_try in false false :; do
48232 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48233 if test -z "$ac_t"; then
48234 break
48235 elif $ac_last_try; then
48236 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
48237$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
48238 { (exit 1); exit 1; }; }
48239 else
48240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48241 fi
48242done
48243
48244# For the awk script, D is an array of macro values keyed by name,
48245# likewise P contains macro parameters if any. Preserve backslash
48246# newline sequences.
48247
48248ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48249sed -n '
48250s/.\{148\}/&'"$ac_delim"'/g
48251t rset
48252:rset
48253s/^[ ]*#[ ]*define[ ][ ]*/ /
48254t def
48255d
48256:def
48257s/\\$//
48258t bsnl
48259s/["\\]/\\&/g
48260s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48261D["\1"]=" \3"/p
48262s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48263d
48264:bsnl
48265s/["\\]/\\&/g
48266s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48267D["\1"]=" \3\\\\\\n"\\/p
48268t cont
48269s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48270t cont
48271d
48272:cont
48273n
48274s/.\{148\}/&'"$ac_delim"'/g
48275t clear
48276:clear
48277s/\\$//
48278t bsnlc
48279s/["\\]/\\&/g; s/^/"/; s/$/"/p
48280d
48281:bsnlc
48282s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48283b cont
48284' <confdefs.h | sed '
48285s/'"$ac_delim"'/"\\\
48286"/g' >>$CONFIG_STATUS || ac_write_fail=1
48287
48288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48289 for (key in D) D_is_set[key] = 1
48290 FS = ""
48291}
48292/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48293 line = \$ 0
48294 split(line, arg, " ")
48295 if (arg[1] == "#") {
48296 defundef = arg[2]
48297 mac1 = arg[3]
48298 } else {
48299 defundef = substr(arg[1], 2)
48300 mac1 = arg[2]
48301 }
48302 split(mac1, mac2, "(") #)
48303 macro = mac2[1]
48304 prefix = substr(line, 1, index(line, defundef) - 1)
48305 if (D_is_set[macro]) {
48306 # Preserve the white space surrounding the "#".
48307 print prefix "define", macro P[macro] D[macro]
48308 next
48309 } else {
48310 # Replace #undef with comments. This is necessary, for example,
48311 # in the case of _POSIX_SOURCE, which is predefined and required
48312 # on some systems where configure will not decide to define it.
48313 if (defundef == "undef") {
48314 print "/*", prefix defundef, macro, "*/"
48315 next
48316 }
48317 }
48318}
48319{ print }
48320_ACAWK
48321_ACEOF
48322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48323 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48324$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48325 { (exit 1); exit 1; }; }
48326fi # test -n "$CONFIG_HEADERS"
48327
48328
48329eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48330shift
48331for ac_tag
48332do
48333 case $ac_tag in
48334 :[FHLC]) ac_mode=$ac_tag; continue;;
48335 esac
48336 case $ac_mode$ac_tag in
48337 :[FHL]*:*);;
48338 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48339$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48340 { (exit 1); exit 1; }; };;
48341 :[FH]-) ac_tag=-:-;;
48342 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48343 esac
48344 ac_save_IFS=$IFS
48345 IFS=:
48346 set x $ac_tag
48347 IFS=$ac_save_IFS
48348 shift
48349 ac_file=$1
48350 shift
48351
48352 case $ac_mode in
48353 :L) ac_source=$1;;
48354 :[FH])
48355 ac_file_inputs=
48356 for ac_f
48357 do
48358 case $ac_f in
48359 -) ac_f="$tmp/stdin";;
48360 *) # Look for the file first in the build tree, then in the source tree
48361 # (if the path is not absolute). The absolute path cannot be DOS-style,
48362 # because $ac_f cannot contain `:'.
48363 test -f "$ac_f" ||
48364 case $ac_f in
48365 [\\/$]*) false;;
48366 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48367 esac ||
48368 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48369$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48370 { (exit 1); exit 1; }; };;
48371 esac
48372 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48373 ac_file_inputs="$ac_file_inputs '$ac_f'"
48374 done
48375
48376 # Let's still pretend it is `configure' which instantiates (i.e., don't
48377 # use $as_me), people would be surprised to read:
48378 # /* config.h. Generated by config.status. */
48379 configure_input='Generated from '`
48380 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48381 `' by configure.'
48382 if test x"$ac_file" != x-; then
48383 configure_input="$ac_file. $configure_input"
48384 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
48385$as_echo "$as_me: creating $ac_file" >&6;}
48386 fi
48387 # Neutralize special characters interpreted by sed in replacement strings.
48388 case $configure_input in #(
48389 *\&* | *\|* | *\\* )
48390 ac_sed_conf_input=`$as_echo "$configure_input" |
48391 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48392 *) ac_sed_conf_input=$configure_input;;
48393 esac
48394
48395 case $ac_tag in
48396 *:-:* | *:-) cat >"$tmp/stdin" \
48397 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48398$as_echo "$as_me: error: could not create $ac_file" >&2;}
48399 { (exit 1); exit 1; }; } ;;
48400 esac
48401 ;;
48402 esac
48403
48404 ac_dir=`$as_dirname -- "$ac_file" ||
48405$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48406 X"$ac_file" : 'X\(//\)[^/]' \| \
48407 X"$ac_file" : 'X\(//\)$' \| \
48408 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48409$as_echo X"$ac_file" |
48410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48411 s//\1/
48412 q
48413 }
48414 /^X\(\/\/\)[^/].*/{
48415 s//\1/
48416 q
48417 }
48418 /^X\(\/\/\)$/{
48419 s//\1/
48420 q
48421 }
48422 /^X\(\/\).*/{
48423 s//\1/
48424 q
48425 }
48426 s/.*/./; q'`
48427 { as_dir="$ac_dir"
48428 case $as_dir in #(
48429 -*) as_dir=./$as_dir;;
48430 esac
48431 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48432 as_dirs=
48433 while :; do
48434 case $as_dir in #(
48435 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48436 *) as_qdir=$as_dir;;
48437 esac
48438 as_dirs="'$as_qdir' $as_dirs"
48439 as_dir=`$as_dirname -- "$as_dir" ||
48440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48441 X"$as_dir" : 'X\(//\)[^/]' \| \
48442 X"$as_dir" : 'X\(//\)$' \| \
48443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48444$as_echo X"$as_dir" |
48445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48446 s//\1/
48447 q
48448 }
48449 /^X\(\/\/\)[^/].*/{
48450 s//\1/
48451 q
48452 }
48453 /^X\(\/\/\)$/{
48454 s//\1/
48455 q
48456 }
48457 /^X\(\/\).*/{
48458 s//\1/
48459 q
48460 }
48461 s/.*/./; q'`
48462 test -d "$as_dir" && break
48463 done
48464 test -z "$as_dirs" || eval "mkdir $as_dirs"
48465 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48466$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48467 { (exit 1); exit 1; }; }; }
48468 ac_builddir=.
48469
48470case "$ac_dir" in
48471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48472*)
48473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48474 # A ".." for each directory in $ac_dir_suffix.
48475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48476 case $ac_top_builddir_sub in
48477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48479 esac ;;
48480esac
48481ac_abs_top_builddir=$ac_pwd
48482ac_abs_builddir=$ac_pwd$ac_dir_suffix
48483# for backward compatibility:
48484ac_top_builddir=$ac_top_build_prefix
48485
48486case $srcdir in
48487 .) # We are building in place.
48488 ac_srcdir=.
48489 ac_top_srcdir=$ac_top_builddir_sub
48490 ac_abs_top_srcdir=$ac_pwd ;;
48491 [\\/]* | ?:[\\/]* ) # Absolute name.
48492 ac_srcdir=$srcdir$ac_dir_suffix;
48493 ac_top_srcdir=$srcdir
48494 ac_abs_top_srcdir=$srcdir ;;
48495 *) # Relative name.
48496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48497 ac_top_srcdir=$ac_top_build_prefix$srcdir
48498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48499esac
48500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48501
48502
48503 case $ac_mode in
48504 :F)
48505 #
48506 # CONFIG_FILE
48507 #
48508
48509 case $INSTALL in
48510 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48511 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48512 esac
48513 ac_MKDIR_P=$MKDIR_P
48514 case $MKDIR_P in
48515 [\\/$]* | ?:[\\/]* ) ;;
48516 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48517 esac
48518_ACEOF
48519
48520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48521# If the template does not know about datarootdir, expand it.
48522# FIXME: This hack should be removed a few years after 2.60.
48523ac_datarootdir_hack=; ac_datarootdir_seen=
48524
48525ac_sed_dataroot='
48526/datarootdir/ {
48527 p
48528 q
48529}
48530/@datadir@/p
48531/@docdir@/p
48532/@infodir@/p
48533/@localedir@/p
48534/@mandir@/p
48535'
48536case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48537*datarootdir*) ac_datarootdir_seen=yes;;
48538*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48539 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48540$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48541_ACEOF
48542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48543 ac_datarootdir_hack='
48544 s&@datadir@&$datadir&g
48545 s&@docdir@&$docdir&g
48546 s&@infodir@&$infodir&g
48547 s&@localedir@&$localedir&g
48548 s&@mandir@&$mandir&g
48549 s&\\\${datarootdir}&$datarootdir&g' ;;
48550esac
48551_ACEOF
48552
48553# Neutralize VPATH when `$srcdir' = `.'.
48554# Shell code in configure.ac might set extrasub.
48555# FIXME: do we really want to maintain this feature?
48556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48557ac_sed_extra="$ac_vpsub
48558$extrasub
48559_ACEOF
48560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48561:t
48562/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48563s|@configure_input@|$ac_sed_conf_input|;t t
48564s&@top_builddir@&$ac_top_builddir_sub&;t t
48565s&@top_build_prefix@&$ac_top_build_prefix&;t t
48566s&@srcdir@&$ac_srcdir&;t t
48567s&@abs_srcdir@&$ac_abs_srcdir&;t t
48568s&@top_srcdir@&$ac_top_srcdir&;t t
48569s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48570s&@builddir@&$ac_builddir&;t t
48571s&@abs_builddir@&$ac_abs_builddir&;t t
48572s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48573s&@INSTALL@&$ac_INSTALL&;t t
48574s&@MKDIR_P@&$ac_MKDIR_P&;t t
48575$ac_datarootdir_hack
48576"
48577eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
48578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48579$as_echo "$as_me: error: could not create $ac_file" >&2;}
48580 { (exit 1); exit 1; }; }
48581
48582test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
48584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
48585 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48586which seems to be undefined. Please make sure it is defined." >&5
48587$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48588which seems to be undefined. Please make sure it is defined." >&2;}
48589
48590 rm -f "$tmp/stdin"
48591 case $ac_file in
48592 -) cat "$tmp/out" && rm -f "$tmp/out";;
48593 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
48594 esac \
48595 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48596$as_echo "$as_me: error: could not create $ac_file" >&2;}
48597 { (exit 1); exit 1; }; }
48598 ;;
48599 :H)
48600 #
48601 # CONFIG_HEADER
48602 #
48603 if test x"$ac_file" != x-; then
48604 {
48605 $as_echo "/* $configure_input */" \
48606 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
48607 } >"$tmp/config.h" \
48608 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48609$as_echo "$as_me: error: could not create $ac_file" >&2;}
48610 { (exit 1); exit 1; }; }
48611 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
48612 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48613$as_echo "$as_me: $ac_file is unchanged" >&6;}
48614 else
48615 rm -f "$ac_file"
48616 mv "$tmp/config.h" "$ac_file" \
48617 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48618$as_echo "$as_me: error: could not create $ac_file" >&2;}
48619 { (exit 1); exit 1; }; }
48620 fi
48621 else
48622 $as_echo "/* $configure_input */" \
48623 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
48624 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
48625$as_echo "$as_me: error: could not create -" >&2;}
48626 { (exit 1); exit 1; }; }
48627 fi
48628# Compute "$ac_file"'s index in $config_headers.
48629_am_arg="$ac_file"
48630_am_stamp_count=1
48631for _am_header in $config_headers :; do
48632 case $_am_header in
48633 $_am_arg | $_am_arg:* )
48634 break ;;
48635 * )
48636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48637 esac
48638done
48639echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48640$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48641 X"$_am_arg" : 'X\(//\)[^/]' \| \
48642 X"$_am_arg" : 'X\(//\)$' \| \
48643 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48644$as_echo X"$_am_arg" |
48645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48646 s//\1/
48647 q
48648 }
48649 /^X\(\/\/\)[^/].*/{
48650 s//\1/
48651 q
48652 }
48653 /^X\(\/\/\)$/{
48654 s//\1/
48655 q
48656 }
48657 /^X\(\/\).*/{
48658 s//\1/
48659 q
48660 }
48661 s/.*/./; q'`/stamp-h$_am_stamp_count
48662 ;;
48663
48664 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
48665$as_echo "$as_me: executing $ac_file commands" >&6;}
48666 ;;
48667 esac
48668
48669
48670 case $ac_file$ac_mode in
48671 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
48672ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
48673ac_prefix_conf_PKG=`echo MagickCore`
48674ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
48675ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
48676ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
48677if test ".$ac_prefix_conf_INP" = "."; then
48678 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
48679 case "$ac_file" in
48680 *.h) ac_prefix_conf_INP=$ac_file ;;
48681 *)
48682 esac
48683 test ".$ac_prefix_conf_INP" != "." && break
48684 done
48685fi
48686if test ".$ac_prefix_conf_INP" = "."; then
48687 case "$ac_prefix_conf_OUT" in
48688 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
48689 ;;
48690 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
48691 ;;
48692 *) ac_prefix_conf_INP=config.h
48693 ;;
48694 esac
48695fi
48696if test -z "$ac_prefix_conf_PKG" ; then
48697 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
48698$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
48699 { (exit 1); exit 1; }; }
48700else
48701 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
48702 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
48703 fi fi
48704 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
48705$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
48706 if test -f $ac_prefix_conf_INP ; then
48707 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
48708 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
48709 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
48710 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
48711 echo "#endif/" >>conftest.prefix
48712 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
48713 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
48714 echo "#endif/" >> conftest.prefix
48715 # now executing _script on _DEF input to create _OUT output file
48716 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
48717 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
48718 echo ' ' >>$tmp/pconfig.h
48719 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
48720
48721 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
48722 echo ' ' >>$tmp/pconfig.h
48723 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
48724 echo "#endif" >>$tmp/pconfig.h
48725 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
48726 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
48727$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
48728 else
48729 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
48730$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48731 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
48732 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
48733 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
48734$as_echo X"$ac_prefix_conf_OUT" |
48735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48736 s//\1/
48737 q
48738 }
48739 /^X\(\/\/\)[^/].*/{
48740 s//\1/
48741 q
48742 }
48743 /^X\(\/\/\)$/{
48744 s//\1/
48745 q
48746 }
48747 /^X\(\/\).*/{
48748 s//\1/
48749 q
48750 }
48751 s/.*/./; q'`
48752 { as_dir="$ac_dir"
48753 case $as_dir in #(
48754 -*) as_dir=./$as_dir;;
48755 esac
48756 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48757 as_dirs=
48758 while :; do
48759 case $as_dir in #(
48760 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48761 *) as_qdir=$as_dir;;
48762 esac
48763 as_dirs="'$as_qdir' $as_dirs"
48764 as_dir=`$as_dirname -- "$as_dir" ||
48765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48766 X"$as_dir" : 'X\(//\)[^/]' \| \
48767 X"$as_dir" : 'X\(//\)$' \| \
48768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48769$as_echo X"$as_dir" |
48770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48771 s//\1/
48772 q
48773 }
48774 /^X\(\/\/\)[^/].*/{
48775 s//\1/
48776 q
48777 }
48778 /^X\(\/\/\)$/{
48779 s//\1/
48780 q
48781 }
48782 /^X\(\/\).*/{
48783 s//\1/
48784 q
48785 }
48786 s/.*/./; q'`
48787 test -d "$as_dir" && break
48788 done
48789 test -z "$as_dirs" || eval "mkdir $as_dirs"
48790 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48791$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48792 { (exit 1); exit 1; }; }; }
48793 rm -f "$ac_prefix_conf_OUT"
48794 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
48795 fi
48796 cp conftest.prefix _configs.sed
48797 else
48798 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
48799$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
48800 { (exit 1); exit 1; }; }
48801 fi
48802 rm -f conftest.*
48803fi
48804 ;;
48805 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48806 # Autoconf 2.62 quotes --file arguments for eval, but not when files
48807 # are listed without --file. Let's play safe and only enable the eval
48808 # if we detect the quoting.
48809 case $CONFIG_FILES in
48810 *\'*) eval set x "$CONFIG_FILES" ;;
48811 *) set x $CONFIG_FILES ;;
48812 esac
48813 shift
48814 for mf
48815 do
48816 # Strip MF so we end up with the name of the file.
48817 mf=`echo "$mf" | sed -e 's/:.*$//'`
48818 # Check whether this is an Automake generated Makefile or not.
48819 # We used to match only the files named `Makefile.in', but
48820 # some people rename them; so instead we look at the file content.
48821 # Grep'ing the first line is not enough: some people post-process
48822 # each Makefile.in and add a new line on top of each file to say so.
48823 # Grep'ing the whole file is not good either: AIX grep has a line
48824 # limit of 2048, but all sed's we know have understand at least 4000.
48825 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
48826 dirpart=`$as_dirname -- "$mf" ||
48827$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48828 X"$mf" : 'X\(//\)[^/]' \| \
48829 X"$mf" : 'X\(//\)$' \| \
48830 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
48831$as_echo X"$mf" |
48832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48833 s//\1/
48834 q
48835 }
48836 /^X\(\/\/\)[^/].*/{
48837 s//\1/
48838 q
48839 }
48840 /^X\(\/\/\)$/{
48841 s//\1/
48842 q
48843 }
48844 /^X\(\/\).*/{
48845 s//\1/
48846 q
48847 }
48848 s/.*/./; q'`
48849 else
48850 continue
48851 fi
48852 # Extract the definition of DEPDIR, am__include, and am__quote
48853 # from the Makefile without running `make'.
48854 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48855 test -z "$DEPDIR" && continue
48856 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48857 test -z "am__include" && continue
48858 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48859 # When using ansi2knr, U may be empty or an underscore; expand it
48860 U=`sed -n 's/^U = //p' < "$mf"`
48861 # Find all dependency output files, they are included files with
48862 # $(DEPDIR) in their names. We invoke sed twice because it is the
48863 # simplest approach to changing $(DEPDIR) to its actual value in the
48864 # expansion.
48865 for file in `sed -n "
48866 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48867 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48868 # Make sure the directory exists.
48869 test -f "$dirpart/$file" && continue
48870 fdir=`$as_dirname -- "$file" ||
48871$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48872 X"$file" : 'X\(//\)[^/]' \| \
48873 X"$file" : 'X\(//\)$' \| \
48874 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48875$as_echo X"$file" |
48876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48877 s//\1/
48878 q
48879 }
48880 /^X\(\/\/\)[^/].*/{
48881 s//\1/
48882 q
48883 }
48884 /^X\(\/\/\)$/{
48885 s//\1/
48886 q
48887 }
48888 /^X\(\/\).*/{
48889 s//\1/
48890 q
48891 }
48892 s/.*/./; q'`
48893 { as_dir=$dirpart/$fdir
48894 case $as_dir in #(
48895 -*) as_dir=./$as_dir;;
48896 esac
48897 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48898 as_dirs=
48899 while :; do
48900 case $as_dir in #(
48901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48902 *) as_qdir=$as_dir;;
48903 esac
48904 as_dirs="'$as_qdir' $as_dirs"
48905 as_dir=`$as_dirname -- "$as_dir" ||
48906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48907 X"$as_dir" : 'X\(//\)[^/]' \| \
48908 X"$as_dir" : 'X\(//\)$' \| \
48909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48910$as_echo X"$as_dir" |
48911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48912 s//\1/
48913 q
48914 }
48915 /^X\(\/\/\)[^/].*/{
48916 s//\1/
48917 q
48918 }
48919 /^X\(\/\/\)$/{
48920 s//\1/
48921 q
48922 }
48923 /^X\(\/\).*/{
48924 s//\1/
48925 q
48926 }
48927 s/.*/./; q'`
48928 test -d "$as_dir" && break
48929 done
48930 test -z "$as_dirs" || eval "mkdir $as_dirs"
48931 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48932$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48933 { (exit 1); exit 1; }; }; }
48934 # echo "creating $dirpart/$file"
48935 echo '# dummy' > "$dirpart/$file"
48936 done
48937 done
48938}
48939 ;;
48940 "libtool":C)
48941
48942 # See if we are running on zsh, and set the options which allow our
48943 # commands through without removal of \ escapes.
48944 if test -n "${ZSH_VERSION+set}" ; then
48945 setopt NO_GLOB_SUBST
48946 fi
48947
48948 cfgfile="${ofile}T"
48949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48950 $RM "$cfgfile"
48951
48952 cat <<_LT_EOF >> "$cfgfile"
48953#! $SHELL
48954
48955# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48956# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48958# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48959#
48960# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48961# 2006, 2007, 2008 Free Software Foundation, Inc.
48962# Written by Gordon Matzigkeit, 1996
48963#
48964# This file is part of GNU Libtool.
48965#
48966# GNU Libtool is free software; you can redistribute it and/or
48967# modify it under the terms of the GNU General Public License as
48968# published by the Free Software Foundation; either version 2 of
48969# the License, or (at your option) any later version.
48970#
48971# As a special exception to the GNU General Public License,
48972# if you distribute this file as part of a program or library that
48973# is built using GNU Libtool, you may include this file under the
48974# same distribution terms that you use for the rest of that program.
48975#
48976# GNU Libtool is distributed in the hope that it will be useful,
48977# but WITHOUT ANY WARRANTY; without even the implied warranty of
48978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48979# GNU General Public License for more details.
48980#
48981# You should have received a copy of the GNU General Public License
48982# along with GNU Libtool; see the file COPYING. If not, a copy
48983# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48984# obtained by writing to the Free Software Foundation, Inc.,
48985# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48986
48987
48988# The names of the tagged configurations supported by this script.
48989available_tags="CXX "
48990
48991# ### BEGIN LIBTOOL CONFIG
48992
48993# A sed program that does not truncate output.
48994SED=$lt_SED
48995
48996# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48997Xsed="\$SED -e 1s/^X//"
48998
48999# A grep program that handles long lines.
49000GREP=$lt_GREP
49001
49002# An ERE matcher.
49003EGREP=$lt_EGREP
49004
49005# A literal string matcher.
49006FGREP=$lt_FGREP
49007
49008# Which release of libtool.m4 was used?
49009macro_version=$macro_version
49010macro_revision=$macro_revision
49011
49012# Assembler program.
49013AS=$AS
49014
49015# DLL creation program.
49016DLLTOOL=$DLLTOOL
49017
49018# Object dumper program.
49019OBJDUMP=$OBJDUMP
49020
49021# Whether or not to build shared libraries.
49022build_libtool_libs=$enable_shared
49023
49024# Whether or not to build static libraries.
49025build_old_libs=$enable_static
49026
49027# What type of objects to build.
49028pic_mode=$pic_mode
49029
49030# Whether or not to optimize for fast installation.
49031fast_install=$enable_fast_install
49032
49033# The host system.
49034host_alias=$host_alias
49035host=$host
49036host_os=$host_os
49037
49038# The build system.
49039build_alias=$build_alias
49040build=$build
49041build_os=$build_os
49042
49043# A BSD- or MS-compatible name lister.
49044NM=$lt_NM
49045
49046# Whether we need soft or hard links.
49047LN_S=$lt_LN_S
49048
49049# What is the maximum length of a command?
49050max_cmd_len=$max_cmd_len
49051
49052# Object file suffix (normally "o").
49053objext=$ac_objext
49054
49055# Executable file suffix (normally "").
49056exeext=$exeext
49057
49058# whether the shell understands "unset".
49059lt_unset=$lt_unset
49060
49061# turn spaces into newlines.
49062SP2NL=$lt_lt_SP2NL
49063
49064# turn newlines into spaces.
49065NL2SP=$lt_lt_NL2SP
49066
49067# How to create reloadable object files.
49068reload_flag=$lt_reload_flag
49069reload_cmds=$lt_reload_cmds
49070
49071# Method to check whether dependent libraries are shared objects.
49072deplibs_check_method=$lt_deplibs_check_method
49073
49074# Command to use when deplibs_check_method == "file_magic".
49075file_magic_cmd=$lt_file_magic_cmd
49076
49077# The archiver.
49078AR=$lt_AR
49079AR_FLAGS=$lt_AR_FLAGS
49080
49081# A symbol stripping program.
49082STRIP=$lt_STRIP
49083
49084# Commands used to install an old-style archive.
49085RANLIB=$lt_RANLIB
49086old_postinstall_cmds=$lt_old_postinstall_cmds
49087old_postuninstall_cmds=$lt_old_postuninstall_cmds
49088
49089# A C compiler.
49090LTCC=$lt_CC
49091
49092# LTCC compiler flags.
49093LTCFLAGS=$lt_CFLAGS
49094
49095# Take the output of nm and produce a listing of raw symbols and C names.
49096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49097
49098# Transform the output of nm in a proper C declaration.
49099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49100
49101# Transform the output of nm in a C name address pair.
49102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49103
49104# Transform the output of nm in a C name address pair when lib prefix is needed.
49105global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49106
49107# The name of the directory that contains temporary libtool files.
49108objdir=$objdir
49109
49110# Shell to use when invoking shell scripts.
49111SHELL=$lt_SHELL
49112
49113# An echo program that does not interpret backslashes.
49114ECHO=$lt_ECHO
49115
49116# Used to examine libraries when file_magic_cmd begins with "file".
49117MAGIC_CMD=$MAGIC_CMD
49118
49119# Must we lock files when doing compilation?
49120need_locks=$lt_need_locks
49121
49122# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49123DSYMUTIL=$lt_DSYMUTIL
49124
49125# Tool to change global to local symbols on Mac OS X.
49126NMEDIT=$lt_NMEDIT
49127
49128# Tool to manipulate fat objects and archives on Mac OS X.
49129LIPO=$lt_LIPO
49130
49131# ldd/readelf like tool for Mach-O binaries on Mac OS X.
49132OTOOL=$lt_OTOOL
49133
49134# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49135OTOOL64=$lt_OTOOL64
49136
49137# Old archive suffix (normally "a").
49138libext=$libext
49139
49140# Shared library suffix (normally ".so").
49141shrext_cmds=$lt_shrext_cmds
49142
49143# The commands to extract the exported symbol list from a shared archive.
49144extract_expsyms_cmds=$lt_extract_expsyms_cmds
49145
49146# Variables whose values should be saved in libtool wrapper scripts and
49147# restored at link time.
49148variables_saved_for_relink=$lt_variables_saved_for_relink
49149
49150# Do we need the "lib" prefix for modules?
49151need_lib_prefix=$need_lib_prefix
49152
49153# Do we need a version for libraries?
49154need_version=$need_version
49155
49156# Library versioning type.
49157version_type=$version_type
49158
49159# Shared library runtime path variable.
49160runpath_var=$runpath_var
49161
49162# Shared library path variable.
49163shlibpath_var=$shlibpath_var
49164
49165# Is shlibpath searched before the hard-coded library search path?
49166shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49167
49168# Format of library name prefix.
49169libname_spec=$lt_libname_spec
49170
49171# List of archive names. First name is the real one, the rest are links.
49172# The last name is the one that the linker finds with -lNAME
49173library_names_spec=$lt_library_names_spec
49174
49175# The coded name of the library, if different from the real name.
49176soname_spec=$lt_soname_spec
49177
49178# Command to use after installation of a shared archive.
49179postinstall_cmds=$lt_postinstall_cmds
49180
49181# Command to use after uninstallation of a shared archive.
49182postuninstall_cmds=$lt_postuninstall_cmds
49183
49184# Commands used to finish a libtool library installation in a directory.
49185finish_cmds=$lt_finish_cmds
49186
49187# As "finish_cmds", except a single script fragment to be evaled but
49188# not shown.
49189finish_eval=$lt_finish_eval
49190
49191# Whether we should hardcode library paths into libraries.
49192hardcode_into_libs=$hardcode_into_libs
49193
49194# Compile-time system search path for libraries.
49195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49196
49197# Run-time system search path for libraries.
49198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49199
49200# Whether dlopen is supported.
49201dlopen_support=$enable_dlopen
49202
49203# Whether dlopen of programs is supported.
49204dlopen_self=$enable_dlopen_self
49205
49206# Whether dlopen of statically linked programs is supported.
49207dlopen_self_static=$enable_dlopen_self_static
49208
49209# Commands to strip libraries.
49210old_striplib=$lt_old_striplib
49211striplib=$lt_striplib
49212
49213
49214# The linker used to build libraries.
49215LD=$lt_LD
49216
49217# Commands used to build an old-style archive.
49218old_archive_cmds=$lt_old_archive_cmds
49219
49220# A language specific compiler.
49221CC=$lt_compiler
49222
49223# Is the compiler the GNU compiler?
49224with_gcc=$GCC
49225
49226# Compiler flag to turn off builtin functions.
49227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49228
49229# How to pass a linker flag through the compiler.
49230wl=$lt_lt_prog_compiler_wl
49231
49232# Additional compiler flags for building library objects.
49233pic_flag=$lt_lt_prog_compiler_pic
49234
49235# Compiler flag to prevent dynamic linking.
49236link_static_flag=$lt_lt_prog_compiler_static
49237
49238# Does compiler simultaneously support -c and -o options?
49239compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49240
49241# Whether or not to add -lc for building shared libraries.
49242build_libtool_need_lc=$archive_cmds_need_lc
49243
49244# Whether or not to disallow shared libs when runtime libs are static.
49245allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49246
49247# Compiler flag to allow reflexive dlopens.
49248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49249
49250# Compiler flag to generate shared objects directly from archives.
49251whole_archive_flag_spec=$lt_whole_archive_flag_spec
49252
49253# Whether the compiler copes with passing no objects directly.
49254compiler_needs_object=$lt_compiler_needs_object
49255
49256# Create an old-style archive from a shared archive.
49257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49258
49259# Create a temporary old-style archive to link instead of a shared archive.
49260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49261
49262# Commands used to build a shared archive.
49263archive_cmds=$lt_archive_cmds
49264archive_expsym_cmds=$lt_archive_expsym_cmds
49265
49266# Commands used to build a loadable module if different from building
49267# a shared archive.
49268module_cmds=$lt_module_cmds
49269module_expsym_cmds=$lt_module_expsym_cmds
49270
49271# Whether we are building with GNU ld or not.
49272with_gnu_ld=$lt_with_gnu_ld
49273
49274# Flag that allows shared libraries with undefined symbols to be built.
49275allow_undefined_flag=$lt_allow_undefined_flag
49276
49277# Flag that enforces no undefined symbols.
49278no_undefined_flag=$lt_no_undefined_flag
49279
49280# Flag to hardcode \$libdir into a binary during linking.
49281# This must work even if \$libdir does not exist
49282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49283
49284# If ld is used when linking, flag to hardcode \$libdir into a binary
49285# during linking. This must work even if \$libdir does not exist.
49286hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49287
49288# Whether we need a single "-rpath" flag with a separated argument.
49289hardcode_libdir_separator=$lt_hardcode_libdir_separator
49290
49291# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49292# DIR into the resulting binary.
49293hardcode_direct=$hardcode_direct
49294
49295# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49296# DIR into the resulting binary and the resulting library dependency is
49297# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49298# library is relocated.
49299hardcode_direct_absolute=$hardcode_direct_absolute
49300
49301# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49302# into the resulting binary.
49303hardcode_minus_L=$hardcode_minus_L
49304
49305# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49306# into the resulting binary.
49307hardcode_shlibpath_var=$hardcode_shlibpath_var
49308
49309# Set to "yes" if building a shared library automatically hardcodes DIR
49310# into the library and all subsequent libraries and executables linked
49311# against it.
49312hardcode_automatic=$hardcode_automatic
49313
49314# Set to yes if linker adds runtime paths of dependent libraries
49315# to runtime path list.
49316inherit_rpath=$inherit_rpath
49317
49318# Whether libtool must link a program against all its dependency libraries.
49319link_all_deplibs=$link_all_deplibs
49320
49321# Fix the shell variable \$srcfile for the compiler.
49322fix_srcfile_path=$lt_fix_srcfile_path
49323
49324# Set to "yes" if exported symbols are required.
49325always_export_symbols=$always_export_symbols
49326
49327# The commands to list exported symbols.
49328export_symbols_cmds=$lt_export_symbols_cmds
49329
49330# Symbols that should not be listed in the preloaded symbols.
49331exclude_expsyms=$lt_exclude_expsyms
49332
49333# Symbols that must always be exported.
49334include_expsyms=$lt_include_expsyms
49335
49336# Commands necessary for linking programs (against libraries) with templates.
49337prelink_cmds=$lt_prelink_cmds
49338
49339# Specify filename containing input files.
49340file_list_spec=$lt_file_list_spec
49341
49342# How to hardcode a shared library path into an executable.
49343hardcode_action=$hardcode_action
49344
49345# The directories searched by this compiler when creating a shared library.
49346compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49347
49348# Dependencies to place before and after the objects being linked to
49349# create a shared library.
49350predep_objects=$lt_predep_objects
49351postdep_objects=$lt_postdep_objects
49352predeps=$lt_predeps
49353postdeps=$lt_postdeps
49354
49355# The library search path used internally by the compiler when linking
49356# a shared library.
49357compiler_lib_search_path=$lt_compiler_lib_search_path
49358
49359# ### END LIBTOOL CONFIG
49360
49361_LT_EOF
49362
49363 case $host_os in
49364 aix3*)
49365 cat <<\_LT_EOF >> "$cfgfile"
49366# AIX sometimes has problems with the GCC collect2 program. For some
49367# reason, if we set the COLLECT_NAMES environment variable, the problems
49368# vanish in a puff of smoke.
49369if test "X${COLLECT_NAMES+set}" != Xset; then
49370 COLLECT_NAMES=
49371 export COLLECT_NAMES
49372fi
49373_LT_EOF
49374 ;;
49375 esac
49376
49377
49378ltmain="$ac_aux_dir/ltmain.sh"
49379
49380
49381 # We use sed instead of cat because bash on DJGPP gets confused if
49382 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49383 # text mode, it properly converts lines to CR/LF. This bash problem
49384 # is reportedly fixed, but why not run on old versions too?
49385 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49386 || (rm -f "$cfgfile"; exit 1)
49387
49388 case $xsi_shell in
49389 yes)
49390 cat << \_LT_EOF >> "$cfgfile"
49391
49392# func_dirname file append nondir_replacement
49393# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49394# otherwise set result to NONDIR_REPLACEMENT.
49395func_dirname ()
49396{
49397 case ${1} in
49398 */*) func_dirname_result="${1%/*}${2}" ;;
49399 * ) func_dirname_result="${3}" ;;
49400 esac
49401}
49402
49403# func_basename file
49404func_basename ()
49405{
49406 func_basename_result="${1##*/}"
49407}
49408
49409# func_dirname_and_basename file append nondir_replacement
49410# perform func_basename and func_dirname in a single function
49411# call:
49412# dirname: Compute the dirname of FILE. If nonempty,
49413# add APPEND to the result, otherwise set result
49414# to NONDIR_REPLACEMENT.
49415# value returned in "$func_dirname_result"
49416# basename: Compute filename of FILE.
49417# value retuned in "$func_basename_result"
49418# Implementation must be kept synchronized with func_dirname
49419# and func_basename. For efficiency, we do not delegate to
49420# those functions but instead duplicate the functionality here.
49421func_dirname_and_basename ()
49422{
49423 case ${1} in
49424 */*) func_dirname_result="${1%/*}${2}" ;;
49425 * ) func_dirname_result="${3}" ;;
49426 esac
49427 func_basename_result="${1##*/}"
49428}
49429
49430# func_stripname prefix suffix name
49431# strip PREFIX and SUFFIX off of NAME.
49432# PREFIX and SUFFIX must not contain globbing or regex special
49433# characters, hashes, percent signs, but SUFFIX may contain a leading
49434# dot (in which case that matches only a dot).
49435func_stripname ()
49436{
49437 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49438 # positional parameters, so assign one to ordinary parameter first.
49439 func_stripname_result=${3}
49440 func_stripname_result=${func_stripname_result#"${1}"}
49441 func_stripname_result=${func_stripname_result%"${2}"}
49442}
49443
49444# func_opt_split
49445func_opt_split ()
49446{
49447 func_opt_split_opt=${1%%=*}
49448 func_opt_split_arg=${1#*=}
49449}
49450
49451# func_lo2o object
49452func_lo2o ()
49453{
49454 case ${1} in
49455 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49456 *) func_lo2o_result=${1} ;;
49457 esac
49458}
49459
49460# func_xform libobj-or-source
49461func_xform ()
49462{
49463 func_xform_result=${1%.*}.lo
49464}
49465
49466# func_arith arithmetic-term...
49467func_arith ()
49468{
49469 func_arith_result=$(( $* ))
49470}
49471
49472# func_len string
49473# STRING may not start with a hyphen.
49474func_len ()
49475{
49476 func_len_result=${#1}
49477}
49478
49479_LT_EOF
49480 ;;
49481 *) # Bourne compatible functions.
49482 cat << \_LT_EOF >> "$cfgfile"
49483
49484# func_dirname file append nondir_replacement
49485# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49486# otherwise set result to NONDIR_REPLACEMENT.
49487func_dirname ()
49488{
49489 # Extract subdirectory from the argument.
49490 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49491 if test "X$func_dirname_result" = "X${1}"; then
49492 func_dirname_result="${3}"
49493 else
49494 func_dirname_result="$func_dirname_result${2}"
49495 fi
49496}
49497
49498# func_basename file
49499func_basename ()
49500{
49501 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49502}
49503
49504
49505# func_stripname prefix suffix name
49506# strip PREFIX and SUFFIX off of NAME.
49507# PREFIX and SUFFIX must not contain globbing or regex special
49508# characters, hashes, percent signs, but SUFFIX may contain a leading
49509# dot (in which case that matches only a dot).
49510# func_strip_suffix prefix name
49511func_stripname ()
49512{
49513 case ${2} in
49514 .*) func_stripname_result=`$ECHO "X${3}" \
49515 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49516 *) func_stripname_result=`$ECHO "X${3}" \
49517 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49518 esac
49519}
49520
49521# sed scripts:
49522my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49523my_sed_long_arg='1s/^-[^=]*=//'
49524
49525# func_opt_split
49526func_opt_split ()
49527{
49528 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49529 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49530}
49531
49532# func_lo2o object
49533func_lo2o ()
49534{
49535 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49536}
49537
49538# func_xform libobj-or-source
49539func_xform ()
49540{
49541 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49542}
49543
49544# func_arith arithmetic-term...
49545func_arith ()
49546{
49547 func_arith_result=`expr "$@"`
49548}
49549
49550# func_len string
49551# STRING may not start with a hyphen.
49552func_len ()
49553{
49554 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
49555}
49556
49557_LT_EOF
49558esac
49559
49560case $lt_shell_append in
49561 yes)
49562 cat << \_LT_EOF >> "$cfgfile"
49563
49564# func_append var value
49565# Append VALUE to the end of shell variable VAR.
49566func_append ()
49567{
49568 eval "$1+=\$2"
49569}
49570_LT_EOF
49571 ;;
49572 *)
49573 cat << \_LT_EOF >> "$cfgfile"
49574
49575# func_append var value
49576# Append VALUE to the end of shell variable VAR.
49577func_append ()
49578{
49579 eval "$1=\$$1\$2"
49580}
49581
49582_LT_EOF
49583 ;;
49584 esac
49585
49586
49587 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
49588 || (rm -f "$cfgfile"; exit 1)
49589
49590 mv -f "$cfgfile" "$ofile" ||
49591 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49592 chmod +x "$ofile"
49593
49594
49595 cat <<_LT_EOF >> "$ofile"
49596
49597# ### BEGIN LIBTOOL TAG CONFIG: CXX
49598
49599# The linker used to build libraries.
49600LD=$lt_LD_CXX
49601
49602# Commands used to build an old-style archive.
49603old_archive_cmds=$lt_old_archive_cmds_CXX
49604
49605# A language specific compiler.
49606CC=$lt_compiler_CXX
49607
49608# Is the compiler the GNU compiler?
49609with_gcc=$GCC_CXX
49610
49611# Compiler flag to turn off builtin functions.
49612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
49613
49614# How to pass a linker flag through the compiler.
49615wl=$lt_lt_prog_compiler_wl_CXX
49616
49617# Additional compiler flags for building library objects.
49618pic_flag=$lt_lt_prog_compiler_pic_CXX
49619
49620# Compiler flag to prevent dynamic linking.
49621link_static_flag=$lt_lt_prog_compiler_static_CXX
49622
49623# Does compiler simultaneously support -c and -o options?
49624compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
49625
49626# Whether or not to add -lc for building shared libraries.
49627build_libtool_need_lc=$archive_cmds_need_lc_CXX
49628
49629# Whether or not to disallow shared libs when runtime libs are static.
49630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
49631
49632# Compiler flag to allow reflexive dlopens.
49633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
49634
49635# Compiler flag to generate shared objects directly from archives.
49636whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
49637
49638# Whether the compiler copes with passing no objects directly.
49639compiler_needs_object=$lt_compiler_needs_object_CXX
49640
49641# Create an old-style archive from a shared archive.
49642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
49643
49644# Create a temporary old-style archive to link instead of a shared archive.
49645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
49646
49647# Commands used to build a shared archive.
49648archive_cmds=$lt_archive_cmds_CXX
49649archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
49650
49651# Commands used to build a loadable module if different from building
49652# a shared archive.
49653module_cmds=$lt_module_cmds_CXX
49654module_expsym_cmds=$lt_module_expsym_cmds_CXX
49655
49656# Whether we are building with GNU ld or not.
49657with_gnu_ld=$lt_with_gnu_ld_CXX
49658
49659# Flag that allows shared libraries with undefined symbols to be built.
49660allow_undefined_flag=$lt_allow_undefined_flag_CXX
49661
49662# Flag that enforces no undefined symbols.
49663no_undefined_flag=$lt_no_undefined_flag_CXX
49664
49665# Flag to hardcode \$libdir into a binary during linking.
49666# This must work even if \$libdir does not exist
49667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
49668
49669# If ld is used when linking, flag to hardcode \$libdir into a binary
49670# during linking. This must work even if \$libdir does not exist.
49671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
49672
49673# Whether we need a single "-rpath" flag with a separated argument.
49674hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
49675
49676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49677# DIR into the resulting binary.
49678hardcode_direct=$hardcode_direct_CXX
49679
49680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49681# DIR into the resulting binary and the resulting library dependency is
49682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49683# library is relocated.
49684hardcode_direct_absolute=$hardcode_direct_absolute_CXX
49685
49686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49687# into the resulting binary.
49688hardcode_minus_L=$hardcode_minus_L_CXX
49689
49690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49691# into the resulting binary.
49692hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
49693
49694# Set to "yes" if building a shared library automatically hardcodes DIR
49695# into the library and all subsequent libraries and executables linked
49696# against it.
49697hardcode_automatic=$hardcode_automatic_CXX
49698
49699# Set to yes if linker adds runtime paths of dependent libraries
49700# to runtime path list.
49701inherit_rpath=$inherit_rpath_CXX
49702
49703# Whether libtool must link a program against all its dependency libraries.
49704link_all_deplibs=$link_all_deplibs_CXX
49705
49706# Fix the shell variable \$srcfile for the compiler.
49707fix_srcfile_path=$lt_fix_srcfile_path_CXX
49708
49709# Set to "yes" if exported symbols are required.
49710always_export_symbols=$always_export_symbols_CXX
49711
49712# The commands to list exported symbols.
49713export_symbols_cmds=$lt_export_symbols_cmds_CXX
49714
49715# Symbols that should not be listed in the preloaded symbols.
49716exclude_expsyms=$lt_exclude_expsyms_CXX
49717
49718# Symbols that must always be exported.
49719include_expsyms=$lt_include_expsyms_CXX
49720
49721# Commands necessary for linking programs (against libraries) with templates.
49722prelink_cmds=$lt_prelink_cmds_CXX
49723
49724# Specify filename containing input files.
49725file_list_spec=$lt_file_list_spec_CXX
49726
49727# How to hardcode a shared library path into an executable.
49728hardcode_action=$hardcode_action_CXX
49729
49730# The directories searched by this compiler when creating a shared library.
49731compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
49732
49733# Dependencies to place before and after the objects being linked to
49734# create a shared library.
49735predep_objects=$lt_predep_objects_CXX
49736postdep_objects=$lt_postdep_objects_CXX
49737predeps=$lt_predeps_CXX
49738postdeps=$lt_postdeps_CXX
49739
49740# The library search path used internally by the compiler when linking
49741# a shared library.
49742compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
49743
49744# ### END LIBTOOL TAG CONFIG: CXX
49745_LT_EOF
49746
49747 ;;
49748 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
49749 "Magick-config.in":C) chmod +x magick/Magick-config ;;
49750 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
49751 "Wand-config.in":C) chmod +x wand/Wand-config ;;
49752 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
49753 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
49754
49755 esac
49756done # for ac_tag
49757
49758
49759{ (exit 0); exit 0; }
49760_ACEOF
49761chmod +x $CONFIG_STATUS
49762ac_clean_files=$ac_clean_files_save
49763
49764test $ac_write_fail = 0 ||
49765 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49766$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49767 { (exit 1); exit 1; }; }
49768
49769
49770# configure is writing to config.log, and then calls config.status.
49771# config.status does its own redirection, appending to config.log.
49772# Unfortunately, on DOS this fails, as config.log is still kept open
49773# by configure, so config.status won't be able to write to it; its
49774# output is simply discarded. So we exec the FD to /dev/null,
49775# effectively closing config.log, so it can be properly (re)opened and
49776# appended to by config.status. When coming back to configure, we
49777# need to make the FD available again.
49778if test "$no_create" != yes; then
49779 ac_cs_success=:
49780 ac_config_status_args=
49781 test "$silent" = yes &&
49782 ac_config_status_args="$ac_config_status_args --quiet"
49783 exec 5>/dev/null
49784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49785 exec 5>>config.log
49786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49787 # would make configure fail if this is the last instruction.
49788 $ac_cs_success || { (exit 1); exit 1; }
49789fi
49790if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49791 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49792$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49793fi
49794
49795
49796rm -f magick-version
49797
49798result_ghostscript_font_dir='none'
49799if test "${ghostscript_font_dir}x" != 'x'; then
49800 result_ghostscript_font_dir=$ghostscript_font_dir
49801fi
49802
49803result_windows_font_dir='none'
49804if test "${windows_font_dir}x" != 'x'; then
49805 result_windows_font_dir=${windows_font_dir}
49806fi
49807
49808{ $as_echo "$as_me:$LINENO: result:
49809ImageMagick is configured as follows. Please verify that this configuration
49810matches your expectations.
49811
49812Host system type: $host
49813Build system type: $build
49814
49815 Option Value
49816-------------------------------------------------------------------------------
49817Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49818Static libraries --enable-static=$enable_static $libtool_build_static_libs
49819Module support --with-modules=$with_modules $with_modules
49820GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49821Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49822High Dynamic Range Imagery
49823 --enable-hdri=$enable_hdri $enable_hdri
49824
49825Delegate Configuration:
49826BZLIB --with-bzlib=$with_bzlib $have_bzlib
49827Autotrace --with-autotrace=$with_autotrace $have_autotrace
49828DJVU --with-djvu=$with_djvu $have_djvu
49829DPS --with-dps=$with_dps $have_dps
49830FFTW --with-fftw=$with_fftw $have_fftw
49831FlashPIX --with-fpx=$with_fpx $have_fpx
49832FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49833FreeType --with-freetype=$with_freetype $have_freetype
49834GhostPCL None $PCLDelegate ($PCLVersion)
49835GhostXPS None $XPSDelegate ($XPSVersion)
49836Ghostscript None $PSDelegate ($GSVersion)
49837Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49838Ghostscript lib --with-gslib=$with_gslib $have_gslib
49839Graphviz --with-gvc=$with_gvc $have_gvc
49840JBIG --with-jbig=$with_jbig $have_jbig
49841JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49842JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49843LCMS --with-lcms=$with_lcms $have_lcms
49844LQR --with-lqr=$with_lqr $have_lqr
49845Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49846OpenEXR --with-openexr=$with_openexr $have_openexr
49847PERL --with-perl=$with_perl $have_perl
49848PNG --with-png=$with_png $have_png
49849RSVG --with-rsvg=$with_rsvg $have_rsvg
49850TIFF --with-tiff=$with_tiff $have_tiff
49851Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49852WMF --with-wmf=$with_wmf $have_wmf
49853X11 --with-x=$with_x $have_x
49854XML --with-xml=$with_xml $have_xml
49855ZLIB --with-zlib=$with_zlib $have_zlib
49856
49857X11 Configuration:
49858 X_CFLAGS = $X_CFLAGS
49859 X_PRE_LIBS = $X_PRE_LIBS
49860 X_LIBS = $X_LIBS
49861 X_EXTRA_LIBS = $X_EXTRA_LIBS
49862
49863Options used to compile and link:
49864 PREFIX = $PREFIX_DIR
49865 EXEC-PREFIX = $EXEC_PREFIX_DIR
49866 VERSION = $PACKAGE_VERSION
49867 CC = $CC
49868 CFLAGS = $CFLAGS
49869 MAGICK_CFLAGS = $MAGICK_CFLAGS
49870 CPPFLAGS = $MAGICK_CPPFLAGS
49871 PCFLAGS = $MAGICK_PCFLAGS
49872 DEFS = $DEFS
49873 LDFLAGS = $LDFLAGS
49874 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49875 LIBS = $MAGICK_LIBS
49876 CXX = $CXX
49877 CXXFLAGS = $CXXFLAGS
49878" >&5
49879$as_echo "
49880ImageMagick is configured as follows. Please verify that this configuration
49881matches your expectations.
49882
49883Host system type: $host
49884Build system type: $build
49885
49886 Option Value
49887-------------------------------------------------------------------------------
49888Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49889Static libraries --enable-static=$enable_static $libtool_build_static_libs
49890Module support --with-modules=$with_modules $with_modules
49891GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49892Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49893High Dynamic Range Imagery
49894 --enable-hdri=$enable_hdri $enable_hdri
49895
49896Delegate Configuration:
49897BZLIB --with-bzlib=$with_bzlib $have_bzlib
49898Autotrace --with-autotrace=$with_autotrace $have_autotrace
49899DJVU --with-djvu=$with_djvu $have_djvu
49900DPS --with-dps=$with_dps $have_dps
49901FFTW --with-fftw=$with_fftw $have_fftw
49902FlashPIX --with-fpx=$with_fpx $have_fpx
49903FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49904FreeType --with-freetype=$with_freetype $have_freetype
49905GhostPCL None $PCLDelegate ($PCLVersion)
49906GhostXPS None $XPSDelegate ($XPSVersion)
49907Ghostscript None $PSDelegate ($GSVersion)
49908Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49909Ghostscript lib --with-gslib=$with_gslib $have_gslib
49910Graphviz --with-gvc=$with_gvc $have_gvc
49911JBIG --with-jbig=$with_jbig $have_jbig
49912JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49913JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49914LCMS --with-lcms=$with_lcms $have_lcms
49915LQR --with-lqr=$with_lqr $have_lqr
49916Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49917OpenEXR --with-openexr=$with_openexr $have_openexr
49918PERL --with-perl=$with_perl $have_perl
49919PNG --with-png=$with_png $have_png
49920RSVG --with-rsvg=$with_rsvg $have_rsvg
49921TIFF --with-tiff=$with_tiff $have_tiff
49922Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49923WMF --with-wmf=$with_wmf $have_wmf
49924X11 --with-x=$with_x $have_x
49925XML --with-xml=$with_xml $have_xml
49926ZLIB --with-zlib=$with_zlib $have_zlib
49927
49928X11 Configuration:
49929 X_CFLAGS = $X_CFLAGS
49930 X_PRE_LIBS = $X_PRE_LIBS
49931 X_LIBS = $X_LIBS
49932 X_EXTRA_LIBS = $X_EXTRA_LIBS
49933
49934Options used to compile and link:
49935 PREFIX = $PREFIX_DIR
49936 EXEC-PREFIX = $EXEC_PREFIX_DIR
49937 VERSION = $PACKAGE_VERSION
49938 CC = $CC
49939 CFLAGS = $CFLAGS
49940 MAGICK_CFLAGS = $MAGICK_CFLAGS
49941 CPPFLAGS = $MAGICK_CPPFLAGS
49942 PCFLAGS = $MAGICK_PCFLAGS
49943 DEFS = $DEFS
49944 LDFLAGS = $LDFLAGS
49945 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49946 LIBS = $MAGICK_LIBS
49947 CXX = $CXX
49948 CXXFLAGS = $CXXFLAGS
49949" >&6; }