blob: 6a81949b4adc13f617995667276c120eada277b8 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristybf083432009-09-13 04:31:08 +00003# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.6.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725lt_ltdl_dir='ltdl'
726
727lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
728
729exec 7<&0 </dev/null 6>&1
730
731# Name of the host.
732# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733# so uname gets run too.
734ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
736#
737# Initializations.
738#
739ac_default_prefix=/usr/local
740ac_clean_files=
741ac_config_libobj_dir=.
742LIBOBJS=
743cross_compiling=no
744subdirs=
745MFLAGS=
746MAKEFLAGS=
747SHELL=${CONFIG_SHELL-/bin/sh}
748
749# Identity of this package.
750PACKAGE_NAME='ImageMagick'
751PACKAGE_TARNAME='ImageMagick'
cristybf083432009-09-13 04:31:08 +0000752PACKAGE_VERSION='6.5.6'
753PACKAGE_STRING='ImageMagick 6.5.6'
cristy3ed852e2009-09-05 21:47:34 +0000754PACKAGE_BUGREPORT='http://www.imagemagick.org'
755
756ac_unique_file="magick/MagickCore.h"
757ac_config_libobj_dir=ltdl
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772# include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777# include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='ltdl_LTLIBOBJS
795ltdl_LIBOBJS
796am__EXEEXT_FALSE
797am__EXEEXT_TRUE
798LTLIBOBJS
799MAGICK_LIBS
800MAGICK_LDFLAGS
801MAGICK_PCFLAGS
802MAGICK_CPPFLAGS
803MAGICK_CXXFLAGS
804MAGICK_CFLAGS
805MAGICK_DEP_LIBS
806MAGICK_LTDLDEPS
807MAGICK_LIBLTDL
808OSX_GCOV_LDFLAG
809DELEGATES
810MAGICKCORE_PATH
811PERL_SUPPORTS_DESTDIR
812WITH_PERL_DYNAMIC_FALSE
813WITH_PERL_DYNAMIC_TRUE
814WITH_PERL_STATIC_FALSE
815WITH_PERL_STATIC_TRUE
816WITH_PERL_FALSE
817WITH_PERL_TRUE
818GSVersion
819GSPSDevice
820GSPDFDevice
821GSMonoDevice
822GSEPSDevice
823GSColorDevice
824GSCMYKDevice
825GSAlphaDevice
826XPSVersion
827XPSCMYKDevice
828XPSColorDevice
829XPSMonoDevice
830PCLVersion
831PCLCMYKDevice
832PCLColorDevice
833PCLMonoDevice
834ZIP_DELEGATE_FALSE
835ZIP_DELEGATE_TRUE
836ZIP
837P7ZIP_DELEGATE_FALSE
838P7ZIP_DELEGATE_TRUE
839P7ZIP
840RPM_DELEGATE_FALSE
841RPM_DELEGATE_TRUE
842RPM
843PERL
844TAR
845ShowImageDelegate
846type_include_files
847ghostscript_font_dir
848windows_font_dir
849PrintDelegate
850ZipDelegate
851XPSDelegate
852WWWDecodeDelegate
853WMFDecodeDelegate
854TXTDelegate
855SCANDecodeDelegate
856RMDelegate
857RLEEncodeDelegate
858PSDelegate
859POVDelegate
860PGPDecodeDelegate
861PCLDelegate
862MVDelegate
863MPEGEncodeDelegate
864MPEGDecodeDelegate
865MANDelegate
866LaunchDelegate
867LZWEncodeDelegate
868LZWDecodeDelegate
869LPRDelegate
870LPDelegate
871ILBMEncodeDelegate
872ILBMDecodeDelegate
873HTMLDecodeDelegate
874HPGLDecodeDelegate
875HDRDecodeDelegate
876GnuplotDecodeDelegate
877MogrifyDelegate
878DisplayDelegate
879ConvertDelegate
880FIGDecodeDelegate
881EditorDelegate
882EchoDelegate
883DVIDecodeDelegate
884GVCDecodeDelegate
885DNGDecodeDelegate
886CatDelegate
887CGMDecodeDelegate
888BrowseDelegate
889BZIPDelegate
890BlenderDecodeDelegate
891AVIDecodeDelegate
892AutotraceDecodeDelegate
893SHARE_CONFIGURE_PATH
894SHARE_PATH
895DOCUMENTATION_PATH
896FILTER_PATH
897CODER_PATH
898CONFIGURE_PATH
899LIBRARY_PATH
900EXECUTABLE_PATH
901PERLMAINCC
902XML_LIBS
903XML_DELEGATE_FALSE
904XML_DELEGATE_TRUE
905xml2_config
906WMF_LIBS_DEPS
907WMF_LIBS
908WMF_DELEGATE_FALSE
909WMF_DELEGATE_TRUE
910TIFF_LIBS
911TIFF_DELEGATE_FALSE
912TIFF_DELEGATE_TRUE
913CAIRO_DELEGATE_FALSE
914CAIRO_DELEGATE_TRUE
915RSVG_DELEGATE_FALSE
916RSVG_DELEGATE_TRUE
917CAIRO_SVG_LIBS
918CAIRO_SVG_CFLAGS
919RSVG_LIBS
920RSVG_CFLAGS
921PNG_LIBS
922PNG_DELEGATE_FALSE
923PNG_DELEGATE_TRUE
924OPENEXR_DELEGATE_FALSE
925OPENEXR_DELEGATE_TRUE
926OPENEXR_LIBS
927OPENEXR_CFLAGS
928LQR_DELEGATE_FALSE
929LQR_DELEGATE_TRUE
930LQR_LIBS
931LQR_CFLAGS
932LCMS_LIBS
933LCMS_DELEGATE_FALSE
934LCMS_DELEGATE_TRUE
935JP2_LIBS
936JP2_DELEGATE_FALSE
937JP2_DELEGATE_TRUE
938JPEG_LIBS
939JPEG_DELEGATE_FALSE
940JPEG_DELEGATE_TRUE
941JBIG_LIBS
942JBIG_DELEGATE_FALSE
943JBIG_DELEGATE_TRUE
944GVC_DELEGATE_FALSE
945GVC_DELEGATE_TRUE
946GVC_LIBS
947GVC_CFLAGS
948GS_LIBS
949GS_DELEGATE_FALSE
950GS_DELEGATE_TRUE
951FREETYPE_LIBS
952FREETYPE_DELEGATE_FALSE
953FREETYPE_DELEGATE_TRUE
954freetype_config
955FONTCONFIG_DELEGATE_FALSE
956FONTCONFIG_DELEGATE_TRUE
957FONTCONFIG_LIBS
958FONTCONFIG_CFLAGS
959FPX_LIBS
960FPX_DELEGATE_FALSE
961FPX_DELEGATE_TRUE
962FFTW_LIBS
963FFTW_DELEGATE_FALSE
964FFTW_DELEGATE_TRUE
965DJVU_LIBS
966DJVU_DELEGATE_FALSE
967DJVU_DELEGATE_TRUE
968DPS_LIBS
969DPS_DELEGATE_FALSE
970DPS_DELEGATE_TRUE
971AUTOTRACE_DELEGATE_FALSE
972AUTOTRACE_DELEGATE_TRUE
973AUTOTRACE_LIBS
974AUTOTRACE_CFLAGS
975LIB_DL
976ZLIB_LIBS
977ZLIB_DELEGATE_FALSE
978ZLIB_DELEGATE_TRUE
979XEXT_LIBS
980X11_LIBS
981X11_DELEGATE_FALSE
982X11_DELEGATE_TRUE
983X_EXTRA_LIBS
984X_LIBS
985X_PRE_LIBS
986X_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000987BZLIB_LIBS
988BZLIB_DELEGATE_FALSE
989BZLIB_DELEGATE_TRUE
990MATH_LIBS
991CCMALLOCDelegate
992UMEM_LIBS
993HasUMEM_FALSE
994HasUMEM_TRUE
995THREAD_LIBS
996GOMP_LIBS
997WITH_MAGICK_PLUS_PLUS_FALSE
998WITH_MAGICK_PLUS_PLUS_TRUE
999OPENMP_CXXFLAGS
1000POW_LIB
1001LIBOBJS
1002UINTPTR_T
1003UINTMAX_T
1004UINT64_T
1005INT64_T
1006UINT32_T
1007INT32_T
1008UINT16_T
1009INT16_T
1010UINT8_T
1011INT8_T
1012LIBRARY_EXTRA_CPPFLAGS
1013MODULE_EXTRA_CPPFLAGS
1014LIBSTDCLDFLAGS
1015PERL_MAKE_OPTIONS
1016QUANTUM_DEPTH
1017MAINT
1018MAINTAINER_MODE_FALSE
1019MAINTAINER_MODE_TRUE
1020MAGICK_HDRI
1021DLLDFLAGS
1022WITH_LTDL_FALSE
1023WITH_LTDL_TRUE
1024WITH_MODULES_FALSE
1025WITH_MODULES_TRUE
1026LTCXXLIBOPTS
1027LTDLOPEN
1028LT_CONFIG_H
1029CONVENIENCE_LTDL_FALSE
1030CONVENIENCE_LTDL_TRUE
1031INSTALL_LTDL_FALSE
1032INSTALL_LTDL_TRUE
1033ARGZ_H
1034sys_symbol_underscore
1035LIBADD_DL
1036LT_DLPREOPEN
1037LIBADD_DLD_LINK
1038LIBADD_SHL_LOAD
1039LIBADD_DLOPEN
1040LT_DLLOADERS
1041INCLTDL
1042LTDLINCL
1043LTDLDEPS
1044LIBLTDL
1045LIBTOOL_DEPS
1046CXXCPP
1047OTOOL64
1048OTOOL
1049LIPO
1050NMEDIT
1051DSYMUTIL
1052lt_ECHO
1053AR
1054NM
1055ac_ct_DUMPBIN
1056DUMPBIN
1057LIBTOOL
1058OBJDUMP
1059DLLTOOL
1060AS
1061LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001062CL_LIBS
1063CL_CFLAGS
1064XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001065OPENMP_CFLAGS
1066PTHREAD_CFLAGS
1067PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001068PTHREAD_CC
1069acx_pthread_config
1070WinPathScript
1071USING_CL_FALSE
1072USING_CL_TRUE
1073CYGWIN_BUILD_FALSE
1074CYGWIN_BUILD_TRUE
1075WIN32_NATIVE_BUILD_FALSE
1076WIN32_NATIVE_BUILD_TRUE
1077WINGDI32_DELEGATE_FALSE
1078WINGDI32_DELEGATE_TRUE
1079GDI32_LIBS
1080PKG_CONFIG
1081LN_S
1082am__fastdepCXX_FALSE
1083am__fastdepCXX_TRUE
1084CXXDEPMODE
1085ac_ct_CXX
1086CXXFLAGS
1087CXX
1088RANLIB
1089LD
1090FGREP
1091EGREP
1092GREP
1093SED
1094CPP
1095am__fastdepCC_FALSE
1096am__fastdepCC_TRUE
1097CCDEPMODE
1098AMDEPBACKSLASH
1099AMDEP_FALSE
1100AMDEP_TRUE
1101am__quote
1102am__include
1103DEPDIR
1104OBJEXT
1105EXEEXT
1106ac_ct_CC
1107CPPFLAGS
1108LDFLAGS
1109CFLAGS
1110CC
1111DIRSEP
1112MAGICK_FILTER_MODULE_PATH
1113MAGICK_CONFIGURE_BUILD_PATH
1114MAGICK_CONFIGURE_SRC_PATH
1115MAGICK_CODER_MODULE_PATH
1116MAN_DIR
1117INFO_DIR
1118PERSISTINCLUDE_DIR
1119INCLUDE_DIR
1120LIB_DIR
1121LOCALSTATE_DIR
1122SHAREDSTATE_DIR
1123SYSCONF_DIR
1124DATA_DIR
1125LIBEXEC_DIR
1126SBIN_DIR
1127BIN_DIR
1128EXEC_PREFIX_DIR
1129PREFIX_DIR
1130CONFIG_STATUS_DEPENDENCIES
1131MAGICK_LIB_VERSION_NUMBER
1132MAGICK_LIB_VERSION_TEXT
1133MAGICK_LIB_VERSION
1134AM_BACKSLASH
1135AM_DEFAULT_VERBOSITY
1136am__untar
1137am__tar
1138AMTAR
1139am__leading_dot
1140SET_MAKE
1141AWK
1142mkdir_p
1143MKDIR_P
1144INSTALL_STRIP_PROGRAM
1145STRIP
1146install_sh
1147MAKEINFO
1148AUTOHEADER
1149AUTOMAKE
1150AUTOCONF
1151ACLOCAL
1152VERSION
1153PACKAGE
1154CYGPATH_W
1155am__isrc
1156INSTALL_DATA
1157INSTALL_SCRIPT
1158INSTALL_PROGRAM
1159PACKAGE_LIB_SUBVERSION
1160PACKAGE_RELEASE_DATE
1161PACKAGE_LIB_VERSION_NUMBER
1162PACKAGE_LIB_VERSION
1163PACKAGE_CHANGE_DATE
1164PACKAGE_RELEASE
1165MAGICK_LIBRARY_AGE
1166MAGICK_LIBRARY_REVISION
1167MAGICK_LIBRARY_CURRENT
1168target_os
1169target_vendor
1170target_cpu
1171target
1172host_os
1173host_vendor
1174host_cpu
1175host
1176build_os
1177build_vendor
1178build_cpu
1179build
1180CONFIGURE_ARGS
1181DISTCHECK_CONFIG_FLAGS
1182target_alias
1183host_alias
1184build_alias
1185LIBS
1186ECHO_T
1187ECHO_N
1188ECHO_C
1189DEFS
1190mandir
1191localedir
1192libdir
1193psdir
1194pdfdir
1195dvidir
1196htmldir
1197infodir
1198docdir
1199oldincludedir
1200includedir
1201localstatedir
1202sharedstatedir
1203sysconfdir
1204datadir
1205datarootdir
1206libexecdir
1207sbindir
1208bindir
1209program_transform_name
1210prefix
1211exec_prefix
1212PACKAGE_BUGREPORT
1213PACKAGE_STRING
1214PACKAGE_VERSION
1215PACKAGE_TARNAME
1216PACKAGE_NAME
1217PATH_SEPARATOR
1218SHELL'
1219ac_subst_files=''
1220ac_user_opts='
1221enable_option_checking
1222enable_silent_rules
1223enable_dependency_tracking
1224with_gnu_ld
1225with_maximum_compile_warnings
1226with_dmalloc
1227enable_bounds_checking
1228enable_osx_universal_binary
1229with_threads
1230enable_openmp
cristy736173a2009-09-20 21:18:22 +00001231with_x
cristy3ed852e2009-09-05 21:47:34 +00001232enable_largefile
1233enable_shared
1234enable_static
1235with_pic
1236enable_fast_install
1237enable_libtool_lock
1238with_included_ltdl
1239with_ltdl_include
1240with_ltdl_lib
1241enable_ltdl_install
1242with_modules
1243enable_delegate_build
1244enable_deprecated
1245enable_installed
1246enable_cipher
1247enable_embeddable
1248enable_hdri
1249enable_libtool_verbose
1250enable_assert
1251enable_maintainer_mode
1252enable_ccmalloc
1253enable_efence
1254enable_prof
1255enable_gprof
1256enable_gcov
1257with_method_prefix
1258with_quantum_depth
1259with_cache
1260with_frozenpaths
1261with_magick_plus_plus
1262with_perl
1263with_perl_options
1264with_umem
1265with_libstdc
1266with_bzlib
cristy3ed852e2009-09-05 21:47:34 +00001267with_zlib
1268with_autotrace
1269with_dps
1270with_djvu
1271with_fftw
1272with_fpx
1273with_fontconfig
1274with_freetype
1275with_gslib
1276with_fontpath
1277with_gs_font_dir
1278with_gvc
1279with_jbig
1280with_jpeg
1281with_jp2
1282with_lcms
1283with_lqr
1284with_openexr
1285with_png
1286with_rsvg
1287with_tiff
1288with_windows_font_dir
1289with_wmf
1290with_xml
1291'
1292 ac_precious_vars='build_alias
1293host_alias
1294target_alias
1295CC
1296CFLAGS
1297LDFLAGS
1298LIBS
1299CPPFLAGS
1300CPP
1301CXX
1302CXXFLAGS
1303CCC
1304PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +00001305XMKMF
cristy736173a2009-09-20 21:18:22 +00001306CXXCPP
cristy3ed852e2009-09-05 21:47:34 +00001307AUTOTRACE_CFLAGS
1308AUTOTRACE_LIBS
1309FONTCONFIG_CFLAGS
1310FONTCONFIG_LIBS
1311GVC_CFLAGS
1312GVC_LIBS
1313LQR_CFLAGS
1314LQR_LIBS
1315OPENEXR_CFLAGS
1316OPENEXR_LIBS
1317RSVG_CFLAGS
1318RSVG_LIBS
1319CAIRO_SVG_CFLAGS
1320CAIRO_SVG_LIBS'
1321
1322
1323# Initialize some variables set by options.
1324ac_init_help=
1325ac_init_version=false
1326ac_unrecognized_opts=
1327ac_unrecognized_sep=
1328# The variables have the same names as the options, with
1329# dashes changed to underlines.
1330cache_file=/dev/null
1331exec_prefix=NONE
1332no_create=
1333no_recursion=
1334prefix=NONE
1335program_prefix=NONE
1336program_suffix=NONE
1337program_transform_name=s,x,x,
1338silent=
1339site=
1340srcdir=
1341verbose=
1342x_includes=NONE
1343x_libraries=NONE
1344
1345# Installation directory options.
1346# These are left unexpanded so users can "make install exec_prefix=/foo"
1347# and all the variables that are supposed to be based on exec_prefix
1348# by default will actually change.
1349# Use braces instead of parens because sh, perl, etc. also accept them.
1350# (The list follows the same order as the GNU Coding Standards.)
1351bindir='${exec_prefix}/bin'
1352sbindir='${exec_prefix}/sbin'
1353libexecdir='${exec_prefix}/libexec'
1354datarootdir='${prefix}/share'
1355datadir='${datarootdir}'
1356sysconfdir='${prefix}/etc'
1357sharedstatedir='${prefix}/com'
1358localstatedir='${prefix}/var'
1359includedir='${prefix}/include'
1360oldincludedir='/usr/include'
1361docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1362infodir='${datarootdir}/info'
1363htmldir='${docdir}'
1364dvidir='${docdir}'
1365pdfdir='${docdir}'
1366psdir='${docdir}'
1367libdir='${exec_prefix}/lib'
1368localedir='${datarootdir}/locale'
1369mandir='${datarootdir}/man'
1370
1371ac_prev=
1372ac_dashdash=
1373for ac_option
1374do
1375 # If the previous option needs an argument, assign it.
1376 if test -n "$ac_prev"; then
1377 eval $ac_prev=\$ac_option
1378 ac_prev=
1379 continue
1380 fi
1381
1382 case $ac_option in
1383 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1384 *) ac_optarg=yes ;;
1385 esac
1386
1387 # Accept the important Cygnus configure options, so we can diagnose typos.
1388
1389 case $ac_dashdash$ac_option in
1390 --)
1391 ac_dashdash=yes ;;
1392
1393 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1394 ac_prev=bindir ;;
1395 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1396 bindir=$ac_optarg ;;
1397
1398 -build | --build | --buil | --bui | --bu)
1399 ac_prev=build_alias ;;
1400 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1401 build_alias=$ac_optarg ;;
1402
1403 -cache-file | --cache-file | --cache-fil | --cache-fi \
1404 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1405 ac_prev=cache_file ;;
1406 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1407 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1408 cache_file=$ac_optarg ;;
1409
1410 --config-cache | -C)
1411 cache_file=config.cache ;;
1412
1413 -datadir | --datadir | --datadi | --datad)
1414 ac_prev=datadir ;;
1415 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1416 datadir=$ac_optarg ;;
1417
1418 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1419 | --dataroo | --dataro | --datar)
1420 ac_prev=datarootdir ;;
1421 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1422 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1423 datarootdir=$ac_optarg ;;
1424
1425 -disable-* | --disable-*)
1426 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1429 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1430 { (exit 1); exit 1; }; }
1431 ac_useropt_orig=$ac_useropt
1432 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1433 case $ac_user_opts in
1434 *"
1435"enable_$ac_useropt"
1436"*) ;;
1437 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1438 ac_unrecognized_sep=', ';;
1439 esac
1440 eval enable_$ac_useropt=no ;;
1441
1442 -docdir | --docdir | --docdi | --doc | --do)
1443 ac_prev=docdir ;;
1444 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1445 docdir=$ac_optarg ;;
1446
1447 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1448 ac_prev=dvidir ;;
1449 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1450 dvidir=$ac_optarg ;;
1451
1452 -enable-* | --enable-*)
1453 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1457 { (exit 1); exit 1; }; }
1458 ac_useropt_orig=$ac_useropt
1459 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460 case $ac_user_opts in
1461 *"
1462"enable_$ac_useropt"
1463"*) ;;
1464 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1465 ac_unrecognized_sep=', ';;
1466 esac
1467 eval enable_$ac_useropt=\$ac_optarg ;;
1468
1469 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1470 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1471 | --exec | --exe | --ex)
1472 ac_prev=exec_prefix ;;
1473 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1474 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1475 | --exec=* | --exe=* | --ex=*)
1476 exec_prefix=$ac_optarg ;;
1477
1478 -gas | --gas | --ga | --g)
1479 # Obsolete; use --with-gas.
1480 with_gas=yes ;;
1481
1482 -help | --help | --hel | --he | -h)
1483 ac_init_help=long ;;
1484 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1485 ac_init_help=recursive ;;
1486 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1487 ac_init_help=short ;;
1488
1489 -host | --host | --hos | --ho)
1490 ac_prev=host_alias ;;
1491 -host=* | --host=* | --hos=* | --ho=*)
1492 host_alias=$ac_optarg ;;
1493
1494 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1495 ac_prev=htmldir ;;
1496 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1497 | --ht=*)
1498 htmldir=$ac_optarg ;;
1499
1500 -includedir | --includedir | --includedi | --included | --include \
1501 | --includ | --inclu | --incl | --inc)
1502 ac_prev=includedir ;;
1503 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1504 | --includ=* | --inclu=* | --incl=* | --inc=*)
1505 includedir=$ac_optarg ;;
1506
1507 -infodir | --infodir | --infodi | --infod | --info | --inf)
1508 ac_prev=infodir ;;
1509 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1510 infodir=$ac_optarg ;;
1511
1512 -libdir | --libdir | --libdi | --libd)
1513 ac_prev=libdir ;;
1514 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1515 libdir=$ac_optarg ;;
1516
1517 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1518 | --libexe | --libex | --libe)
1519 ac_prev=libexecdir ;;
1520 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1521 | --libexe=* | --libex=* | --libe=*)
1522 libexecdir=$ac_optarg ;;
1523
1524 -localedir | --localedir | --localedi | --localed | --locale)
1525 ac_prev=localedir ;;
1526 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1527 localedir=$ac_optarg ;;
1528
1529 -localstatedir | --localstatedir | --localstatedi | --localstated \
1530 | --localstate | --localstat | --localsta | --localst | --locals)
1531 ac_prev=localstatedir ;;
1532 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1533 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1534 localstatedir=$ac_optarg ;;
1535
1536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1537 ac_prev=mandir ;;
1538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1539 mandir=$ac_optarg ;;
1540
1541 -nfp | --nfp | --nf)
1542 # Obsolete; use --without-fp.
1543 with_fp=no ;;
1544
1545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1546 | --no-cr | --no-c | -n)
1547 no_create=yes ;;
1548
1549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1551 no_recursion=yes ;;
1552
1553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1555 | --oldin | --oldi | --old | --ol | --o)
1556 ac_prev=oldincludedir ;;
1557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1560 oldincludedir=$ac_optarg ;;
1561
1562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1563 ac_prev=prefix ;;
1564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1565 prefix=$ac_optarg ;;
1566
1567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1568 | --program-pre | --program-pr | --program-p)
1569 ac_prev=program_prefix ;;
1570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1572 program_prefix=$ac_optarg ;;
1573
1574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1575 | --program-suf | --program-su | --program-s)
1576 ac_prev=program_suffix ;;
1577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1579 program_suffix=$ac_optarg ;;
1580
1581 -program-transform-name | --program-transform-name \
1582 | --program-transform-nam | --program-transform-na \
1583 | --program-transform-n | --program-transform- \
1584 | --program-transform | --program-transfor \
1585 | --program-transfo | --program-transf \
1586 | --program-trans | --program-tran \
1587 | --progr-tra | --program-tr | --program-t)
1588 ac_prev=program_transform_name ;;
1589 -program-transform-name=* | --program-transform-name=* \
1590 | --program-transform-nam=* | --program-transform-na=* \
1591 | --program-transform-n=* | --program-transform-=* \
1592 | --program-transform=* | --program-transfor=* \
1593 | --program-transfo=* | --program-transf=* \
1594 | --program-trans=* | --program-tran=* \
1595 | --progr-tra=* | --program-tr=* | --program-t=*)
1596 program_transform_name=$ac_optarg ;;
1597
1598 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1599 ac_prev=pdfdir ;;
1600 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1601 pdfdir=$ac_optarg ;;
1602
1603 -psdir | --psdir | --psdi | --psd | --ps)
1604 ac_prev=psdir ;;
1605 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1606 psdir=$ac_optarg ;;
1607
1608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609 | -silent | --silent | --silen | --sile | --sil)
1610 silent=yes ;;
1611
1612 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1613 ac_prev=sbindir ;;
1614 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1615 | --sbi=* | --sb=*)
1616 sbindir=$ac_optarg ;;
1617
1618 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1619 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1620 | --sharedst | --shareds | --shared | --share | --shar \
1621 | --sha | --sh)
1622 ac_prev=sharedstatedir ;;
1623 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1624 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1625 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1626 | --sha=* | --sh=*)
1627 sharedstatedir=$ac_optarg ;;
1628
1629 -site | --site | --sit)
1630 ac_prev=site ;;
1631 -site=* | --site=* | --sit=*)
1632 site=$ac_optarg ;;
1633
1634 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1635 ac_prev=srcdir ;;
1636 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1637 srcdir=$ac_optarg ;;
1638
1639 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1640 | --syscon | --sysco | --sysc | --sys | --sy)
1641 ac_prev=sysconfdir ;;
1642 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1643 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1644 sysconfdir=$ac_optarg ;;
1645
1646 -target | --target | --targe | --targ | --tar | --ta | --t)
1647 ac_prev=target_alias ;;
1648 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1649 target_alias=$ac_optarg ;;
1650
1651 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1652 verbose=yes ;;
1653
1654 -version | --version | --versio | --versi | --vers | -V)
1655 ac_init_version=: ;;
1656
1657 -with-* | --with-*)
1658 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1659 # Reject names that are not valid shell variable names.
1660 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1661 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1662 { (exit 1); exit 1; }; }
1663 ac_useropt_orig=$ac_useropt
1664 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1665 case $ac_user_opts in
1666 *"
1667"with_$ac_useropt"
1668"*) ;;
1669 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1670 ac_unrecognized_sep=', ';;
1671 esac
1672 eval with_$ac_useropt=\$ac_optarg ;;
1673
1674 -without-* | --without-*)
1675 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1676 # Reject names that are not valid shell variable names.
1677 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1678 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1679 { (exit 1); exit 1; }; }
1680 ac_useropt_orig=$ac_useropt
1681 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1683 *"
1684"with_$ac_useropt"
1685"*) ;;
1686 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1687 ac_unrecognized_sep=', ';;
1688 esac
1689 eval with_$ac_useropt=no ;;
1690
1691 --x)
1692 # Obsolete; use --with-x.
1693 with_x=yes ;;
1694
1695 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1696 | --x-incl | --x-inc | --x-in | --x-i)
1697 ac_prev=x_includes ;;
1698 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1699 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1700 x_includes=$ac_optarg ;;
1701
1702 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1703 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1704 ac_prev=x_libraries ;;
1705 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1706 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1707 x_libraries=$ac_optarg ;;
1708
1709 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1710Try \`$0 --help' for more information." >&2
1711 { (exit 1); exit 1; }; }
1712 ;;
1713
1714 *=*)
1715 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1716 # Reject names that are not valid shell variable names.
1717 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1718 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1719 { (exit 1); exit 1; }; }
1720 eval $ac_envvar=\$ac_optarg
1721 export $ac_envvar ;;
1722
1723 *)
1724 # FIXME: should be removed in autoconf 3.0.
1725 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1726 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1727 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1728 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1729 ;;
1730
1731 esac
1732done
1733
1734if test -n "$ac_prev"; then
1735 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1736 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1737 { (exit 1); exit 1; }; }
1738fi
1739
1740if test -n "$ac_unrecognized_opts"; then
1741 case $enable_option_checking in
1742 no) ;;
1743 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1744 { (exit 1); exit 1; }; } ;;
1745 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1746 esac
1747fi
1748
1749# Check all directory arguments for consistency.
1750for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1751 datadir sysconfdir sharedstatedir localstatedir includedir \
1752 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1753 libdir localedir mandir
1754do
1755 eval ac_val=\$$ac_var
1756 # Remove trailing slashes.
1757 case $ac_val in
1758 */ )
1759 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1760 eval $ac_var=\$ac_val;;
1761 esac
1762 # Be sure to have absolute directory names.
1763 case $ac_val in
1764 [\\/$]* | ?:[\\/]* ) continue;;
1765 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1766 esac
1767 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1768 { (exit 1); exit 1; }; }
1769done
1770
1771# There might be people who depend on the old broken behavior: `$host'
1772# used to hold the argument of --host etc.
1773# FIXME: To remove some day.
1774build=$build_alias
1775host=$host_alias
1776target=$target_alias
1777
1778# FIXME: To remove some day.
1779if test "x$host_alias" != x; then
1780 if test "x$build_alias" = x; then
1781 cross_compiling=maybe
1782 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1783 If a cross compiler is detected then cross compile mode will be used." >&2
1784 elif test "x$build_alias" != "x$host_alias"; then
1785 cross_compiling=yes
1786 fi
1787fi
1788
1789ac_tool_prefix=
1790test -n "$host_alias" && ac_tool_prefix=$host_alias-
1791
1792test "$silent" = yes && exec 6>/dev/null
1793
1794
1795ac_pwd=`pwd` && test -n "$ac_pwd" &&
1796ac_ls_di=`ls -di .` &&
1797ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1798 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1799 { (exit 1); exit 1; }; }
1800test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1801 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1802 { (exit 1); exit 1; }; }
1803
1804
1805# Find the source files, if location was not specified.
1806if test -z "$srcdir"; then
1807 ac_srcdir_defaulted=yes
1808 # Try the directory containing this script, then the parent directory.
1809 ac_confdir=`$as_dirname -- "$as_myself" ||
1810$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1811 X"$as_myself" : 'X\(//\)[^/]' \| \
1812 X"$as_myself" : 'X\(//\)$' \| \
1813 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1814$as_echo X"$as_myself" |
1815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1816 s//\1/
1817 q
1818 }
1819 /^X\(\/\/\)[^/].*/{
1820 s//\1/
1821 q
1822 }
1823 /^X\(\/\/\)$/{
1824 s//\1/
1825 q
1826 }
1827 /^X\(\/\).*/{
1828 s//\1/
1829 q
1830 }
1831 s/.*/./; q'`
1832 srcdir=$ac_confdir
1833 if test ! -r "$srcdir/$ac_unique_file"; then
1834 srcdir=..
1835 fi
1836else
1837 ac_srcdir_defaulted=no
1838fi
1839if test ! -r "$srcdir/$ac_unique_file"; then
1840 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1841 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1842 { (exit 1); exit 1; }; }
1843fi
1844ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1845ac_abs_confdir=`(
1846 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1847 { (exit 1); exit 1; }; }
1848 pwd)`
1849# When building in place, set srcdir=.
1850if test "$ac_abs_confdir" = "$ac_pwd"; then
1851 srcdir=.
1852fi
1853# Remove unnecessary trailing slashes from srcdir.
1854# Double slashes in file names in object file debugging info
1855# mess up M-x gdb in Emacs.
1856case $srcdir in
1857*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1858esac
1859for ac_var in $ac_precious_vars; do
1860 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1861 eval ac_env_${ac_var}_value=\$${ac_var}
1862 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1863 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1864done
1865
1866#
1867# Report the --help message.
1868#
1869if test "$ac_init_help" = "long"; then
1870 # Omit some internal or obsolete options to make the list less imposing.
1871 # This message is too long to be a string in the A/UX 3.1 sh.
1872 cat <<_ACEOF
cristybf083432009-09-13 04:31:08 +00001873\`configure' configures ImageMagick 6.5.6 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001874
1875Usage: $0 [OPTION]... [VAR=VALUE]...
1876
1877To assign environment variables (e.g., CC, CFLAGS...), specify them as
1878VAR=VALUE. See below for descriptions of some of the useful variables.
1879
1880Defaults for the options are specified in brackets.
1881
1882Configuration:
1883 -h, --help display this help and exit
1884 --help=short display options specific to this package
1885 --help=recursive display the short help of all the included packages
1886 -V, --version display version information and exit
1887 -q, --quiet, --silent do not print \`checking...' messages
1888 --cache-file=FILE cache test results in FILE [disabled]
1889 -C, --config-cache alias for \`--cache-file=config.cache'
1890 -n, --no-create do not create output files
1891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1892
1893Installation directories:
1894 --prefix=PREFIX install architecture-independent files in PREFIX
1895 [$ac_default_prefix]
1896 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1897 [PREFIX]
1898
1899By default, \`make install' will install all the files in
1900\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1901an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1902for instance \`--prefix=\$HOME'.
1903
1904For better control, use the options below.
1905
1906Fine tuning of the installation directories:
1907 --bindir=DIR user executables [EPREFIX/bin]
1908 --sbindir=DIR system admin executables [EPREFIX/sbin]
1909 --libexecdir=DIR program executables [EPREFIX/libexec]
1910 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1911 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1912 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1913 --libdir=DIR object code libraries [EPREFIX/lib]
1914 --includedir=DIR C header files [PREFIX/include]
1915 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1916 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1917 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1918 --infodir=DIR info documentation [DATAROOTDIR/info]
1919 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1920 --mandir=DIR man documentation [DATAROOTDIR/man]
1921 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1922 --htmldir=DIR html documentation [DOCDIR]
1923 --dvidir=DIR dvi documentation [DOCDIR]
1924 --pdfdir=DIR pdf documentation [DOCDIR]
1925 --psdir=DIR ps documentation [DOCDIR]
1926_ACEOF
1927
1928 cat <<\_ACEOF
1929
1930Program names:
1931 --program-prefix=PREFIX prepend PREFIX to installed program names
1932 --program-suffix=SUFFIX append SUFFIX to installed program names
1933 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1934
1935X features:
1936 --x-includes=DIR X include files are in DIR
1937 --x-libraries=DIR X library files are in DIR
1938
1939System types:
1940 --build=BUILD configure for building on BUILD [guessed]
1941 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1942 --target=TARGET configure for building compilers for TARGET [HOST]
1943_ACEOF
1944fi
1945
1946if test -n "$ac_init_help"; then
1947 case $ac_init_help in
cristybf083432009-09-13 04:31:08 +00001948 short | recursive ) echo "Configuration of ImageMagick 6.5.6:";;
cristy3ed852e2009-09-05 21:47:34 +00001949 esac
1950 cat <<\_ACEOF
1951
1952Optional Features:
1953 --disable-option-checking ignore unrecognized --enable/--with options
1954 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1955 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1956 --enable-silent-rules less verbose build output (undo: `make V=1')
1957 --disable-silent-rules verbose build output (undo: `make V=0')
1958 --disable-dependency-tracking speeds up one-time build
1959 --enable-dependency-tracking do not reject slow dependency extractors
1960 --bounds-checking enable run-time bounds-checking
1961 --enable-osx-universal-binary
1962 build universal binary on OS X [default=no]
1963 --disable-openmp do not use OpenMP
1964 --disable-largefile omit support for large files
1965 --enable-shared[=PKGS] build shared libraries [default=yes]
1966 --enable-static[=PKGS] build static libraries [default=yes]
1967 --enable-fast-install[=PKGS]
1968 optimize for fast installation [default=yes]
1969 --disable-libtool-lock avoid locking (might break parallel builds)
1970 --enable-ltdl-install install libltdl
1971 --enable-delegate-build look for delegate libraries in build directory
1972 --disable-deprecated exclude deprecated methods in MagickCore and
1973 MagickWand API's
1974 --disable-installed Formally install ImageMagick under PREFIX
1975 --disable-cipher disable enciphering and deciphering image pixels
1976 --enable-embeddable enable self-contained, embeddable,
1977 zero-configuration ImageMagick
1978 --enable-hdri accurately represent the wide range of intensity
1979 levels found in real scenes
1980 --enable-libtool-verbose
1981 enable verbose libtool output
1982 --disable-assert disable assert() statements in build
1983 --enable-maintainer-mode enable make rules and dependencies not useful
1984 (and sometimes confusing) to the casual installer
1985 --enable-ccmalloc enable 'ccmalloc' memory debug support
1986 --enable-efence enable 'efence' memory debug support
1987 --enable-prof enable 'prof' profiling support
1988 --enable-gprof enable 'gprof' profiling support
1989 --enable-gcov enable 'gcov' profiling support
1990
1991Optional Packages:
1992 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1993 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1994 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1995 --without-maximum-compile-warnings
1996 Disable maximum warning verbosity
1997 --with-dmalloc use dmalloc, as in
1998 http://www.dmalloc.com/dmalloc.tar.gz
1999 --without-threads disable threads support
cristy736173a2009-09-20 21:18:22 +00002000 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00002001 --with-pic try to use only PIC/non-PIC objects [default=use
2002 both]
2003 --with-included-ltdl use the GNU ltdl sources included here
2004 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2005 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2006 --with-modules enable building dynamically loadable modules
2007 --with-method-prefix=PREFIX
2008 prefix MagickCore API methods
2009 --with-quantum-depth=DEPTH
2010 number of bits in a pixel quantum (default 16)
2011 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2012 memory)
2013 --with-frozenpaths freeze delegate paths
2014 --without-magick-plus-plus
2015 disable build/install of Magick++
2016 --with-perl enable build/install of PerlMagick
2017 --with-perl-options=OPTIONS
2018 options to pass on command-line when generating
2019 PerlMagick's build file
2020 --with-umem enable umem memory allocation library support
2021 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2022 --without-bzlib disable BZLIB support
cristy3ed852e2009-09-05 21:47:34 +00002023 --without-zlib disable ZLIB support
2024 --with-autotrace enable autotrace support
2025 --without-dps disable Display Postscript support
2026 --without-djvu disable DjVu support
2027 --without-fftw disable FFTW support
2028 --without-fpx disable FlashPIX support
2029 --without-fontconfig disable fontconfig support
2030 --without-freetype disable Freetype support
2031 --without-gslib enable Ghostscript library support
2032 --with-fontpath=DIR prepend to default font search path
2033 --with-gs-font-dir=DIR Ghostscript font directory
2034 --without-gvc disable GVC support
2035 --without-jbig disable JBIG support
2036 --without-jpeg disable JPEG support
2037 --without-jp2 disable JPEG-2000 support
2038 --without-lcms disable LCMS support
2039 --without-lqr disable Liquid Rescale support (experimental)
2040 --without-openexr disable OpenEXR support
2041 --without-png disable PNG support
2042 --without-rsvg disable RSVG support
2043 --without-tiff disable TIFF support
2044 --with-windows-font-dir=DIR
2045 directory containing MS-Windows fonts
2046 --without-wmf disable WMF support
2047 --without-xml disable XML support
2048
2049Some influential environment variables:
2050 CC C compiler command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2053 nonstandard directory <lib dir>
2054 LIBS libraries to pass to the linker, e.g. -l<library>
2055 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2056 you have headers in a nonstandard directory <include dir>
2057 CPP C preprocessor
2058 CXX C++ compiler command
2059 CXXFLAGS C++ compiler flags
2060 PKG_CONFIG path to pkg-config utility
cristy3ed852e2009-09-05 21:47:34 +00002061 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy736173a2009-09-20 21:18:22 +00002062 CXXCPP C++ preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002063 AUTOTRACE_CFLAGS
2064 C compiler flags for AUTOTRACE, overriding pkg-config
2065 AUTOTRACE_LIBS
2066 linker flags for AUTOTRACE, overriding pkg-config
2067 FONTCONFIG_CFLAGS
2068 C compiler flags for FONTCONFIG, overriding pkg-config
2069 FONTCONFIG_LIBS
2070 linker flags for FONTCONFIG, overriding pkg-config
2071 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2072 GVC_LIBS linker flags for GVC, overriding pkg-config
2073 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2074 LQR_LIBS linker flags for LQR, overriding pkg-config
2075 OPENEXR_CFLAGS
2076 C compiler flags for OPENEXR, overriding pkg-config
2077 OPENEXR_LIBS
2078 linker flags for OPENEXR, overriding pkg-config
2079 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2080 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2081 CAIRO_SVG_CFLAGS
2082 C compiler flags for CAIRO_SVG, overriding pkg-config
2083 CAIRO_SVG_LIBS
2084 linker flags for CAIRO_SVG, overriding pkg-config
2085
2086Use these variables to override the choices made by `configure' or to help
2087it to find libraries and programs with nonstandard names/locations.
2088
2089Report bugs to <http://www.imagemagick.org>.
2090_ACEOF
2091ac_status=$?
2092fi
2093
2094if test "$ac_init_help" = "recursive"; then
2095 # If there are subdirs, report their specific --help.
2096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2097 test -d "$ac_dir" ||
2098 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2099 continue
2100 ac_builddir=.
2101
2102case "$ac_dir" in
2103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104*)
2105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2106 # A ".." for each directory in $ac_dir_suffix.
2107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2108 case $ac_top_builddir_sub in
2109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2111 esac ;;
2112esac
2113ac_abs_top_builddir=$ac_pwd
2114ac_abs_builddir=$ac_pwd$ac_dir_suffix
2115# for backward compatibility:
2116ac_top_builddir=$ac_top_build_prefix
2117
2118case $srcdir in
2119 .) # We are building in place.
2120 ac_srcdir=.
2121 ac_top_srcdir=$ac_top_builddir_sub
2122 ac_abs_top_srcdir=$ac_pwd ;;
2123 [\\/]* | ?:[\\/]* ) # Absolute name.
2124 ac_srcdir=$srcdir$ac_dir_suffix;
2125 ac_top_srcdir=$srcdir
2126 ac_abs_top_srcdir=$srcdir ;;
2127 *) # Relative name.
2128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2129 ac_top_srcdir=$ac_top_build_prefix$srcdir
2130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2131esac
2132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133
2134 cd "$ac_dir" || { ac_status=$?; continue; }
2135 # Check for guested configure.
2136 if test -f "$ac_srcdir/configure.gnu"; then
2137 echo &&
2138 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2139 elif test -f "$ac_srcdir/configure"; then
2140 echo &&
2141 $SHELL "$ac_srcdir/configure" --help=recursive
2142 else
2143 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2144 fi || ac_status=$?
2145 cd "$ac_pwd" || { ac_status=$?; break; }
2146 done
2147fi
2148
2149test -n "$ac_init_help" && exit $ac_status
2150if $ac_init_version; then
2151 cat <<\_ACEOF
cristybf083432009-09-13 04:31:08 +00002152ImageMagick configure 6.5.6
cristy3ed852e2009-09-05 21:47:34 +00002153generated by GNU Autoconf 2.63
2154
2155Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21562002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2157This configure script is free software; the Free Software Foundation
2158gives unlimited permission to copy, distribute and modify it.
2159_ACEOF
2160 exit
2161fi
2162cat >config.log <<_ACEOF
2163This file contains any messages produced by compilers while
2164running configure, to aid debugging if configure makes a mistake.
2165
cristybf083432009-09-13 04:31:08 +00002166It was created by ImageMagick $as_me 6.5.6, which was
cristy3ed852e2009-09-05 21:47:34 +00002167generated by GNU Autoconf 2.63. Invocation command line was
2168
2169 $ $0 $@
2170
2171_ACEOF
2172exec 5>>config.log
2173{
2174cat <<_ASUNAME
2175## --------- ##
2176## Platform. ##
2177## --------- ##
2178
2179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196_ASUNAME
2197
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204done
2205IFS=$as_save_IFS
2206
2207} >&5
2208
2209cat >&5 <<_ACEOF
2210
2211
2212## ----------- ##
2213## Core tests. ##
2214## ----------- ##
2215
2216_ACEOF
2217
2218
2219# Keep a trace of the command line.
2220# Strip out --no-create and --no-recursion so they do not pile up.
2221# Strip out --silent because we don't want to record it for future runs.
2222# Also quote any args containing shell meta-characters.
2223# Make two passes to allow for proper duplicate-argument suppression.
2224ac_configure_args=
2225ac_configure_args0=
2226ac_configure_args1=
2227ac_must_keep_next=false
2228for ac_pass in 1 2
2229do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2242 2)
2243 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 ac_configure_args="$ac_configure_args '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263done
2264$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2265$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2266
2267# When interrupted or exit'd, cleanup temporary files, and complete
2268# config.log. We remove comments because anyway the quotes in there
2269# would cause problems or look ugly.
2270# WARNING: Use '\'' to represent an apostrophe within the trap.
2271# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 cat <<\_ASBOX
2278## ---------------- ##
2279## Cache variables. ##
2280## ---------------- ##
2281_ASBOX
2282 echo
2283 # The following way of writing the cache mishandles newlines in values,
2284(
2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in #(
2288 *${as_nl}*)
2289 case $ac_var in #(
2290 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 esac
2293 case $ac_var in #(
2294 _ | IFS | as_nl) ;; #(
2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) $as_unset $ac_var ;;
2297 esac ;;
2298 esac
2299 done
2300 (set) 2>&1 |
2301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
2303 sed -n \
2304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 ;; #(
2307 *)
2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309 ;;
2310 esac |
2311 sort
2312)
2313 echo
2314
2315 cat <<\_ASBOX
2316## ----------------- ##
2317## Output variables. ##
2318## ----------------- ##
2319_ASBOX
2320 echo
2321 for ac_var in $ac_subst_vars
2322 do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 $as_echo "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2330
2331 if test -n "$ac_subst_files"; then
2332 cat <<\_ASBOX
2333## ------------------- ##
2334## File substitutions. ##
2335## ------------------- ##
2336_ASBOX
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 cat <<\_ASBOX
2351## ----------- ##
2352## confdefs.h. ##
2353## ----------- ##
2354_ASBOX
2355 echo
2356 cat confdefs.h
2357 echo
2358 fi
2359 test "$ac_signal" != 0 &&
2360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
2362 } >&5
2363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 exit $exit_status
2366' 0
2367for ac_signal in 1 2 13 15; do
2368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2369done
2370ac_signal=0
2371
2372# confdefs.h avoids OS command line length limits that DEFS can exceed.
2373rm -f -r conftest* confdefs.h
2374
2375# Predefined preprocessor variables.
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_NAME "$PACKAGE_NAME"
2379_ACEOF
2380
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384_ACEOF
2385
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_VERSION "$PACKAGE_VERSION"
2389_ACEOF
2390
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_STRING "$PACKAGE_STRING"
2394_ACEOF
2395
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399_ACEOF
2400
2401
2402# Let the site file select an alternate cache file if it wants to.
2403# Prefer an explicitly selected file to automatically selected ones.
2404ac_site_file1=NONE
2405ac_site_file2=NONE
2406if test -n "$CONFIG_SITE"; then
2407 ac_site_file1=$CONFIG_SITE
2408elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2411else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2414fi
2415for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416do
2417 test "x$ac_site_file" = xNONE && continue
2418 if test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2420$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2422 . "$ac_site_file"
2423 fi
2424done
2425
2426if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special
2428 # files actually), so we avoid doing that.
2429 if test -f "$cache_file"; then
2430 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2431$as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2436 fi
2437else
2438 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2439$as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2441fi
2442
2443# Check that the precious variables saved in the cache have kept the same
2444# value.
2445ac_cache_corrupted=false
2446for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2461 *)
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2468$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2474 fi
2475 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2476$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2478$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2490 esac
2491 fi
2492done
2493if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2497$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2499$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2500 { (exit 1); exit 1; }; }
2501fi
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534
2535ac_aux_dir=
2536for ac_dir in config "$srcdir"/config; do
2537 if test -f "$ac_dir/install-sh"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/install-sh -c"
2540 break
2541 elif test -f "$ac_dir/install.sh"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/install.sh -c"
2544 break
2545 elif test -f "$ac_dir/shtool"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/shtool install -c"
2548 break
2549 fi
2550done
2551if test -z "$ac_aux_dir"; then
2552 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2553$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2554 { (exit 1); exit 1; }; }
2555fi
2556
2557# These three variables are undocumented and unsupported,
2558# and are intended to be withdrawn in a future Autoconf release.
2559# They can cause serious problems if a builder's source tree is in a directory
2560# whose full name contains unusual characters.
2561ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
2566
2567
2568ac_config_headers="$ac_config_headers config/config.h"
2569
2570ac_config_commands="$ac_config_commands magick/magick-config.h"
2571
2572ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
2573
2574
2575#
2576# Save initial user-tunable values
2577#
2578USER_LIBS=$LIBS
2579for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2580 eval isset=\${$var+set}
2581 if test "$isset" = 'set'; then
2582 eval val=$`echo $var`
2583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2584 fi
2585done
2586
2587
2588CONFIGURE_ARGS="$0 ${ac_configure_args}"
2589
2590
2591# Source file containing package/library versioning information.
2592. ${srcdir}/version.sh
2593
2594echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2595# Make sure we can run config.sub.
2596$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2597 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2598$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2599 { (exit 1); exit 1; }; }
2600
2601{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2602$as_echo_n "checking build system type... " >&6; }
2603if test "${ac_cv_build+set}" = set; then
2604 $as_echo_n "(cached) " >&6
2605else
2606 ac_build_alias=$build_alias
2607test "x$ac_build_alias" = x &&
2608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609test "x$ac_build_alias" = x &&
2610 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2611$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612 { (exit 1); exit 1; }; }
2613ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2614 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2615$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2616 { (exit 1); exit 1; }; }
2617
2618fi
2619{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2620$as_echo "$ac_cv_build" >&6; }
2621case $ac_cv_build in
2622*-*-*) ;;
2623*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2624$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2625 { (exit 1); exit 1; }; };;
2626esac
2627build=$ac_cv_build
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_build
2630shift
2631build_cpu=$1
2632build_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636build_os=$*
2637IFS=$ac_save_IFS
2638case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2642$as_echo_n "checking host system type... " >&6; }
2643if test "${ac_cv_host+set}" = set; then
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648else
2649 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2651$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2652 { (exit 1); exit 1; }; }
2653fi
2654
2655fi
2656{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2657$as_echo "$ac_cv_host" >&6; }
2658case $ac_cv_host in
2659*-*-*) ;;
2660*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2661$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2662 { (exit 1); exit 1; }; };;
2663esac
2664host=$ac_cv_host
2665ac_save_IFS=$IFS; IFS='-'
2666set x $ac_cv_host
2667shift
2668host_cpu=$1
2669host_vendor=$2
2670shift; shift
2671# Remember, the first character of IFS is used to create $*,
2672# except with old shells:
2673host_os=$*
2674IFS=$ac_save_IFS
2675case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676
2677
2678{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2679$as_echo_n "checking target system type... " >&6; }
2680if test "${ac_cv_target+set}" = set; then
2681 $as_echo_n "(cached) " >&6
2682else
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2685else
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2688$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2689 { (exit 1); exit 1; }; }
2690fi
2691
2692fi
2693{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2694$as_echo "$ac_cv_target" >&6; }
2695case $ac_cv_target in
2696*-*-*) ;;
2697*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2698$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2699 { (exit 1); exit 1; }; };;
2700esac
2701target=$ac_cv_target
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_target
2704shift
2705target_cpu=$1
2706target_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710target_os=$*
2711IFS=$ac_save_IFS
2712case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2713
2714
2715# The aliases save the names the user supplied, while $host etc.
2716# will get canonicalized.
2717test -n "$target_alias" &&
2718 test "$program_prefix$program_suffix$program_transform_name" = \
2719 NONENONEs,x,x, &&
2720 program_prefix=${target_alias}-
2721
2722# Substitute library versioning
2723
2724
2725# Ensure that make can run correctly
2726{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2727$as_echo_n "checking whether build environment is sane... " >&6; }
2728# Just in case
2729sleep 1
2730echo timestamp > conftest.file
2731# Reject unsafe characters in $srcdir or the absolute working directory
2732# name. Accept space and tab only in the latter.
2733am_lf='
2734'
2735case `pwd` in
2736 *[\\\"\#\$\&\'\`$am_lf]*)
2737 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2738$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2739 { (exit 1); exit 1; }; };;
2740esac
2741case $srcdir in
2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2743 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2744$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2745 { (exit 1); exit 1; }; };;
2746esac
2747
2748# Do `set' in a subshell so we don't clobber the current shell's
2749# arguments. Must try -L first in case configure is actually a
2750# symlink; some systems play weird games with the mod time of symlinks
2751# (eg FreeBSD returns the mod time of the symlink's containing
2752# directory).
2753if (
2754 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2755 if test "$*" = "X"; then
2756 # -L didn't work.
2757 set X `ls -t "$srcdir/configure" conftest.file`
2758 fi
2759 rm -f conftest.file
2760 if test "$*" != "X $srcdir/configure conftest.file" \
2761 && test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763 # If neither matched, then we have a broken ls. This can happen
2764 # if, for instance, CONFIG_SHELL is bash and it inherits a
2765 # broken ls alias from the environment. This has actually
2766 # happened. Such a system could not be considered "sane".
2767 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2768alias in your environment" >&5
2769$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2770alias in your environment" >&2;}
2771 { (exit 1); exit 1; }; }
2772 fi
2773
2774 test "$2" = conftest.file
2775 )
2776then
2777 # Ok.
2778 :
2779else
2780 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781Check your system clock" >&5
2782$as_echo "$as_me: error: newly created file is older than distributed files!
2783Check your system clock" >&2;}
2784 { (exit 1); exit 1; }; }
2785fi
2786{ $as_echo "$as_me:$LINENO: result: yes" >&5
2787$as_echo "yes" >&6; }
2788
2789am__api_version='1.11'
2790
2791# Find a good install program. We prefer a C program (faster),
2792# so one script is as good as another. But avoid the broken or
2793# incompatible versions:
2794# SysV /etc/install, /usr/sbin/install
2795# SunOS /usr/etc/install
2796# IRIX /sbin/install
2797# AIX /bin/install
2798# AmigaOS /C/install, which installs bootblocks on floppy discs
2799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2802# OS/2's system install, which has a completely different semantic
2803# ./install, which can be erroneously created by make from ./install.sh.
2804# Reject install programs that cannot install multiple files.
2805{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2806$as_echo_n "checking for a BSD-compatible install... " >&6; }
2807if test -z "$INSTALL"; then
2808if test "${ac_cv_path_install+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2810else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 # Account for people who put trailing slashes in PATH elements.
2817case $as_dir/ in
2818 ./ | .// | /cC/* | \
2819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2820 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2821 /usr/ucb/* ) ;;
2822 *)
2823 # OSF1 and SCO ODT 3.0 have their own names for install.
2824 # Don't use installbsd from OSF since it installs stuff as root
2825 # by default.
2826 for ac_prog in ginstall scoinst install; do
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2829 if test $ac_prog = install &&
2830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831 # AIX install. It has an incompatible calling convention.
2832 :
2833 elif test $ac_prog = install &&
2834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2835 # program-specific install script used by HP pwplus--don't use.
2836 :
2837 else
2838 rm -rf conftest.one conftest.two conftest.dir
2839 echo one > conftest.one
2840 echo two > conftest.two
2841 mkdir conftest.dir
2842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2843 test -s conftest.one && test -s conftest.two &&
2844 test -s conftest.dir/conftest.one &&
2845 test -s conftest.dir/conftest.two
2846 then
2847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2848 break 3
2849 fi
2850 fi
2851 fi
2852 done
2853 done
2854 ;;
2855esac
2856
2857done
2858IFS=$as_save_IFS
2859
2860rm -rf conftest.one conftest.two conftest.dir
2861
2862fi
2863 if test "${ac_cv_path_install+set}" = set; then
2864 INSTALL=$ac_cv_path_install
2865 else
2866 # As a last resort, use the slow shell script. Don't cache a
2867 # value for INSTALL within a source directory, because that will
2868 # break other packages using the cache if that directory is
2869 # removed, or if the value is a relative name.
2870 INSTALL=$ac_install_sh
2871 fi
2872fi
2873{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2874$as_echo "$INSTALL" >&6; }
2875
2876# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2877# It thinks the first close brace ends the variable substitution.
2878test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2879
2880test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2881
2882test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2883
2884test "$program_prefix" != NONE &&
2885 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2886# Use a double $ so make ignores it.
2887test "$program_suffix" != NONE &&
2888 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2889# Double any \ or $.
2890# By default was `s,x,x', remove it if useless.
2891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2893
2894# expand $ac_aux_dir to an absolute path
2895am_aux_dir=`cd $ac_aux_dir && pwd`
2896
2897if test x"${MISSING+set}" != xset; then
2898 case $am_aux_dir in
2899 *\ * | *\ *)
2900 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2901 *)
2902 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2903 esac
2904fi
2905# Use eval to expand $SHELL
2906if eval "$MISSING --run true"; then
2907 am_missing_run="$MISSING --run "
2908else
2909 am_missing_run=
2910 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2911$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2912fi
2913
2914if test x"${install_sh}" != xset; then
2915 case $am_aux_dir in
2916 *\ * | *\ *)
2917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2918 *)
2919 install_sh="\${SHELL} $am_aux_dir/install-sh"
2920 esac
2921fi
2922
2923# Installed binaries are usually stripped using `strip' when the user
2924# run `make install-strip'. However `strip' might not be the right
2925# tool to use in cross-compilation environments, therefore Automake
2926# will honor the `STRIP' environment variable to overrule this program.
2927if test "$cross_compiling" != no; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}strip; ac_word=$2
2931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if test "${ac_cv_prog_STRIP+set}" = set; then
2934 $as_echo_n "(cached) " >&6
2935else
2936 if test -n "$STRIP"; then
2937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956STRIP=$ac_cv_prog_STRIP
2957if test -n "$STRIP"; then
2958 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2959$as_echo "$STRIP" >&6; }
2960else
2961 { $as_echo "$as_me:$LINENO: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966fi
2967if test -z "$ac_cv_prog_STRIP"; then
2968 ac_ct_STRIP=$STRIP
2969 # Extract the first word of "strip", so it can be a program name with args.
2970set dummy strip; ac_word=$2
2971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2975else
2976 if test -n "$ac_ct_STRIP"; then
2977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_STRIP="strip"
2987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997if test -n "$ac_ct_STRIP"; then
2998 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2999$as_echo "$ac_ct_STRIP" >&6; }
3000else
3001 { $as_echo "$as_me:$LINENO: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005 if test "x$ac_ct_STRIP" = x; then
3006 STRIP=":"
3007 else
3008 case $cross_compiling:$ac_tool_warned in
3009yes:)
3010{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014 STRIP=$ac_ct_STRIP
3015 fi
3016else
3017 STRIP="$ac_cv_prog_STRIP"
3018fi
3019
3020fi
3021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3022
3023{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3025if test -z "$MKDIR_P"; then
3026 if test "${ac_cv_path_mkdir+set}" = set; then
3027 $as_echo_n "(cached) " >&6
3028else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in mkdir gmkdir; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3037 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3038 'mkdir (GNU coreutils) '* | \
3039 'mkdir (coreutils) '* | \
3040 'mkdir (fileutils) '4.1*)
3041 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3042 break 3;;
3043 esac
3044 done
3045 done
3046done
3047IFS=$as_save_IFS
3048
3049fi
3050
3051 if test "${ac_cv_path_mkdir+set}" = set; then
3052 MKDIR_P="$ac_cv_path_mkdir -p"
3053 else
3054 # As a last resort, use the slow shell script. Don't cache a
3055 # value for MKDIR_P within a source directory, because that will
3056 # break other packages using the cache if that directory is
3057 # removed, or if the value is a relative name.
3058 test -d ./--version && rmdir ./--version
3059 MKDIR_P="$ac_install_sh -d"
3060 fi
3061fi
3062{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3063$as_echo "$MKDIR_P" >&6; }
3064
3065mkdir_p="$MKDIR_P"
3066case $mkdir_p in
3067 [\\/$]* | ?:[\\/]*) ;;
3068 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3069esac
3070
3071for ac_prog in gawk mawk nawk awk
3072do
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074set dummy $ac_prog; ac_word=$2
3075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if test "${ac_cv_prog_AWK+set}" = set; then
3078 $as_echo_n "(cached) " >&6
3079else
3080 if test -n "$AWK"; then
3081 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_AWK="$ac_prog"
3091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094done
3095done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100AWK=$ac_cv_prog_AWK
3101if test -n "$AWK"; then
3102 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3103$as_echo "$AWK" >&6; }
3104else
3105 { $as_echo "$as_me:$LINENO: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110 test -n "$AWK" && break
3111done
3112
3113{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3114$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3115set x ${MAKE-make}
3116ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3117if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3118 $as_echo_n "(cached) " >&6
3119else
3120 cat >conftest.make <<\_ACEOF
3121SHELL = /bin/sh
3122all:
3123 @echo '@@@%%%=$(MAKE)=@@@%%%'
3124_ACEOF
3125# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3126case `${MAKE-make} -f conftest.make 2>/dev/null` in
3127 *@@@%%%=?*=@@@%%%*)
3128 eval ac_cv_prog_make_${ac_make}_set=yes;;
3129 *)
3130 eval ac_cv_prog_make_${ac_make}_set=no;;
3131esac
3132rm -f conftest.make
3133fi
3134if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3135 { $as_echo "$as_me:$LINENO: result: yes" >&5
3136$as_echo "yes" >&6; }
3137 SET_MAKE=
3138else
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140$as_echo "no" >&6; }
3141 SET_MAKE="MAKE=${MAKE-make}"
3142fi
3143
3144rm -rf .tst 2>/dev/null
3145mkdir .tst 2>/dev/null
3146if test -d .tst; then
3147 am__leading_dot=.
3148else
3149 am__leading_dot=_
3150fi
3151rmdir .tst 2>/dev/null
3152
3153if test "`cd $srcdir && pwd`" != "`pwd`"; then
3154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3155 # is not polluted with repeated "-I."
3156 am__isrc=' -I$(srcdir)'
3157 # test to see if srcdir already configured
3158 if test -f $srcdir/config.status; then
3159 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3160$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163fi
3164
3165# test whether we have cygpath
3166if test -z "$CYGPATH_W"; then
3167 if (cygpath --version) >/dev/null 2>/dev/null; then
3168 CYGPATH_W='cygpath -w'
3169 else
3170 CYGPATH_W=echo
3171 fi
3172fi
3173
3174
3175# Define the identity of the package.
3176 PACKAGE=$PACKAGE_NAME
3177 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3178
3179
3180# Some tools Automake needs.
3181
3182ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3183
3184
3185AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3186
3187
3188AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3189
3190
3191AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3192
3193
3194MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3195
3196# We need awk for the "check" target. The system "awk" is bad on
3197# some platforms.
3198# Always define AMTAR for backward compatibility.
3199
3200AMTAR=${AMTAR-"${am_missing_run}tar"}
3201
3202am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3203
3204
3205
3206
3207
3208
3209# Enable support for silent build rules
3210# Check whether --enable-silent-rules was given.
3211if test "${enable_silent_rules+set}" = set; then
3212 enableval=$enable_silent_rules;
3213fi
3214
3215case $enable_silent_rules in
3216yes) AM_DEFAULT_VERBOSITY=0;;
3217no) AM_DEFAULT_VERBOSITY=1;;
3218*) AM_DEFAULT_VERBOSITY=0;;
3219esac
3220AM_BACKSLASH='\'
3221
3222
3223MAGICK_LIB_VERSION="0x"
3224if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3225 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3226fi
3227MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3228if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3229 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3230fi
3231MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3232if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3233 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3234fi
3235MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3236
3237
3238# Definition used to define MagickLibVersionText in version.h
3239MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3240
3241
3242# Definition used to define MagickLibVersionNumber in version.h
3243MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3244
3245
3246# Regenerate config.status if ChangeLog or version.sh is updated.
3247CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3248
3249
3250PERLMAINCC=$CC
3251
3252MAGICK_CFLAGS=''
3253MAGICK_CPPFLAGS=$CPPFLAGS_USER
3254MAGICK_PCFLAGS=$CPPFLAGS_USER
3255MAGICK_LDFLAGS=''
3256MAGICK_LIBS=''
3257
3258#
3259# Evaluate shell variable equivalents to Makefile directory variables
3260#
3261if test "x$prefix" = xNONE; then
3262 prefix=$ac_default_prefix
3263fi
3264# Let make expand exec_prefix.
3265if test "x$exec_prefix" = xNONE; then
3266 exec_prefix='${prefix}'
3267fi
3268
3269#
3270eval "eval PREFIX_DIR=${prefix}"
3271
3272eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3273
3274eval "eval BIN_DIR=$bindir"
3275
3276eval "eval SBIN_DIR=$sbindir"
3277
3278eval "eval LIBEXEC_DIR=$libexecdir"
3279
3280eval "eval DATA_DIR=$datadir"
3281
3282eval "eval SYSCONF_DIR=$sysconfdir"
3283
3284eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3285
3286eval "eval LOCALSTATE_DIR=$localstatedir"
3287
3288eval "eval LIB_DIR=$libdir"
3289
3290eval "eval INCLUDE_DIR=$includedir"
3291
3292eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3293
3294eval "eval INFO_DIR=$infodir"
3295
3296eval "eval MAN_DIR=$mandir"
3297
3298
3299# Get full paths to source and build directories
3300srcdirfull="`cd $srcdir && pwd`"
3301builddir="`pwd`"
3302
3303#
3304# Compute variables useful for running uninstalled software.
3305#
3306MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3307MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3308MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3309MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3310DIRSEP=':'
3311case "${build_os}" in
3312 mingw* )
3313 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3314 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3315 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3316 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3317 DIRSEP=';'
3318 ;;
3319esac
3320case "${host_os}" in
3321 mingw* )
3322 DIRSEP=';'
3323 ;;
3324esac
3325
3326
3327
3328
3329
3330
3331# Check for programs
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if test "${ac_cv_prog_CC+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:$LINENO: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375fi
3376if test -z "$ac_cv_prog_CC"; then
3377 ac_ct_CC=$CC
3378 # Extract the first word of "gcc", so it can be a program name with args.
3379set dummy gcc; ac_word=$2
3380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CC="gcc"
3396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399done
3400done
3401IFS=$as_save_IFS
3402
3403fi
3404fi
3405ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408$as_echo "$ac_ct_CC" >&6; }
3409else
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3411$as_echo "no" >&6; }
3412fi
3413
3414 if test "x$ac_ct_CC" = x; then
3415 CC=""
3416 else
3417 case $cross_compiling:$ac_tool_warned in
3418yes:)
3419{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421ac_tool_warned=yes ;;
3422esac
3423 CC=$ac_ct_CC
3424 fi
3425else
3426 CC="$ac_cv_prog_CC"
3427fi
3428
3429if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3432set dummy ${ac_tool_prefix}cc; ac_word=$2
3433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
3435if test "${ac_cv_prog_CC+set}" = set; then
3436 $as_echo_n "(cached) " >&6
3437else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}cc"
3449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452done
3453done
3454IFS=$as_save_IFS
3455
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463 { $as_echo "$as_me:$LINENO: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468 fi
3469fi
3470if test -z "$CC"; then
3471 # Extract the first word of "cc", so it can be a program name with args.
3472set dummy cc; ac_word=$2
3473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474$as_echo_n "checking for $ac_word... " >&6; }
3475if test "${ac_cv_prog_CC+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3477else
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480else
3481 ac_prog_rejected=no
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490 ac_prog_rejected=yes
3491 continue
3492 fi
3493 ac_cv_prog_CC="cc"
3494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497done
3498done
3499IFS=$as_save_IFS
3500
3501if test $ac_prog_rejected = yes; then
3502 # We found a bogon in the path, so make sure we never use it.
3503 set dummy $ac_cv_prog_CC
3504 shift
3505 if test $# != 0; then
3506 # We chose a different compiler from the bogus one.
3507 # However, it has the same basename, so the bogon will be chosen
3508 # first if we set CC to just the basename; use the full file name.
3509 shift
3510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511 fi
3512fi
3513fi
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3518$as_echo "$CC" >&6; }
3519else
3520 { $as_echo "$as_me:$LINENO: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525fi
3526if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog in cl.exe
3529 do
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if test "${ac_cv_prog_CC+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3536else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3560$as_echo "$CC" >&6; }
3561else
3562 { $as_echo "$as_me:$LINENO: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567 test -n "$CC" && break
3568 done
3569fi
3570if test -z "$CC"; then
3571 ac_ct_CC=$CC
3572 for ac_prog in cl.exe
3573do
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575set dummy $ac_prog; ac_word=$2
3576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579 $as_echo_n "(cached) " >&6
3580else
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 ac_cv_prog_ac_ct_CC="$ac_prog"
3592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595done
3596done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602if test -n "$ac_ct_CC"; then
3603 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604$as_echo "$ac_ct_CC" >&6; }
3605else
3606 { $as_echo "$as_me:$LINENO: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611 test -n "$ac_ct_CC" && break
3612done
3613
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618yes:)
3619{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621ac_tool_warned=yes ;;
3622esac
3623 CC=$ac_ct_CC
3624 fi
3625fi
3626
3627fi
3628
3629
3630test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3633See \`config.log' for more details." >&5
3634$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }; }
3637
3638# Provide some information about the compiler.
3639$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3640set X $ac_compile
3641ac_compiler=$2
3642{ (ac_try="$ac_compiler --version >&5"
3643case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
3647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648$as_echo "$ac_try_echo") >&5
3649 (eval "$ac_compiler --version >&5") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }
3653{ (ac_try="$ac_compiler -v >&5"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659$as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compiler -v >&5") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }
3664{ (ac_try="$ac_compiler -V >&5"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670$as_echo "$ac_try_echo") >&5
3671 (eval "$ac_compiler -V >&5") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }
3675
3676cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691ac_clean_files_save=$ac_clean_files
3692ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693# Try to create an executable without -o first, disregard a.out.
3694# It will help us diagnose broken compilers, and finding out an intuition
3695# of exeext.
3696{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3697$as_echo_n "checking for C compiler default output file name... " >&6; }
3698ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700# The possible output files:
3701ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703ac_rmfiles=
3704for ac_file in $ac_files
3705do
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709 esac
3710done
3711rm -f $ac_rmfiles
3712
3713if { (ac_try="$ac_link_default"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719$as_echo "$ac_try_echo") >&5
3720 (eval "$ac_link_default") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726# in a Makefile. We should not override ac_cv_exeext if it was cached,
3727# so that the user can short-circuit this test for compilers unknown to
3728# Autoconf.
3729for ac_file in $ac_files ''
3730do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753done
3754test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756else
3757 ac_file=''
3758fi
3759
3760{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3761$as_echo "$ac_file" >&6; }
3762if test -z "$ac_file"; then
3763 $as_echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3769See \`config.log' for more details." >&5
3770$as_echo "$as_me: error: C compiler cannot create executables
3771See \`config.log' for more details." >&2;}
3772 { (exit 77); exit 77; }; }; }
3773fi
3774
3775ac_exeext=$ac_cv_exeext
3776
3777# Check that the compiler produces executables we can run. If not, either
3778# the compiler is broken, or we cross compile.
3779{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3780$as_echo_n "checking whether the C compiler works... " >&6; }
3781# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3782# If not cross compiling, check that we can run a simple program.
3783if test "$cross_compiling" != yes; then
3784 if { ac_try='./$ac_file'
3785 { (case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3790$as_echo "$ac_try_echo") >&5
3791 (eval "$ac_try") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 cross_compiling=no
3796 else
3797 if test "$cross_compiling" = maybe; then
3798 cross_compiling=yes
3799 else
3800 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3803If you meant to cross compile, use \`--host'.
3804See \`config.log' for more details." >&5
3805$as_echo "$as_me: error: cannot run C compiled programs.
3806If you meant to cross compile, use \`--host'.
3807See \`config.log' for more details." >&2;}
3808 { (exit 1); exit 1; }; }; }
3809 fi
3810 fi
3811fi
3812{ $as_echo "$as_me:$LINENO: result: yes" >&5
3813$as_echo "yes" >&6; }
3814
3815rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3816ac_clean_files=$ac_clean_files_save
3817# Check that the compiler produces executables we can run. If not, either
3818# the compiler is broken, or we cross compile.
3819{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3820$as_echo_n "checking whether we are cross compiling... " >&6; }
3821{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3822$as_echo "$cross_compiling" >&6; }
3823
3824{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3825$as_echo_n "checking for suffix of executables... " >&6; }
3826if { (ac_try="$ac_link"
3827case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832$as_echo "$ac_try_echo") >&5
3833 (eval "$ac_link") 2>&5
3834 ac_status=$?
3835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3839# work properly (i.e., refer to `conftest.exe'), while it won't with
3840# `rm'.
3841for ac_file in conftest.exe conftest conftest.*; do
3842 test -f "$ac_file" || continue
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 break;;
3847 * ) break;;
3848 esac
3849done
3850else
3851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3854See \`config.log' for more details." >&5
3855$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3856See \`config.log' for more details." >&2;}
3857 { (exit 1); exit 1; }; }; }
3858fi
3859
3860rm -f conftest$ac_cv_exeext
3861{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3862$as_echo "$ac_cv_exeext" >&6; }
3863
3864rm -f conftest.$ac_ext
3865EXEEXT=$ac_cv_exeext
3866ac_exeext=$EXEEXT
3867{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3868$as_echo_n "checking for suffix of object files... " >&6; }
3869if test "${ac_cv_objext+set}" = set; then
3870 $as_echo_n "(cached) " >&6
3871else
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.o conftest.obj
3888if { (ac_try="$ac_compile"
3889case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894$as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; then
3899 for ac_file in conftest.o conftest.obj conftest.*; do
3900 test -f "$ac_file" || continue;
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 break;;
3905 esac
3906done
3907else
3908 $as_echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3914See \`config.log' for more details." >&5
3915$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3916See \`config.log' for more details." >&2;}
3917 { (exit 1); exit 1; }; }; }
3918fi
3919
3920rm -f conftest.$ac_cv_objext conftest.$ac_ext
3921fi
3922{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3923$as_echo "$ac_cv_objext" >&6; }
3924OBJEXT=$ac_cv_objext
3925ac_objext=$OBJEXT
3926{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3927$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3928if test "${ac_cv_c_compiler_gnu+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3930else
3931 cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h. */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h. */
3937
3938int
3939main ()
3940{
3941#ifndef __GNUC__
3942 choke me
3943#endif
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (ac_try="$ac_compile"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956$as_echo "$ac_try_echo") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3967 ac_compiler_gnu=yes
3968else
3969 $as_echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_compiler_gnu=no
3973fi
3974
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977
3978fi
3979{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3980$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981if test $ac_compiler_gnu = yes; then
3982 GCC=yes
3983else
3984 GCC=
3985fi
3986ac_test_CFLAGS=${CFLAGS+set}
3987ac_save_CFLAGS=$CFLAGS
3988{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3989$as_echo_n "checking whether $CC accepts -g... " >&6; }
3990if test "${ac_cv_prog_cc_g+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992else
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3995 ac_cv_prog_cc_g=no
3996 CFLAGS="-g"
3997 cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
4003
4004int
4005main ()
4006{
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (ac_try="$ac_compile"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019$as_echo "$ac_try_echo") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 ac_cv_prog_cc_g=yes
4031else
4032 $as_echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 CFLAGS=""
4036 cat >conftest.$ac_ext <<_ACEOF
4037/* confdefs.h. */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058$as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 :
4070else
4071 $as_echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g"
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext
4092if { (ac_try="$ac_compile"
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098$as_echo "$ac_try_echo") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4109 ac_cv_prog_cc_g=yes
4110else
4111 $as_echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114
4115fi
4116
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118fi
4119
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122
4123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125fi
4126{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4127$as_echo "$ac_cv_prog_cc_g" >&6; }
4128if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4132 CFLAGS="-g -O2"
4133 else
4134 CFLAGS="-g"
4135 fi
4136else
4137 if test "$GCC" = yes; then
4138 CFLAGS="-O2"
4139 else
4140 CFLAGS=
4141 fi
4142fi
4143{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4144$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145if test "${ac_cv_prog_cc_c89+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4147else
4148 ac_cv_prog_cc_c89=no
4149ac_save_CC=$CC
4150cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156#include <stdarg.h>
4157#include <stdio.h>
4158#include <sys/types.h>
4159#include <sys/stat.h>
4160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161struct buf { int x; };
4162FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163static char *e (p, i)
4164 char **p;
4165 int i;
4166{
4167 return p[i];
4168}
4169static char *f (char * (*g) (char **, int), char **p, ...)
4170{
4171 char *s;
4172 va_list v;
4173 va_start (v,p);
4174 s = g (p, va_arg (v,int));
4175 va_end (v);
4176 return s;
4177}
4178
4179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187
4188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4190#define FOO(x) 'x'
4191int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192
4193int test (int i, double x);
4194struct s1 {int (*f) (int a);};
4195struct s2 {int (*f) (double a);};
4196int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197int argc;
4198char **argv;
4199int
4200main ()
4201{
4202return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209do
4210 CC="$ac_save_CC $ac_arg"
4211 rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218$as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_prog_cc_c89=$ac_arg
4230else
4231 $as_echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234
4235fi
4236
4237rm -f core conftest.err conftest.$ac_objext
4238 test "x$ac_cv_prog_cc_c89" != "xno" && break
4239done
4240rm -f conftest.$ac_ext
4241CC=$ac_save_CC
4242
4243fi
4244# AC_CACHE_VAL
4245case "x$ac_cv_prog_cc_c89" in
4246 x)
4247 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4248$as_echo "none needed" >&6; } ;;
4249 xno)
4250 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4251$as_echo "unsupported" >&6; } ;;
4252 *)
4253 CC="$CC $ac_cv_prog_cc_c89"
4254 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4255$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4256esac
4257
4258
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264DEPDIR="${am__leading_dot}deps"
4265
4266ac_config_commands="$ac_config_commands depfiles"
4267
4268
4269am_make=${MAKE-make}
4270cat > confinc << 'END'
4271am__doit:
4272 @echo this is the am__doit target
4273.PHONY: am__doit
4274END
4275# If we don't find an include directive, just comment out the code.
4276{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4277$as_echo_n "checking for style of include used by $am_make... " >&6; }
4278am__include="#"
4279am__quote=
4280_am_result=none
4281# First try GNU make style include.
4282echo "include confinc" > confmf
4283# Ignore all kinds of additional output from `make'.
4284case `$am_make -s -f confmf 2> /dev/null` in #(
4285*the\ am__doit\ target*)
4286 am__include=include
4287 am__quote=
4288 _am_result=GNU
4289 ;;
4290esac
4291# Now try BSD make style include.
4292if test "$am__include" = "#"; then
4293 echo '.include "confinc"' > confmf
4294 case `$am_make -s -f confmf 2> /dev/null` in #(
4295 *the\ am__doit\ target*)
4296 am__include=.include
4297 am__quote="\""
4298 _am_result=BSD
4299 ;;
4300 esac
4301fi
4302
4303
4304{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4305$as_echo "$_am_result" >&6; }
4306rm -f confinc confmf
4307
4308# Check whether --enable-dependency-tracking was given.
4309if test "${enable_dependency_tracking+set}" = set; then
4310 enableval=$enable_dependency_tracking;
4311fi
4312
4313if test "x$enable_dependency_tracking" != xno; then
4314 am_depcomp="$ac_aux_dir/depcomp"
4315 AMDEPBACKSLASH='\'
4316fi
4317 if test "x$enable_dependency_tracking" != xno; then
4318 AMDEP_TRUE=
4319 AMDEP_FALSE='#'
4320else
4321 AMDEP_TRUE='#'
4322 AMDEP_FALSE=
4323fi
4324
4325
4326
4327depcc="$CC" am_compiler_list=
4328
4329{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4330$as_echo_n "checking dependency style of $depcc... " >&6; }
4331if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4333else
4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335 # We make a subdir and do the tests there. Otherwise we can end up
4336 # making bogus files that we don't know about and never remove. For
4337 # instance it was reported that on HP-UX the gcc test will end up
4338 # making a dummy file named `D' -- because `-MD' means `put the output
4339 # in D'.
4340 mkdir conftest.dir
4341 # Copy depcomp to subdir because otherwise we won't find it if we're
4342 # using a relative directory.
4343 cp "$am_depcomp" conftest.dir
4344 cd conftest.dir
4345 # We will build objects and dependencies in a subdirectory because
4346 # it helps to detect inapplicable dependency modes. For instance
4347 # both Tru64's cc and ICC support -MD to output dependencies as a
4348 # side effect of compilation, but ICC will put the dependencies in
4349 # the current directory while Tru64 will put them in the object
4350 # directory.
4351 mkdir sub
4352
4353 am_cv_CC_dependencies_compiler_type=none
4354 if test "$am_compiler_list" = ""; then
4355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 fi
4357 am__universal=false
4358 case " $depcc " in #(
4359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4360 esac
4361
4362 for depmode in $am_compiler_list; do
4363 # Setup a source with many dependencies, because some compilers
4364 # like to wrap large dependency lists on column 80 (with \), and
4365 # we should not choose a depcomp mode which is confused by this.
4366 #
4367 # We need to recreate these files for each test, as the compiler may
4368 # overwrite some of them when testing with obscure command lines.
4369 # This happens at least with the AIX C compiler.
4370 : > sub/conftest.c
4371 for i in 1 2 3 4 5 6; do
4372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374 # Solaris 8's {/usr,}/bin/sh.
4375 touch sub/conftst$i.h
4376 done
4377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378
4379 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4380 # mode. It turns out that the SunPro C++ compiler does not properly
4381 # handle `-M -o', and we need to detect this. Also, some Intel
4382 # versions had trouble with output in subdirs
4383 am__obj=sub/conftest.${OBJEXT-o}
4384 am__minus_obj="-o $am__obj"
4385 case $depmode in
4386 gcc)
4387 # This depmode causes a compiler race in universal mode.
4388 test "$am__universal" = false || continue
4389 ;;
4390 nosideeffect)
4391 # after this tag, mechanisms are not by side-effect, so they'll
4392 # only be used when explicitly requested
4393 if test "x$enable_dependency_tracking" = xyes; then
4394 continue
4395 else
4396 break
4397 fi
4398 ;;
4399 msvisualcpp | msvcmsys)
4400 # This compiler won't grok `-c -o', but also, the minuso test has
4401 # not run yet. These depmodes are late enough in the game, and
4402 # so weak that their functioning should not be impacted.
4403 am__obj=conftest.${OBJEXT-o}
4404 am__minus_obj=
4405 ;;
4406 none) break ;;
4407 esac
4408 if depmode=$depmode \
4409 source=sub/conftest.c object=$am__obj \
4410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4412 >/dev/null 2>conftest.err &&
4413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4427 break
4428 fi
4429 fi
4430 done
4431
4432 cd ..
4433 rm -rf conftest.dir
4434else
4435 am_cv_CC_dependencies_compiler_type=none
4436fi
4437
4438fi
4439{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442
4443 if
4444 test "x$enable_dependency_tracking" != xno \
4445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4446 am__fastdepCC_TRUE=
4447 am__fastdepCC_FALSE='#'
4448else
4449 am__fastdepCC_TRUE='#'
4450 am__fastdepCC_FALSE=
4451fi
4452
4453
4454 case $ac_cv_prog_cc_stdc in
4455 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4456 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4457$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4458if test "${ac_cv_prog_cc_c99+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4460else
4461 ac_cv_prog_cc_c99=no
4462ac_save_CC=$CC
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <stdarg.h>
4470#include <stdbool.h>
4471#include <stdlib.h>
4472#include <wchar.h>
4473#include <stdio.h>
4474
4475// Check varargs macros. These examples are taken from C99 6.10.3.5.
4476#define debug(...) fprintf (stderr, __VA_ARGS__)
4477#define showlist(...) puts (#__VA_ARGS__)
4478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4479static void
4480test_varargs_macros (void)
4481{
4482 int x = 1234;
4483 int y = 5678;
4484 debug ("Flag");
4485 debug ("X = %d\n", x);
4486 showlist (The first, second, and third items.);
4487 report (x>y, "x is %d but y is %d", x, y);
4488}
4489
4490// Check long long types.
4491#define BIG64 18446744073709551615ull
4492#define BIG32 4294967295ul
4493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4494#if !BIG_OK
4495 your preprocessor is broken;
4496#endif
4497#if BIG_OK
4498#else
4499 your preprocessor is broken;
4500#endif
4501static long long int bignum = -9223372036854775807LL;
4502static unsigned long long int ubignum = BIG64;
4503
4504struct incomplete_array
4505{
4506 int datasize;
4507 double data[];
4508};
4509
4510struct named_init {
4511 int number;
4512 const wchar_t *name;
4513 double average;
4514};
4515
4516typedef const char *ccp;
4517
4518static inline int
4519test_restrict (ccp restrict text)
4520{
4521 // See if C++-style comments work.
4522 // Iterate through items via the restricted pointer.
4523 // Also check for declarations in for loops.
4524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4525 continue;
4526 return 0;
4527}
4528
4529// Check varargs and va_copy.
4530static void
4531test_varargs (const char *format, ...)
4532{
4533 va_list args;
4534 va_start (args, format);
4535 va_list args_copy;
4536 va_copy (args_copy, args);
4537
4538 const char *str;
4539 int number;
4540 float fnumber;
4541
4542 while (*format)
4543 {
4544 switch (*format++)
4545 {
4546 case 's': // string
4547 str = va_arg (args_copy, const char *);
4548 break;
4549 case 'd': // int
4550 number = va_arg (args_copy, int);
4551 break;
4552 case 'f': // float
4553 fnumber = va_arg (args_copy, double);
4554 break;
4555 default:
4556 break;
4557 }
4558 }
4559 va_end (args_copy);
4560 va_end (args);
4561}
4562
4563int
4564main ()
4565{
4566
4567 // Check bool.
4568 _Bool success = false;
4569
4570 // Check restrict.
4571 if (test_restrict ("String literal") == 0)
4572 success = true;
4573 char *restrict newvar = "Another string";
4574
4575 // Check varargs.
4576 test_varargs ("s, d' f .", "string", 65, 34.234);
4577 test_varargs_macros ();
4578
4579 // Check flexible array members.
4580 struct incomplete_array *ia =
4581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4582 ia->datasize = 10;
4583 for (int i = 0; i < ia->datasize; ++i)
4584 ia->data[i] = i * 1.234;
4585
4586 // Check named initializers.
4587 struct named_init ni = {
4588 .number = 34,
4589 .name = L"Test wide string",
4590 .average = 543.34343,
4591 };
4592
4593 ni.number = 58;
4594
4595 int dynamic_array[ni.number];
4596 dynamic_array[ni.number - 1] = 543;
4597
4598 // work around unused variable warnings
4599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4600 || dynamic_array[ni.number - 1] != 543);
4601
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4607do
4608 CC="$ac_save_CC $ac_arg"
4609 rm -f conftest.$ac_objext
4610if { (ac_try="$ac_compile"
4611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
4615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616$as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 ac_cv_prog_cc_c99=$ac_arg
4628else
4629 $as_echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632
4633fi
4634
4635rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c99" != "xno" && break
4637done
4638rm -f conftest.$ac_ext
4639CC=$ac_save_CC
4640
4641fi
4642# AC_CACHE_VAL
4643case "x$ac_cv_prog_cc_c99" in
4644 x)
4645 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4646$as_echo "none needed" >&6; } ;;
4647 xno)
4648 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4649$as_echo "unsupported" >&6; } ;;
4650 *)
4651 CC="$CC $ac_cv_prog_cc_c99"
4652 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4653$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4654esac
4655if test "x$ac_cv_prog_cc_c99" != xno; then
4656 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4657else
4658 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660if test "${ac_cv_prog_cc_c89+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4662else
4663 ac_cv_prog_cc_c89=no
4664ac_save_CC=$CC
4665cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h. */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h. */
4671#include <stdarg.h>
4672#include <stdio.h>
4673#include <sys/types.h>
4674#include <sys/stat.h>
4675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4676struct buf { int x; };
4677FILE * (*rcsopen) (struct buf *, struct stat *, int);
4678static char *e (p, i)
4679 char **p;
4680 int i;
4681{
4682 return p[i];
4683}
4684static char *f (char * (*g) (char **, int), char **p, ...)
4685{
4686 char *s;
4687 va_list v;
4688 va_start (v,p);
4689 s = g (p, va_arg (v,int));
4690 va_end (v);
4691 return s;
4692}
4693
4694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4695 function prototypes and stuff, but not '\xHH' hex character constants.
4696 These don't provoke an error unfortunately, instead are silently treated
4697 as 'x'. The following induces an error, until -std is added to get
4698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4699 array size at least. It's necessary to write '\x00'==0 to get something
4700 that's true only with -std. */
4701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4702
4703/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4704 inside strings and character constants. */
4705#define FOO(x) 'x'
4706int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4707
4708int test (int i, double x);
4709struct s1 {int (*f) (int a);};
4710struct s2 {int (*f) (double a);};
4711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4712int argc;
4713char **argv;
4714int
4715main ()
4716{
4717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4724do
4725 CC="$ac_save_CC $ac_arg"
4726 rm -f conftest.$ac_objext
4727if { (ac_try="$ac_compile"
4728case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731esac
4732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733$as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
4744 ac_cv_prog_cc_c89=$ac_arg
4745else
4746 $as_echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749
4750fi
4751
4752rm -f core conftest.err conftest.$ac_objext
4753 test "x$ac_cv_prog_cc_c89" != "xno" && break
4754done
4755rm -f conftest.$ac_ext
4756CC=$ac_save_CC
4757
4758fi
4759# AC_CACHE_VAL
4760case "x$ac_cv_prog_cc_c89" in
4761 x)
4762 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4763$as_echo "none needed" >&6; } ;;
4764 xno)
4765 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4766$as_echo "unsupported" >&6; } ;;
4767 *)
4768 CC="$CC $ac_cv_prog_cc_c89"
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4770$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4771esac
4772if test "x$ac_cv_prog_cc_c89" != xno; then
4773 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4774else
4775 ac_cv_prog_cc_stdc=no
4776fi
4777
4778
4779fi
4780
4781 ;;
4782esac
4783 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4784$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4785 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4787fi
4788
4789 case $ac_cv_prog_cc_stdc in
4790 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4791$as_echo "unsupported" >&6; } ;;
4792 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4793$as_echo "none needed" >&6; } ;;
4794 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4795$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4796esac
4797
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4805$as_echo_n "checking how to run the C preprocessor... " >&6; }
4806# On Suns, sometimes $CPP names a directory.
4807if test -n "$CPP" && test -d "$CPP"; then
4808 CPP=
4809fi
4810if test -z "$CPP"; then
4811 if test "${ac_cv_prog_CPP+set}" = set; then
4812 $as_echo_n "(cached) " >&6
4813else
4814 # Double quotes because CPP needs to be expanded
4815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4816 do
4817 ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.$ac_ext <<_ACEOF
4827/* confdefs.h. */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h. */
4832#ifdef __STDC__
4833# include <limits.h>
4834#else
4835# include <assert.h>
4836#endif
4837 Syntax error
4838_ACEOF
4839if { (ac_try="$ac_cpp conftest.$ac_ext"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845$as_echo "$ac_try_echo") >&5
4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null && {
4853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 }; then
4856 :
4857else
4858 $as_echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 # Broken: fails on valid input.
4862continue
4863fi
4864
4865rm -f conftest.err conftest.$ac_ext
4866
4867 # OK, works on sane cases. Now check whether nonexistent headers
4868 # can be detected and how.
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include <ac_nonexistent.h>
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883$as_echo "$ac_try_echo") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 }; then
4894 # Broken: success on invalid input.
4895continue
4896else
4897 $as_echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 # Passes both tests.
4901ac_preproc_ok=:
4902break
4903fi
4904
4905rm -f conftest.err conftest.$ac_ext
4906
4907done
4908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909rm -f conftest.err conftest.$ac_ext
4910if $ac_preproc_ok; then
4911 break
4912fi
4913
4914 done
4915 ac_cv_prog_CPP=$CPP
4916
4917fi
4918 CPP=$ac_cv_prog_CPP
4919else
4920 ac_cv_prog_CPP=$CPP
4921fi
4922{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4923$as_echo "$CPP" >&6; }
4924ac_preproc_ok=false
4925for ac_c_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944 Syntax error
4945_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4952$as_echo "$ac_try_echo") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 }; then
4963 :
4964else
4965 $as_echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 # Broken: fails on valid input.
4969continue
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982#include <ac_nonexistent.h>
4983_ACEOF
4984if { (ac_try="$ac_cpp conftest.$ac_ext"
4985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
4989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990$as_echo "$ac_try_echo") >&5
4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
5001 # Broken: success on invalid input.
5002continue
5003else
5004 $as_echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 # Passes both tests.
5008ac_preproc_ok=:
5009break
5010fi
5011
5012rm -f conftest.err conftest.$ac_ext
5013
5014done
5015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016rm -f conftest.err conftest.$ac_ext
5017if $ac_preproc_ok; then
5018 :
5019else
5020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5023See \`config.log' for more details." >&5
5024$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5025See \`config.log' for more details." >&2;}
5026 { (exit 1); exit 1; }; }; }
5027fi
5028
5029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5036$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5037if test "${ac_cv_path_SED+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039else
5040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5041 for ac_i in 1 2 3 4 5 6 7; do
5042 ac_script="$ac_script$as_nl$ac_script"
5043 done
5044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5045 $as_unset ac_script || ac_script=
5046 if test -z "$SED"; then
5047 ac_path_SED_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in sed gsed; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5058# Check for GNU ac_path_SED and select it if it is found.
5059 # Check for GNU $ac_path_SED
5060case `"$ac_path_SED" --version 2>&1` in
5061*GNU*)
5062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5063*)
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5067 do
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo '' >> "conftest.nl"
5072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 ac_count=`expr $ac_count + 1`
5075 if test $ac_count -gt ${ac_path_SED_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_SED="$ac_path_SED"
5078 ac_path_SED_max=$ac_count
5079 fi
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084esac
5085
5086 $ac_path_SED_found && break 3
5087 done
5088 done
5089done
5090IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_SED"; then
5092 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5093$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5094 { (exit 1); exit 1; }; }
5095 fi
5096else
5097 ac_cv_path_SED=$SED
5098fi
5099
5100fi
5101{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5102$as_echo "$ac_cv_path_SED" >&6; }
5103 SED="$ac_cv_path_SED"
5104 rm -f conftest.sed
5105
5106test -z "$SED" && SED=sed
5107Xsed="$SED -e 1s/^X//"
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5120$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5121if test "${ac_cv_path_GREP+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5123else
5124 if test -z "$GREP"; then
5125 ac_path_GREP_found=false
5126 # Loop through the user's path and test for each of PROGNAME-LIST
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_prog in grep ggrep; do
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5135 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5136# Check for GNU ac_path_GREP and select it if it is found.
5137 # Check for GNU $ac_path_GREP
5138case `"$ac_path_GREP" --version 2>&1` in
5139*GNU*)
5140 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5141*)
5142 ac_count=0
5143 $as_echo_n 0123456789 >"conftest.in"
5144 while :
5145 do
5146 cat "conftest.in" "conftest.in" >"conftest.tmp"
5147 mv "conftest.tmp" "conftest.in"
5148 cp "conftest.in" "conftest.nl"
5149 $as_echo 'GREP' >> "conftest.nl"
5150 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152 ac_count=`expr $ac_count + 1`
5153 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5154 # Best one so far, save it but keep looking for a better one
5155 ac_cv_path_GREP="$ac_path_GREP"
5156 ac_path_GREP_max=$ac_count
5157 fi
5158 # 10*(2^10) chars as input seems more than enough
5159 test $ac_count -gt 10 && break
5160 done
5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5162esac
5163
5164 $ac_path_GREP_found && break 3
5165 done
5166 done
5167done
5168IFS=$as_save_IFS
5169 if test -z "$ac_cv_path_GREP"; then
5170 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5171$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5172 { (exit 1); exit 1; }; }
5173 fi
5174else
5175 ac_cv_path_GREP=$GREP
5176fi
5177
5178fi
5179{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5180$as_echo "$ac_cv_path_GREP" >&6; }
5181 GREP="$ac_cv_path_GREP"
5182
5183
5184{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5185$as_echo_n "checking for egrep... " >&6; }
5186if test "${ac_cv_path_EGREP+set}" = set; then
5187 $as_echo_n "(cached) " >&6
5188else
5189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5190 then ac_cv_path_EGREP="$GREP -E"
5191 else
5192 if test -z "$EGREP"; then
5193 ac_path_EGREP_found=false
5194 # Loop through the user's path and test for each of PROGNAME-LIST
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_prog in egrep; do
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5203 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5204# Check for GNU ac_path_EGREP and select it if it is found.
5205 # Check for GNU $ac_path_EGREP
5206case `"$ac_path_EGREP" --version 2>&1` in
5207*GNU*)
5208 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5209*)
5210 ac_count=0
5211 $as_echo_n 0123456789 >"conftest.in"
5212 while :
5213 do
5214 cat "conftest.in" "conftest.in" >"conftest.tmp"
5215 mv "conftest.tmp" "conftest.in"
5216 cp "conftest.in" "conftest.nl"
5217 $as_echo 'EGREP' >> "conftest.nl"
5218 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220 ac_count=`expr $ac_count + 1`
5221 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5222 # Best one so far, save it but keep looking for a better one
5223 ac_cv_path_EGREP="$ac_path_EGREP"
5224 ac_path_EGREP_max=$ac_count
5225 fi
5226 # 10*(2^10) chars as input seems more than enough
5227 test $ac_count -gt 10 && break
5228 done
5229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5230esac
5231
5232 $ac_path_EGREP_found && break 3
5233 done
5234 done
5235done
5236IFS=$as_save_IFS
5237 if test -z "$ac_cv_path_EGREP"; then
5238 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5239$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5240 { (exit 1); exit 1; }; }
5241 fi
5242else
5243 ac_cv_path_EGREP=$EGREP
5244fi
5245
5246 fi
5247fi
5248{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5249$as_echo "$ac_cv_path_EGREP" >&6; }
5250 EGREP="$ac_cv_path_EGREP"
5251
5252
5253{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5254$as_echo_n "checking for fgrep... " >&6; }
5255if test "${ac_cv_path_FGREP+set}" = set; then
5256 $as_echo_n "(cached) " >&6
5257else
5258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5259 then ac_cv_path_FGREP="$GREP -F"
5260 else
5261 if test -z "$FGREP"; then
5262 ac_path_FGREP_found=false
5263 # Loop through the user's path and test for each of PROGNAME-LIST
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_prog in fgrep; do
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5272 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5273# Check for GNU ac_path_FGREP and select it if it is found.
5274 # Check for GNU $ac_path_FGREP
5275case `"$ac_path_FGREP" --version 2>&1` in
5276*GNU*)
5277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5278*)
5279 ac_count=0
5280 $as_echo_n 0123456789 >"conftest.in"
5281 while :
5282 do
5283 cat "conftest.in" "conftest.in" >"conftest.tmp"
5284 mv "conftest.tmp" "conftest.in"
5285 cp "conftest.in" "conftest.nl"
5286 $as_echo 'FGREP' >> "conftest.nl"
5287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289 ac_count=`expr $ac_count + 1`
5290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5291 # Best one so far, save it but keep looking for a better one
5292 ac_cv_path_FGREP="$ac_path_FGREP"
5293 ac_path_FGREP_max=$ac_count
5294 fi
5295 # 10*(2^10) chars as input seems more than enough
5296 test $ac_count -gt 10 && break
5297 done
5298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301 $ac_path_FGREP_found && break 3
5302 done
5303 done
5304done
5305IFS=$as_save_IFS
5306 if test -z "$ac_cv_path_FGREP"; then
5307 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5308$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5309 { (exit 1); exit 1; }; }
5310 fi
5311else
5312 ac_cv_path_FGREP=$FGREP
5313fi
5314
5315 fi
5316fi
5317{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5318$as_echo "$ac_cv_path_FGREP" >&6; }
5319 FGREP="$ac_cv_path_FGREP"
5320
5321
5322test -z "$GREP" && GREP=grep
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342# Check whether --with-gnu-ld was given.
5343if test "${with_gnu_ld+set}" = set; then
5344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5345else
5346 with_gnu_ld=no
5347fi
5348
5349ac_prog=ld
5350if test "$GCC" = yes; then
5351 # Check if gcc -print-prog-name=ld gives a path.
5352 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5353$as_echo_n "checking for ld used by $CC... " >&6; }
5354 case $host in
5355 *-*-mingw*)
5356 # gcc leaves a trailing carriage return which upsets mingw
5357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5358 *)
5359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5360 esac
5361 case $ac_prog in
5362 # Accept absolute paths.
5363 [\\/]* | ?:[\\/]*)
5364 re_direlt='/[^/][^/]*/\.\./'
5365 # Canonicalize the pathname of ld
5366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5369 done
5370 test -z "$LD" && LD="$ac_prog"
5371 ;;
5372 "")
5373 # If it fails, then pretend we aren't using GCC.
5374 ac_prog=ld
5375 ;;
5376 *)
5377 # If it is relative, then search for the first ld in PATH.
5378 with_gnu_ld=unknown
5379 ;;
5380 esac
5381elif test "$with_gnu_ld" = yes; then
5382 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5383$as_echo_n "checking for GNU ld... " >&6; }
5384else
5385 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5386$as_echo_n "checking for non-GNU ld... " >&6; }
5387fi
5388if test "${lt_cv_path_LD+set}" = set; then
5389 $as_echo_n "(cached) " >&6
5390else
5391 if test -z "$LD"; then
5392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5393 for ac_dir in $PATH; do
5394 IFS="$lt_save_ifs"
5395 test -z "$ac_dir" && ac_dir=.
5396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5397 lt_cv_path_LD="$ac_dir/$ac_prog"
5398 # Check to see if the program is GNU ld. I'd rather use --version,
5399 # but apparently some variants of GNU ld only accept -v.
5400 # Break only if it was the GNU/non-GNU ld that we prefer.
5401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403 test "$with_gnu_ld" != no && break
5404 ;;
5405 *)
5406 test "$with_gnu_ld" != yes && break
5407 ;;
5408 esac
5409 fi
5410 done
5411 IFS="$lt_save_ifs"
5412else
5413 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5414fi
5415fi
5416
5417LD="$lt_cv_path_LD"
5418if test -n "$LD"; then
5419 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5420$as_echo "$LD" >&6; }
5421else
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5426$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5427 { (exit 1); exit 1; }; }
5428{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5429$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5430if test "${lt_cv_prog_gnu_ld+set}" = set; then
5431 $as_echo_n "(cached) " >&6
5432else
5433 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5434case `$LD -v 2>&1 </dev/null` in
5435*GNU* | *'with BFD'*)
5436 lt_cv_prog_gnu_ld=yes
5437 ;;
5438*)
5439 lt_cv_prog_gnu_ld=no
5440 ;;
5441esac
5442fi
5443{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5444$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5445with_gnu_ld=$lt_cv_prog_gnu_ld
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if test "${ac_cv_prog_RANLIB+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5462else
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483RANLIB=$ac_cv_prog_RANLIB
5484if test -n "$RANLIB"; then
5485 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5486$as_echo "$RANLIB" >&6; }
5487else
5488 { $as_echo "$as_me:$LINENO: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492
5493fi
5494if test -z "$ac_cv_prog_RANLIB"; then
5495 ac_ct_RANLIB=$RANLIB
5496 # Extract the first word of "ranlib", so it can be a program name with args.
5497set dummy ranlib; ac_word=$2
5498{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -n "$ac_ct_RANLIB"; then
5504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_RANLIB="ranlib"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5524if test -n "$ac_ct_RANLIB"; then
5525 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5526$as_echo "$ac_ct_RANLIB" >&6; }
5527else
5528 { $as_echo "$as_me:$LINENO: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532 if test "x$ac_ct_RANLIB" = x; then
5533 RANLIB=":"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541 RANLIB=$ac_ct_RANLIB
5542 fi
5543else
5544 RANLIB="$ac_cv_prog_RANLIB"
5545fi
5546
5547
5548if test "x$CC" != xcc; then
5549 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5550$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5551else
5552 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5553$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5554fi
5555set dummy $CC; ac_cc=`$as_echo "$2" |
5556 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5557if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5558 $as_echo_n "(cached) " >&6
5559else
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566
5567int
5568main ()
5569{
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575# Make sure it works both with $CC and with simple cc.
5576# We do the test twice because some compilers refuse to overwrite an
5577# existing .o file with -o, though they will create one.
5578ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5579rm -f conftest2.*
5580if { (case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585$as_echo "$ac_try_echo") >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595$as_echo "$ac_try_echo") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); };
5600then
5601 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602 if test "x$CC" != xcc; then
5603 # Test first that cc exists at all.
5604 if { ac_try='cc -c conftest.$ac_ext >&5'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608esac
5609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5610$as_echo "$ac_try_echo") >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5616 rm -f conftest2.*
5617 if { (case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622$as_echo "$ac_try_echo") >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632$as_echo "$ac_try_echo") >&5
5633 (eval "$ac_try") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); };
5637 then
5638 # cc works too.
5639 :
5640 else
5641 # cc exists but doesn't like -o.
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5643 fi
5644 fi
5645 fi
5646else
5647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5648fi
5649rm -f core conftest*
5650
5651fi
5652if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5653 { $as_echo "$as_me:$LINENO: result: yes" >&5
5654$as_echo "yes" >&6; }
5655else
5656 { $as_echo "$as_me:$LINENO: result: no" >&5
5657$as_echo "no" >&6; }
5658
5659cat >>confdefs.h <<\_ACEOF
5660#define NO_MINUS_C_MINUS_O 1
5661_ACEOF
5662
5663fi
5664
5665# FIXME: we rely on the cache variable name because
5666# there is no other way.
5667set dummy $CC
5668am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5669eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5670if test "$am_t" != yes; then
5671 # Losing compiler, so override with the script.
5672 # FIXME: It is wrong to rewrite CC.
5673 # But if we don't then we get into trouble of one sort or another.
5674 # A longer-term fix would be to have automake use am__CC in this case,
5675 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5676 CC="$am_aux_dir/compile $CC"
5677fi
5678
5679
5680# Find a good install program. We prefer a C program (faster),
5681# so one script is as good as another. But avoid the broken or
5682# incompatible versions:
5683# SysV /etc/install, /usr/sbin/install
5684# SunOS /usr/etc/install
5685# IRIX /sbin/install
5686# AIX /bin/install
5687# AmigaOS /C/install, which installs bootblocks on floppy discs
5688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5691# OS/2's system install, which has a completely different semantic
5692# ./install, which can be erroneously created by make from ./install.sh.
5693# Reject install programs that cannot install multiple files.
5694{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5695$as_echo_n "checking for a BSD-compatible install... " >&6; }
5696if test -z "$INSTALL"; then
5697if test "${ac_cv_path_install+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 # Account for people who put trailing slashes in PATH elements.
5706case $as_dir/ in
5707 ./ | .// | /cC/* | \
5708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5710 /usr/ucb/* ) ;;
5711 *)
5712 # OSF1 and SCO ODT 3.0 have their own names for install.
5713 # Don't use installbsd from OSF since it installs stuff as root
5714 # by default.
5715 for ac_prog in ginstall scoinst install; do
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5718 if test $ac_prog = install &&
5719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5720 # AIX install. It has an incompatible calling convention.
5721 :
5722 elif test $ac_prog = install &&
5723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5724 # program-specific install script used by HP pwplus--don't use.
5725 :
5726 else
5727 rm -rf conftest.one conftest.two conftest.dir
5728 echo one > conftest.one
5729 echo two > conftest.two
5730 mkdir conftest.dir
5731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5732 test -s conftest.one && test -s conftest.two &&
5733 test -s conftest.dir/conftest.one &&
5734 test -s conftest.dir/conftest.two
5735 then
5736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5737 break 3
5738 fi
5739 fi
5740 fi
5741 done
5742 done
5743 ;;
5744esac
5745
5746done
5747IFS=$as_save_IFS
5748
5749rm -rf conftest.one conftest.two conftest.dir
5750
5751fi
5752 if test "${ac_cv_path_install+set}" = set; then
5753 INSTALL=$ac_cv_path_install
5754 else
5755 # As a last resort, use the slow shell script. Don't cache a
5756 # value for INSTALL within a source directory, because that will
5757 # break other packages using the cache if that directory is
5758 # removed, or if the value is a relative name.
5759 INSTALL=$ac_install_sh
5760 fi
5761fi
5762{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5763$as_echo "$INSTALL" >&6; }
5764
5765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5766# It thinks the first close brace ends the variable substitution.
5767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5768
5769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5770
5771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5772
5773{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5774$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5775set x ${MAKE-make}
5776ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5777if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5778 $as_echo_n "(cached) " >&6
5779else
5780 cat >conftest.make <<\_ACEOF
5781SHELL = /bin/sh
5782all:
5783 @echo '@@@%%%=$(MAKE)=@@@%%%'
5784_ACEOF
5785# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5786case `${MAKE-make} -f conftest.make 2>/dev/null` in
5787 *@@@%%%=?*=@@@%%%*)
5788 eval ac_cv_prog_make_${ac_make}_set=yes;;
5789 *)
5790 eval ac_cv_prog_make_${ac_make}_set=no;;
5791esac
5792rm -f conftest.make
5793fi
5794if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5795 { $as_echo "$as_me:$LINENO: result: yes" >&5
5796$as_echo "yes" >&6; }
5797 SET_MAKE=
5798else
5799 { $as_echo "$as_me:$LINENO: result: no" >&5
5800$as_echo "no" >&6; }
5801 SET_MAKE="MAKE=${MAKE-make}"
5802fi
5803
5804ac_ext=cpp
5805ac_cpp='$CXXCPP $CPPFLAGS'
5806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809if test -z "$CXX"; then
5810 if test -n "$CCC"; then
5811 CXX=$CCC
5812 else
5813 if test -n "$ac_tool_prefix"; then
5814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5815 do
5816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if test "${ac_cv_prog_CXX+set}" = set; then
5821 $as_echo_n "(cached) " >&6
5822else
5823 if test -n "$CXX"; then
5824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837done
5838done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843CXX=$ac_cv_prog_CXX
5844if test -n "$CXX"; then
5845 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5846$as_echo "$CXX" >&6; }
5847else
5848 { $as_echo "$as_me:$LINENO: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852
5853 test -n "$CXX" && break
5854 done
5855fi
5856if test -z "$CXX"; then
5857 ac_ct_CXX=$CXX
5858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5859do
5860 # Extract the first word of "$ac_prog", so it can be a program name with args.
5861set dummy $ac_prog; ac_word=$2
5862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5865 $as_echo_n "(cached) " >&6
5866else
5867 if test -n "$ac_ct_CXX"; then
5868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_ac_ct_CXX="$ac_prog"
5878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881done
5882done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5888if test -n "$ac_ct_CXX"; then
5889 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5890$as_echo "$ac_ct_CXX" >&6; }
5891else
5892 { $as_echo "$as_me:$LINENO: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897 test -n "$ac_ct_CXX" && break
5898done
5899
5900 if test "x$ac_ct_CXX" = x; then
5901 CXX="g++"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909 CXX=$ac_ct_CXX
5910 fi
5911fi
5912
5913 fi
5914fi
5915# Provide some information about the compiler.
5916$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5917set X $ac_compile
5918ac_compiler=$2
5919{ (ac_try="$ac_compiler --version >&5"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5925$as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compiler --version >&5") 2>&5
5927 ac_status=$?
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }
5930{ (ac_try="$ac_compiler -v >&5"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936$as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compiler -v >&5") 2>&5
5938 ac_status=$?
5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941{ (ac_try="$ac_compiler -V >&5"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947$as_echo "$ac_try_echo") >&5
5948 (eval "$ac_compiler -V >&5") 2>&5
5949 ac_status=$?
5950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }
5952
5953{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5954$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5955if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5956 $as_echo_n "(cached) " >&6
5957else
5958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964
5965int
5966main ()
5967{
5968#ifndef __GNUC__
5969 choke me
5970#endif
5971
5972 ;
5973 return 0;
5974}
5975_ACEOF
5976rm -f conftest.$ac_objext
5977if { (ac_try="$ac_compile"
5978case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983$as_echo "$ac_try_echo") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_cxx_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_compiler_gnu=yes
5995else
5996 $as_echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_compiler_gnu=no
6000fi
6001
6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6004
6005fi
6006{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6007$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6008if test $ac_compiler_gnu = yes; then
6009 GXX=yes
6010else
6011 GXX=
6012fi
6013ac_test_CXXFLAGS=${CXXFLAGS+set}
6014ac_save_CXXFLAGS=$CXXFLAGS
6015{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6016$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6017if test "${ac_cv_prog_cxx_g+set}" = set; then
6018 $as_echo_n "(cached) " >&6
6019else
6020 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6021 ac_cxx_werror_flag=yes
6022 ac_cv_prog_cxx_g=no
6023 CXXFLAGS="-g"
6024 cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h. */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h. */
6030
6031int
6032main ()
6033{
6034
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039rm -f conftest.$ac_objext
6040if { (ac_try="$ac_compile"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046$as_echo "$ac_try_echo") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_cxx_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_prog_cxx_g=yes
6058else
6059 $as_echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 CXXFLAGS=""
6063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069
6070int
6071main ()
6072{
6073
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6085$as_echo "$ac_try_echo") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && {
6093 test -z "$ac_cxx_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
6096 :
6097else
6098 $as_echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6102 CXXFLAGS="-g"
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109
6110int
6111main ()
6112{
6113
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (ac_try="$ac_compile"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_cxx_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6136 ac_cv_prog_cxx_g=yes
6137else
6138 $as_echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149
6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6152fi
6153{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6154$as_echo "$ac_cv_prog_cxx_g" >&6; }
6155if test "$ac_test_CXXFLAGS" = set; then
6156 CXXFLAGS=$ac_save_CXXFLAGS
6157elif test $ac_cv_prog_cxx_g = yes; then
6158 if test "$GXX" = yes; then
6159 CXXFLAGS="-g -O2"
6160 else
6161 CXXFLAGS="-g"
6162 fi
6163else
6164 if test "$GXX" = yes; then
6165 CXXFLAGS="-O2"
6166 else
6167 CXXFLAGS=
6168 fi
6169fi
6170ac_ext=c
6171ac_cpp='$CPP $CPPFLAGS'
6172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176depcc="$CXX" am_compiler_list=
6177
6178{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6179$as_echo_n "checking dependency style of $depcc... " >&6; }
6180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6181 $as_echo_n "(cached) " >&6
6182else
6183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6184 # We make a subdir and do the tests there. Otherwise we can end up
6185 # making bogus files that we don't know about and never remove. For
6186 # instance it was reported that on HP-UX the gcc test will end up
6187 # making a dummy file named `D' -- because `-MD' means `put the output
6188 # in D'.
6189 mkdir conftest.dir
6190 # Copy depcomp to subdir because otherwise we won't find it if we're
6191 # using a relative directory.
6192 cp "$am_depcomp" conftest.dir
6193 cd conftest.dir
6194 # We will build objects and dependencies in a subdirectory because
6195 # it helps to detect inapplicable dependency modes. For instance
6196 # both Tru64's cc and ICC support -MD to output dependencies as a
6197 # side effect of compilation, but ICC will put the dependencies in
6198 # the current directory while Tru64 will put them in the object
6199 # directory.
6200 mkdir sub
6201
6202 am_cv_CXX_dependencies_compiler_type=none
6203 if test "$am_compiler_list" = ""; then
6204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6205 fi
6206 am__universal=false
6207 case " $depcc " in #(
6208 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6209 esac
6210
6211 for depmode in $am_compiler_list; do
6212 # Setup a source with many dependencies, because some compilers
6213 # like to wrap large dependency lists on column 80 (with \), and
6214 # we should not choose a depcomp mode which is confused by this.
6215 #
6216 # We need to recreate these files for each test, as the compiler may
6217 # overwrite some of them when testing with obscure command lines.
6218 # This happens at least with the AIX C compiler.
6219 : > sub/conftest.c
6220 for i in 1 2 3 4 5 6; do
6221 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6222 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6223 # Solaris 8's {/usr,}/bin/sh.
6224 touch sub/conftst$i.h
6225 done
6226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6227
6228 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6229 # mode. It turns out that the SunPro C++ compiler does not properly
6230 # handle `-M -o', and we need to detect this. Also, some Intel
6231 # versions had trouble with output in subdirs
6232 am__obj=sub/conftest.${OBJEXT-o}
6233 am__minus_obj="-o $am__obj"
6234 case $depmode in
6235 gcc)
6236 # This depmode causes a compiler race in universal mode.
6237 test "$am__universal" = false || continue
6238 ;;
6239 nosideeffect)
6240 # after this tag, mechanisms are not by side-effect, so they'll
6241 # only be used when explicitly requested
6242 if test "x$enable_dependency_tracking" = xyes; then
6243 continue
6244 else
6245 break
6246 fi
6247 ;;
6248 msvisualcpp | msvcmsys)
6249 # This compiler won't grok `-c -o', but also, the minuso test has
6250 # not run yet. These depmodes are late enough in the game, and
6251 # so weak that their functioning should not be impacted.
6252 am__obj=conftest.${OBJEXT-o}
6253 am__minus_obj=
6254 ;;
6255 none) break ;;
6256 esac
6257 if depmode=$depmode \
6258 source=sub/conftest.c object=$am__obj \
6259 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6260 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6261 >/dev/null 2>conftest.err &&
6262 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6263 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6264 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6265 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6266 # icc doesn't choke on unknown options, it will just issue warnings
6267 # or remarks (even with -Werror). So we grep stderr for any message
6268 # that says an option was ignored or not supported.
6269 # When given -MP, icc 7.0 and 7.1 complain thusly:
6270 # icc: Command line warning: ignoring option '-M'; no argument required
6271 # The diagnosis changed in icc 8.0:
6272 # icc: Command line remark: option '-MP' not supported
6273 if (grep 'ignoring option' conftest.err ||
6274 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6275 am_cv_CXX_dependencies_compiler_type=$depmode
6276 break
6277 fi
6278 fi
6279 done
6280
6281 cd ..
6282 rm -rf conftest.dir
6283else
6284 am_cv_CXX_dependencies_compiler_type=none
6285fi
6286
6287fi
6288{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6289$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6290CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6291
6292 if
6293 test "x$enable_dependency_tracking" != xno \
6294 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6295 am__fastdepCXX_TRUE=
6296 am__fastdepCXX_FALSE='#'
6297else
6298 am__fastdepCXX_TRUE='#'
6299 am__fastdepCXX_FALSE=
6300fi
6301
6302
6303
6304{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6305$as_echo_n "checking maximum warning verbosity option... " >&6; }
6306
6307
6308
6309
6310# Check whether --with-maximum-compile-warnings was given.
6311if test "${with_maximum_compile_warnings+set}" = set; then
6312 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6313else
6314 ac_compile_warnings_on=""
6315fi
6316
6317
6318 if test x"$ac_compile_warnings_on" = xno
6319 then
6320 ac_compile_warnings_msg=no
6321 else
6322 if test -n "$CXX"
6323 then
6324 if test "$GXX" = "yes"
6325 then
6326 ac_compile_warnings_opt='-Wall -W'
6327 fi
6328 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6329 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6330 fi
6331
6332 if test -n "$CC"
6333 then
6334 if test "$GCC" = "yes"
6335 then
6336 ac_compile_warnings_opt='-Wall -W'
6337 fi
6338 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6339 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6340 fi
6341 fi
6342 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6343$as_echo "$ac_compile_warnings_msg" >&6; }
6344 unset ac_compile_warnings_msg
6345 unset ac_compile_warnings_opt
6346
6347{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6348$as_echo_n "checking whether ln -s works... " >&6; }
6349LN_S=$as_ln_s
6350if test "$LN_S" = "ln -s"; then
6351 { $as_echo "$as_me:$LINENO: result: yes" >&5
6352$as_echo "yes" >&6; }
6353else
6354 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6355$as_echo "no, using $LN_S" >&6; }
6356fi
6357
6358{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6359$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6360
6361# Check whether --with-dmalloc was given.
6362if test "${with_dmalloc+set}" = set; then
6363 withval=$with_dmalloc; if test "$withval" = yes; then
6364 { $as_echo "$as_me:$LINENO: result: yes" >&5
6365$as_echo "yes" >&6; }
6366
6367cat >>confdefs.h <<\_ACEOF
6368#define WITH_DMALLOC 1
6369_ACEOF
6370
6371 LIBS="$LIBS -ldmalloc"
6372 LDFLAGS="$LDFLAGS -g"
6373else
6374 { $as_echo "$as_me:$LINENO: result: no" >&5
6375$as_echo "no" >&6; }
6376fi
6377else
6378 { $as_echo "$as_me:$LINENO: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383
6384
6385if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6386 if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6393else
6394 case $PKG_CONFIG in
6395 [\\/]* | ?:[\\/]*)
6396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6397 ;;
6398 *)
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411done
6412IFS=$as_save_IFS
6413
6414 ;;
6415esac
6416fi
6417PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6418if test -n "$PKG_CONFIG"; then
6419 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6420$as_echo "$PKG_CONFIG" >&6; }
6421else
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426
6427fi
6428if test -z "$ac_cv_path_PKG_CONFIG"; then
6429 ac_pt_PKG_CONFIG=$PKG_CONFIG
6430 # Extract the first word of "pkg-config", so it can be a program name with args.
6431set dummy pkg-config; ac_word=$2
6432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6436else
6437 case $ac_pt_PKG_CONFIG in
6438 [\\/]* | ?:[\\/]*)
6439 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6440 ;;
6441 *)
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453done
6454done
6455IFS=$as_save_IFS
6456
6457 ;;
6458esac
6459fi
6460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6461if test -n "$ac_pt_PKG_CONFIG"; then
6462 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6463$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6464else
6465 { $as_echo "$as_me:$LINENO: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469 if test "x$ac_pt_PKG_CONFIG" = x; then
6470 PKG_CONFIG=""
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473yes:)
6474{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476ac_tool_warned=yes ;;
6477esac
6478 PKG_CONFIG=$ac_pt_PKG_CONFIG
6479 fi
6480else
6481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6482fi
6483
6484fi
6485if test -n "$PKG_CONFIG"; then
6486 _pkg_min_version=0.9.0
6487 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6488$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6490 { $as_echo "$as_me:$LINENO: result: yes" >&5
6491$as_echo "yes" >&6; }
6492 else
6493 { $as_echo "$as_me:$LINENO: result: no" >&5
6494$as_echo "no" >&6; }
6495 PKG_CONFIG=""
6496 fi
6497
6498fi
6499
6500#
6501# Enable OS features.
6502#
6503
6504
6505{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6506$as_echo_n "checking for ANSI C header files... " >&6; }
6507if test "${ac_cv_header_stdc+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6509else
6510 cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516#include <stdlib.h>
6517#include <stdarg.h>
6518#include <string.h>
6519#include <float.h>
6520
6521int
6522main ()
6523{
6524
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (ac_try="$ac_compile"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536$as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_stdc=yes
6548else
6549 $as_echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_header_stdc=no
6553fi
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6560/* confdefs.h. */
6561_ACEOF
6562cat confdefs.h >>conftest.$ac_ext
6563cat >>conftest.$ac_ext <<_ACEOF
6564/* end confdefs.h. */
6565#include <string.h>
6566
6567_ACEOF
6568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then
6570 :
6571else
6572 ac_cv_header_stdc=no
6573fi
6574rm -f conftest*
6575
6576fi
6577
6578if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
6586#include <stdlib.h>
6587
6588_ACEOF
6589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6591 :
6592else
6593 ac_cv_header_stdc=no
6594fi
6595rm -f conftest*
6596
6597fi
6598
6599if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6602 :
6603else
6604 cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610#include <ctype.h>
6611#include <stdlib.h>
6612#if ((' ' & 0x0FF) == 0x020)
6613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615#else
6616# define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621#endif
6622
6623#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6624int
6625main ()
6626{
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest$ac_exeext
6636if { (ac_try="$ac_link"
6637case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640esac
6641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642$as_echo "$ac_try_echo") >&5
6643 (eval "$ac_link") 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652$as_echo "$ac_try_echo") >&5
6653 (eval "$ac_try") 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 :
6658else
6659 $as_echo "$as_me: program exited with status $ac_status" >&5
6660$as_echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663( exit $ac_status )
6664ac_cv_header_stdc=no
6665fi
6666rm -rf conftest.dSYM
6667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6668fi
6669
6670
6671fi
6672fi
6673{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6674$as_echo "$ac_cv_header_stdc" >&6; }
6675if test $ac_cv_header_stdc = yes; then
6676
6677cat >>confdefs.h <<\_ACEOF
6678#define STDC_HEADERS 1
6679_ACEOF
6680
6681fi
6682
6683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6694 inttypes.h stdint.h unistd.h
6695do
6696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6697{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6698$as_echo_n "checking for $ac_header... " >&6; }
6699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700 $as_echo_n "(cached) " >&6
6701else
6702 cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h. */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h. */
6708$ac_includes_default
6709
6710#include <$ac_header>
6711_ACEOF
6712rm -f conftest.$ac_objext
6713if { (ac_try="$ac_compile"
6714case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717esac
6718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6719$as_echo "$ac_try_echo") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 eval "$as_ac_Header=yes"
6731else
6732 $as_echo "$as_me: failed program was:" >&5
6733sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 eval "$as_ac_Header=no"
6736fi
6737
6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739fi
6740ac_res=`eval 'as_val=${'$as_ac_Header'}
6741 $as_echo "$as_val"'`
6742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6743$as_echo "$ac_res" >&6; }
6744as_val=`eval 'as_val=${'$as_ac_Header'}
6745 $as_echo "$as_val"'`
6746 if test "x$as_val" = x""yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
6754
6755
6756
6757 if test "${ac_cv_header_minix_config_h+set}" = set; then
6758 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6759$as_echo_n "checking for minix/config.h... " >&6; }
6760if test "${ac_cv_header_minix_config_h+set}" = set; then
6761 $as_echo_n "(cached) " >&6
6762fi
6763{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6764$as_echo "$ac_cv_header_minix_config_h" >&6; }
6765else
6766 # Is the header compilable?
6767{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6768$as_echo_n "checking minix/config.h usability... " >&6; }
6769cat >conftest.$ac_ext <<_ACEOF
6770/* confdefs.h. */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6774/* end confdefs.h. */
6775$ac_includes_default
6776#include <minix/config.h>
6777_ACEOF
6778rm -f conftest.$ac_objext
6779if { (ac_try="$ac_compile"
6780case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783esac
6784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785$as_echo "$ac_try_echo") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 ac_header_compiler=yes
6797else
6798 $as_echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ac_header_compiler=no
6802fi
6803
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6806$as_echo "$ac_header_compiler" >&6; }
6807
6808# Is the header present?
6809{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6810$as_echo_n "checking minix/config.h presence... " >&6; }
6811cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h. */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */
6817#include <minix/config.h>
6818_ACEOF
6819if { (ac_try="$ac_cpp conftest.$ac_ext"
6820case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823esac
6824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6825$as_echo "$ac_try_echo") >&5
6826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null && {
6833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6834 test ! -s conftest.err
6835 }; then
6836 ac_header_preproc=yes
6837else
6838 $as_echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 ac_header_preproc=no
6842fi
6843
6844rm -f conftest.err conftest.$ac_ext
6845{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6846$as_echo "$ac_header_preproc" >&6; }
6847
6848# So? What about this header?
6849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6850 yes:no: )
6851 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6852$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6853 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6854$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6855 ac_header_preproc=yes
6856 ;;
6857 no:yes:* )
6858 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6859$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6860 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6861$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6862 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6863$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6865$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6867$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6868 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6869$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6870 ( cat <<\_ASBOX
6871## ----------------------------------------- ##
6872## Report this to http://www.imagemagick.org ##
6873## ----------------------------------------- ##
6874_ASBOX
6875 ) | sed "s/^/$as_me: WARNING: /" >&2
6876 ;;
6877esac
6878{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6879$as_echo_n "checking for minix/config.h... " >&6; }
6880if test "${ac_cv_header_minix_config_h+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882else
6883 ac_cv_header_minix_config_h=$ac_header_preproc
6884fi
6885{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6886$as_echo "$ac_cv_header_minix_config_h" >&6; }
6887
6888fi
6889if test "x$ac_cv_header_minix_config_h" = x""yes; then
6890 MINIX=yes
6891else
6892 MINIX=
6893fi
6894
6895
6896 if test "$MINIX" = yes; then
6897
6898cat >>confdefs.h <<\_ACEOF
6899#define _POSIX_SOURCE 1
6900_ACEOF
6901
6902
6903cat >>confdefs.h <<\_ACEOF
6904#define _POSIX_1_SOURCE 2
6905_ACEOF
6906
6907
6908cat >>confdefs.h <<\_ACEOF
6909#define _MINIX 1
6910_ACEOF
6911
6912 fi
6913
6914
6915
6916 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6917$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6918if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6919 $as_echo_n "(cached) " >&6
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927
6928# define __EXTENSIONS__ 1
6929 $ac_includes_default
6930int
6931main ()
6932{
6933
6934 ;
6935 return 0;
6936}
6937_ACEOF
6938rm -f conftest.$ac_objext
6939if { (ac_try="$ac_compile"
6940case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943esac
6944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6945$as_echo "$ac_try_echo") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_safe_to_define___extensions__=yes
6957else
6958 $as_echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ac_cv_safe_to_define___extensions__=no
6962fi
6963
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965fi
6966{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6967$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6968 test $ac_cv_safe_to_define___extensions__ = yes &&
6969 cat >>confdefs.h <<\_ACEOF
6970#define __EXTENSIONS__ 1
6971_ACEOF
6972
6973 cat >>confdefs.h <<\_ACEOF
6974#define _ALL_SOURCE 1
6975_ACEOF
6976
6977 cat >>confdefs.h <<\_ACEOF
6978#define _GNU_SOURCE 1
6979_ACEOF
6980
6981 cat >>confdefs.h <<\_ACEOF
6982#define _POSIX_PTHREAD_SEMANTICS 1
6983_ACEOF
6984
6985 cat >>confdefs.h <<\_ACEOF
6986#define _TANDEM_SOURCE 1
6987_ACEOF
6988
6989
6990
6991#
6992# Enable run-time checking.
6993#
6994# Check whether --enable-bounds-checking was given.
6995if test "${enable_bounds_checking+set}" = set; then
6996 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6997else
6998 enable_bounds_checking='no'
6999fi
7000
7001
7002if test "$enable_bounds_checking" = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define _FORTIFY_SOURCE 2
7006_ACEOF
7007
7008fi
7009
7010#
7011# Tests for Windows
7012#
7013
7014
7015
7016GDI32_LIBS=''
7017StaticCplusPlusLibraries='no'
7018native_win32_build='no'
7019cygwin_build='no'
7020case "${host_os}" in
7021 cygwin* )
7022 StaticCplusPlusLibraries='yes'
7023 cygwin_build='yes'
7024 GDI32_LIBS='-lgdi32'
7025 ;;
7026 mingw* )
7027 StaticCplusPlusLibraries='yes'
7028 native_win32_build='yes'
7029 GDI32_LIBS='-lgdi32'
7030 ;;
7031esac
7032if test "${GDI32_LIBS}x" != 'x'; then
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define WINGDI32_DELEGATE 1
7036_ACEOF
7037
7038fi
7039
7040 if test "${GDI32_LIBS}x" != 'x' ; then
7041 WINGDI32_DELEGATE_TRUE=
7042 WINGDI32_DELEGATE_FALSE='#'
7043else
7044 WINGDI32_DELEGATE_TRUE='#'
7045 WINGDI32_DELEGATE_FALSE=
7046fi
7047
7048 if test "${native_win32_build}" = 'yes' ; then
7049 WIN32_NATIVE_BUILD_TRUE=
7050 WIN32_NATIVE_BUILD_FALSE='#'
7051else
7052 WIN32_NATIVE_BUILD_TRUE='#'
7053 WIN32_NATIVE_BUILD_FALSE=
7054fi
7055
7056 if test "${cygwin_build}" = 'yes' ; then
7057 CYGWIN_BUILD_TRUE=
7058 CYGWIN_BUILD_FALSE='#'
7059else
7060 CYGWIN_BUILD_TRUE='#'
7061 CYGWIN_BUILD_FALSE=
7062fi
7063
7064 if test "x${CC}" = 'xcl.exe' ; then
7065 USING_CL_TRUE=
7066 USING_CL_FALSE='#'
7067else
7068 USING_CL_TRUE='#'
7069 USING_CL_FALSE=
7070fi
7071
7072
7073WinPathScript="${srcdirfull}/winpath.sh"
7074
7075
7076#
7077# Compiler flags tweaks
7078#
7079if test "${GCC}" != "yes"; then
7080 case "${host}" in
7081 *-*-hpux* )
7082 # aCC: HP ANSI C++ B3910B A.03.34
7083 CFLAGS="${CFLAGS} -Wp,-H30000"
7084 if test -n "${CXXFLAGS}"; then
7085 CXXFLAGS='-AA'
7086 else
7087 CXXFLAGS="${CXXFLAGS} -AA"
7088 fi
7089 ;;
7090 *-dec-osf5.* )
7091 # Compaq alphaev68-dec-osf5.1 compiler
7092 if test -n "${CXXFLAGS}"; then
7093 CXXFLAGS='-std strict_ansi -noimplicit_include'
7094 else
7095 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7096 fi
7097 esac
7098fi
7099
7100# Check for lazy-loading.
7101{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7102$as_echo_n "checking for linker lazyload option... " >&6; }
7103if test "${im_cv_ld_lazyload+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7105else
7106
7107im_cv_ld_lazyload='none'
7108case "${host}" in
7109 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7110 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7111 im_cv_ld_lazyload='-Wl,-zlazyload'
7112 fi
7113 ;;
7114esac
7115
7116fi
7117{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7118$as_echo "$im_cv_ld_lazyload" >&6; }
7119if test "${im_cv_ld_lazyload}" != 'none' ; then
7120 if test -z "${LDFLAGS}" ; then
7121 LDFLAGS="${im_cv_ld_lazyload}"
7122 else
7123 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7124 fi
7125fi
7126
7127case "$host" in
7128*darwin* | *-macos10*)
7129 if test -d /opt/local ; then
7130 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7131 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7132 elif test -d /sw ; then
7133 CPPFLAGS="$CPPFLAGS -I/sw/include"
7134 LDFLAGS="$LDFLAGS -L/sw/lib"
7135 fi
7136 # Check whether --enable-osx-universal-binary was given.
7137if test "${enable_osx_universal_binary+set}" = set; then
7138 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7139else
7140 build_osxuniversal=no
7141fi
7142
7143
7144 if test "${build_osxuniversal}" != no ; then
7145 if test "$enable_dependency_tracking" != no ; then
7146 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7147Please re-run configure with these options:
7148 --disable-dependency-tracking --enable-osx-universal-binary
7149 " >&5
7150$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7151Please re-run configure with these options:
7152 --disable-dependency-tracking --enable-osx-universal-binary
7153 " >&2;}
7154 { (exit 1); exit 1; }; }
7155 fi
7156 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7157 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7158 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7159 fi
7160 ;;
7161esac
7162
7163# Enable support for threads
7164
7165# Check whether --with-threads was given.
7166if test "${with_threads+set}" = set; then
7167 withval=$with_threads; with_threads=$withval
7168else
7169 with_threads='yes'
7170fi
7171
7172
7173have_threads=no
7174if test "$with_threads" != 'no'; then
7175
7176
7177
7178ac_ext=c
7179ac_cpp='$CPP $CPPFLAGS'
7180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183
7184acx_pthread_ok=no
7185
7186# We used to check for pthread.h first, but this fails if pthread.h
7187# requires special compiler flags (e.g. on True64 or Sequent).
7188# It gets checked for in the link test anyway.
7189
7190# First of all, check if the user has set any of the PTHREAD_LIBS,
7191# etcetera environment variables, and if threads linking works using
7192# them:
7193if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7194 save_CFLAGS="$CFLAGS"
7195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7196 save_LIBS="$LIBS"
7197 LIBS="$PTHREAD_LIBS $LIBS"
7198 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7199$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7200 cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206
7207/* Override any GCC internal prototype to avoid an error.
7208 Use char because int might match the return type of a GCC
7209 builtin and then its argument prototype would still apply. */
7210#ifdef __cplusplus
7211extern "C"
7212#endif
7213char pthread_join ();
7214int
7215main ()
7216{
7217return pthread_join ();
7218 ;
7219 return 0;
7220}
7221_ACEOF
7222rm -f conftest.$ac_objext conftest$ac_exeext
7223if { (ac_try="$ac_link"
7224case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
7228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229$as_echo "$ac_try_echo") >&5
7230 (eval "$ac_link") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest$ac_exeext && {
7240 test "$cross_compiling" = yes ||
7241 $as_test_x conftest$ac_exeext
7242 }; then
7243 acx_pthread_ok=yes
7244else
7245 $as_echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248
7249fi
7250
7251rm -rf conftest.dSYM
7252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253 conftest$ac_exeext conftest.$ac_ext
7254 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7255$as_echo "$acx_pthread_ok" >&6; }
7256 if test x"$acx_pthread_ok" = xno; then
7257 PTHREAD_LIBS=""
7258 PTHREAD_CFLAGS=""
7259 fi
7260 LIBS="$save_LIBS"
7261 CFLAGS="$save_CFLAGS"
7262fi
7263
7264# We must check for the threads library under a number of different
7265# names; the ordering is very important because some systems
7266# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7267# libraries is broken (non-POSIX).
7268
7269# Create a list of thread flags to try. Items starting with a "-" are
7270# C compiler flags, and other items are library names, except for "none"
7271# which indicates that we try without any flags at all, and "pthread-config"
7272# which is a program returning the flags for the Pth emulation library.
7273
7274acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7275
7276# The ordering *is* (sometimes) important. Some notes on the
7277# individual items follow:
7278
7279# pthreads: AIX (must check this before -lpthread)
7280# none: in case threads are in libc; should be tried before -Kthread and
7281# other compiler flags to prevent continual compiler warnings
7282# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7283# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7284# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7285# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7286# -pthreads: Solaris/gcc
7287# -mthreads: Mingw32/gcc, Lynx/gcc
7288# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7289# doesn't hurt to check since this sometimes defines pthreads too;
7290# also defines -D_REENTRANT)
7291# ... -mt is also the pthreads flag for HP/aCC
7292# pthread: Linux, etcetera
7293# --thread-safe: KAI C++
7294# pthread-config: use pthread-config program (for GNU Pth library)
7295
7296case "${host_cpu}-${host_os}" in
7297 *solaris*)
7298
7299 # On Solaris (at least, for some versions), libc contains stubbed
7300 # (non-functional) versions of the pthreads routines, so link-based
7301 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7302 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7303 # a function called by this macro, so we could check for that, but
7304 # who knows whether they'll stub that too in a future libc.) So,
7305 # we'll just look for -pthreads and -lpthread first:
7306
7307 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7308 ;;
cristy3ed852e2009-09-05 21:47:34 +00007309esac
7310
7311if test x"$acx_pthread_ok" = xno; then
7312for flag in $acx_pthread_flags; do
7313
7314 case $flag in
7315 none)
7316 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7317$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7318 ;;
7319
7320 -*)
7321 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7322$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7323 PTHREAD_CFLAGS="$flag"
7324 ;;
7325
7326 pthread-config)
7327 # Extract the first word of "pthread-config", so it can be a program name with args.
7328set dummy pthread-config; ac_word=$2
7329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$acx_pthread_config"; then
7335 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_acx_pthread_config="yes"
7345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349done
7350IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7353fi
7354fi
7355acx_pthread_config=$ac_cv_prog_acx_pthread_config
7356if test -n "$acx_pthread_config"; then
7357 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7358$as_echo "$acx_pthread_config" >&6; }
7359else
7360 { $as_echo "$as_me:$LINENO: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365 if test x"$acx_pthread_config" = xno; then continue; fi
7366 PTHREAD_CFLAGS="`pthread-config --cflags`"
7367 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7368 ;;
7369
7370 *)
7371 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7372$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7373 PTHREAD_LIBS="-l$flag"
7374 ;;
7375 esac
7376
7377 save_LIBS="$LIBS"
7378 save_CFLAGS="$CFLAGS"
7379 LIBS="$PTHREAD_LIBS $LIBS"
7380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7381
7382 # Check for various functions. We must include pthread.h,
7383 # since some functions may be macros. (On the Sequent, we
7384 # need a special flag -Kthread to make this header compile.)
7385 # We check for pthread_join because it is in -lpthread on IRIX
7386 # while pthread_create is in libc. We check for pthread_attr_init
7387 # due to DEC craziness with -lpthreads. We check for
7388 # pthread_cleanup_push because it is one of the few pthread
7389 # functions on Solaris that doesn't have a non-functional libc stub.
7390 # We try pthread_create on general principles.
7391 cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */
7397#include <pthread.h>
7398int
7399main ()
7400{
7401pthread_t th; pthread_join(th, 0);
7402 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7403 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7404 ;
7405 return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext conftest$ac_exeext
7409if { (ac_try="$ac_link"
7410case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413esac
7414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415$as_echo "$ac_try_echo") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext && {
7426 test "$cross_compiling" = yes ||
7427 $as_test_x conftest$ac_exeext
7428 }; then
7429 acx_pthread_ok=yes
7430else
7431 $as_echo "$as_me: failed program was:" >&5
7432sed 's/^/| /' conftest.$ac_ext >&5
7433
7434
7435fi
7436
7437rm -rf conftest.dSYM
7438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7440
7441 LIBS="$save_LIBS"
7442 CFLAGS="$save_CFLAGS"
7443
7444 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7445$as_echo "$acx_pthread_ok" >&6; }
7446 if test "x$acx_pthread_ok" = xyes; then
7447 break;
7448 fi
7449
7450 PTHREAD_LIBS=""
7451 PTHREAD_CFLAGS=""
7452done
7453fi
7454
7455# Various other checks:
7456if test "x$acx_pthread_ok" = xyes; then
7457 save_LIBS="$LIBS"
7458 LIBS="$PTHREAD_LIBS $LIBS"
7459 save_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7461
7462 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7463 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7464$as_echo_n "checking for joinable pthread attribute... " >&6; }
7465 attr_name=unknown
7466 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7467 cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h. */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h. */
7473#include <pthread.h>
7474int
7475main ()
7476{
7477int attr=$attr; return attr;
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (ac_try="$ac_link"
7484case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487esac
7488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489$as_echo "$ac_try_echo") >&5
7490 (eval "$ac_link") 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest$ac_exeext && {
7500 test "$cross_compiling" = yes ||
7501 $as_test_x conftest$ac_exeext
7502 }; then
7503 attr_name=$attr; break
7504else
7505 $as_echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508
7509fi
7510
7511rm -rf conftest.dSYM
7512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7513 conftest$ac_exeext conftest.$ac_ext
7514 done
7515 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7516$as_echo "$attr_name" >&6; }
7517 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7518
7519cat >>confdefs.h <<_ACEOF
7520#define PTHREAD_CREATE_JOINABLE $attr_name
7521_ACEOF
7522
7523 fi
7524
7525 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7526$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7527 flag=no
7528 case "${host_cpu}-${host_os}" in
7529 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7530 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7531 esac
7532 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7533$as_echo "${flag}" >&6; }
7534 if test "x$flag" != xno; then
7535 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7536 fi
7537
7538 LIBS="$save_LIBS"
7539 CFLAGS="$save_CFLAGS"
7540
7541 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007542 if test x"$GCC" != xyes; then
7543 for ac_prog in xlc_r cc_r
7544do
7545 # Extract the first word of "$ac_prog", so it can be a program name with args.
7546set dummy $ac_prog; ac_word=$2
cristy3ed852e2009-09-05 21:47:34 +00007547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$PTHREAD_CC"; then
7553 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00007562 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy3ed852e2009-09-05 21:47:34 +00007563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568IFS=$as_save_IFS
7569
cristy3ed852e2009-09-05 21:47:34 +00007570fi
7571fi
7572PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7573if test -n "$PTHREAD_CC"; then
7574 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7575$as_echo "$PTHREAD_CC" >&6; }
7576else
7577 { $as_echo "$as_me:$LINENO: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
cristy736173a2009-09-20 21:18:22 +00007581
7582 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007583done
cristy736173a2009-09-20 21:18:22 +00007584test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007585
cristy736173a2009-09-20 21:18:22 +00007586 else
7587 PTHREAD_CC=$CC
7588 fi
cristy3ed852e2009-09-05 21:47:34 +00007589else
cristy736173a2009-09-20 21:18:22 +00007590 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007591fi
7592
cristy3ed852e2009-09-05 21:47:34 +00007593
7594
7595
7596
7597# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7598if test x"$acx_pthread_ok" = xyes; then
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define HAVE_PTHREAD 1
7602_ACEOF
7603
7604 :
7605else
7606 acx_pthread_ok=no
7607
7608fi
7609ac_ext=c
7610ac_cpp='$CPP $CPPFLAGS'
7611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615
7616 if test "$acx_pthread_ok" = yes; then
7617 have_threads=yes
7618 DEF_THREAD="$PTHREAD_CFLAGS"
7619 CFLAGS="$CFLAGS $DEF_THREAD"
7620 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7621 if test "$CC" != "$PTHREAD_CC"; then
7622 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7623$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7624 CC="$PTHREAD_CC"
7625 fi
7626 fi
7627fi
7628
7629# Enable support for OpenMP
7630if test "$have_threads" != 'yes'; then
7631 ac_cv_prog_c_openmp=unsupported
7632fi
7633
7634 OPENMP_CFLAGS=
7635 # Check whether --enable-openmp was given.
7636if test "${enable_openmp+set}" = set; then
7637 enableval=$enable_openmp;
7638fi
7639
7640 if test "$enable_openmp" != no; then
7641 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7642$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7643if test "${ac_cv_prog_c_openmp+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7645else
7646 cat >conftest.$ac_ext <<_ACEOF
7647
7648#ifndef _OPENMP
7649 choke me
7650#endif
7651#include <omp.h>
7652int main () { return omp_get_num_threads (); }
7653
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (ac_try="$ac_link"
7657case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660esac
7661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662$as_echo "$ac_try_echo") >&5
7663 (eval "$ac_link") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest$ac_exeext && {
7673 test "$cross_compiling" = yes ||
7674 $as_test_x conftest$ac_exeext
7675 }; then
7676 ac_cv_prog_c_openmp='none needed'
7677else
7678 $as_echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_prog_c_openmp='unsupported'
7682 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7683 ac_save_CFLAGS=$CFLAGS
7684 CFLAGS="$CFLAGS $ac_option"
7685 cat >conftest.$ac_ext <<_ACEOF
7686
7687#ifndef _OPENMP
7688 choke me
7689#endif
7690#include <omp.h>
7691int main () { return omp_get_num_threads (); }
7692
7693_ACEOF
7694rm -f conftest.$ac_objext conftest$ac_exeext
7695if { (ac_try="$ac_link"
7696case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699esac
7700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701$as_echo "$ac_try_echo") >&5
7702 (eval "$ac_link") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest$ac_exeext && {
7712 test "$cross_compiling" = yes ||
7713 $as_test_x conftest$ac_exeext
7714 }; then
7715 ac_cv_prog_c_openmp=$ac_option
7716else
7717 $as_echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720
7721fi
7722
7723rm -rf conftest.dSYM
7724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext conftest.$ac_ext
7726 CFLAGS=$ac_save_CFLAGS
7727 if test "$ac_cv_prog_c_openmp" != unsupported; then
7728 break
7729 fi
7730 done
7731fi
7732
7733rm -rf conftest.dSYM
7734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7735 conftest$ac_exeext conftest.$ac_ext
7736fi
7737{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7738$as_echo "$ac_cv_prog_c_openmp" >&6; }
7739 case $ac_cv_prog_c_openmp in #(
7740 "none needed" | unsupported)
7741 ;; #(
7742 *)
7743 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7744 esac
7745 fi
7746
7747
7748CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7749MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7750
7751
cristy736173a2009-09-20 21:18:22 +00007752# Enable support for OpenCL
7753{ $as_echo "$as_me:$LINENO: checking for X" >&5
7754$as_echo_n "checking for X... " >&6; }
7755
7756
7757# Check whether --with-x was given.
7758if test "${with_x+set}" = set; then
7759 withval=$with_x;
7760fi
7761
7762# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7763if test "x$with_x" = xno; then
7764 # The user explicitly disabled X.
7765 have_x=disabled
7766else
7767 case $x_includes,$x_libraries in #(
7768 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
7769$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
7770 { (exit 1); exit 1; }; };; #(
7771 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7772 $as_echo_n "(cached) " >&6
7773else
7774 # One or both of the vars are not set, and there is no cached value.
7775ac_x_includes=no ac_x_libraries=no
7776rm -f -r conftest.dir
7777if mkdir conftest.dir; then
7778 cd conftest.dir
7779 cat >Imakefile <<'_ACEOF'
7780incroot:
7781 @echo incroot='${INCROOT}'
7782usrlibdir:
7783 @echo usrlibdir='${USRLIBDIR}'
7784libdir:
7785 @echo libdir='${LIBDIR}'
7786_ACEOF
7787 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7789 for ac_var in incroot usrlibdir libdir; do
7790 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7791 done
7792 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7793 for ac_extension in a so sl dylib la dll; do
7794 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7795 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7796 ac_im_usrlibdir=$ac_im_libdir; break
7797 fi
7798 done
7799 # Screen out bogus values from the imake configuration. They are
7800 # bogus both because they are the default anyway, and because
7801 # using them would break gcc on systems where it needs fixed includes.
7802 case $ac_im_incroot in
7803 /usr/include) ac_x_includes= ;;
7804 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7805 esac
7806 case $ac_im_usrlibdir in
7807 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7808 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7809 esac
7810 fi
7811 cd ..
7812 rm -f -r conftest.dir
7813fi
7814
7815# Standard set of common directories for X headers.
7816# Check X11 before X11Rn because it is often a symlink to the current release.
7817ac_x_header_dirs='
7818/usr/X11/include
7819/usr/X11R6/include
7820/usr/X11R5/include
7821/usr/X11R4/include
7822
7823/usr/include/X11
7824/usr/include/X11R6
7825/usr/include/X11R5
7826/usr/include/X11R4
7827
7828/usr/local/X11/include
7829/usr/local/X11R6/include
7830/usr/local/X11R5/include
7831/usr/local/X11R4/include
7832
7833/usr/local/include/X11
7834/usr/local/include/X11R6
7835/usr/local/include/X11R5
7836/usr/local/include/X11R4
7837
7838/usr/X386/include
7839/usr/x386/include
7840/usr/XFree86/include/X11
7841
7842/usr/include
7843/usr/local/include
7844/usr/unsupported/include
7845/usr/athena/include
7846/usr/local/x11r5/include
7847/usr/lpp/Xamples/include
7848
7849/usr/openwin/include
7850/usr/openwin/share/include'
7851
7852if test "$ac_x_includes" = no; then
7853 # Guess where to find include files, by looking for Xlib.h.
7854 # First, try using that file with no special directory specified.
7855 cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
7861#include <X11/Xlib.h>
7862_ACEOF
7863if { (ac_try="$ac_cpp conftest.$ac_ext"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7869$as_echo "$ac_try_echo") >&5
7870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } >/dev/null && {
7877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 }; then
7880 # We can compile using X headers with no special include directory.
7881ac_x_includes=
7882else
7883 $as_echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 for ac_dir in $ac_x_header_dirs; do
7887 if test -r "$ac_dir/X11/Xlib.h"; then
7888 ac_x_includes=$ac_dir
7889 break
7890 fi
7891done
7892fi
7893
7894rm -f conftest.err conftest.$ac_ext
7895fi # $ac_x_includes = no
7896
7897if test "$ac_x_libraries" = no; then
7898 # Check for the libraries.
7899 # See if we find them without any special options.
7900 # Don't add to $LIBS permanently.
7901 ac_save_LIBS=$LIBS
7902 LIBS="-lX11 $LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
7909#include <X11/Xlib.h>
7910int
7911main ()
7912{
7913XrmInitialize ()
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918rm -f conftest.$ac_objext conftest$ac_exeext
7919if { (ac_try="$ac_link"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925$as_echo "$ac_try_echo") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext && {
7936 test "$cross_compiling" = yes ||
7937 $as_test_x conftest$ac_exeext
7938 }; then
7939 LIBS=$ac_save_LIBS
7940# We can link X programs with no special library path.
7941ac_x_libraries=
7942else
7943 $as_echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 LIBS=$ac_save_LIBS
7947for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7948do
7949 # Don't even attempt the hair of trying to link an X program!
7950 for ac_extension in a so sl dylib la dll; do
7951 if test -r "$ac_dir/libX11.$ac_extension"; then
7952 ac_x_libraries=$ac_dir
7953 break 2
7954 fi
7955 done
7956done
7957fi
7958
7959rm -rf conftest.dSYM
7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962fi # $ac_x_libraries = no
7963
7964case $ac_x_includes,$ac_x_libraries in #(
7965 no,* | *,no | *\'*)
7966 # Didn't find X, or a directory has "'" in its name.
7967 ac_cv_have_x="have_x=no";; #(
7968 *)
7969 # Record where we found X for the cache.
7970 ac_cv_have_x="have_x=yes\
7971 ac_x_includes='$ac_x_includes'\
7972 ac_x_libraries='$ac_x_libraries'"
7973esac
7974fi
7975;; #(
7976 *) have_x=yes;;
7977 esac
7978 eval "$ac_cv_have_x"
7979fi # $with_x != no
7980
7981if test "$have_x" != yes; then
7982 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7983$as_echo "$have_x" >&6; }
7984 no_x=yes
7985else
7986 # If each of the values was on the command line, it overrides each guess.
7987 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7988 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7989 # Update the cache value to reflect the command line values.
7990 ac_cv_have_x="have_x=yes\
7991 ac_x_includes='$x_includes'\
7992 ac_x_libraries='$x_libraries'"
7993 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7994$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7995fi
7996
7997
7998ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004{ $as_echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
8005$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8006if test "${ax_cv_c_compiler_ms+set}" = set; then
8007 $as_echo_n "(cached) " >&6
8008else
8009 cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h. */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h. */
8015
8016int
8017main ()
8018{
8019#ifndef _MSC_VER
8020 choke me
8021#endif
8022
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (ac_try="$ac_compile"
8029case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8034$as_echo "$ac_try_echo") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8045 ax_compiler_ms=yes
8046else
8047 $as_echo "$as_me: failed program was:" >&5
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ax_compiler_ms=no
8051fi
8052
8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054ax_cv_c_compiler_ms=$ax_compiler_ms
8055
8056fi
8057{ $as_echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
8058$as_echo "$ax_cv_c_compiler_ms" >&6; }
8059if test X$ax_compiler_ms = Xno; then
8060 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8061fi
8062
8063
8064#
8065# Use x_includes and x_libraries if they have been set (presumably by
8066# AC_PATH_X).
8067#
8068if test X$no_x != Xyes; then
8069 if test -n "$x_includes"; then
8070 CL_CFLAGS="-I$x_includes $CL_CFLAGS"
8071fi
8072
8073 if test -n "$x_libraries"; then
8074 CL_LIBS="-L$x_libraries -lX11 $CL_LIBS"
8075fi
8076
8077fi
8078
8079
8080ax_save_CPPFLAGS=$CPPFLAGS
8081CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8082
8083
8084for ac_header in CL/cl.h OpenCL/cl.h
8085do
8086as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8089$as_echo_n "checking for $ac_header... " >&6; }
8090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 $as_echo_n "(cached) " >&6
8092fi
8093ac_res=`eval 'as_val=${'$as_ac_Header'}
8094 $as_echo "$as_val"'`
8095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8096$as_echo "$ac_res" >&6; }
8097else
8098 # Is the header compilable?
8099{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100$as_echo_n "checking $ac_header usability... " >&6; }
8101cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107$ac_includes_default
8108#include <$ac_header>
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8117$as_echo "$ac_try_echo") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
8128 ac_header_compiler=yes
8129else
8130 $as_echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_header_compiler=no
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8138$as_echo "$ac_header_compiler" >&6; }
8139
8140# Is the header present?
8141{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8142$as_echo_n "checking $ac_header presence... " >&6; }
8143cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149#include <$ac_header>
8150_ACEOF
8151if { (ac_try="$ac_cpp conftest.$ac_ext"
8152case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155esac
8156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157$as_echo "$ac_try_echo") >&5
8158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null && {
8165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 }; then
8168 ac_header_preproc=yes
8169else
8170 $as_echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_preproc=no
8174fi
8175
8176rm -f conftest.err conftest.$ac_ext
8177{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178$as_echo "$ac_header_preproc" >&6; }
8179
8180# So? What about this header?
8181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182 yes:no: )
8183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8186$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8187 ac_header_preproc=yes
8188 ;;
8189 no:yes:* )
8190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8195$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8197$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8201$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8202 ( cat <<\_ASBOX
8203## ----------------------------------------- ##
8204## Report this to http://www.imagemagick.org ##
8205## ----------------------------------------- ##
8206_ASBOX
8207 ) | sed "s/^/$as_me: WARNING: /" >&2
8208 ;;
8209esac
8210{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8211$as_echo_n "checking for $ac_header... " >&6; }
8212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8213 $as_echo_n "(cached) " >&6
8214else
8215 eval "$as_ac_Header=\$ac_header_preproc"
8216fi
8217ac_res=`eval 'as_val=${'$as_ac_Header'}
8218 $as_echo "$as_val"'`
8219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8220$as_echo "$ac_res" >&6; }
8221
8222fi
8223as_val=`eval 'as_val=${'$as_ac_Header'}
8224 $as_echo "$as_val"'`
8225 if test "x$as_val" = x""yes; then
8226 cat >>confdefs.h <<_ACEOF
8227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8228_ACEOF
8229
8230fi
8231
8232done
8233
8234CPPFLAGS=$ax_save_CPPFLAGS
8235
8236
8237for ac_header in windows.h
8238do
8239as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8242$as_echo_n "checking for $ac_header... " >&6; }
8243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8244 $as_echo_n "(cached) " >&6
8245fi
8246ac_res=`eval 'as_val=${'$as_ac_Header'}
8247 $as_echo "$as_val"'`
8248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8249$as_echo "$ac_res" >&6; }
8250else
8251 # Is the header compilable?
8252{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8253$as_echo_n "checking $ac_header usability... " >&6; }
8254cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260$ac_includes_default
8261#include <$ac_header>
8262_ACEOF
8263rm -f conftest.$ac_objext
8264if { (ac_try="$ac_compile"
8265case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268esac
8269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8270$as_echo "$ac_try_echo") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_header_compiler=yes
8282else
8283 $as_echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_header_compiler=no
8287fi
8288
8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291$as_echo "$ac_header_compiler" >&6; }
8292
8293# Is the header present?
8294{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8295$as_echo_n "checking $ac_header presence... " >&6; }
8296cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302#include <$ac_header>
8303_ACEOF
8304if { (ac_try="$ac_cpp conftest.$ac_ext"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310$as_echo "$ac_try_echo") >&5
8311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } >/dev/null && {
8318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 }; then
8321 ac_header_preproc=yes
8322else
8323 $as_echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ac_header_preproc=no
8327fi
8328
8329rm -f conftest.err conftest.$ac_ext
8330{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8331$as_echo "$ac_header_preproc" >&6; }
8332
8333# So? What about this header?
8334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8335 yes:no: )
8336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8337$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8339$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8340 ac_header_preproc=yes
8341 ;;
8342 no:yes:* )
8343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8344$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8346$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8348$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8350$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8352$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8354$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8355 ( cat <<\_ASBOX
8356## ----------------------------------------- ##
8357## Report this to http://www.imagemagick.org ##
8358## ----------------------------------------- ##
8359_ASBOX
8360 ) | sed "s/^/$as_me: WARNING: /" >&2
8361 ;;
8362esac
8363{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8364$as_echo_n "checking for $ac_header... " >&6; }
8365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366 $as_echo_n "(cached) " >&6
8367else
8368 eval "$as_ac_Header=\$ac_header_preproc"
8369fi
8370ac_res=`eval 'as_val=${'$as_ac_Header'}
8371 $as_echo "$as_val"'`
8372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8373$as_echo "$ac_res" >&6; }
8374
8375fi
8376as_val=`eval 'as_val=${'$as_ac_Header'}
8377 $as_echo "$as_val"'`
8378 if test "x$as_val" = x""yes; then
8379 cat >>confdefs.h <<_ACEOF
8380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8381_ACEOF
8382
8383fi
8384
8385done
8386
8387
8388
8389
8390{ $as_echo "$as_me:$LINENO: checking for OpenCL library" >&5
8391$as_echo_n "checking for OpenCL library... " >&6; }
8392if test "${ax_cv_check_cl_libcl+set}" = set; then
8393 $as_echo_n "(cached) " >&6
8394else
8395 ax_cv_check_cl_libcl=no
8396case $host_cpu in
8397 x86_64) ax_check_cl_libdir=lib64 ;;
8398 *) ax_check_cl_libdir=lib ;;
8399esac
8400ax_save_CPPFLAGS=$CPPFLAGS
8401CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8402ax_save_LIBS=$LIBS
8403LIBS=""
cristya49aa422009-09-20 23:40:10 +00008404ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00008405for ax_lib in $ax_check_libs; do
8406 if test X$ax_compiler_ms = Xyes; then
8407 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8408else
8409 ax_try_lib=$ax_lib
8410fi
8411
8412 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8413cat >conftest.$ac_ext <<_ACEOF
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8419
8420# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8421# include <windows.h>
8422# endif
8423# ifdef HAVE_CL_CL_H
8424# include <CL/cl.h>
8425# elif defined(HAVE_OPENCL_CL_H)
8426# include <OpenCL/cl.h>
8427# else
8428# error no cl.h
8429# endif
8430int
8431main ()
8432{
8433clBegin(0)
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (ac_try="$ac_link"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445$as_echo "$ac_try_echo") >&5
8446 (eval "$ac_link") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest$ac_exeext && {
8456 test "$cross_compiling" = yes ||
8457 $as_test_x conftest$ac_exeext
8458 }; then
8459 ax_cv_check_cl_libcl=$ax_try_lib; break
8460else
8461 $as_echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466/* confdefs.h. */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h. */
8471
8472# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8473# include <windows.h>
8474# endif
8475# ifdef HAVE_CL_CL_H
8476# include <CL/cl.h>
8477# elif defined(HAVE_OPENCL_CL_H)
8478# include <OpenCL/cl.h>
8479# else
8480# error no cl.h
8481# endif
8482int
8483main ()
8484{
8485clBegin(0)
8486 ;
8487 return 0;
8488}
8489_ACEOF
8490rm -f conftest.$ac_objext conftest$ac_exeext
8491if { (ac_try="$ac_link"
8492case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8497$as_echo "$ac_try_echo") >&5
8498 (eval "$ac_link") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest$ac_exeext && {
8508 test "$cross_compiling" = yes ||
8509 $as_test_x conftest$ac_exeext
8510 }; then
8511 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8512else
8513 $as_echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
8517 cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523
8524# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8525# include <windows.h>
8526# endif
8527# ifdef HAVE_CL_CL_H
8528# include <CL/cl.h>
8529# elif defined(HAVE_OPENCL_CL_H)
8530# include <OpenCL/cl.h>
8531# else
8532# error no cl.h
8533# endif
8534int
8535main ()
8536{
8537clBegin(0)
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext conftest$ac_exeext
8543if { (ac_try="$ac_link"
8544case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547esac
8548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549$as_echo "$ac_try_echo") >&5
8550 (eval "$ac_link") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest$ac_exeext && {
8560 test "$cross_compiling" = yes ||
8561 $as_test_x conftest$ac_exeext
8562 }; then
8563 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8564else
8565 $as_echo "$as_me: failed program was:" >&5
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
8568
8569fi
8570
8571rm -rf conftest.dSYM
8572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574fi
8575
8576rm -rf conftest.dSYM
8577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8578 conftest$ac_exeext conftest.$ac_ext
8579fi
8580
8581rm -rf conftest.dSYM
8582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583 conftest$ac_exeext conftest.$ac_ext
8584done
8585
8586if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then
8587 LIBS='-framework OpenCL'
8588 cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594
8595# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8596# include <windows.h>
8597# endif
8598# ifdef HAVE_CL_CL_H
8599# include <CL/cl.h>
8600# elif defined(HAVE_OPENCL_CL_H)
8601# include <OpenCL/cl.h>
8602# else
8603# error no cl.h
8604# endif
8605int
8606main ()
8607{
8608clBegin(0)
8609 ;
8610 return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (ac_try="$ac_link"
8615case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8620$as_echo "$ac_try_echo") >&5
8621 (eval "$ac_link") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest$ac_exeext && {
8631 test "$cross_compiling" = yes ||
8632 $as_test_x conftest$ac_exeext
8633 }; then
8634 ax_cv_check_cl_libcl=$LIBS
8635else
8636 $as_echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639
8640fi
8641
8642rm -rf conftest.dSYM
8643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8644 conftest$ac_exeext conftest.$ac_ext
8645fi
8646
8647
8648LIBS=$ax_save_LIBS
8649CPPFLAGS=$ax_save_CPPFLAGS
8650fi
8651{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cl_libcl" >&5
8652$as_echo "$ax_cv_check_cl_libcl" >&6; }
8653
8654if test "X$ax_cv_check_cl_libcl" = Xno; then
8655 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8656else
8657 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
8658fi
8659
8660ac_ext=c
8661ac_cpp='$CPP $CPPFLAGS'
8662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664ac_compiler_gnu=$ac_cv_c_compiler_gnu
8665
8666
8667
8668
8669
8670
cristy3ed852e2009-09-05 21:47:34 +00008671########
8672#
8673# Check for large file support
8674#
8675########
8676# Check whether --enable-largefile was given.
8677if test "${enable_largefile+set}" = set; then
8678 enableval=$enable_largefile;
8679fi
8680
8681if test "$enable_largefile" != no; then
8682
8683 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8684$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8685if test "${ac_cv_sys_largefile_CC+set}" = set; then
8686 $as_echo_n "(cached) " >&6
8687else
8688 ac_cv_sys_largefile_CC=no
8689 if test "$GCC" != yes; then
8690 ac_save_CC=$CC
8691 while :; do
8692 # IRIX 6.2 and later do not support large files by default,
8693 # so use the C compiler's -n32 option if that helps.
8694 cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700#include <sys/types.h>
8701 /* Check that off_t can represent 2**63 - 1 correctly.
8702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8703 since some C++ compilers masquerading as C compilers
8704 incorrectly reject 9223372036854775807. */
8705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8707 && LARGE_OFF_T % 2147483647 == 1)
8708 ? 1 : -1];
8709int
8710main ()
8711{
8712
8713 ;
8714 return 0;
8715}
8716_ACEOF
8717 rm -f conftest.$ac_objext
8718if { (ac_try="$ac_compile"
8719case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722esac
8723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724$as_echo "$ac_try_echo") >&5
8725 (eval "$ac_compile") 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest.$ac_objext; then
8735 break
8736else
8737 $as_echo "$as_me: failed program was:" >&5
8738sed 's/^/| /' conftest.$ac_ext >&5
8739
8740
8741fi
8742
8743rm -f core conftest.err conftest.$ac_objext
8744 CC="$CC -n32"
8745 rm -f conftest.$ac_objext
8746if { (ac_try="$ac_compile"
8747case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750esac
8751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752$as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_sys_largefile_CC=' -n32'; break
8764else
8765 $as_echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
8768
8769fi
8770
8771rm -f core conftest.err conftest.$ac_objext
8772 break
8773 done
8774 CC=$ac_save_CC
8775 rm -f conftest.$ac_ext
8776 fi
8777fi
8778{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8779$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8780 if test "$ac_cv_sys_largefile_CC" != no; then
8781 CC=$CC$ac_cv_sys_largefile_CC
8782 fi
8783
8784 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8785$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8786if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8787 $as_echo_n "(cached) " >&6
8788else
8789 while :; do
8790 cat >conftest.$ac_ext <<_ACEOF
8791/* confdefs.h. */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h. */
8796#include <sys/types.h>
8797 /* Check that off_t can represent 2**63 - 1 correctly.
8798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8799 since some C++ compilers masquerading as C compilers
8800 incorrectly reject 9223372036854775807. */
8801#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8803 && LARGE_OFF_T % 2147483647 == 1)
8804 ? 1 : -1];
8805int
8806main ()
8807{
8808
8809 ;
8810 return 0;
8811}
8812_ACEOF
8813rm -f conftest.$ac_objext
8814if { (ac_try="$ac_compile"
8815case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818esac
8819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8820$as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
8831 ac_cv_sys_file_offset_bits=no; break
8832else
8833 $as_echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836
8837fi
8838
8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 cat >conftest.$ac_ext <<_ACEOF
8841/* confdefs.h. */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h. */
8846#define _FILE_OFFSET_BITS 64
8847#include <sys/types.h>
8848 /* Check that off_t can represent 2**63 - 1 correctly.
8849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8850 since some C++ compilers masquerading as C compilers
8851 incorrectly reject 9223372036854775807. */
8852#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8854 && LARGE_OFF_T % 2147483647 == 1)
8855 ? 1 : -1];
8856int
8857main ()
8858{
8859
8860 ;
8861 return 0;
8862}
8863_ACEOF
8864rm -f conftest.$ac_objext
8865if { (ac_try="$ac_compile"
8866case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
8870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8871$as_echo "$ac_try_echo") >&5
8872 (eval "$ac_compile") 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && {
8879 test -z "$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 } && test -s conftest.$ac_objext; then
8882 ac_cv_sys_file_offset_bits=64; break
8883else
8884 $as_echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887
8888fi
8889
8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 ac_cv_sys_file_offset_bits=unknown
8892 break
8893done
8894fi
8895{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8896$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8897case $ac_cv_sys_file_offset_bits in #(
8898 no | unknown) ;;
8899 *)
8900cat >>confdefs.h <<_ACEOF
8901#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8902_ACEOF
8903;;
8904esac
8905rm -rf conftest*
8906 if test $ac_cv_sys_file_offset_bits = unknown; then
8907 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8908$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8909if test "${ac_cv_sys_large_files+set}" = set; then
8910 $as_echo_n "(cached) " >&6
8911else
8912 while :; do
8913 cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919#include <sys/types.h>
8920 /* Check that off_t can represent 2**63 - 1 correctly.
8921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8922 since some C++ compilers masquerading as C compilers
8923 incorrectly reject 9223372036854775807. */
8924#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8926 && LARGE_OFF_T % 2147483647 == 1)
8927 ? 1 : -1];
8928int
8929main ()
8930{
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (ac_try="$ac_compile"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943$as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_cv_sys_large_files=no; break
8955else
8956 $as_echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959
8960fi
8961
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969#define _LARGE_FILES 1
8970#include <sys/types.h>
8971 /* Check that off_t can represent 2**63 - 1 correctly.
8972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8973 since some C++ compilers masquerading as C compilers
8974 incorrectly reject 9223372036854775807. */
8975#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8977 && LARGE_OFF_T % 2147483647 == 1)
8978 ? 1 : -1];
8979int
8980main ()
8981{
8982
8983 ;
8984 return 0;
8985}
8986_ACEOF
8987rm -f conftest.$ac_objext
8988if { (ac_try="$ac_compile"
8989case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992esac
8993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8994$as_echo "$ac_try_echo") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest.$ac_objext; then
9005 ac_cv_sys_large_files=1; break
9006else
9007 $as_echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010
9011fi
9012
9013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 ac_cv_sys_large_files=unknown
9015 break
9016done
9017fi
9018{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9019$as_echo "$ac_cv_sys_large_files" >&6; }
9020case $ac_cv_sys_large_files in #(
9021 no | unknown) ;;
9022 *)
9023cat >>confdefs.h <<_ACEOF
9024#define _LARGE_FILES $ac_cv_sys_large_files
9025_ACEOF
9026;;
9027esac
9028rm -rf conftest*
9029 fi
9030fi
9031
9032{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9033$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9034if test "${ac_cv_sys_largefile_source+set}" = set; then
9035 $as_echo_n "(cached) " >&6
9036else
9037 while :; do
9038 cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
9044#include <sys/types.h> /* for off_t */
9045 #include <stdio.h>
9046int
9047main ()
9048{
9049int (*fp) (FILE *, off_t, int) = fseeko;
9050 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext conftest$ac_exeext
9056if { (ac_try="$ac_link"
9057case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060esac
9061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9062$as_echo "$ac_try_echo") >&5
9063 (eval "$ac_link") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest$ac_exeext && {
9073 test "$cross_compiling" = yes ||
9074 $as_test_x conftest$ac_exeext
9075 }; then
9076 ac_cv_sys_largefile_source=no; break
9077else
9078 $as_echo "$as_me: failed program was:" >&5
9079sed 's/^/| /' conftest.$ac_ext >&5
9080
9081
9082fi
9083
9084rm -rf conftest.dSYM
9085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9086 conftest$ac_exeext conftest.$ac_ext
9087 cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h. */
9093#define _LARGEFILE_SOURCE 1
9094#include <sys/types.h> /* for off_t */
9095 #include <stdio.h>
9096int
9097main ()
9098{
9099int (*fp) (FILE *, off_t, int) = fseeko;
9100 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9101 ;
9102 return 0;
9103}
9104_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (ac_try="$ac_link"
9107case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110esac
9111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9112$as_echo "$ac_try_echo") >&5
9113 (eval "$ac_link") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext && {
9123 test "$cross_compiling" = yes ||
9124 $as_test_x conftest$ac_exeext
9125 }; then
9126 ac_cv_sys_largefile_source=1; break
9127else
9128 $as_echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131
9132fi
9133
9134rm -rf conftest.dSYM
9135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext conftest.$ac_ext
9137 ac_cv_sys_largefile_source=unknown
9138 break
9139done
9140fi
9141{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9142$as_echo "$ac_cv_sys_largefile_source" >&6; }
9143case $ac_cv_sys_largefile_source in #(
9144 no | unknown) ;;
9145 *)
9146cat >>confdefs.h <<_ACEOF
9147#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9148_ACEOF
9149;;
9150esac
9151rm -rf conftest*
9152
9153# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9154# in glibc 2.1.3, but that breaks too many other things.
9155# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9156if test $ac_cv_sys_largefile_source != unknown; then
9157
9158cat >>confdefs.h <<\_ACEOF
9159#define HAVE_FSEEKO 1
9160_ACEOF
9161
9162fi
9163
9164LFS_CPPFLAGS=''
9165if test "$enable_largefile" != no; then
9166 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9167 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9168 else
9169 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
9170$as_echo_n "checking for native large file support... " >&6; }
9171 if test "$cross_compiling" = yes; then
9172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9174{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9175See \`config.log' for more details." >&5
9176$as_echo "$as_me: error: cannot run test program while cross compiling
9177See \`config.log' for more details." >&2;}
9178 { (exit 1); exit 1; }; }; }
9179else
9180 cat >conftest.$ac_ext <<_ACEOF
9181#include <unistd.h>
9182 main () {
9183 exit(!(sizeof(off_t) == 8));
9184 }
9185_ACEOF
9186rm -f conftest$ac_exeext
9187if { (ac_try="$ac_link"
9188case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9193$as_echo "$ac_try_echo") >&5
9194 (eval "$ac_link") 2>&5
9195 ac_status=$?
9196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201esac
9202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9203$as_echo "$ac_try_echo") >&5
9204 (eval "$ac_try") 2>&5
9205 ac_status=$?
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
9209#define _FILE_OFFSET_BITS 64
9210_ACEOF
9211
9212 { $as_echo "$as_me:$LINENO: result: yes" >&5
9213$as_echo "yes" >&6; }
9214else
9215 $as_echo "$as_me: program exited with status $ac_status" >&5
9216$as_echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
9219( exit $ac_status )
9220{ $as_echo "$as_me:$LINENO: result: no" >&5
9221$as_echo "no" >&6; }
9222fi
9223rm -rf conftest.dSYM
9224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9225fi
9226
9227
9228 fi
9229 if test "$ac_cv_sys_large_files" != 'no'; then
9230 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9231 fi
9232 if test "$ac_cv_sys_largefile_source" != 'no'; then
9233 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9234 fi
9235fi
9236
9237
9238#
9239# Configure libtool & libltdl
9240#
9241# Configure libtool
9242enable_dlopen=yes
9243
9244
9245
9246case `pwd` in
9247 *\ * | *\ *)
9248 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9249$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9250esac
9251
9252
9253
9254macro_version='2.2.6'
9255macro_revision='1.3012'
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269ltmain="$ac_aux_dir/ltmain.sh"
9270
9271{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
9272$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9273if test "${lt_cv_path_NM+set}" = set; then
9274 $as_echo_n "(cached) " >&6
9275else
9276 if test -n "$NM"; then
9277 # Let the user override the test.
9278 lt_cv_path_NM="$NM"
9279else
9280 lt_nm_to_check="${ac_tool_prefix}nm"
9281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9282 lt_nm_to_check="$lt_nm_to_check nm"
9283 fi
9284 for lt_tmp_nm in $lt_nm_to_check; do
9285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9287 IFS="$lt_save_ifs"
9288 test -z "$ac_dir" && ac_dir=.
9289 tmp_nm="$ac_dir/$lt_tmp_nm"
9290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9291 # Check to see if the nm accepts a BSD-compat flag.
9292 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9293 # nm: unknown option "B" ignored
9294 # Tru64's nm complains that /dev/null is an invalid object file
9295 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9296 */dev/null* | *'Invalid file or object type'*)
9297 lt_cv_path_NM="$tmp_nm -B"
9298 break
9299 ;;
9300 *)
9301 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9302 */dev/null*)
9303 lt_cv_path_NM="$tmp_nm -p"
9304 break
9305 ;;
9306 *)
9307 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9308 continue # so that we can try to find one that supports BSD flags
9309 ;;
9310 esac
9311 ;;
9312 esac
9313 fi
9314 done
9315 IFS="$lt_save_ifs"
9316 done
9317 : ${lt_cv_path_NM=no}
9318fi
9319fi
9320{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9321$as_echo "$lt_cv_path_NM" >&6; }
9322if test "$lt_cv_path_NM" != "no"; then
9323 NM="$lt_cv_path_NM"
9324else
9325 # Didn't find any BSD compatible name lister, look for dumpbin.
9326 if test -n "$ac_tool_prefix"; then
9327 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9328 do
9329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_DUMPBIN+set}" = set; then
9334 $as_echo_n "(cached) " >&6
9335else
9336 if test -n "$DUMPBIN"; then
9337 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9338else
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9349 fi
9350done
9351done
9352IFS=$as_save_IFS
9353
9354fi
9355fi
9356DUMPBIN=$ac_cv_prog_DUMPBIN
9357if test -n "$DUMPBIN"; then
9358 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
9359$as_echo "$DUMPBIN" >&6; }
9360else
9361 { $as_echo "$as_me:$LINENO: result: no" >&5
9362$as_echo "no" >&6; }
9363fi
9364
9365
9366 test -n "$DUMPBIN" && break
9367 done
9368fi
9369if test -z "$DUMPBIN"; then
9370 ac_ct_DUMPBIN=$DUMPBIN
9371 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9372do
9373 # Extract the first word of "$ac_prog", so it can be a program name with args.
9374set dummy $ac_prog; ac_word=$2
9375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9376$as_echo_n "checking for $ac_word... " >&6; }
9377if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
9378 $as_echo_n "(cached) " >&6
9379else
9380 if test -n "$ac_ct_DUMPBIN"; then
9381 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9382else
9383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384for as_dir in $PATH
9385do
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9393 fi
9394done
9395done
9396IFS=$as_save_IFS
9397
9398fi
9399fi
9400ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9401if test -n "$ac_ct_DUMPBIN"; then
9402 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
9403$as_echo "$ac_ct_DUMPBIN" >&6; }
9404else
9405 { $as_echo "$as_me:$LINENO: result: no" >&5
9406$as_echo "no" >&6; }
9407fi
9408
9409
9410 test -n "$ac_ct_DUMPBIN" && break
9411done
9412
9413 if test "x$ac_ct_DUMPBIN" = x; then
9414 DUMPBIN=":"
9415 else
9416 case $cross_compiling:$ac_tool_warned in
9417yes:)
9418{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9420ac_tool_warned=yes ;;
9421esac
9422 DUMPBIN=$ac_ct_DUMPBIN
9423 fi
9424fi
9425
9426
9427 if test "$DUMPBIN" != ":"; then
9428 NM="$DUMPBIN"
9429 fi
9430fi
9431test -z "$NM" && NM=nm
9432
9433
9434
9435
9436
9437
9438{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
9439$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9440if test "${lt_cv_nm_interface+set}" = set; then
9441 $as_echo_n "(cached) " >&6
9442else
9443 lt_cv_nm_interface="BSD nm"
9444 echo "int some_variable = 0;" > conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009445 (eval echo "\"\$as_me:9445: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009446 (eval "$ac_compile" 2>conftest.err)
9447 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +00009448 (eval echo "\"\$as_me:9448: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009449 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9450 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +00009451 (eval echo "\"\$as_me:9451: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009452 cat conftest.out >&5
9453 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9454 lt_cv_nm_interface="MS dumpbin"
9455 fi
9456 rm -f conftest*
9457fi
9458{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
9459$as_echo "$lt_cv_nm_interface" >&6; }
9460
9461# find the maximum length of command line arguments
9462{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9463$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9464if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9465 $as_echo_n "(cached) " >&6
9466else
9467 i=0
9468 teststring="ABCD"
9469
9470 case $build_os in
9471 msdosdjgpp*)
9472 # On DJGPP, this test can blow up pretty badly due to problems in libc
9473 # (any single argument exceeding 2000 bytes causes a buffer overrun
9474 # during glob expansion). Even if it were fixed, the result of this
9475 # check would be larger than it should be.
9476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9477 ;;
9478
9479 gnu*)
9480 # Under GNU Hurd, this test is not required because there is
9481 # no limit to the length of command line arguments.
9482 # Libtool will interpret -1 as no limit whatsoever
9483 lt_cv_sys_max_cmd_len=-1;
9484 ;;
9485
9486 cygwin* | mingw* | cegcc*)
9487 # On Win9x/ME, this test blows up -- it succeeds, but takes
9488 # about 5 minutes as the teststring grows exponentially.
9489 # Worse, since 9x/ME are not pre-emptively multitasking,
9490 # you end up with a "frozen" computer, even though with patience
9491 # the test eventually succeeds (with a max line length of 256k).
9492 # Instead, let's just punt: use the minimum linelength reported by
9493 # all of the supported platforms: 8192 (on NT/2K/XP).
9494 lt_cv_sys_max_cmd_len=8192;
9495 ;;
9496
9497 amigaos*)
9498 # On AmigaOS with pdksh, this test takes hours, literally.
9499 # So we just punt and use a minimum line length of 8192.
9500 lt_cv_sys_max_cmd_len=8192;
9501 ;;
9502
9503 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9504 # This has been around since 386BSD, at least. Likely further.
9505 if test -x /sbin/sysctl; then
9506 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9507 elif test -x /usr/sbin/sysctl; then
9508 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9509 else
9510 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9511 fi
9512 # And add a safety zone
9513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9515 ;;
9516
9517 interix*)
9518 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9519 lt_cv_sys_max_cmd_len=196608
9520 ;;
9521
9522 osf*)
9523 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9524 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9525 # nice to cause kernel panics so lets avoid the loop below.
9526 # First set a reasonable default.
9527 lt_cv_sys_max_cmd_len=16384
9528 #
9529 if test -x /sbin/sysconfig; then
9530 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9531 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9532 esac
9533 fi
9534 ;;
9535 sco3.2v5*)
9536 lt_cv_sys_max_cmd_len=102400
9537 ;;
9538 sysv5* | sco5v6* | sysv4.2uw2*)
9539 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9540 if test -n "$kargmax"; then
9541 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9542 else
9543 lt_cv_sys_max_cmd_len=32768
9544 fi
9545 ;;
9546 *)
9547 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9548 if test -n "$lt_cv_sys_max_cmd_len"; then
9549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9551 else
9552 # Make teststring a little bigger before we do anything with it.
9553 # a 1K string should be a reasonable start.
9554 for i in 1 2 3 4 5 6 7 8 ; do
9555 teststring=$teststring$teststring
9556 done
9557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9558 # If test is not a shell built-in, we'll probably end up computing a
9559 # maximum length that is only half of the actual maximum length, but
9560 # we can't tell.
9561 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9562 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9563 test $i != 17 # 1/2 MB should be enough
9564 do
9565 i=`expr $i + 1`
9566 teststring=$teststring$teststring
9567 done
9568 # Only check the string length outside the loop.
9569 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9570 teststring=
9571 # Add a significant safety factor because C++ compilers can tack on
9572 # massive amounts of additional arguments before passing them to the
9573 # linker. It appears as though 1/2 is a usable value.
9574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9575 fi
9576 ;;
9577 esac
9578
9579fi
9580
9581if test -n $lt_cv_sys_max_cmd_len ; then
9582 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9583$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9584else
9585 { $as_echo "$as_me:$LINENO: result: none" >&5
9586$as_echo "none" >&6; }
9587fi
9588max_cmd_len=$lt_cv_sys_max_cmd_len
9589
9590
9591
9592
9593
9594
9595: ${CP="cp -f"}
9596: ${MV="mv -f"}
9597: ${RM="rm -f"}
9598
9599{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
9600$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9601# Try some XSI features
9602xsi_shell=no
9603( _lt_dummy="a/b/c"
9604 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9605 = c,a/b,, \
9606 && eval 'test $(( 1 + 1 )) -eq 2 \
9607 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9608 && xsi_shell=yes
9609{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
9610$as_echo "$xsi_shell" >&6; }
9611
9612
9613{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
9614$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9615lt_shell_append=no
9616( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9617 >/dev/null 2>&1 \
9618 && lt_shell_append=yes
9619{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
9620$as_echo "$lt_shell_append" >&6; }
9621
9622
9623if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9624 lt_unset=unset
9625else
9626 lt_unset=false
9627fi
9628
9629
9630
9631
9632
9633# test EBCDIC or ASCII
9634case `echo X|tr X '\101'` in
9635 A) # ASCII based system
9636 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9637 lt_SP2NL='tr \040 \012'
9638 lt_NL2SP='tr \015\012 \040\040'
9639 ;;
9640 *) # EBCDIC based system
9641 lt_SP2NL='tr \100 \n'
9642 lt_NL2SP='tr \r\n \100\100'
9643 ;;
9644esac
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9655$as_echo_n "checking for $LD option to reload object files... " >&6; }
9656if test "${lt_cv_ld_reload_flag+set}" = set; then
9657 $as_echo_n "(cached) " >&6
9658else
9659 lt_cv_ld_reload_flag='-r'
9660fi
9661{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9662$as_echo "$lt_cv_ld_reload_flag" >&6; }
9663reload_flag=$lt_cv_ld_reload_flag
9664case $reload_flag in
9665"" | " "*) ;;
9666*) reload_flag=" $reload_flag" ;;
9667esac
9668reload_cmds='$LD$reload_flag -o $output$reload_objs'
9669case $host_os in
9670 darwin*)
9671 if test "$GCC" = yes; then
9672 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9673 else
9674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9675 fi
9676 ;;
9677esac
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687if test -n "$ac_tool_prefix"; then
9688 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9689set dummy ${ac_tool_prefix}objdump; ac_word=$2
9690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
9692if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9694else
9695 if test -n "$OBJDUMP"; then
9696 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9697else
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9708 fi
9709done
9710done
9711IFS=$as_save_IFS
9712
9713fi
9714fi
9715OBJDUMP=$ac_cv_prog_OBJDUMP
9716if test -n "$OBJDUMP"; then
9717 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9718$as_echo "$OBJDUMP" >&6; }
9719else
9720 { $as_echo "$as_me:$LINENO: result: no" >&5
9721$as_echo "no" >&6; }
9722fi
9723
9724
9725fi
9726if test -z "$ac_cv_prog_OBJDUMP"; then
9727 ac_ct_OBJDUMP=$OBJDUMP
9728 # Extract the first word of "objdump", so it can be a program name with args.
9729set dummy objdump; ac_word=$2
9730{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; }
9732if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9733 $as_echo_n "(cached) " >&6
9734else
9735 if test -n "$ac_ct_OBJDUMP"; then
9736 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749done
9750done
9751IFS=$as_save_IFS
9752
9753fi
9754fi
9755ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9756if test -n "$ac_ct_OBJDUMP"; then
9757 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9758$as_echo "$ac_ct_OBJDUMP" >&6; }
9759else
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761$as_echo "no" >&6; }
9762fi
9763
9764 if test "x$ac_ct_OBJDUMP" = x; then
9765 OBJDUMP="false"
9766 else
9767 case $cross_compiling:$ac_tool_warned in
9768yes:)
9769{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9771ac_tool_warned=yes ;;
9772esac
9773 OBJDUMP=$ac_ct_OBJDUMP
9774 fi
9775else
9776 OBJDUMP="$ac_cv_prog_OBJDUMP"
9777fi
9778
9779test -z "$OBJDUMP" && OBJDUMP=objdump
9780
9781
9782
9783
9784
9785
9786{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9787$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9788if test "${lt_cv_deplibs_check_method+set}" = set; then
9789 $as_echo_n "(cached) " >&6
9790else
9791 lt_cv_file_magic_cmd='$MAGIC_CMD'
9792lt_cv_file_magic_test_file=
9793lt_cv_deplibs_check_method='unknown'
9794# Need to set the preceding variable on all platforms that support
9795# interlibrary dependencies.
9796# 'none' -- dependencies not supported.
9797# `unknown' -- same as none, but documents that we really don't know.
9798# 'pass_all' -- all dependencies passed with no checks.
9799# 'test_compile' -- check by making test program.
9800# 'file_magic [[regex]]' -- check by looking for files in library path
9801# which responds to the $file_magic_cmd with a given extended regex.
9802# If you have `file' or equivalent on your system and you're not sure
9803# whether `pass_all' will *always* work, you probably want this one.
9804
9805case $host_os in
9806aix[4-9]*)
9807 lt_cv_deplibs_check_method=pass_all
9808 ;;
9809
9810beos*)
9811 lt_cv_deplibs_check_method=pass_all
9812 ;;
9813
9814bsdi[45]*)
9815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9816 lt_cv_file_magic_cmd='/usr/bin/file -L'
9817 lt_cv_file_magic_test_file=/shlib/libc.so
9818 ;;
9819
9820cygwin*)
9821 # func_win32_libid is a shell function defined in ltmain.sh
9822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9823 lt_cv_file_magic_cmd='func_win32_libid'
9824 ;;
9825
9826mingw* | pw32*)
9827 # Base MSYS/MinGW do not provide the 'file' command needed by
9828 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9829 # unless we find 'file', for example because we are cross-compiling.
9830 if ( file / ) >/dev/null 2>&1; then
9831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9832 lt_cv_file_magic_cmd='func_win32_libid'
9833 else
9834 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9835 lt_cv_file_magic_cmd='$OBJDUMP -f'
9836 fi
9837 ;;
9838
9839cegcc)
9840 # use the weaker test based on 'objdump'. See mingw*.
9841 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9842 lt_cv_file_magic_cmd='$OBJDUMP -f'
9843 ;;
9844
9845darwin* | rhapsody*)
9846 lt_cv_deplibs_check_method=pass_all
9847 ;;
9848
9849freebsd* | dragonfly*)
9850 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9851 case $host_cpu in
9852 i*86 )
9853 # Not sure whether the presence of OpenBSD here was a mistake.
9854 # Let's accept both of them until this is cleared up.
9855 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9856 lt_cv_file_magic_cmd=/usr/bin/file
9857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9858 ;;
9859 esac
9860 else
9861 lt_cv_deplibs_check_method=pass_all
9862 fi
9863 ;;
9864
9865gnu*)
9866 lt_cv_deplibs_check_method=pass_all
9867 ;;
9868
9869hpux10.20* | hpux11*)
9870 lt_cv_file_magic_cmd=/usr/bin/file
9871 case $host_cpu in
9872 ia64*)
9873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9874 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9875 ;;
9876 hppa*64*)
9877 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9878 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9879 ;;
9880 *)
9881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9883 ;;
9884 esac
9885 ;;
9886
9887interix[3-9]*)
9888 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9890 ;;
9891
9892irix5* | irix6* | nonstopux*)
9893 case $LD in
9894 *-32|*"-32 ") libmagic=32-bit;;
9895 *-n32|*"-n32 ") libmagic=N32;;
9896 *-64|*"-64 ") libmagic=64-bit;;
9897 *) libmagic=never-match;;
9898 esac
9899 lt_cv_deplibs_check_method=pass_all
9900 ;;
9901
9902# This must be Linux ELF.
9903linux* | k*bsd*-gnu)
9904 lt_cv_deplibs_check_method=pass_all
9905 ;;
9906
9907netbsd*)
9908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9910 else
9911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9912 fi
9913 ;;
9914
9915newos6*)
9916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9917 lt_cv_file_magic_cmd=/usr/bin/file
9918 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9919 ;;
9920
9921*nto* | *qnx*)
9922 lt_cv_deplibs_check_method=pass_all
9923 ;;
9924
9925openbsd*)
9926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9928 else
9929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9930 fi
9931 ;;
9932
9933osf3* | osf4* | osf5*)
9934 lt_cv_deplibs_check_method=pass_all
9935 ;;
9936
9937rdos*)
9938 lt_cv_deplibs_check_method=pass_all
9939 ;;
9940
9941solaris*)
9942 lt_cv_deplibs_check_method=pass_all
9943 ;;
9944
9945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9946 lt_cv_deplibs_check_method=pass_all
9947 ;;
9948
9949sysv4 | sysv4.3*)
9950 case $host_vendor in
9951 motorola)
9952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9954 ;;
9955 ncr)
9956 lt_cv_deplibs_check_method=pass_all
9957 ;;
9958 sequent)
9959 lt_cv_file_magic_cmd='/bin/file'
9960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9961 ;;
9962 sni)
9963 lt_cv_file_magic_cmd='/bin/file'
9964 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9965 lt_cv_file_magic_test_file=/lib/libc.so
9966 ;;
9967 siemens)
9968 lt_cv_deplibs_check_method=pass_all
9969 ;;
9970 pc)
9971 lt_cv_deplibs_check_method=pass_all
9972 ;;
9973 esac
9974 ;;
9975
9976tpf*)
9977 lt_cv_deplibs_check_method=pass_all
9978 ;;
9979esac
9980
9981fi
9982{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9983$as_echo "$lt_cv_deplibs_check_method" >&6; }
9984file_magic_cmd=$lt_cv_file_magic_cmd
9985deplibs_check_method=$lt_cv_deplibs_check_method
9986test -z "$deplibs_check_method" && deplibs_check_method=unknown
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999if test -n "$ac_tool_prefix"; then
10000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10001set dummy ${ac_tool_prefix}ar; ac_word=$2
10002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10003$as_echo_n "checking for $ac_word... " >&6; }
10004if test "${ac_cv_prog_AR+set}" = set; then
10005 $as_echo_n "(cached) " >&6
10006else
10007 if test -n "$AR"; then
10008 ac_cv_prog_AR="$AR" # Let the user override the test.
10009else
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_prog_AR="${ac_tool_prefix}ar"
10018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
10023IFS=$as_save_IFS
10024
10025fi
10026fi
10027AR=$ac_cv_prog_AR
10028if test -n "$AR"; then
10029 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10030$as_echo "$AR" >&6; }
10031else
10032 { $as_echo "$as_me:$LINENO: result: no" >&5
10033$as_echo "no" >&6; }
10034fi
10035
10036
10037fi
10038if test -z "$ac_cv_prog_AR"; then
10039 ac_ct_AR=$AR
10040 # Extract the first word of "ar", so it can be a program name with args.
10041set dummy ar; ac_word=$2
10042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
10044if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10045 $as_echo_n "(cached) " >&6
10046else
10047 if test -n "$ac_ct_AR"; then
10048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_ac_ct_AR="ar"
10058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061done
10062done
10063IFS=$as_save_IFS
10064
10065fi
10066fi
10067ac_ct_AR=$ac_cv_prog_ac_ct_AR
10068if test -n "$ac_ct_AR"; then
10069 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10070$as_echo "$ac_ct_AR" >&6; }
10071else
10072 { $as_echo "$as_me:$LINENO: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076 if test "x$ac_ct_AR" = x; then
10077 AR="false"
10078 else
10079 case $cross_compiling:$ac_tool_warned in
10080yes:)
10081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10083ac_tool_warned=yes ;;
10084esac
10085 AR=$ac_ct_AR
10086 fi
10087else
10088 AR="$ac_cv_prog_AR"
10089fi
10090
10091test -z "$AR" && AR=ar
10092test -z "$AR_FLAGS" && AR_FLAGS=cru
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104if test -n "$ac_tool_prefix"; then
10105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10106set dummy ${ac_tool_prefix}strip; ac_word=$2
10107{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10108$as_echo_n "checking for $ac_word... " >&6; }
10109if test "${ac_cv_prog_STRIP+set}" = set; then
10110 $as_echo_n "(cached) " >&6
10111else
10112 if test -n "$STRIP"; then
10113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10114else
10115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116for as_dir in $PATH
10117do
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10125 fi
10126done
10127done
10128IFS=$as_save_IFS
10129
10130fi
10131fi
10132STRIP=$ac_cv_prog_STRIP
10133if test -n "$STRIP"; then
10134 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10135$as_echo "$STRIP" >&6; }
10136else
10137 { $as_echo "$as_me:$LINENO: result: no" >&5
10138$as_echo "no" >&6; }
10139fi
10140
10141
10142fi
10143if test -z "$ac_cv_prog_STRIP"; then
10144 ac_ct_STRIP=$STRIP
10145 # Extract the first word of "strip", so it can be a program name with args.
10146set dummy strip; ac_word=$2
10147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10148$as_echo_n "checking for $ac_word... " >&6; }
10149if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10150 $as_echo_n "(cached) " >&6
10151else
10152 if test -n "$ac_ct_STRIP"; then
10153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10154else
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_prog_ac_ct_STRIP="strip"
10163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166done
10167done
10168IFS=$as_save_IFS
10169
10170fi
10171fi
10172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10173if test -n "$ac_ct_STRIP"; then
10174 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10175$as_echo "$ac_ct_STRIP" >&6; }
10176else
10177 { $as_echo "$as_me:$LINENO: result: no" >&5
10178$as_echo "no" >&6; }
10179fi
10180
10181 if test "x$ac_ct_STRIP" = x; then
10182 STRIP=":"
10183 else
10184 case $cross_compiling:$ac_tool_warned in
10185yes:)
10186{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10188ac_tool_warned=yes ;;
10189esac
10190 STRIP=$ac_ct_STRIP
10191 fi
10192else
10193 STRIP="$ac_cv_prog_STRIP"
10194fi
10195
10196test -z "$STRIP" && STRIP=:
10197
10198
10199
10200
10201
10202
10203if test -n "$ac_tool_prefix"; then
10204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10205set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
10208if test "${ac_cv_prog_RANLIB+set}" = set; then
10209 $as_echo_n "(cached) " >&6
10210else
10211 if test -n "$RANLIB"; then
10212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10213else
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225done
10226done
10227IFS=$as_save_IFS
10228
10229fi
10230fi
10231RANLIB=$ac_cv_prog_RANLIB
10232if test -n "$RANLIB"; then
10233 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
10234$as_echo "$RANLIB" >&6; }
10235else
10236 { $as_echo "$as_me:$LINENO: result: no" >&5
10237$as_echo "no" >&6; }
10238fi
10239
10240
10241fi
10242if test -z "$ac_cv_prog_RANLIB"; then
10243 ac_ct_RANLIB=$RANLIB
10244 # Extract the first word of "ranlib", so it can be a program name with args.
10245set dummy ranlib; ac_word=$2
10246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
10248if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10249 $as_echo_n "(cached) " >&6
10250else
10251 if test -n "$ac_ct_RANLIB"; then
10252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10253else
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261 ac_cv_prog_ac_ct_RANLIB="ranlib"
10262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10264 fi
10265done
10266done
10267IFS=$as_save_IFS
10268
10269fi
10270fi
10271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10272if test -n "$ac_ct_RANLIB"; then
10273 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10274$as_echo "$ac_ct_RANLIB" >&6; }
10275else
10276 { $as_echo "$as_me:$LINENO: result: no" >&5
10277$as_echo "no" >&6; }
10278fi
10279
10280 if test "x$ac_ct_RANLIB" = x; then
10281 RANLIB=":"
10282 else
10283 case $cross_compiling:$ac_tool_warned in
10284yes:)
10285{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10287ac_tool_warned=yes ;;
10288esac
10289 RANLIB=$ac_ct_RANLIB
10290 fi
10291else
10292 RANLIB="$ac_cv_prog_RANLIB"
10293fi
10294
10295test -z "$RANLIB" && RANLIB=:
10296
10297
10298
10299
10300
10301
10302# Determine commands to create old-style static archives.
10303old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10304old_postinstall_cmds='chmod 644 $oldlib'
10305old_postuninstall_cmds=
10306
10307if test -n "$RANLIB"; then
10308 case $host_os in
10309 openbsd*)
10310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10311 ;;
10312 *)
10313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10314 ;;
10315 esac
10316 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10317fi
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352# If no C compiler was specified, use CC.
10353LTCC=${LTCC-"$CC"}
10354
10355# If no C compiler flags were specified, use CFLAGS.
10356LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10357
10358# Allow CC to be a program name with arguments.
10359compiler=$CC
10360
10361
10362# Check for command to grab the raw symbol name followed by C symbol from nm.
10363{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10364$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10366 $as_echo_n "(cached) " >&6
10367else
10368
10369# These are sane defaults that work on at least a few old systems.
10370# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10371
10372# Character class describing NM global symbol codes.
10373symcode='[BCDEGRST]'
10374
10375# Regexp to match symbols that can be accessed directly from C.
10376sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10377
10378# Define system-specific variables.
10379case $host_os in
10380aix*)
10381 symcode='[BCDT]'
10382 ;;
10383cygwin* | mingw* | pw32* | cegcc*)
10384 symcode='[ABCDGISTW]'
10385 ;;
10386hpux*)
10387 if test "$host_cpu" = ia64; then
10388 symcode='[ABCDEGRST]'
10389 fi
10390 ;;
10391irix* | nonstopux*)
10392 symcode='[BCDEGRST]'
10393 ;;
10394osf*)
10395 symcode='[BCDEGQRST]'
10396 ;;
10397solaris*)
10398 symcode='[BDRT]'
10399 ;;
10400sco3.2v5*)
10401 symcode='[DT]'
10402 ;;
10403sysv4.2uw2*)
10404 symcode='[DT]'
10405 ;;
10406sysv5* | sco5v6* | unixware* | OpenUNIX*)
10407 symcode='[ABDT]'
10408 ;;
10409sysv4)
10410 symcode='[DFNSTU]'
10411 ;;
10412esac
10413
10414# If we're using GNU nm, then use its standard symbol codes.
10415case `$NM -V 2>&1` in
10416*GNU* | *'with BFD'*)
10417 symcode='[ABCDGIRSTW]' ;;
10418esac
10419
10420# Transform an extracted symbol line into a proper C declaration.
10421# Some systems (esp. on ia64) link data and code symbols differently,
10422# so use this general approach.
10423lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10424
10425# Transform an extracted symbol line into symbol name and symbol address
10426lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10427lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
10428
10429# Handle CRLF in mingw tool chain
10430opt_cr=
10431case $build_os in
10432mingw*)
10433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10434 ;;
10435esac
10436
10437# Try without a prefix underscore, then with it.
10438for ac_symprfx in "" "_"; do
10439
10440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10441 symxfrm="\\1 $ac_symprfx\\2 \\2"
10442
10443 # Write the raw and C identifiers.
10444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10445 # Fake it for dumpbin and say T for any non-static function
10446 # and D for any global variable.
10447 # Also find C++ and __fastcall symbols from MSVC++,
10448 # which start with @ or ?.
10449 lt_cv_sys_global_symbol_pipe="$AWK '"\
10450" {last_section=section; section=\$ 3};"\
10451" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10452" \$ 0!~/External *\|/{next};"\
10453" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10454" {if(hide[section]) next};"\
10455" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10456" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10457" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10458" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10459" ' prfx=^$ac_symprfx"
10460 else
10461 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10462 fi
10463
10464 # Check to see that the pipe works correctly.
10465 pipe_works=no
10466
10467 rm -f conftest*
10468 cat > conftest.$ac_ext <<_LT_EOF
10469#ifdef __cplusplus
10470extern "C" {
10471#endif
10472char nm_test_var;
10473void nm_test_func(void);
10474void nm_test_func(void){}
10475#ifdef __cplusplus
10476}
10477#endif
10478int main(){nm_test_var='a';nm_test_func();return(0);}
10479_LT_EOF
10480
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10483 ac_status=$?
10484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; then
10486 # Now try to grab the symbols.
10487 nlist=conftest.nm
10488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && test -s "$nlist"; then
10493 # Try sorting and uniquifying the output.
10494 if sort "$nlist" | uniq > "$nlist"T; then
10495 mv -f "$nlist"T "$nlist"
10496 else
10497 rm -f "$nlist"T
10498 fi
10499
10500 # Make sure that we snagged all the symbols we need.
10501 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10502 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10503 cat <<_LT_EOF > conftest.$ac_ext
10504#ifdef __cplusplus
10505extern "C" {
10506#endif
10507
10508_LT_EOF
10509 # Now generate the symbol file.
10510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10511
10512 cat <<_LT_EOF >> conftest.$ac_ext
10513
10514/* The mapping between symbol names and symbols. */
10515const struct {
10516 const char *name;
10517 void *address;
10518}
10519lt__PROGRAM__LTX_preloaded_symbols[] =
10520{
10521 { "@PROGRAM@", (void *) 0 },
10522_LT_EOF
10523 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10524 cat <<\_LT_EOF >> conftest.$ac_ext
10525 {0, (void *) 0}
10526};
10527
10528/* This works around a problem in FreeBSD linker */
10529#ifdef FREEBSD_WORKAROUND
10530static const void *lt_preloaded_setup() {
10531 return lt__PROGRAM__LTX_preloaded_symbols;
10532}
10533#endif
10534
10535#ifdef __cplusplus
10536}
10537#endif
10538_LT_EOF
10539 # Now try linking the two files.
10540 mv conftest.$ac_objext conftstm.$ac_objext
10541 lt_save_LIBS="$LIBS"
10542 lt_save_CFLAGS="$CFLAGS"
10543 LIBS="conftstm.$ac_objext"
10544 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5
10547 ac_status=$?
10548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10550 pipe_works=yes
10551 fi
10552 LIBS="$lt_save_LIBS"
10553 CFLAGS="$lt_save_CFLAGS"
10554 else
10555 echo "cannot find nm_test_func in $nlist" >&5
10556 fi
10557 else
10558 echo "cannot find nm_test_var in $nlist" >&5
10559 fi
10560 else
10561 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10562 fi
10563 else
10564 echo "$progname: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10566 fi
10567 rm -rf conftest* conftst*
10568
10569 # Do not use the global_symbol_pipe unless it works.
10570 if test "$pipe_works" = yes; then
10571 break
10572 else
10573 lt_cv_sys_global_symbol_pipe=
10574 fi
10575done
10576
10577fi
10578
10579if test -z "$lt_cv_sys_global_symbol_pipe"; then
10580 lt_cv_sys_global_symbol_to_cdecl=
10581fi
10582if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10583 { $as_echo "$as_me:$LINENO: result: failed" >&5
10584$as_echo "failed" >&6; }
10585else
10586 { $as_echo "$as_me:$LINENO: result: ok" >&5
10587$as_echo "ok" >&6; }
10588fi
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611# Check whether --enable-libtool-lock was given.
10612if test "${enable_libtool_lock+set}" = set; then
10613 enableval=$enable_libtool_lock;
10614fi
10615
10616test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10617
10618# Some flags need to be propagated to the compiler or linker for good
10619# libtool support.
10620case $host in
10621ia64-*-hpux*)
10622 # Find out which ABI we are using.
10623 echo 'int i;' > conftest.$ac_ext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625 (eval $ac_compile) 2>&5
10626 ac_status=$?
10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; then
10629 case `/usr/bin/file conftest.$ac_objext` in
10630 *ELF-32*)
10631 HPUX_IA64_MODE="32"
10632 ;;
10633 *ELF-64*)
10634 HPUX_IA64_MODE="64"
10635 ;;
10636 esac
10637 fi
10638 rm -rf conftest*
10639 ;;
10640*-*-irix6*)
10641 # Find out which ABI we are using.
cristy736173a2009-09-20 21:18:22 +000010642 echo '#line 10642 "configure"' > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644 (eval $ac_compile) 2>&5
10645 ac_status=$?
10646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; then
10648 if test "$lt_cv_prog_gnu_ld" = yes; then
10649 case `/usr/bin/file conftest.$ac_objext` in
10650 *32-bit*)
10651 LD="${LD-ld} -melf32bsmip"
10652 ;;
10653 *N32*)
10654 LD="${LD-ld} -melf32bmipn32"
10655 ;;
10656 *64-bit*)
10657 LD="${LD-ld} -melf64bmip"
10658 ;;
10659 esac
10660 else
10661 case `/usr/bin/file conftest.$ac_objext` in
10662 *32-bit*)
10663 LD="${LD-ld} -32"
10664 ;;
10665 *N32*)
10666 LD="${LD-ld} -n32"
10667 ;;
10668 *64-bit*)
10669 LD="${LD-ld} -64"
10670 ;;
10671 esac
10672 fi
10673 fi
10674 rm -rf conftest*
10675 ;;
10676
10677x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10678s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10679 # Find out which ABI we are using.
10680 echo 'int i;' > conftest.$ac_ext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10682 (eval $ac_compile) 2>&5
10683 ac_status=$?
10684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; then
10686 case `/usr/bin/file conftest.o` in
10687 *32-bit*)
10688 case $host in
10689 x86_64-*kfreebsd*-gnu)
10690 LD="${LD-ld} -m elf_i386_fbsd"
10691 ;;
10692 x86_64-*linux*)
10693 LD="${LD-ld} -m elf_i386"
10694 ;;
10695 ppc64-*linux*|powerpc64-*linux*)
10696 LD="${LD-ld} -m elf32ppclinux"
10697 ;;
10698 s390x-*linux*)
10699 LD="${LD-ld} -m elf_s390"
10700 ;;
10701 sparc64-*linux*)
10702 LD="${LD-ld} -m elf32_sparc"
10703 ;;
10704 esac
10705 ;;
10706 *64-bit*)
10707 case $host in
10708 x86_64-*kfreebsd*-gnu)
10709 LD="${LD-ld} -m elf_x86_64_fbsd"
10710 ;;
10711 x86_64-*linux*)
10712 LD="${LD-ld} -m elf_x86_64"
10713 ;;
10714 ppc*-*linux*|powerpc*-*linux*)
10715 LD="${LD-ld} -m elf64ppc"
10716 ;;
10717 s390*-*linux*|s390*-*tpf*)
10718 LD="${LD-ld} -m elf64_s390"
10719 ;;
10720 sparc*-*linux*)
10721 LD="${LD-ld} -m elf64_sparc"
10722 ;;
10723 esac
10724 ;;
10725 esac
10726 fi
10727 rm -rf conftest*
10728 ;;
10729
10730*-*-sco3.2v5*)
10731 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10732 SAVE_CFLAGS="$CFLAGS"
10733 CFLAGS="$CFLAGS -belf"
10734 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10735$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10736if test "${lt_cv_cc_needs_belf+set}" = set; then
10737 $as_echo_n "(cached) " >&6
10738else
10739 ac_ext=c
10740ac_cpp='$CPP $CPPFLAGS'
10741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743ac_compiler_gnu=$ac_cv_c_compiler_gnu
10744
10745 cat >conftest.$ac_ext <<_ACEOF
10746/* confdefs.h. */
10747_ACEOF
10748cat confdefs.h >>conftest.$ac_ext
10749cat >>conftest.$ac_ext <<_ACEOF
10750/* end confdefs.h. */
10751
10752int
10753main ()
10754{
10755
10756 ;
10757 return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (ac_try="$ac_link"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767$as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext && {
10778 test "$cross_compiling" = yes ||
10779 $as_test_x conftest$ac_exeext
10780 }; then
10781 lt_cv_cc_needs_belf=yes
10782else
10783 $as_echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 lt_cv_cc_needs_belf=no
10787fi
10788
10789rm -rf conftest.dSYM
10790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10792 ac_ext=c
10793ac_cpp='$CPP $CPPFLAGS'
10794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797
10798fi
10799{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10800$as_echo "$lt_cv_cc_needs_belf" >&6; }
10801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10803 CFLAGS="$SAVE_CFLAGS"
10804 fi
10805 ;;
10806sparc*-*solaris*)
10807 # Find out which ABI we are using.
10808 echo 'int i;' > conftest.$ac_ext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>&5
10811 ac_status=$?
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; then
10814 case `/usr/bin/file conftest.o` in
10815 *64-bit*)
10816 case $lt_cv_prog_gnu_ld in
10817 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10818 *)
10819 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10820 LD="${LD-ld} -64"
10821 fi
10822 ;;
10823 esac
10824 ;;
10825 esac
10826 fi
10827 rm -rf conftest*
10828 ;;
10829esac
10830
10831need_locks="$enable_libtool_lock"
10832
10833
10834 case $host_os in
10835 rhapsody* | darwin*)
10836 if test -n "$ac_tool_prefix"; then
10837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10838set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10840$as_echo_n "checking for $ac_word... " >&6; }
10841if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10842 $as_echo_n "(cached) " >&6
10843else
10844 if test -n "$DSYMUTIL"; then
10845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10854 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858done
10859done
10860IFS=$as_save_IFS
10861
10862fi
10863fi
10864DSYMUTIL=$ac_cv_prog_DSYMUTIL
10865if test -n "$DSYMUTIL"; then
10866 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10867$as_echo "$DSYMUTIL" >&6; }
10868else
10869 { $as_echo "$as_me:$LINENO: result: no" >&5
10870$as_echo "no" >&6; }
10871fi
10872
10873
10874fi
10875if test -z "$ac_cv_prog_DSYMUTIL"; then
10876 ac_ct_DSYMUTIL=$DSYMUTIL
10877 # Extract the first word of "dsymutil", so it can be a program name with args.
10878set dummy dsymutil; ac_word=$2
10879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10880$as_echo_n "checking for $ac_word... " >&6; }
10881if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10882 $as_echo_n "(cached) " >&6
10883else
10884 if test -n "$ac_ct_DSYMUTIL"; then
10885 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10886else
10887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888for as_dir in $PATH
10889do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10894 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898done
10899done
10900IFS=$as_save_IFS
10901
10902fi
10903fi
10904ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10905if test -n "$ac_ct_DSYMUTIL"; then
10906 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10907$as_echo "$ac_ct_DSYMUTIL" >&6; }
10908else
10909 { $as_echo "$as_me:$LINENO: result: no" >&5
10910$as_echo "no" >&6; }
10911fi
10912
10913 if test "x$ac_ct_DSYMUTIL" = x; then
10914 DSYMUTIL=":"
10915 else
10916 case $cross_compiling:$ac_tool_warned in
10917yes:)
10918{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10920ac_tool_warned=yes ;;
10921esac
10922 DSYMUTIL=$ac_ct_DSYMUTIL
10923 fi
10924else
10925 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10926fi
10927
10928 if test -n "$ac_tool_prefix"; then
10929 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10930set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10932$as_echo_n "checking for $ac_word... " >&6; }
10933if test "${ac_cv_prog_NMEDIT+set}" = set; then
10934 $as_echo_n "(cached) " >&6
10935else
10936 if test -n "$NMEDIT"; then
10937 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10938else
10939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940for as_dir in $PATH
10941do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10949 fi
10950done
10951done
10952IFS=$as_save_IFS
10953
10954fi
10955fi
10956NMEDIT=$ac_cv_prog_NMEDIT
10957if test -n "$NMEDIT"; then
10958 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10959$as_echo "$NMEDIT" >&6; }
10960else
10961 { $as_echo "$as_me:$LINENO: result: no" >&5
10962$as_echo "no" >&6; }
10963fi
10964
10965
10966fi
10967if test -z "$ac_cv_prog_NMEDIT"; then
10968 ac_ct_NMEDIT=$NMEDIT
10969 # Extract the first word of "nmedit", so it can be a program name with args.
10970set dummy nmedit; ac_word=$2
10971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10972$as_echo_n "checking for $ac_word... " >&6; }
10973if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10974 $as_echo_n "(cached) " >&6
10975else
10976 if test -n "$ac_ct_NMEDIT"; then
10977 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10978else
10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
10985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10986 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 break 2
10989 fi
10990done
10991done
10992IFS=$as_save_IFS
10993
10994fi
10995fi
10996ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10997if test -n "$ac_ct_NMEDIT"; then
10998 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10999$as_echo "$ac_ct_NMEDIT" >&6; }
11000else
11001 { $as_echo "$as_me:$LINENO: result: no" >&5
11002$as_echo "no" >&6; }
11003fi
11004
11005 if test "x$ac_ct_NMEDIT" = x; then
11006 NMEDIT=":"
11007 else
11008 case $cross_compiling:$ac_tool_warned in
11009yes:)
11010{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11012ac_tool_warned=yes ;;
11013esac
11014 NMEDIT=$ac_ct_NMEDIT
11015 fi
11016else
11017 NMEDIT="$ac_cv_prog_NMEDIT"
11018fi
11019
11020 if test -n "$ac_tool_prefix"; then
11021 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11022set dummy ${ac_tool_prefix}lipo; ac_word=$2
11023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
11025if test "${ac_cv_prog_LIPO+set}" = set; then
11026 $as_echo_n "(cached) " >&6
11027else
11028 if test -n "$LIPO"; then
11029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
11044IFS=$as_save_IFS
11045
11046fi
11047fi
11048LIPO=$ac_cv_prog_LIPO
11049if test -n "$LIPO"; then
11050 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
11051$as_echo "$LIPO" >&6; }
11052else
11053 { $as_echo "$as_me:$LINENO: result: no" >&5
11054$as_echo "no" >&6; }
11055fi
11056
11057
11058fi
11059if test -z "$ac_cv_prog_LIPO"; then
11060 ac_ct_LIPO=$LIPO
11061 # Extract the first word of "lipo", so it can be a program name with args.
11062set dummy lipo; ac_word=$2
11063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
11065if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
11066 $as_echo_n "(cached) " >&6
11067else
11068 if test -n "$ac_ct_LIPO"; then
11069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11070else
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_ac_ct_LIPO="lipo"
11079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083done
11084IFS=$as_save_IFS
11085
11086fi
11087fi
11088ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11089if test -n "$ac_ct_LIPO"; then
11090 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
11091$as_echo "$ac_ct_LIPO" >&6; }
11092else
11093 { $as_echo "$as_me:$LINENO: result: no" >&5
11094$as_echo "no" >&6; }
11095fi
11096
11097 if test "x$ac_ct_LIPO" = x; then
11098 LIPO=":"
11099 else
11100 case $cross_compiling:$ac_tool_warned in
11101yes:)
11102{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11104ac_tool_warned=yes ;;
11105esac
11106 LIPO=$ac_ct_LIPO
11107 fi
11108else
11109 LIPO="$ac_cv_prog_LIPO"
11110fi
11111
11112 if test -n "$ac_tool_prefix"; then
11113 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11114set dummy ${ac_tool_prefix}otool; ac_word=$2
11115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
11117if test "${ac_cv_prog_OTOOL+set}" = set; then
11118 $as_echo_n "(cached) " >&6
11119else
11120 if test -n "$OTOOL"; then
11121 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134done
11135done
11136IFS=$as_save_IFS
11137
11138fi
11139fi
11140OTOOL=$ac_cv_prog_OTOOL
11141if test -n "$OTOOL"; then
11142 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
11143$as_echo "$OTOOL" >&6; }
11144else
11145 { $as_echo "$as_me:$LINENO: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148
11149
11150fi
11151if test -z "$ac_cv_prog_OTOOL"; then
11152 ac_ct_OTOOL=$OTOOL
11153 # Extract the first word of "otool", so it can be a program name with args.
11154set dummy otool; ac_word=$2
11155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
11158 $as_echo_n "(cached) " >&6
11159else
11160 if test -n "$ac_ct_OTOOL"; then
11161 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_ac_ct_OTOOL="otool"
11171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175done
11176IFS=$as_save_IFS
11177
11178fi
11179fi
11180ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11181if test -n "$ac_ct_OTOOL"; then
11182 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
11183$as_echo "$ac_ct_OTOOL" >&6; }
11184else
11185 { $as_echo "$as_me:$LINENO: result: no" >&5
11186$as_echo "no" >&6; }
11187fi
11188
11189 if test "x$ac_ct_OTOOL" = x; then
11190 OTOOL=":"
11191 else
11192 case $cross_compiling:$ac_tool_warned in
11193yes:)
11194{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11196ac_tool_warned=yes ;;
11197esac
11198 OTOOL=$ac_ct_OTOOL
11199 fi
11200else
11201 OTOOL="$ac_cv_prog_OTOOL"
11202fi
11203
11204 if test -n "$ac_tool_prefix"; then
11205 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11206set dummy ${ac_tool_prefix}otool64; ac_word=$2
11207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11208$as_echo_n "checking for $ac_word... " >&6; }
11209if test "${ac_cv_prog_OTOOL64+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11211else
11212 if test -n "$OTOOL64"; then
11213 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11214else
11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11222 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226done
11227done
11228IFS=$as_save_IFS
11229
11230fi
11231fi
11232OTOOL64=$ac_cv_prog_OTOOL64
11233if test -n "$OTOOL64"; then
11234 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
11235$as_echo "$OTOOL64" >&6; }
11236else
11237 { $as_echo "$as_me:$LINENO: result: no" >&5
11238$as_echo "no" >&6; }
11239fi
11240
11241
11242fi
11243if test -z "$ac_cv_prog_OTOOL64"; then
11244 ac_ct_OTOOL64=$OTOOL64
11245 # Extract the first word of "otool64", so it can be a program name with args.
11246set dummy otool64; ac_word=$2
11247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$ac_ct_OTOOL64"; then
11253 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_prog_ac_ct_OTOOL64="otool64"
11263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11273if test -n "$ac_ct_OTOOL64"; then
11274 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
11275$as_echo "$ac_ct_OTOOL64" >&6; }
11276else
11277 { $as_echo "$as_me:$LINENO: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281 if test "x$ac_ct_OTOOL64" = x; then
11282 OTOOL64=":"
11283 else
11284 case $cross_compiling:$ac_tool_warned in
11285yes:)
11286{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11288ac_tool_warned=yes ;;
11289esac
11290 OTOOL64=$ac_ct_OTOOL64
11291 fi
11292else
11293 OTOOL64="$ac_cv_prog_OTOOL64"
11294fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11323$as_echo_n "checking for -single_module linker flag... " >&6; }
11324if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11325 $as_echo_n "(cached) " >&6
11326else
11327 lt_cv_apple_cc_single_mod=no
11328 if test -z "${LT_MULTI_MODULE}"; then
11329 # By default we will add the -single_module flag. You can override
11330 # by either setting the environment variable LT_MULTI_MODULE
11331 # non-empty at configure time, or by adding -multi_module to the
11332 # link flags.
11333 rm -rf libconftest.dylib*
11334 echo "int foo(void){return 1;}" > conftest.c
11335 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11336-dynamiclib -Wl,-single_module conftest.c" >&5
11337 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11338 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11339 _lt_result=$?
11340 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11341 lt_cv_apple_cc_single_mod=yes
11342 else
11343 cat conftest.err >&5
11344 fi
11345 rm -rf libconftest.dylib*
11346 rm -f conftest.*
11347 fi
11348fi
11349{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11350$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11351 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11352$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11353if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11354 $as_echo_n "(cached) " >&6
11355else
11356 lt_cv_ld_exported_symbols_list=no
11357 save_LDFLAGS=$LDFLAGS
11358 echo "_main" > conftest.sym
11359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11360 cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366
11367int
11368main ()
11369{
11370
11371 ;
11372 return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext conftest$ac_exeext
11376if { (ac_try="$ac_link"
11377case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382$as_echo "$ac_try_echo") >&5
11383 (eval "$ac_link") 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } && {
11390 test -z "$ac_c_werror_flag" ||
11391 test ! -s conftest.err
11392 } && test -s conftest$ac_exeext && {
11393 test "$cross_compiling" = yes ||
11394 $as_test_x conftest$ac_exeext
11395 }; then
11396 lt_cv_ld_exported_symbols_list=yes
11397else
11398 $as_echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 lt_cv_ld_exported_symbols_list=no
11402fi
11403
11404rm -rf conftest.dSYM
11405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LDFLAGS="$save_LDFLAGS"
11408
11409fi
11410{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11411$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11412 case $host_os in
11413 rhapsody* | darwin1.[012])
11414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11415 darwin1.*)
11416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11417 darwin*) # darwin 5.x on
11418 # if running on 10.5 or later, the deployment target defaults
11419 # to the OS version, if on x86, and 10.4, the deployment
11420 # target defaults to 10.4. Don't you love it?
11421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11422 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11424 10.[012]*)
11425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11426 10.*)
11427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11428 esac
11429 ;;
11430 esac
11431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11432 _lt_dar_single_mod='$single_module'
11433 fi
11434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11436 else
11437 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11438 fi
11439 if test "$DSYMUTIL" != ":"; then
11440 _lt_dsymutil='~$DSYMUTIL $lib || :'
11441 else
11442 _lt_dsymutil=
11443 fi
11444 ;;
11445 esac
11446
11447
11448for ac_header in dlfcn.h
11449do
11450as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11451{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11452$as_echo_n "checking for $ac_header... " >&6; }
11453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 $as_echo_n "(cached) " >&6
11455else
11456 cat >conftest.$ac_ext <<_ACEOF
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
11462$ac_includes_default
11463
11464#include <$ac_header>
11465_ACEOF
11466rm -f conftest.$ac_objext
11467if { (ac_try="$ac_compile"
11468case "(($ac_try" in
11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470 *) ac_try_echo=$ac_try;;
11471esac
11472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11473$as_echo "$ac_try_echo") >&5
11474 (eval "$ac_compile") 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && {
11481 test -z "$ac_c_werror_flag" ||
11482 test ! -s conftest.err
11483 } && test -s conftest.$ac_objext; then
11484 eval "$as_ac_Header=yes"
11485else
11486 $as_echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 eval "$as_ac_Header=no"
11490fi
11491
11492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493fi
11494ac_res=`eval 'as_val=${'$as_ac_Header'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497$as_echo "$ac_res" >&6; }
11498as_val=`eval 'as_val=${'$as_ac_Header'}
11499 $as_echo "$as_val"'`
11500 if test "x$as_val" = x""yes; then
11501 cat >>confdefs.h <<_ACEOF
11502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503_ACEOF
11504
11505fi
11506
11507done
11508
11509
11510
11511ac_ext=cpp
11512ac_cpp='$CXXCPP $CPPFLAGS'
11513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516if test -z "$CXX"; then
11517 if test -n "$CCC"; then
11518 CXX=$CCC
11519 else
11520 if test -n "$ac_tool_prefix"; then
11521 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11522 do
11523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11526$as_echo_n "checking for $ac_word... " >&6; }
11527if test "${ac_cv_prog_CXX+set}" = set; then
11528 $as_echo_n "(cached) " >&6
11529else
11530 if test -n "$CXX"; then
11531 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11532else
11533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $PATH
11535do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544done
11545done
11546IFS=$as_save_IFS
11547
11548fi
11549fi
11550CXX=$ac_cv_prog_CXX
11551if test -n "$CXX"; then
11552 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11553$as_echo "$CXX" >&6; }
11554else
11555 { $as_echo "$as_me:$LINENO: result: no" >&5
11556$as_echo "no" >&6; }
11557fi
11558
11559
11560 test -n "$CXX" && break
11561 done
11562fi
11563if test -z "$CXX"; then
11564 ac_ct_CXX=$CXX
11565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11566do
11567 # Extract the first word of "$ac_prog", so it can be a program name with args.
11568set dummy $ac_prog; ac_word=$2
11569{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11570$as_echo_n "checking for $ac_word... " >&6; }
11571if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11572 $as_echo_n "(cached) " >&6
11573else
11574 if test -n "$ac_ct_CXX"; then
11575 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11576else
11577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $PATH
11579do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11584 ac_cv_prog_ac_ct_CXX="$ac_prog"
11585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588done
11589done
11590IFS=$as_save_IFS
11591
11592fi
11593fi
11594ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11595if test -n "$ac_ct_CXX"; then
11596 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11597$as_echo "$ac_ct_CXX" >&6; }
11598else
11599 { $as_echo "$as_me:$LINENO: result: no" >&5
11600$as_echo "no" >&6; }
11601fi
11602
11603
11604 test -n "$ac_ct_CXX" && break
11605done
11606
11607 if test "x$ac_ct_CXX" = x; then
11608 CXX="g++"
11609 else
11610 case $cross_compiling:$ac_tool_warned in
11611yes:)
11612{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11614ac_tool_warned=yes ;;
11615esac
11616 CXX=$ac_ct_CXX
11617 fi
11618fi
11619
11620 fi
11621fi
11622# Provide some information about the compiler.
11623$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11624set X $ac_compile
11625ac_compiler=$2
11626{ (ac_try="$ac_compiler --version >&5"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632$as_echo "$ac_try_echo") >&5
11633 (eval "$ac_compiler --version >&5") 2>&5
11634 ac_status=$?
11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }
11637{ (ac_try="$ac_compiler -v >&5"
11638case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11643$as_echo "$ac_try_echo") >&5
11644 (eval "$ac_compiler -v >&5") 2>&5
11645 ac_status=$?
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }
11648{ (ac_try="$ac_compiler -V >&5"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654$as_echo "$ac_try_echo") >&5
11655 (eval "$ac_compiler -V >&5") 2>&5
11656 ac_status=$?
11657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }
11659
11660{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11661$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11662if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11663 $as_echo_n "(cached) " >&6
11664else
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671
11672int
11673main ()
11674{
11675#ifndef __GNUC__
11676 choke me
11677#endif
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (ac_try="$ac_compile"
11685case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11690$as_echo "$ac_try_echo") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_cxx_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_compiler_gnu=yes
11702else
11703 $as_echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_compiler_gnu=no
11707fi
11708
11709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11711
11712fi
11713{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11714$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11715if test $ac_compiler_gnu = yes; then
11716 GXX=yes
11717else
11718 GXX=
11719fi
11720ac_test_CXXFLAGS=${CXXFLAGS+set}
11721ac_save_CXXFLAGS=$CXXFLAGS
11722{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11723$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11724if test "${ac_cv_prog_cxx_g+set}" = set; then
11725 $as_echo_n "(cached) " >&6
11726else
11727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11728 ac_cxx_werror_flag=yes
11729 ac_cv_prog_cxx_g=no
11730 CXXFLAGS="-g"
11731 cat >conftest.$ac_ext <<_ACEOF
11732/* confdefs.h. */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h. */
11737
11738int
11739main ()
11740{
11741
11742 ;
11743 return 0;
11744}
11745_ACEOF
11746rm -f conftest.$ac_objext
11747if { (ac_try="$ac_compile"
11748case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11751esac
11752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11753$as_echo "$ac_try_echo") >&5
11754 (eval "$ac_compile") 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } && {
11761 test -z "$ac_cxx_werror_flag" ||
11762 test ! -s conftest.err
11763 } && test -s conftest.$ac_objext; then
11764 ac_cv_prog_cxx_g=yes
11765else
11766 $as_echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 CXXFLAGS=""
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776
11777int
11778main ()
11779{
11780
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext
11786if { (ac_try="$ac_compile"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792$as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_cxx_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11803 :
11804else
11805 $as_echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11809 CXXFLAGS="-g"
11810 cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816
11817int
11818main ()
11819{
11820
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825rm -f conftest.$ac_objext
11826if { (ac_try="$ac_compile"
11827case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
11831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832$as_echo "$ac_try_echo") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_cxx_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest.$ac_objext; then
11843 ac_cv_prog_cxx_g=yes
11844else
11845 $as_echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848
11849fi
11850
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852fi
11853
11854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855fi
11856
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11859fi
11860{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11861$as_echo "$ac_cv_prog_cxx_g" >&6; }
11862if test "$ac_test_CXXFLAGS" = set; then
11863 CXXFLAGS=$ac_save_CXXFLAGS
11864elif test $ac_cv_prog_cxx_g = yes; then
11865 if test "$GXX" = yes; then
11866 CXXFLAGS="-g -O2"
11867 else
11868 CXXFLAGS="-g"
11869 fi
11870else
11871 if test "$GXX" = yes; then
11872 CXXFLAGS="-O2"
11873 else
11874 CXXFLAGS=
11875 fi
11876fi
11877ac_ext=c
11878ac_cpp='$CPP $CPPFLAGS'
11879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882
11883depcc="$CXX" am_compiler_list=
11884
11885{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11886$as_echo_n "checking dependency style of $depcc... " >&6; }
11887if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11889else
11890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11891 # We make a subdir and do the tests there. Otherwise we can end up
11892 # making bogus files that we don't know about and never remove. For
11893 # instance it was reported that on HP-UX the gcc test will end up
11894 # making a dummy file named `D' -- because `-MD' means `put the output
11895 # in D'.
11896 mkdir conftest.dir
11897 # Copy depcomp to subdir because otherwise we won't find it if we're
11898 # using a relative directory.
11899 cp "$am_depcomp" conftest.dir
11900 cd conftest.dir
11901 # We will build objects and dependencies in a subdirectory because
11902 # it helps to detect inapplicable dependency modes. For instance
11903 # both Tru64's cc and ICC support -MD to output dependencies as a
11904 # side effect of compilation, but ICC will put the dependencies in
11905 # the current directory while Tru64 will put them in the object
11906 # directory.
11907 mkdir sub
11908
11909 am_cv_CXX_dependencies_compiler_type=none
11910 if test "$am_compiler_list" = ""; then
11911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11912 fi
11913 am__universal=false
11914 case " $depcc " in #(
11915 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11916 esac
11917
11918 for depmode in $am_compiler_list; do
11919 # Setup a source with many dependencies, because some compilers
11920 # like to wrap large dependency lists on column 80 (with \), and
11921 # we should not choose a depcomp mode which is confused by this.
11922 #
11923 # We need to recreate these files for each test, as the compiler may
11924 # overwrite some of them when testing with obscure command lines.
11925 # This happens at least with the AIX C compiler.
11926 : > sub/conftest.c
11927 for i in 1 2 3 4 5 6; do
11928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11930 # Solaris 8's {/usr,}/bin/sh.
11931 touch sub/conftst$i.h
11932 done
11933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11934
11935 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11936 # mode. It turns out that the SunPro C++ compiler does not properly
11937 # handle `-M -o', and we need to detect this. Also, some Intel
11938 # versions had trouble with output in subdirs
11939 am__obj=sub/conftest.${OBJEXT-o}
11940 am__minus_obj="-o $am__obj"
11941 case $depmode in
11942 gcc)
11943 # This depmode causes a compiler race in universal mode.
11944 test "$am__universal" = false || continue
11945 ;;
11946 nosideeffect)
11947 # after this tag, mechanisms are not by side-effect, so they'll
11948 # only be used when explicitly requested
11949 if test "x$enable_dependency_tracking" = xyes; then
11950 continue
11951 else
11952 break
11953 fi
11954 ;;
11955 msvisualcpp | msvcmsys)
11956 # This compiler won't grok `-c -o', but also, the minuso test has
11957 # not run yet. These depmodes are late enough in the game, and
11958 # so weak that their functioning should not be impacted.
11959 am__obj=conftest.${OBJEXT-o}
11960 am__minus_obj=
11961 ;;
11962 none) break ;;
11963 esac
11964 if depmode=$depmode \
11965 source=sub/conftest.c object=$am__obj \
11966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11967 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11968 >/dev/null 2>conftest.err &&
11969 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11970 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11971 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11972 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11973 # icc doesn't choke on unknown options, it will just issue warnings
11974 # or remarks (even with -Werror). So we grep stderr for any message
11975 # that says an option was ignored or not supported.
11976 # When given -MP, icc 7.0 and 7.1 complain thusly:
11977 # icc: Command line warning: ignoring option '-M'; no argument required
11978 # The diagnosis changed in icc 8.0:
11979 # icc: Command line remark: option '-MP' not supported
11980 if (grep 'ignoring option' conftest.err ||
11981 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11982 am_cv_CXX_dependencies_compiler_type=$depmode
11983 break
11984 fi
11985 fi
11986 done
11987
11988 cd ..
11989 rm -rf conftest.dir
11990else
11991 am_cv_CXX_dependencies_compiler_type=none
11992fi
11993
11994fi
11995{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11996$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11997CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11998
11999 if
12000 test "x$enable_dependency_tracking" != xno \
12001 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12002 am__fastdepCXX_TRUE=
12003 am__fastdepCXX_FALSE='#'
12004else
12005 am__fastdepCXX_TRUE='#'
12006 am__fastdepCXX_FALSE=
12007fi
12008
12009
12010if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12011 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12012 (test "X$CXX" != "Xg++"))) ; then
12013 ac_ext=cpp
12014ac_cpp='$CXXCPP $CPPFLAGS'
12015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12018{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12019$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12020if test -z "$CXXCPP"; then
12021 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12022 $as_echo_n "(cached) " >&6
12023else
12024 # Double quotes because CXXCPP needs to be expanded
12025 for CXXCPP in "$CXX -E" "/lib/cpp"
12026 do
12027 ac_preproc_ok=false
12028for ac_cxx_preproc_warn_flag in '' yes
12029do
12030 # Use a header file that comes with gcc, so configuring glibc
12031 # with a fresh cross-compiler works.
12032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033 # <limits.h> exists even on freestanding compilers.
12034 # On the NeXT, cc -E runs the code through the compiler's parser,
12035 # not just through cpp. "Syntax error" is here to catch this case.
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#ifdef __STDC__
12043# include <limits.h>
12044#else
12045# include <assert.h>
12046#endif
12047 Syntax error
12048_ACEOF
12049if { (ac_try="$ac_cpp conftest.$ac_ext"
12050case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12055$as_echo "$ac_try_echo") >&5
12056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev/null && {
12063 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12064 test ! -s conftest.err
12065 }; then
12066 :
12067else
12068 $as_echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 # Broken: fails on valid input.
12072continue
12073fi
12074
12075rm -f conftest.err conftest.$ac_ext
12076
12077 # OK, works on sane cases. Now check whether nonexistent headers
12078 # can be detected and how.
12079 cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085#include <ac_nonexistent.h>
12086_ACEOF
12087if { (ac_try="$ac_cpp conftest.$ac_ext"
12088case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12093$as_echo "$ac_try_echo") >&5
12094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } >/dev/null && {
12101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12102 test ! -s conftest.err
12103 }; then
12104 # Broken: success on invalid input.
12105continue
12106else
12107 $as_echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 # Passes both tests.
12111ac_preproc_ok=:
12112break
12113fi
12114
12115rm -f conftest.err conftest.$ac_ext
12116
12117done
12118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12119rm -f conftest.err conftest.$ac_ext
12120if $ac_preproc_ok; then
12121 break
12122fi
12123
12124 done
12125 ac_cv_prog_CXXCPP=$CXXCPP
12126
12127fi
12128 CXXCPP=$ac_cv_prog_CXXCPP
12129else
12130 ac_cv_prog_CXXCPP=$CXXCPP
12131fi
12132{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
12133$as_echo "$CXXCPP" >&6; }
12134ac_preproc_ok=false
12135for ac_cxx_preproc_warn_flag in '' yes
12136do
12137 # Use a header file that comes with gcc, so configuring glibc
12138 # with a fresh cross-compiler works.
12139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12140 # <limits.h> exists even on freestanding compilers.
12141 # On the NeXT, cc -E runs the code through the compiler's parser,
12142 # not just through cpp. "Syntax error" is here to catch this case.
12143 cat >conftest.$ac_ext <<_ACEOF
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149#ifdef __STDC__
12150# include <limits.h>
12151#else
12152# include <assert.h>
12153#endif
12154 Syntax error
12155_ACEOF
12156if { (ac_try="$ac_cpp conftest.$ac_ext"
12157case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160esac
12161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12162$as_echo "$ac_try_echo") >&5
12163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12164 ac_status=$?
12165 grep -v '^ *+' conftest.er1 >conftest.err
12166 rm -f conftest.er1
12167 cat conftest.err >&5
12168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } >/dev/null && {
12170 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12171 test ! -s conftest.err
12172 }; then
12173 :
12174else
12175 $as_echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 # Broken: fails on valid input.
12179continue
12180fi
12181
12182rm -f conftest.err conftest.$ac_ext
12183
12184 # OK, works on sane cases. Now check whether nonexistent headers
12185 # can be detected and how.
12186 cat >conftest.$ac_ext <<_ACEOF
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192#include <ac_nonexistent.h>
12193_ACEOF
12194if { (ac_try="$ac_cpp conftest.$ac_ext"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12200$as_echo "$ac_try_echo") >&5
12201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } >/dev/null && {
12208 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12209 test ! -s conftest.err
12210 }; then
12211 # Broken: success on invalid input.
12212continue
12213else
12214 $as_echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 # Passes both tests.
12218ac_preproc_ok=:
12219break
12220fi
12221
12222rm -f conftest.err conftest.$ac_ext
12223
12224done
12225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12226rm -f conftest.err conftest.$ac_ext
12227if $ac_preproc_ok; then
12228 :
12229else
12230 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12232_lt_caught_CXX_error=yes; }
12233fi
12234
12235ac_ext=c
12236ac_cpp='$CPP $CPPFLAGS'
12237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239ac_compiler_gnu=$ac_cv_c_compiler_gnu
12240
12241else
12242 _lt_caught_CXX_error=yes
12243fi
12244
12245
12246
12247
12248
12249# Set options
12250enable_win32_dll=yes
12251
12252case $host in
12253*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12254 if test -n "$ac_tool_prefix"; then
12255 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12256set dummy ${ac_tool_prefix}as; ac_word=$2
12257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12258$as_echo_n "checking for $ac_word... " >&6; }
12259if test "${ac_cv_prog_AS+set}" = set; then
12260 $as_echo_n "(cached) " >&6
12261else
12262 if test -n "$AS"; then
12263 ac_cv_prog_AS="$AS" # Let the user override the test.
12264else
12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_prog_AS="${ac_tool_prefix}as"
12273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276done
12277done
12278IFS=$as_save_IFS
12279
12280fi
12281fi
12282AS=$ac_cv_prog_AS
12283if test -n "$AS"; then
12284 { $as_echo "$as_me:$LINENO: result: $AS" >&5
12285$as_echo "$AS" >&6; }
12286else
12287 { $as_echo "$as_me:$LINENO: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290
12291
12292fi
12293if test -z "$ac_cv_prog_AS"; then
12294 ac_ct_AS=$AS
12295 # Extract the first word of "as", so it can be a program name with args.
12296set dummy as; ac_word=$2
12297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
12299if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
12300 $as_echo_n "(cached) " >&6
12301else
12302 if test -n "$ac_ct_AS"; then
12303 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_ac_ct_AS="as"
12313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316done
12317done
12318IFS=$as_save_IFS
12319
12320fi
12321fi
12322ac_ct_AS=$ac_cv_prog_ac_ct_AS
12323if test -n "$ac_ct_AS"; then
12324 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
12325$as_echo "$ac_ct_AS" >&6; }
12326else
12327 { $as_echo "$as_me:$LINENO: result: no" >&5
12328$as_echo "no" >&6; }
12329fi
12330
12331 if test "x$ac_ct_AS" = x; then
12332 AS="false"
12333 else
12334 case $cross_compiling:$ac_tool_warned in
12335yes:)
12336{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12338ac_tool_warned=yes ;;
12339esac
12340 AS=$ac_ct_AS
12341 fi
12342else
12343 AS="$ac_cv_prog_AS"
12344fi
12345
12346 if test -n "$ac_tool_prefix"; then
12347 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12348set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12352 $as_echo_n "(cached) " >&6
12353else
12354 if test -n "$DLLTOOL"; then
12355 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368done
12369done
12370IFS=$as_save_IFS
12371
12372fi
12373fi
12374DLLTOOL=$ac_cv_prog_DLLTOOL
12375if test -n "$DLLTOOL"; then
12376 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12377$as_echo "$DLLTOOL" >&6; }
12378else
12379 { $as_echo "$as_me:$LINENO: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384fi
12385if test -z "$ac_cv_prog_DLLTOOL"; then
12386 ac_ct_DLLTOOL=$DLLTOOL
12387 # Extract the first word of "dlltool", so it can be a program name with args.
12388set dummy dlltool; ac_word=$2
12389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12390$as_echo_n "checking for $ac_word... " >&6; }
12391if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12392 $as_echo_n "(cached) " >&6
12393else
12394 if test -n "$ac_ct_DLLTOOL"; then
12395 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410IFS=$as_save_IFS
12411
12412fi
12413fi
12414ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12415if test -n "$ac_ct_DLLTOOL"; then
12416 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12417$as_echo "$ac_ct_DLLTOOL" >&6; }
12418else
12419 { $as_echo "$as_me:$LINENO: result: no" >&5
12420$as_echo "no" >&6; }
12421fi
12422
12423 if test "x$ac_ct_DLLTOOL" = x; then
12424 DLLTOOL="false"
12425 else
12426 case $cross_compiling:$ac_tool_warned in
12427yes:)
12428{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12430ac_tool_warned=yes ;;
12431esac
12432 DLLTOOL=$ac_ct_DLLTOOL
12433 fi
12434else
12435 DLLTOOL="$ac_cv_prog_DLLTOOL"
12436fi
12437
12438 if test -n "$ac_tool_prefix"; then
12439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12440set dummy ${ac_tool_prefix}objdump; ac_word=$2
12441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12442$as_echo_n "checking for $ac_word... " >&6; }
12443if test "${ac_cv_prog_OBJDUMP+set}" = set; then
12444 $as_echo_n "(cached) " >&6
12445else
12446 if test -n "$OBJDUMP"; then
12447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12448else
12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460done
12461done
12462IFS=$as_save_IFS
12463
12464fi
12465fi
12466OBJDUMP=$ac_cv_prog_OBJDUMP
12467if test -n "$OBJDUMP"; then
12468 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
12469$as_echo "$OBJDUMP" >&6; }
12470else
12471 { $as_echo "$as_me:$LINENO: result: no" >&5
12472$as_echo "no" >&6; }
12473fi
12474
12475
12476fi
12477if test -z "$ac_cv_prog_OBJDUMP"; then
12478 ac_ct_OBJDUMP=$OBJDUMP
12479 # Extract the first word of "objdump", so it can be a program name with args.
12480set dummy objdump; ac_word=$2
12481{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
12484 $as_echo_n "(cached) " >&6
12485else
12486 if test -n "$ac_ct_OBJDUMP"; then
12487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12496 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500done
12501done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12507if test -n "$ac_ct_OBJDUMP"; then
12508 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
12509$as_echo "$ac_ct_OBJDUMP" >&6; }
12510else
12511 { $as_echo "$as_me:$LINENO: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515 if test "x$ac_ct_OBJDUMP" = x; then
12516 OBJDUMP="false"
12517 else
12518 case $cross_compiling:$ac_tool_warned in
12519yes:)
12520{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12522ac_tool_warned=yes ;;
12523esac
12524 OBJDUMP=$ac_ct_OBJDUMP
12525 fi
12526else
12527 OBJDUMP="$ac_cv_prog_OBJDUMP"
12528fi
12529
12530 ;;
12531esac
12532
12533test -z "$AS" && AS=as
12534
12535
12536
12537
12538
12539test -z "$DLLTOOL" && DLLTOOL=dlltool
12540
12541
12542
12543
12544
12545test -z "$OBJDUMP" && OBJDUMP=objdump
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555 # Check whether --enable-shared was given.
12556if test "${enable_shared+set}" = set; then
12557 enableval=$enable_shared; p=${PACKAGE-default}
12558 case $enableval in
12559 yes) enable_shared=yes ;;
12560 no) enable_shared=no ;;
12561 *)
12562 enable_shared=no
12563 # Look at the argument we got. We use all the common list separators.
12564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12565 for pkg in $enableval; do
12566 IFS="$lt_save_ifs"
12567 if test "X$pkg" = "X$p"; then
12568 enable_shared=yes
12569 fi
12570 done
12571 IFS="$lt_save_ifs"
12572 ;;
12573 esac
12574else
12575 enable_shared=yes
12576fi
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586 # Check whether --enable-static was given.
12587if test "${enable_static+set}" = set; then
12588 enableval=$enable_static; p=${PACKAGE-default}
12589 case $enableval in
12590 yes) enable_static=yes ;;
12591 no) enable_static=no ;;
12592 *)
12593 enable_static=no
12594 # Look at the argument we got. We use all the common list separators.
12595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12596 for pkg in $enableval; do
12597 IFS="$lt_save_ifs"
12598 if test "X$pkg" = "X$p"; then
12599 enable_static=yes
12600 fi
12601 done
12602 IFS="$lt_save_ifs"
12603 ;;
12604 esac
12605else
12606 enable_static=yes
12607fi
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618# Check whether --with-pic was given.
12619if test "${with_pic+set}" = set; then
12620 withval=$with_pic; pic_mode="$withval"
12621else
12622 pic_mode=default
12623fi
12624
12625
12626test -z "$pic_mode" && pic_mode=default
12627
12628
12629
12630
12631
12632
12633
12634 # Check whether --enable-fast-install was given.
12635if test "${enable_fast_install+set}" = set; then
12636 enableval=$enable_fast_install; p=${PACKAGE-default}
12637 case $enableval in
12638 yes) enable_fast_install=yes ;;
12639 no) enable_fast_install=no ;;
12640 *)
12641 enable_fast_install=no
12642 # Look at the argument we got. We use all the common list separators.
12643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12644 for pkg in $enableval; do
12645 IFS="$lt_save_ifs"
12646 if test "X$pkg" = "X$p"; then
12647 enable_fast_install=yes
12648 fi
12649 done
12650 IFS="$lt_save_ifs"
12651 ;;
12652 esac
12653else
12654 enable_fast_install=yes
12655fi
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667# This can be used to rebuild libtool when needed
12668LIBTOOL_DEPS="$ltmain"
12669
12670# Always use our own libtool.
12671LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697test -z "$LN_S" && LN_S="ln -s"
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712if test -n "${ZSH_VERSION+set}" ; then
12713 setopt NO_GLOB_SUBST
12714fi
12715
12716{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
12717$as_echo_n "checking for objdir... " >&6; }
12718if test "${lt_cv_objdir+set}" = set; then
12719 $as_echo_n "(cached) " >&6
12720else
12721 rm -f .libs 2>/dev/null
12722mkdir .libs 2>/dev/null
12723if test -d .libs; then
12724 lt_cv_objdir=.libs
12725else
12726 # MS-DOS does not allow filenames that begin with a dot.
12727 lt_cv_objdir=_libs
12728fi
12729rmdir .libs 2>/dev/null
12730fi
12731{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12732$as_echo "$lt_cv_objdir" >&6; }
12733objdir=$lt_cv_objdir
12734
12735
12736
12737
12738
12739cat >>confdefs.h <<_ACEOF
12740#define LT_OBJDIR "$lt_cv_objdir/"
12741_ACEOF
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759case $host_os in
12760aix3*)
12761 # AIX sometimes has problems with the GCC collect2 program. For some
12762 # reason, if we set the COLLECT_NAMES environment variable, the problems
12763 # vanish in a puff of smoke.
12764 if test "X${COLLECT_NAMES+set}" != Xset; then
12765 COLLECT_NAMES=
12766 export COLLECT_NAMES
12767 fi
12768 ;;
12769esac
12770
12771# Sed substitution that helps us do robust quoting. It backslashifies
12772# metacharacters that are still active within double-quoted strings.
12773sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12774
12775# Same as above, but do not quote variable references.
12776double_quote_subst='s/\(["`\\]\)/\\\1/g'
12777
12778# Sed substitution to delay expansion of an escaped shell variable in a
12779# double_quote_subst'ed string.
12780delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12781
12782# Sed substitution to delay expansion of an escaped single quote.
12783delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12784
12785# Sed substitution to avoid accidental globbing in evaled expressions
12786no_glob_subst='s/\*/\\\*/g'
12787
12788# Global variables:
12789ofile=libtool
12790can_build_shared=yes
12791
12792# All known linkers require a `.a' archive for static linking (except MSVC,
12793# which needs '.lib').
12794libext=a
12795
12796with_gnu_ld="$lt_cv_prog_gnu_ld"
12797
12798old_CC="$CC"
12799old_CFLAGS="$CFLAGS"
12800
12801# Set sane defaults for various variables
12802test -z "$CC" && CC=cc
12803test -z "$LTCC" && LTCC=$CC
12804test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12805test -z "$LD" && LD=ld
12806test -z "$ac_objext" && ac_objext=o
12807
12808for cc_temp in $compiler""; do
12809 case $cc_temp in
12810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12812 \-*) ;;
12813 *) break;;
12814 esac
12815done
12816cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12817
12818
12819# Only perform the check for file, if the check method requires it
12820test -z "$MAGIC_CMD" && MAGIC_CMD=file
12821case $deplibs_check_method in
12822file_magic*)
12823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12824 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12825$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12826if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12827 $as_echo_n "(cached) " >&6
12828else
12829 case $MAGIC_CMD in
12830[\\/*] | ?:[\\/]*)
12831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12832 ;;
12833*)
12834 lt_save_MAGIC_CMD="$MAGIC_CMD"
12835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12837 for ac_dir in $ac_dummy; do
12838 IFS="$lt_save_ifs"
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f $ac_dir/${ac_tool_prefix}file; then
12841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12842 if test -n "$file_magic_test_file"; then
12843 case $deplibs_check_method in
12844 "file_magic "*)
12845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12848 $EGREP "$file_magic_regex" > /dev/null; then
12849 :
12850 else
12851 cat <<_LT_EOF 1>&2
12852
12853*** Warning: the command libtool uses to detect shared libraries,
12854*** $file_magic_cmd, produces output that libtool cannot recognize.
12855*** The result is that libtool may fail to recognize shared libraries
12856*** as such. This will affect the creation of libtool libraries that
12857*** depend on shared libraries, but programs linked with such libtool
12858*** libraries will work regardless of this problem. Nevertheless, you
12859*** may want to report the problem to your system manager and/or to
12860*** bug-libtool@gnu.org
12861
12862_LT_EOF
12863 fi ;;
12864 esac
12865 fi
12866 break
12867 fi
12868 done
12869 IFS="$lt_save_ifs"
12870 MAGIC_CMD="$lt_save_MAGIC_CMD"
12871 ;;
12872esac
12873fi
12874
12875MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12876if test -n "$MAGIC_CMD"; then
12877 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12878$as_echo "$MAGIC_CMD" >&6; }
12879else
12880 { $as_echo "$as_me:$LINENO: result: no" >&5
12881$as_echo "no" >&6; }
12882fi
12883
12884
12885
12886
12887
12888if test -z "$lt_cv_path_MAGIC_CMD"; then
12889 if test -n "$ac_tool_prefix"; then
12890 { $as_echo "$as_me:$LINENO: checking for file" >&5
12891$as_echo_n "checking for file... " >&6; }
12892if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12893 $as_echo_n "(cached) " >&6
12894else
12895 case $MAGIC_CMD in
12896[\\/*] | ?:[\\/]*)
12897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12898 ;;
12899*)
12900 lt_save_MAGIC_CMD="$MAGIC_CMD"
12901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12903 for ac_dir in $ac_dummy; do
12904 IFS="$lt_save_ifs"
12905 test -z "$ac_dir" && ac_dir=.
12906 if test -f $ac_dir/file; then
12907 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12908 if test -n "$file_magic_test_file"; then
12909 case $deplibs_check_method in
12910 "file_magic "*)
12911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12914 $EGREP "$file_magic_regex" > /dev/null; then
12915 :
12916 else
12917 cat <<_LT_EOF 1>&2
12918
12919*** Warning: the command libtool uses to detect shared libraries,
12920*** $file_magic_cmd, produces output that libtool cannot recognize.
12921*** The result is that libtool may fail to recognize shared libraries
12922*** as such. This will affect the creation of libtool libraries that
12923*** depend on shared libraries, but programs linked with such libtool
12924*** libraries will work regardless of this problem. Nevertheless, you
12925*** may want to report the problem to your system manager and/or to
12926*** bug-libtool@gnu.org
12927
12928_LT_EOF
12929 fi ;;
12930 esac
12931 fi
12932 break
12933 fi
12934 done
12935 IFS="$lt_save_ifs"
12936 MAGIC_CMD="$lt_save_MAGIC_CMD"
12937 ;;
12938esac
12939fi
12940
12941MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12942if test -n "$MAGIC_CMD"; then
12943 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12944$as_echo "$MAGIC_CMD" >&6; }
12945else
12946 { $as_echo "$as_me:$LINENO: result: no" >&5
12947$as_echo "no" >&6; }
12948fi
12949
12950
12951 else
12952 MAGIC_CMD=:
12953 fi
12954fi
12955
12956 fi
12957 ;;
12958esac
12959
12960# Use C for the default configuration in the libtool script
12961
12962lt_save_CC="$CC"
12963ac_ext=c
12964ac_cpp='$CPP $CPPFLAGS'
12965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
12969
12970# Source file extension for C test sources.
12971ac_ext=c
12972
12973# Object file extension for compiled C test sources.
12974objext=o
12975objext=$objext
12976
12977# Code to be used in simple compile tests
12978lt_simple_compile_test_code="int some_variable = 0;"
12979
12980# Code to be used in simple link tests
12981lt_simple_link_test_code='int main(){return(0);}'
12982
12983
12984
12985
12986
12987
12988
12989# If no C compiler was specified, use CC.
12990LTCC=${LTCC-"$CC"}
12991
12992# If no C compiler flags were specified, use CFLAGS.
12993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12994
12995# Allow CC to be a program name with arguments.
12996compiler=$CC
12997
12998# Save the default compiler, since it gets overwritten when the other
12999# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13000compiler_DEFAULT=$CC
13001
13002# save warnings/boilerplate of simple test code
13003ac_outfile=conftest.$ac_objext
13004echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13006_lt_compiler_boilerplate=`cat conftest.err`
13007$RM conftest*
13008
13009ac_outfile=conftest.$ac_objext
13010echo "$lt_simple_link_test_code" >conftest.$ac_ext
13011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13012_lt_linker_boilerplate=`cat conftest.err`
13013$RM -r conftest*
13014
13015
13016## CAVEAT EMPTOR:
13017## There is no encapsulation within the following macros, do not change
13018## the running order or otherwise move them around unless you know exactly
13019## what you are doing...
13020if test -n "$compiler"; then
13021
13022lt_prog_compiler_no_builtin_flag=
13023
13024if test "$GCC" = yes; then
13025 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13026
13027 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13028$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13029if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13030 $as_echo_n "(cached) " >&6
13031else
13032 lt_cv_prog_compiler_rtti_exceptions=no
13033 ac_outfile=conftest.$ac_objext
13034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13035 lt_compiler_flag="-fno-rtti -fno-exceptions"
13036 # Insert the option either (1) after the last *FLAGS variable, or
13037 # (2) before a word containing "conftest.", or (3) at the end.
13038 # Note that $ac_compile itself does not contain backslashes and begins
13039 # with a dollar sign (not a hyphen), so the echo should work correctly.
13040 # The option is referenced via a variable to avoid confusing sed.
13041 lt_compile=`echo "$ac_compile" | $SED \
13042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13044 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013045 (eval echo "\"\$as_me:13045: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013046 (eval "$lt_compile" 2>conftest.err)
13047 ac_status=$?
13048 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013049 echo "$as_me:13049: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013050 if (exit $ac_status) && test -s "$ac_outfile"; then
13051 # The compiler can only warn and ignore the option if not recognized
13052 # So say no if there are warnings other than the usual output.
13053 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13056 lt_cv_prog_compiler_rtti_exceptions=yes
13057 fi
13058 fi
13059 $RM conftest*
13060
13061fi
13062{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13063$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13064
13065if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13066 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13067else
13068 :
13069fi
13070
13071fi
13072
13073
13074
13075
13076
13077
13078 lt_prog_compiler_wl=
13079lt_prog_compiler_pic=
13080lt_prog_compiler_static=
13081
13082{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13083$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13084
13085 if test "$GCC" = yes; then
13086 lt_prog_compiler_wl='-Wl,'
13087 lt_prog_compiler_static='-static'
13088
13089 case $host_os in
13090 aix*)
13091 # All AIX code is PIC.
13092 if test "$host_cpu" = ia64; then
13093 # AIX 5 now supports IA64 processor
13094 lt_prog_compiler_static='-Bstatic'
13095 fi
13096 ;;
13097
13098 amigaos*)
13099 case $host_cpu in
13100 powerpc)
13101 # see comment about AmigaOS4 .so support
13102 lt_prog_compiler_pic='-fPIC'
13103 ;;
13104 m68k)
13105 # FIXME: we need at least 68020 code to build shared libraries, but
13106 # adding the `-m68020' flag to GCC prevents building anything better,
13107 # like `-m68040'.
13108 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13109 ;;
13110 esac
13111 ;;
13112
13113 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13115 ;;
13116
13117 mingw* | cygwin* | pw32* | os2* | cegcc*)
13118 # This hack is so that the source file can tell whether it is being
13119 # built for inclusion in a dll (and should export symbols for example).
13120 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13121 # (--disable-auto-import) libraries
13122 lt_prog_compiler_pic='-DDLL_EXPORT'
13123 ;;
13124
13125 darwin* | rhapsody*)
13126 # PIC is the default on this platform
13127 # Common symbols not allowed in MH_DYLIB files
13128 lt_prog_compiler_pic='-fno-common'
13129 ;;
13130
13131 hpux*)
13132 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13133 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13134 # sets the default TLS model and affects inlining.
13135 case $host_cpu in
13136 hppa*64*)
13137 # +Z the default
13138 ;;
13139 *)
13140 lt_prog_compiler_pic='-fPIC'
13141 ;;
13142 esac
13143 ;;
13144
13145 interix[3-9]*)
13146 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13147 # Instead, we relocate shared libraries at runtime.
13148 ;;
13149
13150 msdosdjgpp*)
13151 # Just because we use GCC doesn't mean we suddenly get shared libraries
13152 # on systems that don't support them.
13153 lt_prog_compiler_can_build_shared=no
13154 enable_shared=no
13155 ;;
13156
13157 *nto* | *qnx*)
13158 # QNX uses GNU C++, but need to define -shared option too, otherwise
13159 # it will coredump.
13160 lt_prog_compiler_pic='-fPIC -shared'
13161 ;;
13162
13163 sysv4*MP*)
13164 if test -d /usr/nec; then
13165 lt_prog_compiler_pic=-Kconform_pic
13166 fi
13167 ;;
13168
13169 *)
13170 lt_prog_compiler_pic='-fPIC'
13171 ;;
13172 esac
13173 else
13174 # PORTME Check for flag to pass linker flags through the system compiler.
13175 case $host_os in
13176 aix*)
13177 lt_prog_compiler_wl='-Wl,'
13178 if test "$host_cpu" = ia64; then
13179 # AIX 5 now supports IA64 processor
13180 lt_prog_compiler_static='-Bstatic'
13181 else
13182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13183 fi
13184 ;;
13185
13186 mingw* | cygwin* | pw32* | os2* | cegcc*)
13187 # This hack is so that the source file can tell whether it is being
13188 # built for inclusion in a dll (and should export symbols for example).
13189 lt_prog_compiler_pic='-DDLL_EXPORT'
13190 ;;
13191
13192 hpux9* | hpux10* | hpux11*)
13193 lt_prog_compiler_wl='-Wl,'
13194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13195 # not for PA HP-UX.
13196 case $host_cpu in
13197 hppa*64*|ia64*)
13198 # +Z the default
13199 ;;
13200 *)
13201 lt_prog_compiler_pic='+Z'
13202 ;;
13203 esac
13204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13205 lt_prog_compiler_static='${wl}-a ${wl}archive'
13206 ;;
13207
13208 irix5* | irix6* | nonstopux*)
13209 lt_prog_compiler_wl='-Wl,'
13210 # PIC (with -KPIC) is the default.
13211 lt_prog_compiler_static='-non_shared'
13212 ;;
13213
13214 linux* | k*bsd*-gnu)
13215 case $cc_basename in
13216 # old Intel for x86_64 which still supported -KPIC.
13217 ecc*)
13218 lt_prog_compiler_wl='-Wl,'
13219 lt_prog_compiler_pic='-KPIC'
13220 lt_prog_compiler_static='-static'
13221 ;;
13222 # icc used to be incompatible with GCC.
13223 # ICC 10 doesn't accept -KPIC any more.
13224 icc* | ifort*)
13225 lt_prog_compiler_wl='-Wl,'
13226 lt_prog_compiler_pic='-fPIC'
13227 lt_prog_compiler_static='-static'
13228 ;;
13229 # Lahey Fortran 8.1.
13230 lf95*)
13231 lt_prog_compiler_wl='-Wl,'
13232 lt_prog_compiler_pic='--shared'
13233 lt_prog_compiler_static='--static'
13234 ;;
13235 pgcc* | pgf77* | pgf90* | pgf95*)
13236 # Portland Group compilers (*not* the Pentium gcc compiler,
13237 # which looks to be a dead project)
13238 lt_prog_compiler_wl='-Wl,'
13239 lt_prog_compiler_pic='-fpic'
13240 lt_prog_compiler_static='-Bstatic'
13241 ;;
13242 ccc*)
13243 lt_prog_compiler_wl='-Wl,'
13244 # All Alpha code is PIC.
13245 lt_prog_compiler_static='-non_shared'
13246 ;;
13247 xl*)
13248 # IBM XL C 8.0/Fortran 10.1 on PPC
13249 lt_prog_compiler_wl='-Wl,'
13250 lt_prog_compiler_pic='-qpic'
13251 lt_prog_compiler_static='-qstaticlink'
13252 ;;
13253 *)
13254 case `$CC -V 2>&1 | sed 5q` in
13255 *Sun\ C*)
13256 # Sun C 5.9
13257 lt_prog_compiler_pic='-KPIC'
13258 lt_prog_compiler_static='-Bstatic'
13259 lt_prog_compiler_wl='-Wl,'
13260 ;;
13261 *Sun\ F*)
13262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13263 lt_prog_compiler_pic='-KPIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 lt_prog_compiler_wl=''
13266 ;;
13267 esac
13268 ;;
13269 esac
13270 ;;
13271
13272 newsos6)
13273 lt_prog_compiler_pic='-KPIC'
13274 lt_prog_compiler_static='-Bstatic'
13275 ;;
13276
13277 *nto* | *qnx*)
13278 # QNX uses GNU C++, but need to define -shared option too, otherwise
13279 # it will coredump.
13280 lt_prog_compiler_pic='-fPIC -shared'
13281 ;;
13282
13283 osf3* | osf4* | osf5*)
13284 lt_prog_compiler_wl='-Wl,'
13285 # All OSF/1 code is PIC.
13286 lt_prog_compiler_static='-non_shared'
13287 ;;
13288
13289 rdos*)
13290 lt_prog_compiler_static='-non_shared'
13291 ;;
13292
13293 solaris*)
13294 lt_prog_compiler_pic='-KPIC'
13295 lt_prog_compiler_static='-Bstatic'
13296 case $cc_basename in
13297 f77* | f90* | f95*)
13298 lt_prog_compiler_wl='-Qoption ld ';;
13299 *)
13300 lt_prog_compiler_wl='-Wl,';;
13301 esac
13302 ;;
13303
13304 sunos4*)
13305 lt_prog_compiler_wl='-Qoption ld '
13306 lt_prog_compiler_pic='-PIC'
13307 lt_prog_compiler_static='-Bstatic'
13308 ;;
13309
13310 sysv4 | sysv4.2uw2* | sysv4.3*)
13311 lt_prog_compiler_wl='-Wl,'
13312 lt_prog_compiler_pic='-KPIC'
13313 lt_prog_compiler_static='-Bstatic'
13314 ;;
13315
13316 sysv4*MP*)
13317 if test -d /usr/nec ;then
13318 lt_prog_compiler_pic='-Kconform_pic'
13319 lt_prog_compiler_static='-Bstatic'
13320 fi
13321 ;;
13322
13323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13324 lt_prog_compiler_wl='-Wl,'
13325 lt_prog_compiler_pic='-KPIC'
13326 lt_prog_compiler_static='-Bstatic'
13327 ;;
13328
13329 unicos*)
13330 lt_prog_compiler_wl='-Wl,'
13331 lt_prog_compiler_can_build_shared=no
13332 ;;
13333
13334 uts4*)
13335 lt_prog_compiler_pic='-pic'
13336 lt_prog_compiler_static='-Bstatic'
13337 ;;
13338
13339 *)
13340 lt_prog_compiler_can_build_shared=no
13341 ;;
13342 esac
13343 fi
13344
13345case $host_os in
13346 # For platforms which do not support PIC, -DPIC is meaningless:
13347 *djgpp*)
13348 lt_prog_compiler_pic=
13349 ;;
13350 *)
13351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13352 ;;
13353esac
13354{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13355$as_echo "$lt_prog_compiler_pic" >&6; }
13356
13357
13358
13359
13360
13361
13362#
13363# Check to make sure the PIC flag actually works.
13364#
13365if test -n "$lt_prog_compiler_pic"; then
13366 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13367$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13368if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
13369 $as_echo_n "(cached) " >&6
13370else
13371 lt_cv_prog_compiler_pic_works=no
13372 ac_outfile=conftest.$ac_objext
13373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13374 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13375 # Insert the option either (1) after the last *FLAGS variable, or
13376 # (2) before a word containing "conftest.", or (3) at the end.
13377 # Note that $ac_compile itself does not contain backslashes and begins
13378 # with a dollar sign (not a hyphen), so the echo should work correctly.
13379 # The option is referenced via a variable to avoid confusing sed.
13380 lt_compile=`echo "$ac_compile" | $SED \
13381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13383 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013384 (eval echo "\"\$as_me:13384: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013385 (eval "$lt_compile" 2>conftest.err)
13386 ac_status=$?
13387 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013388 echo "$as_me:13388: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013389 if (exit $ac_status) && test -s "$ac_outfile"; then
13390 # The compiler can only warn and ignore the option if not recognized
13391 # So say no if there are warnings other than the usual output.
13392 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13395 lt_cv_prog_compiler_pic_works=yes
13396 fi
13397 fi
13398 $RM conftest*
13399
13400fi
13401{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
13402$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13403
13404if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13405 case $lt_prog_compiler_pic in
13406 "" | " "*) ;;
13407 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13408 esac
13409else
13410 lt_prog_compiler_pic=
13411 lt_prog_compiler_can_build_shared=no
13412fi
13413
13414fi
13415
13416
13417
13418
13419
13420
13421#
13422# Check to make sure the static flag actually works.
13423#
13424wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13425{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13427if test "${lt_cv_prog_compiler_static_works+set}" = set; then
13428 $as_echo_n "(cached) " >&6
13429else
13430 lt_cv_prog_compiler_static_works=no
13431 save_LDFLAGS="$LDFLAGS"
13432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13435 # The linker can only warn and ignore the option if not recognized
13436 # So say no if there are warnings
13437 if test -s conftest.err; then
13438 # Append any errors to the config.log.
13439 cat conftest.err 1>&5
13440 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13442 if diff conftest.exp conftest.er2 >/dev/null; then
13443 lt_cv_prog_compiler_static_works=yes
13444 fi
13445 else
13446 lt_cv_prog_compiler_static_works=yes
13447 fi
13448 fi
13449 $RM -r conftest*
13450 LDFLAGS="$save_LDFLAGS"
13451
13452fi
13453{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
13454$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13455
13456if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13457 :
13458else
13459 lt_prog_compiler_static=
13460fi
13461
13462
13463
13464
13465
13466
13467
13468 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13469$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13470if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13471 $as_echo_n "(cached) " >&6
13472else
13473 lt_cv_prog_compiler_c_o=no
13474 $RM -r conftest 2>/dev/null
13475 mkdir conftest
13476 cd conftest
13477 mkdir out
13478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13479
13480 lt_compiler_flag="-o out/conftest2.$ac_objext"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013489 (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013490 (eval "$lt_compile" 2>out/conftest.err)
13491 ac_status=$?
13492 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013493 echo "$as_me:13493: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13495 then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings
13498 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13501 lt_cv_prog_compiler_c_o=yes
13502 fi
13503 fi
13504 chmod u+w . 2>&5
13505 $RM conftest*
13506 # SGI C++ compiler will create directory out/ii_files/ for
13507 # template instantiation
13508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13509 $RM out/* && rmdir out
13510 cd ..
13511 $RM -r conftest
13512 $RM conftest*
13513
13514fi
13515{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13516$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13517
13518
13519
13520
13521
13522
13523 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13524$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13525if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13526 $as_echo_n "(cached) " >&6
13527else
13528 lt_cv_prog_compiler_c_o=no
13529 $RM -r conftest 2>/dev/null
13530 mkdir conftest
13531 cd conftest
13532 mkdir out
13533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13534
13535 lt_compiler_flag="-o out/conftest2.$ac_objext"
13536 # Insert the option either (1) after the last *FLAGS variable, or
13537 # (2) before a word containing "conftest.", or (3) at the end.
13538 # Note that $ac_compile itself does not contain backslashes and begins
13539 # with a dollar sign (not a hyphen), so the echo should work correctly.
13540 lt_compile=`echo "$ac_compile" | $SED \
13541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13543 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000013544 (eval echo "\"\$as_me:13544: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013545 (eval "$lt_compile" 2>out/conftest.err)
13546 ac_status=$?
13547 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000013548 echo "$as_me:13548: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13550 then
13551 # The compiler can only warn and ignore the option if not recognized
13552 # So say no if there are warnings
13553 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13556 lt_cv_prog_compiler_c_o=yes
13557 fi
13558 fi
13559 chmod u+w . 2>&5
13560 $RM conftest*
13561 # SGI C++ compiler will create directory out/ii_files/ for
13562 # template instantiation
13563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13564 $RM out/* && rmdir out
13565 cd ..
13566 $RM -r conftest
13567 $RM conftest*
13568
13569fi
13570{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13571$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13572
13573
13574
13575
13576hard_links="nottested"
13577if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13578 # do not overwrite the value of need_locks provided by the user
13579 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13580$as_echo_n "checking if we can lock with hard links... " >&6; }
13581 hard_links=yes
13582 $RM conftest*
13583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13584 touch conftest.a
13585 ln conftest.a conftest.b 2>&5 || hard_links=no
13586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13587 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13588$as_echo "$hard_links" >&6; }
13589 if test "$hard_links" = no; then
13590 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13591$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13592 need_locks=warn
13593 fi
13594else
13595 need_locks=no
13596fi
13597
13598
13599
13600
13601
13602
13603 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13604$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13605
13606 runpath_var=
13607 allow_undefined_flag=
13608 always_export_symbols=no
13609 archive_cmds=
13610 archive_expsym_cmds=
13611 compiler_needs_object=no
13612 enable_shared_with_static_runtimes=no
13613 export_dynamic_flag_spec=
13614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13615 hardcode_automatic=no
13616 hardcode_direct=no
13617 hardcode_direct_absolute=no
13618 hardcode_libdir_flag_spec=
13619 hardcode_libdir_flag_spec_ld=
13620 hardcode_libdir_separator=
13621 hardcode_minus_L=no
13622 hardcode_shlibpath_var=unsupported
13623 inherit_rpath=no
13624 link_all_deplibs=unknown
13625 module_cmds=
13626 module_expsym_cmds=
13627 old_archive_from_new_cmds=
13628 old_archive_from_expsyms_cmds=
13629 thread_safe_flag_spec=
13630 whole_archive_flag_spec=
13631 # include_expsyms should be a list of space-separated symbols to be *always*
13632 # included in the symbol list
13633 include_expsyms=
13634 # exclude_expsyms can be an extended regexp of symbols to exclude
13635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13637 # as well as any symbol that contains `d'.
13638 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13640 # platforms (ab)use it in PIC code, but their linkers get confused if
13641 # the symbol is explicitly referenced. Since portable code cannot
13642 # rely on this symbol name, it's probably fine to never include it in
13643 # preloaded symbol tables.
13644 # Exclude shared library initialization/finalization symbols.
13645 extract_expsyms_cmds=
13646
13647 case $host_os in
13648 cygwin* | mingw* | pw32* | cegcc*)
13649 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13650 # When not using gcc, we currently assume that we are using
13651 # Microsoft Visual C++.
13652 if test "$GCC" != yes; then
13653 with_gnu_ld=no
13654 fi
13655 ;;
13656 interix*)
13657 # we just hope/assume this is gcc and not c89 (= MSVC++)
13658 with_gnu_ld=yes
13659 ;;
13660 openbsd*)
13661 with_gnu_ld=no
13662 ;;
13663 esac
13664
13665 ld_shlibs=yes
13666 if test "$with_gnu_ld" = yes; then
13667 # If archive_cmds runs LD, not CC, wlarc should be empty
13668 wlarc='${wl}'
13669
13670 # Set some defaults for GNU ld with shared library support. These
13671 # are reset later if shared libraries are not supported. Putting them
13672 # here allows them to be overridden if necessary.
13673 runpath_var=LD_RUN_PATH
13674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13675 export_dynamic_flag_spec='${wl}--export-dynamic'
13676 # ancient GNU ld didn't support --whole-archive et. al.
13677 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13678 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13679 else
13680 whole_archive_flag_spec=
13681 fi
13682 supports_anon_versioning=no
13683 case `$LD -v 2>&1` in
13684 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13685 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13686 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13687 *\ 2.11.*) ;; # other 2.11 versions
13688 *) supports_anon_versioning=yes ;;
13689 esac
13690
13691 # See if GNU ld supports shared libraries.
13692 case $host_os in
13693 aix[3-9]*)
13694 # On AIX/PPC, the GNU linker is very broken
13695 if test "$host_cpu" != ia64; then
13696 ld_shlibs=no
13697 cat <<_LT_EOF 1>&2
13698
13699*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13700*** to be unable to reliably create shared libraries on AIX.
13701*** Therefore, libtool is disabling shared libraries support. If you
13702*** really care for shared libraries, you may want to modify your PATH
13703*** so that a non-GNU linker is found, and then restart.
13704
13705_LT_EOF
13706 fi
13707 ;;
13708
13709 amigaos*)
13710 case $host_cpu in
13711 powerpc)
13712 # see comment about AmigaOS4 .so support
13713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714 archive_expsym_cmds=''
13715 ;;
13716 m68k)
13717 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13718 hardcode_libdir_flag_spec='-L$libdir'
13719 hardcode_minus_L=yes
13720 ;;
13721 esac
13722 ;;
13723
13724 beos*)
13725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13726 allow_undefined_flag=unsupported
13727 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13728 # support --undefined. This deserves some investigation. FIXME
13729 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13730 else
13731 ld_shlibs=no
13732 fi
13733 ;;
13734
13735 cygwin* | mingw* | pw32* | cegcc*)
13736 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13737 # as there is no search path for DLLs.
13738 hardcode_libdir_flag_spec='-L$libdir'
13739 allow_undefined_flag=unsupported
13740 always_export_symbols=no
13741 enable_shared_with_static_runtimes=yes
13742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13743
13744 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13746 # If the export-symbols file already is a .def file (1st line
13747 # is EXPORTS), use it as is; otherwise, prepend...
13748 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13749 cp $export_symbols $output_objdir/$soname.def;
13750 else
13751 echo EXPORTS > $output_objdir/$soname.def;
13752 cat $export_symbols >> $output_objdir/$soname.def;
13753 fi~
13754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13755 else
13756 ld_shlibs=no
13757 fi
13758 ;;
13759
13760 interix[3-9]*)
13761 hardcode_direct=no
13762 hardcode_shlibpath_var=no
13763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13764 export_dynamic_flag_spec='${wl}-E'
13765 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13766 # Instead, shared libraries are loaded at an image base (0x10000000 by
13767 # default) and relocated if they conflict, which is a slow very memory
13768 # consuming and fragmenting process. To avoid this, we pick a random,
13769 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13770 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13772 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13773 ;;
13774
13775 gnu* | linux* | tpf* | k*bsd*-gnu)
13776 tmp_diet=no
13777 if test "$host_os" = linux-dietlibc; then
13778 case $cc_basename in
13779 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13780 esac
13781 fi
13782 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13783 && test "$tmp_diet" = no
13784 then
13785 tmp_addflag=
13786 tmp_sharedflag='-shared'
13787 case $cc_basename,$host_cpu in
13788 pgcc*) # Portland Group C compiler
13789 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13790 tmp_addflag=' $pic_flag'
13791 ;;
13792 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13793 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13794 tmp_addflag=' $pic_flag -Mnomain' ;;
13795 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13796 tmp_addflag=' -i_dynamic' ;;
13797 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13798 tmp_addflag=' -i_dynamic -nofor_main' ;;
13799 ifc* | ifort*) # Intel Fortran compiler
13800 tmp_addflag=' -nofor_main' ;;
13801 lf95*) # Lahey Fortran 8.1
13802 whole_archive_flag_spec=
13803 tmp_sharedflag='--shared' ;;
13804 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13805 tmp_sharedflag='-qmkshrobj'
13806 tmp_addflag= ;;
13807 esac
13808 case `$CC -V 2>&1 | sed 5q` in
13809 *Sun\ C*) # Sun C 5.9
13810 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13811 compiler_needs_object=yes
13812 tmp_sharedflag='-G' ;;
13813 *Sun\ F*) # Sun Fortran 8.3
13814 tmp_sharedflag='-G' ;;
13815 esac
13816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13817
13818 if test "x$supports_anon_versioning" = xyes; then
13819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13821 echo "local: *; };" >> $output_objdir/$libname.ver~
13822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13823 fi
13824
13825 case $cc_basename in
13826 xlf*)
13827 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13828 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13829 hardcode_libdir_flag_spec=
13830 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13831 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13832 if test "x$supports_anon_versioning" = xyes; then
13833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13835 echo "local: *; };" >> $output_objdir/$libname.ver~
13836 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13837 fi
13838 ;;
13839 esac
13840 else
13841 ld_shlibs=no
13842 fi
13843 ;;
13844
13845 netbsd*)
13846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13847 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13848 wlarc=
13849 else
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13852 fi
13853 ;;
13854
13855 solaris*)
13856 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13857 ld_shlibs=no
13858 cat <<_LT_EOF 1>&2
13859
13860*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13861*** create shared libraries on Solaris systems. Therefore, libtool
13862*** is disabling shared libraries support. We urge you to upgrade GNU
13863*** binutils to release 2.9.1 or newer. Another option is to modify
13864*** your PATH or compiler configuration so that the native linker is
13865*** used, and then restart.
13866
13867_LT_EOF
13868 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13871 else
13872 ld_shlibs=no
13873 fi
13874 ;;
13875
13876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13877 case `$LD -v 2>&1` in
13878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13879 ld_shlibs=no
13880 cat <<_LT_EOF 1>&2
13881
13882*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13883*** reliably create shared libraries on SCO systems. Therefore, libtool
13884*** is disabling shared libraries support. We urge you to upgrade GNU
13885*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13886*** your PATH or compiler configuration so that the native linker is
13887*** used, and then restart.
13888
13889_LT_EOF
13890 ;;
13891 *)
13892 # For security reasons, it is highly recommended that you always
13893 # use absolute paths for naming shared libraries, and exclude the
13894 # DT_RUNPATH tag from executables and libraries. But doing so
13895 # requires that you compile everything twice, which is a pain.
13896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13900 else
13901 ld_shlibs=no
13902 fi
13903 ;;
13904 esac
13905 ;;
13906
13907 sunos4*)
13908 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13909 wlarc=
13910 hardcode_direct=yes
13911 hardcode_shlibpath_var=no
13912 ;;
13913
13914 *)
13915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13918 else
13919 ld_shlibs=no
13920 fi
13921 ;;
13922 esac
13923
13924 if test "$ld_shlibs" = no; then
13925 runpath_var=
13926 hardcode_libdir_flag_spec=
13927 export_dynamic_flag_spec=
13928 whole_archive_flag_spec=
13929 fi
13930 else
13931 # PORTME fill in a description of your system's linker (not GNU ld)
13932 case $host_os in
13933 aix3*)
13934 allow_undefined_flag=unsupported
13935 always_export_symbols=yes
13936 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13937 # Note: this linker hardcodes the directories in LIBPATH if there
13938 # are no directories specified by -L.
13939 hardcode_minus_L=yes
13940 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13941 # Neither direct hardcoding nor static linking is supported with a
13942 # broken collect2.
13943 hardcode_direct=unsupported
13944 fi
13945 ;;
13946
13947 aix[4-9]*)
13948 if test "$host_cpu" = ia64; then
13949 # On IA64, the linker does run time linking by default, so we don't
13950 # have to do anything special.
13951 aix_use_runtimelinking=no
13952 exp_sym_flag='-Bexport'
13953 no_entry_flag=""
13954 else
13955 # If we're using GNU nm, then we don't want the "-C" option.
13956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13958 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13959 else
13960 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13961 fi
13962 aix_use_runtimelinking=no
13963
13964 # Test if we are trying to use run time linking or normal
13965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13966 # need to do runtime linking.
13967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13968 for ld_flag in $LDFLAGS; do
13969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13970 aix_use_runtimelinking=yes
13971 break
13972 fi
13973 done
13974 ;;
13975 esac
13976
13977 exp_sym_flag='-bexport'
13978 no_entry_flag='-bnoentry'
13979 fi
13980
13981 # When large executables or shared objects are built, AIX ld can
13982 # have problems creating the table of contents. If linking a library
13983 # or program results in "error TOC overflow" add -mminimal-toc to
13984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13986
13987 archive_cmds=''
13988 hardcode_direct=yes
13989 hardcode_direct_absolute=yes
13990 hardcode_libdir_separator=':'
13991 link_all_deplibs=yes
13992 file_list_spec='${wl}-f,'
13993
13994 if test "$GCC" = yes; then
13995 case $host_os in aix4.[012]|aix4.[012].*)
13996 # We only want to do this on AIX 4.2 and lower, the check
13997 # below for broken collect2 doesn't work under 4.3+
13998 collect2name=`${CC} -print-prog-name=collect2`
13999 if test -f "$collect2name" &&
14000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14001 then
14002 # We have reworked collect2
14003 :
14004 else
14005 # We have old collect2
14006 hardcode_direct=unsupported
14007 # It fails to find uninstalled libraries when the uninstalled
14008 # path is not listed in the libpath. Setting hardcode_minus_L
14009 # to unsupported forces relinking
14010 hardcode_minus_L=yes
14011 hardcode_libdir_flag_spec='-L$libdir'
14012 hardcode_libdir_separator=
14013 fi
14014 ;;
14015 esac
14016 shared_flag='-shared'
14017 if test "$aix_use_runtimelinking" = yes; then
14018 shared_flag="$shared_flag "'${wl}-G'
14019 fi
14020 else
14021 # not using gcc
14022 if test "$host_cpu" = ia64; then
14023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14024 # chokes on -Wl,-G. The following line is correct:
14025 shared_flag='-G'
14026 else
14027 if test "$aix_use_runtimelinking" = yes; then
14028 shared_flag='${wl}-G'
14029 else
14030 shared_flag='${wl}-bM:SRE'
14031 fi
14032 fi
14033 fi
14034
14035 export_dynamic_flag_spec='${wl}-bexpall'
14036 # It seems that -bexpall does not export symbols beginning with
14037 # underscore (_), so it is better to generate a list of symbols to export.
14038 always_export_symbols=yes
14039 if test "$aix_use_runtimelinking" = yes; then
14040 # Warning - without using the other runtime loading flags (-brtl),
14041 # -berok will link without error, but may produce a broken library.
14042 allow_undefined_flag='-berok'
14043 # Determine the default libpath from the value encoded in an
14044 # empty executable.
14045 cat >conftest.$ac_ext <<_ACEOF
14046/* confdefs.h. */
14047_ACEOF
14048cat confdefs.h >>conftest.$ac_ext
14049cat >>conftest.$ac_ext <<_ACEOF
14050/* end confdefs.h. */
14051
14052int
14053main ()
14054{
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060rm -f conftest.$ac_objext conftest$ac_exeext
14061if { (ac_try="$ac_link"
14062case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065esac
14066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14067$as_echo "$ac_try_echo") >&5
14068 (eval "$ac_link") 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest$ac_exeext && {
14078 test "$cross_compiling" = yes ||
14079 $as_test_x conftest$ac_exeext
14080 }; then
14081
14082lt_aix_libpath_sed='
14083 /Import File Strings/,/^$/ {
14084 /^0/ {
14085 s/^0 *\(.*\)$/\1/
14086 p
14087 }
14088 }'
14089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14090# Check for a 64-bit object if we didn't find anything.
14091if test -z "$aix_libpath"; then
14092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14093fi
14094else
14095 $as_echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098
14099fi
14100
14101rm -rf conftest.dSYM
14102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14103 conftest$ac_exeext conftest.$ac_ext
14104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14105
14106 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14107 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14108 else
14109 if test "$host_cpu" = ia64; then
14110 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14111 allow_undefined_flag="-z nodefs"
14112 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14113 else
14114 # Determine the default libpath from the value encoded in an
14115 # empty executable.
14116 cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122
14123int
14124main ()
14125{
14126
14127 ;
14128 return 0;
14129}
14130_ACEOF
14131rm -f conftest.$ac_objext conftest$ac_exeext
14132if { (ac_try="$ac_link"
14133case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136esac
14137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14138$as_echo "$ac_try_echo") >&5
14139 (eval "$ac_link") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest$ac_exeext && {
14149 test "$cross_compiling" = yes ||
14150 $as_test_x conftest$ac_exeext
14151 }; then
14152
14153lt_aix_libpath_sed='
14154 /Import File Strings/,/^$/ {
14155 /^0/ {
14156 s/^0 *\(.*\)$/\1/
14157 p
14158 }
14159 }'
14160aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14161# Check for a 64-bit object if we didn't find anything.
14162if test -z "$aix_libpath"; then
14163 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14164fi
14165else
14166 $as_echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
14169
14170fi
14171
14172rm -rf conftest.dSYM
14173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14174 conftest$ac_exeext conftest.$ac_ext
14175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14176
14177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14178 # Warning - without using the other run time loading flags,
14179 # -berok will link without error, but may produce a broken library.
14180 no_undefined_flag=' ${wl}-bernotok'
14181 allow_undefined_flag=' ${wl}-berok'
14182 # Exported symbols can be pulled into shared objects from archives
14183 whole_archive_flag_spec='$convenience'
14184 archive_cmds_need_lc=yes
14185 # This is similar to how AIX traditionally builds its shared libraries.
14186 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14187 fi
14188 fi
14189 ;;
14190
14191 amigaos*)
14192 case $host_cpu in
14193 powerpc)
14194 # see comment about AmigaOS4 .so support
14195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14196 archive_expsym_cmds=''
14197 ;;
14198 m68k)
14199 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14200 hardcode_libdir_flag_spec='-L$libdir'
14201 hardcode_minus_L=yes
14202 ;;
14203 esac
14204 ;;
14205
14206 bsdi[45]*)
14207 export_dynamic_flag_spec=-rdynamic
14208 ;;
14209
14210 cygwin* | mingw* | pw32* | cegcc*)
14211 # When not using gcc, we currently assume that we are using
14212 # Microsoft Visual C++.
14213 # hardcode_libdir_flag_spec is actually meaningless, as there is
14214 # no search path for DLLs.
14215 hardcode_libdir_flag_spec=' '
14216 allow_undefined_flag=unsupported
14217 # Tell ltmain to make .lib files, not .a files.
14218 libext=lib
14219 # Tell ltmain to make .dll files, not .so files.
14220 shrext_cmds=".dll"
14221 # FIXME: Setting linknames here is a bad hack.
14222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14223 # The linker will automatically build a .lib file if we build a DLL.
14224 old_archive_from_new_cmds='true'
14225 # FIXME: Should let the user specify the lib program.
14226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14227 fix_srcfile_path='`cygpath -w "$srcfile"`'
14228 enable_shared_with_static_runtimes=yes
14229 ;;
14230
14231 darwin* | rhapsody*)
14232
14233
14234 archive_cmds_need_lc=no
14235 hardcode_direct=no
14236 hardcode_automatic=yes
14237 hardcode_shlibpath_var=unsupported
14238 whole_archive_flag_spec=''
14239 link_all_deplibs=yes
14240 allow_undefined_flag="$_lt_dar_allow_undefined"
14241 case $cc_basename in
14242 ifort*) _lt_dar_can_shared=yes ;;
14243 *) _lt_dar_can_shared=$GCC ;;
14244 esac
14245 if test "$_lt_dar_can_shared" = "yes"; then
14246 output_verbose_link_cmd=echo
14247 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14248 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14249 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14250 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14251
14252 else
14253 ld_shlibs=no
14254 fi
14255
14256 ;;
14257
14258 dgux*)
14259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_libdir_flag_spec='-L$libdir'
14261 hardcode_shlibpath_var=no
14262 ;;
14263
14264 freebsd1*)
14265 ld_shlibs=no
14266 ;;
14267
14268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14269 # support. Future versions do this automatically, but an explicit c++rt0.o
14270 # does not break anything, and helps significantly (at the cost of a little
14271 # extra space).
14272 freebsd2.2*)
14273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14274 hardcode_libdir_flag_spec='-R$libdir'
14275 hardcode_direct=yes
14276 hardcode_shlibpath_var=no
14277 ;;
14278
14279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14280 freebsd2*)
14281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14282 hardcode_direct=yes
14283 hardcode_minus_L=yes
14284 hardcode_shlibpath_var=no
14285 ;;
14286
14287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14288 freebsd* | dragonfly*)
14289 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14290 hardcode_libdir_flag_spec='-R$libdir'
14291 hardcode_direct=yes
14292 hardcode_shlibpath_var=no
14293 ;;
14294
14295 hpux9*)
14296 if test "$GCC" = yes; then
14297 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14298 else
14299 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14300 fi
14301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14302 hardcode_libdir_separator=:
14303 hardcode_direct=yes
14304
14305 # hardcode_minus_L: Not really in the search PATH,
14306 # but as the default location of the library.
14307 hardcode_minus_L=yes
14308 export_dynamic_flag_spec='${wl}-E'
14309 ;;
14310
14311 hpux10*)
14312 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14313 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14314 else
14315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14316 fi
14317 if test "$with_gnu_ld" = no; then
14318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14319 hardcode_libdir_flag_spec_ld='+b $libdir'
14320 hardcode_libdir_separator=:
14321 hardcode_direct=yes
14322 hardcode_direct_absolute=yes
14323 export_dynamic_flag_spec='${wl}-E'
14324 # hardcode_minus_L: Not really in the search PATH,
14325 # but as the default location of the library.
14326 hardcode_minus_L=yes
14327 fi
14328 ;;
14329
14330 hpux11*)
14331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14332 case $host_cpu in
14333 hppa*64*)
14334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 ;;
14336 ia64*)
14337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14338 ;;
14339 *)
14340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14341 ;;
14342 esac
14343 else
14344 case $host_cpu in
14345 hppa*64*)
14346 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14347 ;;
14348 ia64*)
14349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14350 ;;
14351 *)
14352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14353 ;;
14354 esac
14355 fi
14356 if test "$with_gnu_ld" = no; then
14357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14358 hardcode_libdir_separator=:
14359
14360 case $host_cpu in
14361 hppa*64*|ia64*)
14362 hardcode_direct=no
14363 hardcode_shlibpath_var=no
14364 ;;
14365 *)
14366 hardcode_direct=yes
14367 hardcode_direct_absolute=yes
14368 export_dynamic_flag_spec='${wl}-E'
14369
14370 # hardcode_minus_L: Not really in the search PATH,
14371 # but as the default location of the library.
14372 hardcode_minus_L=yes
14373 ;;
14374 esac
14375 fi
14376 ;;
14377
14378 irix5* | irix6* | nonstopux*)
14379 if test "$GCC" = yes; then
14380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14381 # Try to use the -exported_symbol ld option, if it does not
14382 # work, assume that -exports_file does not work either and
14383 # implicitly export all symbols.
14384 save_LDFLAGS="$LDFLAGS"
14385 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14386 cat >conftest.$ac_ext <<_ACEOF
14387int foo(void) {}
14388_ACEOF
14389rm -f conftest.$ac_objext conftest$ac_exeext
14390if { (ac_try="$ac_link"
14391case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14396$as_echo "$ac_try_echo") >&5
14397 (eval "$ac_link") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest$ac_exeext && {
14407 test "$cross_compiling" = yes ||
14408 $as_test_x conftest$ac_exeext
14409 }; then
14410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14411
14412else
14413 $as_echo "$as_me: failed program was:" >&5
14414sed 's/^/| /' conftest.$ac_ext >&5
14415
14416
14417fi
14418
14419rm -rf conftest.dSYM
14420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14422 LDFLAGS="$save_LDFLAGS"
14423 else
14424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14426 fi
14427 archive_cmds_need_lc='no'
14428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14429 hardcode_libdir_separator=:
14430 inherit_rpath=yes
14431 link_all_deplibs=yes
14432 ;;
14433
14434 netbsd*)
14435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14437 else
14438 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14439 fi
14440 hardcode_libdir_flag_spec='-R$libdir'
14441 hardcode_direct=yes
14442 hardcode_shlibpath_var=no
14443 ;;
14444
14445 newsos6)
14446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14447 hardcode_direct=yes
14448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14449 hardcode_libdir_separator=:
14450 hardcode_shlibpath_var=no
14451 ;;
14452
14453 *nto* | *qnx*)
14454 ;;
14455
14456 openbsd*)
14457 if test -f /usr/libexec/ld.so; then
14458 hardcode_direct=yes
14459 hardcode_shlibpath_var=no
14460 hardcode_direct_absolute=yes
14461 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14462 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14463 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14465 export_dynamic_flag_spec='${wl}-E'
14466 else
14467 case $host_os in
14468 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_libdir_flag_spec='-R$libdir'
14471 ;;
14472 *)
14473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14475 ;;
14476 esac
14477 fi
14478 else
14479 ld_shlibs=no
14480 fi
14481 ;;
14482
14483 os2*)
14484 hardcode_libdir_flag_spec='-L$libdir'
14485 hardcode_minus_L=yes
14486 allow_undefined_flag=unsupported
14487 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14488 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14489 ;;
14490
14491 osf3*)
14492 if test "$GCC" = yes; then
14493 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14494 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14495 else
14496 allow_undefined_flag=' -expect_unresolved \*'
14497 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14498 fi
14499 archive_cmds_need_lc='no'
14500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14501 hardcode_libdir_separator=:
14502 ;;
14503
14504 osf4* | osf5*) # as osf3* with the addition of -msym flag
14505 if test "$GCC" = yes; then
14506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14507 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14509 else
14510 allow_undefined_flag=' -expect_unresolved \*'
14511 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14512 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14513 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14514
14515 # Both c and cxx compiler support -rpath directly
14516 hardcode_libdir_flag_spec='-rpath $libdir'
14517 fi
14518 archive_cmds_need_lc='no'
14519 hardcode_libdir_separator=:
14520 ;;
14521
14522 solaris*)
14523 no_undefined_flag=' -z defs'
14524 if test "$GCC" = yes; then
14525 wlarc='${wl}'
14526 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14528 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14529 else
14530 case `$CC -V 2>&1` in
14531 *"Compilers 5.0"*)
14532 wlarc=''
14533 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14535 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14536 ;;
14537 *)
14538 wlarc='${wl}'
14539 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14541 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14542 ;;
14543 esac
14544 fi
14545 hardcode_libdir_flag_spec='-R$libdir'
14546 hardcode_shlibpath_var=no
14547 case $host_os in
14548 solaris2.[0-5] | solaris2.[0-5].*) ;;
14549 *)
14550 # The compiler driver will combine and reorder linker options,
14551 # but understands `-z linker_flag'. GCC discards it without `$wl',
14552 # but is careful enough not to reorder.
14553 # Supported since Solaris 2.6 (maybe 2.5.1?)
14554 if test "$GCC" = yes; then
14555 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14556 else
14557 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14558 fi
14559 ;;
14560 esac
14561 link_all_deplibs=yes
14562 ;;
14563
14564 sunos4*)
14565 if test "x$host_vendor" = xsequent; then
14566 # Use $CC to link under sequent, because it throws in some extra .o
14567 # files that make .init and .fini sections work.
14568 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14569 else
14570 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14571 fi
14572 hardcode_libdir_flag_spec='-L$libdir'
14573 hardcode_direct=yes
14574 hardcode_minus_L=yes
14575 hardcode_shlibpath_var=no
14576 ;;
14577
14578 sysv4)
14579 case $host_vendor in
14580 sni)
14581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582 hardcode_direct=yes # is this really true???
14583 ;;
14584 siemens)
14585 ## LD is ld it makes a PLAMLIB
14586 ## CC just makes a GrossModule.
14587 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14588 reload_cmds='$CC -r -o $output$reload_objs'
14589 hardcode_direct=no
14590 ;;
14591 motorola)
14592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14593 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14594 ;;
14595 esac
14596 runpath_var='LD_RUN_PATH'
14597 hardcode_shlibpath_var=no
14598 ;;
14599
14600 sysv4.3*)
14601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602 hardcode_shlibpath_var=no
14603 export_dynamic_flag_spec='-Bexport'
14604 ;;
14605
14606 sysv4*MP*)
14607 if test -d /usr/nec; then
14608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14609 hardcode_shlibpath_var=no
14610 runpath_var=LD_RUN_PATH
14611 hardcode_runpath_var=yes
14612 ld_shlibs=yes
14613 fi
14614 ;;
14615
14616 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14617 no_undefined_flag='${wl}-z,text'
14618 archive_cmds_need_lc=no
14619 hardcode_shlibpath_var=no
14620 runpath_var='LD_RUN_PATH'
14621
14622 if test "$GCC" = yes; then
14623 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14624 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 else
14626 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 fi
14629 ;;
14630
14631 sysv5* | sco3.2v5* | sco5v6*)
14632 # Note: We can NOT use -z defs as we might desire, because we do not
14633 # link with -lc, and that would cause any symbols used from libc to
14634 # always be unresolved, which means just about no library would
14635 # ever link correctly. If we're not using GNU ld we use -z text
14636 # though, which does catch some bad symbols but isn't as heavy-handed
14637 # as -z defs.
14638 no_undefined_flag='${wl}-z,text'
14639 allow_undefined_flag='${wl}-z,nodefs'
14640 archive_cmds_need_lc=no
14641 hardcode_shlibpath_var=no
14642 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14643 hardcode_libdir_separator=':'
14644 link_all_deplibs=yes
14645 export_dynamic_flag_spec='${wl}-Bexport'
14646 runpath_var='LD_RUN_PATH'
14647
14648 if test "$GCC" = yes; then
14649 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 else
14652 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 fi
14655 ;;
14656
14657 uts4*)
14658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_libdir_flag_spec='-L$libdir'
14660 hardcode_shlibpath_var=no
14661 ;;
14662
14663 *)
14664 ld_shlibs=no
14665 ;;
14666 esac
14667
14668 if test x$host_vendor = xsni; then
14669 case $host in
14670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14671 export_dynamic_flag_spec='${wl}-Blargedynsym'
14672 ;;
14673 esac
14674 fi
14675 fi
14676
14677{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14678$as_echo "$ld_shlibs" >&6; }
14679test "$ld_shlibs" = no && can_build_shared=no
14680
14681with_gnu_ld=$with_gnu_ld
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697#
14698# Do we need to explicitly link libc?
14699#
14700case "x$archive_cmds_need_lc" in
14701x|xyes)
14702 # Assume -lc should be added
14703 archive_cmds_need_lc=yes
14704
14705 if test "$enable_shared" = yes && test "$GCC" = yes; then
14706 case $archive_cmds in
14707 *'~'*)
14708 # FIXME: we may have to deal with multi-command sequences.
14709 ;;
14710 '$CC '*)
14711 # Test whether the compiler implicitly links with -lc since on some
14712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14713 # to ld, don't add -lc before -lgcc.
14714 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14715$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14716 $RM conftest*
14717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14718
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14721 ac_status=$?
14722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } 2>conftest.err; then
14724 soname=conftest
14725 lib=conftest
14726 libobjs=conftest.$ac_objext
14727 deplibs=
14728 wl=$lt_prog_compiler_wl
14729 pic_flag=$lt_prog_compiler_pic
14730 compiler_flags=-v
14731 linker_flags=-v
14732 verstring=
14733 output_objdir=.
14734 libname=conftest
14735 lt_save_allow_undefined_flag=$allow_undefined_flag
14736 allow_undefined_flag=
14737 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14738 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14739 ac_status=$?
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }
14742 then
14743 archive_cmds_need_lc=no
14744 else
14745 archive_cmds_need_lc=yes
14746 fi
14747 allow_undefined_flag=$lt_save_allow_undefined_flag
14748 else
14749 cat conftest.err 1>&5
14750 fi
14751 $RM conftest*
14752 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14753$as_echo "$archive_cmds_need_lc" >&6; }
14754 ;;
14755 esac
14756 fi
14757 ;;
14758esac
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14917$as_echo_n "checking dynamic linker characteristics... " >&6; }
14918
14919if test "$GCC" = yes; then
14920 case $host_os in
14921 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14922 *) lt_awk_arg="/^libraries:/" ;;
14923 esac
14924 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14925 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14926 # if the path contains ";" then we assume it to be the separator
14927 # otherwise default to the standard path separator (i.e. ":") - it is
14928 # assumed that no part of a normal pathname contains ";" but that should
14929 # okay in the real world where ";" in dirpaths is itself problematic.
14930 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14931 else
14932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14933 fi
14934 # Ok, now we have the path, separated by spaces, we can step through it
14935 # and add multilib dir if necessary.
14936 lt_tmp_lt_search_path_spec=
14937 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14938 for lt_sys_path in $lt_search_path_spec; do
14939 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14941 else
14942 test -d "$lt_sys_path" && \
14943 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14944 fi
14945 done
14946 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14947BEGIN {RS=" "; FS="/|\n";} {
14948 lt_foo="";
14949 lt_count=0;
14950 for (lt_i = NF; lt_i > 0; lt_i--) {
14951 if ($lt_i != "" && $lt_i != ".") {
14952 if ($lt_i == "..") {
14953 lt_count++;
14954 } else {
14955 if (lt_count == 0) {
14956 lt_foo="/" $lt_i lt_foo;
14957 } else {
14958 lt_count--;
14959 }
14960 }
14961 }
14962 }
14963 if (lt_foo != "") { lt_freq[lt_foo]++; }
14964 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14965}'`
14966 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14967else
14968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14969fi
14970library_names_spec=
14971libname_spec='lib$name'
14972soname_spec=
14973shrext_cmds=".so"
14974postinstall_cmds=
14975postuninstall_cmds=
14976finish_cmds=
14977finish_eval=
14978shlibpath_var=
14979shlibpath_overrides_runpath=unknown
14980version_type=none
14981dynamic_linker="$host_os ld.so"
14982sys_lib_dlsearch_path_spec="/lib /usr/lib"
14983need_lib_prefix=unknown
14984hardcode_into_libs=no
14985
14986# when you set need_version to no, make sure it does not cause -set_version
14987# flags to be left without arguments
14988need_version=unknown
14989
14990case $host_os in
14991aix3*)
14992 version_type=linux
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14994 shlibpath_var=LIBPATH
14995
14996 # AIX 3 has no versioning support, so we append a major version to the name.
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 ;;
14999
15000aix[4-9]*)
15001 version_type=linux
15002 need_lib_prefix=no
15003 need_version=no
15004 hardcode_into_libs=yes
15005 if test "$host_cpu" = ia64; then
15006 # AIX 5 supports IA64
15007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 else
15010 # With GCC up to 2.95.x, collect2 would create an import file
15011 # for dependence libraries. The import file would start with
15012 # the line `#! .'. This would cause the generated library to
15013 # depend on `.', always an invalid library. This was fixed in
15014 # development snapshots of GCC prior to 3.0.
15015 case $host_os in
15016 aix4 | aix4.[01] | aix4.[01].*)
15017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15018 echo ' yes '
15019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15020 :
15021 else
15022 can_build_shared=no
15023 fi
15024 ;;
15025 esac
15026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15027 # soname into executable. Probably we can add versioning support to
15028 # collect2, so additional links can be useful in future.
15029 if test "$aix_use_runtimelinking" = yes; then
15030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15031 # instead of lib<name>.a to let people know that these are not
15032 # typical AIX shared libraries.
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 else
15035 # We preserve .a as extension for shared libraries through AIX4.2
15036 # and later when we are not doing run time linking.
15037 library_names_spec='${libname}${release}.a $libname.a'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 fi
15040 shlibpath_var=LIBPATH
15041 fi
15042 ;;
15043
15044amigaos*)
15045 case $host_cpu in
15046 powerpc)
15047 # Since July 2007 AmigaOS4 officially supports .so libraries.
15048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 ;;
15051 m68k)
15052 library_names_spec='$libname.ixlibrary $libname.a'
15053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15054 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15055 ;;
15056 esac
15057 ;;
15058
15059beos*)
15060 library_names_spec='${libname}${shared_ext}'
15061 dynamic_linker="$host_os ld.so"
15062 shlibpath_var=LIBRARY_PATH
15063 ;;
15064
15065bsdi[45]*)
15066 version_type=linux
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15074 # the default ld.so.conf also contains /usr/contrib/lib and
15075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15076 # libtool to hard-code these into programs
15077 ;;
15078
15079cygwin* | mingw* | pw32* | cegcc*)
15080 version_type=windows
15081 shrext_cmds=".dll"
15082 need_version=no
15083 need_lib_prefix=no
15084
15085 case $GCC,$host_os in
15086 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15087 library_names_spec='$libname.dll.a'
15088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15089 postinstall_cmds='base_file=`basename \${file}`~
15090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15091 dldir=$destdir/`dirname \$dlpath`~
15092 test -d \$dldir || mkdir -p \$dldir~
15093 $install_prog $dir/$dlname \$dldir/$dlname~
15094 chmod a+x \$dldir/$dlname~
15095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15097 fi'
15098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15099 dlpath=$dir/\$dldll~
15100 $RM \$dlpath'
15101 shlibpath_overrides_runpath=yes
15102
15103 case $host_os in
15104 cygwin*)
15105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15108 ;;
15109 mingw* | cegcc*)
15110 # MinGW DLLs use traditional 'lib' prefix
15111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15112 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15113 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15114 # It is most probably a Windows format PATH printed by
15115 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15116 # path with ; separators, and with drive letters. We can handle the
15117 # drive letters (cygwin fileutils understands them), so leave them,
15118 # especially as we might pass files found there to a mingw objdump,
15119 # which wouldn't understand a cygwinified path. Ahh.
15120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15121 else
15122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15123 fi
15124 ;;
15125 pw32*)
15126 # pw32 DLLs use 'pw' prefix rather than 'lib'
15127 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15128 ;;
15129 esac
15130 ;;
15131
15132 *)
15133 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15134 ;;
15135 esac
15136 dynamic_linker='Win32 ld.exe'
15137 # FIXME: first we should search . and the directory the executable is in
15138 shlibpath_var=PATH
15139 ;;
15140
15141darwin* | rhapsody*)
15142 dynamic_linker="$host_os dyld"
15143 version_type=darwin
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15147 soname_spec='${libname}${release}${major}$shared_ext'
15148 shlibpath_overrides_runpath=yes
15149 shlibpath_var=DYLD_LIBRARY_PATH
15150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15151
15152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15154 ;;
15155
15156dgux*)
15157 version_type=linux
15158 need_lib_prefix=no
15159 need_version=no
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15161 soname_spec='${libname}${release}${shared_ext}$major'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 ;;
15164
15165freebsd1*)
15166 dynamic_linker=no
15167 ;;
15168
15169freebsd* | dragonfly*)
15170 # DragonFly does not have aout. When/if they implement a new
15171 # versioning mechanism, adjust this.
15172 if test -x /usr/bin/objformat; then
15173 objformat=`/usr/bin/objformat`
15174 else
15175 case $host_os in
15176 freebsd[123]*) objformat=aout ;;
15177 *) objformat=elf ;;
15178 esac
15179 fi
15180 version_type=freebsd-$objformat
15181 case $version_type in
15182 freebsd-elf*)
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15184 need_version=no
15185 need_lib_prefix=no
15186 ;;
15187 freebsd-*)
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15189 need_version=yes
15190 ;;
15191 esac
15192 shlibpath_var=LD_LIBRARY_PATH
15193 case $host_os in
15194 freebsd2*)
15195 shlibpath_overrides_runpath=yes
15196 ;;
15197 freebsd3.[01]* | freebsdelf3.[01]*)
15198 shlibpath_overrides_runpath=yes
15199 hardcode_into_libs=yes
15200 ;;
15201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15203 shlibpath_overrides_runpath=no
15204 hardcode_into_libs=yes
15205 ;;
15206 *) # from 4.6 on, and DragonFly
15207 shlibpath_overrides_runpath=yes
15208 hardcode_into_libs=yes
15209 ;;
15210 esac
15211 ;;
15212
15213gnu*)
15214 version_type=linux
15215 need_lib_prefix=no
15216 need_version=no
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 shlibpath_var=LD_LIBRARY_PATH
15220 hardcode_into_libs=yes
15221 ;;
15222
15223hpux9* | hpux10* | hpux11*)
15224 # Give a soname corresponding to the major version so that dld.sl refuses to
15225 # link against other versions.
15226 version_type=sunos
15227 need_lib_prefix=no
15228 need_version=no
15229 case $host_cpu in
15230 ia64*)
15231 shrext_cmds='.so'
15232 hardcode_into_libs=yes
15233 dynamic_linker="$host_os dld.so"
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 if test "X$HPUX_IA64_MODE" = X32; then
15239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15240 else
15241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15242 fi
15243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15244 ;;
15245 hppa*64*)
15246 shrext_cmds='.sl'
15247 hardcode_into_libs=yes
15248 dynamic_linker="$host_os dld.sl"
15249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15255 ;;
15256 *)
15257 shrext_cmds='.sl'
15258 dynamic_linker="$host_os dld.sl"
15259 shlibpath_var=SHLIB_PATH
15260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 ;;
15264 esac
15265 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15266 postinstall_cmds='chmod 555 $lib'
15267 ;;
15268
15269interix[3-9]*)
15270 version_type=linux
15271 need_lib_prefix=no
15272 need_version=no
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 hardcode_into_libs=yes
15279 ;;
15280
15281irix5* | irix6* | nonstopux*)
15282 case $host_os in
15283 nonstopux*) version_type=nonstopux ;;
15284 *)
15285 if test "$lt_cv_prog_gnu_ld" = yes; then
15286 version_type=linux
15287 else
15288 version_type=irix
15289 fi ;;
15290 esac
15291 need_lib_prefix=no
15292 need_version=no
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15295 case $host_os in
15296 irix5* | nonstopux*)
15297 libsuff= shlibsuff=
15298 ;;
15299 *)
15300 case $LD in # libtool.m4 will add one of these switches to LD
15301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15302 libsuff= shlibsuff= libmagic=32-bit;;
15303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15304 libsuff=32 shlibsuff=N32 libmagic=N32;;
15305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15307 *) libsuff= shlibsuff= libmagic=never-match;;
15308 esac
15309 ;;
15310 esac
15311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15312 shlibpath_overrides_runpath=no
15313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15315 hardcode_into_libs=yes
15316 ;;
15317
15318# No shared lib support for Linux oldld, aout, or coff.
15319linux*oldld* | linux*aout* | linux*coff*)
15320 dynamic_linker=no
15321 ;;
15322
15323# This must be Linux ELF.
15324linux* | k*bsd*-gnu)
15325 version_type=linux
15326 need_lib_prefix=no
15327 need_version=no
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=no
15333 # Some binutils ld are patched to set DT_RUNPATH
15334 save_LDFLAGS=$LDFLAGS
15335 save_libdir=$libdir
15336 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15337 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15338 cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344
15345int
15346main ()
15347{
15348
15349 ;
15350 return 0;
15351}
15352_ACEOF
15353rm -f conftest.$ac_objext conftest$ac_exeext
15354if { (ac_try="$ac_link"
15355case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15360$as_echo "$ac_try_echo") >&5
15361 (eval "$ac_link") 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && {
15368 test -z "$ac_c_werror_flag" ||
15369 test ! -s conftest.err
15370 } && test -s conftest$ac_exeext && {
15371 test "$cross_compiling" = yes ||
15372 $as_test_x conftest$ac_exeext
15373 }; then
15374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15375 shlibpath_overrides_runpath=yes
15376fi
15377
15378else
15379 $as_echo "$as_me: failed program was:" >&5
15380sed 's/^/| /' conftest.$ac_ext >&5
15381
15382
15383fi
15384
15385rm -rf conftest.dSYM
15386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15387 conftest$ac_exeext conftest.$ac_ext
15388 LDFLAGS=$save_LDFLAGS
15389 libdir=$save_libdir
15390
15391 # This implies no fast_install, which is unacceptable.
15392 # Some rework will be needed to allow for fast_install
15393 # before this can be enabled.
15394 hardcode_into_libs=yes
15395
15396 # Add ABI-specific directories to the system library path.
15397 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15398
15399 # Append ld.so.conf contents to the search path
15400 if test -f /etc/ld.so.conf; then
15401 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15402 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15403 fi
15404
15405 # We used to test for /lib/ld.so.1 and disable shared libraries on
15406 # powerpc, because MkLinux only supported shared libraries with the
15407 # GNU dynamic linker. Since this was broken with cross compilers,
15408 # most powerpc-linux boxes support dynamic linking these days and
15409 # people can always --disable-shared, the test was removed, and we
15410 # assume the GNU/Linux dynamic linker is in use.
15411 dynamic_linker='GNU/Linux ld.so'
15412 ;;
15413
15414netbsd*)
15415 version_type=sunos
15416 need_lib_prefix=no
15417 need_version=no
15418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15421 dynamic_linker='NetBSD (a.out) ld.so'
15422 else
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 dynamic_linker='NetBSD ld.elf_so'
15426 fi
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=yes
15429 hardcode_into_libs=yes
15430 ;;
15431
15432newsos6)
15433 version_type=linux
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15437 ;;
15438
15439*nto* | *qnx*)
15440 version_type=qnx
15441 need_lib_prefix=no
15442 need_version=no
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=no
15447 hardcode_into_libs=yes
15448 dynamic_linker='ldqnx.so'
15449 ;;
15450
15451openbsd*)
15452 version_type=sunos
15453 sys_lib_dlsearch_path_spec="/usr/lib"
15454 need_lib_prefix=no
15455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15456 case $host_os in
15457 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15458 *) need_version=no ;;
15459 esac
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15462 shlibpath_var=LD_LIBRARY_PATH
15463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15464 case $host_os in
15465 openbsd2.[89] | openbsd2.[89].*)
15466 shlibpath_overrides_runpath=no
15467 ;;
15468 *)
15469 shlibpath_overrides_runpath=yes
15470 ;;
15471 esac
15472 else
15473 shlibpath_overrides_runpath=yes
15474 fi
15475 ;;
15476
15477os2*)
15478 libname_spec='$name'
15479 shrext_cmds=".dll"
15480 need_lib_prefix=no
15481 library_names_spec='$libname${shared_ext} $libname.a'
15482 dynamic_linker='OS/2 ld.exe'
15483 shlibpath_var=LIBPATH
15484 ;;
15485
15486osf3* | osf4* | osf5*)
15487 version_type=osf
15488 need_lib_prefix=no
15489 need_version=no
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15495 ;;
15496
15497rdos*)
15498 dynamic_linker=no
15499 ;;
15500
15501solaris*)
15502 version_type=linux
15503 need_lib_prefix=no
15504 need_version=no
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 soname_spec='${libname}${release}${shared_ext}$major'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes
15509 hardcode_into_libs=yes
15510 # ldd complains unless libraries are executable
15511 postinstall_cmds='chmod +x $lib'
15512 ;;
15513
15514sunos4*)
15515 version_type=sunos
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 shlibpath_overrides_runpath=yes
15520 if test "$with_gnu_ld" = yes; then
15521 need_lib_prefix=no
15522 fi
15523 need_version=yes
15524 ;;
15525
15526sysv4 | sysv4.3*)
15527 version_type=linux
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 case $host_vendor in
15532 sni)
15533 shlibpath_overrides_runpath=no
15534 need_lib_prefix=no
15535 runpath_var=LD_RUN_PATH
15536 ;;
15537 siemens)
15538 need_lib_prefix=no
15539 ;;
15540 motorola)
15541 need_lib_prefix=no
15542 need_version=no
15543 shlibpath_overrides_runpath=no
15544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15545 ;;
15546 esac
15547 ;;
15548
15549sysv4*MP*)
15550 if test -d /usr/nec ;then
15551 version_type=linux
15552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15553 soname_spec='$libname${shared_ext}.$major'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 fi
15556 ;;
15557
15558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15559 version_type=freebsd-elf
15560 need_lib_prefix=no
15561 need_version=no
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 shlibpath_overrides_runpath=yes
15566 hardcode_into_libs=yes
15567 if test "$with_gnu_ld" = yes; then
15568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15569 else
15570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15571 case $host_os in
15572 sco3.2v5*)
15573 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15574 ;;
15575 esac
15576 fi
15577 sys_lib_dlsearch_path_spec='/usr/lib'
15578 ;;
15579
15580tpf*)
15581 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15582 version_type=linux
15583 need_lib_prefix=no
15584 need_version=no
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 shlibpath_overrides_runpath=no
15588 hardcode_into_libs=yes
15589 ;;
15590
15591uts4*)
15592 version_type=linux
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 ;;
15597
15598*)
15599 dynamic_linker=no
15600 ;;
15601esac
15602{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15603$as_echo "$dynamic_linker" >&6; }
15604test "$dynamic_linker" = no && can_build_shared=no
15605
15606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15607if test "$GCC" = yes; then
15608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15609fi
15610
15611if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15612 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15613fi
15614if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15615 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15616fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15705$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15706hardcode_action=
15707if test -n "$hardcode_libdir_flag_spec" ||
15708 test -n "$runpath_var" ||
15709 test "X$hardcode_automatic" = "Xyes" ; then
15710
15711 # We can hardcode non-existent directories.
15712 if test "$hardcode_direct" != no &&
15713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15714 # have to relink, otherwise we might link with an installed library
15715 # when we should be linking with a yet-to-be-installed one
15716 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15717 test "$hardcode_minus_L" != no; then
15718 # Linking always hardcodes the temporary library directory.
15719 hardcode_action=relink
15720 else
15721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15722 hardcode_action=immediate
15723 fi
15724else
15725 # We cannot hardcode anything, or else we can only hardcode existing
15726 # directories.
15727 hardcode_action=unsupported
15728fi
15729{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
15730$as_echo "$hardcode_action" >&6; }
15731
15732if test "$hardcode_action" = relink ||
15733 test "$inherit_rpath" = yes; then
15734 # Fast installation is not supported
15735 enable_fast_install=no
15736elif test "$shlibpath_overrides_runpath" = yes ||
15737 test "$enable_shared" = no; then
15738 # Fast installation is not necessary
15739 enable_fast_install=needless
15740fi
15741
15742
15743
15744
15745
15746
15747 if test "x$enable_dlopen" != xyes; then
15748 enable_dlopen=unknown
15749 enable_dlopen_self=unknown
15750 enable_dlopen_self_static=unknown
15751else
15752 lt_cv_dlopen=no
15753 lt_cv_dlopen_libs=
15754
15755 case $host_os in
15756 beos*)
15757 lt_cv_dlopen="load_add_on"
15758 lt_cv_dlopen_libs=
15759 lt_cv_dlopen_self=yes
15760 ;;
15761
15762 mingw* | pw32* | cegcc*)
15763 lt_cv_dlopen="LoadLibrary"
15764 lt_cv_dlopen_libs=
15765 ;;
15766
15767 cygwin*)
15768 lt_cv_dlopen="dlopen"
15769 lt_cv_dlopen_libs=
15770 ;;
15771
15772 darwin*)
15773 # if libdl is installed we need to link against it
15774 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15775$as_echo_n "checking for dlopen in -ldl... " >&6; }
15776if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15777 $as_echo_n "(cached) " >&6
15778else
15779 ac_check_lib_save_LIBS=$LIBS
15780LIBS="-ldl $LIBS"
15781cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787
15788/* Override any GCC internal prototype to avoid an error.
15789 Use char because int might match the return type of a GCC
15790 builtin and then its argument prototype would still apply. */
15791#ifdef __cplusplus
15792extern "C"
15793#endif
15794char dlopen ();
15795int
15796main ()
15797{
15798return dlopen ();
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext conftest$ac_exeext
15804if { (ac_try="$ac_link"
15805case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15810$as_echo "$ac_try_echo") >&5
15811 (eval "$ac_link") 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } && {
15818 test -z "$ac_c_werror_flag" ||
15819 test ! -s conftest.err
15820 } && test -s conftest$ac_exeext && {
15821 test "$cross_compiling" = yes ||
15822 $as_test_x conftest$ac_exeext
15823 }; then
15824 ac_cv_lib_dl_dlopen=yes
15825else
15826 $as_echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_lib_dl_dlopen=no
15830fi
15831
15832rm -rf conftest.dSYM
15833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15834 conftest$ac_exeext conftest.$ac_ext
15835LIBS=$ac_check_lib_save_LIBS
15836fi
15837{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15838$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15839if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15841else
15842
15843 lt_cv_dlopen="dyld"
15844 lt_cv_dlopen_libs=
15845 lt_cv_dlopen_self=yes
15846
15847fi
15848
15849 ;;
15850
15851 *)
15852 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15853$as_echo_n "checking for shl_load... " >&6; }
15854if test "${ac_cv_func_shl_load+set}" = set; then
15855 $as_echo_n "(cached) " >&6
15856else
15857 cat >conftest.$ac_ext <<_ACEOF
15858/* confdefs.h. */
15859_ACEOF
15860cat confdefs.h >>conftest.$ac_ext
15861cat >>conftest.$ac_ext <<_ACEOF
15862/* end confdefs.h. */
15863/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15865#define shl_load innocuous_shl_load
15866
15867/* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char shl_load (); below.
15869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870 <limits.h> exists even on freestanding compilers. */
15871
15872#ifdef __STDC__
15873# include <limits.h>
15874#else
15875# include <assert.h>
15876#endif
15877
15878#undef shl_load
15879
15880/* Override any GCC internal prototype to avoid an error.
15881 Use char because int might match the return type of a GCC
15882 builtin and then its argument prototype would still apply. */
15883#ifdef __cplusplus
15884extern "C"
15885#endif
15886char shl_load ();
15887/* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890#if defined __stub_shl_load || defined __stub___shl_load
15891choke me
15892#endif
15893
15894int
15895main ()
15896{
15897return shl_load ();
15898 ;
15899 return 0;
15900}
15901_ACEOF
15902rm -f conftest.$ac_objext conftest$ac_exeext
15903if { (ac_try="$ac_link"
15904case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15907esac
15908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909$as_echo "$ac_try_echo") >&5
15910 (eval "$ac_link") 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } && {
15917 test -z "$ac_c_werror_flag" ||
15918 test ! -s conftest.err
15919 } && test -s conftest$ac_exeext && {
15920 test "$cross_compiling" = yes ||
15921 $as_test_x conftest$ac_exeext
15922 }; then
15923 ac_cv_func_shl_load=yes
15924else
15925 $as_echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 ac_cv_func_shl_load=no
15929fi
15930
15931rm -rf conftest.dSYM
15932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15933 conftest$ac_exeext conftest.$ac_ext
15934fi
15935{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15936$as_echo "$ac_cv_func_shl_load" >&6; }
15937if test "x$ac_cv_func_shl_load" = x""yes; then
15938 lt_cv_dlopen="shl_load"
15939else
15940 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15941$as_echo_n "checking for shl_load in -ldld... " >&6; }
15942if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15943 $as_echo_n "(cached) " >&6
15944else
15945 ac_check_lib_save_LIBS=$LIBS
15946LIBS="-ldld $LIBS"
15947cat >conftest.$ac_ext <<_ACEOF
15948/* confdefs.h. */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h. */
15953
15954/* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15957#ifdef __cplusplus
15958extern "C"
15959#endif
15960char shl_load ();
15961int
15962main ()
15963{
15964return shl_load ();
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest.$ac_objext conftest$ac_exeext
15970if { (ac_try="$ac_link"
15971case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974esac
15975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976$as_echo "$ac_try_echo") >&5
15977 (eval "$ac_link") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && {
15984 test -z "$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 } && test -s conftest$ac_exeext && {
15987 test "$cross_compiling" = yes ||
15988 $as_test_x conftest$ac_exeext
15989 }; then
15990 ac_cv_lib_dld_shl_load=yes
15991else
15992 $as_echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995 ac_cv_lib_dld_shl_load=no
15996fi
15997
15998rm -rf conftest.dSYM
15999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16000 conftest$ac_exeext conftest.$ac_ext
16001LIBS=$ac_check_lib_save_LIBS
16002fi
16003{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16004$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16005if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
16006 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16007else
16008 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
16009$as_echo_n "checking for dlopen... " >&6; }
16010if test "${ac_cv_func_dlopen+set}" = set; then
16011 $as_echo_n "(cached) " >&6
16012else
16013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021#define dlopen innocuous_dlopen
16022
16023/* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char dlopen (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16027
16028#ifdef __STDC__
16029# include <limits.h>
16030#else
16031# include <assert.h>
16032#endif
16033
16034#undef dlopen
16035
16036/* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16039#ifdef __cplusplus
16040extern "C"
16041#endif
16042char dlopen ();
16043/* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046#if defined __stub_dlopen || defined __stub___dlopen
16047choke me
16048#endif
16049
16050int
16051main ()
16052{
16053return dlopen ();
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext conftest$ac_exeext
16059if { (ac_try="$ac_link"
16060case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065$as_echo "$ac_try_echo") >&5
16066 (eval "$ac_link") 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest$ac_exeext && {
16076 test "$cross_compiling" = yes ||
16077 $as_test_x conftest$ac_exeext
16078 }; then
16079 ac_cv_func_dlopen=yes
16080else
16081 $as_echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_cv_func_dlopen=no
16085fi
16086
16087rm -rf conftest.dSYM
16088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089 conftest$ac_exeext conftest.$ac_ext
16090fi
16091{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16092$as_echo "$ac_cv_func_dlopen" >&6; }
16093if test "x$ac_cv_func_dlopen" = x""yes; then
16094 lt_cv_dlopen="dlopen"
16095else
16096 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16097$as_echo_n "checking for dlopen in -ldl... " >&6; }
16098if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16099 $as_echo_n "(cached) " >&6
16100else
16101 ac_check_lib_save_LIBS=$LIBS
16102LIBS="-ldl $LIBS"
16103cat >conftest.$ac_ext <<_ACEOF
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109
16110/* Override any GCC internal prototype to avoid an error.
16111 Use char because int might match the return type of a GCC
16112 builtin and then its argument prototype would still apply. */
16113#ifdef __cplusplus
16114extern "C"
16115#endif
16116char dlopen ();
16117int
16118main ()
16119{
16120return dlopen ();
16121 ;
16122 return 0;
16123}
16124_ACEOF
16125rm -f conftest.$ac_objext conftest$ac_exeext
16126if { (ac_try="$ac_link"
16127case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16130esac
16131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16132$as_echo "$ac_try_echo") >&5
16133 (eval "$ac_link") 2>conftest.er1
16134 ac_status=$?
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
16138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext && {
16143 test "$cross_compiling" = yes ||
16144 $as_test_x conftest$ac_exeext
16145 }; then
16146 ac_cv_lib_dl_dlopen=yes
16147else
16148 $as_echo "$as_me: failed program was:" >&5
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
16151 ac_cv_lib_dl_dlopen=no
16152fi
16153
16154rm -rf conftest.dSYM
16155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16156 conftest$ac_exeext conftest.$ac_ext
16157LIBS=$ac_check_lib_save_LIBS
16158fi
16159{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16161if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16163else
16164 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16165$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16166if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16167 $as_echo_n "(cached) " >&6
16168else
16169 ac_check_lib_save_LIBS=$LIBS
16170LIBS="-lsvld $LIBS"
16171cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h. */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h. */
16177
16178/* Override any GCC internal prototype to avoid an error.
16179 Use char because int might match the return type of a GCC
16180 builtin and then its argument prototype would still apply. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
16184char dlopen ();
16185int
16186main ()
16187{
16188return dlopen ();
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext conftest$ac_exeext
16194if { (ac_try="$ac_link"
16195case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198esac
16199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16200$as_echo "$ac_try_echo") >&5
16201 (eval "$ac_link") 2>conftest.er1
16202 ac_status=$?
16203 grep -v '^ *+' conftest.er1 >conftest.err
16204 rm -f conftest.er1
16205 cat conftest.err >&5
16206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } && {
16208 test -z "$ac_c_werror_flag" ||
16209 test ! -s conftest.err
16210 } && test -s conftest$ac_exeext && {
16211 test "$cross_compiling" = yes ||
16212 $as_test_x conftest$ac_exeext
16213 }; then
16214 ac_cv_lib_svld_dlopen=yes
16215else
16216 $as_echo "$as_me: failed program was:" >&5
16217sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_cv_lib_svld_dlopen=no
16220fi
16221
16222rm -rf conftest.dSYM
16223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16224 conftest$ac_exeext conftest.$ac_ext
16225LIBS=$ac_check_lib_save_LIBS
16226fi
16227{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16228$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16229if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
16230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16231else
16232 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16233$as_echo_n "checking for dld_link in -ldld... " >&6; }
16234if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16236else
16237 ac_check_lib_save_LIBS=$LIBS
16238LIBS="-ldld $LIBS"
16239cat >conftest.$ac_ext <<_ACEOF
16240/* confdefs.h. */
16241_ACEOF
16242cat confdefs.h >>conftest.$ac_ext
16243cat >>conftest.$ac_ext <<_ACEOF
16244/* end confdefs.h. */
16245
16246/* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16249#ifdef __cplusplus
16250extern "C"
16251#endif
16252char dld_link ();
16253int
16254main ()
16255{
16256return dld_link ();
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest.$ac_objext conftest$ac_exeext
16262if { (ac_try="$ac_link"
16263case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16266esac
16267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268$as_echo "$ac_try_echo") >&5
16269 (eval "$ac_link") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest$ac_exeext && {
16279 test "$cross_compiling" = yes ||
16280 $as_test_x conftest$ac_exeext
16281 }; then
16282 ac_cv_lib_dld_dld_link=yes
16283else
16284 $as_echo "$as_me: failed program was:" >&5
16285sed 's/^/| /' conftest.$ac_ext >&5
16286
16287 ac_cv_lib_dld_dld_link=no
16288fi
16289
16290rm -rf conftest.dSYM
16291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292 conftest$ac_exeext conftest.$ac_ext
16293LIBS=$ac_check_lib_save_LIBS
16294fi
16295{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16296$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16297if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
16298 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16299fi
16300
16301
16302fi
16303
16304
16305fi
16306
16307
16308fi
16309
16310
16311fi
16312
16313
16314fi
16315
16316 ;;
16317 esac
16318
16319 if test "x$lt_cv_dlopen" != xno; then
16320 enable_dlopen=yes
16321 else
16322 enable_dlopen=no
16323 fi
16324
16325 case $lt_cv_dlopen in
16326 dlopen)
16327 save_CPPFLAGS="$CPPFLAGS"
16328 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16329
16330 save_LDFLAGS="$LDFLAGS"
16331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16332
16333 save_LIBS="$LIBS"
16334 LIBS="$lt_cv_dlopen_libs $LIBS"
16335
16336 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16337$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16338if test "${lt_cv_dlopen_self+set}" = set; then
16339 $as_echo_n "(cached) " >&6
16340else
16341 if test "$cross_compiling" = yes; then :
16342 lt_cv_dlopen_self=cross
16343else
16344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16345 lt_status=$lt_dlunknown
16346 cat > conftest.$ac_ext <<_LT_EOF
cristy736173a2009-09-20 21:18:22 +000016347#line 16347 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016348#include "confdefs.h"
16349
16350#if HAVE_DLFCN_H
16351#include <dlfcn.h>
16352#endif
16353
16354#include <stdio.h>
16355
16356#ifdef RTLD_GLOBAL
16357# define LT_DLGLOBAL RTLD_GLOBAL
16358#else
16359# ifdef DL_GLOBAL
16360# define LT_DLGLOBAL DL_GLOBAL
16361# else
16362# define LT_DLGLOBAL 0
16363# endif
16364#endif
16365
16366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16367 find out it does not work in some platform. */
16368#ifndef LT_DLLAZY_OR_NOW
16369# ifdef RTLD_LAZY
16370# define LT_DLLAZY_OR_NOW RTLD_LAZY
16371# else
16372# ifdef DL_LAZY
16373# define LT_DLLAZY_OR_NOW DL_LAZY
16374# else
16375# ifdef RTLD_NOW
16376# define LT_DLLAZY_OR_NOW RTLD_NOW
16377# else
16378# ifdef DL_NOW
16379# define LT_DLLAZY_OR_NOW DL_NOW
16380# else
16381# define LT_DLLAZY_OR_NOW 0
16382# endif
16383# endif
16384# endif
16385# endif
16386#endif
16387
16388void fnord() { int i=42;}
16389int main ()
16390{
16391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16392 int status = $lt_dlunknown;
16393
16394 if (self)
16395 {
16396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16398 /* dlclose (self); */
16399 }
16400 else
16401 puts (dlerror ());
16402
16403 return status;
16404}
16405_LT_EOF
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16411 (./conftest; exit; ) >&5 2>/dev/null
16412 lt_status=$?
16413 case x$lt_status in
16414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16416 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16417 esac
16418 else :
16419 # compilation failed
16420 lt_cv_dlopen_self=no
16421 fi
16422fi
16423rm -fr conftest*
16424
16425
16426fi
16427{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16428$as_echo "$lt_cv_dlopen_self" >&6; }
16429
16430 if test "x$lt_cv_dlopen_self" = xyes; then
16431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16432 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16433$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16434if test "${lt_cv_dlopen_self_static+set}" = set; then
16435 $as_echo_n "(cached) " >&6
16436else
16437 if test "$cross_compiling" = yes; then :
16438 lt_cv_dlopen_self_static=cross
16439else
16440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16441 lt_status=$lt_dlunknown
16442 cat > conftest.$ac_ext <<_LT_EOF
cristy736173a2009-09-20 21:18:22 +000016443#line 16443 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016444#include "confdefs.h"
16445
16446#if HAVE_DLFCN_H
16447#include <dlfcn.h>
16448#endif
16449
16450#include <stdio.h>
16451
16452#ifdef RTLD_GLOBAL
16453# define LT_DLGLOBAL RTLD_GLOBAL
16454#else
16455# ifdef DL_GLOBAL
16456# define LT_DLGLOBAL DL_GLOBAL
16457# else
16458# define LT_DLGLOBAL 0
16459# endif
16460#endif
16461
16462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16463 find out it does not work in some platform. */
16464#ifndef LT_DLLAZY_OR_NOW
16465# ifdef RTLD_LAZY
16466# define LT_DLLAZY_OR_NOW RTLD_LAZY
16467# else
16468# ifdef DL_LAZY
16469# define LT_DLLAZY_OR_NOW DL_LAZY
16470# else
16471# ifdef RTLD_NOW
16472# define LT_DLLAZY_OR_NOW RTLD_NOW
16473# else
16474# ifdef DL_NOW
16475# define LT_DLLAZY_OR_NOW DL_NOW
16476# else
16477# define LT_DLLAZY_OR_NOW 0
16478# endif
16479# endif
16480# endif
16481# endif
16482#endif
16483
16484void fnord() { int i=42;}
16485int main ()
16486{
16487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16488 int status = $lt_dlunknown;
16489
16490 if (self)
16491 {
16492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16494 /* dlclose (self); */
16495 }
16496 else
16497 puts (dlerror ());
16498
16499 return status;
16500}
16501_LT_EOF
16502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503 (eval $ac_link) 2>&5
16504 ac_status=$?
16505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16507 (./conftest; exit; ) >&5 2>/dev/null
16508 lt_status=$?
16509 case x$lt_status in
16510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16512 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16513 esac
16514 else :
16515 # compilation failed
16516 lt_cv_dlopen_self_static=no
16517 fi
16518fi
16519rm -fr conftest*
16520
16521
16522fi
16523{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16524$as_echo "$lt_cv_dlopen_self_static" >&6; }
16525 fi
16526
16527 CPPFLAGS="$save_CPPFLAGS"
16528 LDFLAGS="$save_LDFLAGS"
16529 LIBS="$save_LIBS"
16530 ;;
16531 esac
16532
16533 case $lt_cv_dlopen_self in
16534 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16535 *) enable_dlopen_self=unknown ;;
16536 esac
16537
16538 case $lt_cv_dlopen_self_static in
16539 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16540 *) enable_dlopen_self_static=unknown ;;
16541 esac
16542fi
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560striplib=
16561old_striplib=
16562{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16563$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16564if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16565 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16566 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16567 { $as_echo "$as_me:$LINENO: result: yes" >&5
16568$as_echo "yes" >&6; }
16569else
16570# FIXME - insert some real tests, host_os isn't really good enough
16571 case $host_os in
16572 darwin*)
16573 if test -n "$STRIP" ; then
16574 striplib="$STRIP -x"
16575 old_striplib="$STRIP -S"
16576 { $as_echo "$as_me:$LINENO: result: yes" >&5
16577$as_echo "yes" >&6; }
16578 else
16579 { $as_echo "$as_me:$LINENO: result: no" >&5
16580$as_echo "no" >&6; }
16581 fi
16582 ;;
16583 *)
16584 { $as_echo "$as_me:$LINENO: result: no" >&5
16585$as_echo "no" >&6; }
16586 ;;
16587 esac
16588fi
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 # Report which library types will actually be built
16602 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16603$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16604 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16605$as_echo "$can_build_shared" >&6; }
16606
16607 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16608$as_echo_n "checking whether to build shared libraries... " >&6; }
16609 test "$can_build_shared" = "no" && enable_shared=no
16610
16611 # On AIX, shared libraries and static libraries use the same namespace, and
16612 # are all built from PIC.
16613 case $host_os in
16614 aix3*)
16615 test "$enable_shared" = yes && enable_static=no
16616 if test -n "$RANLIB"; then
16617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16618 postinstall_cmds='$RANLIB $lib'
16619 fi
16620 ;;
16621
16622 aix[4-9]*)
16623 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16624 test "$enable_shared" = yes && enable_static=no
16625 fi
16626 ;;
16627 esac
16628 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16629$as_echo "$enable_shared" >&6; }
16630
16631 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16632$as_echo_n "checking whether to build static libraries... " >&6; }
16633 # Make sure either enable_shared or enable_static is yes.
16634 test "$enable_shared" = yes || enable_static=yes
16635 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16636$as_echo "$enable_static" >&6; }
16637
16638
16639
16640
16641fi
16642ac_ext=c
16643ac_cpp='$CPP $CPPFLAGS'
16644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647
16648CC="$lt_save_CC"
16649
16650
16651ac_ext=cpp
16652ac_cpp='$CXXCPP $CPPFLAGS'
16653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
16657archive_cmds_need_lc_CXX=no
16658allow_undefined_flag_CXX=
16659always_export_symbols_CXX=no
16660archive_expsym_cmds_CXX=
16661compiler_needs_object_CXX=no
16662export_dynamic_flag_spec_CXX=
16663hardcode_direct_CXX=no
16664hardcode_direct_absolute_CXX=no
16665hardcode_libdir_flag_spec_CXX=
16666hardcode_libdir_flag_spec_ld_CXX=
16667hardcode_libdir_separator_CXX=
16668hardcode_minus_L_CXX=no
16669hardcode_shlibpath_var_CXX=unsupported
16670hardcode_automatic_CXX=no
16671inherit_rpath_CXX=no
16672module_cmds_CXX=
16673module_expsym_cmds_CXX=
16674link_all_deplibs_CXX=unknown
16675old_archive_cmds_CXX=$old_archive_cmds
16676no_undefined_flag_CXX=
16677whole_archive_flag_spec_CXX=
16678enable_shared_with_static_runtimes_CXX=no
16679
16680# Source file extension for C++ test sources.
16681ac_ext=cpp
16682
16683# Object file extension for compiled C++ test sources.
16684objext=o
16685objext_CXX=$objext
16686
16687# No sense in running all these tests if we already determined that
16688# the CXX compiler isn't working. Some variables (like enable_shared)
16689# are currently assumed to apply to all compilers on this platform,
16690# and will be corrupted by setting them based on a non-working compiler.
16691if test "$_lt_caught_CXX_error" != yes; then
16692 # Code to be used in simple compile tests
16693 lt_simple_compile_test_code="int some_variable = 0;"
16694
16695 # Code to be used in simple link tests
16696 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16697
16698 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16699
16700
16701
16702
16703
16704
16705# If no C compiler was specified, use CC.
16706LTCC=${LTCC-"$CC"}
16707
16708# If no C compiler flags were specified, use CFLAGS.
16709LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16710
16711# Allow CC to be a program name with arguments.
16712compiler=$CC
16713
16714
16715 # save warnings/boilerplate of simple test code
16716 ac_outfile=conftest.$ac_objext
16717echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16718eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16719_lt_compiler_boilerplate=`cat conftest.err`
16720$RM conftest*
16721
16722 ac_outfile=conftest.$ac_objext
16723echo "$lt_simple_link_test_code" >conftest.$ac_ext
16724eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16725_lt_linker_boilerplate=`cat conftest.err`
16726$RM -r conftest*
16727
16728
16729 # Allow CC to be a program name with arguments.
16730 lt_save_CC=$CC
16731 lt_save_LD=$LD
16732 lt_save_GCC=$GCC
16733 GCC=$GXX
16734 lt_save_with_gnu_ld=$with_gnu_ld
16735 lt_save_path_LD=$lt_cv_path_LD
16736 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16737 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16738 else
16739 $as_unset lt_cv_prog_gnu_ld
16740 fi
16741 if test -n "${lt_cv_path_LDCXX+set}"; then
16742 lt_cv_path_LD=$lt_cv_path_LDCXX
16743 else
16744 $as_unset lt_cv_path_LD
16745 fi
16746 test -z "${LDCXX+set}" || LD=$LDCXX
16747 CC=${CXX-"c++"}
16748 compiler=$CC
16749 compiler_CXX=$CC
16750 for cc_temp in $compiler""; do
16751 case $cc_temp in
16752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16754 \-*) ;;
16755 *) break;;
16756 esac
16757done
16758cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16759
16760
16761 if test -n "$compiler"; then
16762 # We don't want -fno-exception when compiling C++ code, so set the
16763 # no_builtin_flag separately
16764 if test "$GXX" = yes; then
16765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16766 else
16767 lt_prog_compiler_no_builtin_flag_CXX=
16768 fi
16769
16770 if test "$GXX" = yes; then
16771 # Set up default GNU C++ configuration
16772
16773
16774
16775# Check whether --with-gnu-ld was given.
16776if test "${with_gnu_ld+set}" = set; then
16777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16778else
16779 with_gnu_ld=no
16780fi
16781
16782ac_prog=ld
16783if test "$GCC" = yes; then
16784 # Check if gcc -print-prog-name=ld gives a path.
16785 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16786$as_echo_n "checking for ld used by $CC... " >&6; }
16787 case $host in
16788 *-*-mingw*)
16789 # gcc leaves a trailing carriage return which upsets mingw
16790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16791 *)
16792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16793 esac
16794 case $ac_prog in
16795 # Accept absolute paths.
16796 [\\/]* | ?:[\\/]*)
16797 re_direlt='/[^/][^/]*/\.\./'
16798 # Canonicalize the pathname of ld
16799 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16800 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16801 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16802 done
16803 test -z "$LD" && LD="$ac_prog"
16804 ;;
16805 "")
16806 # If it fails, then pretend we aren't using GCC.
16807 ac_prog=ld
16808 ;;
16809 *)
16810 # If it is relative, then search for the first ld in PATH.
16811 with_gnu_ld=unknown
16812 ;;
16813 esac
16814elif test "$with_gnu_ld" = yes; then
16815 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
16816$as_echo_n "checking for GNU ld... " >&6; }
16817else
16818 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16819$as_echo_n "checking for non-GNU ld... " >&6; }
16820fi
16821if test "${lt_cv_path_LD+set}" = set; then
16822 $as_echo_n "(cached) " >&6
16823else
16824 if test -z "$LD"; then
16825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16826 for ac_dir in $PATH; do
16827 IFS="$lt_save_ifs"
16828 test -z "$ac_dir" && ac_dir=.
16829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16830 lt_cv_path_LD="$ac_dir/$ac_prog"
16831 # Check to see if the program is GNU ld. I'd rather use --version,
16832 # but apparently some variants of GNU ld only accept -v.
16833 # Break only if it was the GNU/non-GNU ld that we prefer.
16834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16835 *GNU* | *'with BFD'*)
16836 test "$with_gnu_ld" != no && break
16837 ;;
16838 *)
16839 test "$with_gnu_ld" != yes && break
16840 ;;
16841 esac
16842 fi
16843 done
16844 IFS="$lt_save_ifs"
16845else
16846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16847fi
16848fi
16849
16850LD="$lt_cv_path_LD"
16851if test -n "$LD"; then
16852 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16853$as_echo "$LD" >&6; }
16854else
16855 { $as_echo "$as_me:$LINENO: result: no" >&5
16856$as_echo "no" >&6; }
16857fi
16858test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16859$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16860 { (exit 1); exit 1; }; }
16861{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16862$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16863if test "${lt_cv_prog_gnu_ld+set}" = set; then
16864 $as_echo_n "(cached) " >&6
16865else
16866 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16867case `$LD -v 2>&1 </dev/null` in
16868*GNU* | *'with BFD'*)
16869 lt_cv_prog_gnu_ld=yes
16870 ;;
16871*)
16872 lt_cv_prog_gnu_ld=no
16873 ;;
16874esac
16875fi
16876{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16877$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16878with_gnu_ld=$lt_cv_prog_gnu_ld
16879
16880
16881
16882
16883
16884
16885
16886 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16887 # archiving commands below assume that GNU ld is being used.
16888 if test "$with_gnu_ld" = yes; then
16889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16890 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16891
16892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16894
16895 # If archive_cmds runs LD, not CC, wlarc should be empty
16896 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16897 # investigate it a little bit more. (MM)
16898 wlarc='${wl}'
16899
16900 # ancient GNU ld didn't support --whole-archive et. al.
16901 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16902 $GREP 'no-whole-archive' > /dev/null; then
16903 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16904 else
16905 whole_archive_flag_spec_CXX=
16906 fi
16907 else
16908 with_gnu_ld=no
16909 wlarc=
16910
16911 # A generic and very simple default shared library creation
16912 # command for GNU C++ for the case where it uses the native
16913 # linker, instead of GNU ld. If possible, this setting should
16914 # overridden to take advantage of the native linker features on
16915 # the platform it is being used on.
16916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16917 fi
16918
16919 # Commands to make compiler produce verbose output that lists
16920 # what "hidden" libraries, object files and flags are used when
16921 # linking a shared library.
16922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16923
16924 else
16925 GXX=no
16926 with_gnu_ld=no
16927 wlarc=
16928 fi
16929
16930 # PORTME: fill in a description of your system's C++ link characteristics
16931 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16932$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16933 ld_shlibs_CXX=yes
16934 case $host_os in
16935 aix3*)
16936 # FIXME: insert proper C++ library support
16937 ld_shlibs_CXX=no
16938 ;;
16939 aix[4-9]*)
16940 if test "$host_cpu" = ia64; then
16941 # On IA64, the linker does run time linking by default, so we don't
16942 # have to do anything special.
16943 aix_use_runtimelinking=no
16944 exp_sym_flag='-Bexport'
16945 no_entry_flag=""
16946 else
16947 aix_use_runtimelinking=no
16948
16949 # Test if we are trying to use run time linking or normal
16950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16951 # need to do runtime linking.
16952 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16953 for ld_flag in $LDFLAGS; do
16954 case $ld_flag in
16955 *-brtl*)
16956 aix_use_runtimelinking=yes
16957 break
16958 ;;
16959 esac
16960 done
16961 ;;
16962 esac
16963
16964 exp_sym_flag='-bexport'
16965 no_entry_flag='-bnoentry'
16966 fi
16967
16968 # When large executables or shared objects are built, AIX ld can
16969 # have problems creating the table of contents. If linking a library
16970 # or program results in "error TOC overflow" add -mminimal-toc to
16971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16973
16974 archive_cmds_CXX=''
16975 hardcode_direct_CXX=yes
16976 hardcode_direct_absolute_CXX=yes
16977 hardcode_libdir_separator_CXX=':'
16978 link_all_deplibs_CXX=yes
16979 file_list_spec_CXX='${wl}-f,'
16980
16981 if test "$GXX" = yes; then
16982 case $host_os in aix4.[012]|aix4.[012].*)
16983 # We only want to do this on AIX 4.2 and lower, the check
16984 # below for broken collect2 doesn't work under 4.3+
16985 collect2name=`${CC} -print-prog-name=collect2`
16986 if test -f "$collect2name" &&
16987 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16988 then
16989 # We have reworked collect2
16990 :
16991 else
16992 # We have old collect2
16993 hardcode_direct_CXX=unsupported
16994 # It fails to find uninstalled libraries when the uninstalled
16995 # path is not listed in the libpath. Setting hardcode_minus_L
16996 # to unsupported forces relinking
16997 hardcode_minus_L_CXX=yes
16998 hardcode_libdir_flag_spec_CXX='-L$libdir'
16999 hardcode_libdir_separator_CXX=
17000 fi
17001 esac
17002 shared_flag='-shared'
17003 if test "$aix_use_runtimelinking" = yes; then
17004 shared_flag="$shared_flag "'${wl}-G'
17005 fi
17006 else
17007 # not using gcc
17008 if test "$host_cpu" = ia64; then
17009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17010 # chokes on -Wl,-G. The following line is correct:
17011 shared_flag='-G'
17012 else
17013 if test "$aix_use_runtimelinking" = yes; then
17014 shared_flag='${wl}-G'
17015 else
17016 shared_flag='${wl}-bM:SRE'
17017 fi
17018 fi
17019 fi
17020
17021 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17022 # It seems that -bexpall does not export symbols beginning with
17023 # underscore (_), so it is better to generate a list of symbols to
17024 # export.
17025 always_export_symbols_CXX=yes
17026 if test "$aix_use_runtimelinking" = yes; then
17027 # Warning - without using the other runtime loading flags (-brtl),
17028 # -berok will link without error, but may produce a broken library.
17029 allow_undefined_flag_CXX='-berok'
17030 # Determine the default libpath from the value encoded in an empty
17031 # executable.
17032 cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038
17039int
17040main ()
17041{
17042
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext conftest$ac_exeext
17048if { (ac_try="$ac_link"
17049case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17054$as_echo "$ac_try_echo") >&5
17055 (eval "$ac_link") 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_cxx_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest$ac_exeext && {
17065 test "$cross_compiling" = yes ||
17066 $as_test_x conftest$ac_exeext
17067 }; then
17068
17069lt_aix_libpath_sed='
17070 /Import File Strings/,/^$/ {
17071 /^0/ {
17072 s/^0 *\(.*\)$/\1/
17073 p
17074 }
17075 }'
17076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17077# Check for a 64-bit object if we didn't find anything.
17078if test -z "$aix_libpath"; then
17079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17080fi
17081else
17082 $as_echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085
17086fi
17087
17088rm -rf conftest.dSYM
17089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
17091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17092
17093 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17094
17095 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17096 else
17097 if test "$host_cpu" = ia64; then
17098 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17099 allow_undefined_flag_CXX="-z nodefs"
17100 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17101 else
17102 # Determine the default libpath from the value encoded in an
17103 # empty executable.
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110
17111int
17112main ()
17113{
17114
17115 ;
17116 return 0;
17117}
17118_ACEOF
17119rm -f conftest.$ac_objext conftest$ac_exeext
17120if { (ac_try="$ac_link"
17121case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124esac
17125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17126$as_echo "$ac_try_echo") >&5
17127 (eval "$ac_link") 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_cxx_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext && {
17137 test "$cross_compiling" = yes ||
17138 $as_test_x conftest$ac_exeext
17139 }; then
17140
17141lt_aix_libpath_sed='
17142 /Import File Strings/,/^$/ {
17143 /^0/ {
17144 s/^0 *\(.*\)$/\1/
17145 p
17146 }
17147 }'
17148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149# Check for a 64-bit object if we didn't find anything.
17150if test -z "$aix_libpath"; then
17151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17152fi
17153else
17154 $as_echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157
17158fi
17159
17160rm -rf conftest.dSYM
17161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17162 conftest$ac_exeext conftest.$ac_ext
17163if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17164
17165 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17166 # Warning - without using the other run time loading flags,
17167 # -berok will link without error, but may produce a broken library.
17168 no_undefined_flag_CXX=' ${wl}-bernotok'
17169 allow_undefined_flag_CXX=' ${wl}-berok'
17170 # Exported symbols can be pulled into shared objects from archives
17171 whole_archive_flag_spec_CXX='$convenience'
17172 archive_cmds_need_lc_CXX=yes
17173 # This is similar to how AIX traditionally builds its shared
17174 # libraries.
17175 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17176 fi
17177 fi
17178 ;;
17179
17180 beos*)
17181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17182 allow_undefined_flag_CXX=unsupported
17183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17184 # support --undefined. This deserves some investigation. FIXME
17185 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17186 else
17187 ld_shlibs_CXX=no
17188 fi
17189 ;;
17190
17191 chorus*)
17192 case $cc_basename in
17193 *)
17194 # FIXME: insert proper C++ library support
17195 ld_shlibs_CXX=no
17196 ;;
17197 esac
17198 ;;
17199
17200 cygwin* | mingw* | pw32* | cegcc*)
17201 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17202 # as there is no search path for DLLs.
17203 hardcode_libdir_flag_spec_CXX='-L$libdir'
17204 allow_undefined_flag_CXX=unsupported
17205 always_export_symbols_CXX=no
17206 enable_shared_with_static_runtimes_CXX=yes
17207
17208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17209 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17210 # If the export-symbols file already is a .def file (1st line
17211 # is EXPORTS), use it as is; otherwise, prepend...
17212 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17213 cp $export_symbols $output_objdir/$soname.def;
17214 else
17215 echo EXPORTS > $output_objdir/$soname.def;
17216 cat $export_symbols >> $output_objdir/$soname.def;
17217 fi~
17218 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17219 else
17220 ld_shlibs_CXX=no
17221 fi
17222 ;;
17223 darwin* | rhapsody*)
17224
17225
17226 archive_cmds_need_lc_CXX=no
17227 hardcode_direct_CXX=no
17228 hardcode_automatic_CXX=yes
17229 hardcode_shlibpath_var_CXX=unsupported
17230 whole_archive_flag_spec_CXX=''
17231 link_all_deplibs_CXX=yes
17232 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17233 case $cc_basename in
17234 ifort*) _lt_dar_can_shared=yes ;;
17235 *) _lt_dar_can_shared=$GCC ;;
17236 esac
17237 if test "$_lt_dar_can_shared" = "yes"; then
17238 output_verbose_link_cmd=echo
17239 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17240 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17241 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17242 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17243 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17244 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
17245 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
17246 fi
17247
17248 else
17249 ld_shlibs_CXX=no
17250 fi
17251
17252 ;;
17253
17254 dgux*)
17255 case $cc_basename in
17256 ec++*)
17257 # FIXME: insert proper C++ library support
17258 ld_shlibs_CXX=no
17259 ;;
17260 ghcx*)
17261 # Green Hills C++ Compiler
17262 # FIXME: insert proper C++ library support
17263 ld_shlibs_CXX=no
17264 ;;
17265 *)
17266 # FIXME: insert proper C++ library support
17267 ld_shlibs_CXX=no
17268 ;;
17269 esac
17270 ;;
17271
17272 freebsd[12]*)
17273 # C++ shared libraries reported to be fairly broken before
17274 # switch to ELF
17275 ld_shlibs_CXX=no
17276 ;;
17277
17278 freebsd-elf*)
17279 archive_cmds_need_lc_CXX=no
17280 ;;
17281
17282 freebsd* | dragonfly*)
17283 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17284 # conventions
17285 ld_shlibs_CXX=yes
17286 ;;
17287
17288 gnu*)
17289 ;;
17290
17291 hpux9*)
17292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17293 hardcode_libdir_separator_CXX=:
17294 export_dynamic_flag_spec_CXX='${wl}-E'
17295 hardcode_direct_CXX=yes
17296 hardcode_minus_L_CXX=yes # Not in the search PATH,
17297 # but as the default
17298 # location of the library.
17299
17300 case $cc_basename in
17301 CC*)
17302 # FIXME: insert proper C++ library support
17303 ld_shlibs_CXX=no
17304 ;;
17305 aCC*)
17306 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17307 # Commands to make compiler produce verbose output that lists
17308 # what "hidden" libraries, object files and flags are used when
17309 # linking a shared library.
17310 #
17311 # There doesn't appear to be a way to prevent this compiler from
17312 # explicitly linking system object files so we need to strip them
17313 # from the output so that they don't get included in the library
17314 # dependencies.
17315 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17316 ;;
17317 *)
17318 if test "$GXX" = yes; then
17319 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17320 else
17321 # FIXME: insert proper C++ library support
17322 ld_shlibs_CXX=no
17323 fi
17324 ;;
17325 esac
17326 ;;
17327
17328 hpux10*|hpux11*)
17329 if test $with_gnu_ld = no; then
17330 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17331 hardcode_libdir_separator_CXX=:
17332
17333 case $host_cpu in
17334 hppa*64*|ia64*)
17335 ;;
17336 *)
17337 export_dynamic_flag_spec_CXX='${wl}-E'
17338 ;;
17339 esac
17340 fi
17341 case $host_cpu in
17342 hppa*64*|ia64*)
17343 hardcode_direct_CXX=no
17344 hardcode_shlibpath_var_CXX=no
17345 ;;
17346 *)
17347 hardcode_direct_CXX=yes
17348 hardcode_direct_absolute_CXX=yes
17349 hardcode_minus_L_CXX=yes # Not in the search PATH,
17350 # but as the default
17351 # location of the library.
17352 ;;
17353 esac
17354
17355 case $cc_basename in
17356 CC*)
17357 # FIXME: insert proper C++ library support
17358 ld_shlibs_CXX=no
17359 ;;
17360 aCC*)
17361 case $host_cpu in
17362 hppa*64*)
17363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17364 ;;
17365 ia64*)
17366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17367 ;;
17368 *)
17369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17370 ;;
17371 esac
17372 # Commands to make compiler produce verbose output that lists
17373 # what "hidden" libraries, object files and flags are used when
17374 # linking a shared library.
17375 #
17376 # There doesn't appear to be a way to prevent this compiler from
17377 # explicitly linking system object files so we need to strip them
17378 # from the output so that they don't get included in the library
17379 # dependencies.
17380 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17381 ;;
17382 *)
17383 if test "$GXX" = yes; then
17384 if test $with_gnu_ld = no; then
17385 case $host_cpu in
17386 hppa*64*)
17387 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17388 ;;
17389 ia64*)
17390 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17391 ;;
17392 *)
17393 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17394 ;;
17395 esac
17396 fi
17397 else
17398 # FIXME: insert proper C++ library support
17399 ld_shlibs_CXX=no
17400 fi
17401 ;;
17402 esac
17403 ;;
17404
17405 interix[3-9]*)
17406 hardcode_direct_CXX=no
17407 hardcode_shlibpath_var_CXX=no
17408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17409 export_dynamic_flag_spec_CXX='${wl}-E'
17410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17411 # Instead, shared libraries are loaded at an image base (0x10000000 by
17412 # default) and relocated if they conflict, which is a slow very memory
17413 # consuming and fragmenting process. To avoid this, we pick a random,
17414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17416 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17417 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17418 ;;
17419 irix5* | irix6*)
17420 case $cc_basename in
17421 CC*)
17422 # SGI C++
17423 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17424
17425 # Archives containing C++ object files must be created using
17426 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17427 # necessary to make sure instantiated templates are included
17428 # in the archive.
17429 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17430 ;;
17431 *)
17432 if test "$GXX" = yes; then
17433 if test "$with_gnu_ld" = no; then
17434 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17435 else
17436 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
17437 fi
17438 fi
17439 link_all_deplibs_CXX=yes
17440 ;;
17441 esac
17442 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17443 hardcode_libdir_separator_CXX=:
17444 inherit_rpath_CXX=yes
17445 ;;
17446
17447 linux* | k*bsd*-gnu)
17448 case $cc_basename in
17449 KCC*)
17450 # Kuck and Associates, Inc. (KAI) C++ Compiler
17451
17452 # KCC will only create a shared library if the output file
17453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17454 # to its proper name (with version) after linking.
17455 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17456 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
17457 # Commands to make compiler produce verbose output that lists
17458 # what "hidden" libraries, object files and flags are used when
17459 # linking a shared library.
17460 #
17461 # There doesn't appear to be a way to prevent this compiler from
17462 # explicitly linking system object files so we need to strip them
17463 # from the output so that they don't get included in the library
17464 # dependencies.
17465 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17466
17467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17469
17470 # Archives containing C++ object files must be created using
17471 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17472 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17473 ;;
17474 icpc* | ecpc* )
17475 # Intel C++
17476 with_gnu_ld=yes
17477 # version 8.0 and above of icpc choke on multiply defined symbols
17478 # if we add $predep_objects and $postdep_objects, however 7.1 and
17479 # earlier do not add the objects themselves.
17480 case `$CC -V 2>&1` in
17481 *"Version 7."*)
17482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17484 ;;
17485 *) # Version 8.0 or newer
17486 tmp_idyn=
17487 case $host_cpu in
17488 ia64*) tmp_idyn=' -i_dynamic';;
17489 esac
17490 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17492 ;;
17493 esac
17494 archive_cmds_need_lc_CXX=no
17495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17498 ;;
17499 pgCC* | pgcpp*)
17500 # Portland Group C++ compiler
17501 case `$CC -V` in
17502 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17503 prelink_cmds_CXX='tpldir=Template.dir~
17504 rm -rf $tpldir~
17505 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17506 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17507 old_archive_cmds_CXX='tpldir=Template.dir~
17508 rm -rf $tpldir~
17509 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17510 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17511 $RANLIB $oldlib'
17512 archive_cmds_CXX='tpldir=Template.dir~
17513 rm -rf $tpldir~
17514 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17515 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17516 archive_expsym_cmds_CXX='tpldir=Template.dir~
17517 rm -rf $tpldir~
17518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17519 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17520 ;;
17521 *) # Version 6 will use weak symbols
17522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17523 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17524 ;;
17525 esac
17526
17527 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17529 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17530 ;;
17531 cxx*)
17532 # Compaq C++
17533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
17535
17536 runpath_var=LD_RUN_PATH
17537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17538 hardcode_libdir_separator_CXX=:
17539
17540 # Commands to make compiler produce verbose output that lists
17541 # what "hidden" libraries, object files and flags are used when
17542 # linking a shared library.
17543 #
17544 # There doesn't appear to be a way to prevent this compiler from
17545 # explicitly linking system object files so we need to strip them
17546 # from the output so that they don't get included in the library
17547 # dependencies.
17548 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17549 ;;
17550 xl*)
17551 # IBM XL 8.0 on PPC, with GNU ld
17552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17554 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17555 if test "x$supports_anon_versioning" = xyes; then
17556 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17558 echo "local: *; };" >> $output_objdir/$libname.ver~
17559 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17560 fi
17561 ;;
17562 *)
17563 case `$CC -V 2>&1 | sed 5q` in
17564 *Sun\ C*)
17565 # Sun C++ 5.9
17566 no_undefined_flag_CXX=' -zdefs'
17567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17568 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
17569 hardcode_libdir_flag_spec_CXX='-R$libdir'
17570 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17571 compiler_needs_object_CXX=yes
17572
17573 # Not sure whether something based on
17574 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17575 # would be better.
17576 output_verbose_link_cmd='echo'
17577
17578 # Archives containing C++ object files must be created using
17579 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17580 # necessary to make sure instantiated templates are included
17581 # in the archive.
17582 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17583 ;;
17584 esac
17585 ;;
17586 esac
17587 ;;
17588
17589 lynxos*)
17590 # FIXME: insert proper C++ library support
17591 ld_shlibs_CXX=no
17592 ;;
17593
17594 m88k*)
17595 # FIXME: insert proper C++ library support
17596 ld_shlibs_CXX=no
17597 ;;
17598
17599 mvs*)
17600 case $cc_basename in
17601 cxx*)
17602 # FIXME: insert proper C++ library support
17603 ld_shlibs_CXX=no
17604 ;;
17605 *)
17606 # FIXME: insert proper C++ library support
17607 ld_shlibs_CXX=no
17608 ;;
17609 esac
17610 ;;
17611
17612 netbsd*)
17613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17614 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17615 wlarc=
17616 hardcode_libdir_flag_spec_CXX='-R$libdir'
17617 hardcode_direct_CXX=yes
17618 hardcode_shlibpath_var_CXX=no
17619 fi
17620 # Workaround some broken pre-1.5 toolchains
17621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17622 ;;
17623
17624 *nto* | *qnx*)
17625 ld_shlibs_CXX=yes
17626 ;;
17627
17628 openbsd2*)
17629 # C++ shared libraries are fairly broken
17630 ld_shlibs_CXX=no
17631 ;;
17632
17633 openbsd*)
17634 if test -f /usr/libexec/ld.so; then
17635 hardcode_direct_CXX=yes
17636 hardcode_shlibpath_var_CXX=no
17637 hardcode_direct_absolute_CXX=yes
17638 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17641 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17642 export_dynamic_flag_spec_CXX='${wl}-E'
17643 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17644 fi
17645 output_verbose_link_cmd=echo
17646 else
17647 ld_shlibs_CXX=no
17648 fi
17649 ;;
17650
17651 osf3* | osf4* | osf5*)
17652 case $cc_basename in
17653 KCC*)
17654 # Kuck and Associates, Inc. (KAI) C++ Compiler
17655
17656 # KCC will only create a shared library if the output file
17657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17658 # to its proper name (with version) after linking.
17659 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17660
17661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17662 hardcode_libdir_separator_CXX=:
17663
17664 # Archives containing C++ object files must be created using
17665 # the KAI C++ compiler.
17666 case $host in
17667 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17668 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17669 esac
17670 ;;
17671 RCC*)
17672 # Rational C++ 2.4.1
17673 # FIXME: insert proper C++ library support
17674 ld_shlibs_CXX=no
17675 ;;
17676 cxx*)
17677 case $host in
17678 osf3*)
17679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17680 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17682 ;;
17683 *)
17684 allow_undefined_flag_CXX=' -expect_unresolved \*'
17685 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17686 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17687 echo "-hidden">> $lib.exp~
17688 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
17689 $RM $lib.exp'
17690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17691 ;;
17692 esac
17693
17694 hardcode_libdir_separator_CXX=:
17695
17696 # Commands to make compiler produce verbose output that lists
17697 # what "hidden" libraries, object files and flags are used when
17698 # linking a shared library.
17699 #
17700 # There doesn't appear to be a way to prevent this compiler from
17701 # explicitly linking system object files so we need to strip them
17702 # from the output so that they don't get included in the library
17703 # dependencies.
17704 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17705 ;;
17706 *)
17707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17709 case $host in
17710 osf3*)
17711 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17712 ;;
17713 *)
17714 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17715 ;;
17716 esac
17717
17718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17719 hardcode_libdir_separator_CXX=:
17720
17721 # Commands to make compiler produce verbose output that lists
17722 # what "hidden" libraries, object files and flags are used when
17723 # linking a shared library.
17724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17725
17726 else
17727 # FIXME: insert proper C++ library support
17728 ld_shlibs_CXX=no
17729 fi
17730 ;;
17731 esac
17732 ;;
17733
17734 psos*)
17735 # FIXME: insert proper C++ library support
17736 ld_shlibs_CXX=no
17737 ;;
17738
17739 sunos4*)
17740 case $cc_basename in
17741 CC*)
17742 # Sun C++ 4.x
17743 # FIXME: insert proper C++ library support
17744 ld_shlibs_CXX=no
17745 ;;
17746 lcc*)
17747 # Lucid
17748 # FIXME: insert proper C++ library support
17749 ld_shlibs_CXX=no
17750 ;;
17751 *)
17752 # FIXME: insert proper C++ library support
17753 ld_shlibs_CXX=no
17754 ;;
17755 esac
17756 ;;
17757
17758 solaris*)
17759 case $cc_basename in
17760 CC*)
17761 # Sun C++ 4.2, 5.x and Centerline C++
17762 archive_cmds_need_lc_CXX=yes
17763 no_undefined_flag_CXX=' -zdefs'
17764 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17766 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17767
17768 hardcode_libdir_flag_spec_CXX='-R$libdir'
17769 hardcode_shlibpath_var_CXX=no
17770 case $host_os in
17771 solaris2.[0-5] | solaris2.[0-5].*) ;;
17772 *)
17773 # The compiler driver will combine and reorder linker options,
17774 # but understands `-z linker_flag'.
17775 # Supported since Solaris 2.6 (maybe 2.5.1?)
17776 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17777 ;;
17778 esac
17779 link_all_deplibs_CXX=yes
17780
17781 output_verbose_link_cmd='echo'
17782
17783 # Archives containing C++ object files must be created using
17784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17785 # necessary to make sure instantiated templates are included
17786 # in the archive.
17787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17788 ;;
17789 gcx*)
17790 # Green Hills C++ Compiler
17791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17792
17793 # The C++ compiler must be used to create the archive.
17794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17795 ;;
17796 *)
17797 # GNU C++ compiler with Solaris linker
17798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17800 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17801 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17802 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17803 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17804
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
17808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17809 else
17810 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17811 # platform.
17812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17813 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17815
17816 # Commands to make compiler produce verbose output that lists
17817 # what "hidden" libraries, object files and flags are used when
17818 # linking a shared library.
17819 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17820 fi
17821
17822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17823 case $host_os in
17824 solaris2.[0-5] | solaris2.[0-5].*) ;;
17825 *)
17826 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17827 ;;
17828 esac
17829 fi
17830 ;;
17831 esac
17832 ;;
17833
17834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17835 no_undefined_flag_CXX='${wl}-z,text'
17836 archive_cmds_need_lc_CXX=no
17837 hardcode_shlibpath_var_CXX=no
17838 runpath_var='LD_RUN_PATH'
17839
17840 case $cc_basename in
17841 CC*)
17842 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 ;;
17845 *)
17846 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 ;;
17849 esac
17850 ;;
17851
17852 sysv5* | sco3.2v5* | sco5v6*)
17853 # Note: We can NOT use -z defs as we might desire, because we do not
17854 # link with -lc, and that would cause any symbols used from libc to
17855 # always be unresolved, which means just about no library would
17856 # ever link correctly. If we're not using GNU ld we use -z text
17857 # though, which does catch some bad symbols but isn't as heavy-handed
17858 # as -z defs.
17859 no_undefined_flag_CXX='${wl}-z,text'
17860 allow_undefined_flag_CXX='${wl}-z,nodefs'
17861 archive_cmds_need_lc_CXX=no
17862 hardcode_shlibpath_var_CXX=no
17863 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17864 hardcode_libdir_separator_CXX=':'
17865 link_all_deplibs_CXX=yes
17866 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17867 runpath_var='LD_RUN_PATH'
17868
17869 case $cc_basename in
17870 CC*)
17871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 ;;
17874 *)
17875 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17876 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17877 ;;
17878 esac
17879 ;;
17880
17881 tandem*)
17882 case $cc_basename in
17883 NCC*)
17884 # NonStop-UX NCC 3.20
17885 # FIXME: insert proper C++ library support
17886 ld_shlibs_CXX=no
17887 ;;
17888 *)
17889 # FIXME: insert proper C++ library support
17890 ld_shlibs_CXX=no
17891 ;;
17892 esac
17893 ;;
17894
17895 vxworks*)
17896 # FIXME: insert proper C++ library support
17897 ld_shlibs_CXX=no
17898 ;;
17899
17900 *)
17901 # FIXME: insert proper C++ library support
17902 ld_shlibs_CXX=no
17903 ;;
17904 esac
17905
17906 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17907$as_echo "$ld_shlibs_CXX" >&6; }
17908 test "$ld_shlibs_CXX" = no && can_build_shared=no
17909
17910 GCC_CXX="$GXX"
17911 LD_CXX="$LD"
17912
17913 ## CAVEAT EMPTOR:
17914 ## There is no encapsulation within the following macros, do not change
17915 ## the running order or otherwise move them around unless you know exactly
17916 ## what you are doing...
17917 # Dependencies to place before and after the object being linked:
17918predep_objects_CXX=
17919postdep_objects_CXX=
17920predeps_CXX=
17921postdeps_CXX=
17922compiler_lib_search_path_CXX=
17923
17924cat > conftest.$ac_ext <<_LT_EOF
17925class Foo
17926{
17927public:
17928 Foo (void) { a = 0; }
17929private:
17930 int a;
17931};
17932_LT_EOF
17933
17934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; then
17939 # Parse the compiler output and extract the necessary
17940 # objects, libraries and library flags.
17941
17942 # Sentinel used to keep track of whether or not we are before
17943 # the conftest object file.
17944 pre_test_object_deps_done=no
17945
17946 for p in `eval "$output_verbose_link_cmd"`; do
17947 case $p in
17948
17949 -L* | -R* | -l*)
17950 # Some compilers place space between "-{L,R}" and the path.
17951 # Remove the space.
17952 if test $p = "-L" ||
17953 test $p = "-R"; then
17954 prev=$p
17955 continue
17956 else
17957 prev=
17958 fi
17959
17960 if test "$pre_test_object_deps_done" = no; then
17961 case $p in
17962 -L* | -R*)
17963 # Internal compiler library paths should come after those
17964 # provided the user. The postdeps already come after the
17965 # user supplied libs so there is no need to process them.
17966 if test -z "$compiler_lib_search_path_CXX"; then
17967 compiler_lib_search_path_CXX="${prev}${p}"
17968 else
17969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17970 fi
17971 ;;
17972 # The "-l" case would never come before the object being
17973 # linked, so don't bother handling this case.
17974 esac
17975 else
17976 if test -z "$postdeps_CXX"; then
17977 postdeps_CXX="${prev}${p}"
17978 else
17979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17980 fi
17981 fi
17982 ;;
17983
17984 *.$objext)
17985 # This assumes that the test object file only shows up
17986 # once in the compiler output.
17987 if test "$p" = "conftest.$objext"; then
17988 pre_test_object_deps_done=yes
17989 continue
17990 fi
17991
17992 if test "$pre_test_object_deps_done" = no; then
17993 if test -z "$predep_objects_CXX"; then
17994 predep_objects_CXX="$p"
17995 else
17996 predep_objects_CXX="$predep_objects_CXX $p"
17997 fi
17998 else
17999 if test -z "$postdep_objects_CXX"; then
18000 postdep_objects_CXX="$p"
18001 else
18002 postdep_objects_CXX="$postdep_objects_CXX $p"
18003 fi
18004 fi
18005 ;;
18006
18007 *) ;; # Ignore the rest.
18008
18009 esac
18010 done
18011
18012 # Clean up.
18013 rm -f a.out a.exe
18014else
18015 echo "libtool.m4: error: problem compiling CXX test program"
18016fi
18017
18018$RM -f confest.$objext
18019
18020# PORTME: override above test on systems where it is broken
18021case $host_os in
18022interix[3-9]*)
18023 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18024 # hack all around it, let's just trust "g++" to DTRT.
18025 predep_objects_CXX=
18026 postdep_objects_CXX=
18027 postdeps_CXX=
18028 ;;
18029
18030linux*)
18031 case `$CC -V 2>&1 | sed 5q` in
18032 *Sun\ C*)
18033 # Sun C++ 5.9
18034
18035 # The more standards-conforming stlport4 library is
18036 # incompatible with the Cstd library. Avoid specifying
18037 # it if it's in CXXFLAGS. Ignore libCrun as
18038 # -library=stlport4 depends on it.
18039 case " $CXX $CXXFLAGS " in
18040 *" -library=stlport4 "*)
18041 solaris_use_stlport4=yes
18042 ;;
18043 esac
18044
18045 if test "$solaris_use_stlport4" != yes; then
18046 postdeps_CXX='-library=Cstd -library=Crun'
18047 fi
18048 ;;
18049 esac
18050 ;;
18051
18052solaris*)
18053 case $cc_basename in
18054 CC*)
18055 # The more standards-conforming stlport4 library is
18056 # incompatible with the Cstd library. Avoid specifying
18057 # it if it's in CXXFLAGS. Ignore libCrun as
18058 # -library=stlport4 depends on it.
18059 case " $CXX $CXXFLAGS " in
18060 *" -library=stlport4 "*)
18061 solaris_use_stlport4=yes
18062 ;;
18063 esac
18064
18065 # Adding this requires a known-good setup of shared libraries for
18066 # Sun compiler versions before 5.6, else PIC objects from an old
18067 # archive will be linked into the output, leading to subtle bugs.
18068 if test "$solaris_use_stlport4" != yes; then
18069 postdeps_CXX='-library=Cstd -library=Crun'
18070 fi
18071 ;;
18072 esac
18073 ;;
18074esac
18075
18076
18077case " $postdeps_CXX " in
18078*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18079esac
18080 compiler_lib_search_dirs_CXX=
18081if test -n "${compiler_lib_search_path_CXX}"; then
18082 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18083fi
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115 lt_prog_compiler_wl_CXX=
18116lt_prog_compiler_pic_CXX=
18117lt_prog_compiler_static_CXX=
18118
18119{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18120$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18121
18122 # C++ specific cases for pic, static, wl, etc.
18123 if test "$GXX" = yes; then
18124 lt_prog_compiler_wl_CXX='-Wl,'
18125 lt_prog_compiler_static_CXX='-static'
18126
18127 case $host_os in
18128 aix*)
18129 # All AIX code is PIC.
18130 if test "$host_cpu" = ia64; then
18131 # AIX 5 now supports IA64 processor
18132 lt_prog_compiler_static_CXX='-Bstatic'
18133 fi
18134 ;;
18135
18136 amigaos*)
18137 case $host_cpu in
18138 powerpc)
18139 # see comment about AmigaOS4 .so support
18140 lt_prog_compiler_pic_CXX='-fPIC'
18141 ;;
18142 m68k)
18143 # FIXME: we need at least 68020 code to build shared libraries, but
18144 # adding the `-m68020' flag to GCC prevents building anything better,
18145 # like `-m68040'.
18146 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18147 ;;
18148 esac
18149 ;;
18150
18151 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18152 # PIC is the default for these OSes.
18153 ;;
18154 mingw* | cygwin* | os2* | pw32* | cegcc*)
18155 # This hack is so that the source file can tell whether it is being
18156 # built for inclusion in a dll (and should export symbols for example).
18157 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18158 # (--disable-auto-import) libraries
18159 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18160 ;;
18161 darwin* | rhapsody*)
18162 # PIC is the default on this platform
18163 # Common symbols not allowed in MH_DYLIB files
18164 lt_prog_compiler_pic_CXX='-fno-common'
18165 ;;
18166 *djgpp*)
18167 # DJGPP does not support shared libraries at all
18168 lt_prog_compiler_pic_CXX=
18169 ;;
18170 interix[3-9]*)
18171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18172 # Instead, we relocate shared libraries at runtime.
18173 ;;
18174 sysv4*MP*)
18175 if test -d /usr/nec; then
18176 lt_prog_compiler_pic_CXX=-Kconform_pic
18177 fi
18178 ;;
18179 hpux*)
18180 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18181 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18182 # sets the default TLS model and affects inlining.
18183 case $host_cpu in
18184 hppa*64*)
18185 ;;
18186 *)
18187 lt_prog_compiler_pic_CXX='-fPIC'
18188 ;;
18189 esac
18190 ;;
18191 *qnx* | *nto*)
18192 # QNX uses GNU C++, but need to define -shared option too, otherwise
18193 # it will coredump.
18194 lt_prog_compiler_pic_CXX='-fPIC -shared'
18195 ;;
18196 *)
18197 lt_prog_compiler_pic_CXX='-fPIC'
18198 ;;
18199 esac
18200 else
18201 case $host_os in
18202 aix[4-9]*)
18203 # All AIX code is PIC.
18204 if test "$host_cpu" = ia64; then
18205 # AIX 5 now supports IA64 processor
18206 lt_prog_compiler_static_CXX='-Bstatic'
18207 else
18208 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18209 fi
18210 ;;
18211 chorus*)
18212 case $cc_basename in
18213 cxch68*)
18214 # Green Hills C++ Compiler
18215 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18216 ;;
18217 esac
18218 ;;
18219 dgux*)
18220 case $cc_basename in
18221 ec++*)
18222 lt_prog_compiler_pic_CXX='-KPIC'
18223 ;;
18224 ghcx*)
18225 # Green Hills C++ Compiler
18226 lt_prog_compiler_pic_CXX='-pic'
18227 ;;
18228 *)
18229 ;;
18230 esac
18231 ;;
18232 freebsd* | dragonfly*)
18233 # FreeBSD uses GNU C++
18234 ;;
18235 hpux9* | hpux10* | hpux11*)
18236 case $cc_basename in
18237 CC*)
18238 lt_prog_compiler_wl_CXX='-Wl,'
18239 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18240 if test "$host_cpu" != ia64; then
18241 lt_prog_compiler_pic_CXX='+Z'
18242 fi
18243 ;;
18244 aCC*)
18245 lt_prog_compiler_wl_CXX='-Wl,'
18246 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18247 case $host_cpu in
18248 hppa*64*|ia64*)
18249 # +Z the default
18250 ;;
18251 *)
18252 lt_prog_compiler_pic_CXX='+Z'
18253 ;;
18254 esac
18255 ;;
18256 *)
18257 ;;
18258 esac
18259 ;;
18260 interix*)
18261 # This is c89, which is MS Visual C++ (no shared libs)
18262 # Anyone wants to do a port?
18263 ;;
18264 irix5* | irix6* | nonstopux*)
18265 case $cc_basename in
18266 CC*)
18267 lt_prog_compiler_wl_CXX='-Wl,'
18268 lt_prog_compiler_static_CXX='-non_shared'
18269 # CC pic flag -KPIC is the default.
18270 ;;
18271 *)
18272 ;;
18273 esac
18274 ;;
18275 linux* | k*bsd*-gnu)
18276 case $cc_basename in
18277 KCC*)
18278 # KAI C++ Compiler
18279 lt_prog_compiler_wl_CXX='--backend -Wl,'
18280 lt_prog_compiler_pic_CXX='-fPIC'
18281 ;;
18282 ecpc* )
18283 # old Intel C++ for x86_64 which still supported -KPIC.
18284 lt_prog_compiler_wl_CXX='-Wl,'
18285 lt_prog_compiler_pic_CXX='-KPIC'
18286 lt_prog_compiler_static_CXX='-static'
18287 ;;
18288 icpc* )
18289 # Intel C++, used to be incompatible with GCC.
18290 # ICC 10 doesn't accept -KPIC any more.
18291 lt_prog_compiler_wl_CXX='-Wl,'
18292 lt_prog_compiler_pic_CXX='-fPIC'
18293 lt_prog_compiler_static_CXX='-static'
18294 ;;
18295 pgCC* | pgcpp*)
18296 # Portland Group C++ compiler
18297 lt_prog_compiler_wl_CXX='-Wl,'
18298 lt_prog_compiler_pic_CXX='-fpic'
18299 lt_prog_compiler_static_CXX='-Bstatic'
18300 ;;
18301 cxx*)
18302 # Compaq C++
18303 # Make sure the PIC flag is empty. It appears that all Alpha
18304 # Linux and Compaq Tru64 Unix objects are PIC.
18305 lt_prog_compiler_pic_CXX=
18306 lt_prog_compiler_static_CXX='-non_shared'
18307 ;;
18308 xlc* | xlC*)
18309 # IBM XL 8.0 on PPC
18310 lt_prog_compiler_wl_CXX='-Wl,'
18311 lt_prog_compiler_pic_CXX='-qpic'
18312 lt_prog_compiler_static_CXX='-qstaticlink'
18313 ;;
18314 *)
18315 case `$CC -V 2>&1 | sed 5q` in
18316 *Sun\ C*)
18317 # Sun C++ 5.9
18318 lt_prog_compiler_pic_CXX='-KPIC'
18319 lt_prog_compiler_static_CXX='-Bstatic'
18320 lt_prog_compiler_wl_CXX='-Qoption ld '
18321 ;;
18322 esac
18323 ;;
18324 esac
18325 ;;
18326 lynxos*)
18327 ;;
18328 m88k*)
18329 ;;
18330 mvs*)
18331 case $cc_basename in
18332 cxx*)
18333 lt_prog_compiler_pic_CXX='-W c,exportall'
18334 ;;
18335 *)
18336 ;;
18337 esac
18338 ;;
18339 netbsd*)
18340 ;;
18341 *qnx* | *nto*)
18342 # QNX uses GNU C++, but need to define -shared option too, otherwise
18343 # it will coredump.
18344 lt_prog_compiler_pic_CXX='-fPIC -shared'
18345 ;;
18346 osf3* | osf4* | osf5*)
18347 case $cc_basename in
18348 KCC*)
18349 lt_prog_compiler_wl_CXX='--backend -Wl,'
18350 ;;
18351 RCC*)
18352 # Rational C++ 2.4.1
18353 lt_prog_compiler_pic_CXX='-pic'
18354 ;;
18355 cxx*)
18356 # Digital/Compaq C++
18357 lt_prog_compiler_wl_CXX='-Wl,'
18358 # Make sure the PIC flag is empty. It appears that all Alpha
18359 # Linux and Compaq Tru64 Unix objects are PIC.
18360 lt_prog_compiler_pic_CXX=
18361 lt_prog_compiler_static_CXX='-non_shared'
18362 ;;
18363 *)
18364 ;;
18365 esac
18366 ;;
18367 psos*)
18368 ;;
18369 solaris*)
18370 case $cc_basename in
18371 CC*)
18372 # Sun C++ 4.2, 5.x and Centerline C++
18373 lt_prog_compiler_pic_CXX='-KPIC'
18374 lt_prog_compiler_static_CXX='-Bstatic'
18375 lt_prog_compiler_wl_CXX='-Qoption ld '
18376 ;;
18377 gcx*)
18378 # Green Hills C++ Compiler
18379 lt_prog_compiler_pic_CXX='-PIC'
18380 ;;
18381 *)
18382 ;;
18383 esac
18384 ;;
18385 sunos4*)
18386 case $cc_basename in
18387 CC*)
18388 # Sun C++ 4.x
18389 lt_prog_compiler_pic_CXX='-pic'
18390 lt_prog_compiler_static_CXX='-Bstatic'
18391 ;;
18392 lcc*)
18393 # Lucid
18394 lt_prog_compiler_pic_CXX='-pic'
18395 ;;
18396 *)
18397 ;;
18398 esac
18399 ;;
18400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18401 case $cc_basename in
18402 CC*)
18403 lt_prog_compiler_wl_CXX='-Wl,'
18404 lt_prog_compiler_pic_CXX='-KPIC'
18405 lt_prog_compiler_static_CXX='-Bstatic'
18406 ;;
18407 esac
18408 ;;
18409 tandem*)
18410 case $cc_basename in
18411 NCC*)
18412 # NonStop-UX NCC 3.20
18413 lt_prog_compiler_pic_CXX='-KPIC'
18414 ;;
18415 *)
18416 ;;
18417 esac
18418 ;;
18419 vxworks*)
18420 ;;
18421 *)
18422 lt_prog_compiler_can_build_shared_CXX=no
18423 ;;
18424 esac
18425 fi
18426
18427case $host_os in
18428 # For platforms which do not support PIC, -DPIC is meaningless:
18429 *djgpp*)
18430 lt_prog_compiler_pic_CXX=
18431 ;;
18432 *)
18433 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18434 ;;
18435esac
18436{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18437$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18438
18439
18440
18441#
18442# Check to make sure the PIC flag actually works.
18443#
18444if test -n "$lt_prog_compiler_pic_CXX"; then
18445 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18446$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18447if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18448 $as_echo_n "(cached) " >&6
18449else
18450 lt_cv_prog_compiler_pic_works_CXX=no
18451 ac_outfile=conftest.$ac_objext
18452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18453 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18454 # Insert the option either (1) after the last *FLAGS variable, or
18455 # (2) before a word containing "conftest.", or (3) at the end.
18456 # Note that $ac_compile itself does not contain backslashes and begins
18457 # with a dollar sign (not a hyphen), so the echo should work correctly.
18458 # The option is referenced via a variable to avoid confusing sed.
18459 lt_compile=`echo "$ac_compile" | $SED \
18460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18462 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000018463 (eval echo "\"\$as_me:18463: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018464 (eval "$lt_compile" 2>conftest.err)
18465 ac_status=$?
18466 cat conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000018467 echo "$as_me:18467: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018468 if (exit $ac_status) && test -s "$ac_outfile"; then
18469 # The compiler can only warn and ignore the option if not recognized
18470 # So say no if there are warnings other than the usual output.
18471 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18474 lt_cv_prog_compiler_pic_works_CXX=yes
18475 fi
18476 fi
18477 $RM conftest*
18478
18479fi
18480{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18481$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18482
18483if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18484 case $lt_prog_compiler_pic_CXX in
18485 "" | " "*) ;;
18486 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18487 esac
18488else
18489 lt_prog_compiler_pic_CXX=
18490 lt_prog_compiler_can_build_shared_CXX=no
18491fi
18492
18493fi
18494
18495
18496
18497#
18498# Check to make sure the static flag actually works.
18499#
18500wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18501{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18502$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18503if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
18504 $as_echo_n "(cached) " >&6
18505else
18506 lt_cv_prog_compiler_static_works_CXX=no
18507 save_LDFLAGS="$LDFLAGS"
18508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18511 # The linker can only warn and ignore the option if not recognized
18512 # So say no if there are warnings
18513 if test -s conftest.err; then
18514 # Append any errors to the config.log.
18515 cat conftest.err 1>&5
18516 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18518 if diff conftest.exp conftest.er2 >/dev/null; then
18519 lt_cv_prog_compiler_static_works_CXX=yes
18520 fi
18521 else
18522 lt_cv_prog_compiler_static_works_CXX=yes
18523 fi
18524 fi
18525 $RM -r conftest*
18526 LDFLAGS="$save_LDFLAGS"
18527
18528fi
18529{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18530$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18531
18532if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18533 :
18534else
18535 lt_prog_compiler_static_CXX=
18536fi
18537
18538
18539
18540
18541 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18543if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18544 $as_echo_n "(cached) " >&6
18545else
18546 lt_cv_prog_compiler_c_o_CXX=no
18547 $RM -r conftest 2>/dev/null
18548 mkdir conftest
18549 cd conftest
18550 mkdir out
18551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18552
18553 lt_compiler_flag="-o out/conftest2.$ac_objext"
18554 # Insert the option either (1) after the last *FLAGS variable, or
18555 # (2) before a word containing "conftest.", or (3) at the end.
18556 # Note that $ac_compile itself does not contain backslashes and begins
18557 # with a dollar sign (not a hyphen), so the echo should work correctly.
18558 lt_compile=`echo "$ac_compile" | $SED \
18559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18561 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000018562 (eval echo "\"\$as_me:18562: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018563 (eval "$lt_compile" 2>out/conftest.err)
18564 ac_status=$?
18565 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000018566 echo "$as_me:18566: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18568 then
18569 # The compiler can only warn and ignore the option if not recognized
18570 # So say no if there are warnings
18571 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18574 lt_cv_prog_compiler_c_o_CXX=yes
18575 fi
18576 fi
18577 chmod u+w . 2>&5
18578 $RM conftest*
18579 # SGI C++ compiler will create directory out/ii_files/ for
18580 # template instantiation
18581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18582 $RM out/* && rmdir out
18583 cd ..
18584 $RM -r conftest
18585 $RM conftest*
18586
18587fi
18588{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18589$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18590
18591
18592
18593 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18594$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18595if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18596 $as_echo_n "(cached) " >&6
18597else
18598 lt_cv_prog_compiler_c_o_CXX=no
18599 $RM -r conftest 2>/dev/null
18600 mkdir conftest
18601 cd conftest
18602 mkdir out
18603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18604
18605 lt_compiler_flag="-o out/conftest2.$ac_objext"
18606 # Insert the option either (1) after the last *FLAGS variable, or
18607 # (2) before a word containing "conftest.", or (3) at the end.
18608 # Note that $ac_compile itself does not contain backslashes and begins
18609 # with a dollar sign (not a hyphen), so the echo should work correctly.
18610 lt_compile=`echo "$ac_compile" | $SED \
18611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18613 -e 's:$: $lt_compiler_flag:'`
cristy736173a2009-09-20 21:18:22 +000018614 (eval echo "\"\$as_me:18614: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018615 (eval "$lt_compile" 2>out/conftest.err)
18616 ac_status=$?
18617 cat out/conftest.err >&5
cristy736173a2009-09-20 21:18:22 +000018618 echo "$as_me:18618: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18620 then
18621 # The compiler can only warn and ignore the option if not recognized
18622 # So say no if there are warnings
18623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18626 lt_cv_prog_compiler_c_o_CXX=yes
18627 fi
18628 fi
18629 chmod u+w . 2>&5
18630 $RM conftest*
18631 # SGI C++ compiler will create directory out/ii_files/ for
18632 # template instantiation
18633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18634 $RM out/* && rmdir out
18635 cd ..
18636 $RM -r conftest
18637 $RM conftest*
18638
18639fi
18640{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18641$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18642
18643
18644
18645
18646hard_links="nottested"
18647if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18648 # do not overwrite the value of need_locks provided by the user
18649 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18650$as_echo_n "checking if we can lock with hard links... " >&6; }
18651 hard_links=yes
18652 $RM conftest*
18653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18654 touch conftest.a
18655 ln conftest.a conftest.b 2>&5 || hard_links=no
18656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18657 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18658$as_echo "$hard_links" >&6; }
18659 if test "$hard_links" = no; then
18660 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18661$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18662 need_locks=warn
18663 fi
18664else
18665 need_locks=no
18666fi
18667
18668
18669
18670 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18671$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18672
18673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18674 case $host_os in
18675 aix[4-9]*)
18676 # If we're using GNU nm, then we don't want the "-C" option.
18677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18679 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18680 else
18681 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18682 fi
18683 ;;
18684 pw32*)
18685 export_symbols_cmds_CXX="$ltdll_cmds"
18686 ;;
18687 cygwin* | mingw* | cegcc*)
18688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18689 ;;
18690 *)
18691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18692 ;;
18693 esac
18694 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18695
18696{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18697$as_echo "$ld_shlibs_CXX" >&6; }
18698test "$ld_shlibs_CXX" = no && can_build_shared=no
18699
18700with_gnu_ld_CXX=$with_gnu_ld
18701
18702
18703
18704
18705
18706
18707#
18708# Do we need to explicitly link libc?
18709#
18710case "x$archive_cmds_need_lc_CXX" in
18711x|xyes)
18712 # Assume -lc should be added
18713 archive_cmds_need_lc_CXX=yes
18714
18715 if test "$enable_shared" = yes && test "$GCC" = yes; then
18716 case $archive_cmds_CXX in
18717 *'~'*)
18718 # FIXME: we may have to deal with multi-command sequences.
18719 ;;
18720 '$CC '*)
18721 # Test whether the compiler implicitly links with -lc since on some
18722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18723 # to ld, don't add -lc before -lgcc.
18724 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18725$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18726 $RM conftest*
18727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18728
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>&5
18731 ac_status=$?
18732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } 2>conftest.err; then
18734 soname=conftest
18735 lib=conftest
18736 libobjs=conftest.$ac_objext
18737 deplibs=
18738 wl=$lt_prog_compiler_wl_CXX
18739 pic_flag=$lt_prog_compiler_pic_CXX
18740 compiler_flags=-v
18741 linker_flags=-v
18742 verstring=
18743 output_objdir=.
18744 libname=conftest
18745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18746 allow_undefined_flag_CXX=
18747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18748 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18749 ac_status=$?
18750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }
18752 then
18753 archive_cmds_need_lc_CXX=no
18754 else
18755 archive_cmds_need_lc_CXX=yes
18756 fi
18757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18758 else
18759 cat conftest.err 1>&5
18760 fi
18761 $RM conftest*
18762 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18763$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18764 ;;
18765 esac
18766 fi
18767 ;;
18768esac
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18834$as_echo_n "checking dynamic linker characteristics... " >&6; }
18835
18836library_names_spec=
18837libname_spec='lib$name'
18838soname_spec=
18839shrext_cmds=".so"
18840postinstall_cmds=
18841postuninstall_cmds=
18842finish_cmds=
18843finish_eval=
18844shlibpath_var=
18845shlibpath_overrides_runpath=unknown
18846version_type=none
18847dynamic_linker="$host_os ld.so"
18848sys_lib_dlsearch_path_spec="/lib /usr/lib"
18849need_lib_prefix=unknown
18850hardcode_into_libs=no
18851
18852# when you set need_version to no, make sure it does not cause -set_version
18853# flags to be left without arguments
18854need_version=unknown
18855
18856case $host_os in
18857aix3*)
18858 version_type=linux
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18860 shlibpath_var=LIBPATH
18861
18862 # AIX 3 has no versioning support, so we append a major version to the name.
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 ;;
18865
18866aix[4-9]*)
18867 version_type=linux
18868 need_lib_prefix=no
18869 need_version=no
18870 hardcode_into_libs=yes
18871 if test "$host_cpu" = ia64; then
18872 # AIX 5 supports IA64
18873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 else
18876 # With GCC up to 2.95.x, collect2 would create an import file
18877 # for dependence libraries. The import file would start with
18878 # the line `#! .'. This would cause the generated library to
18879 # depend on `.', always an invalid library. This was fixed in
18880 # development snapshots of GCC prior to 3.0.
18881 case $host_os in
18882 aix4 | aix4.[01] | aix4.[01].*)
18883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18884 echo ' yes '
18885 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18886 :
18887 else
18888 can_build_shared=no
18889 fi
18890 ;;
18891 esac
18892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18893 # soname into executable. Probably we can add versioning support to
18894 # collect2, so additional links can be useful in future.
18895 if test "$aix_use_runtimelinking" = yes; then
18896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18897 # instead of lib<name>.a to let people know that these are not
18898 # typical AIX shared libraries.
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18900 else
18901 # We preserve .a as extension for shared libraries through AIX4.2
18902 # and later when we are not doing run time linking.
18903 library_names_spec='${libname}${release}.a $libname.a'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 fi
18906 shlibpath_var=LIBPATH
18907 fi
18908 ;;
18909
18910amigaos*)
18911 case $host_cpu in
18912 powerpc)
18913 # Since July 2007 AmigaOS4 officially supports .so libraries.
18914 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916 ;;
18917 m68k)
18918 library_names_spec='$libname.ixlibrary $libname.a'
18919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18920 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18921 ;;
18922 esac
18923 ;;
18924
18925beos*)
18926 library_names_spec='${libname}${shared_ext}'
18927 dynamic_linker="$host_os ld.so"
18928 shlibpath_var=LIBRARY_PATH
18929 ;;
18930
18931bsdi[45]*)
18932 version_type=linux
18933 need_version=no
18934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18935 soname_spec='${libname}${release}${shared_ext}$major'
18936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18937 shlibpath_var=LD_LIBRARY_PATH
18938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18940 # the default ld.so.conf also contains /usr/contrib/lib and
18941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18942 # libtool to hard-code these into programs
18943 ;;
18944
18945cygwin* | mingw* | pw32* | cegcc*)
18946 version_type=windows
18947 shrext_cmds=".dll"
18948 need_version=no
18949 need_lib_prefix=no
18950
18951 case $GCC,$host_os in
18952 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18953 library_names_spec='$libname.dll.a'
18954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18955 postinstall_cmds='base_file=`basename \${file}`~
18956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18957 dldir=$destdir/`dirname \$dlpath`~
18958 test -d \$dldir || mkdir -p \$dldir~
18959 $install_prog $dir/$dlname \$dldir/$dlname~
18960 chmod a+x \$dldir/$dlname~
18961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18963 fi'
18964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18965 dlpath=$dir/\$dldll~
18966 $RM \$dlpath'
18967 shlibpath_overrides_runpath=yes
18968
18969 case $host_os in
18970 cygwin*)
18971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18973 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18974 ;;
18975 mingw* | cegcc*)
18976 # MinGW DLLs use traditional 'lib' prefix
18977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18978 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18980 # It is most probably a Windows format PATH printed by
18981 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18982 # path with ; separators, and with drive letters. We can handle the
18983 # drive letters (cygwin fileutils understands them), so leave them,
18984 # especially as we might pass files found there to a mingw objdump,
18985 # which wouldn't understand a cygwinified path. Ahh.
18986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18987 else
18988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18989 fi
18990 ;;
18991 pw32*)
18992 # pw32 DLLs use 'pw' prefix rather than 'lib'
18993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18994 ;;
18995 esac
18996 ;;
18997
18998 *)
18999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19000 ;;
19001 esac
19002 dynamic_linker='Win32 ld.exe'
19003 # FIXME: first we should search . and the directory the executable is in
19004 shlibpath_var=PATH
19005 ;;
19006
19007darwin* | rhapsody*)
19008 dynamic_linker="$host_os dyld"
19009 version_type=darwin
19010 need_lib_prefix=no
19011 need_version=no
19012 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19013 soname_spec='${libname}${release}${major}$shared_ext'
19014 shlibpath_overrides_runpath=yes
19015 shlibpath_var=DYLD_LIBRARY_PATH
19016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19017
19018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19019 ;;
19020
19021dgux*)
19022 version_type=linux
19023 need_lib_prefix=no
19024 need_version=no
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 ;;
19029
19030freebsd1*)
19031 dynamic_linker=no
19032 ;;
19033
19034freebsd* | dragonfly*)
19035 # DragonFly does not have aout. When/if they implement a new
19036 # versioning mechanism, adjust this.
19037 if test -x /usr/bin/objformat; then
19038 objformat=`/usr/bin/objformat`
19039 else
19040 case $host_os in
19041 freebsd[123]*) objformat=aout ;;
19042 *) objformat=elf ;;
19043 esac
19044 fi
19045 version_type=freebsd-$objformat
19046 case $version_type in
19047 freebsd-elf*)
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19049 need_version=no
19050 need_lib_prefix=no
19051 ;;
19052 freebsd-*)
19053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19054 need_version=yes
19055 ;;
19056 esac
19057 shlibpath_var=LD_LIBRARY_PATH
19058 case $host_os in
19059 freebsd2*)
19060 shlibpath_overrides_runpath=yes
19061 ;;
19062 freebsd3.[01]* | freebsdelf3.[01]*)
19063 shlibpath_overrides_runpath=yes
19064 hardcode_into_libs=yes
19065 ;;
19066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19068 shlibpath_overrides_runpath=no
19069 hardcode_into_libs=yes
19070 ;;
19071 *) # from 4.6 on, and DragonFly
19072 shlibpath_overrides_runpath=yes
19073 hardcode_into_libs=yes
19074 ;;
19075 esac
19076 ;;
19077
19078gnu*)
19079 version_type=linux
19080 need_lib_prefix=no
19081 need_version=no
19082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19083 soname_spec='${libname}${release}${shared_ext}$major'
19084 shlibpath_var=LD_LIBRARY_PATH
19085 hardcode_into_libs=yes
19086 ;;
19087
19088hpux9* | hpux10* | hpux11*)
19089 # Give a soname corresponding to the major version so that dld.sl refuses to
19090 # link against other versions.
19091 version_type=sunos
19092 need_lib_prefix=no
19093 need_version=no
19094 case $host_cpu in
19095 ia64*)
19096 shrext_cmds='.so'
19097 hardcode_into_libs=yes
19098 dynamic_linker="$host_os dld.so"
19099 shlibpath_var=LD_LIBRARY_PATH
19100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 if test "X$HPUX_IA64_MODE" = X32; then
19104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19105 else
19106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19107 fi
19108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19109 ;;
19110 hppa*64*)
19111 shrext_cmds='.sl'
19112 hardcode_into_libs=yes
19113 dynamic_linker="$host_os dld.sl"
19114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19117 soname_spec='${libname}${release}${shared_ext}$major'
19118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19120 ;;
19121 *)
19122 shrext_cmds='.sl'
19123 dynamic_linker="$host_os dld.sl"
19124 shlibpath_var=SHLIB_PATH
19125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19127 soname_spec='${libname}${release}${shared_ext}$major'
19128 ;;
19129 esac
19130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19131 postinstall_cmds='chmod 555 $lib'
19132 ;;
19133
19134interix[3-9]*)
19135 version_type=linux
19136 need_lib_prefix=no
19137 need_version=no
19138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19139 soname_spec='${libname}${release}${shared_ext}$major'
19140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19141 shlibpath_var=LD_LIBRARY_PATH
19142 shlibpath_overrides_runpath=no
19143 hardcode_into_libs=yes
19144 ;;
19145
19146irix5* | irix6* | nonstopux*)
19147 case $host_os in
19148 nonstopux*) version_type=nonstopux ;;
19149 *)
19150 if test "$lt_cv_prog_gnu_ld" = yes; then
19151 version_type=linux
19152 else
19153 version_type=irix
19154 fi ;;
19155 esac
19156 need_lib_prefix=no
19157 need_version=no
19158 soname_spec='${libname}${release}${shared_ext}$major'
19159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19160 case $host_os in
19161 irix5* | nonstopux*)
19162 libsuff= shlibsuff=
19163 ;;
19164 *)
19165 case $LD in # libtool.m4 will add one of these switches to LD
19166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19167 libsuff= shlibsuff= libmagic=32-bit;;
19168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19169 libsuff=32 shlibsuff=N32 libmagic=N32;;
19170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19172 *) libsuff= shlibsuff= libmagic=never-match;;
19173 esac
19174 ;;
19175 esac
19176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19177 shlibpath_overrides_runpath=no
19178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19180 hardcode_into_libs=yes
19181 ;;
19182
19183# No shared lib support for Linux oldld, aout, or coff.
19184linux*oldld* | linux*aout* | linux*coff*)
19185 dynamic_linker=no
19186 ;;
19187
19188# This must be Linux ELF.
19189linux* | k*bsd*-gnu)
19190 version_type=linux
19191 need_lib_prefix=no
19192 need_version=no
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194 soname_spec='${libname}${release}${shared_ext}$major'
19195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=no
19198 # Some binutils ld are patched to set DT_RUNPATH
19199 save_LDFLAGS=$LDFLAGS
19200 save_libdir=$libdir
19201 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19202 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19203 cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209
19210int
19211main ()
19212{
19213
19214 ;
19215 return 0;
19216}
19217_ACEOF
19218rm -f conftest.$ac_objext conftest$ac_exeext
19219if { (ac_try="$ac_link"
19220case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223esac
19224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19225$as_echo "$ac_try_echo") >&5
19226 (eval "$ac_link") 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && {
19233 test -z "$ac_cxx_werror_flag" ||
19234 test ! -s conftest.err
19235 } && test -s conftest$ac_exeext && {
19236 test "$cross_compiling" = yes ||
19237 $as_test_x conftest$ac_exeext
19238 }; then
19239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19240 shlibpath_overrides_runpath=yes
19241fi
19242
19243else
19244 $as_echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247
19248fi
19249
19250rm -rf conftest.dSYM
19251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19252 conftest$ac_exeext conftest.$ac_ext
19253 LDFLAGS=$save_LDFLAGS
19254 libdir=$save_libdir
19255
19256 # This implies no fast_install, which is unacceptable.
19257 # Some rework will be needed to allow for fast_install
19258 # before this can be enabled.
19259 hardcode_into_libs=yes
19260
19261 # Add ABI-specific directories to the system library path.
19262 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19263
19264 # Append ld.so.conf contents to the search path
19265 if test -f /etc/ld.so.conf; then
19266 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19267 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19268 fi
19269
19270 # We used to test for /lib/ld.so.1 and disable shared libraries on
19271 # powerpc, because MkLinux only supported shared libraries with the
19272 # GNU dynamic linker. Since this was broken with cross compilers,
19273 # most powerpc-linux boxes support dynamic linking these days and
19274 # people can always --disable-shared, the test was removed, and we
19275 # assume the GNU/Linux dynamic linker is in use.
19276 dynamic_linker='GNU/Linux ld.so'
19277 ;;
19278
19279netbsd*)
19280 version_type=sunos
19281 need_lib_prefix=no
19282 need_version=no
19283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19286 dynamic_linker='NetBSD (a.out) ld.so'
19287 else
19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19289 soname_spec='${libname}${release}${shared_ext}$major'
19290 dynamic_linker='NetBSD ld.elf_so'
19291 fi
19292 shlibpath_var=LD_LIBRARY_PATH
19293 shlibpath_overrides_runpath=yes
19294 hardcode_into_libs=yes
19295 ;;
19296
19297newsos6)
19298 version_type=linux
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 shlibpath_overrides_runpath=yes
19302 ;;
19303
19304*nto* | *qnx*)
19305 version_type=qnx
19306 need_lib_prefix=no
19307 need_version=no
19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309 soname_spec='${libname}${release}${shared_ext}$major'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=no
19312 hardcode_into_libs=yes
19313 dynamic_linker='ldqnx.so'
19314 ;;
19315
19316openbsd*)
19317 version_type=sunos
19318 sys_lib_dlsearch_path_spec="/usr/lib"
19319 need_lib_prefix=no
19320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19321 case $host_os in
19322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19323 *) need_version=no ;;
19324 esac
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19329 case $host_os in
19330 openbsd2.[89] | openbsd2.[89].*)
19331 shlibpath_overrides_runpath=no
19332 ;;
19333 *)
19334 shlibpath_overrides_runpath=yes
19335 ;;
19336 esac
19337 else
19338 shlibpath_overrides_runpath=yes
19339 fi
19340 ;;
19341
19342os2*)
19343 libname_spec='$name'
19344 shrext_cmds=".dll"
19345 need_lib_prefix=no
19346 library_names_spec='$libname${shared_ext} $libname.a'
19347 dynamic_linker='OS/2 ld.exe'
19348 shlibpath_var=LIBPATH
19349 ;;
19350
19351osf3* | osf4* | osf5*)
19352 version_type=osf
19353 need_lib_prefix=no
19354 need_version=no
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357 shlibpath_var=LD_LIBRARY_PATH
19358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19360 ;;
19361
19362rdos*)
19363 dynamic_linker=no
19364 ;;
19365
19366solaris*)
19367 version_type=linux
19368 need_lib_prefix=no
19369 need_version=no
19370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19371 soname_spec='${libname}${release}${shared_ext}$major'
19372 shlibpath_var=LD_LIBRARY_PATH
19373 shlibpath_overrides_runpath=yes
19374 hardcode_into_libs=yes
19375 # ldd complains unless libraries are executable
19376 postinstall_cmds='chmod +x $lib'
19377 ;;
19378
19379sunos4*)
19380 version_type=sunos
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=yes
19385 if test "$with_gnu_ld" = yes; then
19386 need_lib_prefix=no
19387 fi
19388 need_version=yes
19389 ;;
19390
19391sysv4 | sysv4.3*)
19392 version_type=linux
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 case $host_vendor in
19397 sni)
19398 shlibpath_overrides_runpath=no
19399 need_lib_prefix=no
19400 runpath_var=LD_RUN_PATH
19401 ;;
19402 siemens)
19403 need_lib_prefix=no
19404 ;;
19405 motorola)
19406 need_lib_prefix=no
19407 need_version=no
19408 shlibpath_overrides_runpath=no
19409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19410 ;;
19411 esac
19412 ;;
19413
19414sysv4*MP*)
19415 if test -d /usr/nec ;then
19416 version_type=linux
19417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19418 soname_spec='$libname${shared_ext}.$major'
19419 shlibpath_var=LD_LIBRARY_PATH
19420 fi
19421 ;;
19422
19423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19424 version_type=freebsd-elf
19425 need_lib_prefix=no
19426 need_version=no
19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19428 soname_spec='${libname}${release}${shared_ext}$major'
19429 shlibpath_var=LD_LIBRARY_PATH
19430 shlibpath_overrides_runpath=yes
19431 hardcode_into_libs=yes
19432 if test "$with_gnu_ld" = yes; then
19433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19434 else
19435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19436 case $host_os in
19437 sco3.2v5*)
19438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19439 ;;
19440 esac
19441 fi
19442 sys_lib_dlsearch_path_spec='/usr/lib'
19443 ;;
19444
19445tpf*)
19446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19447 version_type=linux
19448 need_lib_prefix=no
19449 need_version=no
19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 shlibpath_overrides_runpath=no
19453 hardcode_into_libs=yes
19454 ;;
19455
19456uts4*)
19457 version_type=linux
19458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19459 soname_spec='${libname}${release}${shared_ext}$major'
19460 shlibpath_var=LD_LIBRARY_PATH
19461 ;;
19462
19463*)
19464 dynamic_linker=no
19465 ;;
19466esac
19467{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19468$as_echo "$dynamic_linker" >&6; }
19469test "$dynamic_linker" = no && can_build_shared=no
19470
19471variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19472if test "$GCC" = yes; then
19473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19474fi
19475
19476if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19478fi
19479if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19481fi
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19519$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19520hardcode_action_CXX=
19521if test -n "$hardcode_libdir_flag_spec_CXX" ||
19522 test -n "$runpath_var_CXX" ||
19523 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19524
19525 # We can hardcode non-existent directories.
19526 if test "$hardcode_direct_CXX" != no &&
19527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19528 # have to relink, otherwise we might link with an installed library
19529 # when we should be linking with a yet-to-be-installed one
19530 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19531 test "$hardcode_minus_L_CXX" != no; then
19532 # Linking always hardcodes the temporary library directory.
19533 hardcode_action_CXX=relink
19534 else
19535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19536 hardcode_action_CXX=immediate
19537 fi
19538else
19539 # We cannot hardcode anything, or else we can only hardcode existing
19540 # directories.
19541 hardcode_action_CXX=unsupported
19542fi
19543{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19544$as_echo "$hardcode_action_CXX" >&6; }
19545
19546if test "$hardcode_action_CXX" = relink ||
19547 test "$inherit_rpath_CXX" = yes; then
19548 # Fast installation is not supported
19549 enable_fast_install=no
19550elif test "$shlibpath_overrides_runpath" = yes ||
19551 test "$enable_shared" = no; then
19552 # Fast installation is not necessary
19553 enable_fast_install=needless
19554fi
19555
19556
19557
19558
19559
19560
19561
19562 fi # test -n "$compiler"
19563
19564 CC=$lt_save_CC
19565 LDCXX=$LD
19566 LD=$lt_save_LD
19567 GCC=$lt_save_GCC
19568 with_gnu_ld=$lt_save_with_gnu_ld
19569 lt_cv_path_LDCXX=$lt_cv_path_LD
19570 lt_cv_path_LD=$lt_save_path_LD
19571 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19572 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19573fi # test "$_lt_caught_CXX_error" != yes
19574
19575ac_ext=c
19576ac_cpp='$CPP $CPPFLAGS'
19577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19579ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593 ac_config_commands="$ac_config_commands libtool"
19594
19595
19596
19597
19598# Only expand once:
19599
19600
19601
19602
19603
19604# Configure libltdl
19605
19606
19607
19608
19609
19610
19611
19612
19613{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
19614$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19615if test "${libltdl_cv_shlibext+set}" = set; then
19616 $as_echo_n "(cached) " >&6
19617else
19618
19619module=yes
19620eval libltdl_cv_shlibext=$shrext_cmds
19621
19622fi
19623{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19624$as_echo "$libltdl_cv_shlibext" >&6; }
19625if test -n "$libltdl_cv_shlibext"; then
19626
19627cat >>confdefs.h <<_ACEOF
19628#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19629_ACEOF
19630
19631fi
19632
19633{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
19634$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19635if test "${lt_cv_module_path_var+set}" = set; then
19636 $as_echo_n "(cached) " >&6
19637else
19638 lt_cv_module_path_var="$shlibpath_var"
19639fi
19640{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
19641$as_echo "$lt_cv_module_path_var" >&6; }
19642if test -n "$lt_cv_module_path_var"; then
19643
19644cat >>confdefs.h <<_ACEOF
19645#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19646_ACEOF
19647
19648fi
19649
19650{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
19651$as_echo_n "checking for the default library search path... " >&6; }
19652if test "${lt_cv_sys_dlsearch_path+set}" = set; then
19653 $as_echo_n "(cached) " >&6
19654else
19655 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19656fi
19657{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
19658$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19659if test -n "$lt_cv_sys_dlsearch_path"; then
19660 sys_dlsearch_path=
19661 for dir in $lt_cv_sys_dlsearch_path; do
19662 if test -z "$sys_dlsearch_path"; then
19663 sys_dlsearch_path="$dir"
19664 else
19665 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19666 fi
19667 done
19668
19669cat >>confdefs.h <<_ACEOF
19670#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19671_ACEOF
19672
19673fi
19674
19675
19676LT_DLLOADERS=
19677
19678
19679ac_ext=c
19680ac_cpp='$CPP $CPPFLAGS'
19681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19683ac_compiler_gnu=$ac_cv_c_compiler_gnu
19684
19685
19686LIBADD_DLOPEN=
19687{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19688$as_echo_n "checking for library containing dlopen... " >&6; }
19689if test "${ac_cv_search_dlopen+set}" = set; then
19690 $as_echo_n "(cached) " >&6
19691else
19692 ac_func_search_save_LIBS=$LIBS
19693cat >conftest.$ac_ext <<_ACEOF
19694/* confdefs.h. */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
19698/* end confdefs.h. */
19699
19700/* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19703#ifdef __cplusplus
19704extern "C"
19705#endif
19706char dlopen ();
19707int
19708main ()
19709{
19710return dlopen ();
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715for ac_lib in '' dl; do
19716 if test -z "$ac_lib"; then
19717 ac_res="none required"
19718 else
19719 ac_res=-l$ac_lib
19720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19721 fi
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723if { (ac_try="$ac_link"
19724case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727esac
19728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19729$as_echo "$ac_try_echo") >&5
19730 (eval "$ac_link") 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && {
19737 test -z "$ac_c_werror_flag" ||
19738 test ! -s conftest.err
19739 } && test -s conftest$ac_exeext && {
19740 test "$cross_compiling" = yes ||
19741 $as_test_x conftest$ac_exeext
19742 }; then
19743 ac_cv_search_dlopen=$ac_res
19744else
19745 $as_echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748
19749fi
19750
19751rm -rf conftest.dSYM
19752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753 conftest$ac_exeext
19754 if test "${ac_cv_search_dlopen+set}" = set; then
19755 break
19756fi
19757done
19758if test "${ac_cv_search_dlopen+set}" = set; then
19759 :
19760else
19761 ac_cv_search_dlopen=no
19762fi
19763rm conftest.$ac_ext
19764LIBS=$ac_func_search_save_LIBS
19765fi
19766{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19767$as_echo "$ac_cv_search_dlopen" >&6; }
19768ac_res=$ac_cv_search_dlopen
19769if test "$ac_res" != no; then
19770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19771
19772cat >>confdefs.h <<\_ACEOF
19773#define HAVE_LIBDL 1
19774_ACEOF
19775
19776 if test "$ac_cv_search_dlopen" != "none required" ; then
19777 LIBADD_DLOPEN="-ldl"
19778 fi
19779 libltdl_cv_lib_dl_dlopen="yes"
19780 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19781else
19782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788#if HAVE_DLFCN_H
19789# include <dlfcn.h>
19790#endif
19791
19792int
19793main ()
19794{
19795dlopen(0, 0);
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext conftest$ac_exeext
19801if { (ac_try="$ac_link"
19802case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805esac
19806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807$as_echo "$ac_try_echo") >&5
19808 (eval "$ac_link") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest$ac_exeext && {
19818 test "$cross_compiling" = yes ||
19819 $as_test_x conftest$ac_exeext
19820 }; then
19821
19822cat >>confdefs.h <<\_ACEOF
19823#define HAVE_LIBDL 1
19824_ACEOF
19825
19826 libltdl_cv_func_dlopen="yes"
19827 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19828else
19829 $as_echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19833$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19834if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19835 $as_echo_n "(cached) " >&6
19836else
19837 ac_check_lib_save_LIBS=$LIBS
19838LIBS="-lsvld $LIBS"
19839cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845
19846/* Override any GCC internal prototype to avoid an error.
19847 Use char because int might match the return type of a GCC
19848 builtin and then its argument prototype would still apply. */
19849#ifdef __cplusplus
19850extern "C"
19851#endif
19852char dlopen ();
19853int
19854main ()
19855{
19856return dlopen ();
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext conftest$ac_exeext
19862if { (ac_try="$ac_link"
19863case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866esac
19867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19868$as_echo "$ac_try_echo") >&5
19869 (eval "$ac_link") 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } && {
19876 test -z "$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 } && test -s conftest$ac_exeext && {
19879 test "$cross_compiling" = yes ||
19880 $as_test_x conftest$ac_exeext
19881 }; then
19882 ac_cv_lib_svld_dlopen=yes
19883else
19884 $as_echo "$as_me: failed program was:" >&5
19885sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_cv_lib_svld_dlopen=no
19888fi
19889
19890rm -rf conftest.dSYM
19891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893LIBS=$ac_check_lib_save_LIBS
19894fi
19895{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19896$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19897if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19898
19899cat >>confdefs.h <<\_ACEOF
19900#define HAVE_LIBDL 1
19901_ACEOF
19902
19903 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19904 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19905fi
19906
19907fi
19908
19909rm -rf conftest.dSYM
19910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19911 conftest$ac_exeext conftest.$ac_ext
19912fi
19913
19914if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19915then
19916 lt_save_LIBS="$LIBS"
19917 LIBS="$LIBS $LIBADD_DLOPEN"
19918
19919for ac_func in dlerror
19920do
19921as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19922{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19923$as_echo_n "checking for $ac_func... " >&6; }
19924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19925 $as_echo_n "(cached) " >&6
19926else
19927 cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19935#define $ac_func innocuous_$ac_func
19936
19937/* System header to define __stub macros and hopefully few prototypes,
19938 which can conflict with char $ac_func (); below.
19939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940 <limits.h> exists even on freestanding compilers. */
19941
19942#ifdef __STDC__
19943# include <limits.h>
19944#else
19945# include <assert.h>
19946#endif
19947
19948#undef $ac_func
19949
19950/* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956char $ac_func ();
19957/* The GNU C library defines this for functions which it implements
19958 to always fail with ENOSYS. Some functions are actually named
19959 something starting with __ and the normal name is an alias. */
19960#if defined __stub_$ac_func || defined __stub___$ac_func
19961choke me
19962#endif
19963
19964int
19965main ()
19966{
19967return $ac_func ();
19968 ;
19969 return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext conftest$ac_exeext
19973if { (ac_try="$ac_link"
19974case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19979$as_echo "$ac_try_echo") >&5
19980 (eval "$ac_link") 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest$ac_exeext && {
19990 test "$cross_compiling" = yes ||
19991 $as_test_x conftest$ac_exeext
19992 }; then
19993 eval "$as_ac_var=yes"
19994else
19995 $as_echo "$as_me: failed program was:" >&5
19996sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 eval "$as_ac_var=no"
19999fi
20000
20001rm -rf conftest.dSYM
20002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20004fi
20005ac_res=`eval 'as_val=${'$as_ac_var'}
20006 $as_echo "$as_val"'`
20007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20008$as_echo "$ac_res" >&6; }
20009as_val=`eval 'as_val=${'$as_ac_var'}
20010 $as_echo "$as_val"'`
20011 if test "x$as_val" = x""yes; then
20012 cat >>confdefs.h <<_ACEOF
20013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20014_ACEOF
20015
20016fi
20017done
20018
20019 LIBS="$lt_save_LIBS"
20020fi
20021
20022
20023LIBADD_SHL_LOAD=
20024{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
20025$as_echo_n "checking for shl_load... " >&6; }
20026if test "${ac_cv_func_shl_load+set}" = set; then
20027 $as_echo_n "(cached) " >&6
20028else
20029 cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20037#define shl_load innocuous_shl_load
20038
20039/* System header to define __stub macros and hopefully few prototypes,
20040 which can conflict with char shl_load (); below.
20041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042 <limits.h> exists even on freestanding compilers. */
20043
20044#ifdef __STDC__
20045# include <limits.h>
20046#else
20047# include <assert.h>
20048#endif
20049
20050#undef shl_load
20051
20052/* Override any GCC internal prototype to avoid an error.
20053 Use char because int might match the return type of a GCC
20054 builtin and then its argument prototype would still apply. */
20055#ifdef __cplusplus
20056extern "C"
20057#endif
20058char shl_load ();
20059/* The GNU C library defines this for functions which it implements
20060 to always fail with ENOSYS. Some functions are actually named
20061 something starting with __ and the normal name is an alias. */
20062#if defined __stub_shl_load || defined __stub___shl_load
20063choke me
20064#endif
20065
20066int
20067main ()
20068{
20069return shl_load ();
20070 ;
20071 return 0;
20072}
20073_ACEOF
20074rm -f conftest.$ac_objext conftest$ac_exeext
20075if { (ac_try="$ac_link"
20076case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20079esac
20080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081$as_echo "$ac_try_echo") >&5
20082 (eval "$ac_link") 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest$ac_exeext && {
20092 test "$cross_compiling" = yes ||
20093 $as_test_x conftest$ac_exeext
20094 }; then
20095 ac_cv_func_shl_load=yes
20096else
20097 $as_echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 ac_cv_func_shl_load=no
20101fi
20102
20103rm -rf conftest.dSYM
20104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20106fi
20107{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20108$as_echo "$ac_cv_func_shl_load" >&6; }
20109if test "x$ac_cv_func_shl_load" = x""yes; then
20110
20111cat >>confdefs.h <<\_ACEOF
20112#define HAVE_SHL_LOAD 1
20113_ACEOF
20114
20115 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20116else
20117 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20118$as_echo_n "checking for shl_load in -ldld... " >&6; }
20119if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20120 $as_echo_n "(cached) " >&6
20121else
20122 ac_check_lib_save_LIBS=$LIBS
20123LIBS="-ldld $LIBS"
20124cat >conftest.$ac_ext <<_ACEOF
20125/* confdefs.h. */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h. */
20130
20131/* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20134#ifdef __cplusplus
20135extern "C"
20136#endif
20137char shl_load ();
20138int
20139main ()
20140{
20141return shl_load ();
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext conftest$ac_exeext
20147if { (ac_try="$ac_link"
20148case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20153$as_echo "$ac_try_echo") >&5
20154 (eval "$ac_link") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest$ac_exeext && {
20164 test "$cross_compiling" = yes ||
20165 $as_test_x conftest$ac_exeext
20166 }; then
20167 ac_cv_lib_dld_shl_load=yes
20168else
20169 $as_echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_lib_dld_shl_load=no
20173fi
20174
20175rm -rf conftest.dSYM
20176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177 conftest$ac_exeext conftest.$ac_ext
20178LIBS=$ac_check_lib_save_LIBS
20179fi
20180{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20181$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20182if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
20183
20184cat >>confdefs.h <<\_ACEOF
20185#define HAVE_SHL_LOAD 1
20186_ACEOF
20187
20188 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20189 LIBADD_SHL_LOAD="-ldld"
20190fi
20191
20192fi
20193
20194
20195
20196case $host_os in
20197darwin[1567].*)
20198# We only want this for pre-Mac OS X 10.4.
20199 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20200$as_echo_n "checking for _dyld_func_lookup... " >&6; }
20201if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20202 $as_echo_n "(cached) " >&6
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20212#define _dyld_func_lookup innocuous__dyld_func_lookup
20213
20214/* System header to define __stub macros and hopefully few prototypes,
20215 which can conflict with char _dyld_func_lookup (); below.
20216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217 <limits.h> exists even on freestanding compilers. */
20218
20219#ifdef __STDC__
20220# include <limits.h>
20221#else
20222# include <assert.h>
20223#endif
20224
20225#undef _dyld_func_lookup
20226
20227/* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20230#ifdef __cplusplus
20231extern "C"
20232#endif
20233char _dyld_func_lookup ();
20234/* The GNU C library defines this for functions which it implements
20235 to always fail with ENOSYS. Some functions are actually named
20236 something starting with __ and the normal name is an alias. */
20237#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20238choke me
20239#endif
20240
20241int
20242main ()
20243{
20244return _dyld_func_lookup ();
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest.$ac_objext conftest$ac_exeext
20250if { (ac_try="$ac_link"
20251case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20256$as_echo "$ac_try_echo") >&5
20257 (eval "$ac_link") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest$ac_exeext && {
20267 test "$cross_compiling" = yes ||
20268 $as_test_x conftest$ac_exeext
20269 }; then
20270 ac_cv_func__dyld_func_lookup=yes
20271else
20272 $as_echo "$as_me: failed program was:" >&5
20273sed 's/^/| /' conftest.$ac_ext >&5
20274
20275 ac_cv_func__dyld_func_lookup=no
20276fi
20277
20278rm -rf conftest.dSYM
20279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281fi
20282{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20283$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
20284if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
20285
20286cat >>confdefs.h <<\_ACEOF
20287#define HAVE_DYLD 1
20288_ACEOF
20289
20290 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20291fi
20292
20293 ;;
20294beos*)
20295 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20296 ;;
20297cygwin* | mingw* | os2* | pw32*)
20298 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
20299$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
20300if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
20301 $as_echo_n "(cached) " >&6
20302else
20303 cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
20309#include <sys/cygwin.h>
20310
20311int
20312main ()
20313{
20314#ifndef cygwin_conv_path
20315 (void) cygwin_conv_path;
20316#endif
20317
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (ac_try="$ac_compile"
20324case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329$as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 ac_cv_have_decl_cygwin_conv_path=yes
20341else
20342 $as_echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_have_decl_cygwin_conv_path=no
20346fi
20347
20348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349fi
20350{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
20351$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
20352if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
20353
20354cat >>confdefs.h <<_ACEOF
20355#define HAVE_DECL_CYGWIN_CONV_PATH 1
20356_ACEOF
20357
20358
20359else
20360 cat >>confdefs.h <<_ACEOF
20361#define HAVE_DECL_CYGWIN_CONV_PATH 0
20362_ACEOF
20363
20364
20365fi
20366
20367
20368 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20369 ;;
20370esac
20371
20372{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20373$as_echo_n "checking for dld_link in -ldld... " >&6; }
20374if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20375 $as_echo_n "(cached) " >&6
20376else
20377 ac_check_lib_save_LIBS=$LIBS
20378LIBS="-ldld $LIBS"
20379cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385
20386/* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20389#ifdef __cplusplus
20390extern "C"
20391#endif
20392char dld_link ();
20393int
20394main ()
20395{
20396return dld_link ();
20397 ;
20398 return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext conftest$ac_exeext
20402if { (ac_try="$ac_link"
20403case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406esac
20407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20408$as_echo "$ac_try_echo") >&5
20409 (eval "$ac_link") 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest$ac_exeext && {
20419 test "$cross_compiling" = yes ||
20420 $as_test_x conftest$ac_exeext
20421 }; then
20422 ac_cv_lib_dld_dld_link=yes
20423else
20424 $as_echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_cv_lib_dld_dld_link=no
20428fi
20429
20430rm -rf conftest.dSYM
20431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432 conftest$ac_exeext conftest.$ac_ext
20433LIBS=$ac_check_lib_save_LIBS
20434fi
20435{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20436$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20437if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
20438
20439cat >>confdefs.h <<\_ACEOF
20440#define HAVE_DLD 1
20441_ACEOF
20442
20443 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20444fi
20445
20446
20447
20448
20449LT_DLPREOPEN=
20450if test -n "$LT_DLLOADERS"
20451then
20452 for lt_loader in $LT_DLLOADERS; do
20453 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20454 done
20455
20456cat >>confdefs.h <<\_ACEOF
20457#define HAVE_LIBDLLOADER 1
20458_ACEOF
20459
20460fi
20461
20462
20463LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20464
20465
20466ac_ext=c
20467ac_cpp='$CPP $CPPFLAGS'
20468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471
20472
20473{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20474$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20475if test "${lt_cv_sys_symbol_underscore+set}" = set; then
20476 $as_echo_n "(cached) " >&6
20477else
20478 lt_cv_sys_symbol_underscore=no
20479 cat > conftest.$ac_ext <<_LT_EOF
20480void nm_test_func(){}
20481int main(){nm_test_func;return 0;}
20482_LT_EOF
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; then
20488 # Now try to grab the symbols.
20489 ac_nlist=conftest.nm
20490 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20491 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20492 ac_status=$?
20493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && test -s "$ac_nlist"; then
20495 # See whether the symbols have a leading underscore.
20496 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20497 lt_cv_sys_symbol_underscore=yes
20498 else
20499 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20500 :
20501 else
20502 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20503 fi
20504 fi
20505 else
20506 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20507 fi
20508 else
20509 echo "configure: failed program was:" >&5
20510 cat conftest.c >&5
20511 fi
20512 rm -rf conftest*
20513
20514fi
20515{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
20516$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20517 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20518
20519
20520if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20521 if test x"$libltdl_cv_func_dlopen" = xyes ||
20522 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20523 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20524$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20525if test "${libltdl_cv_need_uscore+set}" = set; then
20526 $as_echo_n "(cached) " >&6
20527else
20528 libltdl_cv_need_uscore=unknown
20529 save_LIBS="$LIBS"
20530 LIBS="$LIBS $LIBADD_DLOPEN"
20531 if test "$cross_compiling" = yes; then :
20532 libltdl_cv_need_uscore=cross
20533else
20534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20535 lt_status=$lt_dlunknown
20536 cat > conftest.$ac_ext <<_LT_EOF
cristy736173a2009-09-20 21:18:22 +000020537#line 20537 "configure"
cristy3ed852e2009-09-05 21:47:34 +000020538#include "confdefs.h"
20539
20540#if HAVE_DLFCN_H
20541#include <dlfcn.h>
20542#endif
20543
20544#include <stdio.h>
20545
20546#ifdef RTLD_GLOBAL
20547# define LT_DLGLOBAL RTLD_GLOBAL
20548#else
20549# ifdef DL_GLOBAL
20550# define LT_DLGLOBAL DL_GLOBAL
20551# else
20552# define LT_DLGLOBAL 0
20553# endif
20554#endif
20555
20556/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20557 find out it does not work in some platform. */
20558#ifndef LT_DLLAZY_OR_NOW
20559# ifdef RTLD_LAZY
20560# define LT_DLLAZY_OR_NOW RTLD_LAZY
20561# else
20562# ifdef DL_LAZY
20563# define LT_DLLAZY_OR_NOW DL_LAZY
20564# else
20565# ifdef RTLD_NOW
20566# define LT_DLLAZY_OR_NOW RTLD_NOW
20567# else
20568# ifdef DL_NOW
20569# define LT_DLLAZY_OR_NOW DL_NOW
20570# else
20571# define LT_DLLAZY_OR_NOW 0
20572# endif
20573# endif
20574# endif
20575# endif
20576#endif
20577
20578void fnord() { int i=42;}
20579int main ()
20580{
20581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20582 int status = $lt_dlunknown;
20583
20584 if (self)
20585 {
20586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20588 /* dlclose (self); */
20589 }
20590 else
20591 puts (dlerror ());
20592
20593 return status;
20594}
20595_LT_EOF
20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597 (eval $ac_link) 2>&5
20598 ac_status=$?
20599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20601 (./conftest; exit; ) >&5 2>/dev/null
20602 lt_status=$?
20603 case x$lt_status in
20604 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20605 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20606 x$lt_dlunknown|x*) ;;
20607 esac
20608 else :
20609 # compilation failed
20610
20611 fi
20612fi
20613rm -fr conftest*
20614
20615 LIBS="$save_LIBS"
20616
20617fi
20618{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20619$as_echo "$libltdl_cv_need_uscore" >&6; }
20620 fi
20621fi
20622
20623if test x"$libltdl_cv_need_uscore" = xyes; then
20624
20625cat >>confdefs.h <<\_ACEOF
20626#define NEED_USCORE 1
20627_ACEOF
20628
20629fi
20630
20631{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20632$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20633if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
20634 $as_echo_n "(cached) " >&6
20635else
20636 # PORTME does your system automatically load deplibs for dlopen?
20637 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20638 # For now, we just catch OSes we know something about -- in the
20639 # future, we'll try test this programmatically.
20640 lt_cv_sys_dlopen_deplibs=unknown
20641 case $host_os in
20642 aix3*|aix4.1.*|aix4.2.*)
20643 # Unknown whether this is true for these versions of AIX, but
20644 # we want this `case' here to explicitly catch those versions.
20645 lt_cv_sys_dlopen_deplibs=unknown
20646 ;;
20647 aix[4-9]*)
20648 lt_cv_sys_dlopen_deplibs=yes
20649 ;;
20650 amigaos*)
20651 case $host_cpu in
20652 powerpc)
20653 lt_cv_sys_dlopen_deplibs=no
20654 ;;
20655 esac
20656 ;;
20657 darwin*)
20658 # Assuming the user has installed a libdl from somewhere, this is true
20659 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20660 lt_cv_sys_dlopen_deplibs=yes
20661 ;;
20662 freebsd* | dragonfly*)
20663 lt_cv_sys_dlopen_deplibs=yes
20664 ;;
20665 gnu* | linux* | k*bsd*-gnu)
20666 # GNU and its variants, using gnu ld.so (Glibc)
20667 lt_cv_sys_dlopen_deplibs=yes
20668 ;;
20669 hpux10*|hpux11*)
20670 lt_cv_sys_dlopen_deplibs=yes
20671 ;;
20672 interix*)
20673 lt_cv_sys_dlopen_deplibs=yes
20674 ;;
20675 irix[12345]*|irix6.[01]*)
20676 # Catch all versions of IRIX before 6.2, and indicate that we don't
20677 # know how it worked for any of those versions.
20678 lt_cv_sys_dlopen_deplibs=unknown
20679 ;;
20680 irix*)
20681 # The case above catches anything before 6.2, and it's known that
20682 # at 6.2 and later dlopen does load deplibs.
20683 lt_cv_sys_dlopen_deplibs=yes
20684 ;;
20685 netbsd*)
20686 lt_cv_sys_dlopen_deplibs=yes
20687 ;;
20688 openbsd*)
20689 lt_cv_sys_dlopen_deplibs=yes
20690 ;;
20691 osf[1234]*)
20692 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20693 # it did *not* use an RPATH in a shared library to find objects the
20694 # library depends on, so we explicitly say `no'.
20695 lt_cv_sys_dlopen_deplibs=no
20696 ;;
20697 osf5.0|osf5.0a|osf5.1)
20698 # dlopen *does* load deplibs and with the right loader patch applied
20699 # it even uses RPATH in a shared library to search for shared objects
20700 # that the library depends on, but there's no easy way to know if that
20701 # patch is installed. Since this is the case, all we can really
20702 # say is unknown -- it depends on the patch being installed. If
20703 # it is, this changes to `yes'. Without it, it would be `no'.
20704 lt_cv_sys_dlopen_deplibs=unknown
20705 ;;
20706 osf*)
20707 # the two cases above should catch all versions of osf <= 5.1. Read
20708 # the comments above for what we know about them.
20709 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20710 # is used to find them so we can finally say `yes'.
20711 lt_cv_sys_dlopen_deplibs=yes
20712 ;;
20713 qnx*)
20714 lt_cv_sys_dlopen_deplibs=yes
20715 ;;
20716 solaris*)
20717 lt_cv_sys_dlopen_deplibs=yes
20718 ;;
20719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20720 libltdl_cv_sys_dlopen_deplibs=yes
20721 ;;
20722 esac
20723
20724fi
20725{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
20726$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20727if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20728
20729cat >>confdefs.h <<\_ACEOF
20730#define LTDL_DLOPEN_DEPLIBS 1
20731_ACEOF
20732
20733fi
20734
20735:
20736
20737
20738for ac_header in argz.h
20739do
20740as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20741{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20742$as_echo_n "checking for $ac_header... " >&6; }
20743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20744 $as_echo_n "(cached) " >&6
20745else
20746 cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752$ac_includes_default
20753
20754#include <$ac_header>
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (ac_try="$ac_compile"
20758case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761esac
20762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20763$as_echo "$ac_try_echo") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20774 eval "$as_ac_Header=yes"
20775else
20776 $as_echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 eval "$as_ac_Header=no"
20780fi
20781
20782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783fi
20784ac_res=`eval 'as_val=${'$as_ac_Header'}
20785 $as_echo "$as_val"'`
20786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20787$as_echo "$ac_res" >&6; }
20788as_val=`eval 'as_val=${'$as_ac_Header'}
20789 $as_echo "$as_val"'`
20790 if test "x$as_val" = x""yes; then
20791 cat >>confdefs.h <<_ACEOF
20792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20793_ACEOF
20794
20795fi
20796
20797done
20798
20799
20800{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
20801$as_echo_n "checking for error_t... " >&6; }
20802if test "${ac_cv_type_error_t+set}" = set; then
20803 $as_echo_n "(cached) " >&6
20804else
20805 ac_cv_type_error_t=no
20806cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812#if defined(HAVE_ARGZ_H)
20813# include <argz.h>
20814#endif
20815
20816int
20817main ()
20818{
20819if (sizeof (error_t))
20820 return 0;
20821 ;
20822 return 0;
20823}
20824_ACEOF
20825rm -f conftest.$ac_objext
20826if { (ac_try="$ac_compile"
20827case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830esac
20831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20832$as_echo "$ac_try_echo") >&5
20833 (eval "$ac_compile") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest.$ac_objext; then
20843 cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849#if defined(HAVE_ARGZ_H)
20850# include <argz.h>
20851#endif
20852
20853int
20854main ()
20855{
20856if (sizeof ((error_t)))
20857 return 0;
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (ac_try="$ac_compile"
20864case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867esac
20868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20869$as_echo "$ac_try_echo") >&5
20870 (eval "$ac_compile") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest.$ac_objext; then
20880 :
20881else
20882 $as_echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 ac_cv_type_error_t=yes
20886fi
20887
20888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889else
20890 $as_echo "$as_me: failed program was:" >&5
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893
20894fi
20895
20896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897fi
20898{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20899$as_echo "$ac_cv_type_error_t" >&6; }
20900if test "x$ac_cv_type_error_t" = x""yes; then
20901
20902cat >>confdefs.h <<_ACEOF
20903#define HAVE_ERROR_T 1
20904_ACEOF
20905
20906
20907else
20908
20909cat >>confdefs.h <<\_ACEOF
20910#define error_t int
20911_ACEOF
20912
20913
20914cat >>confdefs.h <<\_ACEOF
20915#define __error_t_defined 1
20916_ACEOF
20917
20918fi
20919
20920
20921ARGZ_H=
20922
20923
20924
20925
20926
20927
20928
20929for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20930 argz_next argz_stringify
20931do
20932as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20933{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20934$as_echo_n "checking for $ac_func... " >&6; }
20935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20936 $as_echo_n "(cached) " >&6
20937else
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20946#define $ac_func innocuous_$ac_func
20947
20948/* System header to define __stub macros and hopefully few prototypes,
20949 which can conflict with char $ac_func (); below.
20950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20951 <limits.h> exists even on freestanding compilers. */
20952
20953#ifdef __STDC__
20954# include <limits.h>
20955#else
20956# include <assert.h>
20957#endif
20958
20959#undef $ac_func
20960
20961/* Override any GCC internal prototype to avoid an error.
20962 Use char because int might match the return type of a GCC
20963 builtin and then its argument prototype would still apply. */
20964#ifdef __cplusplus
20965extern "C"
20966#endif
20967char $ac_func ();
20968/* The GNU C library defines this for functions which it implements
20969 to always fail with ENOSYS. Some functions are actually named
20970 something starting with __ and the normal name is an alias. */
20971#if defined __stub_$ac_func || defined __stub___$ac_func
20972choke me
20973#endif
20974
20975int
20976main ()
20977{
20978return $ac_func ();
20979 ;
20980 return 0;
20981}
20982_ACEOF
20983rm -f conftest.$ac_objext conftest$ac_exeext
20984if { (ac_try="$ac_link"
20985case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988esac
20989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20990$as_echo "$ac_try_echo") >&5
20991 (eval "$ac_link") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest$ac_exeext && {
21001 test "$cross_compiling" = yes ||
21002 $as_test_x conftest$ac_exeext
21003 }; then
21004 eval "$as_ac_var=yes"
21005else
21006 $as_echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009 eval "$as_ac_var=no"
21010fi
21011
21012rm -rf conftest.dSYM
21013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21014 conftest$ac_exeext conftest.$ac_ext
21015fi
21016ac_res=`eval 'as_val=${'$as_ac_var'}
21017 $as_echo "$as_val"'`
21018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21019$as_echo "$ac_res" >&6; }
21020as_val=`eval 'as_val=${'$as_ac_var'}
21021 $as_echo "$as_val"'`
21022 if test "x$as_val" = x""yes; then
21023 cat >>confdefs.h <<_ACEOF
21024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21025_ACEOF
21026
21027else
21028 ARGZ_H=argz.h;
21029
21030 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21031
21032fi
21033done
21034
21035
21036if test -z "$ARGZ_H"; then
21037 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
21038$as_echo_n "checking if argz actually works... " >&6; }
21039if test "${lt_cv_sys_argz_works+set}" = set; then
21040 $as_echo_n "(cached) " >&6
21041else
21042 case $host_os in #(
21043 *cygwin*)
21044 lt_cv_sys_argz_works=no
21045 if test "$cross_compiling" != no; then
21046 lt_cv_sys_argz_works="guessing no"
21047 else
21048 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21049 save_IFS=$IFS
21050 IFS=-.
21051 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21052 IFS=$save_IFS
21053 lt_os_major=${2-0}
21054 lt_os_minor=${3-0}
21055 lt_os_micro=${4-0}
21056 if test "$lt_os_major" -gt 1 \
21057 || { test "$lt_os_major" -eq 1 \
21058 && { test "$lt_os_minor" -gt 5 \
21059 || { test "$lt_os_minor" -eq 5 \
21060 && test "$lt_os_micro" -gt 24; }; }; }; then
21061 lt_cv_sys_argz_works=yes
21062 fi
21063 fi
21064 ;; #(
21065 *) lt_cv_sys_argz_works=yes ;;
21066 esac
21067fi
21068{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
21069$as_echo "$lt_cv_sys_argz_works" >&6; }
21070 if test $lt_cv_sys_argz_works = yes; then
21071
21072cat >>confdefs.h <<\_ACEOF
21073#define HAVE_WORKING_ARGZ 1
21074_ACEOF
21075
21076else
21077 ARGZ_H=argz.h
21078
21079
21080 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21081
21082fi
21083
21084fi
21085
21086
21087
21088
21089{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
21090$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
21091if test "${libltdl_cv_preloaded_symbols+set}" = set; then
21092 $as_echo_n "(cached) " >&6
21093else
21094 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21095 libltdl_cv_preloaded_symbols=yes
21096 else
21097 libltdl_cv_preloaded_symbols=no
21098 fi
21099
21100fi
21101{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
21102$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21103if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21104
21105cat >>confdefs.h <<\_ACEOF
21106#define HAVE_PRELOADED_SYMBOLS 1
21107_ACEOF
21108
21109fi
21110
21111# Set options
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123# Check whether --with-included_ltdl was given.
21124if test "${with_included_ltdl+set}" = set; then
21125 withval=$with_included_ltdl;
21126fi
21127
21128
21129if test "x$with_included_ltdl" != xyes; then
21130 # We are not being forced to use the included libltdl sources, so
21131 # decide whether there is a useful installed version we can use.
21132 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
21133$as_echo_n "checking for ltdl.h... " >&6; }
21134if test "${ac_cv_header_ltdl_h+set}" = set; then
21135 $as_echo_n "(cached) " >&6
21136else
21137 cat >conftest.$ac_ext <<_ACEOF
21138/* confdefs.h. */
21139_ACEOF
21140cat confdefs.h >>conftest.$ac_ext
21141cat >>conftest.$ac_ext <<_ACEOF
21142/* end confdefs.h. */
21143$ac_includes_default
21144
21145
21146#include <ltdl.h>
21147_ACEOF
21148rm -f conftest.$ac_objext
21149if { (ac_try="$ac_compile"
21150case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153esac
21154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21155$as_echo "$ac_try_echo") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_cv_header_ltdl_h=yes
21167else
21168 $as_echo "$as_me: failed program was:" >&5
21169sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ac_cv_header_ltdl_h=no
21172fi
21173
21174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175fi
21176{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
21177$as_echo "$ac_cv_header_ltdl_h" >&6; }
21178if test "x$ac_cv_header_ltdl_h" = x""yes; then
21179 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
21180$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
21181if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
21182 $as_echo_n "(cached) " >&6
21183else
21184 cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190$ac_includes_default
21191 #include <ltdl.h>
21192
21193int
21194main ()
21195{
21196#ifndef lt_dlinterface_register
21197 (void) lt_dlinterface_register;
21198#endif
21199
21200 ;
21201 return 0;
21202}
21203_ACEOF
21204rm -f conftest.$ac_objext
21205if { (ac_try="$ac_compile"
21206case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209esac
21210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21211$as_echo "$ac_try_echo") >&5
21212 (eval "$ac_compile") 2>conftest.er1
21213 ac_status=$?
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
21216 cat conftest.err >&5
21217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest.$ac_objext; then
21222 ac_cv_have_decl_lt_dlinterface_register=yes
21223else
21224 $as_echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227 ac_cv_have_decl_lt_dlinterface_register=no
21228fi
21229
21230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231fi
21232{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
21233$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
21234if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
21235 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
21236$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
21237if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
21238 $as_echo_n "(cached) " >&6
21239else
21240 ac_check_lib_save_LIBS=$LIBS
21241LIBS="-lltdl $LIBS"
21242cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h. */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h. */
21248
21249/* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21252#ifdef __cplusplus
21253extern "C"
21254#endif
21255char lt_dladvise_preload ();
21256int
21257main ()
21258{
21259return lt_dladvise_preload ();
21260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext conftest$ac_exeext
21265if { (ac_try="$ac_link"
21266case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21269esac
21270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21271$as_echo "$ac_try_echo") >&5
21272 (eval "$ac_link") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest$ac_exeext && {
21282 test "$cross_compiling" = yes ||
21283 $as_test_x conftest$ac_exeext
21284 }; then
21285 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21286else
21287 $as_echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_lib_ltdl_lt_dladvise_preload=no
21291fi
21292
21293rm -rf conftest.dSYM
21294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21295 conftest$ac_exeext conftest.$ac_ext
21296LIBS=$ac_check_lib_save_LIBS
21297fi
21298{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21299$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21300if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
21301 with_included_ltdl=no
21302else
21303 with_included_ltdl=yes
21304fi
21305
21306else
21307 with_included_ltdl=yes
21308fi
21309
21310else
21311 with_included_ltdl=yes
21312fi
21313
21314
21315fi
21316
21317
21318
21319
21320# Check whether --with-ltdl_include was given.
21321if test "${with_ltdl_include+set}" = set; then
21322 withval=$with_ltdl_include;
21323fi
21324
21325
21326if test -n "$with_ltdl_include"; then
21327 if test -f "$with_ltdl_include/ltdl.h"; then :
21328 else
21329 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
21330$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
21331 { (exit 1); exit 1; }; }
21332 fi
21333else
21334 with_ltdl_include=no
21335fi
21336
21337
21338# Check whether --with-ltdl_lib was given.
21339if test "${with_ltdl_lib+set}" = set; then
21340 withval=$with_ltdl_lib;
21341fi
21342
21343
21344if test -n "$with_ltdl_lib"; then
21345 if test -f "$with_ltdl_lib/libltdl.la"; then :
21346 else
21347 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
21348$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
21349 { (exit 1); exit 1; }; }
21350 fi
21351else
21352 with_ltdl_lib=no
21353fi
21354
21355case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21356 ,yes,no,no,)
21357 case $enable_ltdl_convenience in
21358 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
21359$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
21360 { (exit 1); exit 1; }; } ;;
21361 "") enable_ltdl_convenience=yes
21362 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21363esac
21364LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21365LTDLDEPS=$LIBLTDL
21366LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21367
21368
21369
21370
21371
21372# For backwards non-gettext consistent compatibility...
21373INCLTDL="$LTDLINCL"
21374
21375
21376 ;;
21377 ,no,no,no,)
21378 # If the included ltdl is not to be used, then use the
21379 # preinstalled libltdl we found.
21380
21381cat >>confdefs.h <<\_ACEOF
21382#define HAVE_LTDL 1
21383_ACEOF
21384
21385 LIBLTDL=-lltdl
21386 LTDLDEPS=
21387 LTDLINCL=
21388 ;;
21389 ,no*,no,*)
21390 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
21391$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
21392 { (exit 1); exit 1; }; }
21393 ;;
21394 *) with_included_ltdl=no
21395 LIBLTDL="-L$with_ltdl_lib -lltdl"
21396 LTDLDEPS=
21397 LTDLINCL="-I$with_ltdl_include"
21398 ;;
21399esac
21400INCLTDL="$LTDLINCL"
21401
21402# Report our decision...
21403{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
21404$as_echo_n "checking where to find libltdl headers... " >&6; }
21405{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
21406$as_echo "$LTDLINCL" >&6; }
21407{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
21408$as_echo_n "checking where to find libltdl library... " >&6; }
21409{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
21410$as_echo "$LIBLTDL" >&6; }
21411
21412
21413
21414# Check whether --enable-ltdl-install was given.
21415if test "${enable_ltdl_install+set}" = set; then
21416 enableval=$enable_ltdl_install;
21417fi
21418
21419
21420case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21421 *yes*) ;;
21422 *) enable_ltdl_convenience=yes ;;
21423esac
21424
21425 if test x"${enable_ltdl_install-no}" != xno; then
21426 INSTALL_LTDL_TRUE=
21427 INSTALL_LTDL_FALSE='#'
21428else
21429 INSTALL_LTDL_TRUE='#'
21430 INSTALL_LTDL_FALSE=
21431fi
21432
21433 if test x"${enable_ltdl_convenience-no}" != xno; then
21434 CONVENIENCE_LTDL_TRUE=
21435 CONVENIENCE_LTDL_FALSE='#'
21436else
21437 CONVENIENCE_LTDL_TRUE='#'
21438 CONVENIENCE_LTDL_FALSE=
21439fi
21440
21441
21442
21443
21444
21445
21446
21447# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21448# the user used. This is so that ltdl.h can pick up the parent projects
21449# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21450# definitions required by ltdl.c.
21451# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21462do
21463as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21464{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21465$as_echo_n "checking for $ac_header... " >&6; }
21466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21467 $as_echo_n "(cached) " >&6
21468else
21469 cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h. */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */
21475$ac_includes_default
21476
21477#include <$ac_header>
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (ac_try="$ac_compile"
21481case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21484esac
21485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21486$as_echo "$ac_try_echo") >&5
21487 (eval "$ac_compile") 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest.$ac_objext; then
21497 eval "$as_ac_Header=yes"
21498else
21499 $as_echo "$as_me: failed program was:" >&5
21500sed 's/^/| /' conftest.$ac_ext >&5
21501
21502 eval "$as_ac_Header=no"
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506fi
21507ac_res=`eval 'as_val=${'$as_ac_Header'}
21508 $as_echo "$as_val"'`
21509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21510$as_echo "$ac_res" >&6; }
21511as_val=`eval 'as_val=${'$as_ac_Header'}
21512 $as_echo "$as_val"'`
21513 if test "x$as_val" = x""yes; then
21514 cat >>confdefs.h <<_ACEOF
21515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21516_ACEOF
21517
21518fi
21519
21520done
21521
21522
21523
21524
21525
21526for ac_func in closedir opendir readdir
21527do
21528as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21529{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21530$as_echo_n "checking for $ac_func... " >&6; }
21531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21532 $as_echo_n "(cached) " >&6
21533else
21534 cat >conftest.$ac_ext <<_ACEOF
21535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
21540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21542#define $ac_func innocuous_$ac_func
21543
21544/* System header to define __stub macros and hopefully few prototypes,
21545 which can conflict with char $ac_func (); below.
21546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21547 <limits.h> exists even on freestanding compilers. */
21548
21549#ifdef __STDC__
21550# include <limits.h>
21551#else
21552# include <assert.h>
21553#endif
21554
21555#undef $ac_func
21556
21557/* Override any GCC internal prototype to avoid an error.
21558 Use char because int might match the return type of a GCC
21559 builtin and then its argument prototype would still apply. */
21560#ifdef __cplusplus
21561extern "C"
21562#endif
21563char $ac_func ();
21564/* The GNU C library defines this for functions which it implements
21565 to always fail with ENOSYS. Some functions are actually named
21566 something starting with __ and the normal name is an alias. */
21567#if defined __stub_$ac_func || defined __stub___$ac_func
21568choke me
21569#endif
21570
21571int
21572main ()
21573{
21574return $ac_func ();
21575 ;
21576 return 0;
21577}
21578_ACEOF
21579rm -f conftest.$ac_objext conftest$ac_exeext
21580if { (ac_try="$ac_link"
21581case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584esac
21585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21586$as_echo "$ac_try_echo") >&5
21587 (eval "$ac_link") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest$ac_exeext && {
21597 test "$cross_compiling" = yes ||
21598 $as_test_x conftest$ac_exeext
21599 }; then
21600 eval "$as_ac_var=yes"
21601else
21602 $as_echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605 eval "$as_ac_var=no"
21606fi
21607
21608rm -rf conftest.dSYM
21609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21610 conftest$ac_exeext conftest.$ac_ext
21611fi
21612ac_res=`eval 'as_val=${'$as_ac_var'}
21613 $as_echo "$as_val"'`
21614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21615$as_echo "$ac_res" >&6; }
21616as_val=`eval 'as_val=${'$as_ac_var'}
21617 $as_echo "$as_val"'`
21618 if test "x$as_val" = x""yes; then
21619 cat >>confdefs.h <<_ACEOF
21620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21621_ACEOF
21622
21623else
21624
21625
21626 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21627
21628fi
21629done
21630
21631
21632
21633for ac_func in strlcat strlcpy
21634do
21635as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21637$as_echo_n "checking for $ac_func... " >&6; }
21638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21639 $as_echo_n "(cached) " >&6
21640else
21641 cat >conftest.$ac_ext <<_ACEOF
21642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
21647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21649#define $ac_func innocuous_$ac_func
21650
21651/* System header to define __stub macros and hopefully few prototypes,
21652 which can conflict with char $ac_func (); below.
21653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21654 <limits.h> exists even on freestanding compilers. */
21655
21656#ifdef __STDC__
21657# include <limits.h>
21658#else
21659# include <assert.h>
21660#endif
21661
21662#undef $ac_func
21663
21664/* Override any GCC internal prototype to avoid an error.
21665 Use char because int might match the return type of a GCC
21666 builtin and then its argument prototype would still apply. */
21667#ifdef __cplusplus
21668extern "C"
21669#endif
21670char $ac_func ();
21671/* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674#if defined __stub_$ac_func || defined __stub___$ac_func
21675choke me
21676#endif
21677
21678int
21679main ()
21680{
21681return $ac_func ();
21682 ;
21683 return 0;
21684}
21685_ACEOF
21686rm -f conftest.$ac_objext conftest$ac_exeext
21687if { (ac_try="$ac_link"
21688case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691esac
21692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693$as_echo "$ac_try_echo") >&5
21694 (eval "$ac_link") 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext && {
21704 test "$cross_compiling" = yes ||
21705 $as_test_x conftest$ac_exeext
21706 }; then
21707 eval "$as_ac_var=yes"
21708else
21709 $as_echo "$as_me: failed program was:" >&5
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
21712 eval "$as_ac_var=no"
21713fi
21714
21715rm -rf conftest.dSYM
21716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21718fi
21719ac_res=`eval 'as_val=${'$as_ac_var'}
21720 $as_echo "$as_val"'`
21721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21722$as_echo "$ac_res" >&6; }
21723as_val=`eval 'as_val=${'$as_ac_var'}
21724 $as_echo "$as_val"'`
21725 if test "x$as_val" = x""yes; then
21726 cat >>confdefs.h <<_ACEOF
21727#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728_ACEOF
21729
21730else
21731
21732
21733 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21734
21735fi
21736done
21737
21738
21739
21740cat >>confdefs.h <<_ACEOF
21741#define LT_LIBEXT "$libext"
21742_ACEOF
21743
21744
21745name=ltdl
21746LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
21747
21748
21749
21750
21751
21752
21753
21754
21755# Only expand once:
21756
21757
21758
21759# Check to see if building shared libraries
21760libtool_build_shared_libs='no'
21761if test "$enable_shared" = 'yes'; then
21762 libtool_build_shared_libs='yes'
21763fi
21764
21765# Check to see if building static libraries
21766libtool_build_static_libs='no'
21767if test "$enable_static" = 'yes'; then
21768 libtool_build_static_libs='yes'
21769fi
21770
21771# MinGW and Cygwin can't build C++ DLLs which support exceptions.
21772if test "${StaticCplusPlusLibraries}" = 'yes'; then
21773 LTCXXLIBOPTS='--static'
21774
21775fi
21776
21777#
21778# Enable support for building loadable modules
21779#
21780
21781# Check whether --with-modules was given.
21782if test "${with_modules+set}" = set; then
21783 withval=$with_modules; with_modules=$withval
21784else
21785 with_modules=$libtool_build_shared_libs
21786fi
21787
21788
21789# Only allow building loadable modules if we are building shared libraries
21790if test "$with_modules" != 'no' ; then
21791 if test "$libtool_build_shared_libs" = 'no'; then
21792 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21793$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21794 with_modules='no'
21795 fi
21796fi
21797if test "$with_modules" != 'no'; then
21798
21799cat >>confdefs.h <<\_ACEOF
21800#define BUILD_MODULES 1
21801_ACEOF
21802
21803fi
21804 if test "$with_modules" != 'no'; then
21805 WITH_MODULES_TRUE=
21806 WITH_MODULES_FALSE='#'
21807else
21808 WITH_MODULES_TRUE='#'
21809 WITH_MODULES_FALSE=
21810fi
21811
21812
21813# Enable building/use of libltdl if we are building shared libraries regardless
21814# of whether modules are built or not.
21815with_ltdl='no'
21816if test "$libtool_build_shared_libs" != 'no'; then
21817 with_ltdl='yes'
21818fi
21819
21820 if test "$with_ltdl" != 'no'; then
21821 WITH_LTDL_TRUE=
21822 WITH_LTDL_FALSE='#'
21823else
21824 WITH_LTDL_TRUE='#'
21825 WITH_LTDL_FALSE=
21826fi
21827
21828if test "$with_ltdl" != 'no'; then
21829
21830cat >>confdefs.h <<\_ACEOF
21831#define LTDL_DELEGATE 1
21832_ACEOF
21833
21834
21835 # Set DLLDFLAGS
21836 if test X"$enable_shared" = Xyes; then
21837 DLLDFLAGS=-export-dynamic
21838
21839 fi
21840fi
21841
21842# Enable build using delegate libraries built in subdirectories rather than installed
21843# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21844# Check whether --enable-delegate-build was given.
21845if test "${enable_delegate_build+set}" = set; then
21846 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21847else
21848 enable_delegate_build='no'
21849fi
21850
21851
21852# Check whether --enable-deprecated was given.
21853if test "${enable_deprecated+set}" = set; then
21854 enableval=$enable_deprecated; enable_deprecated=$enableval
21855else
21856 enable_deprecated='no'
21857fi
21858
21859
21860if test "$enable_deprecated" = 'yes'; then
21861
21862cat >>confdefs.h <<\_ACEOF
21863#define EXCLUDE_DEPRECATED 1
21864_ACEOF
21865
21866else
21867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21868fi
21869
21870# Build a version of ImageMagick which operates uninstalled.
21871# Used to build distributions located via MAGICK_HOME / executable path
21872# Check whether --enable-installed was given.
21873if test "${enable_installed+set}" = set; then
21874 enableval=$enable_installed; enable_installed=$enableval
21875else
21876 enable_installed='yes'
21877fi
21878
21879
21880if test "$enable_installed" = 'yes'; then
21881
21882cat >>confdefs.h <<\_ACEOF
21883#define INSTALLED_SUPPORT 1
21884_ACEOF
21885
21886else
21887 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21888fi
21889
21890# Permit enciphering and deciphering image pixels.
21891# Check whether --enable-cipher was given.
21892if test "${enable_cipher+set}" = set; then
21893 enableval=$enable_cipher; enable_cipher=$enableval
21894else
21895 enable_cipher='yes'
21896fi
21897
21898
21899if test "$enable_cipher" = 'yes'; then
21900
21901cat >>confdefs.h <<\_ACEOF
21902#define CIPHER_SUPPORT 1
21903_ACEOF
21904
21905fi
21906
21907# Build an embeddable version of ImageMagick.
21908# Check whether --enable-embeddable was given.
21909if test "${enable_embeddable+set}" = set; then
21910 enableval=$enable_embeddable; enable_embeddable=$enableval
21911else
21912 enable_embeddable='no'
21913fi
21914
21915
21916if test "$enable_embeddable" = 'yes'; then
21917
21918cat >>confdefs.h <<\_ACEOF
21919#define EMBEDDABLE_SUPPORT 1
21920_ACEOF
21921
21922fi
21923
21924# Build a high dynamic range version of ImageMagick.
21925# Check whether --enable-hdri was given.
21926if test "${enable_hdri+set}" = set; then
21927 enableval=$enable_hdri; enable_hdri=$enableval
21928else
21929 enable_hdri='no'
21930fi
21931
21932
21933MAGICK_HDRI=""
21934if test "$enable_hdri" = 'yes'; then
21935 MAGICK_HDRI="HDRI"
21936
21937cat >>confdefs.h <<\_ACEOF
21938#define HDRI_SUPPORT 1
21939_ACEOF
21940
21941fi
21942
21943# Enable verbose output from libtool (enable libtool's default)
21944# Check whether --enable-libtool-verbose was given.
21945if test "${enable_libtool_verbose+set}" = set; then
21946 enableval=$enable_libtool_verbose; enable_libtool_verbose=$enableval
21947else
21948 enable_libtool_verbose='no'
21949fi
21950
21951
21952if test "$enable_libtool_verbose" = 'no'; then
21953 LIBTOOL="$LIBTOOL --silent"
21954fi
21955
21956# Build a version of ImageMagick with assert statements.
21957# Check whether --enable-assert was given.
21958if test "${enable_assert+set}" = set; then
21959 enableval=$enable_assert; enable_assert=$enableval
21960else
21961 enable_assert='yes'
21962fi
21963
21964
21965if test "$enable_assert" = 'no'; then
21966
21967cat >>confdefs.h <<\_ACEOF
21968#define NDEBUG 1
21969_ACEOF
21970
21971fi
21972
21973# Add configure option --enable-maintainer-mode which enables dependency
21974# checking and generation useful to package maintainers. This is made an
21975# option to avoid confusing end users.
21976
21977{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21978$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21979 # Check whether --enable-maintainer-mode was given.
21980if test "${enable_maintainer_mode+set}" = set; then
21981 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21982else
21983 USE_MAINTAINER_MODE=no
21984fi
21985
21986 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21987$as_echo "$USE_MAINTAINER_MODE" >&6; }
21988 if test $USE_MAINTAINER_MODE = yes; then
21989 MAINTAINER_MODE_TRUE=
21990 MAINTAINER_MODE_FALSE='#'
21991else
21992 MAINTAINER_MODE_TRUE='#'
21993 MAINTAINER_MODE_FALSE=
21994fi
21995
21996 MAINT=$MAINTAINER_MODE_TRUE
21997
21998
21999
22000
22001# Enable ccmalloc memory debugging support
22002# Check whether --enable-ccmalloc was given.
22003if test "${enable_ccmalloc+set}" = set; then
22004 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22005else
22006 enable_ccmalloc='no'
22007fi
22008
22009
22010# Enable Electric Fence memory debugging support
22011# Check whether --enable-efence was given.
22012if test "${enable_efence+set}" = set; then
22013 enableval=$enable_efence; enable_efence=$enableval
22014else
22015 enable_efence='no'
22016fi
22017
22018
22019# Enable prof-based profiling support
22020# Check whether --enable-prof was given.
22021if test "${enable_prof+set}" = set; then
22022 enableval=$enable_prof; enable_prof=$enableval
22023else
22024 enable_prof='no'
22025fi
22026
22027
22028# Enable gprof-based profiling support
22029# Check whether --enable-gprof was given.
22030if test "${enable_gprof+set}" = set; then
22031 enableval=$enable_gprof; enable_gprof=$enableval
22032else
22033 enable_gprof='no'
22034fi
22035
22036
22037# Enable gcov-based profiling support
22038# Check whether --enable-gcov was given.
22039if test "${enable_gcov+set}" = set; then
22040 enableval=$enable_gcov; enable_gcov=$enableval
22041else
22042 enable_gcov='no'
22043fi
22044
22045
22046enable_profiling='no'
22047if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22048 enable_profiling='yes'
22049 if test "$libtool_build_shared_libs" = 'yes'; then
22050 echo "Warning: Can not profile code using shared libraries"
22051 fi
22052fi
22053
22054# Magick API method prefix
22055
22056# Check whether --with-method-prefix was given.
22057if test "${with_method_prefix+set}" = set; then
22058 withval=$with_method_prefix; with_method_prefix=$enableval
22059else
22060 with_method_prefix=''
22061fi
22062
22063
22064if test "$with_method_prefix" != ''; then
22065
22066cat >>confdefs.h <<_ACEOF
22067#define NAMESPACE_PREFIX $with_method_prefix
22068_ACEOF
22069
22070fi
22071
22072# Number of bits in a Quantum
22073
22074# Check whether --with-quantum-depth was given.
22075if test "${with_quantum_depth+set}" = set; then
22076 withval=$with_quantum_depth; with_quantum_depth=$withval
22077else
22078 with_quantum_depth=16
22079fi
22080
22081
22082if test "$with_quantum_depth" != '8'; then
22083 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22084fi
22085
22086case "${with_quantum_depth}" in
22087 8 ) ;;
22088 16 ) ;;
22089 32 ) ;;
22090 64 ) ;;
22091 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
22092$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
22093 { (exit 16); exit 16; }; } ;;
22094esac
22095QUANTUM_DEPTH="$with_quantum_depth"
22096
22097cat >>confdefs.h <<_ACEOF
22098#define QUANTUM_DEPTH $QUANTUM_DEPTH
22099_ACEOF
22100
22101
22102# Set pixel cache threshold
22103
22104# Check whether --with-cache was given.
22105if test "${with_cache+set}" = set; then
22106 withval=$with_cache; with_cache=$withval
22107else
22108 with_cache=''
22109fi
22110
22111
22112if test "$with_cache" != ''; then
22113
22114cat >>confdefs.h <<_ACEOF
22115#define PixelCacheThreshold $with_cache
22116_ACEOF
22117
22118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22119fi
22120
22121# Disable/Enable support for full delegate paths
22122
22123# Check whether --with-frozenpaths was given.
22124if test "${with_frozenpaths+set}" = set; then
22125 withval=$with_frozenpaths; with_frozenpaths=$withval
22126else
22127 with_frozenpaths='no'
22128fi
22129
22130
22131# Enable build/install of Magick++
22132
22133# Check whether --with-magick-plus-plus was given.
22134if test "${with_magick_plus_plus+set}" = set; then
22135 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22136else
22137 with_magick_plus_plus='yes'
22138fi
22139
22140
22141# Disable build/install of PerlMagick.
22142
22143# Check whether --with-perl was given.
22144if test "${with_perl+set}" = set; then
22145 withval=$with_perl; with_perl=$withval
22146else
22147 with_perl=$libtool_build_shared_libs
22148fi
22149
22150
22151# Options to pass when configuring PerlMagick
22152
22153# Check whether --with-perl-options was given.
22154if test "${with_perl_options+set}" = set; then
22155 withval=$with_perl_options;
22156fi
22157
22158
22159PERL_MAKE_OPTIONS=$with_perl_options
22160
22161
22162
22163# Enable umem, object-caching memory allocation library.
22164
22165# Check whether --with-umem was given.
22166if test "${with_umem+set}" = set; then
22167 withval=$with_umem; with_umem=$withval
22168else
22169 with_umem='no'
22170fi
22171
22172if test "$with_umem" != 'yes' ; then
22173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22174fi
22175
22176#
22177# Specify path to shared libstdc++ if not in normal location
22178#
22179
22180# Check whether --with-libstdc was given.
22181if test "${with_libstdc+set}" = set; then
22182 withval=$with_libstdc; with_libstdc=$withval
22183else
22184 with_libstdc=''
22185fi
22186
22187
22188if test "$with_libstdc" != ''; then
22189 if test -d "$with_libstdc"; then
22190 LIBSTDCLDFLAGS="-L$with_libstdc"
22191 fi
22192fi
22193
22194
22195# Does gcc required -traditional?
22196if test $ac_cv_c_compiler_gnu = yes; then
22197 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22198$as_echo_n "checking whether $CC needs -traditional... " >&6; }
22199if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22200 $as_echo_n "(cached) " >&6
22201else
22202 ac_pattern="Autoconf.*'x'"
22203 cat >conftest.$ac_ext <<_ACEOF
22204/* confdefs.h. */
22205_ACEOF
22206cat confdefs.h >>conftest.$ac_ext
22207cat >>conftest.$ac_ext <<_ACEOF
22208/* end confdefs.h. */
22209#include <sgtty.h>
22210Autoconf TIOCGETP
22211_ACEOF
22212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22213 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22214 ac_cv_prog_gcc_traditional=yes
22215else
22216 ac_cv_prog_gcc_traditional=no
22217fi
22218rm -f conftest*
22219
22220
22221 if test $ac_cv_prog_gcc_traditional = no; then
22222 cat >conftest.$ac_ext <<_ACEOF
22223/* confdefs.h. */
22224_ACEOF
22225cat confdefs.h >>conftest.$ac_ext
22226cat >>conftest.$ac_ext <<_ACEOF
22227/* end confdefs.h. */
22228#include <termio.h>
22229Autoconf TCGETA
22230_ACEOF
22231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22232 $EGREP "$ac_pattern" >/dev/null 2>&1; then
22233 ac_cv_prog_gcc_traditional=yes
22234fi
22235rm -f conftest*
22236
22237 fi
22238fi
22239{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22240$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22241 if test $ac_cv_prog_gcc_traditional = yes; then
22242 CC="$CC -traditional"
22243 fi
22244fi
22245
22246
22247########
22248#
22249# Set defines required to build DLLs and modules using MinGW
22250#
22251########
22252# These options are set for multi-thread DLL module build
22253# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22254# module: _DLL
22255# executable/Magick++: _DLL _MAGICKMOD_
22256MODULE_EXTRA_CPPFLAGS=''
22257LIBRARY_EXTRA_CPPFLAGS=''
22258if test "${native_win32_build}" = 'yes'; then
22259 if test "${libtool_build_shared_libs}" = 'yes'; then
22260 CPPFLAGS="$CPPFLAGS -D_DLL"
22261 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22262 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22263 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22264 if test "$with_modules" = 'yes'; then
22265 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22266 else
22267 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22268 fi
22269 else
22270 CPPFLAGS="$CPPFLAGS -D_LIB"
22271 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22272 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22273 fi
22274 if test "$with_threads" = 'yes'; then
22275 CPPFLAGS="$CPPFLAGS -D_MT"
22276 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22277 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22278 fi
22279fi
22280
22281
22282
22283# Check standard headers
22284{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22285$as_echo_n "checking for ANSI C header files... " >&6; }
22286if test "${ac_cv_header_stdc+set}" = set; then
22287 $as_echo_n "(cached) " >&6
22288else
22289 cat >conftest.$ac_ext <<_ACEOF
22290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
22295#include <stdlib.h>
22296#include <stdarg.h>
22297#include <string.h>
22298#include <float.h>
22299
22300int
22301main ()
22302{
22303
22304 ;
22305 return 0;
22306}
22307_ACEOF
22308rm -f conftest.$ac_objext
22309if { (ac_try="$ac_compile"
22310case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22313esac
22314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22315$as_echo "$ac_try_echo") >&5
22316 (eval "$ac_compile") 2>conftest.er1
22317 ac_status=$?
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
22321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest.$ac_objext; then
22326 ac_cv_header_stdc=yes
22327else
22328 $as_echo "$as_me: failed program was:" >&5
22329sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 ac_cv_header_stdc=no
22332fi
22333
22334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22335
22336if test $ac_cv_header_stdc = yes; then
22337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22338 cat >conftest.$ac_ext <<_ACEOF
22339/* confdefs.h. */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h. */
22344#include <string.h>
22345
22346_ACEOF
22347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22348 $EGREP "memchr" >/dev/null 2>&1; then
22349 :
22350else
22351 ac_cv_header_stdc=no
22352fi
22353rm -f conftest*
22354
22355fi
22356
22357if test $ac_cv_header_stdc = yes; then
22358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22359 cat >conftest.$ac_ext <<_ACEOF
22360/* confdefs.h. */
22361_ACEOF
22362cat confdefs.h >>conftest.$ac_ext
22363cat >>conftest.$ac_ext <<_ACEOF
22364/* end confdefs.h. */
22365#include <stdlib.h>
22366
22367_ACEOF
22368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22369 $EGREP "free" >/dev/null 2>&1; then
22370 :
22371else
22372 ac_cv_header_stdc=no
22373fi
22374rm -f conftest*
22375
22376fi
22377
22378if test $ac_cv_header_stdc = yes; then
22379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22380 if test "$cross_compiling" = yes; then
22381 :
22382else
22383 cat >conftest.$ac_ext <<_ACEOF
22384/* confdefs.h. */
22385_ACEOF
22386cat confdefs.h >>conftest.$ac_ext
22387cat >>conftest.$ac_ext <<_ACEOF
22388/* end confdefs.h. */
22389#include <ctype.h>
22390#include <stdlib.h>
22391#if ((' ' & 0x0FF) == 0x020)
22392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22394#else
22395# define ISLOWER(c) \
22396 (('a' <= (c) && (c) <= 'i') \
22397 || ('j' <= (c) && (c) <= 'r') \
22398 || ('s' <= (c) && (c) <= 'z'))
22399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22400#endif
22401
22402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22403int
22404main ()
22405{
22406 int i;
22407 for (i = 0; i < 256; i++)
22408 if (XOR (islower (i), ISLOWER (i))
22409 || toupper (i) != TOUPPER (i))
22410 return 2;
22411 return 0;
22412}
22413_ACEOF
22414rm -f conftest$ac_exeext
22415if { (ac_try="$ac_link"
22416case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22419esac
22420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421$as_echo "$ac_try_echo") >&5
22422 (eval "$ac_link") 2>&5
22423 ac_status=$?
22424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22426 { (case "(($ac_try" in
22427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22428 *) ac_try_echo=$ac_try;;
22429esac
22430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22431$as_echo "$ac_try_echo") >&5
22432 (eval "$ac_try") 2>&5
22433 ac_status=$?
22434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22436 :
22437else
22438 $as_echo "$as_me: program exited with status $ac_status" >&5
22439$as_echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442( exit $ac_status )
22443ac_cv_header_stdc=no
22444fi
22445rm -rf conftest.dSYM
22446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22447fi
22448
22449
22450fi
22451fi
22452{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22453$as_echo "$ac_cv_header_stdc" >&6; }
22454if test $ac_cv_header_stdc = yes; then
22455
22456cat >>confdefs.h <<\_ACEOF
22457#define STDC_HEADERS 1
22458_ACEOF
22459
22460fi
22461
22462if ! test x"$ac_cv_header_stdc" = x"yes"; then
22463 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
22464 header files. Compilation cannot proceed. Please install the ANSI C
22465 headers and rerun this script." >&5
22466$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22467 header files. Compilation cannot proceed. Please install the ANSI C
22468 headers and rerun this script." >&2;};
22469fi
22470
22471
22472
22473
22474
22475ac_header_dirent=no
22476for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22477 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22478{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22479$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22481 $as_echo_n "(cached) " >&6
22482else
22483 cat >conftest.$ac_ext <<_ACEOF
22484/* confdefs.h. */
22485_ACEOF
22486cat confdefs.h >>conftest.$ac_ext
22487cat >>conftest.$ac_ext <<_ACEOF
22488/* end confdefs.h. */
22489#include <sys/types.h>
22490#include <$ac_hdr>
22491
22492int
22493main ()
22494{
22495if ((DIR *) 0)
22496return 0;
22497 ;
22498 return 0;
22499}
22500_ACEOF
22501rm -f conftest.$ac_objext
22502if { (ac_try="$ac_compile"
22503case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506esac
22507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22508$as_echo "$ac_try_echo") >&5
22509 (eval "$ac_compile") 2>conftest.er1
22510 ac_status=$?
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
22514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } && {
22516 test -z "$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 } && test -s conftest.$ac_objext; then
22519 eval "$as_ac_Header=yes"
22520else
22521 $as_echo "$as_me: failed program was:" >&5
22522sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 eval "$as_ac_Header=no"
22525fi
22526
22527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528fi
22529ac_res=`eval 'as_val=${'$as_ac_Header'}
22530 $as_echo "$as_val"'`
22531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22532$as_echo "$ac_res" >&6; }
22533as_val=`eval 'as_val=${'$as_ac_Header'}
22534 $as_echo "$as_val"'`
22535 if test "x$as_val" = x""yes; then
22536 cat >>confdefs.h <<_ACEOF
22537#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22538_ACEOF
22539
22540ac_header_dirent=$ac_hdr; break
22541fi
22542
22543done
22544# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22545if test $ac_header_dirent = dirent.h; then
22546 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22547$as_echo_n "checking for library containing opendir... " >&6; }
22548if test "${ac_cv_search_opendir+set}" = set; then
22549 $as_echo_n "(cached) " >&6
22550else
22551 ac_func_search_save_LIBS=$LIBS
22552cat >conftest.$ac_ext <<_ACEOF
22553/* confdefs.h. */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h. */
22558
22559/* Override any GCC internal prototype to avoid an error.
22560 Use char because int might match the return type of a GCC
22561 builtin and then its argument prototype would still apply. */
22562#ifdef __cplusplus
22563extern "C"
22564#endif
22565char opendir ();
22566int
22567main ()
22568{
22569return opendir ();
22570 ;
22571 return 0;
22572}
22573_ACEOF
22574for ac_lib in '' dir; do
22575 if test -z "$ac_lib"; then
22576 ac_res="none required"
22577 else
22578 ac_res=-l$ac_lib
22579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22580 fi
22581 rm -f conftest.$ac_objext conftest$ac_exeext
22582if { (ac_try="$ac_link"
22583case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22586esac
22587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22588$as_echo "$ac_try_echo") >&5
22589 (eval "$ac_link") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest$ac_exeext && {
22599 test "$cross_compiling" = yes ||
22600 $as_test_x conftest$ac_exeext
22601 }; then
22602 ac_cv_search_opendir=$ac_res
22603else
22604 $as_echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607
22608fi
22609
22610rm -rf conftest.dSYM
22611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22612 conftest$ac_exeext
22613 if test "${ac_cv_search_opendir+set}" = set; then
22614 break
22615fi
22616done
22617if test "${ac_cv_search_opendir+set}" = set; then
22618 :
22619else
22620 ac_cv_search_opendir=no
22621fi
22622rm conftest.$ac_ext
22623LIBS=$ac_func_search_save_LIBS
22624fi
22625{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22626$as_echo "$ac_cv_search_opendir" >&6; }
22627ac_res=$ac_cv_search_opendir
22628if test "$ac_res" != no; then
22629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22630
22631fi
22632
22633else
22634 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22635$as_echo_n "checking for library containing opendir... " >&6; }
22636if test "${ac_cv_search_opendir+set}" = set; then
22637 $as_echo_n "(cached) " >&6
22638else
22639 ac_func_search_save_LIBS=$LIBS
22640cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h. */
22646
22647/* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22650#ifdef __cplusplus
22651extern "C"
22652#endif
22653char opendir ();
22654int
22655main ()
22656{
22657return opendir ();
22658 ;
22659 return 0;
22660}
22661_ACEOF
22662for ac_lib in '' x; do
22663 if test -z "$ac_lib"; then
22664 ac_res="none required"
22665 else
22666 ac_res=-l$ac_lib
22667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22668 fi
22669 rm -f conftest.$ac_objext conftest$ac_exeext
22670if { (ac_try="$ac_link"
22671case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22674esac
22675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676$as_echo "$ac_try_echo") >&5
22677 (eval "$ac_link") 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest$ac_exeext && {
22687 test "$cross_compiling" = yes ||
22688 $as_test_x conftest$ac_exeext
22689 }; then
22690 ac_cv_search_opendir=$ac_res
22691else
22692 $as_echo "$as_me: failed program was:" >&5
22693sed 's/^/| /' conftest.$ac_ext >&5
22694
22695
22696fi
22697
22698rm -rf conftest.dSYM
22699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700 conftest$ac_exeext
22701 if test "${ac_cv_search_opendir+set}" = set; then
22702 break
22703fi
22704done
22705if test "${ac_cv_search_opendir+set}" = set; then
22706 :
22707else
22708 ac_cv_search_opendir=no
22709fi
22710rm conftest.$ac_ext
22711LIBS=$ac_func_search_save_LIBS
22712fi
22713{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22714$as_echo "$ac_cv_search_opendir" >&6; }
22715ac_res=$ac_cv_search_opendir
22716if test "$ac_res" != no; then
22717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22718
22719fi
22720
22721fi
22722
22723
22724# Check additional headers
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
22751do
22752as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22755$as_echo_n "checking for $ac_header... " >&6; }
22756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22757 $as_echo_n "(cached) " >&6
22758fi
22759ac_res=`eval 'as_val=${'$as_ac_Header'}
22760 $as_echo "$as_val"'`
22761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22762$as_echo "$ac_res" >&6; }
22763else
22764 # Is the header compilable?
22765{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22766$as_echo_n "checking $ac_header usability... " >&6; }
22767cat >conftest.$ac_ext <<_ACEOF
22768/* confdefs.h. */
22769_ACEOF
22770cat confdefs.h >>conftest.$ac_ext
22771cat >>conftest.$ac_ext <<_ACEOF
22772/* end confdefs.h. */
22773$ac_includes_default
22774#include <$ac_header>
22775_ACEOF
22776rm -f conftest.$ac_objext
22777if { (ac_try="$ac_compile"
22778case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781esac
22782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22783$as_echo "$ac_try_echo") >&5
22784 (eval "$ac_compile") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.$ac_objext; then
22794 ac_header_compiler=yes
22795else
22796 $as_echo "$as_me: failed program was:" >&5
22797sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_header_compiler=no
22800fi
22801
22802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22804$as_echo "$ac_header_compiler" >&6; }
22805
22806# Is the header present?
22807{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22808$as_echo_n "checking $ac_header presence... " >&6; }
22809cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
22815#include <$ac_header>
22816_ACEOF
22817if { (ac_try="$ac_cpp conftest.$ac_ext"
22818case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22821esac
22822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22823$as_echo "$ac_try_echo") >&5
22824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22825 ac_status=$?
22826 grep -v '^ *+' conftest.er1 >conftest.err
22827 rm -f conftest.er1
22828 cat conftest.err >&5
22829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } >/dev/null && {
22831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 }; then
22834 ac_header_preproc=yes
22835else
22836 $as_echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839 ac_header_preproc=no
22840fi
22841
22842rm -f conftest.err conftest.$ac_ext
22843{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22844$as_echo "$ac_header_preproc" >&6; }
22845
22846# So? What about this header?
22847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22848 yes:no: )
22849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22850$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22852$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22853 ac_header_preproc=yes
22854 ;;
22855 no:yes:* )
22856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22857$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22859$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22861$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22863$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22865$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22867$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22868 ( cat <<\_ASBOX
22869## ----------------------------------------- ##
22870## Report this to http://www.imagemagick.org ##
22871## ----------------------------------------- ##
22872_ASBOX
22873 ) | sed "s/^/$as_me: WARNING: /" >&2
22874 ;;
22875esac
22876{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22877$as_echo_n "checking for $ac_header... " >&6; }
22878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22879 $as_echo_n "(cached) " >&6
22880else
22881 eval "$as_ac_Header=\$ac_header_preproc"
22882fi
22883ac_res=`eval 'as_val=${'$as_ac_Header'}
22884 $as_echo "$as_val"'`
22885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22886$as_echo "$ac_res" >&6; }
22887
22888fi
22889as_val=`eval 'as_val=${'$as_ac_Header'}
22890 $as_echo "$as_val"'`
22891 if test "x$as_val" = x""yes; then
22892 cat >>confdefs.h <<_ACEOF
22893#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22894_ACEOF
22895
22896fi
22897
22898done
22899
22900
22901########
22902#
22903# Checks for typedefs, structures, and compiler characteristics.
22904#
22905########
22906
22907{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22908$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22909if test "${ac_cv_header_stdbool_h+set}" = set; then
22910 $as_echo_n "(cached) " >&6
22911else
22912 cat >conftest.$ac_ext <<_ACEOF
22913/* confdefs.h. */
22914_ACEOF
22915cat confdefs.h >>conftest.$ac_ext
22916cat >>conftest.$ac_ext <<_ACEOF
22917/* end confdefs.h. */
22918
22919#include <stdbool.h>
22920#ifndef bool
22921 "error: bool is not defined"
22922#endif
22923#ifndef false
22924 "error: false is not defined"
22925#endif
22926#if false
22927 "error: false is not 0"
22928#endif
22929#ifndef true
22930 "error: true is not defined"
22931#endif
22932#if true != 1
22933 "error: true is not 1"
22934#endif
22935#ifndef __bool_true_false_are_defined
22936 "error: __bool_true_false_are_defined is not defined"
22937#endif
22938
22939 struct s { _Bool s: 1; _Bool t; } s;
22940
22941 char a[true == 1 ? 1 : -1];
22942 char b[false == 0 ? 1 : -1];
22943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22944 char d[(bool) 0.5 == true ? 1 : -1];
22945 bool e = &s;
22946 char f[(_Bool) 0.0 == false ? 1 : -1];
22947 char g[true];
22948 char h[sizeof (_Bool)];
22949 char i[sizeof s.t];
22950 enum { j = false, k = true, l = false * true, m = true * 256 };
22951 /* The following fails for
22952 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22953 _Bool n[m];
22954 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22955 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22956# if defined __xlc__ || defined __GNUC__
22957 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22958 reported by James Lemley on 2005-10-05; see
22959 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22960 This test is not quite right, since xlc is allowed to
22961 reject this program, as the initializer for xlcbug is
22962 not one of the forms that C requires support for.
22963 However, doing the test right would require a runtime
22964 test, and that would make cross-compilation harder.
22965 Let us hope that IBM fixes the xlc bug, and also adds
22966 support for this kind of constant expression. In the
22967 meantime, this test will reject xlc, which is OK, since
22968 our stdbool.h substitute should suffice. We also test
22969 this with GCC, where it should work, to detect more
22970 quickly whether someone messes up the test in the
22971 future. */
22972 char digs[] = "0123456789";
22973 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22974# endif
22975 /* Catch a bug in an HP-UX C compiler. See
22976 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22977 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22978 */
22979 _Bool q = true;
22980 _Bool *pq = &q;
22981
22982int
22983main ()
22984{
22985
22986 *pq |= q;
22987 *pq |= ! q;
22988 /* Refer to every declared value, to avoid compiler optimizations. */
22989 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22990 + !m + !n + !o + !p + !q + !pq);
22991
22992 ;
22993 return 0;
22994}
22995_ACEOF
22996rm -f conftest.$ac_objext
22997if { (ac_try="$ac_compile"
22998case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001esac
23002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23003$as_echo "$ac_try_echo") >&5
23004 (eval "$ac_compile") 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest.$ac_objext; then
23014 ac_cv_header_stdbool_h=yes
23015else
23016 $as_echo "$as_me: failed program was:" >&5
23017sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_cv_header_stdbool_h=no
23020fi
23021
23022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023fi
23024{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
23025$as_echo "$ac_cv_header_stdbool_h" >&6; }
23026{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
23027$as_echo_n "checking for _Bool... " >&6; }
23028if test "${ac_cv_type__Bool+set}" = set; then
23029 $as_echo_n "(cached) " >&6
23030else
23031 ac_cv_type__Bool=no
23032cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038$ac_includes_default
23039int
23040main ()
23041{
23042if (sizeof (_Bool))
23043 return 0;
23044 ;
23045 return 0;
23046}
23047_ACEOF
23048rm -f conftest.$ac_objext
23049if { (ac_try="$ac_compile"
23050case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23053esac
23054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23055$as_echo "$ac_try_echo") >&5
23056 (eval "$ac_compile") 2>conftest.er1
23057 ac_status=$?
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
23061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
23066 cat >conftest.$ac_ext <<_ACEOF
23067/* confdefs.h. */
23068_ACEOF
23069cat confdefs.h >>conftest.$ac_ext
23070cat >>conftest.$ac_ext <<_ACEOF
23071/* end confdefs.h. */
23072$ac_includes_default
23073int
23074main ()
23075{
23076if (sizeof ((_Bool)))
23077 return 0;
23078 ;
23079 return 0;
23080}
23081_ACEOF
23082rm -f conftest.$ac_objext
23083if { (ac_try="$ac_compile"
23084case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23087esac
23088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23089$as_echo "$ac_try_echo") >&5
23090 (eval "$ac_compile") 2>conftest.er1
23091 ac_status=$?
23092 grep -v '^ *+' conftest.er1 >conftest.err
23093 rm -f conftest.er1
23094 cat conftest.err >&5
23095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } && {
23097 test -z "$ac_c_werror_flag" ||
23098 test ! -s conftest.err
23099 } && test -s conftest.$ac_objext; then
23100 :
23101else
23102 $as_echo "$as_me: failed program was:" >&5
23103sed 's/^/| /' conftest.$ac_ext >&5
23104
23105 ac_cv_type__Bool=yes
23106fi
23107
23108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109else
23110 $as_echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113
23114fi
23115
23116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117fi
23118{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
23119$as_echo "$ac_cv_type__Bool" >&6; }
23120if test "x$ac_cv_type__Bool" = x""yes; then
23121
23122cat >>confdefs.h <<_ACEOF
23123#define HAVE__BOOL 1
23124_ACEOF
23125
23126
23127fi
23128
23129if test $ac_cv_header_stdbool_h = yes; then
23130
23131cat >>confdefs.h <<\_ACEOF
23132#define HAVE_STDBOOL_H 1
23133_ACEOF
23134
23135fi
23136
23137{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
23138$as_echo_n "checking for working volatile... " >&6; }
23139if test "${ac_cv_c_volatile+set}" = set; then
23140 $as_echo_n "(cached) " >&6
23141else
23142 cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
23148
23149int
23150main ()
23151{
23152
23153volatile int x;
23154int * volatile y = (int *) 0;
23155return !x && !y;
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext
23161if { (ac_try="$ac_compile"
23162case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23165esac
23166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23167$as_echo "$ac_try_echo") >&5
23168 (eval "$ac_compile") 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } && {
23175 test -z "$ac_c_werror_flag" ||
23176 test ! -s conftest.err
23177 } && test -s conftest.$ac_objext; then
23178 ac_cv_c_volatile=yes
23179else
23180 $as_echo "$as_me: failed program was:" >&5
23181sed 's/^/| /' conftest.$ac_ext >&5
23182
23183 ac_cv_c_volatile=no
23184fi
23185
23186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23187fi
23188{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
23189$as_echo "$ac_cv_c_volatile" >&6; }
23190if test $ac_cv_c_volatile = no; then
23191
23192cat >>confdefs.h <<\_ACEOF
23193#define volatile /**/
23194_ACEOF
23195
23196fi
23197
23198{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
23199$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
23200if test "${ac_cv_c_stringize+set}" = set; then
23201 $as_echo_n "(cached) " >&6
23202else
23203 cat >conftest.$ac_ext <<_ACEOF
23204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
23209#define x(y) #y
23210
23211char *s = x(teststring);
23212_ACEOF
23213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23214 $EGREP "#teststring" >/dev/null 2>&1; then
23215 ac_cv_c_stringize=no
23216else
23217 ac_cv_c_stringize=yes
23218fi
23219rm -f conftest*
23220
23221fi
23222{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
23223$as_echo "$ac_cv_c_stringize" >&6; }
23224if test $ac_cv_c_stringize = yes; then
23225
23226cat >>confdefs.h <<\_ACEOF
23227#define HAVE_STRINGIZE 1
23228_ACEOF
23229
23230fi
23231
23232{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
23233$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23234if test "${ac_cv_header_stat_broken+set}" = set; then
23235 $as_echo_n "(cached) " >&6
23236else
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <sys/types.h>
23244#include <sys/stat.h>
23245
23246#if defined S_ISBLK && defined S_IFDIR
23247extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23248#endif
23249
23250#if defined S_ISBLK && defined S_IFCHR
23251extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23252#endif
23253
23254#if defined S_ISLNK && defined S_IFREG
23255extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23256#endif
23257
23258#if defined S_ISSOCK && defined S_IFREG
23259extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23260#endif
23261
23262_ACEOF
23263rm -f conftest.$ac_objext
23264if { (ac_try="$ac_compile"
23265case "(($ac_try" in
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267 *) ac_try_echo=$ac_try;;
23268esac
23269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23270$as_echo "$ac_try_echo") >&5
23271 (eval "$ac_compile") 2>conftest.er1
23272 ac_status=$?
23273 grep -v '^ *+' conftest.er1 >conftest.err
23274 rm -f conftest.er1
23275 cat conftest.err >&5
23276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } && {
23278 test -z "$ac_c_werror_flag" ||
23279 test ! -s conftest.err
23280 } && test -s conftest.$ac_objext; then
23281 ac_cv_header_stat_broken=no
23282else
23283 $as_echo "$as_me: failed program was:" >&5
23284sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_header_stat_broken=yes
23287fi
23288
23289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290fi
23291{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
23292$as_echo "$ac_cv_header_stat_broken" >&6; }
23293if test $ac_cv_header_stat_broken = yes; then
23294
23295cat >>confdefs.h <<\_ACEOF
23296#define STAT_MACROS_BROKEN 1
23297_ACEOF
23298
23299fi
23300
23301{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23302$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23303if test "${ac_cv_header_time+set}" = set; then
23304 $as_echo_n "(cached) " >&6
23305else
23306 cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312#include <sys/types.h>
23313#include <sys/time.h>
23314#include <time.h>
23315
23316int
23317main ()
23318{
23319if ((struct tm *) 0)
23320return 0;
23321 ;
23322 return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext
23326if { (ac_try="$ac_compile"
23327case "(($ac_try" in
23328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329 *) ac_try_echo=$ac_try;;
23330esac
23331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23332$as_echo "$ac_try_echo") >&5
23333 (eval "$ac_compile") 2>conftest.er1
23334 ac_status=$?
23335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
23338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } && {
23340 test -z "$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 } && test -s conftest.$ac_objext; then
23343 ac_cv_header_time=yes
23344else
23345 $as_echo "$as_me: failed program was:" >&5
23346sed 's/^/| /' conftest.$ac_ext >&5
23347
23348 ac_cv_header_time=no
23349fi
23350
23351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352fi
23353{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23354$as_echo "$ac_cv_header_time" >&6; }
23355if test $ac_cv_header_time = yes; then
23356
23357cat >>confdefs.h <<\_ACEOF
23358#define TIME_WITH_SYS_TIME 1
23359_ACEOF
23360
23361fi
23362
23363{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23364$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23365if test "${ac_cv_struct_tm+set}" = set; then
23366 $as_echo_n "(cached) " >&6
23367else
23368 cat >conftest.$ac_ext <<_ACEOF
23369/* confdefs.h. */
23370_ACEOF
23371cat confdefs.h >>conftest.$ac_ext
23372cat >>conftest.$ac_ext <<_ACEOF
23373/* end confdefs.h. */
23374#include <sys/types.h>
23375#include <time.h>
23376
23377int
23378main ()
23379{
23380struct tm tm;
23381 int *p = &tm.tm_sec;
23382 return !p;
23383 ;
23384 return 0;
23385}
23386_ACEOF
23387rm -f conftest.$ac_objext
23388if { (ac_try="$ac_compile"
23389case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392esac
23393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23394$as_echo "$ac_try_echo") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23396 ac_status=$?
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
23400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest.$ac_objext; then
23405 ac_cv_struct_tm=time.h
23406else
23407 $as_echo "$as_me: failed program was:" >&5
23408sed 's/^/| /' conftest.$ac_ext >&5
23409
23410 ac_cv_struct_tm=sys/time.h
23411fi
23412
23413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414fi
23415{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23416$as_echo "$ac_cv_struct_tm" >&6; }
23417if test $ac_cv_struct_tm = sys/time.h; then
23418
23419cat >>confdefs.h <<\_ACEOF
23420#define TM_IN_SYS_TIME 1
23421_ACEOF
23422
23423fi
23424
23425{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
23426$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23427if test "${ac_cv_sys_interpreter+set}" = set; then
23428 $as_echo_n "(cached) " >&6
23429else
23430 echo '#! /bin/cat
23431exit 69
23432' >conftest
23433chmod u+x conftest
23434(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23435if test $? -ne 69; then
23436 ac_cv_sys_interpreter=yes
23437else
23438 ac_cv_sys_interpreter=no
23439fi
23440rm -f conftest
23441fi
23442{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
23443$as_echo "$ac_cv_sys_interpreter" >&6; }
23444interpval=$ac_cv_sys_interpreter
23445
23446
23447# If the C compiler does not fully support the ANSI C qualifier const,
23448# define const to be empty.
23449{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23450$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23451if test "${ac_cv_c_const+set}" = set; then
23452 $as_echo_n "(cached) " >&6
23453else
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460
23461int
23462main ()
23463{
23464/* FIXME: Include the comments suggested by Paul. */
23465#ifndef __cplusplus
23466 /* Ultrix mips cc rejects this. */
23467 typedef int charset[2];
23468 const charset cs;
23469 /* SunOS 4.1.1 cc rejects this. */
23470 char const *const *pcpcc;
23471 char **ppc;
23472 /* NEC SVR4.0.2 mips cc rejects this. */
23473 struct point {int x, y;};
23474 static struct point const zero = {0,0};
23475 /* AIX XL C 1.02.0.0 rejects this.
23476 It does not let you subtract one const X* pointer from another in
23477 an arm of an if-expression whose if-part is not a constant
23478 expression */
23479 const char *g = "string";
23480 pcpcc = &g + (g ? g-g : 0);
23481 /* HPUX 7.0 cc rejects these. */
23482 ++pcpcc;
23483 ppc = (char**) pcpcc;
23484 pcpcc = (char const *const *) ppc;
23485 { /* SCO 3.2v4 cc rejects this. */
23486 char *t;
23487 char const *s = 0 ? (char *) 0 : (char const *) 0;
23488
23489 *t++ = 0;
23490 if (s) return 0;
23491 }
23492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23493 int x[] = {25, 17};
23494 const int *foo = &x[0];
23495 ++foo;
23496 }
23497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23498 typedef const int *iptr;
23499 iptr p = 0;
23500 ++p;
23501 }
23502 { /* AIX XL C 1.02.0.0 rejects this saying
23503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23504 struct s { int j; const int *ap[3]; };
23505 struct s *b; b->j = 5;
23506 }
23507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23508 const int foo = 10;
23509 if (!foo) return 0;
23510 }
23511 return !cs[0] && !zero.x;
23512#endif
23513
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext
23519if { (ac_try="$ac_compile"
23520case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23523esac
23524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23525$as_echo "$ac_try_echo") >&5
23526 (eval "$ac_compile") 2>conftest.er1
23527 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1
23530 cat conftest.err >&5
23531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && {
23533 test -z "$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 } && test -s conftest.$ac_objext; then
23536 ac_cv_c_const=yes
23537else
23538 $as_echo "$as_me: failed program was:" >&5
23539sed 's/^/| /' conftest.$ac_ext >&5
23540
23541 ac_cv_c_const=no
23542fi
23543
23544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545fi
23546{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23547$as_echo "$ac_cv_c_const" >&6; }
23548if test $ac_cv_c_const = no; then
23549
23550cat >>confdefs.h <<\_ACEOF
23551#define const /**/
23552_ACEOF
23553
23554fi
23555
23556
23557# If the C compiler supports the keyword inline, do nothing. Otherwise
23558# define inline to __inline__ or __inline if it accepts one of those,
23559# otherwise define inline to be empty.
23560{ $as_echo "$as_me:$LINENO: checking for inline" >&5
23561$as_echo_n "checking for inline... " >&6; }
23562if test "${ac_cv_c_inline+set}" = set; then
23563 $as_echo_n "(cached) " >&6
23564else
23565 ac_cv_c_inline=no
23566for ac_kw in inline __inline__ __inline; do
23567 cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h. */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h. */
23573#ifndef __cplusplus
23574typedef int foo_t;
23575static $ac_kw foo_t static_foo () {return 0; }
23576$ac_kw foo_t foo () {return 0; }
23577#endif
23578
23579_ACEOF
23580rm -f conftest.$ac_objext
23581if { (ac_try="$ac_compile"
23582case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585esac
23586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23587$as_echo "$ac_try_echo") >&5
23588 (eval "$ac_compile") 2>conftest.er1
23589 ac_status=$?
23590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
23593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest.$ac_objext; then
23598 ac_cv_c_inline=$ac_kw
23599else
23600 $as_echo "$as_me: failed program was:" >&5
23601sed 's/^/| /' conftest.$ac_ext >&5
23602
23603
23604fi
23605
23606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23607 test "$ac_cv_c_inline" != no && break
23608done
23609
23610fi
23611{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23612$as_echo "$ac_cv_c_inline" >&6; }
23613
23614
23615case $ac_cv_c_inline in
23616 inline | yes) ;;
23617 *)
23618 case $ac_cv_c_inline in
23619 no) ac_val=;;
23620 *) ac_val=$ac_cv_c_inline;;
23621 esac
23622 cat >>confdefs.h <<_ACEOF
23623#ifndef __cplusplus
23624#define inline $ac_val
23625#endif
23626_ACEOF
23627 ;;
23628esac
23629
23630
23631# If the C compiler supports the keyword restrict, do nothing. Otherwise
23632# define restrict to __restrict__ or __restrict if it accepts one of those,
23633# otherwise define restrict to be empty.
23634{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
23635$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23636if test "${ac_cv_c_restrict+set}" = set; then
23637 $as_echo_n "(cached) " >&6
23638else
23639 ac_cv_c_restrict=no
23640 # The order here caters to the fact that C++ does not require restrict.
23641 for ac_kw in __restrict __restrict__ _Restrict restrict; do
23642 cat >conftest.$ac_ext <<_ACEOF
23643/* confdefs.h. */
23644_ACEOF
23645cat confdefs.h >>conftest.$ac_ext
23646cat >>conftest.$ac_ext <<_ACEOF
23647/* end confdefs.h. */
23648typedef int * int_ptr;
23649 int foo (int_ptr $ac_kw ip) {
23650 return ip[0];
23651 }
23652int
23653main ()
23654{
23655int s[1];
23656 int * $ac_kw t = s;
23657 t[0] = 0;
23658 return foo(t)
23659 ;
23660 return 0;
23661}
23662_ACEOF
23663rm -f conftest.$ac_objext
23664if { (ac_try="$ac_compile"
23665case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668esac
23669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670$as_echo "$ac_try_echo") >&5
23671 (eval "$ac_compile") 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest.$ac_objext; then
23681 ac_cv_c_restrict=$ac_kw
23682else
23683 $as_echo "$as_me: failed program was:" >&5
23684sed 's/^/| /' conftest.$ac_ext >&5
23685
23686
23687fi
23688
23689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690 test "$ac_cv_c_restrict" != no && break
23691 done
23692
23693fi
23694{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
23695$as_echo "$ac_cv_c_restrict" >&6; }
23696
23697
23698 case $ac_cv_c_restrict in
23699 restrict) ;;
23700 no) cat >>confdefs.h <<\_ACEOF
23701#define restrict /**/
23702_ACEOF
23703 ;;
23704 *) cat >>confdefs.h <<_ACEOF
23705#define restrict $ac_cv_c_restrict
23706_ACEOF
23707 ;;
23708 esac
23709
23710
23711# If words are stored with the most significant byte first (like
23712# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23713
23714 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23715$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23716if test "${ac_cv_c_bigendian+set}" = set; then
23717 $as_echo_n "(cached) " >&6
23718else
23719 ac_cv_c_bigendian=unknown
23720 # See if we're dealing with a universal compiler.
23721 cat >conftest.$ac_ext <<_ACEOF
23722/* confdefs.h. */
23723_ACEOF
23724cat confdefs.h >>conftest.$ac_ext
23725cat >>conftest.$ac_ext <<_ACEOF
23726/* end confdefs.h. */
23727#ifndef __APPLE_CC__
23728 not a universal capable compiler
23729 #endif
23730 typedef int dummy;
23731
23732_ACEOF
23733rm -f conftest.$ac_objext
23734if { (ac_try="$ac_compile"
23735case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23738esac
23739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23740$as_echo "$ac_try_echo") >&5
23741 (eval "$ac_compile") 2>conftest.er1
23742 ac_status=$?
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
23746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_c_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest.$ac_objext; then
23751
23752 # Check for potential -arch flags. It is not universal unless
23753 # there are some -arch flags. Note that *ppc* also matches
23754 # ppc64. This check is also rather less than ideal.
23755 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23756 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23757 esac
23758else
23759 $as_echo "$as_me: failed program was:" >&5
23760sed 's/^/| /' conftest.$ac_ext >&5
23761
23762
23763fi
23764
23765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 if test $ac_cv_c_bigendian = unknown; then
23767 # See if sys/param.h defines the BYTE_ORDER macro.
23768 cat >conftest.$ac_ext <<_ACEOF
23769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
23774#include <sys/types.h>
23775 #include <sys/param.h>
23776
23777int
23778main ()
23779{
23780#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23781 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23782 && LITTLE_ENDIAN)
23783 bogus endian macros
23784 #endif
23785
23786 ;
23787 return 0;
23788}
23789_ACEOF
23790rm -f conftest.$ac_objext
23791if { (ac_try="$ac_compile"
23792case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23795esac
23796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23797$as_echo "$ac_try_echo") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23808 # It does; now see whether it defined to BIG_ENDIAN or not.
23809 cat >conftest.$ac_ext <<_ACEOF
23810/* confdefs.h. */
23811_ACEOF
23812cat confdefs.h >>conftest.$ac_ext
23813cat >>conftest.$ac_ext <<_ACEOF
23814/* end confdefs.h. */
23815#include <sys/types.h>
23816 #include <sys/param.h>
23817
23818int
23819main ()
23820{
23821#if BYTE_ORDER != BIG_ENDIAN
23822 not big endian
23823 #endif
23824
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829rm -f conftest.$ac_objext
23830if { (ac_try="$ac_compile"
23831case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834esac
23835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836$as_echo "$ac_try_echo") >&5
23837 (eval "$ac_compile") 2>conftest.er1
23838 ac_status=$?
23839 grep -v '^ *+' conftest.er1 >conftest.err
23840 rm -f conftest.er1
23841 cat conftest.err >&5
23842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest.$ac_objext; then
23847 ac_cv_c_bigendian=yes
23848else
23849 $as_echo "$as_me: failed program was:" >&5
23850sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 ac_cv_c_bigendian=no
23853fi
23854
23855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856else
23857 $as_echo "$as_me: failed program was:" >&5
23858sed 's/^/| /' conftest.$ac_ext >&5
23859
23860
23861fi
23862
23863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 fi
23865 if test $ac_cv_c_bigendian = unknown; then
23866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23867 cat >conftest.$ac_ext <<_ACEOF
23868/* confdefs.h. */
23869_ACEOF
23870cat confdefs.h >>conftest.$ac_ext
23871cat >>conftest.$ac_ext <<_ACEOF
23872/* end confdefs.h. */
23873#include <limits.h>
23874
23875int
23876main ()
23877{
23878#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23879 bogus endian macros
23880 #endif
23881
23882 ;
23883 return 0;
23884}
23885_ACEOF
23886rm -f conftest.$ac_objext
23887if { (ac_try="$ac_compile"
23888case "(($ac_try" in
23889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890 *) ac_try_echo=$ac_try;;
23891esac
23892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23893$as_echo "$ac_try_echo") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 # It does; now see whether it defined to _BIG_ENDIAN or not.
23905 cat >conftest.$ac_ext <<_ACEOF
23906/* confdefs.h. */
23907_ACEOF
23908cat confdefs.h >>conftest.$ac_ext
23909cat >>conftest.$ac_ext <<_ACEOF
23910/* end confdefs.h. */
23911#include <limits.h>
23912
23913int
23914main ()
23915{
23916#ifndef _BIG_ENDIAN
23917 not big endian
23918 #endif
23919
23920 ;
23921 return 0;
23922}
23923_ACEOF
23924rm -f conftest.$ac_objext
23925if { (ac_try="$ac_compile"
23926case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929esac
23930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23931$as_echo "$ac_try_echo") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23933 ac_status=$?
23934 grep -v '^ *+' conftest.er1 >conftest.err
23935 rm -f conftest.er1
23936 cat conftest.err >&5
23937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23942 ac_cv_c_bigendian=yes
23943else
23944 $as_echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947 ac_cv_c_bigendian=no
23948fi
23949
23950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951else
23952 $as_echo "$as_me: failed program was:" >&5
23953sed 's/^/| /' conftest.$ac_ext >&5
23954
23955
23956fi
23957
23958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 fi
23960 if test $ac_cv_c_bigendian = unknown; then
23961 # Compile a test program.
23962 if test "$cross_compiling" = yes; then
23963 # Try to guess by grepping values from an object file.
23964 cat >conftest.$ac_ext <<_ACEOF
23965/* confdefs.h. */
23966_ACEOF
23967cat confdefs.h >>conftest.$ac_ext
23968cat >>conftest.$ac_ext <<_ACEOF
23969/* end confdefs.h. */
23970short int ascii_mm[] =
23971 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23972 short int ascii_ii[] =
23973 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23974 int use_ascii (int i) {
23975 return ascii_mm[i] + ascii_ii[i];
23976 }
23977 short int ebcdic_ii[] =
23978 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23979 short int ebcdic_mm[] =
23980 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23981 int use_ebcdic (int i) {
23982 return ebcdic_mm[i] + ebcdic_ii[i];
23983 }
23984 extern int foo;
23985
23986int
23987main ()
23988{
23989return use_ascii (foo) == use_ebcdic (foo);
23990 ;
23991 return 0;
23992}
23993_ACEOF
23994rm -f conftest.$ac_objext
23995if { (ac_try="$ac_compile"
23996case "(($ac_try" in
23997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998 *) ac_try_echo=$ac_try;;
23999esac
24000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24001$as_echo "$ac_try_echo") >&5
24002 (eval "$ac_compile") 2>conftest.er1
24003 ac_status=$?
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } && {
24009 test -z "$ac_c_werror_flag" ||
24010 test ! -s conftest.err
24011 } && test -s conftest.$ac_objext; then
24012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24013 ac_cv_c_bigendian=yes
24014 fi
24015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24016 if test "$ac_cv_c_bigendian" = unknown; then
24017 ac_cv_c_bigendian=no
24018 else
24019 # finding both strings is unlikely to happen, but who knows?
24020 ac_cv_c_bigendian=unknown
24021 fi
24022 fi
24023else
24024 $as_echo "$as_me: failed program was:" >&5
24025sed 's/^/| /' conftest.$ac_ext >&5
24026
24027
24028fi
24029
24030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24031else
24032 cat >conftest.$ac_ext <<_ACEOF
24033/* confdefs.h. */
24034_ACEOF
24035cat confdefs.h >>conftest.$ac_ext
24036cat >>conftest.$ac_ext <<_ACEOF
24037/* end confdefs.h. */
24038$ac_includes_default
24039int
24040main ()
24041{
24042
24043 /* Are we little or big endian? From Harbison&Steele. */
24044 union
24045 {
24046 long int l;
24047 char c[sizeof (long int)];
24048 } u;
24049 u.l = 1;
24050 return u.c[sizeof (long int) - 1] == 1;
24051
24052 ;
24053 return 0;
24054}
24055_ACEOF
24056rm -f conftest$ac_exeext
24057if { (ac_try="$ac_link"
24058case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24061esac
24062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24063$as_echo "$ac_try_echo") >&5
24064 (eval "$ac_link") 2>&5
24065 ac_status=$?
24066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24068 { (case "(($ac_try" in
24069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070 *) ac_try_echo=$ac_try;;
24071esac
24072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24073$as_echo "$ac_try_echo") >&5
24074 (eval "$ac_try") 2>&5
24075 ac_status=$?
24076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 ac_cv_c_bigendian=no
24079else
24080 $as_echo "$as_me: program exited with status $ac_status" >&5
24081$as_echo "$as_me: failed program was:" >&5
24082sed 's/^/| /' conftest.$ac_ext >&5
24083
24084( exit $ac_status )
24085ac_cv_c_bigendian=yes
24086fi
24087rm -rf conftest.dSYM
24088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24089fi
24090
24091
24092 fi
24093fi
24094{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24095$as_echo "$ac_cv_c_bigendian" >&6; }
24096 case $ac_cv_c_bigendian in #(
24097 yes)
24098 cat >>confdefs.h <<\_ACEOF
24099#define WORDS_BIGENDIAN 1
24100_ACEOF
24101;; #(
24102 no)
24103 ;; #(
24104 universal)
24105
24106cat >>confdefs.h <<\_ACEOF
24107#define AC_APPLE_UNIVERSAL_BUILD 1
24108_ACEOF
24109
24110 ;; #(
24111 *)
24112 { { $as_echo "$as_me:$LINENO: error: unknown endianness
24113 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24114$as_echo "$as_me: error: unknown endianness
24115 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24116 { (exit 1); exit 1; }; } ;;
24117 esac
24118
24119
24120# Define mode_t to a suitable type, if standard headers do not define it.
24121{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
24122$as_echo_n "checking for mode_t... " >&6; }
24123if test "${ac_cv_type_mode_t+set}" = set; then
24124 $as_echo_n "(cached) " >&6
24125else
24126 ac_cv_type_mode_t=no
24127cat >conftest.$ac_ext <<_ACEOF
24128/* confdefs.h. */
24129_ACEOF
24130cat confdefs.h >>conftest.$ac_ext
24131cat >>conftest.$ac_ext <<_ACEOF
24132/* end confdefs.h. */
24133$ac_includes_default
24134int
24135main ()
24136{
24137if (sizeof (mode_t))
24138 return 0;
24139 ;
24140 return 0;
24141}
24142_ACEOF
24143rm -f conftest.$ac_objext
24144if { (ac_try="$ac_compile"
24145case "(($ac_try" in
24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147 *) ac_try_echo=$ac_try;;
24148esac
24149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24150$as_echo "$ac_try_echo") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.$ac_objext; then
24161 cat >conftest.$ac_ext <<_ACEOF
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
24167$ac_includes_default
24168int
24169main ()
24170{
24171if (sizeof ((mode_t)))
24172 return 0;
24173 ;
24174 return 0;
24175}
24176_ACEOF
24177rm -f conftest.$ac_objext
24178if { (ac_try="$ac_compile"
24179case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24182esac
24183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184$as_echo "$ac_try_echo") >&5
24185 (eval "$ac_compile") 2>conftest.er1
24186 ac_status=$?
24187 grep -v '^ *+' conftest.er1 >conftest.err
24188 rm -f conftest.er1
24189 cat conftest.err >&5
24190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } && {
24192 test -z "$ac_c_werror_flag" ||
24193 test ! -s conftest.err
24194 } && test -s conftest.$ac_objext; then
24195 :
24196else
24197 $as_echo "$as_me: failed program was:" >&5
24198sed 's/^/| /' conftest.$ac_ext >&5
24199
24200 ac_cv_type_mode_t=yes
24201fi
24202
24203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204else
24205 $as_echo "$as_me: failed program was:" >&5
24206sed 's/^/| /' conftest.$ac_ext >&5
24207
24208
24209fi
24210
24211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212fi
24213{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24214$as_echo "$ac_cv_type_mode_t" >&6; }
24215if test "x$ac_cv_type_mode_t" = x""yes; then
24216 :
24217else
24218
24219cat >>confdefs.h <<_ACEOF
24220#define mode_t int
24221_ACEOF
24222
24223fi
24224
24225
24226# Define off_t to a suitable type, if standard headers do not define it.
24227{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
24228$as_echo_n "checking for off_t... " >&6; }
24229if test "${ac_cv_type_off_t+set}" = set; then
24230 $as_echo_n "(cached) " >&6
24231else
24232 ac_cv_type_off_t=no
24233cat >conftest.$ac_ext <<_ACEOF
24234/* confdefs.h. */
24235_ACEOF
24236cat confdefs.h >>conftest.$ac_ext
24237cat >>conftest.$ac_ext <<_ACEOF
24238/* end confdefs.h. */
24239$ac_includes_default
24240int
24241main ()
24242{
24243if (sizeof (off_t))
24244 return 0;
24245 ;
24246 return 0;
24247}
24248_ACEOF
24249rm -f conftest.$ac_objext
24250if { (ac_try="$ac_compile"
24251case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24254esac
24255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24256$as_echo "$ac_try_echo") >&5
24257 (eval "$ac_compile") 2>conftest.er1
24258 ac_status=$?
24259 grep -v '^ *+' conftest.er1 >conftest.err
24260 rm -f conftest.er1
24261 cat conftest.err >&5
24262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest.$ac_objext; then
24267 cat >conftest.$ac_ext <<_ACEOF
24268/* confdefs.h. */
24269_ACEOF
24270cat confdefs.h >>conftest.$ac_ext
24271cat >>conftest.$ac_ext <<_ACEOF
24272/* end confdefs.h. */
24273$ac_includes_default
24274int
24275main ()
24276{
24277if (sizeof ((off_t)))
24278 return 0;
24279 ;
24280 return 0;
24281}
24282_ACEOF
24283rm -f conftest.$ac_objext
24284if { (ac_try="$ac_compile"
24285case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24288esac
24289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24290$as_echo "$ac_try_echo") >&5
24291 (eval "$ac_compile") 2>conftest.er1
24292 ac_status=$?
24293 grep -v '^ *+' conftest.er1 >conftest.err
24294 rm -f conftest.er1
24295 cat conftest.err >&5
24296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest.$ac_objext; then
24301 :
24302else
24303 $as_echo "$as_me: failed program was:" >&5
24304sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ac_cv_type_off_t=yes
24307fi
24308
24309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310else
24311 $as_echo "$as_me: failed program was:" >&5
24312sed 's/^/| /' conftest.$ac_ext >&5
24313
24314
24315fi
24316
24317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318fi
24319{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24320$as_echo "$ac_cv_type_off_t" >&6; }
24321if test "x$ac_cv_type_off_t" = x""yes; then
24322 :
24323else
24324
24325cat >>confdefs.h <<_ACEOF
24326#define off_t long int
24327_ACEOF
24328
24329fi
24330
24331
24332# Define pid_t to a suitable type, if standard headers do not define it.
24333{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24334$as_echo_n "checking for pid_t... " >&6; }
24335if test "${ac_cv_type_pid_t+set}" = set; then
24336 $as_echo_n "(cached) " >&6
24337else
24338 ac_cv_type_pid_t=no
24339cat >conftest.$ac_ext <<_ACEOF
24340/* confdefs.h. */
24341_ACEOF
24342cat confdefs.h >>conftest.$ac_ext
24343cat >>conftest.$ac_ext <<_ACEOF
24344/* end confdefs.h. */
24345$ac_includes_default
24346int
24347main ()
24348{
24349if (sizeof (pid_t))
24350 return 0;
24351 ;
24352 return 0;
24353}
24354_ACEOF
24355rm -f conftest.$ac_objext
24356if { (ac_try="$ac_compile"
24357case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24360esac
24361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362$as_echo "$ac_try_echo") >&5
24363 (eval "$ac_compile") 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest.$ac_objext; then
24373 cat >conftest.$ac_ext <<_ACEOF
24374/* confdefs.h. */
24375_ACEOF
24376cat confdefs.h >>conftest.$ac_ext
24377cat >>conftest.$ac_ext <<_ACEOF
24378/* end confdefs.h. */
24379$ac_includes_default
24380int
24381main ()
24382{
24383if (sizeof ((pid_t)))
24384 return 0;
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext
24390if { (ac_try="$ac_compile"
24391case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394esac
24395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24396$as_echo "$ac_try_echo") >&5
24397 (eval "$ac_compile") 2>conftest.er1
24398 ac_status=$?
24399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest.$ac_objext; then
24407 :
24408else
24409 $as_echo "$as_me: failed program was:" >&5
24410sed 's/^/| /' conftest.$ac_ext >&5
24411
24412 ac_cv_type_pid_t=yes
24413fi
24414
24415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416else
24417 $as_echo "$as_me: failed program was:" >&5
24418sed 's/^/| /' conftest.$ac_ext >&5
24419
24420
24421fi
24422
24423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24424fi
24425{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24426$as_echo "$ac_cv_type_pid_t" >&6; }
24427if test "x$ac_cv_type_pid_t" = x""yes; then
24428 :
24429else
24430
24431cat >>confdefs.h <<_ACEOF
24432#define pid_t int
24433_ACEOF
24434
24435fi
24436
24437
24438# Define size_t to a suitable type, if standard headers do not define it.
24439{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
24440$as_echo_n "checking for size_t... " >&6; }
24441if test "${ac_cv_type_size_t+set}" = set; then
24442 $as_echo_n "(cached) " >&6
24443else
24444 ac_cv_type_size_t=no
24445cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
24451$ac_includes_default
24452int
24453main ()
24454{
24455if (sizeof (size_t))
24456 return 0;
24457 ;
24458 return 0;
24459}
24460_ACEOF
24461rm -f conftest.$ac_objext
24462if { (ac_try="$ac_compile"
24463case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24466esac
24467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24468$as_echo "$ac_try_echo") >&5
24469 (eval "$ac_compile") 2>conftest.er1
24470 ac_status=$?
24471 grep -v '^ *+' conftest.er1 >conftest.err
24472 rm -f conftest.er1
24473 cat conftest.err >&5
24474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } && {
24476 test -z "$ac_c_werror_flag" ||
24477 test ! -s conftest.err
24478 } && test -s conftest.$ac_objext; then
24479 cat >conftest.$ac_ext <<_ACEOF
24480/* confdefs.h. */
24481_ACEOF
24482cat confdefs.h >>conftest.$ac_ext
24483cat >>conftest.$ac_ext <<_ACEOF
24484/* end confdefs.h. */
24485$ac_includes_default
24486int
24487main ()
24488{
24489if (sizeof ((size_t)))
24490 return 0;
24491 ;
24492 return 0;
24493}
24494_ACEOF
24495rm -f conftest.$ac_objext
24496if { (ac_try="$ac_compile"
24497case "(($ac_try" in
24498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499 *) ac_try_echo=$ac_try;;
24500esac
24501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24502$as_echo "$ac_try_echo") >&5
24503 (eval "$ac_compile") 2>conftest.er1
24504 ac_status=$?
24505 grep -v '^ *+' conftest.er1 >conftest.err
24506 rm -f conftest.er1
24507 cat conftest.err >&5
24508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } && {
24510 test -z "$ac_c_werror_flag" ||
24511 test ! -s conftest.err
24512 } && test -s conftest.$ac_objext; then
24513 :
24514else
24515 $as_echo "$as_me: failed program was:" >&5
24516sed 's/^/| /' conftest.$ac_ext >&5
24517
24518 ac_cv_type_size_t=yes
24519fi
24520
24521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522else
24523 $as_echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526
24527fi
24528
24529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530fi
24531{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24532$as_echo "$ac_cv_type_size_t" >&6; }
24533if test "x$ac_cv_type_size_t" = x""yes; then
24534 :
24535else
24536
24537cat >>confdefs.h <<_ACEOF
24538#define size_t unsigned int
24539_ACEOF
24540
24541fi
24542
24543
24544# Define ssize_t to a suitable type, if standard headers do not define it.
24545{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
24546$as_echo_n "checking for ssize_t... " >&6; }
24547if test "${ac_cv_type_ssize_t+set}" = set; then
24548 $as_echo_n "(cached) " >&6
24549else
24550 ac_cv_type_ssize_t=no
24551cat >conftest.$ac_ext <<_ACEOF
24552/* confdefs.h. */
24553_ACEOF
24554cat confdefs.h >>conftest.$ac_ext
24555cat >>conftest.$ac_ext <<_ACEOF
24556/* end confdefs.h. */
24557$ac_includes_default
24558int
24559main ()
24560{
24561if (sizeof (ssize_t))
24562 return 0;
24563 ;
24564 return 0;
24565}
24566_ACEOF
24567rm -f conftest.$ac_objext
24568if { (ac_try="$ac_compile"
24569case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24572esac
24573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24574$as_echo "$ac_try_echo") >&5
24575 (eval "$ac_compile") 2>conftest.er1
24576 ac_status=$?
24577 grep -v '^ *+' conftest.er1 >conftest.err
24578 rm -f conftest.er1
24579 cat conftest.err >&5
24580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && {
24582 test -z "$ac_c_werror_flag" ||
24583 test ! -s conftest.err
24584 } && test -s conftest.$ac_objext; then
24585 cat >conftest.$ac_ext <<_ACEOF
24586/* confdefs.h. */
24587_ACEOF
24588cat confdefs.h >>conftest.$ac_ext
24589cat >>conftest.$ac_ext <<_ACEOF
24590/* end confdefs.h. */
24591$ac_includes_default
24592int
24593main ()
24594{
24595if (sizeof ((ssize_t)))
24596 return 0;
24597 ;
24598 return 0;
24599}
24600_ACEOF
24601rm -f conftest.$ac_objext
24602if { (ac_try="$ac_compile"
24603case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24606esac
24607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24608$as_echo "$ac_try_echo") >&5
24609 (eval "$ac_compile") 2>conftest.er1
24610 ac_status=$?
24611 grep -v '^ *+' conftest.er1 >conftest.err
24612 rm -f conftest.er1
24613 cat conftest.err >&5
24614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } && {
24616 test -z "$ac_c_werror_flag" ||
24617 test ! -s conftest.err
24618 } && test -s conftest.$ac_objext; then
24619 :
24620else
24621 $as_echo "$as_me: failed program was:" >&5
24622sed 's/^/| /' conftest.$ac_ext >&5
24623
24624 ac_cv_type_ssize_t=yes
24625fi
24626
24627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628else
24629 $as_echo "$as_me: failed program was:" >&5
24630sed 's/^/| /' conftest.$ac_ext >&5
24631
24632
24633fi
24634
24635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636fi
24637{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24638$as_echo "$ac_cv_type_ssize_t" >&6; }
24639if test "x$ac_cv_type_ssize_t" = x""yes; then
24640 :
24641else
24642
24643cat >>confdefs.h <<_ACEOF
24644#define ssize_t int
24645_ACEOF
24646
24647fi
24648
24649
24650# If the C compiler supports a working long double type with more range
24651# or precision than the double type, define HAVE_LONG_DOUBLE.
24652
24653 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
24654$as_echo_n "checking for long double with more range or precision than double... " >&6; }
24655if test "${ac_cv_type_long_double_wider+set}" = set; then
24656 $as_echo_n "(cached) " >&6
24657else
24658 cat >conftest.$ac_ext <<_ACEOF
24659/* confdefs.h. */
24660_ACEOF
24661cat confdefs.h >>conftest.$ac_ext
24662cat >>conftest.$ac_ext <<_ACEOF
24663/* end confdefs.h. */
24664#include <float.h>
24665 long double const a[] =
24666 {
24667 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24668 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24669 };
24670 long double
24671 f (long double x)
24672 {
24673 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24674 + (x ? f (x) : 'c'));
24675 }
24676
24677int
24678main ()
24679{
24680static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24681 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24682 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24683 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24684 && (int) LDBL_EPSILON == 0
24685 )];
24686test_array [0] = 0
24687
24688 ;
24689 return 0;
24690}
24691_ACEOF
24692rm -f conftest.$ac_objext
24693if { (ac_try="$ac_compile"
24694case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697esac
24698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699$as_echo "$ac_try_echo") >&5
24700 (eval "$ac_compile") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } && {
24707 test -z "$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 } && test -s conftest.$ac_objext; then
24710 ac_cv_type_long_double_wider=yes
24711else
24712 $as_echo "$as_me: failed program was:" >&5
24713sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_cv_type_long_double_wider=no
24716fi
24717
24718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719fi
24720{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
24721$as_echo "$ac_cv_type_long_double_wider" >&6; }
24722 if test $ac_cv_type_long_double_wider = yes; then
24723
24724cat >>confdefs.h <<\_ACEOF
24725#define HAVE_LONG_DOUBLE_WIDER 1
24726_ACEOF
24727
24728 fi
24729
24730
24731# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24732# C compiler predefines it.
24733
24734{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
24735$as_echo_n "checking whether char is unsigned... " >&6; }
24736if test "${ac_cv_c_char_unsigned+set}" = set; then
24737 $as_echo_n "(cached) " >&6
24738else
24739 cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h. */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h. */
24745$ac_includes_default
24746int
24747main ()
24748{
24749static int test_array [1 - 2 * !(((char) -1) < 0)];
24750test_array [0] = 0
24751
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (ac_try="$ac_compile"
24758case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761esac
24762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24763$as_echo "$ac_try_echo") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24765 ac_status=$?
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 ac_cv_c_char_unsigned=no
24775else
24776 $as_echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_cv_c_char_unsigned=yes
24780fi
24781
24782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783fi
24784{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
24785$as_echo "$ac_cv_c_char_unsigned" >&6; }
24786if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24787 cat >>confdefs.h <<\_ACEOF
24788#define __CHAR_UNSIGNED__ 1
24789_ACEOF
24790
24791fi
24792
24793
24794# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24795# The cast to long int works around a bug in the HP C Compiler
24796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24798# This bug is HP SR number 8606223364.
24799{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
24800$as_echo_n "checking size of signed short... " >&6; }
24801if test "${ac_cv_sizeof_signed_short+set}" = set; then
24802 $as_echo_n "(cached) " >&6
24803else
24804 if test "$cross_compiling" = yes; then
24805 # Depending upon the size, compute the lo and hi bounds.
24806cat >conftest.$ac_ext <<_ACEOF
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812$ac_includes_default
24813int
24814main ()
24815{
24816static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
24817test_array [0] = 0
24818
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823rm -f conftest.$ac_objext
24824if { (ac_try="$ac_compile"
24825case "(($ac_try" in
24826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24828esac
24829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24830$as_echo "$ac_try_echo") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24832 ac_status=$?
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
24836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24841 ac_lo=0 ac_mid=0
24842 while :; do
24843 cat >conftest.$ac_ext <<_ACEOF
24844/* confdefs.h. */
24845_ACEOF
24846cat confdefs.h >>conftest.$ac_ext
24847cat >>conftest.$ac_ext <<_ACEOF
24848/* end confdefs.h. */
24849$ac_includes_default
24850int
24851main ()
24852{
24853static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24854test_array [0] = 0
24855
24856 ;
24857 return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext
24861if { (ac_try="$ac_compile"
24862case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24865esac
24866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24867$as_echo "$ac_try_echo") >&5
24868 (eval "$ac_compile") 2>conftest.er1
24869 ac_status=$?
24870 grep -v '^ *+' conftest.er1 >conftest.err
24871 rm -f conftest.er1
24872 cat conftest.err >&5
24873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } && {
24875 test -z "$ac_c_werror_flag" ||
24876 test ! -s conftest.err
24877 } && test -s conftest.$ac_objext; then
24878 ac_hi=$ac_mid; break
24879else
24880 $as_echo "$as_me: failed program was:" >&5
24881sed 's/^/| /' conftest.$ac_ext >&5
24882
24883 ac_lo=`expr $ac_mid + 1`
24884 if test $ac_lo -le $ac_mid; then
24885 ac_lo= ac_hi=
24886 break
24887 fi
24888 ac_mid=`expr 2 '*' $ac_mid + 1`
24889fi
24890
24891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 done
24893else
24894 $as_echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897 cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903$ac_includes_default
24904int
24905main ()
24906{
24907static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24908test_array [0] = 0
24909
24910 ;
24911 return 0;
24912}
24913_ACEOF
24914rm -f conftest.$ac_objext
24915if { (ac_try="$ac_compile"
24916case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24919esac
24920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921$as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24923 ac_status=$?
24924 grep -v '^ *+' conftest.er1 >conftest.err
24925 rm -f conftest.er1
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24932 ac_hi=-1 ac_mid=-1
24933 while :; do
24934 cat >conftest.$ac_ext <<_ACEOF
24935/* confdefs.h. */
24936_ACEOF
24937cat confdefs.h >>conftest.$ac_ext
24938cat >>conftest.$ac_ext <<_ACEOF
24939/* end confdefs.h. */
24940$ac_includes_default
24941int
24942main ()
24943{
24944static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24945test_array [0] = 0
24946
24947 ;
24948 return 0;
24949}
24950_ACEOF
24951rm -f conftest.$ac_objext
24952if { (ac_try="$ac_compile"
24953case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956esac
24957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24958$as_echo "$ac_try_echo") >&5
24959 (eval "$ac_compile") 2>conftest.er1
24960 ac_status=$?
24961 grep -v '^ *+' conftest.er1 >conftest.err
24962 rm -f conftest.er1
24963 cat conftest.err >&5
24964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest.$ac_objext; then
24969 ac_lo=$ac_mid; break
24970else
24971 $as_echo "$as_me: failed program was:" >&5
24972sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 ac_hi=`expr '(' $ac_mid ')' - 1`
24975 if test $ac_mid -le $ac_hi; then
24976 ac_lo= ac_hi=
24977 break
24978 fi
24979 ac_mid=`expr 2 '*' $ac_mid`
24980fi
24981
24982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24983 done
24984else
24985 $as_echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ac_lo= ac_hi=
24989fi
24990
24991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24992fi
24993
24994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995# Binary search between lo and hi bounds.
24996while test "x$ac_lo" != "x$ac_hi"; do
24997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24998 cat >conftest.$ac_ext <<_ACEOF
24999/* confdefs.h. */
25000_ACEOF
25001cat confdefs.h >>conftest.$ac_ext
25002cat >>conftest.$ac_ext <<_ACEOF
25003/* end confdefs.h. */
25004$ac_includes_default
25005int
25006main ()
25007{
25008static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
25009test_array [0] = 0
25010
25011 ;
25012 return 0;
25013}
25014_ACEOF
25015rm -f conftest.$ac_objext
25016if { (ac_try="$ac_compile"
25017case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25020esac
25021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25022$as_echo "$ac_try_echo") >&5
25023 (eval "$ac_compile") 2>conftest.er1
25024 ac_status=$?
25025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
25028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } && {
25030 test -z "$ac_c_werror_flag" ||
25031 test ! -s conftest.err
25032 } && test -s conftest.$ac_objext; then
25033 ac_hi=$ac_mid
25034else
25035 $as_echo "$as_me: failed program was:" >&5
25036sed 's/^/| /' conftest.$ac_ext >&5
25037
25038 ac_lo=`expr '(' $ac_mid ')' + 1`
25039fi
25040
25041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042done
25043case $ac_lo in
25044?*) ac_cv_sizeof_signed_short=$ac_lo;;
25045'') if test "$ac_cv_type_signed_short" = yes; then
25046 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25048{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
25049See \`config.log' for more details." >&5
25050$as_echo "$as_me: error: cannot compute sizeof (signed short)
25051See \`config.log' for more details." >&2;}
25052 { (exit 77); exit 77; }; }; }
25053 else
25054 ac_cv_sizeof_signed_short=0
25055 fi ;;
25056esac
25057else
25058 cat >conftest.$ac_ext <<_ACEOF
25059/* confdefs.h. */
25060_ACEOF
25061cat confdefs.h >>conftest.$ac_ext
25062cat >>conftest.$ac_ext <<_ACEOF
25063/* end confdefs.h. */
25064$ac_includes_default
25065static long int longval () { return (long int) (sizeof (signed short)); }
25066static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
25067#include <stdio.h>
25068#include <stdlib.h>
25069int
25070main ()
25071{
25072
25073 FILE *f = fopen ("conftest.val", "w");
25074 if (! f)
25075 return 1;
25076 if (((long int) (sizeof (signed short))) < 0)
25077 {
25078 long int i = longval ();
25079 if (i != ((long int) (sizeof (signed short))))
25080 return 1;
25081 fprintf (f, "%ld", i);
25082 }
25083 else
25084 {
25085 unsigned long int i = ulongval ();
25086 if (i != ((long int) (sizeof (signed short))))
25087 return 1;
25088 fprintf (f, "%lu", i);
25089 }
25090 /* Do not output a trailing newline, as this causes \r\n confusion
25091 on some platforms. */
25092 return ferror (f) || fclose (f) != 0;
25093
25094 ;
25095 return 0;
25096}
25097_ACEOF
25098rm -f conftest$ac_exeext
25099if { (ac_try="$ac_link"
25100case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103esac
25104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105$as_echo "$ac_try_echo") >&5
25106 (eval "$ac_link") 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25110 { (case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25113esac
25114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25115$as_echo "$ac_try_echo") >&5
25116 (eval "$ac_try") 2>&5
25117 ac_status=$?
25118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 ac_cv_sizeof_signed_short=`cat conftest.val`
25121else
25122 $as_echo "$as_me: program exited with status $ac_status" >&5
25123$as_echo "$as_me: failed program was:" >&5
25124sed 's/^/| /' conftest.$ac_ext >&5
25125
25126( exit $ac_status )
25127if test "$ac_cv_type_signed_short" = yes; then
25128 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25130{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
25131See \`config.log' for more details." >&5
25132$as_echo "$as_me: error: cannot compute sizeof (signed short)
25133See \`config.log' for more details." >&2;}
25134 { (exit 77); exit 77; }; }; }
25135 else
25136 ac_cv_sizeof_signed_short=0
25137 fi
25138fi
25139rm -rf conftest.dSYM
25140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25141fi
25142rm -f conftest.val
25143fi
25144{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
25145$as_echo "$ac_cv_sizeof_signed_short" >&6; }
25146
25147
25148
25149cat >>confdefs.h <<_ACEOF
25150#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
25151_ACEOF
25152
25153
25154
25155# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
25156# The cast to long int works around a bug in the HP C Compiler
25157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25159# This bug is HP SR number 8606223364.
25160{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
25161$as_echo_n "checking size of unsigned short... " >&6; }
25162if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
25163 $as_echo_n "(cached) " >&6
25164else
25165 if test "$cross_compiling" = yes; then
25166 # Depending upon the size, compute the lo and hi bounds.
25167cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173$ac_includes_default
25174int
25175main ()
25176{
25177static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
25178test_array [0] = 0
25179
25180 ;
25181 return 0;
25182}
25183_ACEOF
25184rm -f conftest.$ac_objext
25185if { (ac_try="$ac_compile"
25186case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25189esac
25190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191$as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25193 ac_status=$?
25194 grep -v '^ *+' conftest.er1 >conftest.err
25195 rm -f conftest.er1
25196 cat conftest.err >&5
25197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.$ac_objext; then
25202 ac_lo=0 ac_mid=0
25203 while :; do
25204 cat >conftest.$ac_ext <<_ACEOF
25205/* confdefs.h. */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h. */
25210$ac_includes_default
25211int
25212main ()
25213{
25214static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25215test_array [0] = 0
25216
25217 ;
25218 return 0;
25219}
25220_ACEOF
25221rm -f conftest.$ac_objext
25222if { (ac_try="$ac_compile"
25223case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25226esac
25227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25228$as_echo "$ac_try_echo") >&5
25229 (eval "$ac_compile") 2>conftest.er1
25230 ac_status=$?
25231 grep -v '^ *+' conftest.er1 >conftest.err
25232 rm -f conftest.er1
25233 cat conftest.err >&5
25234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } && {
25236 test -z "$ac_c_werror_flag" ||
25237 test ! -s conftest.err
25238 } && test -s conftest.$ac_objext; then
25239 ac_hi=$ac_mid; break
25240else
25241 $as_echo "$as_me: failed program was:" >&5
25242sed 's/^/| /' conftest.$ac_ext >&5
25243
25244 ac_lo=`expr $ac_mid + 1`
25245 if test $ac_lo -le $ac_mid; then
25246 ac_lo= ac_hi=
25247 break
25248 fi
25249 ac_mid=`expr 2 '*' $ac_mid + 1`
25250fi
25251
25252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25253 done
25254else
25255 $as_echo "$as_me: failed program was:" >&5
25256sed 's/^/| /' conftest.$ac_ext >&5
25257
25258 cat >conftest.$ac_ext <<_ACEOF
25259/* confdefs.h. */
25260_ACEOF
25261cat confdefs.h >>conftest.$ac_ext
25262cat >>conftest.$ac_ext <<_ACEOF
25263/* end confdefs.h. */
25264$ac_includes_default
25265int
25266main ()
25267{
25268static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
25269test_array [0] = 0
25270
25271 ;
25272 return 0;
25273}
25274_ACEOF
25275rm -f conftest.$ac_objext
25276if { (ac_try="$ac_compile"
25277case "(($ac_try" in
25278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279 *) ac_try_echo=$ac_try;;
25280esac
25281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25282$as_echo "$ac_try_echo") >&5
25283 (eval "$ac_compile") 2>conftest.er1
25284 ac_status=$?
25285 grep -v '^ *+' conftest.er1 >conftest.err
25286 rm -f conftest.er1
25287 cat conftest.err >&5
25288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && {
25290 test -z "$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 } && test -s conftest.$ac_objext; then
25293 ac_hi=-1 ac_mid=-1
25294 while :; do
25295 cat >conftest.$ac_ext <<_ACEOF
25296/* confdefs.h. */
25297_ACEOF
25298cat confdefs.h >>conftest.$ac_ext
25299cat >>conftest.$ac_ext <<_ACEOF
25300/* end confdefs.h. */
25301$ac_includes_default
25302int
25303main ()
25304{
25305static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
25306test_array [0] = 0
25307
25308 ;
25309 return 0;
25310}
25311_ACEOF
25312rm -f conftest.$ac_objext
25313if { (ac_try="$ac_compile"
25314case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25317esac
25318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25319$as_echo "$ac_try_echo") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25321 ac_status=$?
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
25325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25330 ac_lo=$ac_mid; break
25331else
25332 $as_echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 ac_hi=`expr '(' $ac_mid ')' - 1`
25336 if test $ac_mid -le $ac_hi; then
25337 ac_lo= ac_hi=
25338 break
25339 fi
25340 ac_mid=`expr 2 '*' $ac_mid`
25341fi
25342
25343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 done
25345else
25346 $as_echo "$as_me: failed program was:" >&5
25347sed 's/^/| /' conftest.$ac_ext >&5
25348
25349 ac_lo= ac_hi=
25350fi
25351
25352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353fi
25354
25355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356# Binary search between lo and hi bounds.
25357while test "x$ac_lo" != "x$ac_hi"; do
25358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25359 cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h. */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h. */
25365$ac_includes_default
25366int
25367main ()
25368{
25369static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25370test_array [0] = 0
25371
25372 ;
25373 return 0;
25374}
25375_ACEOF
25376rm -f conftest.$ac_objext
25377if { (ac_try="$ac_compile"
25378case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25381esac
25382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383$as_echo "$ac_try_echo") >&5
25384 (eval "$ac_compile") 2>conftest.er1
25385 ac_status=$?
25386 grep -v '^ *+' conftest.er1 >conftest.err
25387 rm -f conftest.er1
25388 cat conftest.err >&5
25389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest.$ac_objext; then
25394 ac_hi=$ac_mid
25395else
25396 $as_echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399 ac_lo=`expr '(' $ac_mid ')' + 1`
25400fi
25401
25402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403done
25404case $ac_lo in
25405?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25406'') if test "$ac_cv_type_unsigned_short" = yes; then
25407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25409{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25410See \`config.log' for more details." >&5
25411$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25412See \`config.log' for more details." >&2;}
25413 { (exit 77); exit 77; }; }; }
25414 else
25415 ac_cv_sizeof_unsigned_short=0
25416 fi ;;
25417esac
25418else
25419 cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
25425$ac_includes_default
25426static long int longval () { return (long int) (sizeof (unsigned short)); }
25427static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
25428#include <stdio.h>
25429#include <stdlib.h>
25430int
25431main ()
25432{
25433
25434 FILE *f = fopen ("conftest.val", "w");
25435 if (! f)
25436 return 1;
25437 if (((long int) (sizeof (unsigned short))) < 0)
25438 {
25439 long int i = longval ();
25440 if (i != ((long int) (sizeof (unsigned short))))
25441 return 1;
25442 fprintf (f, "%ld", i);
25443 }
25444 else
25445 {
25446 unsigned long int i = ulongval ();
25447 if (i != ((long int) (sizeof (unsigned short))))
25448 return 1;
25449 fprintf (f, "%lu", i);
25450 }
25451 /* Do not output a trailing newline, as this causes \r\n confusion
25452 on some platforms. */
25453 return ferror (f) || fclose (f) != 0;
25454
25455 ;
25456 return 0;
25457}
25458_ACEOF
25459rm -f conftest$ac_exeext
25460if { (ac_try="$ac_link"
25461case "(($ac_try" in
25462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463 *) ac_try_echo=$ac_try;;
25464esac
25465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25466$as_echo "$ac_try_echo") >&5
25467 (eval "$ac_link") 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25471 { (case "(($ac_try" in
25472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473 *) ac_try_echo=$ac_try;;
25474esac
25475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25476$as_echo "$ac_try_echo") >&5
25477 (eval "$ac_try") 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; }; then
25481 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25482else
25483 $as_echo "$as_me: program exited with status $ac_status" >&5
25484$as_echo "$as_me: failed program was:" >&5
25485sed 's/^/| /' conftest.$ac_ext >&5
25486
25487( exit $ac_status )
25488if test "$ac_cv_type_unsigned_short" = yes; then
25489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25491{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25492See \`config.log' for more details." >&5
25493$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25494See \`config.log' for more details." >&2;}
25495 { (exit 77); exit 77; }; }; }
25496 else
25497 ac_cv_sizeof_unsigned_short=0
25498 fi
25499fi
25500rm -rf conftest.dSYM
25501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25502fi
25503rm -f conftest.val
25504fi
25505{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25506$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
25507
25508
25509
25510cat >>confdefs.h <<_ACEOF
25511#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25512_ACEOF
25513
25514
25515
25516# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
25517# The cast to long int works around a bug in the HP C Compiler
25518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25520# This bug is HP SR number 8606223364.
25521{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
25522$as_echo_n "checking size of signed int... " >&6; }
25523if test "${ac_cv_sizeof_signed_int+set}" = set; then
25524 $as_echo_n "(cached) " >&6
25525else
25526 if test "$cross_compiling" = yes; then
25527 # Depending upon the size, compute the lo and hi bounds.
25528cat >conftest.$ac_ext <<_ACEOF
25529/* confdefs.h. */
25530_ACEOF
25531cat confdefs.h >>conftest.$ac_ext
25532cat >>conftest.$ac_ext <<_ACEOF
25533/* end confdefs.h. */
25534$ac_includes_default
25535int
25536main ()
25537{
25538static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
25539test_array [0] = 0
25540
25541 ;
25542 return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext
25546if { (ac_try="$ac_compile"
25547case "(($ac_try" in
25548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549 *) ac_try_echo=$ac_try;;
25550esac
25551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25552$as_echo "$ac_try_echo") >&5
25553 (eval "$ac_compile") 2>conftest.er1
25554 ac_status=$?
25555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
25558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } && {
25560 test -z "$ac_c_werror_flag" ||
25561 test ! -s conftest.err
25562 } && test -s conftest.$ac_objext; then
25563 ac_lo=0 ac_mid=0
25564 while :; do
25565 cat >conftest.$ac_ext <<_ACEOF
25566/* confdefs.h. */
25567_ACEOF
25568cat confdefs.h >>conftest.$ac_ext
25569cat >>conftest.$ac_ext <<_ACEOF
25570/* end confdefs.h. */
25571$ac_includes_default
25572int
25573main ()
25574{
25575static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25576test_array [0] = 0
25577
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext
25583if { (ac_try="$ac_compile"
25584case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25587esac
25588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589$as_echo "$ac_try_echo") >&5
25590 (eval "$ac_compile") 2>conftest.er1
25591 ac_status=$?
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
25595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } && {
25597 test -z "$ac_c_werror_flag" ||
25598 test ! -s conftest.err
25599 } && test -s conftest.$ac_objext; then
25600 ac_hi=$ac_mid; break
25601else
25602 $as_echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_lo=`expr $ac_mid + 1`
25606 if test $ac_lo -le $ac_mid; then
25607 ac_lo= ac_hi=
25608 break
25609 fi
25610 ac_mid=`expr 2 '*' $ac_mid + 1`
25611fi
25612
25613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 done
25615else
25616 $as_echo "$as_me: failed program was:" >&5
25617sed 's/^/| /' conftest.$ac_ext >&5
25618
25619 cat >conftest.$ac_ext <<_ACEOF
25620/* confdefs.h. */
25621_ACEOF
25622cat confdefs.h >>conftest.$ac_ext
25623cat >>conftest.$ac_ext <<_ACEOF
25624/* end confdefs.h. */
25625$ac_includes_default
25626int
25627main ()
25628{
25629static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
25630test_array [0] = 0
25631
25632 ;
25633 return 0;
25634}
25635_ACEOF
25636rm -f conftest.$ac_objext
25637if { (ac_try="$ac_compile"
25638case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641esac
25642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25643$as_echo "$ac_try_echo") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_hi=-1 ac_mid=-1
25655 while :; do
25656 cat >conftest.$ac_ext <<_ACEOF
25657/* confdefs.h. */
25658_ACEOF
25659cat confdefs.h >>conftest.$ac_ext
25660cat >>conftest.$ac_ext <<_ACEOF
25661/* end confdefs.h. */
25662$ac_includes_default
25663int
25664main ()
25665{
25666static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
25667test_array [0] = 0
25668
25669 ;
25670 return 0;
25671}
25672_ACEOF
25673rm -f conftest.$ac_objext
25674if { (ac_try="$ac_compile"
25675case "(($ac_try" in
25676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25677 *) ac_try_echo=$ac_try;;
25678esac
25679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25680$as_echo "$ac_try_echo") >&5
25681 (eval "$ac_compile") 2>conftest.er1
25682 ac_status=$?
25683 grep -v '^ *+' conftest.er1 >conftest.err
25684 rm -f conftest.er1
25685 cat conftest.err >&5
25686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } && {
25688 test -z "$ac_c_werror_flag" ||
25689 test ! -s conftest.err
25690 } && test -s conftest.$ac_objext; then
25691 ac_lo=$ac_mid; break
25692else
25693 $as_echo "$as_me: failed program was:" >&5
25694sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ac_hi=`expr '(' $ac_mid ')' - 1`
25697 if test $ac_mid -le $ac_hi; then
25698 ac_lo= ac_hi=
25699 break
25700 fi
25701 ac_mid=`expr 2 '*' $ac_mid`
25702fi
25703
25704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705 done
25706else
25707 $as_echo "$as_me: failed program was:" >&5
25708sed 's/^/| /' conftest.$ac_ext >&5
25709
25710 ac_lo= ac_hi=
25711fi
25712
25713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714fi
25715
25716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717# Binary search between lo and hi bounds.
25718while test "x$ac_lo" != "x$ac_hi"; do
25719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25720 cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726$ac_includes_default
25727int
25728main ()
25729{
25730static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25731test_array [0] = 0
25732
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext
25738if { (ac_try="$ac_compile"
25739case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25742esac
25743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25744$as_echo "$ac_try_echo") >&5
25745 (eval "$ac_compile") 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } && {
25752 test -z "$ac_c_werror_flag" ||
25753 test ! -s conftest.err
25754 } && test -s conftest.$ac_objext; then
25755 ac_hi=$ac_mid
25756else
25757 $as_echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 ac_lo=`expr '(' $ac_mid ')' + 1`
25761fi
25762
25763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764done
25765case $ac_lo in
25766?*) ac_cv_sizeof_signed_int=$ac_lo;;
25767'') if test "$ac_cv_type_signed_int" = yes; then
25768 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25770{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25771See \`config.log' for more details." >&5
25772$as_echo "$as_me: error: cannot compute sizeof (signed int)
25773See \`config.log' for more details." >&2;}
25774 { (exit 77); exit 77; }; }; }
25775 else
25776 ac_cv_sizeof_signed_int=0
25777 fi ;;
25778esac
25779else
25780 cat >conftest.$ac_ext <<_ACEOF
25781/* confdefs.h. */
25782_ACEOF
25783cat confdefs.h >>conftest.$ac_ext
25784cat >>conftest.$ac_ext <<_ACEOF
25785/* end confdefs.h. */
25786$ac_includes_default
25787static long int longval () { return (long int) (sizeof (signed int)); }
25788static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
25789#include <stdio.h>
25790#include <stdlib.h>
25791int
25792main ()
25793{
25794
25795 FILE *f = fopen ("conftest.val", "w");
25796 if (! f)
25797 return 1;
25798 if (((long int) (sizeof (signed int))) < 0)
25799 {
25800 long int i = longval ();
25801 if (i != ((long int) (sizeof (signed int))))
25802 return 1;
25803 fprintf (f, "%ld", i);
25804 }
25805 else
25806 {
25807 unsigned long int i = ulongval ();
25808 if (i != ((long int) (sizeof (signed int))))
25809 return 1;
25810 fprintf (f, "%lu", i);
25811 }
25812 /* Do not output a trailing newline, as this causes \r\n confusion
25813 on some platforms. */
25814 return ferror (f) || fclose (f) != 0;
25815
25816 ;
25817 return 0;
25818}
25819_ACEOF
25820rm -f conftest$ac_exeext
25821if { (ac_try="$ac_link"
25822case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25825esac
25826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827$as_echo "$ac_try_echo") >&5
25828 (eval "$ac_link") 2>&5
25829 ac_status=$?
25830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25832 { (case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25835esac
25836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25837$as_echo "$ac_try_echo") >&5
25838 (eval "$ac_try") 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25842 ac_cv_sizeof_signed_int=`cat conftest.val`
25843else
25844 $as_echo "$as_me: program exited with status $ac_status" >&5
25845$as_echo "$as_me: failed program was:" >&5
25846sed 's/^/| /' conftest.$ac_ext >&5
25847
25848( exit $ac_status )
25849if test "$ac_cv_type_signed_int" = yes; then
25850 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25852{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25853See \`config.log' for more details." >&5
25854$as_echo "$as_me: error: cannot compute sizeof (signed int)
25855See \`config.log' for more details." >&2;}
25856 { (exit 77); exit 77; }; }; }
25857 else
25858 ac_cv_sizeof_signed_int=0
25859 fi
25860fi
25861rm -rf conftest.dSYM
25862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25863fi
25864rm -f conftest.val
25865fi
25866{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25867$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25868
25869
25870
25871cat >>confdefs.h <<_ACEOF
25872#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25873_ACEOF
25874
25875
25876
25877# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25878# The cast to long int works around a bug in the HP C Compiler
25879# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25880# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25881# This bug is HP SR number 8606223364.
25882{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25883$as_echo_n "checking size of unsigned int... " >&6; }
25884if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25885 $as_echo_n "(cached) " >&6
25886else
25887 if test "$cross_compiling" = yes; then
25888 # Depending upon the size, compute the lo and hi bounds.
25889cat >conftest.$ac_ext <<_ACEOF
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
25895$ac_includes_default
25896int
25897main ()
25898{
25899static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25900test_array [0] = 0
25901
25902 ;
25903 return 0;
25904}
25905_ACEOF
25906rm -f conftest.$ac_objext
25907if { (ac_try="$ac_compile"
25908case "(($ac_try" in
25909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910 *) ac_try_echo=$ac_try;;
25911esac
25912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25913$as_echo "$ac_try_echo") >&5
25914 (eval "$ac_compile") 2>conftest.er1
25915 ac_status=$?
25916 grep -v '^ *+' conftest.er1 >conftest.err
25917 rm -f conftest.er1
25918 cat conftest.err >&5
25919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } && {
25921 test -z "$ac_c_werror_flag" ||
25922 test ! -s conftest.err
25923 } && test -s conftest.$ac_objext; then
25924 ac_lo=0 ac_mid=0
25925 while :; do
25926 cat >conftest.$ac_ext <<_ACEOF
25927/* confdefs.h. */
25928_ACEOF
25929cat confdefs.h >>conftest.$ac_ext
25930cat >>conftest.$ac_ext <<_ACEOF
25931/* end confdefs.h. */
25932$ac_includes_default
25933int
25934main ()
25935{
25936static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25937test_array [0] = 0
25938
25939 ;
25940 return 0;
25941}
25942_ACEOF
25943rm -f conftest.$ac_objext
25944if { (ac_try="$ac_compile"
25945case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25948esac
25949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950$as_echo "$ac_try_echo") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25952 ac_status=$?
25953 grep -v '^ *+' conftest.er1 >conftest.err
25954 rm -f conftest.er1
25955 cat conftest.err >&5
25956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25961 ac_hi=$ac_mid; break
25962else
25963 $as_echo "$as_me: failed program was:" >&5
25964sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 ac_lo=`expr $ac_mid + 1`
25967 if test $ac_lo -le $ac_mid; then
25968 ac_lo= ac_hi=
25969 break
25970 fi
25971 ac_mid=`expr 2 '*' $ac_mid + 1`
25972fi
25973
25974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25975 done
25976else
25977 $as_echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 cat >conftest.$ac_ext <<_ACEOF
25981/* confdefs.h. */
25982_ACEOF
25983cat confdefs.h >>conftest.$ac_ext
25984cat >>conftest.$ac_ext <<_ACEOF
25985/* end confdefs.h. */
25986$ac_includes_default
25987int
25988main ()
25989{
25990static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25991test_array [0] = 0
25992
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997rm -f conftest.$ac_objext
25998if { (ac_try="$ac_compile"
25999case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26002esac
26003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26004$as_echo "$ac_try_echo") >&5
26005 (eval "$ac_compile") 2>conftest.er1
26006 ac_status=$?
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
26010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest.$ac_objext; then
26015 ac_hi=-1 ac_mid=-1
26016 while :; do
26017 cat >conftest.$ac_ext <<_ACEOF
26018/* confdefs.h. */
26019_ACEOF
26020cat confdefs.h >>conftest.$ac_ext
26021cat >>conftest.$ac_ext <<_ACEOF
26022/* end confdefs.h. */
26023$ac_includes_default
26024int
26025main ()
26026{
26027static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
26028test_array [0] = 0
26029
26030 ;
26031 return 0;
26032}
26033_ACEOF
26034rm -f conftest.$ac_objext
26035if { (ac_try="$ac_compile"
26036case "(($ac_try" in
26037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26038 *) ac_try_echo=$ac_try;;
26039esac
26040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26041$as_echo "$ac_try_echo") >&5
26042 (eval "$ac_compile") 2>conftest.er1
26043 ac_status=$?
26044 grep -v '^ *+' conftest.er1 >conftest.err
26045 rm -f conftest.er1
26046 cat conftest.err >&5
26047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); } && {
26049 test -z "$ac_c_werror_flag" ||
26050 test ! -s conftest.err
26051 } && test -s conftest.$ac_objext; then
26052 ac_lo=$ac_mid; break
26053else
26054 $as_echo "$as_me: failed program was:" >&5
26055sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 ac_hi=`expr '(' $ac_mid ')' - 1`
26058 if test $ac_mid -le $ac_hi; then
26059 ac_lo= ac_hi=
26060 break
26061 fi
26062 ac_mid=`expr 2 '*' $ac_mid`
26063fi
26064
26065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066 done
26067else
26068 $as_echo "$as_me: failed program was:" >&5
26069sed 's/^/| /' conftest.$ac_ext >&5
26070
26071 ac_lo= ac_hi=
26072fi
26073
26074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26075fi
26076
26077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26078# Binary search between lo and hi bounds.
26079while test "x$ac_lo" != "x$ac_hi"; do
26080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26081 cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
26087$ac_includes_default
26088int
26089main ()
26090{
26091static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
26092test_array [0] = 0
26093
26094 ;
26095 return 0;
26096}
26097_ACEOF
26098rm -f conftest.$ac_objext
26099if { (ac_try="$ac_compile"
26100case "(($ac_try" in
26101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102 *) ac_try_echo=$ac_try;;
26103esac
26104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26105$as_echo "$ac_try_echo") >&5
26106 (eval "$ac_compile") 2>conftest.er1
26107 ac_status=$?
26108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
26111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } && {
26113 test -z "$ac_c_werror_flag" ||
26114 test ! -s conftest.err
26115 } && test -s conftest.$ac_objext; then
26116 ac_hi=$ac_mid
26117else
26118 $as_echo "$as_me: failed program was:" >&5
26119sed 's/^/| /' conftest.$ac_ext >&5
26120
26121 ac_lo=`expr '(' $ac_mid ')' + 1`
26122fi
26123
26124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26125done
26126case $ac_lo in
26127?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
26128'') if test "$ac_cv_type_unsigned_int" = yes; then
26129 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26131{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26132See \`config.log' for more details." >&5
26133$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
26134See \`config.log' for more details." >&2;}
26135 { (exit 77); exit 77; }; }; }
26136 else
26137 ac_cv_sizeof_unsigned_int=0
26138 fi ;;
26139esac
26140else
26141 cat >conftest.$ac_ext <<_ACEOF
26142/* confdefs.h. */
26143_ACEOF
26144cat confdefs.h >>conftest.$ac_ext
26145cat >>conftest.$ac_ext <<_ACEOF
26146/* end confdefs.h. */
26147$ac_includes_default
26148static long int longval () { return (long int) (sizeof (unsigned int)); }
26149static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
26150#include <stdio.h>
26151#include <stdlib.h>
26152int
26153main ()
26154{
26155
26156 FILE *f = fopen ("conftest.val", "w");
26157 if (! f)
26158 return 1;
26159 if (((long int) (sizeof (unsigned int))) < 0)
26160 {
26161 long int i = longval ();
26162 if (i != ((long int) (sizeof (unsigned int))))
26163 return 1;
26164 fprintf (f, "%ld", i);
26165 }
26166 else
26167 {
26168 unsigned long int i = ulongval ();
26169 if (i != ((long int) (sizeof (unsigned int))))
26170 return 1;
26171 fprintf (f, "%lu", i);
26172 }
26173 /* Do not output a trailing newline, as this causes \r\n confusion
26174 on some platforms. */
26175 return ferror (f) || fclose (f) != 0;
26176
26177 ;
26178 return 0;
26179}
26180_ACEOF
26181rm -f conftest$ac_exeext
26182if { (ac_try="$ac_link"
26183case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26186esac
26187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188$as_echo "$ac_try_echo") >&5
26189 (eval "$ac_link") 2>&5
26190 ac_status=$?
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26193 { (case "(($ac_try" in
26194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195 *) ac_try_echo=$ac_try;;
26196esac
26197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26198$as_echo "$ac_try_echo") >&5
26199 (eval "$ac_try") 2>&5
26200 ac_status=$?
26201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26203 ac_cv_sizeof_unsigned_int=`cat conftest.val`
26204else
26205 $as_echo "$as_me: program exited with status $ac_status" >&5
26206$as_echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209( exit $ac_status )
26210if test "$ac_cv_type_unsigned_int" = yes; then
26211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26213{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26214See \`config.log' for more details." >&5
26215$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
26216See \`config.log' for more details." >&2;}
26217 { (exit 77); exit 77; }; }; }
26218 else
26219 ac_cv_sizeof_unsigned_int=0
26220 fi
26221fi
26222rm -rf conftest.dSYM
26223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26224fi
26225rm -f conftest.val
26226fi
26227{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
26228$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
26229
26230
26231
26232cat >>confdefs.h <<_ACEOF
26233#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26234_ACEOF
26235
26236
26237
26238# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
26239# The cast to long int works around a bug in the HP C Compiler
26240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26242# This bug is HP SR number 8606223364.
26243{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
26244$as_echo_n "checking size of signed long... " >&6; }
26245if test "${ac_cv_sizeof_signed_long+set}" = set; then
26246 $as_echo_n "(cached) " >&6
26247else
26248 if test "$cross_compiling" = yes; then
26249 # Depending upon the size, compute the lo and hi bounds.
26250cat >conftest.$ac_ext <<_ACEOF
26251/* confdefs.h. */
26252_ACEOF
26253cat confdefs.h >>conftest.$ac_ext
26254cat >>conftest.$ac_ext <<_ACEOF
26255/* end confdefs.h. */
26256$ac_includes_default
26257int
26258main ()
26259{
26260static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
26261test_array [0] = 0
26262
26263 ;
26264 return 0;
26265}
26266_ACEOF
26267rm -f conftest.$ac_objext
26268if { (ac_try="$ac_compile"
26269case "(($ac_try" in
26270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26271 *) ac_try_echo=$ac_try;;
26272esac
26273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26274$as_echo "$ac_try_echo") >&5
26275 (eval "$ac_compile") 2>conftest.er1
26276 ac_status=$?
26277 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1
26279 cat conftest.err >&5
26280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && {
26282 test -z "$ac_c_werror_flag" ||
26283 test ! -s conftest.err
26284 } && test -s conftest.$ac_objext; then
26285 ac_lo=0 ac_mid=0
26286 while :; do
26287 cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
26293$ac_includes_default
26294int
26295main ()
26296{
26297static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26298test_array [0] = 0
26299
26300 ;
26301 return 0;
26302}
26303_ACEOF
26304rm -f conftest.$ac_objext
26305if { (ac_try="$ac_compile"
26306case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26309esac
26310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26311$as_echo "$ac_try_echo") >&5
26312 (eval "$ac_compile") 2>conftest.er1
26313 ac_status=$?
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
26317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } && {
26319 test -z "$ac_c_werror_flag" ||
26320 test ! -s conftest.err
26321 } && test -s conftest.$ac_objext; then
26322 ac_hi=$ac_mid; break
26323else
26324 $as_echo "$as_me: failed program was:" >&5
26325sed 's/^/| /' conftest.$ac_ext >&5
26326
26327 ac_lo=`expr $ac_mid + 1`
26328 if test $ac_lo -le $ac_mid; then
26329 ac_lo= ac_hi=
26330 break
26331 fi
26332 ac_mid=`expr 2 '*' $ac_mid + 1`
26333fi
26334
26335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 done
26337else
26338 $as_echo "$as_me: failed program was:" >&5
26339sed 's/^/| /' conftest.$ac_ext >&5
26340
26341 cat >conftest.$ac_ext <<_ACEOF
26342/* confdefs.h. */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h. */
26347$ac_includes_default
26348int
26349main ()
26350{
26351static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
26352test_array [0] = 0
26353
26354 ;
26355 return 0;
26356}
26357_ACEOF
26358rm -f conftest.$ac_objext
26359if { (ac_try="$ac_compile"
26360case "(($ac_try" in
26361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362 *) ac_try_echo=$ac_try;;
26363esac
26364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26365$as_echo "$ac_try_echo") >&5
26366 (eval "$ac_compile") 2>conftest.er1
26367 ac_status=$?
26368 grep -v '^ *+' conftest.er1 >conftest.err
26369 rm -f conftest.er1
26370 cat conftest.err >&5
26371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } && {
26373 test -z "$ac_c_werror_flag" ||
26374 test ! -s conftest.err
26375 } && test -s conftest.$ac_objext; then
26376 ac_hi=-1 ac_mid=-1
26377 while :; do
26378 cat >conftest.$ac_ext <<_ACEOF
26379/* confdefs.h. */
26380_ACEOF
26381cat confdefs.h >>conftest.$ac_ext
26382cat >>conftest.$ac_ext <<_ACEOF
26383/* end confdefs.h. */
26384$ac_includes_default
26385int
26386main ()
26387{
26388static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
26389test_array [0] = 0
26390
26391 ;
26392 return 0;
26393}
26394_ACEOF
26395rm -f conftest.$ac_objext
26396if { (ac_try="$ac_compile"
26397case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26400esac
26401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26402$as_echo "$ac_try_echo") >&5
26403 (eval "$ac_compile") 2>conftest.er1
26404 ac_status=$?
26405 grep -v '^ *+' conftest.er1 >conftest.err
26406 rm -f conftest.er1
26407 cat conftest.err >&5
26408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } && {
26410 test -z "$ac_c_werror_flag" ||
26411 test ! -s conftest.err
26412 } && test -s conftest.$ac_objext; then
26413 ac_lo=$ac_mid; break
26414else
26415 $as_echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
26418 ac_hi=`expr '(' $ac_mid ')' - 1`
26419 if test $ac_mid -le $ac_hi; then
26420 ac_lo= ac_hi=
26421 break
26422 fi
26423 ac_mid=`expr 2 '*' $ac_mid`
26424fi
26425
26426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26427 done
26428else
26429 $as_echo "$as_me: failed program was:" >&5
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
26432 ac_lo= ac_hi=
26433fi
26434
26435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436fi
26437
26438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26439# Binary search between lo and hi bounds.
26440while test "x$ac_lo" != "x$ac_hi"; do
26441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26442 cat >conftest.$ac_ext <<_ACEOF
26443/* confdefs.h. */
26444_ACEOF
26445cat confdefs.h >>conftest.$ac_ext
26446cat >>conftest.$ac_ext <<_ACEOF
26447/* end confdefs.h. */
26448$ac_includes_default
26449int
26450main ()
26451{
26452static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26453test_array [0] = 0
26454
26455 ;
26456 return 0;
26457}
26458_ACEOF
26459rm -f conftest.$ac_objext
26460if { (ac_try="$ac_compile"
26461case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26464esac
26465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26466$as_echo "$ac_try_echo") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26468 ac_status=$?
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
26472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26477 ac_hi=$ac_mid
26478else
26479 $as_echo "$as_me: failed program was:" >&5
26480sed 's/^/| /' conftest.$ac_ext >&5
26481
26482 ac_lo=`expr '(' $ac_mid ')' + 1`
26483fi
26484
26485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26486done
26487case $ac_lo in
26488?*) ac_cv_sizeof_signed_long=$ac_lo;;
26489'') if test "$ac_cv_type_signed_long" = yes; then
26490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26492{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26493See \`config.log' for more details." >&5
26494$as_echo "$as_me: error: cannot compute sizeof (signed long)
26495See \`config.log' for more details." >&2;}
26496 { (exit 77); exit 77; }; }; }
26497 else
26498 ac_cv_sizeof_signed_long=0
26499 fi ;;
26500esac
26501else
26502 cat >conftest.$ac_ext <<_ACEOF
26503/* confdefs.h. */
26504_ACEOF
26505cat confdefs.h >>conftest.$ac_ext
26506cat >>conftest.$ac_ext <<_ACEOF
26507/* end confdefs.h. */
26508$ac_includes_default
26509static long int longval () { return (long int) (sizeof (signed long)); }
26510static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
26511#include <stdio.h>
26512#include <stdlib.h>
26513int
26514main ()
26515{
26516
26517 FILE *f = fopen ("conftest.val", "w");
26518 if (! f)
26519 return 1;
26520 if (((long int) (sizeof (signed long))) < 0)
26521 {
26522 long int i = longval ();
26523 if (i != ((long int) (sizeof (signed long))))
26524 return 1;
26525 fprintf (f, "%ld", i);
26526 }
26527 else
26528 {
26529 unsigned long int i = ulongval ();
26530 if (i != ((long int) (sizeof (signed long))))
26531 return 1;
26532 fprintf (f, "%lu", i);
26533 }
26534 /* Do not output a trailing newline, as this causes \r\n confusion
26535 on some platforms. */
26536 return ferror (f) || fclose (f) != 0;
26537
26538 ;
26539 return 0;
26540}
26541_ACEOF
26542rm -f conftest$ac_exeext
26543if { (ac_try="$ac_link"
26544case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26547esac
26548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26549$as_echo "$ac_try_echo") >&5
26550 (eval "$ac_link") 2>&5
26551 ac_status=$?
26552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26554 { (case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26557esac
26558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26559$as_echo "$ac_try_echo") >&5
26560 (eval "$ac_try") 2>&5
26561 ac_status=$?
26562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 ac_cv_sizeof_signed_long=`cat conftest.val`
26565else
26566 $as_echo "$as_me: program exited with status $ac_status" >&5
26567$as_echo "$as_me: failed program was:" >&5
26568sed 's/^/| /' conftest.$ac_ext >&5
26569
26570( exit $ac_status )
26571if test "$ac_cv_type_signed_long" = yes; then
26572 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26574{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26575See \`config.log' for more details." >&5
26576$as_echo "$as_me: error: cannot compute sizeof (signed long)
26577See \`config.log' for more details." >&2;}
26578 { (exit 77); exit 77; }; }; }
26579 else
26580 ac_cv_sizeof_signed_long=0
26581 fi
26582fi
26583rm -rf conftest.dSYM
26584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26585fi
26586rm -f conftest.val
26587fi
26588{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
26589$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26590
26591
26592
26593cat >>confdefs.h <<_ACEOF
26594#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26595_ACEOF
26596
26597
26598
26599# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26600# The cast to long int works around a bug in the HP C Compiler
26601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26603# This bug is HP SR number 8606223364.
26604{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
26605$as_echo_n "checking size of unsigned long... " >&6; }
26606if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26607 $as_echo_n "(cached) " >&6
26608else
26609 if test "$cross_compiling" = yes; then
26610 # Depending upon the size, compute the lo and hi bounds.
26611cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617$ac_includes_default
26618int
26619main ()
26620{
26621static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
26622test_array [0] = 0
26623
26624 ;
26625 return 0;
26626}
26627_ACEOF
26628rm -f conftest.$ac_objext
26629if { (ac_try="$ac_compile"
26630case "(($ac_try" in
26631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26632 *) ac_try_echo=$ac_try;;
26633esac
26634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26635$as_echo "$ac_try_echo") >&5
26636 (eval "$ac_compile") 2>conftest.er1
26637 ac_status=$?
26638 grep -v '^ *+' conftest.er1 >conftest.err
26639 rm -f conftest.er1
26640 cat conftest.err >&5
26641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } && {
26643 test -z "$ac_c_werror_flag" ||
26644 test ! -s conftest.err
26645 } && test -s conftest.$ac_objext; then
26646 ac_lo=0 ac_mid=0
26647 while :; do
26648 cat >conftest.$ac_ext <<_ACEOF
26649/* confdefs.h. */
26650_ACEOF
26651cat confdefs.h >>conftest.$ac_ext
26652cat >>conftest.$ac_ext <<_ACEOF
26653/* end confdefs.h. */
26654$ac_includes_default
26655int
26656main ()
26657{
26658static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26659test_array [0] = 0
26660
26661 ;
26662 return 0;
26663}
26664_ACEOF
26665rm -f conftest.$ac_objext
26666if { (ac_try="$ac_compile"
26667case "(($ac_try" in
26668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669 *) ac_try_echo=$ac_try;;
26670esac
26671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26672$as_echo "$ac_try_echo") >&5
26673 (eval "$ac_compile") 2>conftest.er1
26674 ac_status=$?
26675 grep -v '^ *+' conftest.er1 >conftest.err
26676 rm -f conftest.er1
26677 cat conftest.err >&5
26678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest.$ac_objext; then
26683 ac_hi=$ac_mid; break
26684else
26685 $as_echo "$as_me: failed program was:" >&5
26686sed 's/^/| /' conftest.$ac_ext >&5
26687
26688 ac_lo=`expr $ac_mid + 1`
26689 if test $ac_lo -le $ac_mid; then
26690 ac_lo= ac_hi=
26691 break
26692 fi
26693 ac_mid=`expr 2 '*' $ac_mid + 1`
26694fi
26695
26696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26697 done
26698else
26699 $as_echo "$as_me: failed program was:" >&5
26700sed 's/^/| /' conftest.$ac_ext >&5
26701
26702 cat >conftest.$ac_ext <<_ACEOF
26703/* confdefs.h. */
26704_ACEOF
26705cat confdefs.h >>conftest.$ac_ext
26706cat >>conftest.$ac_ext <<_ACEOF
26707/* end confdefs.h. */
26708$ac_includes_default
26709int
26710main ()
26711{
26712static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
26713test_array [0] = 0
26714
26715 ;
26716 return 0;
26717}
26718_ACEOF
26719rm -f conftest.$ac_objext
26720if { (ac_try="$ac_compile"
26721case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26724esac
26725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26726$as_echo "$ac_try_echo") >&5
26727 (eval "$ac_compile") 2>conftest.er1
26728 ac_status=$?
26729 grep -v '^ *+' conftest.er1 >conftest.err
26730 rm -f conftest.er1
26731 cat conftest.err >&5
26732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); } && {
26734 test -z "$ac_c_werror_flag" ||
26735 test ! -s conftest.err
26736 } && test -s conftest.$ac_objext; then
26737 ac_hi=-1 ac_mid=-1
26738 while :; do
26739 cat >conftest.$ac_ext <<_ACEOF
26740/* confdefs.h. */
26741_ACEOF
26742cat confdefs.h >>conftest.$ac_ext
26743cat >>conftest.$ac_ext <<_ACEOF
26744/* end confdefs.h. */
26745$ac_includes_default
26746int
26747main ()
26748{
26749static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
26750test_array [0] = 0
26751
26752 ;
26753 return 0;
26754}
26755_ACEOF
26756rm -f conftest.$ac_objext
26757if { (ac_try="$ac_compile"
26758case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26761esac
26762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26763$as_echo "$ac_try_echo") >&5
26764 (eval "$ac_compile") 2>conftest.er1
26765 ac_status=$?
26766 grep -v '^ *+' conftest.er1 >conftest.err
26767 rm -f conftest.er1
26768 cat conftest.err >&5
26769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest.$ac_objext; then
26774 ac_lo=$ac_mid; break
26775else
26776 $as_echo "$as_me: failed program was:" >&5
26777sed 's/^/| /' conftest.$ac_ext >&5
26778
26779 ac_hi=`expr '(' $ac_mid ')' - 1`
26780 if test $ac_mid -le $ac_hi; then
26781 ac_lo= ac_hi=
26782 break
26783 fi
26784 ac_mid=`expr 2 '*' $ac_mid`
26785fi
26786
26787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26788 done
26789else
26790 $as_echo "$as_me: failed program was:" >&5
26791sed 's/^/| /' conftest.$ac_ext >&5
26792
26793 ac_lo= ac_hi=
26794fi
26795
26796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797fi
26798
26799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800# Binary search between lo and hi bounds.
26801while test "x$ac_lo" != "x$ac_hi"; do
26802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26803 cat >conftest.$ac_ext <<_ACEOF
26804/* confdefs.h. */
26805_ACEOF
26806cat confdefs.h >>conftest.$ac_ext
26807cat >>conftest.$ac_ext <<_ACEOF
26808/* end confdefs.h. */
26809$ac_includes_default
26810int
26811main ()
26812{
26813static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26814test_array [0] = 0
26815
26816 ;
26817 return 0;
26818}
26819_ACEOF
26820rm -f conftest.$ac_objext
26821if { (ac_try="$ac_compile"
26822case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26825esac
26826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26827$as_echo "$ac_try_echo") >&5
26828 (eval "$ac_compile") 2>conftest.er1
26829 ac_status=$?
26830 grep -v '^ *+' conftest.er1 >conftest.err
26831 rm -f conftest.er1
26832 cat conftest.err >&5
26833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); } && {
26835 test -z "$ac_c_werror_flag" ||
26836 test ! -s conftest.err
26837 } && test -s conftest.$ac_objext; then
26838 ac_hi=$ac_mid
26839else
26840 $as_echo "$as_me: failed program was:" >&5
26841sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ac_lo=`expr '(' $ac_mid ')' + 1`
26844fi
26845
26846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847done
26848case $ac_lo in
26849?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26850'') if test "$ac_cv_type_unsigned_long" = yes; then
26851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26853{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26854See \`config.log' for more details." >&5
26855$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26856See \`config.log' for more details." >&2;}
26857 { (exit 77); exit 77; }; }; }
26858 else
26859 ac_cv_sizeof_unsigned_long=0
26860 fi ;;
26861esac
26862else
26863 cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869$ac_includes_default
26870static long int longval () { return (long int) (sizeof (unsigned long)); }
26871static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26872#include <stdio.h>
26873#include <stdlib.h>
26874int
26875main ()
26876{
26877
26878 FILE *f = fopen ("conftest.val", "w");
26879 if (! f)
26880 return 1;
26881 if (((long int) (sizeof (unsigned long))) < 0)
26882 {
26883 long int i = longval ();
26884 if (i != ((long int) (sizeof (unsigned long))))
26885 return 1;
26886 fprintf (f, "%ld", i);
26887 }
26888 else
26889 {
26890 unsigned long int i = ulongval ();
26891 if (i != ((long int) (sizeof (unsigned long))))
26892 return 1;
26893 fprintf (f, "%lu", i);
26894 }
26895 /* Do not output a trailing newline, as this causes \r\n confusion
26896 on some platforms. */
26897 return ferror (f) || fclose (f) != 0;
26898
26899 ;
26900 return 0;
26901}
26902_ACEOF
26903rm -f conftest$ac_exeext
26904if { (ac_try="$ac_link"
26905case "(($ac_try" in
26906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26907 *) ac_try_echo=$ac_try;;
26908esac
26909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26910$as_echo "$ac_try_echo") >&5
26911 (eval "$ac_link") 2>&5
26912 ac_status=$?
26913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26915 { (case "(($ac_try" in
26916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917 *) ac_try_echo=$ac_try;;
26918esac
26919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26920$as_echo "$ac_try_echo") >&5
26921 (eval "$ac_try") 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26926else
26927 $as_echo "$as_me: program exited with status $ac_status" >&5
26928$as_echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931( exit $ac_status )
26932if test "$ac_cv_type_unsigned_long" = yes; then
26933 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26935{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26936See \`config.log' for more details." >&5
26937$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26938See \`config.log' for more details." >&2;}
26939 { (exit 77); exit 77; }; }; }
26940 else
26941 ac_cv_sizeof_unsigned_long=0
26942 fi
26943fi
26944rm -rf conftest.dSYM
26945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26946fi
26947rm -f conftest.val
26948fi
26949{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26950$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26951
26952
26953
26954cat >>confdefs.h <<_ACEOF
26955#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26956_ACEOF
26957
26958
26959
26960# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26961# 'signed long long' is not supported then the value defined is zero.
26962# The cast to long int works around a bug in the HP C Compiler
26963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26965# This bug is HP SR number 8606223364.
26966{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26967$as_echo_n "checking size of signed long long... " >&6; }
26968if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26969 $as_echo_n "(cached) " >&6
26970else
26971 if test "$cross_compiling" = yes; then
26972 # Depending upon the size, compute the lo and hi bounds.
26973cat >conftest.$ac_ext <<_ACEOF
26974/* confdefs.h. */
26975_ACEOF
26976cat confdefs.h >>conftest.$ac_ext
26977cat >>conftest.$ac_ext <<_ACEOF
26978/* end confdefs.h. */
26979$ac_includes_default
26980int
26981main ()
26982{
26983static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26984test_array [0] = 0
26985
26986 ;
26987 return 0;
26988}
26989_ACEOF
26990rm -f conftest.$ac_objext
26991if { (ac_try="$ac_compile"
26992case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26997$as_echo "$ac_try_echo") >&5
26998 (eval "$ac_compile") 2>conftest.er1
26999 ac_status=$?
27000 grep -v '^ *+' conftest.er1 >conftest.err
27001 rm -f conftest.er1
27002 cat conftest.err >&5
27003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } && {
27005 test -z "$ac_c_werror_flag" ||
27006 test ! -s conftest.err
27007 } && test -s conftest.$ac_objext; then
27008 ac_lo=0 ac_mid=0
27009 while :; do
27010 cat >conftest.$ac_ext <<_ACEOF
27011/* confdefs.h. */
27012_ACEOF
27013cat confdefs.h >>conftest.$ac_ext
27014cat >>conftest.$ac_ext <<_ACEOF
27015/* end confdefs.h. */
27016$ac_includes_default
27017int
27018main ()
27019{
27020static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
27021test_array [0] = 0
27022
27023 ;
27024 return 0;
27025}
27026_ACEOF
27027rm -f conftest.$ac_objext
27028if { (ac_try="$ac_compile"
27029case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27032esac
27033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27034$as_echo "$ac_try_echo") >&5
27035 (eval "$ac_compile") 2>conftest.er1
27036 ac_status=$?
27037 grep -v '^ *+' conftest.er1 >conftest.err
27038 rm -f conftest.er1
27039 cat conftest.err >&5
27040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } && {
27042 test -z "$ac_c_werror_flag" ||
27043 test ! -s conftest.err
27044 } && test -s conftest.$ac_objext; then
27045 ac_hi=$ac_mid; break
27046else
27047 $as_echo "$as_me: failed program was:" >&5
27048sed 's/^/| /' conftest.$ac_ext >&5
27049
27050 ac_lo=`expr $ac_mid + 1`
27051 if test $ac_lo -le $ac_mid; then
27052 ac_lo= ac_hi=
27053 break
27054 fi
27055 ac_mid=`expr 2 '*' $ac_mid + 1`
27056fi
27057
27058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059 done
27060else
27061 $as_echo "$as_me: failed program was:" >&5
27062sed 's/^/| /' conftest.$ac_ext >&5
27063
27064 cat >conftest.$ac_ext <<_ACEOF
27065/* confdefs.h. */
27066_ACEOF
27067cat confdefs.h >>conftest.$ac_ext
27068cat >>conftest.$ac_ext <<_ACEOF
27069/* end confdefs.h. */
27070$ac_includes_default
27071int
27072main ()
27073{
27074static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
27075test_array [0] = 0
27076
27077 ;
27078 return 0;
27079}
27080_ACEOF
27081rm -f conftest.$ac_objext
27082if { (ac_try="$ac_compile"
27083case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086esac
27087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27088$as_echo "$ac_try_echo") >&5
27089 (eval "$ac_compile") 2>conftest.er1
27090 ac_status=$?
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
27094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } && {
27096 test -z "$ac_c_werror_flag" ||
27097 test ! -s conftest.err
27098 } && test -s conftest.$ac_objext; then
27099 ac_hi=-1 ac_mid=-1
27100 while :; do
27101 cat >conftest.$ac_ext <<_ACEOF
27102/* confdefs.h. */
27103_ACEOF
27104cat confdefs.h >>conftest.$ac_ext
27105cat >>conftest.$ac_ext <<_ACEOF
27106/* end confdefs.h. */
27107$ac_includes_default
27108int
27109main ()
27110{
27111static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
27112test_array [0] = 0
27113
27114 ;
27115 return 0;
27116}
27117_ACEOF
27118rm -f conftest.$ac_objext
27119if { (ac_try="$ac_compile"
27120case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27123esac
27124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27125$as_echo "$ac_try_echo") >&5
27126 (eval "$ac_compile") 2>conftest.er1
27127 ac_status=$?
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
27131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } && {
27133 test -z "$ac_c_werror_flag" ||
27134 test ! -s conftest.err
27135 } && test -s conftest.$ac_objext; then
27136 ac_lo=$ac_mid; break
27137else
27138 $as_echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_hi=`expr '(' $ac_mid ')' - 1`
27142 if test $ac_mid -le $ac_hi; then
27143 ac_lo= ac_hi=
27144 break
27145 fi
27146 ac_mid=`expr 2 '*' $ac_mid`
27147fi
27148
27149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27150 done
27151else
27152 $as_echo "$as_me: failed program was:" >&5
27153sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 ac_lo= ac_hi=
27156fi
27157
27158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159fi
27160
27161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27162# Binary search between lo and hi bounds.
27163while test "x$ac_lo" != "x$ac_hi"; do
27164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27165 cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h. */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h. */
27171$ac_includes_default
27172int
27173main ()
27174{
27175static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
27176test_array [0] = 0
27177
27178 ;
27179 return 0;
27180}
27181_ACEOF
27182rm -f conftest.$ac_objext
27183if { (ac_try="$ac_compile"
27184case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187esac
27188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27189$as_echo "$ac_try_echo") >&5
27190 (eval "$ac_compile") 2>conftest.er1
27191 ac_status=$?
27192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
27195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } && {
27197 test -z "$ac_c_werror_flag" ||
27198 test ! -s conftest.err
27199 } && test -s conftest.$ac_objext; then
27200 ac_hi=$ac_mid
27201else
27202 $as_echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 ac_lo=`expr '(' $ac_mid ')' + 1`
27206fi
27207
27208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27209done
27210case $ac_lo in
27211?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
27212'') if test "$ac_cv_type_signed_long_long" = yes; then
27213 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27215{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27216See \`config.log' for more details." >&5
27217$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27218See \`config.log' for more details." >&2;}
27219 { (exit 77); exit 77; }; }; }
27220 else
27221 ac_cv_sizeof_signed_long_long=0
27222 fi ;;
27223esac
27224else
27225 cat >conftest.$ac_ext <<_ACEOF
27226/* confdefs.h. */
27227_ACEOF
27228cat confdefs.h >>conftest.$ac_ext
27229cat >>conftest.$ac_ext <<_ACEOF
27230/* end confdefs.h. */
27231$ac_includes_default
27232static long int longval () { return (long int) (sizeof (signed long long)); }
27233static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
27234#include <stdio.h>
27235#include <stdlib.h>
27236int
27237main ()
27238{
27239
27240 FILE *f = fopen ("conftest.val", "w");
27241 if (! f)
27242 return 1;
27243 if (((long int) (sizeof (signed long long))) < 0)
27244 {
27245 long int i = longval ();
27246 if (i != ((long int) (sizeof (signed long long))))
27247 return 1;
27248 fprintf (f, "%ld", i);
27249 }
27250 else
27251 {
27252 unsigned long int i = ulongval ();
27253 if (i != ((long int) (sizeof (signed long long))))
27254 return 1;
27255 fprintf (f, "%lu", i);
27256 }
27257 /* Do not output a trailing newline, as this causes \r\n confusion
27258 on some platforms. */
27259 return ferror (f) || fclose (f) != 0;
27260
27261 ;
27262 return 0;
27263}
27264_ACEOF
27265rm -f conftest$ac_exeext
27266if { (ac_try="$ac_link"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27272$as_echo "$ac_try_echo") >&5
27273 (eval "$ac_link") 2>&5
27274 ac_status=$?
27275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27277 { (case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27280esac
27281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27282$as_echo "$ac_try_echo") >&5
27283 (eval "$ac_try") 2>&5
27284 ac_status=$?
27285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
27287 ac_cv_sizeof_signed_long_long=`cat conftest.val`
27288else
27289 $as_echo "$as_me: program exited with status $ac_status" >&5
27290$as_echo "$as_me: failed program was:" >&5
27291sed 's/^/| /' conftest.$ac_ext >&5
27292
27293( exit $ac_status )
27294if test "$ac_cv_type_signed_long_long" = yes; then
27295 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27297{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27298See \`config.log' for more details." >&5
27299$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27300See \`config.log' for more details." >&2;}
27301 { (exit 77); exit 77; }; }; }
27302 else
27303 ac_cv_sizeof_signed_long_long=0
27304 fi
27305fi
27306rm -rf conftest.dSYM
27307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27308fi
27309rm -f conftest.val
27310fi
27311{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
27312$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
27313
27314
27315
27316cat >>confdefs.h <<_ACEOF
27317#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
27318_ACEOF
27319
27320
27321
27322# Obtain size of a 'unsigned long long' and define as
27323# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27324# supported then the value defined is zero.
27325# The cast to long int works around a bug in the HP C Compiler
27326# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27327# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27328# This bug is HP SR number 8606223364.
27329{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
27330$as_echo_n "checking size of unsigned long long... " >&6; }
27331if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
27332 $as_echo_n "(cached) " >&6
27333else
27334 if test "$cross_compiling" = yes; then
27335 # Depending upon the size, compute the lo and hi bounds.
27336cat >conftest.$ac_ext <<_ACEOF
27337/* confdefs.h. */
27338_ACEOF
27339cat confdefs.h >>conftest.$ac_ext
27340cat >>conftest.$ac_ext <<_ACEOF
27341/* end confdefs.h. */
27342$ac_includes_default
27343int
27344main ()
27345{
27346static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
27347test_array [0] = 0
27348
27349 ;
27350 return 0;
27351}
27352_ACEOF
27353rm -f conftest.$ac_objext
27354if { (ac_try="$ac_compile"
27355case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358esac
27359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27360$as_echo "$ac_try_echo") >&5
27361 (eval "$ac_compile") 2>conftest.er1
27362 ac_status=$?
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
27366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } && {
27368 test -z "$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27370 } && test -s conftest.$ac_objext; then
27371 ac_lo=0 ac_mid=0
27372 while :; do
27373 cat >conftest.$ac_ext <<_ACEOF
27374/* confdefs.h. */
27375_ACEOF
27376cat confdefs.h >>conftest.$ac_ext
27377cat >>conftest.$ac_ext <<_ACEOF
27378/* end confdefs.h. */
27379$ac_includes_default
27380int
27381main ()
27382{
27383static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27384test_array [0] = 0
27385
27386 ;
27387 return 0;
27388}
27389_ACEOF
27390rm -f conftest.$ac_objext
27391if { (ac_try="$ac_compile"
27392case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27395esac
27396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27397$as_echo "$ac_try_echo") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } && {
27405 test -z "$ac_c_werror_flag" ||
27406 test ! -s conftest.err
27407 } && test -s conftest.$ac_objext; then
27408 ac_hi=$ac_mid; break
27409else
27410 $as_echo "$as_me: failed program was:" >&5
27411sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 ac_lo=`expr $ac_mid + 1`
27414 if test $ac_lo -le $ac_mid; then
27415 ac_lo= ac_hi=
27416 break
27417 fi
27418 ac_mid=`expr 2 '*' $ac_mid + 1`
27419fi
27420
27421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422 done
27423else
27424 $as_echo "$as_me: failed program was:" >&5
27425sed 's/^/| /' conftest.$ac_ext >&5
27426
27427 cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433$ac_includes_default
27434int
27435main ()
27436{
27437static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
27438test_array [0] = 0
27439
27440 ;
27441 return 0;
27442}
27443_ACEOF
27444rm -f conftest.$ac_objext
27445if { (ac_try="$ac_compile"
27446case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27449esac
27450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27451$as_echo "$ac_try_echo") >&5
27452 (eval "$ac_compile") 2>conftest.er1
27453 ac_status=$?
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
27457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } && {
27459 test -z "$ac_c_werror_flag" ||
27460 test ! -s conftest.err
27461 } && test -s conftest.$ac_objext; then
27462 ac_hi=-1 ac_mid=-1
27463 while :; do
27464 cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h. */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h. */
27470$ac_includes_default
27471int
27472main ()
27473{
27474static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
27475test_array [0] = 0
27476
27477 ;
27478 return 0;
27479}
27480_ACEOF
27481rm -f conftest.$ac_objext
27482if { (ac_try="$ac_compile"
27483case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486esac
27487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27488$as_echo "$ac_try_echo") >&5
27489 (eval "$ac_compile") 2>conftest.er1
27490 ac_status=$?
27491 grep -v '^ *+' conftest.er1 >conftest.err
27492 rm -f conftest.er1
27493 cat conftest.err >&5
27494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } && {
27496 test -z "$ac_c_werror_flag" ||
27497 test ! -s conftest.err
27498 } && test -s conftest.$ac_objext; then
27499 ac_lo=$ac_mid; break
27500else
27501 $as_echo "$as_me: failed program was:" >&5
27502sed 's/^/| /' conftest.$ac_ext >&5
27503
27504 ac_hi=`expr '(' $ac_mid ')' - 1`
27505 if test $ac_mid -le $ac_hi; then
27506 ac_lo= ac_hi=
27507 break
27508 fi
27509 ac_mid=`expr 2 '*' $ac_mid`
27510fi
27511
27512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513 done
27514else
27515 $as_echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
27518 ac_lo= ac_hi=
27519fi
27520
27521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522fi
27523
27524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27525# Binary search between lo and hi bounds.
27526while test "x$ac_lo" != "x$ac_hi"; do
27527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27528 cat >conftest.$ac_ext <<_ACEOF
27529/* confdefs.h. */
27530_ACEOF
27531cat confdefs.h >>conftest.$ac_ext
27532cat >>conftest.$ac_ext <<_ACEOF
27533/* end confdefs.h. */
27534$ac_includes_default
27535int
27536main ()
27537{
27538static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27539test_array [0] = 0
27540
27541 ;
27542 return 0;
27543}
27544_ACEOF
27545rm -f conftest.$ac_objext
27546if { (ac_try="$ac_compile"
27547case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27550esac
27551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27552$as_echo "$ac_try_echo") >&5
27553 (eval "$ac_compile") 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } && {
27560 test -z "$ac_c_werror_flag" ||
27561 test ! -s conftest.err
27562 } && test -s conftest.$ac_objext; then
27563 ac_hi=$ac_mid
27564else
27565 $as_echo "$as_me: failed program was:" >&5
27566sed 's/^/| /' conftest.$ac_ext >&5
27567
27568 ac_lo=`expr '(' $ac_mid ')' + 1`
27569fi
27570
27571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572done
27573case $ac_lo in
27574?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27575'') if test "$ac_cv_type_unsigned_long_long" = yes; then
27576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27578{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27579See \`config.log' for more details." >&5
27580$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27581See \`config.log' for more details." >&2;}
27582 { (exit 77); exit 77; }; }; }
27583 else
27584 ac_cv_sizeof_unsigned_long_long=0
27585 fi ;;
27586esac
27587else
27588 cat >conftest.$ac_ext <<_ACEOF
27589/* confdefs.h. */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h. */
27594$ac_includes_default
27595static long int longval () { return (long int) (sizeof (unsigned long long)); }
27596static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
27597#include <stdio.h>
27598#include <stdlib.h>
27599int
27600main ()
27601{
27602
27603 FILE *f = fopen ("conftest.val", "w");
27604 if (! f)
27605 return 1;
27606 if (((long int) (sizeof (unsigned long long))) < 0)
27607 {
27608 long int i = longval ();
27609 if (i != ((long int) (sizeof (unsigned long long))))
27610 return 1;
27611 fprintf (f, "%ld", i);
27612 }
27613 else
27614 {
27615 unsigned long int i = ulongval ();
27616 if (i != ((long int) (sizeof (unsigned long long))))
27617 return 1;
27618 fprintf (f, "%lu", i);
27619 }
27620 /* Do not output a trailing newline, as this causes \r\n confusion
27621 on some platforms. */
27622 return ferror (f) || fclose (f) != 0;
27623
27624 ;
27625 return 0;
27626}
27627_ACEOF
27628rm -f conftest$ac_exeext
27629if { (ac_try="$ac_link"
27630case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27633esac
27634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27635$as_echo "$ac_try_echo") >&5
27636 (eval "$ac_link") 2>&5
27637 ac_status=$?
27638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27640 { (case "(($ac_try" in
27641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642 *) ac_try_echo=$ac_try;;
27643esac
27644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27645$as_echo "$ac_try_echo") >&5
27646 (eval "$ac_try") 2>&5
27647 ac_status=$?
27648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; }; then
27650 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27651else
27652 $as_echo "$as_me: program exited with status $ac_status" >&5
27653$as_echo "$as_me: failed program was:" >&5
27654sed 's/^/| /' conftest.$ac_ext >&5
27655
27656( exit $ac_status )
27657if test "$ac_cv_type_unsigned_long_long" = yes; then
27658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27660{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27661See \`config.log' for more details." >&5
27662$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27663See \`config.log' for more details." >&2;}
27664 { (exit 77); exit 77; }; }; }
27665 else
27666 ac_cv_sizeof_unsigned_long_long=0
27667 fi
27668fi
27669rm -rf conftest.dSYM
27670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27671fi
27672rm -f conftest.val
27673fi
27674{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27675$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27676
27677
27678
27679cat >>confdefs.h <<_ACEOF
27680#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27681_ACEOF
27682
27683
27684
27685# Obtain size of off_t and define as SIZEOF_OFF_T
27686# The cast to long int works around a bug in the HP C Compiler
27687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27689# This bug is HP SR number 8606223364.
27690{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
27691$as_echo_n "checking size of off_t... " >&6; }
27692if test "${ac_cv_sizeof_off_t+set}" = set; then
27693 $as_echo_n "(cached) " >&6
27694else
27695 if test "$cross_compiling" = yes; then
27696 # Depending upon the size, compute the lo and hi bounds.
27697cat >conftest.$ac_ext <<_ACEOF
27698/* confdefs.h. */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h. */
27703$ac_includes_default
27704int
27705main ()
27706{
27707static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27708test_array [0] = 0
27709
27710 ;
27711 return 0;
27712}
27713_ACEOF
27714rm -f conftest.$ac_objext
27715if { (ac_try="$ac_compile"
27716case "(($ac_try" in
27717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27718 *) ac_try_echo=$ac_try;;
27719esac
27720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27721$as_echo "$ac_try_echo") >&5
27722 (eval "$ac_compile") 2>conftest.er1
27723 ac_status=$?
27724 grep -v '^ *+' conftest.er1 >conftest.err
27725 rm -f conftest.er1
27726 cat conftest.err >&5
27727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } && {
27729 test -z "$ac_c_werror_flag" ||
27730 test ! -s conftest.err
27731 } && test -s conftest.$ac_objext; then
27732 ac_lo=0 ac_mid=0
27733 while :; do
27734 cat >conftest.$ac_ext <<_ACEOF
27735/* confdefs.h. */
27736_ACEOF
27737cat confdefs.h >>conftest.$ac_ext
27738cat >>conftest.$ac_ext <<_ACEOF
27739/* end confdefs.h. */
27740$ac_includes_default
27741int
27742main ()
27743{
27744static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27745test_array [0] = 0
27746
27747 ;
27748 return 0;
27749}
27750_ACEOF
27751rm -f conftest.$ac_objext
27752if { (ac_try="$ac_compile"
27753case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27756esac
27757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27758$as_echo "$ac_try_echo") >&5
27759 (eval "$ac_compile") 2>conftest.er1
27760 ac_status=$?
27761 grep -v '^ *+' conftest.er1 >conftest.err
27762 rm -f conftest.er1
27763 cat conftest.err >&5
27764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } && {
27766 test -z "$ac_c_werror_flag" ||
27767 test ! -s conftest.err
27768 } && test -s conftest.$ac_objext; then
27769 ac_hi=$ac_mid; break
27770else
27771 $as_echo "$as_me: failed program was:" >&5
27772sed 's/^/| /' conftest.$ac_ext >&5
27773
27774 ac_lo=`expr $ac_mid + 1`
27775 if test $ac_lo -le $ac_mid; then
27776 ac_lo= ac_hi=
27777 break
27778 fi
27779 ac_mid=`expr 2 '*' $ac_mid + 1`
27780fi
27781
27782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 done
27784else
27785 $as_echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
27788 cat >conftest.$ac_ext <<_ACEOF
27789/* confdefs.h. */
27790_ACEOF
27791cat confdefs.h >>conftest.$ac_ext
27792cat >>conftest.$ac_ext <<_ACEOF
27793/* end confdefs.h. */
27794$ac_includes_default
27795int
27796main ()
27797{
27798static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27799test_array [0] = 0
27800
27801 ;
27802 return 0;
27803}
27804_ACEOF
27805rm -f conftest.$ac_objext
27806if { (ac_try="$ac_compile"
27807case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27812$as_echo "$ac_try_echo") >&5
27813 (eval "$ac_compile") 2>conftest.er1
27814 ac_status=$?
27815 grep -v '^ *+' conftest.er1 >conftest.err
27816 rm -f conftest.er1
27817 cat conftest.err >&5
27818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && {
27820 test -z "$ac_c_werror_flag" ||
27821 test ! -s conftest.err
27822 } && test -s conftest.$ac_objext; then
27823 ac_hi=-1 ac_mid=-1
27824 while :; do
27825 cat >conftest.$ac_ext <<_ACEOF
27826/* confdefs.h. */
27827_ACEOF
27828cat confdefs.h >>conftest.$ac_ext
27829cat >>conftest.$ac_ext <<_ACEOF
27830/* end confdefs.h. */
27831$ac_includes_default
27832int
27833main ()
27834{
27835static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27836test_array [0] = 0
27837
27838 ;
27839 return 0;
27840}
27841_ACEOF
27842rm -f conftest.$ac_objext
27843if { (ac_try="$ac_compile"
27844case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27847esac
27848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27849$as_echo "$ac_try_echo") >&5
27850 (eval "$ac_compile") 2>conftest.er1
27851 ac_status=$?
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
27855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } && {
27857 test -z "$ac_c_werror_flag" ||
27858 test ! -s conftest.err
27859 } && test -s conftest.$ac_objext; then
27860 ac_lo=$ac_mid; break
27861else
27862 $as_echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 ac_hi=`expr '(' $ac_mid ')' - 1`
27866 if test $ac_mid -le $ac_hi; then
27867 ac_lo= ac_hi=
27868 break
27869 fi
27870 ac_mid=`expr 2 '*' $ac_mid`
27871fi
27872
27873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 done
27875else
27876 $as_echo "$as_me: failed program was:" >&5
27877sed 's/^/| /' conftest.$ac_ext >&5
27878
27879 ac_lo= ac_hi=
27880fi
27881
27882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27883fi
27884
27885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886# Binary search between lo and hi bounds.
27887while test "x$ac_lo" != "x$ac_hi"; do
27888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27889 cat >conftest.$ac_ext <<_ACEOF
27890/* confdefs.h. */
27891_ACEOF
27892cat confdefs.h >>conftest.$ac_ext
27893cat >>conftest.$ac_ext <<_ACEOF
27894/* end confdefs.h. */
27895$ac_includes_default
27896int
27897main ()
27898{
27899static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27900test_array [0] = 0
27901
27902 ;
27903 return 0;
27904}
27905_ACEOF
27906rm -f conftest.$ac_objext
27907if { (ac_try="$ac_compile"
27908case "(($ac_try" in
27909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27910 *) ac_try_echo=$ac_try;;
27911esac
27912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27913$as_echo "$ac_try_echo") >&5
27914 (eval "$ac_compile") 2>conftest.er1
27915 ac_status=$?
27916 grep -v '^ *+' conftest.er1 >conftest.err
27917 rm -f conftest.er1
27918 cat conftest.err >&5
27919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); } && {
27921 test -z "$ac_c_werror_flag" ||
27922 test ! -s conftest.err
27923 } && test -s conftest.$ac_objext; then
27924 ac_hi=$ac_mid
27925else
27926 $as_echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
27929 ac_lo=`expr '(' $ac_mid ')' + 1`
27930fi
27931
27932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27933done
27934case $ac_lo in
27935?*) ac_cv_sizeof_off_t=$ac_lo;;
27936'') if test "$ac_cv_type_off_t" = yes; then
27937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27939{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27940See \`config.log' for more details." >&5
27941$as_echo "$as_me: error: cannot compute sizeof (off_t)
27942See \`config.log' for more details." >&2;}
27943 { (exit 77); exit 77; }; }; }
27944 else
27945 ac_cv_sizeof_off_t=0
27946 fi ;;
27947esac
27948else
27949 cat >conftest.$ac_ext <<_ACEOF
27950/* confdefs.h. */
27951_ACEOF
27952cat confdefs.h >>conftest.$ac_ext
27953cat >>conftest.$ac_ext <<_ACEOF
27954/* end confdefs.h. */
27955$ac_includes_default
27956static long int longval () { return (long int) (sizeof (off_t)); }
27957static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27958#include <stdio.h>
27959#include <stdlib.h>
27960int
27961main ()
27962{
27963
27964 FILE *f = fopen ("conftest.val", "w");
27965 if (! f)
27966 return 1;
27967 if (((long int) (sizeof (off_t))) < 0)
27968 {
27969 long int i = longval ();
27970 if (i != ((long int) (sizeof (off_t))))
27971 return 1;
27972 fprintf (f, "%ld", i);
27973 }
27974 else
27975 {
27976 unsigned long int i = ulongval ();
27977 if (i != ((long int) (sizeof (off_t))))
27978 return 1;
27979 fprintf (f, "%lu", i);
27980 }
27981 /* Do not output a trailing newline, as this causes \r\n confusion
27982 on some platforms. */
27983 return ferror (f) || fclose (f) != 0;
27984
27985 ;
27986 return 0;
27987}
27988_ACEOF
27989rm -f conftest$ac_exeext
27990if { (ac_try="$ac_link"
27991case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994esac
27995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27996$as_echo "$ac_try_echo") >&5
27997 (eval "$ac_link") 2>&5
27998 ac_status=$?
27999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28001 { (case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28004esac
28005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28006$as_echo "$ac_try_echo") >&5
28007 (eval "$ac_try") 2>&5
28008 ac_status=$?
28009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; }; then
28011 ac_cv_sizeof_off_t=`cat conftest.val`
28012else
28013 $as_echo "$as_me: program exited with status $ac_status" >&5
28014$as_echo "$as_me: failed program was:" >&5
28015sed 's/^/| /' conftest.$ac_ext >&5
28016
28017( exit $ac_status )
28018if test "$ac_cv_type_off_t" = yes; then
28019 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28021{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
28022See \`config.log' for more details." >&5
28023$as_echo "$as_me: error: cannot compute sizeof (off_t)
28024See \`config.log' for more details." >&2;}
28025 { (exit 77); exit 77; }; }; }
28026 else
28027 ac_cv_sizeof_off_t=0
28028 fi
28029fi
28030rm -rf conftest.dSYM
28031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28032fi
28033rm -f conftest.val
28034fi
28035{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
28036$as_echo "$ac_cv_sizeof_off_t" >&6; }
28037
28038
28039
28040cat >>confdefs.h <<_ACEOF
28041#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28042_ACEOF
28043
28044
28045
28046# Obtain size of size_t and define as SIZEOF_SIZE_T
28047# The cast to long int works around a bug in the HP C Compiler
28048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28050# This bug is HP SR number 8606223364.
28051{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
28052$as_echo_n "checking size of size_t... " >&6; }
28053if test "${ac_cv_sizeof_size_t+set}" = set; then
28054 $as_echo_n "(cached) " >&6
28055else
28056 if test "$cross_compiling" = yes; then
28057 # Depending upon the size, compute the lo and hi bounds.
28058cat >conftest.$ac_ext <<_ACEOF
28059/* confdefs.h. */
28060_ACEOF
28061cat confdefs.h >>conftest.$ac_ext
28062cat >>conftest.$ac_ext <<_ACEOF
28063/* end confdefs.h. */
28064$ac_includes_default
28065int
28066main ()
28067{
28068static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
28069test_array [0] = 0
28070
28071 ;
28072 return 0;
28073}
28074_ACEOF
28075rm -f conftest.$ac_objext
28076if { (ac_try="$ac_compile"
28077case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28082$as_echo "$ac_try_echo") >&5
28083 (eval "$ac_compile") 2>conftest.er1
28084 ac_status=$?
28085 grep -v '^ *+' conftest.er1 >conftest.err
28086 rm -f conftest.er1
28087 cat conftest.err >&5
28088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } && {
28090 test -z "$ac_c_werror_flag" ||
28091 test ! -s conftest.err
28092 } && test -s conftest.$ac_objext; then
28093 ac_lo=0 ac_mid=0
28094 while :; do
28095 cat >conftest.$ac_ext <<_ACEOF
28096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
28101$ac_includes_default
28102int
28103main ()
28104{
28105static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
28106test_array [0] = 0
28107
28108 ;
28109 return 0;
28110}
28111_ACEOF
28112rm -f conftest.$ac_objext
28113if { (ac_try="$ac_compile"
28114case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28117esac
28118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28119$as_echo "$ac_try_echo") >&5
28120 (eval "$ac_compile") 2>conftest.er1
28121 ac_status=$?
28122 grep -v '^ *+' conftest.er1 >conftest.err
28123 rm -f conftest.er1
28124 cat conftest.err >&5
28125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } && {
28127 test -z "$ac_c_werror_flag" ||
28128 test ! -s conftest.err
28129 } && test -s conftest.$ac_objext; then
28130 ac_hi=$ac_mid; break
28131else
28132 $as_echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 ac_lo=`expr $ac_mid + 1`
28136 if test $ac_lo -le $ac_mid; then
28137 ac_lo= ac_hi=
28138 break
28139 fi
28140 ac_mid=`expr 2 '*' $ac_mid + 1`
28141fi
28142
28143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144 done
28145else
28146 $as_echo "$as_me: failed program was:" >&5
28147sed 's/^/| /' conftest.$ac_ext >&5
28148
28149 cat >conftest.$ac_ext <<_ACEOF
28150/* confdefs.h. */
28151_ACEOF
28152cat confdefs.h >>conftest.$ac_ext
28153cat >>conftest.$ac_ext <<_ACEOF
28154/* end confdefs.h. */
28155$ac_includes_default
28156int
28157main ()
28158{
28159static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
28160test_array [0] = 0
28161
28162 ;
28163 return 0;
28164}
28165_ACEOF
28166rm -f conftest.$ac_objext
28167if { (ac_try="$ac_compile"
28168case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28171esac
28172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28173$as_echo "$ac_try_echo") >&5
28174 (eval "$ac_compile") 2>conftest.er1
28175 ac_status=$?
28176 grep -v '^ *+' conftest.er1 >conftest.err
28177 rm -f conftest.er1
28178 cat conftest.err >&5
28179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } && {
28181 test -z "$ac_c_werror_flag" ||
28182 test ! -s conftest.err
28183 } && test -s conftest.$ac_objext; then
28184 ac_hi=-1 ac_mid=-1
28185 while :; do
28186 cat >conftest.$ac_ext <<_ACEOF
28187/* confdefs.h. */
28188_ACEOF
28189cat confdefs.h >>conftest.$ac_ext
28190cat >>conftest.$ac_ext <<_ACEOF
28191/* end confdefs.h. */
28192$ac_includes_default
28193int
28194main ()
28195{
28196static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
28197test_array [0] = 0
28198
28199 ;
28200 return 0;
28201}
28202_ACEOF
28203rm -f conftest.$ac_objext
28204if { (ac_try="$ac_compile"
28205case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208esac
28209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28210$as_echo "$ac_try_echo") >&5
28211 (eval "$ac_compile") 2>conftest.er1
28212 ac_status=$?
28213 grep -v '^ *+' conftest.er1 >conftest.err
28214 rm -f conftest.er1
28215 cat conftest.err >&5
28216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } && {
28218 test -z "$ac_c_werror_flag" ||
28219 test ! -s conftest.err
28220 } && test -s conftest.$ac_objext; then
28221 ac_lo=$ac_mid; break
28222else
28223 $as_echo "$as_me: failed program was:" >&5
28224sed 's/^/| /' conftest.$ac_ext >&5
28225
28226 ac_hi=`expr '(' $ac_mid ')' - 1`
28227 if test $ac_mid -le $ac_hi; then
28228 ac_lo= ac_hi=
28229 break
28230 fi
28231 ac_mid=`expr 2 '*' $ac_mid`
28232fi
28233
28234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28235 done
28236else
28237 $as_echo "$as_me: failed program was:" >&5
28238sed 's/^/| /' conftest.$ac_ext >&5
28239
28240 ac_lo= ac_hi=
28241fi
28242
28243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28244fi
28245
28246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247# Binary search between lo and hi bounds.
28248while test "x$ac_lo" != "x$ac_hi"; do
28249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28250 cat >conftest.$ac_ext <<_ACEOF
28251/* confdefs.h. */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h. */
28256$ac_includes_default
28257int
28258main ()
28259{
28260static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
28261test_array [0] = 0
28262
28263 ;
28264 return 0;
28265}
28266_ACEOF
28267rm -f conftest.$ac_objext
28268if { (ac_try="$ac_compile"
28269case "(($ac_try" in
28270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28272esac
28273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28274$as_echo "$ac_try_echo") >&5
28275 (eval "$ac_compile") 2>conftest.er1
28276 ac_status=$?
28277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
28280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } && {
28282 test -z "$ac_c_werror_flag" ||
28283 test ! -s conftest.err
28284 } && test -s conftest.$ac_objext; then
28285 ac_hi=$ac_mid
28286else
28287 $as_echo "$as_me: failed program was:" >&5
28288sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 ac_lo=`expr '(' $ac_mid ')' + 1`
28291fi
28292
28293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294done
28295case $ac_lo in
28296?*) ac_cv_sizeof_size_t=$ac_lo;;
28297'') if test "$ac_cv_type_size_t" = yes; then
28298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28300{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28301See \`config.log' for more details." >&5
28302$as_echo "$as_me: error: cannot compute sizeof (size_t)
28303See \`config.log' for more details." >&2;}
28304 { (exit 77); exit 77; }; }; }
28305 else
28306 ac_cv_sizeof_size_t=0
28307 fi ;;
28308esac
28309else
28310 cat >conftest.$ac_ext <<_ACEOF
28311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
28316$ac_includes_default
28317static long int longval () { return (long int) (sizeof (size_t)); }
28318static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
28319#include <stdio.h>
28320#include <stdlib.h>
28321int
28322main ()
28323{
28324
28325 FILE *f = fopen ("conftest.val", "w");
28326 if (! f)
28327 return 1;
28328 if (((long int) (sizeof (size_t))) < 0)
28329 {
28330 long int i = longval ();
28331 if (i != ((long int) (sizeof (size_t))))
28332 return 1;
28333 fprintf (f, "%ld", i);
28334 }
28335 else
28336 {
28337 unsigned long int i = ulongval ();
28338 if (i != ((long int) (sizeof (size_t))))
28339 return 1;
28340 fprintf (f, "%lu", i);
28341 }
28342 /* Do not output a trailing newline, as this causes \r\n confusion
28343 on some platforms. */
28344 return ferror (f) || fclose (f) != 0;
28345
28346 ;
28347 return 0;
28348}
28349_ACEOF
28350rm -f conftest$ac_exeext
28351if { (ac_try="$ac_link"
28352case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28355esac
28356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28357$as_echo "$ac_try_echo") >&5
28358 (eval "$ac_link") 2>&5
28359 ac_status=$?
28360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28362 { (case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365esac
28366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28367$as_echo "$ac_try_echo") >&5
28368 (eval "$ac_try") 2>&5
28369 ac_status=$?
28370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); }; }; then
28372 ac_cv_sizeof_size_t=`cat conftest.val`
28373else
28374 $as_echo "$as_me: program exited with status $ac_status" >&5
28375$as_echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378( exit $ac_status )
28379if test "$ac_cv_type_size_t" = yes; then
28380 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28382{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28383See \`config.log' for more details." >&5
28384$as_echo "$as_me: error: cannot compute sizeof (size_t)
28385See \`config.log' for more details." >&2;}
28386 { (exit 77); exit 77; }; }; }
28387 else
28388 ac_cv_sizeof_size_t=0
28389 fi
28390fi
28391rm -rf conftest.dSYM
28392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28393fi
28394rm -f conftest.val
28395fi
28396{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28397$as_echo "$ac_cv_sizeof_size_t" >&6; }
28398
28399
28400
28401cat >>confdefs.h <<_ACEOF
28402#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28403_ACEOF
28404
28405
28406
28407# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
28408# The cast to long int works around a bug in the HP C Compiler
28409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28411# This bug is HP SR number 8606223364.
28412{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
28413$as_echo_n "checking size of unsigned int*... " >&6; }
28414if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
28415 $as_echo_n "(cached) " >&6
28416else
28417 if test "$cross_compiling" = yes; then
28418 # Depending upon the size, compute the lo and hi bounds.
28419cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
28425$ac_includes_default
28426int
28427main ()
28428{
28429static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
28430test_array [0] = 0
28431
28432 ;
28433 return 0;
28434}
28435_ACEOF
28436rm -f conftest.$ac_objext
28437if { (ac_try="$ac_compile"
28438case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28441esac
28442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28443$as_echo "$ac_try_echo") >&5
28444 (eval "$ac_compile") 2>conftest.er1
28445 ac_status=$?
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
28449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } && {
28451 test -z "$ac_c_werror_flag" ||
28452 test ! -s conftest.err
28453 } && test -s conftest.$ac_objext; then
28454 ac_lo=0 ac_mid=0
28455 while :; do
28456 cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
28462$ac_includes_default
28463int
28464main ()
28465{
28466static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28467test_array [0] = 0
28468
28469 ;
28470 return 0;
28471}
28472_ACEOF
28473rm -f conftest.$ac_objext
28474if { (ac_try="$ac_compile"
28475case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28480$as_echo "$ac_try_echo") >&5
28481 (eval "$ac_compile") 2>conftest.er1
28482 ac_status=$?
28483 grep -v '^ *+' conftest.er1 >conftest.err
28484 rm -f conftest.er1
28485 cat conftest.err >&5
28486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); } && {
28488 test -z "$ac_c_werror_flag" ||
28489 test ! -s conftest.err
28490 } && test -s conftest.$ac_objext; then
28491 ac_hi=$ac_mid; break
28492else
28493 $as_echo "$as_me: failed program was:" >&5
28494sed 's/^/| /' conftest.$ac_ext >&5
28495
28496 ac_lo=`expr $ac_mid + 1`
28497 if test $ac_lo -le $ac_mid; then
28498 ac_lo= ac_hi=
28499 break
28500 fi
28501 ac_mid=`expr 2 '*' $ac_mid + 1`
28502fi
28503
28504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505 done
28506else
28507 $as_echo "$as_me: failed program was:" >&5
28508sed 's/^/| /' conftest.$ac_ext >&5
28509
28510 cat >conftest.$ac_ext <<_ACEOF
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
28516$ac_includes_default
28517int
28518main ()
28519{
28520static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
28521test_array [0] = 0
28522
28523 ;
28524 return 0;
28525}
28526_ACEOF
28527rm -f conftest.$ac_objext
28528if { (ac_try="$ac_compile"
28529case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28532esac
28533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28534$as_echo "$ac_try_echo") >&5
28535 (eval "$ac_compile") 2>conftest.er1
28536 ac_status=$?
28537 grep -v '^ *+' conftest.er1 >conftest.err
28538 rm -f conftest.er1
28539 cat conftest.err >&5
28540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && {
28542 test -z "$ac_c_werror_flag" ||
28543 test ! -s conftest.err
28544 } && test -s conftest.$ac_objext; then
28545 ac_hi=-1 ac_mid=-1
28546 while :; do
28547 cat >conftest.$ac_ext <<_ACEOF
28548/* confdefs.h. */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h. */
28553$ac_includes_default
28554int
28555main ()
28556{
28557static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
28558test_array [0] = 0
28559
28560 ;
28561 return 0;
28562}
28563_ACEOF
28564rm -f conftest.$ac_objext
28565if { (ac_try="$ac_compile"
28566case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28569esac
28570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28571$as_echo "$ac_try_echo") >&5
28572 (eval "$ac_compile") 2>conftest.er1
28573 ac_status=$?
28574 grep -v '^ *+' conftest.er1 >conftest.err
28575 rm -f conftest.er1
28576 cat conftest.err >&5
28577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } && {
28579 test -z "$ac_c_werror_flag" ||
28580 test ! -s conftest.err
28581 } && test -s conftest.$ac_objext; then
28582 ac_lo=$ac_mid; break
28583else
28584 $as_echo "$as_me: failed program was:" >&5
28585sed 's/^/| /' conftest.$ac_ext >&5
28586
28587 ac_hi=`expr '(' $ac_mid ')' - 1`
28588 if test $ac_mid -le $ac_hi; then
28589 ac_lo= ac_hi=
28590 break
28591 fi
28592 ac_mid=`expr 2 '*' $ac_mid`
28593fi
28594
28595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28596 done
28597else
28598 $as_echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ac_lo= ac_hi=
28602fi
28603
28604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605fi
28606
28607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28608# Binary search between lo and hi bounds.
28609while test "x$ac_lo" != "x$ac_hi"; do
28610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28611 cat >conftest.$ac_ext <<_ACEOF
28612/* confdefs.h. */
28613_ACEOF
28614cat confdefs.h >>conftest.$ac_ext
28615cat >>conftest.$ac_ext <<_ACEOF
28616/* end confdefs.h. */
28617$ac_includes_default
28618int
28619main ()
28620{
28621static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28622test_array [0] = 0
28623
28624 ;
28625 return 0;
28626}
28627_ACEOF
28628rm -f conftest.$ac_objext
28629if { (ac_try="$ac_compile"
28630case "(($ac_try" in
28631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632 *) ac_try_echo=$ac_try;;
28633esac
28634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28635$as_echo "$ac_try_echo") >&5
28636 (eval "$ac_compile") 2>conftest.er1
28637 ac_status=$?
28638 grep -v '^ *+' conftest.er1 >conftest.err
28639 rm -f conftest.er1
28640 cat conftest.err >&5
28641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } && {
28643 test -z "$ac_c_werror_flag" ||
28644 test ! -s conftest.err
28645 } && test -s conftest.$ac_objext; then
28646 ac_hi=$ac_mid
28647else
28648 $as_echo "$as_me: failed program was:" >&5
28649sed 's/^/| /' conftest.$ac_ext >&5
28650
28651 ac_lo=`expr '(' $ac_mid ')' + 1`
28652fi
28653
28654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655done
28656case $ac_lo in
28657?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
28658'') if test "$ac_cv_type_unsigned_intp" = yes; then
28659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28661{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28662See \`config.log' for more details." >&5
28663$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28664See \`config.log' for more details." >&2;}
28665 { (exit 77); exit 77; }; }; }
28666 else
28667 ac_cv_sizeof_unsigned_intp=0
28668 fi ;;
28669esac
28670else
28671 cat >conftest.$ac_ext <<_ACEOF
28672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
28677$ac_includes_default
28678static long int longval () { return (long int) (sizeof (unsigned int*)); }
28679static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
28680#include <stdio.h>
28681#include <stdlib.h>
28682int
28683main ()
28684{
28685
28686 FILE *f = fopen ("conftest.val", "w");
28687 if (! f)
28688 return 1;
28689 if (((long int) (sizeof (unsigned int*))) < 0)
28690 {
28691 long int i = longval ();
28692 if (i != ((long int) (sizeof (unsigned int*))))
28693 return 1;
28694 fprintf (f, "%ld", i);
28695 }
28696 else
28697 {
28698 unsigned long int i = ulongval ();
28699 if (i != ((long int) (sizeof (unsigned int*))))
28700 return 1;
28701 fprintf (f, "%lu", i);
28702 }
28703 /* Do not output a trailing newline, as this causes \r\n confusion
28704 on some platforms. */
28705 return ferror (f) || fclose (f) != 0;
28706
28707 ;
28708 return 0;
28709}
28710_ACEOF
28711rm -f conftest$ac_exeext
28712if { (ac_try="$ac_link"
28713case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28716esac
28717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28718$as_echo "$ac_try_echo") >&5
28719 (eval "$ac_link") 2>&5
28720 ac_status=$?
28721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28723 { (case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
28727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28728$as_echo "$ac_try_echo") >&5
28729 (eval "$ac_try") 2>&5
28730 ac_status=$?
28731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
28734else
28735 $as_echo "$as_me: program exited with status $ac_status" >&5
28736$as_echo "$as_me: failed program was:" >&5
28737sed 's/^/| /' conftest.$ac_ext >&5
28738
28739( exit $ac_status )
28740if test "$ac_cv_type_unsigned_intp" = yes; then
28741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28743{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28744See \`config.log' for more details." >&5
28745$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28746See \`config.log' for more details." >&2;}
28747 { (exit 77); exit 77; }; }; }
28748 else
28749 ac_cv_sizeof_unsigned_intp=0
28750 fi
28751fi
28752rm -rf conftest.dSYM
28753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28754fi
28755rm -f conftest.val
28756fi
28757{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
28758$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
28759
28760
28761
28762cat >>confdefs.h <<_ACEOF
28763#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
28764_ACEOF
28765
28766
28767
28768#
28769# Compute sized types for current CPU and compiler options.
28770#
28771
28772{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
28773$as_echo_n "checking for signed 8-bit type... " >&6; }
28774INT8_T='signed char'
28775{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
28776$as_echo "$INT8_T" >&6; }
28777
28778
28779{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
28780$as_echo_n "checking for unsigned 8-bit type... " >&6; }
28781UINT8_T='unsigned char'
28782{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
28783$as_echo "$UINT8_T" >&6; }
28784
28785
28786{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
28787$as_echo_n "checking for signed 16-bit type... " >&6; }
28788INT16_T='signed short'
28789{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
28790$as_echo "$INT16_T" >&6; }
28791
28792
28793{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
28794$as_echo_n "checking for unsigned 16-bit type... " >&6; }
28795UINT16_T='unsigned short'
28796{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
28797$as_echo "$UINT16_T" >&6; }
28798
28799
28800{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
28801$as_echo_n "checking for signed 32-bit type... " >&6; }
28802INT32_T='none'
28803if test $ac_cv_sizeof_signed_int -eq 4; then
28804 INT32_T='signed int'
28805elif test $ac_cv_sizeof_signed_long -eq 4; then
28806 INT32_T='signed long'
28807fi
28808{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
28809$as_echo "$INT32_T" >&6; }
28810
28811
28812{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
28813$as_echo_n "checking for unsigned 32-bit type... " >&6; }
28814UINT32_T='none'
28815if test $ac_cv_sizeof_unsigned_int -eq 4; then
28816 UINT32_T='unsigned int'
28817elif test $ac_cv_sizeof_unsigned_long -eq 4; then
28818 UINT32_T='unsigned long'
28819fi
28820{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
28821$as_echo "$UINT32_T" >&6; }
28822
28823
28824{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
28825$as_echo_n "checking for signed 64-bit type... " >&6; }
28826INT64_T='none'
28827if test $ac_cv_sizeof_signed_long -eq 8; then
28828 INT64_T='signed long'
28829elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28830 INT64_T='signed long long'
28831fi
28832{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28833$as_echo "$INT64_T" >&6; }
28834
28835
28836{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28837$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28838UINT64_T='none'
28839if test $ac_cv_sizeof_unsigned_long -eq 8; then
28840 UINT64_T='unsigned long'
28841elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28842 UINT64_T='unsigned long long'
28843fi
28844{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28845$as_echo "$UINT64_T" >&6; }
28846
28847
28848{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28849$as_echo_n "checking for unsigned maximum type... " >&6; }
28850UINTMAX_T='none'
28851if test "$UINT64_T" != 'none'; then
28852 UINTMAX_T=$UINT64_T
28853elif test "$UINT32_T" != 'none'; then
28854 UINTMAX_T=$UINT32_T
28855fi
28856{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28857$as_echo "$UINTMAX_T" >&6; }
28858
28859
28860{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28861$as_echo_n "checking for pointer difference type... " >&6; }
28862UINTPTR_T='none'
28863if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28864 UINTPTR_T='unsigned long'
28865elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28866 UINTPTR_T='unsigned long long'
28867fi
28868{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28869$as_echo "$UINTPTR_T" >&6; }
28870
28871
28872{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28873$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28874cat >conftest.$ac_ext <<_ACEOF
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880
28881int
28882main ()
28883{
28884{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28885 ;
28886 return 0;
28887}
28888_ACEOF
28889rm -f conftest.$ac_objext
28890if { (ac_try="$ac_compile"
28891case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894esac
28895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28896$as_echo "$ac_try_echo") >&5
28897 (eval "$ac_compile") 2>conftest.er1
28898 ac_status=$?
28899 grep -v '^ *+' conftest.er1 >conftest.err
28900 rm -f conftest.er1
28901 cat conftest.err >&5
28902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } && {
28904 test -z "$ac_c_werror_flag" ||
28905 test ! -s conftest.err
28906 } && test -s conftest.$ac_objext; then
28907 { $as_echo "$as_me:$LINENO: result: yes" >&5
28908$as_echo "yes" >&6; }
28909else
28910 $as_echo "$as_me: failed program was:" >&5
28911sed 's/^/| /' conftest.$ac_ext >&5
28912
28913 { $as_echo "$as_me:$LINENO: result: no" >&5
28914$as_echo "no" >&6; }
28915 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28916$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28917 cat >conftest.$ac_ext <<_ACEOF
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923
28924int
28925main ()
28926{
28927{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28928 ;
28929 return 0;
28930}
28931_ACEOF
28932rm -f conftest.$ac_objext
28933if { (ac_try="$ac_compile"
28934case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937esac
28938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28939$as_echo "$ac_try_echo") >&5
28940 (eval "$ac_compile") 2>conftest.er1
28941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } && {
28947 test -z "$ac_c_werror_flag" ||
28948 test ! -s conftest.err
28949 } && test -s conftest.$ac_objext; then
28950 { $as_echo "$as_me:$LINENO: result: yes" >&5
28951$as_echo "yes" >&6; }
28952
28953cat >>confdefs.h <<\_ACEOF
28954#define __func__ __FUNCTION__
28955_ACEOF
28956
28957else
28958 $as_echo "$as_me: failed program was:" >&5
28959sed 's/^/| /' conftest.$ac_ext >&5
28960
28961 { $as_echo "$as_me:$LINENO: result: no" >&5
28962$as_echo "no" >&6; }
28963
28964cat >>confdefs.h <<\_ACEOF
28965#define __func__ __FILE__
28966_ACEOF
28967
28968fi
28969
28970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28971fi
28972
28973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974
28975########
28976#
28977# Check for functions
28978#
28979########
28980
28981
28982for ac_header in stdlib.h unistd.h
28983do
28984as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28987$as_echo_n "checking for $ac_header... " >&6; }
28988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28989 $as_echo_n "(cached) " >&6
28990fi
28991ac_res=`eval 'as_val=${'$as_ac_Header'}
28992 $as_echo "$as_val"'`
28993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28994$as_echo "$ac_res" >&6; }
28995else
28996 # Is the header compilable?
28997{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28998$as_echo_n "checking $ac_header usability... " >&6; }
28999cat >conftest.$ac_ext <<_ACEOF
29000/* confdefs.h. */
29001_ACEOF
29002cat confdefs.h >>conftest.$ac_ext
29003cat >>conftest.$ac_ext <<_ACEOF
29004/* end confdefs.h. */
29005$ac_includes_default
29006#include <$ac_header>
29007_ACEOF
29008rm -f conftest.$ac_objext
29009if { (ac_try="$ac_compile"
29010case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29013esac
29014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29015$as_echo "$ac_try_echo") >&5
29016 (eval "$ac_compile") 2>conftest.er1
29017 ac_status=$?
29018 grep -v '^ *+' conftest.er1 >conftest.err
29019 rm -f conftest.er1
29020 cat conftest.err >&5
29021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } && {
29023 test -z "$ac_c_werror_flag" ||
29024 test ! -s conftest.err
29025 } && test -s conftest.$ac_objext; then
29026 ac_header_compiler=yes
29027else
29028 $as_echo "$as_me: failed program was:" >&5
29029sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 ac_header_compiler=no
29032fi
29033
29034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29035{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29036$as_echo "$ac_header_compiler" >&6; }
29037
29038# Is the header present?
29039{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29040$as_echo_n "checking $ac_header presence... " >&6; }
29041cat >conftest.$ac_ext <<_ACEOF
29042/* confdefs.h. */
29043_ACEOF
29044cat confdefs.h >>conftest.$ac_ext
29045cat >>conftest.$ac_ext <<_ACEOF
29046/* end confdefs.h. */
29047#include <$ac_header>
29048_ACEOF
29049if { (ac_try="$ac_cpp conftest.$ac_ext"
29050case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055$as_echo "$ac_try_echo") >&5
29056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29057 ac_status=$?
29058 grep -v '^ *+' conftest.er1 >conftest.err
29059 rm -f conftest.er1
29060 cat conftest.err >&5
29061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } >/dev/null && {
29063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29065 }; then
29066 ac_header_preproc=yes
29067else
29068 $as_echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 ac_header_preproc=no
29072fi
29073
29074rm -f conftest.err conftest.$ac_ext
29075{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076$as_echo "$ac_header_preproc" >&6; }
29077
29078# So? What about this header?
29079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080 yes:no: )
29081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29082$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29084$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29085 ac_header_preproc=yes
29086 ;;
29087 no:yes:* )
29088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29089$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29091$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29093$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29095$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29097$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29099$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29100 ( cat <<\_ASBOX
29101## ----------------------------------------- ##
29102## Report this to http://www.imagemagick.org ##
29103## ----------------------------------------- ##
29104_ASBOX
29105 ) | sed "s/^/$as_me: WARNING: /" >&2
29106 ;;
29107esac
29108{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29109$as_echo_n "checking for $ac_header... " >&6; }
29110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29111 $as_echo_n "(cached) " >&6
29112else
29113 eval "$as_ac_Header=\$ac_header_preproc"
29114fi
29115ac_res=`eval 'as_val=${'$as_ac_Header'}
29116 $as_echo "$as_val"'`
29117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29118$as_echo "$ac_res" >&6; }
29119
29120fi
29121as_val=`eval 'as_val=${'$as_ac_Header'}
29122 $as_echo "$as_val"'`
29123 if test "x$as_val" = x""yes; then
29124 cat >>confdefs.h <<_ACEOF
29125#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29126_ACEOF
29127
29128fi
29129
29130done
29131
29132
29133for ac_func in getpagesize
29134do
29135as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29136{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29137$as_echo_n "checking for $ac_func... " >&6; }
29138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29139 $as_echo_n "(cached) " >&6
29140else
29141 cat >conftest.$ac_ext <<_ACEOF
29142/* confdefs.h. */
29143_ACEOF
29144cat confdefs.h >>conftest.$ac_ext
29145cat >>conftest.$ac_ext <<_ACEOF
29146/* end confdefs.h. */
29147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29149#define $ac_func innocuous_$ac_func
29150
29151/* System header to define __stub macros and hopefully few prototypes,
29152 which can conflict with char $ac_func (); below.
29153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29154 <limits.h> exists even on freestanding compilers. */
29155
29156#ifdef __STDC__
29157# include <limits.h>
29158#else
29159# include <assert.h>
29160#endif
29161
29162#undef $ac_func
29163
29164/* Override any GCC internal prototype to avoid an error.
29165 Use char because int might match the return type of a GCC
29166 builtin and then its argument prototype would still apply. */
29167#ifdef __cplusplus
29168extern "C"
29169#endif
29170char $ac_func ();
29171/* The GNU C library defines this for functions which it implements
29172 to always fail with ENOSYS. Some functions are actually named
29173 something starting with __ and the normal name is an alias. */
29174#if defined __stub_$ac_func || defined __stub___$ac_func
29175choke me
29176#endif
29177
29178int
29179main ()
29180{
29181return $ac_func ();
29182 ;
29183 return 0;
29184}
29185_ACEOF
29186rm -f conftest.$ac_objext conftest$ac_exeext
29187if { (ac_try="$ac_link"
29188case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191esac
29192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29193$as_echo "$ac_try_echo") >&5
29194 (eval "$ac_link") 2>conftest.er1
29195 ac_status=$?
29196 grep -v '^ *+' conftest.er1 >conftest.err
29197 rm -f conftest.er1
29198 cat conftest.err >&5
29199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } && {
29201 test -z "$ac_c_werror_flag" ||
29202 test ! -s conftest.err
29203 } && test -s conftest$ac_exeext && {
29204 test "$cross_compiling" = yes ||
29205 $as_test_x conftest$ac_exeext
29206 }; then
29207 eval "$as_ac_var=yes"
29208else
29209 $as_echo "$as_me: failed program was:" >&5
29210sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 eval "$as_ac_var=no"
29213fi
29214
29215rm -rf conftest.dSYM
29216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29217 conftest$ac_exeext conftest.$ac_ext
29218fi
29219ac_res=`eval 'as_val=${'$as_ac_var'}
29220 $as_echo "$as_val"'`
29221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29222$as_echo "$ac_res" >&6; }
29223as_val=`eval 'as_val=${'$as_ac_var'}
29224 $as_echo "$as_val"'`
29225 if test "x$as_val" = x""yes; then
29226 cat >>confdefs.h <<_ACEOF
29227#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29228_ACEOF
29229
29230fi
29231done
29232
29233{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
29234$as_echo_n "checking for working mmap file i/o... " >&6; }
29235if test "${magick_cv_func_mmap_fileio+set}" = set; then
29236 $as_echo_n "(cached) " >&6
29237else
29238 if test "$cross_compiling" = yes; then
29239 magick_cv_func_mmap_fileio=no
29240else
29241 cat >conftest.$ac_ext <<_ACEOF
29242/* confdefs.h. */
29243_ACEOF
29244cat confdefs.h >>conftest.$ac_ext
29245cat >>conftest.$ac_ext <<_ACEOF
29246/* end confdefs.h. */
29247$ac_includes_default
29248/* malloc might have been renamed as rpl_malloc. */
29249#undef malloc
29250
29251/*
29252 This test is derived from GNU Autoconf's similar macro.
29253 The purpose of this test is to verify that files may be memory
29254 mapped, and that memory mapping and file I/O are coherent.
29255
29256 The test creates a test file, memory maps the file, updates
29257 the file using the memory map, and then reads the file using
29258 file I/O to verify that the file contains the updates.
29259*/
29260
29261#include <fcntl.h>
29262#include <sys/mman.h>
29263
29264#if !STDC_HEADERS && !HAVE_STDLIB_H
29265char *malloc ();
29266#endif
29267
29268/* This mess was copied from the GNU getpagesize.h. */
29269#if !HAVE_GETPAGESIZE
29270/* Assume that all systems that can run configure have sys/param.h. */
29271# if !HAVE_SYS_PARAM_H
29272# define HAVE_SYS_PARAM_H 1
29273# endif
29274
29275# ifdef _SC_PAGESIZE
29276# define getpagesize() sysconf(_SC_PAGESIZE)
29277# else /* no _SC_PAGESIZE */
29278# if HAVE_SYS_PARAM_H
29279# include <sys/param.h>
29280# ifdef EXEC_PAGESIZE
29281# define getpagesize() EXEC_PAGESIZE
29282# else /* no EXEC_PAGESIZE */
29283# ifdef NBPG
29284# define getpagesize() NBPG * CLSIZE
29285# ifndef CLSIZE
29286# define CLSIZE 1
29287# endif /* no CLSIZE */
29288# else /* no NBPG */
29289# ifdef NBPC
29290# define getpagesize() NBPC
29291# else /* no NBPC */
29292# ifdef PAGESIZE
29293# define getpagesize() PAGESIZE
29294# endif /* PAGESIZE */
29295# endif /* no NBPC */
29296# endif /* no NBPG */
29297# endif /* no EXEC_PAGESIZE */
29298# else /* no HAVE_SYS_PARAM_H */
29299# define getpagesize() 8192 /* punt totally */
29300# endif /* no HAVE_SYS_PARAM_H */
29301# endif /* no _SC_PAGESIZE */
29302
29303#endif /* no HAVE_GETPAGESIZE */
29304
29305int
29306main ()
29307{
29308 char *data, *data2, *data3;
29309 int i, pagesize;
29310 int fd;
29311
29312 pagesize = getpagesize ();
29313
29314 /* First, make a file with some known garbage in it. */
29315 data = (char *) malloc (pagesize);
29316 if (!data)
29317 exit (1);
29318 for (i = 0; i < pagesize; ++i)
29319 *(data + i) = rand ();
29320 umask (0);
29321 fd = creat ("conftest.mmap", 0600);
29322 if (fd < 0)
29323 exit (1);
29324 if (write (fd, data, pagesize) != pagesize)
29325 exit (1);
29326 close (fd);
29327
29328 /* Mmap the file as read/write/shared and verify that we see the
29329 same garbage. */
29330 fd = open ("conftest.mmap", O_RDWR);
29331 if (fd < 0)
29332 exit (1);
29333 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
29334 if (data2 == 0)
29335 exit (1);
29336 for (i = 0; i < pagesize; ++i)
29337 if (*(data + i) != *(data2 + i))
29338 exit (1);
29339
29340 /* Finally, make sure that changes to the mapped area
29341 percolate back to the file as seen by read(). */
29342 for (i = 0; i < pagesize; ++i)
29343 *(data2 + i) = *(data2 + i) + 1;
29344 data3 = (char *) malloc (pagesize);
29345 if (!data3)
29346 exit (1);
29347 if (read (fd, data3, pagesize) != pagesize)
29348 exit (1);
29349 for (i = 0; i < pagesize; ++i)
29350 if (*(data2 + i) != *(data3 + i))
29351 exit (1);
29352 close (fd);
29353 exit (0);
29354}
29355_ACEOF
29356rm -f conftest$ac_exeext
29357if { (ac_try="$ac_link"
29358case "(($ac_try" in
29359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360 *) ac_try_echo=$ac_try;;
29361esac
29362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29363$as_echo "$ac_try_echo") >&5
29364 (eval "$ac_link") 2>&5
29365 ac_status=$?
29366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29368 { (case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29371esac
29372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29373$as_echo "$ac_try_echo") >&5
29374 (eval "$ac_try") 2>&5
29375 ac_status=$?
29376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; }; then
29378 magick_cv_func_mmap_fileio=yes
29379else
29380 $as_echo "$as_me: program exited with status $ac_status" >&5
29381$as_echo "$as_me: failed program was:" >&5
29382sed 's/^/| /' conftest.$ac_ext >&5
29383
29384( exit $ac_status )
29385magick_cv_func_mmap_fileio=no
29386fi
29387rm -rf conftest.dSYM
29388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29389fi
29390
29391
29392fi
29393{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
29394$as_echo "$magick_cv_func_mmap_fileio" >&6; }
29395if test $magick_cv_func_mmap_fileio = yes; then
29396
29397cat >>confdefs.h <<\_ACEOF
29398#define HAVE_MMAP_FILEIO 1
29399_ACEOF
29400
29401fi
29402rm -f conftest.mmap
29403
29404{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29405$as_echo_n "checking whether closedir returns void... " >&6; }
29406if test "${ac_cv_func_closedir_void+set}" = set; then
29407 $as_echo_n "(cached) " >&6
29408else
29409 if test "$cross_compiling" = yes; then
29410 ac_cv_func_closedir_void=yes
29411else
29412 cat >conftest.$ac_ext <<_ACEOF
29413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
29418$ac_includes_default
29419#include <$ac_header_dirent>
29420#ifndef __cplusplus
29421int closedir ();
29422#endif
29423
29424int
29425main ()
29426{
29427return closedir (opendir (".")) != 0;
29428 ;
29429 return 0;
29430}
29431_ACEOF
29432rm -f conftest$ac_exeext
29433if { (ac_try="$ac_link"
29434case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29437esac
29438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29439$as_echo "$ac_try_echo") >&5
29440 (eval "$ac_link") 2>&5
29441 ac_status=$?
29442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29444 { (case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29447esac
29448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29449$as_echo "$ac_try_echo") >&5
29450 (eval "$ac_try") 2>&5
29451 ac_status=$?
29452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; }; then
29454 ac_cv_func_closedir_void=no
29455else
29456 $as_echo "$as_me: program exited with status $ac_status" >&5
29457$as_echo "$as_me: failed program was:" >&5
29458sed 's/^/| /' conftest.$ac_ext >&5
29459
29460( exit $ac_status )
29461ac_cv_func_closedir_void=yes
29462fi
29463rm -rf conftest.dSYM
29464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29465fi
29466
29467
29468fi
29469{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29470$as_echo "$ac_cv_func_closedir_void" >&6; }
29471if test $ac_cv_func_closedir_void = yes; then
29472
29473cat >>confdefs.h <<\_ACEOF
29474#define CLOSEDIR_VOID 1
29475_ACEOF
29476
29477fi
29478
29479
29480
29481for ac_header in stdlib.h unistd.h
29482do
29483as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29486$as_echo_n "checking for $ac_header... " >&6; }
29487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29488 $as_echo_n "(cached) " >&6
29489fi
29490ac_res=`eval 'as_val=${'$as_ac_Header'}
29491 $as_echo "$as_val"'`
29492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29493$as_echo "$ac_res" >&6; }
29494else
29495 # Is the header compilable?
29496{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29497$as_echo_n "checking $ac_header usability... " >&6; }
29498cat >conftest.$ac_ext <<_ACEOF
29499/* confdefs.h. */
29500_ACEOF
29501cat confdefs.h >>conftest.$ac_ext
29502cat >>conftest.$ac_ext <<_ACEOF
29503/* end confdefs.h. */
29504$ac_includes_default
29505#include <$ac_header>
29506_ACEOF
29507rm -f conftest.$ac_objext
29508if { (ac_try="$ac_compile"
29509case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29512esac
29513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29514$as_echo "$ac_try_echo") >&5
29515 (eval "$ac_compile") 2>conftest.er1
29516 ac_status=$?
29517 grep -v '^ *+' conftest.er1 >conftest.err
29518 rm -f conftest.er1
29519 cat conftest.err >&5
29520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } && {
29522 test -z "$ac_c_werror_flag" ||
29523 test ! -s conftest.err
29524 } && test -s conftest.$ac_objext; then
29525 ac_header_compiler=yes
29526else
29527 $as_echo "$as_me: failed program was:" >&5
29528sed 's/^/| /' conftest.$ac_ext >&5
29529
29530 ac_header_compiler=no
29531fi
29532
29533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29535$as_echo "$ac_header_compiler" >&6; }
29536
29537# Is the header present?
29538{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29539$as_echo_n "checking $ac_header presence... " >&6; }
29540cat >conftest.$ac_ext <<_ACEOF
29541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
29546#include <$ac_header>
29547_ACEOF
29548if { (ac_try="$ac_cpp conftest.$ac_ext"
29549case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29552esac
29553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29554$as_echo "$ac_try_echo") >&5
29555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29556 ac_status=$?
29557 grep -v '^ *+' conftest.er1 >conftest.err
29558 rm -f conftest.er1
29559 cat conftest.err >&5
29560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } >/dev/null && {
29562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29563 test ! -s conftest.err
29564 }; then
29565 ac_header_preproc=yes
29566else
29567 $as_echo "$as_me: failed program was:" >&5
29568sed 's/^/| /' conftest.$ac_ext >&5
29569
29570 ac_header_preproc=no
29571fi
29572
29573rm -f conftest.err conftest.$ac_ext
29574{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29575$as_echo "$ac_header_preproc" >&6; }
29576
29577# So? What about this header?
29578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29579 yes:no: )
29580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29581$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29583$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29584 ac_header_preproc=yes
29585 ;;
29586 no:yes:* )
29587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29588$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29590$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29592$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29594$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29596$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29598$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29599 ( cat <<\_ASBOX
29600## ----------------------------------------- ##
29601## Report this to http://www.imagemagick.org ##
29602## ----------------------------------------- ##
29603_ASBOX
29604 ) | sed "s/^/$as_me: WARNING: /" >&2
29605 ;;
29606esac
29607{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29608$as_echo_n "checking for $ac_header... " >&6; }
29609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29610 $as_echo_n "(cached) " >&6
29611else
29612 eval "$as_ac_Header=\$ac_header_preproc"
29613fi
29614ac_res=`eval 'as_val=${'$as_ac_Header'}
29615 $as_echo "$as_val"'`
29616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29617$as_echo "$ac_res" >&6; }
29618
29619fi
29620as_val=`eval 'as_val=${'$as_ac_Header'}
29621 $as_echo "$as_val"'`
29622 if test "x$as_val" = x""yes; then
29623 cat >>confdefs.h <<_ACEOF
29624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29625_ACEOF
29626
29627fi
29628
29629done
29630
29631
29632for ac_func in getpagesize
29633do
29634as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29635{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29636$as_echo_n "checking for $ac_func... " >&6; }
29637if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29638 $as_echo_n "(cached) " >&6
29639else
29640 cat >conftest.$ac_ext <<_ACEOF
29641/* confdefs.h. */
29642_ACEOF
29643cat confdefs.h >>conftest.$ac_ext
29644cat >>conftest.$ac_ext <<_ACEOF
29645/* end confdefs.h. */
29646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29648#define $ac_func innocuous_$ac_func
29649
29650/* System header to define __stub macros and hopefully few prototypes,
29651 which can conflict with char $ac_func (); below.
29652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29653 <limits.h> exists even on freestanding compilers. */
29654
29655#ifdef __STDC__
29656# include <limits.h>
29657#else
29658# include <assert.h>
29659#endif
29660
29661#undef $ac_func
29662
29663/* Override any GCC internal prototype to avoid an error.
29664 Use char because int might match the return type of a GCC
29665 builtin and then its argument prototype would still apply. */
29666#ifdef __cplusplus
29667extern "C"
29668#endif
29669char $ac_func ();
29670/* The GNU C library defines this for functions which it implements
29671 to always fail with ENOSYS. Some functions are actually named
29672 something starting with __ and the normal name is an alias. */
29673#if defined __stub_$ac_func || defined __stub___$ac_func
29674choke me
29675#endif
29676
29677int
29678main ()
29679{
29680return $ac_func ();
29681 ;
29682 return 0;
29683}
29684_ACEOF
29685rm -f conftest.$ac_objext conftest$ac_exeext
29686if { (ac_try="$ac_link"
29687case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690esac
29691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29692$as_echo "$ac_try_echo") >&5
29693 (eval "$ac_link") 2>conftest.er1
29694 ac_status=$?
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
29698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } && {
29700 test -z "$ac_c_werror_flag" ||
29701 test ! -s conftest.err
29702 } && test -s conftest$ac_exeext && {
29703 test "$cross_compiling" = yes ||
29704 $as_test_x conftest$ac_exeext
29705 }; then
29706 eval "$as_ac_var=yes"
29707else
29708 $as_echo "$as_me: failed program was:" >&5
29709sed 's/^/| /' conftest.$ac_ext >&5
29710
29711 eval "$as_ac_var=no"
29712fi
29713
29714rm -rf conftest.dSYM
29715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29716 conftest$ac_exeext conftest.$ac_ext
29717fi
29718ac_res=`eval 'as_val=${'$as_ac_var'}
29719 $as_echo "$as_val"'`
29720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29721$as_echo "$ac_res" >&6; }
29722as_val=`eval 'as_val=${'$as_ac_var'}
29723 $as_echo "$as_val"'`
29724 if test "x$as_val" = x""yes; then
29725 cat >>confdefs.h <<_ACEOF
29726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29727_ACEOF
29728
29729fi
29730done
29731
29732{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
29733$as_echo_n "checking for working mmap... " >&6; }
29734if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29735 $as_echo_n "(cached) " >&6
29736else
29737 if test "$cross_compiling" = yes; then
29738 ac_cv_func_mmap_fixed_mapped=no
29739else
29740 cat >conftest.$ac_ext <<_ACEOF
29741/* confdefs.h. */
29742_ACEOF
29743cat confdefs.h >>conftest.$ac_ext
29744cat >>conftest.$ac_ext <<_ACEOF
29745/* end confdefs.h. */
29746$ac_includes_default
29747/* malloc might have been renamed as rpl_malloc. */
29748#undef malloc
29749
29750/* Thanks to Mike Haertel and Jim Avera for this test.
29751 Here is a matrix of mmap possibilities:
29752 mmap private not fixed
29753 mmap private fixed at somewhere currently unmapped
29754 mmap private fixed at somewhere already mapped
29755 mmap shared not fixed
29756 mmap shared fixed at somewhere currently unmapped
29757 mmap shared fixed at somewhere already mapped
29758 For private mappings, we should verify that changes cannot be read()
29759 back from the file, nor mmap's back from the file at a different
29760 address. (There have been systems where private was not correctly
29761 implemented like the infamous i386 svr4.0, and systems where the
29762 VM page cache was not coherent with the file system buffer cache
29763 like early versions of FreeBSD and possibly contemporary NetBSD.)
29764 For shared mappings, we should conversely verify that changes get
29765 propagated back to all the places they're supposed to be.
29766
29767 Grep wants private fixed already mapped.
29768 The main things grep needs to know about mmap are:
29769 * does it exist and is it safe to write into the mmap'd area
29770 * how to use it (BSD variants) */
29771
29772#include <fcntl.h>
29773#include <sys/mman.h>
29774
29775#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
29776char *malloc ();
29777#endif
29778
29779/* This mess was copied from the GNU getpagesize.h. */
29780#ifndef HAVE_GETPAGESIZE
29781/* Assume that all systems that can run configure have sys/param.h. */
29782# ifndef HAVE_SYS_PARAM_H
29783# define HAVE_SYS_PARAM_H 1
29784# endif
29785
29786# ifdef _SC_PAGESIZE
29787# define getpagesize() sysconf(_SC_PAGESIZE)
29788# else /* no _SC_PAGESIZE */
29789# ifdef HAVE_SYS_PARAM_H
29790# include <sys/param.h>
29791# ifdef EXEC_PAGESIZE
29792# define getpagesize() EXEC_PAGESIZE
29793# else /* no EXEC_PAGESIZE */
29794# ifdef NBPG
29795# define getpagesize() NBPG * CLSIZE
29796# ifndef CLSIZE
29797# define CLSIZE 1
29798# endif /* no CLSIZE */
29799# else /* no NBPG */
29800# ifdef NBPC
29801# define getpagesize() NBPC
29802# else /* no NBPC */
29803# ifdef PAGESIZE
29804# define getpagesize() PAGESIZE
29805# endif /* PAGESIZE */
29806# endif /* no NBPC */
29807# endif /* no NBPG */
29808# endif /* no EXEC_PAGESIZE */
29809# else /* no HAVE_SYS_PARAM_H */
29810# define getpagesize() 8192 /* punt totally */
29811# endif /* no HAVE_SYS_PARAM_H */
29812# endif /* no _SC_PAGESIZE */
29813
29814#endif /* no HAVE_GETPAGESIZE */
29815
29816int
29817main ()
29818{
29819 char *data, *data2, *data3;
29820 int i, pagesize;
29821 int fd;
29822
29823 pagesize = getpagesize ();
29824
29825 /* First, make a file with some known garbage in it. */
29826 data = (char *) malloc (pagesize);
29827 if (!data)
29828 return 1;
29829 for (i = 0; i < pagesize; ++i)
29830 *(data + i) = rand ();
29831 umask (0);
29832 fd = creat ("conftest.mmap", 0600);
29833 if (fd < 0)
29834 return 1;
29835 if (write (fd, data, pagesize) != pagesize)
29836 return 1;
29837 close (fd);
29838
29839 /* Next, try to mmap the file at a fixed address which already has
29840 something else allocated at it. If we can, also make sure that
29841 we see the same garbage. */
29842 fd = open ("conftest.mmap", O_RDWR);
29843 if (fd < 0)
29844 return 1;
29845 data2 = (char *) malloc (2 * pagesize);
29846 if (!data2)
29847 return 1;
29848 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29849 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29850 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29851 return 1;
29852 for (i = 0; i < pagesize; ++i)
29853 if (*(data + i) != *(data2 + i))
29854 return 1;
29855
29856 /* Finally, make sure that changes to the mapped area do not
29857 percolate back to the file as seen by read(). (This is a bug on
29858 some variants of i386 svr4.0.) */
29859 for (i = 0; i < pagesize; ++i)
29860 *(data2 + i) = *(data2 + i) + 1;
29861 data3 = (char *) malloc (pagesize);
29862 if (!data3)
29863 return 1;
29864 if (read (fd, data3, pagesize) != pagesize)
29865 return 1;
29866 for (i = 0; i < pagesize; ++i)
29867 if (*(data + i) != *(data3 + i))
29868 return 1;
29869 close (fd);
29870 return 0;
29871}
29872_ACEOF
29873rm -f conftest$ac_exeext
29874if { (ac_try="$ac_link"
29875case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29878esac
29879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29880$as_echo "$ac_try_echo") >&5
29881 (eval "$ac_link") 2>&5
29882 ac_status=$?
29883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29885 { (case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29888esac
29889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29890$as_echo "$ac_try_echo") >&5
29891 (eval "$ac_try") 2>&5
29892 ac_status=$?
29893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
29895 ac_cv_func_mmap_fixed_mapped=yes
29896else
29897 $as_echo "$as_me: program exited with status $ac_status" >&5
29898$as_echo "$as_me: failed program was:" >&5
29899sed 's/^/| /' conftest.$ac_ext >&5
29900
29901( exit $ac_status )
29902ac_cv_func_mmap_fixed_mapped=no
29903fi
29904rm -rf conftest.dSYM
29905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29906fi
29907
29908
29909fi
29910{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29911$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29912if test $ac_cv_func_mmap_fixed_mapped = yes; then
29913
29914cat >>confdefs.h <<\_ACEOF
29915#define HAVE_MMAP 1
29916_ACEOF
29917
29918fi
29919rm -f conftest.mmap
29920
29921
29922for ac_header in vfork.h
29923do
29924as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29927$as_echo_n "checking for $ac_header... " >&6; }
29928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29929 $as_echo_n "(cached) " >&6
29930fi
29931ac_res=`eval 'as_val=${'$as_ac_Header'}
29932 $as_echo "$as_val"'`
29933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29934$as_echo "$ac_res" >&6; }
29935else
29936 # Is the header compilable?
29937{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29938$as_echo_n "checking $ac_header usability... " >&6; }
29939cat >conftest.$ac_ext <<_ACEOF
29940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
29945$ac_includes_default
29946#include <$ac_header>
29947_ACEOF
29948rm -f conftest.$ac_objext
29949if { (ac_try="$ac_compile"
29950case "(($ac_try" in
29951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29952 *) ac_try_echo=$ac_try;;
29953esac
29954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29955$as_echo "$ac_try_echo") >&5
29956 (eval "$ac_compile") 2>conftest.er1
29957 ac_status=$?
29958 grep -v '^ *+' conftest.er1 >conftest.err
29959 rm -f conftest.er1
29960 cat conftest.err >&5
29961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } && {
29963 test -z "$ac_c_werror_flag" ||
29964 test ! -s conftest.err
29965 } && test -s conftest.$ac_objext; then
29966 ac_header_compiler=yes
29967else
29968 $as_echo "$as_me: failed program was:" >&5
29969sed 's/^/| /' conftest.$ac_ext >&5
29970
29971 ac_header_compiler=no
29972fi
29973
29974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29975{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29976$as_echo "$ac_header_compiler" >&6; }
29977
29978# Is the header present?
29979{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29980$as_echo_n "checking $ac_header presence... " >&6; }
29981cat >conftest.$ac_ext <<_ACEOF
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
29987#include <$ac_header>
29988_ACEOF
29989if { (ac_try="$ac_cpp conftest.$ac_ext"
29990case "(($ac_try" in
29991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992 *) ac_try_echo=$ac_try;;
29993esac
29994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29995$as_echo "$ac_try_echo") >&5
29996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29997 ac_status=$?
29998 grep -v '^ *+' conftest.er1 >conftest.err
29999 rm -f conftest.er1
30000 cat conftest.err >&5
30001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } >/dev/null && {
30003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30004 test ! -s conftest.err
30005 }; then
30006 ac_header_preproc=yes
30007else
30008 $as_echo "$as_me: failed program was:" >&5
30009sed 's/^/| /' conftest.$ac_ext >&5
30010
30011 ac_header_preproc=no
30012fi
30013
30014rm -f conftest.err conftest.$ac_ext
30015{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30016$as_echo "$ac_header_preproc" >&6; }
30017
30018# So? What about this header?
30019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30020 yes:no: )
30021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30022$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30024$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30025 ac_header_preproc=yes
30026 ;;
30027 no:yes:* )
30028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30029$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30031$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30033$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30035$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30037$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30039$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30040 ( cat <<\_ASBOX
30041## ----------------------------------------- ##
30042## Report this to http://www.imagemagick.org ##
30043## ----------------------------------------- ##
30044_ASBOX
30045 ) | sed "s/^/$as_me: WARNING: /" >&2
30046 ;;
30047esac
30048{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30049$as_echo_n "checking for $ac_header... " >&6; }
30050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30051 $as_echo_n "(cached) " >&6
30052else
30053 eval "$as_ac_Header=\$ac_header_preproc"
30054fi
30055ac_res=`eval 'as_val=${'$as_ac_Header'}
30056 $as_echo "$as_val"'`
30057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30058$as_echo "$ac_res" >&6; }
30059
30060fi
30061as_val=`eval 'as_val=${'$as_ac_Header'}
30062 $as_echo "$as_val"'`
30063 if test "x$as_val" = x""yes; then
30064 cat >>confdefs.h <<_ACEOF
30065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30066_ACEOF
30067
30068fi
30069
30070done
30071
30072
30073
30074for ac_func in fork vfork
30075do
30076as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30077{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30078$as_echo_n "checking for $ac_func... " >&6; }
30079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30080 $as_echo_n "(cached) " >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
30083/* confdefs.h. */
30084_ACEOF
30085cat confdefs.h >>conftest.$ac_ext
30086cat >>conftest.$ac_ext <<_ACEOF
30087/* end confdefs.h. */
30088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30090#define $ac_func innocuous_$ac_func
30091
30092/* System header to define __stub macros and hopefully few prototypes,
30093 which can conflict with char $ac_func (); below.
30094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30095 <limits.h> exists even on freestanding compilers. */
30096
30097#ifdef __STDC__
30098# include <limits.h>
30099#else
30100# include <assert.h>
30101#endif
30102
30103#undef $ac_func
30104
30105/* Override any GCC internal prototype to avoid an error.
30106 Use char because int might match the return type of a GCC
30107 builtin and then its argument prototype would still apply. */
30108#ifdef __cplusplus
30109extern "C"
30110#endif
30111char $ac_func ();
30112/* The GNU C library defines this for functions which it implements
30113 to always fail with ENOSYS. Some functions are actually named
30114 something starting with __ and the normal name is an alias. */
30115#if defined __stub_$ac_func || defined __stub___$ac_func
30116choke me
30117#endif
30118
30119int
30120main ()
30121{
30122return $ac_func ();
30123 ;
30124 return 0;
30125}
30126_ACEOF
30127rm -f conftest.$ac_objext conftest$ac_exeext
30128if { (ac_try="$ac_link"
30129case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30132esac
30133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30134$as_echo "$ac_try_echo") >&5
30135 (eval "$ac_link") 2>conftest.er1
30136 ac_status=$?
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
30140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } && {
30142 test -z "$ac_c_werror_flag" ||
30143 test ! -s conftest.err
30144 } && test -s conftest$ac_exeext && {
30145 test "$cross_compiling" = yes ||
30146 $as_test_x conftest$ac_exeext
30147 }; then
30148 eval "$as_ac_var=yes"
30149else
30150 $as_echo "$as_me: failed program was:" >&5
30151sed 's/^/| /' conftest.$ac_ext >&5
30152
30153 eval "$as_ac_var=no"
30154fi
30155
30156rm -rf conftest.dSYM
30157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30158 conftest$ac_exeext conftest.$ac_ext
30159fi
30160ac_res=`eval 'as_val=${'$as_ac_var'}
30161 $as_echo "$as_val"'`
30162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30163$as_echo "$ac_res" >&6; }
30164as_val=`eval 'as_val=${'$as_ac_var'}
30165 $as_echo "$as_val"'`
30166 if test "x$as_val" = x""yes; then
30167 cat >>confdefs.h <<_ACEOF
30168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169_ACEOF
30170
30171fi
30172done
30173
30174if test "x$ac_cv_func_fork" = xyes; then
30175 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
30176$as_echo_n "checking for working fork... " >&6; }
30177if test "${ac_cv_func_fork_works+set}" = set; then
30178 $as_echo_n "(cached) " >&6
30179else
30180 if test "$cross_compiling" = yes; then
30181 ac_cv_func_fork_works=cross
30182else
30183 cat >conftest.$ac_ext <<_ACEOF
30184/* confdefs.h. */
30185_ACEOF
30186cat confdefs.h >>conftest.$ac_ext
30187cat >>conftest.$ac_ext <<_ACEOF
30188/* end confdefs.h. */
30189$ac_includes_default
30190int
30191main ()
30192{
30193
30194 /* By Ruediger Kuhlmann. */
30195 return fork () < 0;
30196
30197 ;
30198 return 0;
30199}
30200_ACEOF
30201rm -f conftest$ac_exeext
30202if { (ac_try="$ac_link"
30203case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206esac
30207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30208$as_echo "$ac_try_echo") >&5
30209 (eval "$ac_link") 2>&5
30210 ac_status=$?
30211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30213 { (case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30216esac
30217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30218$as_echo "$ac_try_echo") >&5
30219 (eval "$ac_try") 2>&5
30220 ac_status=$?
30221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; }; then
30223 ac_cv_func_fork_works=yes
30224else
30225 $as_echo "$as_me: program exited with status $ac_status" >&5
30226$as_echo "$as_me: failed program was:" >&5
30227sed 's/^/| /' conftest.$ac_ext >&5
30228
30229( exit $ac_status )
30230ac_cv_func_fork_works=no
30231fi
30232rm -rf conftest.dSYM
30233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30234fi
30235
30236
30237fi
30238{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
30239$as_echo "$ac_cv_func_fork_works" >&6; }
30240
30241else
30242 ac_cv_func_fork_works=$ac_cv_func_fork
30243fi
30244if test "x$ac_cv_func_fork_works" = xcross; then
30245 case $host in
30246 *-*-amigaos* | *-*-msdosdjgpp*)
30247 # Override, as these systems have only a dummy fork() stub
30248 ac_cv_func_fork_works=no
30249 ;;
30250 *)
30251 ac_cv_func_fork_works=yes
30252 ;;
30253 esac
30254 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
30255$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
30256fi
30257ac_cv_func_vfork_works=$ac_cv_func_vfork
30258if test "x$ac_cv_func_vfork" = xyes; then
30259 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
30260$as_echo_n "checking for working vfork... " >&6; }
30261if test "${ac_cv_func_vfork_works+set}" = set; then
30262 $as_echo_n "(cached) " >&6
30263else
30264 if test "$cross_compiling" = yes; then
30265 ac_cv_func_vfork_works=cross
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273/* Thanks to Paul Eggert for this test. */
30274$ac_includes_default
30275#include <sys/wait.h>
30276#ifdef HAVE_VFORK_H
30277# include <vfork.h>
30278#endif
30279/* On some sparc systems, changes by the child to local and incoming
30280 argument registers are propagated back to the parent. The compiler
30281 is told about this with #include <vfork.h>, but some compilers
30282 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
30283 static variable whose address is put into a register that is
30284 clobbered by the vfork. */
30285static void
30286#ifdef __cplusplus
30287sparc_address_test (int arg)
30288# else
30289sparc_address_test (arg) int arg;
30290#endif
30291{
30292 static pid_t child;
30293 if (!child) {
30294 child = vfork ();
30295 if (child < 0) {
30296 perror ("vfork");
30297 _exit(2);
30298 }
30299 if (!child) {
30300 arg = getpid();
30301 write(-1, "", 0);
30302 _exit (arg);
30303 }
30304 }
30305}
30306
30307int
30308main ()
30309{
30310 pid_t parent = getpid ();
30311 pid_t child;
30312
30313 sparc_address_test (0);
30314
30315 child = vfork ();
30316
30317 if (child == 0) {
30318 /* Here is another test for sparc vfork register problems. This
30319 test uses lots of local variables, at least as many local
30320 variables as main has allocated so far including compiler
30321 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
30322 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
30323 reuse the register of parent for one of the local variables,
30324 since it will think that parent can't possibly be used any more
30325 in this routine. Assigning to the local variable will thus
30326 munge parent in the parent process. */
30327 pid_t
30328 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30329 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30330 /* Convince the compiler that p..p7 are live; otherwise, it might
30331 use the same hardware register for all 8 local variables. */
30332 if (p != p1 || p != p2 || p != p3 || p != p4
30333 || p != p5 || p != p6 || p != p7)
30334 _exit(1);
30335
30336 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30337 from child file descriptors. If the child closes a descriptor
30338 before it execs or exits, this munges the parent's descriptor
30339 as well. Test for this by closing stdout in the child. */
30340 _exit(close(fileno(stdout)) != 0);
30341 } else {
30342 int status;
30343 struct stat st;
30344
30345 while (wait(&status) != child)
30346 ;
30347 return (
30348 /* Was there some problem with vforking? */
30349 child < 0
30350
30351 /* Did the child fail? (This shouldn't happen.) */
30352 || status
30353
30354 /* Did the vfork/compiler bug occur? */
30355 || parent != getpid()
30356
30357 /* Did the file descriptor bug occur? */
30358 || fstat(fileno(stdout), &st) != 0
30359 );
30360 }
30361}
30362_ACEOF
30363rm -f conftest$ac_exeext
30364if { (ac_try="$ac_link"
30365case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368esac
30369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30370$as_echo "$ac_try_echo") >&5
30371 (eval "$ac_link") 2>&5
30372 ac_status=$?
30373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30375 { (case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378esac
30379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30380$as_echo "$ac_try_echo") >&5
30381 (eval "$ac_try") 2>&5
30382 ac_status=$?
30383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 ac_cv_func_vfork_works=yes
30386else
30387 $as_echo "$as_me: program exited with status $ac_status" >&5
30388$as_echo "$as_me: failed program was:" >&5
30389sed 's/^/| /' conftest.$ac_ext >&5
30390
30391( exit $ac_status )
30392ac_cv_func_vfork_works=no
30393fi
30394rm -rf conftest.dSYM
30395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30396fi
30397
30398
30399fi
30400{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30401$as_echo "$ac_cv_func_vfork_works" >&6; }
30402
30403fi;
30404if test "x$ac_cv_func_fork_works" = xcross; then
30405 ac_cv_func_vfork_works=$ac_cv_func_vfork
30406 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30407$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30408fi
30409
30410if test "x$ac_cv_func_vfork_works" = xyes; then
30411
30412cat >>confdefs.h <<\_ACEOF
30413#define HAVE_WORKING_VFORK 1
30414_ACEOF
30415
30416else
30417
30418cat >>confdefs.h <<\_ACEOF
30419#define vfork fork
30420_ACEOF
30421
30422fi
30423if test "x$ac_cv_func_fork_works" = xyes; then
30424
30425cat >>confdefs.h <<\_ACEOF
30426#define HAVE_WORKING_FORK 1
30427_ACEOF
30428
30429fi
30430
30431{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
30432$as_echo_n "checking for working memcmp... " >&6; }
30433if test "${ac_cv_func_memcmp_working+set}" = set; then
30434 $as_echo_n "(cached) " >&6
30435else
30436 if test "$cross_compiling" = yes; then
30437 ac_cv_func_memcmp_working=no
30438else
30439 cat >conftest.$ac_ext <<_ACEOF
30440/* confdefs.h. */
30441_ACEOF
30442cat confdefs.h >>conftest.$ac_ext
30443cat >>conftest.$ac_ext <<_ACEOF
30444/* end confdefs.h. */
30445$ac_includes_default
30446int
30447main ()
30448{
30449
30450 /* Some versions of memcmp are not 8-bit clean. */
30451 char c0 = '\100', c1 = '\200', c2 = '\201';
30452 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
30453 return 1;
30454
30455 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
30456 or more and with at least one buffer not starting on a 4-byte boundary.
30457 William Lewis provided this test program. */
30458 {
30459 char foo[21];
30460 char bar[21];
30461 int i;
30462 for (i = 0; i < 4; i++)
30463 {
30464 char *a = foo + i;
30465 char *b = bar + i;
30466 strcpy (a, "--------01111111");
30467 strcpy (b, "--------10000000");
30468 if (memcmp (a, b, 16) >= 0)
30469 return 1;
30470 }
30471 return 0;
30472 }
30473
30474 ;
30475 return 0;
30476}
30477_ACEOF
30478rm -f conftest$ac_exeext
30479if { (ac_try="$ac_link"
30480case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30483esac
30484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30485$as_echo "$ac_try_echo") >&5
30486 (eval "$ac_link") 2>&5
30487 ac_status=$?
30488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30490 { (case "(($ac_try" in
30491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30492 *) ac_try_echo=$ac_try;;
30493esac
30494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30495$as_echo "$ac_try_echo") >&5
30496 (eval "$ac_try") 2>&5
30497 ac_status=$?
30498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 ac_cv_func_memcmp_working=yes
30501else
30502 $as_echo "$as_me: program exited with status $ac_status" >&5
30503$as_echo "$as_me: failed program was:" >&5
30504sed 's/^/| /' conftest.$ac_ext >&5
30505
30506( exit $ac_status )
30507ac_cv_func_memcmp_working=no
30508fi
30509rm -rf conftest.dSYM
30510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30511fi
30512
30513
30514fi
30515{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
30516$as_echo "$ac_cv_func_memcmp_working" >&6; }
30517test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
30518 *" memcmp.$ac_objext "* ) ;;
30519 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
30520 ;;
30521esac
30522
30523
30524
30525
30526for ac_header in sys/select.h sys/socket.h
30527do
30528as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30531$as_echo_n "checking for $ac_header... " >&6; }
30532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30533 $as_echo_n "(cached) " >&6
30534fi
30535ac_res=`eval 'as_val=${'$as_ac_Header'}
30536 $as_echo "$as_val"'`
30537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30538$as_echo "$ac_res" >&6; }
30539else
30540 # Is the header compilable?
30541{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30542$as_echo_n "checking $ac_header usability... " >&6; }
30543cat >conftest.$ac_ext <<_ACEOF
30544/* confdefs.h. */
30545_ACEOF
30546cat confdefs.h >>conftest.$ac_ext
30547cat >>conftest.$ac_ext <<_ACEOF
30548/* end confdefs.h. */
30549$ac_includes_default
30550#include <$ac_header>
30551_ACEOF
30552rm -f conftest.$ac_objext
30553if { (ac_try="$ac_compile"
30554case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30557esac
30558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30559$as_echo "$ac_try_echo") >&5
30560 (eval "$ac_compile") 2>conftest.er1
30561 ac_status=$?
30562 grep -v '^ *+' conftest.er1 >conftest.err
30563 rm -f conftest.er1
30564 cat conftest.err >&5
30565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); } && {
30567 test -z "$ac_c_werror_flag" ||
30568 test ! -s conftest.err
30569 } && test -s conftest.$ac_objext; then
30570 ac_header_compiler=yes
30571else
30572 $as_echo "$as_me: failed program was:" >&5
30573sed 's/^/| /' conftest.$ac_ext >&5
30574
30575 ac_header_compiler=no
30576fi
30577
30578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30579{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30580$as_echo "$ac_header_compiler" >&6; }
30581
30582# Is the header present?
30583{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30584$as_echo_n "checking $ac_header presence... " >&6; }
30585cat >conftest.$ac_ext <<_ACEOF
30586/* confdefs.h. */
30587_ACEOF
30588cat confdefs.h >>conftest.$ac_ext
30589cat >>conftest.$ac_ext <<_ACEOF
30590/* end confdefs.h. */
30591#include <$ac_header>
30592_ACEOF
30593if { (ac_try="$ac_cpp conftest.$ac_ext"
30594case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30597esac
30598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30599$as_echo "$ac_try_echo") >&5
30600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30601 ac_status=$?
30602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
30605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } >/dev/null && {
30607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30608 test ! -s conftest.err
30609 }; then
30610 ac_header_preproc=yes
30611else
30612 $as_echo "$as_me: failed program was:" >&5
30613sed 's/^/| /' conftest.$ac_ext >&5
30614
30615 ac_header_preproc=no
30616fi
30617
30618rm -f conftest.err conftest.$ac_ext
30619{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30620$as_echo "$ac_header_preproc" >&6; }
30621
30622# So? What about this header?
30623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30624 yes:no: )
30625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30626$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30628$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30629 ac_header_preproc=yes
30630 ;;
30631 no:yes:* )
30632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30633$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30635$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30637$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30639$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30641$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30643$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30644 ( cat <<\_ASBOX
30645## ----------------------------------------- ##
30646## Report this to http://www.imagemagick.org ##
30647## ----------------------------------------- ##
30648_ASBOX
30649 ) | sed "s/^/$as_me: WARNING: /" >&2
30650 ;;
30651esac
30652{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30653$as_echo_n "checking for $ac_header... " >&6; }
30654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30655 $as_echo_n "(cached) " >&6
30656else
30657 eval "$as_ac_Header=\$ac_header_preproc"
30658fi
30659ac_res=`eval 'as_val=${'$as_ac_Header'}
30660 $as_echo "$as_val"'`
30661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30662$as_echo "$ac_res" >&6; }
30663
30664fi
30665as_val=`eval 'as_val=${'$as_ac_Header'}
30666 $as_echo "$as_val"'`
30667 if test "x$as_val" = x""yes; then
30668 cat >>confdefs.h <<_ACEOF
30669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30670_ACEOF
30671
30672fi
30673
30674done
30675
30676{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
30677$as_echo_n "checking types of arguments for select... " >&6; }
30678if test "${ac_cv_func_select_args+set}" = set; then
30679 $as_echo_n "(cached) " >&6
30680else
30681 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
30682 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
30683 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
30684 cat >conftest.$ac_ext <<_ACEOF
30685/* confdefs.h. */
30686_ACEOF
30687cat confdefs.h >>conftest.$ac_ext
30688cat >>conftest.$ac_ext <<_ACEOF
30689/* end confdefs.h. */
30690$ac_includes_default
30691#ifdef HAVE_SYS_SELECT_H
30692# include <sys/select.h>
30693#endif
30694#ifdef HAVE_SYS_SOCKET_H
30695# include <sys/socket.h>
30696#endif
30697
30698int
30699main ()
30700{
30701extern int select ($ac_arg1,
30702 $ac_arg234, $ac_arg234, $ac_arg234,
30703 $ac_arg5);
30704 ;
30705 return 0;
30706}
30707_ACEOF
30708rm -f conftest.$ac_objext
30709if { (ac_try="$ac_compile"
30710case "(($ac_try" in
30711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30712 *) ac_try_echo=$ac_try;;
30713esac
30714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30715$as_echo "$ac_try_echo") >&5
30716 (eval "$ac_compile") 2>conftest.er1
30717 ac_status=$?
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
30721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && {
30723 test -z "$ac_c_werror_flag" ||
30724 test ! -s conftest.err
30725 } && test -s conftest.$ac_objext; then
30726 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
30727else
30728 $as_echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
30731
30732fi
30733
30734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30735 done
30736 done
30737done
30738# Provide a safe default value.
30739: ${ac_cv_func_select_args='int,int *,struct timeval *'}
30740
30741fi
30742{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
30743$as_echo "$ac_cv_func_select_args" >&6; }
30744ac_save_IFS=$IFS; IFS=','
30745set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
30746IFS=$ac_save_IFS
30747shift
30748
30749cat >>confdefs.h <<_ACEOF
30750#define SELECT_TYPE_ARG1 $1
30751_ACEOF
30752
30753
30754cat >>confdefs.h <<_ACEOF
30755#define SELECT_TYPE_ARG234 ($2)
30756_ACEOF
30757
30758
30759cat >>confdefs.h <<_ACEOF
30760#define SELECT_TYPE_ARG5 ($3)
30761_ACEOF
30762
30763rm -f conftest*
30764
30765if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30766 $as_echo_n "(cached) " >&6
30767else
30768 ac_cv_func_setvbuf_reversed=no
30769fi
30770
30771
30772{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30773$as_echo_n "checking return type of signal handlers... " >&6; }
30774if test "${ac_cv_type_signal+set}" = set; then
30775 $as_echo_n "(cached) " >&6
30776else
30777 cat >conftest.$ac_ext <<_ACEOF
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
30783#include <sys/types.h>
30784#include <signal.h>
30785
30786int
30787main ()
30788{
30789return *(signal (0, 0)) (0) == 1;
30790 ;
30791 return 0;
30792}
30793_ACEOF
30794rm -f conftest.$ac_objext
30795if { (ac_try="$ac_compile"
30796case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30799esac
30800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30801$as_echo "$ac_try_echo") >&5
30802 (eval "$ac_compile") 2>conftest.er1
30803 ac_status=$?
30804 grep -v '^ *+' conftest.er1 >conftest.err
30805 rm -f conftest.er1
30806 cat conftest.err >&5
30807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); } && {
30809 test -z "$ac_c_werror_flag" ||
30810 test ! -s conftest.err
30811 } && test -s conftest.$ac_objext; then
30812 ac_cv_type_signal=int
30813else
30814 $as_echo "$as_me: failed program was:" >&5
30815sed 's/^/| /' conftest.$ac_ext >&5
30816
30817 ac_cv_type_signal=void
30818fi
30819
30820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30821fi
30822{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30823$as_echo "$ac_cv_type_signal" >&6; }
30824
30825cat >>confdefs.h <<_ACEOF
30826#define RETSIGTYPE $ac_cv_type_signal
30827_ACEOF
30828
30829
30830{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30831$as_echo_n "checking for working strtod... " >&6; }
30832if test "${ac_cv_func_strtod+set}" = set; then
30833 $as_echo_n "(cached) " >&6
30834else
30835 if test "$cross_compiling" = yes; then
30836 ac_cv_func_strtod=no
30837else
30838 cat >conftest.$ac_ext <<_ACEOF
30839/* confdefs.h. */
30840_ACEOF
30841cat confdefs.h >>conftest.$ac_ext
30842cat >>conftest.$ac_ext <<_ACEOF
30843/* end confdefs.h. */
30844
30845$ac_includes_default
30846#ifndef strtod
30847double strtod ();
30848#endif
30849int
30850main()
30851{
30852 {
30853 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30854 char *string = " +69";
30855 char *term;
30856 double value;
30857 value = strtod (string, &term);
30858 if (value != 69 || term != (string + 4))
30859 return 1;
30860 }
30861
30862 {
30863 /* Under Solaris 2.4, strtod returns the wrong value for the
30864 terminating character under some conditions. */
30865 char *string = "NaN";
30866 char *term;
30867 strtod (string, &term);
30868 if (term != string && *(term - 1) == 0)
30869 return 1;
30870 }
30871 return 0;
30872}
30873
30874_ACEOF
30875rm -f conftest$ac_exeext
30876if { (ac_try="$ac_link"
30877case "(($ac_try" in
30878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30879 *) ac_try_echo=$ac_try;;
30880esac
30881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30882$as_echo "$ac_try_echo") >&5
30883 (eval "$ac_link") 2>&5
30884 ac_status=$?
30885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30890esac
30891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30892$as_echo "$ac_try_echo") >&5
30893 (eval "$ac_try") 2>&5
30894 ac_status=$?
30895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; }; then
30897 ac_cv_func_strtod=yes
30898else
30899 $as_echo "$as_me: program exited with status $ac_status" >&5
30900$as_echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
30903( exit $ac_status )
30904ac_cv_func_strtod=no
30905fi
30906rm -rf conftest.dSYM
30907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30908fi
30909
30910
30911fi
30912{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30913$as_echo "$ac_cv_func_strtod" >&6; }
30914if test $ac_cv_func_strtod = no; then
30915 case " $LIBOBJS " in
30916 *" strtod.$ac_objext "* ) ;;
30917 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30918 ;;
30919esac
30920
30921{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30922$as_echo_n "checking for pow... " >&6; }
30923if test "${ac_cv_func_pow+set}" = set; then
30924 $as_echo_n "(cached) " >&6
30925else
30926 cat >conftest.$ac_ext <<_ACEOF
30927/* confdefs.h. */
30928_ACEOF
30929cat confdefs.h >>conftest.$ac_ext
30930cat >>conftest.$ac_ext <<_ACEOF
30931/* end confdefs.h. */
30932/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30934#define pow innocuous_pow
30935
30936/* System header to define __stub macros and hopefully few prototypes,
30937 which can conflict with char pow (); below.
30938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30939 <limits.h> exists even on freestanding compilers. */
30940
30941#ifdef __STDC__
30942# include <limits.h>
30943#else
30944# include <assert.h>
30945#endif
30946
30947#undef pow
30948
30949/* Override any GCC internal prototype to avoid an error.
30950 Use char because int might match the return type of a GCC
30951 builtin and then its argument prototype would still apply. */
30952#ifdef __cplusplus
30953extern "C"
30954#endif
30955char pow ();
30956/* The GNU C library defines this for functions which it implements
30957 to always fail with ENOSYS. Some functions are actually named
30958 something starting with __ and the normal name is an alias. */
30959#if defined __stub_pow || defined __stub___pow
30960choke me
30961#endif
30962
30963int
30964main ()
30965{
30966return pow ();
30967 ;
30968 return 0;
30969}
30970_ACEOF
30971rm -f conftest.$ac_objext conftest$ac_exeext
30972if { (ac_try="$ac_link"
30973case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976esac
30977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30978$as_echo "$ac_try_echo") >&5
30979 (eval "$ac_link") 2>conftest.er1
30980 ac_status=$?
30981 grep -v '^ *+' conftest.er1 >conftest.err
30982 rm -f conftest.er1
30983 cat conftest.err >&5
30984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } && {
30986 test -z "$ac_c_werror_flag" ||
30987 test ! -s conftest.err
30988 } && test -s conftest$ac_exeext && {
30989 test "$cross_compiling" = yes ||
30990 $as_test_x conftest$ac_exeext
30991 }; then
30992 ac_cv_func_pow=yes
30993else
30994 $as_echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997 ac_cv_func_pow=no
30998fi
30999
31000rm -rf conftest.dSYM
31001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31002 conftest$ac_exeext conftest.$ac_ext
31003fi
31004{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
31005$as_echo "$ac_cv_func_pow" >&6; }
31006
31007if test $ac_cv_func_pow = no; then
31008 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
31009$as_echo_n "checking for pow in -lm... " >&6; }
31010if test "${ac_cv_lib_m_pow+set}" = set; then
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lm $LIBS"
31015cat >conftest.$ac_ext <<_ACEOF
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
31021
31022/* Override any GCC internal prototype to avoid an error.
31023 Use char because int might match the return type of a GCC
31024 builtin and then its argument prototype would still apply. */
31025#ifdef __cplusplus
31026extern "C"
31027#endif
31028char pow ();
31029int
31030main ()
31031{
31032return pow ();
31033 ;
31034 return 0;
31035}
31036_ACEOF
31037rm -f conftest.$ac_objext conftest$ac_exeext
31038if { (ac_try="$ac_link"
31039case "(($ac_try" in
31040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041 *) ac_try_echo=$ac_try;;
31042esac
31043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31044$as_echo "$ac_try_echo") >&5
31045 (eval "$ac_link") 2>conftest.er1
31046 ac_status=$?
31047 grep -v '^ *+' conftest.er1 >conftest.err
31048 rm -f conftest.er1
31049 cat conftest.err >&5
31050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); } && {
31052 test -z "$ac_c_werror_flag" ||
31053 test ! -s conftest.err
31054 } && test -s conftest$ac_exeext && {
31055 test "$cross_compiling" = yes ||
31056 $as_test_x conftest$ac_exeext
31057 }; then
31058 ac_cv_lib_m_pow=yes
31059else
31060 $as_echo "$as_me: failed program was:" >&5
31061sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 ac_cv_lib_m_pow=no
31064fi
31065
31066rm -rf conftest.dSYM
31067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31068 conftest$ac_exeext conftest.$ac_ext
31069LIBS=$ac_check_lib_save_LIBS
31070fi
31071{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
31072$as_echo "$ac_cv_lib_m_pow" >&6; }
31073if test "x$ac_cv_lib_m_pow" = x""yes; then
31074 POW_LIB=-lm
31075else
31076 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
31077$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
31078fi
31079
31080fi
31081
31082fi
31083
31084
31085for ac_func in vprintf
31086do
31087as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31088{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31089$as_echo_n "checking for $ac_func... " >&6; }
31090if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31091 $as_echo_n "(cached) " >&6
31092else
31093 cat >conftest.$ac_ext <<_ACEOF
31094/* confdefs.h. */
31095_ACEOF
31096cat confdefs.h >>conftest.$ac_ext
31097cat >>conftest.$ac_ext <<_ACEOF
31098/* end confdefs.h. */
31099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31101#define $ac_func innocuous_$ac_func
31102
31103/* System header to define __stub macros and hopefully few prototypes,
31104 which can conflict with char $ac_func (); below.
31105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31106 <limits.h> exists even on freestanding compilers. */
31107
31108#ifdef __STDC__
31109# include <limits.h>
31110#else
31111# include <assert.h>
31112#endif
31113
31114#undef $ac_func
31115
31116/* Override any GCC internal prototype to avoid an error.
31117 Use char because int might match the return type of a GCC
31118 builtin and then its argument prototype would still apply. */
31119#ifdef __cplusplus
31120extern "C"
31121#endif
31122char $ac_func ();
31123/* The GNU C library defines this for functions which it implements
31124 to always fail with ENOSYS. Some functions are actually named
31125 something starting with __ and the normal name is an alias. */
31126#if defined __stub_$ac_func || defined __stub___$ac_func
31127choke me
31128#endif
31129
31130int
31131main ()
31132{
31133return $ac_func ();
31134 ;
31135 return 0;
31136}
31137_ACEOF
31138rm -f conftest.$ac_objext conftest$ac_exeext
31139if { (ac_try="$ac_link"
31140case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31143esac
31144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31145$as_echo "$ac_try_echo") >&5
31146 (eval "$ac_link") 2>conftest.er1
31147 ac_status=$?
31148 grep -v '^ *+' conftest.er1 >conftest.err
31149 rm -f conftest.er1
31150 cat conftest.err >&5
31151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); } && {
31153 test -z "$ac_c_werror_flag" ||
31154 test ! -s conftest.err
31155 } && test -s conftest$ac_exeext && {
31156 test "$cross_compiling" = yes ||
31157 $as_test_x conftest$ac_exeext
31158 }; then
31159 eval "$as_ac_var=yes"
31160else
31161 $as_echo "$as_me: failed program was:" >&5
31162sed 's/^/| /' conftest.$ac_ext >&5
31163
31164 eval "$as_ac_var=no"
31165fi
31166
31167rm -rf conftest.dSYM
31168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31169 conftest$ac_exeext conftest.$ac_ext
31170fi
31171ac_res=`eval 'as_val=${'$as_ac_var'}
31172 $as_echo "$as_val"'`
31173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31174$as_echo "$ac_res" >&6; }
31175as_val=`eval 'as_val=${'$as_ac_var'}
31176 $as_echo "$as_val"'`
31177 if test "x$as_val" = x""yes; then
31178 cat >>confdefs.h <<_ACEOF
31179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31180_ACEOF
31181
31182{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
31183$as_echo_n "checking for _doprnt... " >&6; }
31184if test "${ac_cv_func__doprnt+set}" = set; then
31185 $as_echo_n "(cached) " >&6
31186else
31187 cat >conftest.$ac_ext <<_ACEOF
31188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
31193/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31195#define _doprnt innocuous__doprnt
31196
31197/* System header to define __stub macros and hopefully few prototypes,
31198 which can conflict with char _doprnt (); below.
31199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31200 <limits.h> exists even on freestanding compilers. */
31201
31202#ifdef __STDC__
31203# include <limits.h>
31204#else
31205# include <assert.h>
31206#endif
31207
31208#undef _doprnt
31209
31210/* Override any GCC internal prototype to avoid an error.
31211 Use char because int might match the return type of a GCC
31212 builtin and then its argument prototype would still apply. */
31213#ifdef __cplusplus
31214extern "C"
31215#endif
31216char _doprnt ();
31217/* The GNU C library defines this for functions which it implements
31218 to always fail with ENOSYS. Some functions are actually named
31219 something starting with __ and the normal name is an alias. */
31220#if defined __stub__doprnt || defined __stub____doprnt
31221choke me
31222#endif
31223
31224int
31225main ()
31226{
31227return _doprnt ();
31228 ;
31229 return 0;
31230}
31231_ACEOF
31232rm -f conftest.$ac_objext conftest$ac_exeext
31233if { (ac_try="$ac_link"
31234case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237esac
31238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31239$as_echo "$ac_try_echo") >&5
31240 (eval "$ac_link") 2>conftest.er1
31241 ac_status=$?
31242 grep -v '^ *+' conftest.er1 >conftest.err
31243 rm -f conftest.er1
31244 cat conftest.err >&5
31245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } && {
31247 test -z "$ac_c_werror_flag" ||
31248 test ! -s conftest.err
31249 } && test -s conftest$ac_exeext && {
31250 test "$cross_compiling" = yes ||
31251 $as_test_x conftest$ac_exeext
31252 }; then
31253 ac_cv_func__doprnt=yes
31254else
31255 $as_echo "$as_me: failed program was:" >&5
31256sed 's/^/| /' conftest.$ac_ext >&5
31257
31258 ac_cv_func__doprnt=no
31259fi
31260
31261rm -rf conftest.dSYM
31262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31263 conftest$ac_exeext conftest.$ac_ext
31264fi
31265{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31266$as_echo "$ac_cv_func__doprnt" >&6; }
31267if test "x$ac_cv_func__doprnt" = x""yes; then
31268
31269cat >>confdefs.h <<\_ACEOF
31270#define HAVE_DOPRNT 1
31271_ACEOF
31272
31273fi
31274
31275fi
31276done
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
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
31549 { $as_echo "$as_me:$LINENO: checking whether clock_gettime supports CLOCK_REALTIME" >&5
31550$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
31551 cat >conftest.$ac_ext <<_ACEOF
31552/* 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;
31562
31563 ;
31564 return 0;
31565}
31566_ACEOF
31567rm -f conftest.$ac_objext
31568if { (ac_try="$ac_compile"
31569case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31572esac
31573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31574$as_echo "$ac_try_echo") >&5
31575 (eval "$ac_compile") 2>conftest.er1
31576 ac_status=$?
31577 grep -v '^ *+' conftest.er1 >conftest.err
31578 rm -f conftest.er1
31579 cat conftest.err >&5
31580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } && {
31582 test -z "$ac_c_werror_flag" ||
31583 test ! -s conftest.err
31584 } && test -s conftest.$ac_objext; then
31585
31586 { $as_echo "$as_me:$LINENO: result: yes" >&5
31587$as_echo "yes" >&6; }
31588
31589cat >>confdefs.h <<\_ACEOF
31590#define HAVE_CLOCK_REALTIME 1
31591_ACEOF
31592
31593
31594else
31595 $as_echo "$as_me: failed program was:" >&5
31596sed 's/^/| /' conftest.$ac_ext >&5
31597
31598 { $as_echo "$as_me:$LINENO: result: no" >&5
31599$as_echo "no" >&6; }
31600
31601fi
31602
31603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31604
31605else
31606
31607
31608
31609for ac_func in gettimeofday ftime
31610do
31611as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31612{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31613$as_echo_n "checking for $ac_func... " >&6; }
31614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31615 $as_echo_n "(cached) " >&6
31616else
31617 cat >conftest.$ac_ext <<_ACEOF
31618/* confdefs.h. */
31619_ACEOF
31620cat confdefs.h >>conftest.$ac_ext
31621cat >>conftest.$ac_ext <<_ACEOF
31622/* end confdefs.h. */
31623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31625#define $ac_func innocuous_$ac_func
31626
31627/* System header to define __stub macros and hopefully few prototypes,
31628 which can conflict with char $ac_func (); below.
31629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31630 <limits.h> exists even on freestanding compilers. */
31631
31632#ifdef __STDC__
31633# include <limits.h>
31634#else
31635# include <assert.h>
31636#endif
31637
31638#undef $ac_func
31639
31640/* Override any GCC internal prototype to avoid an error.
31641 Use char because int might match the return type of a GCC
31642 builtin and then its argument prototype would still apply. */
31643#ifdef __cplusplus
31644extern "C"
31645#endif
31646char $ac_func ();
31647/* The GNU C library defines this for functions which it implements
31648 to always fail with ENOSYS. Some functions are actually named
31649 something starting with __ and the normal name is an alias. */
31650#if defined __stub_$ac_func || defined __stub___$ac_func
31651choke me
31652#endif
31653
31654int
31655main ()
31656{
31657return $ac_func ();
31658 ;
31659 return 0;
31660}
31661_ACEOF
31662rm -f conftest.$ac_objext conftest$ac_exeext
31663if { (ac_try="$ac_link"
31664case "(($ac_try" in
31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666 *) ac_try_echo=$ac_try;;
31667esac
31668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31669$as_echo "$ac_try_echo") >&5
31670 (eval "$ac_link") 2>conftest.er1
31671 ac_status=$?
31672 grep -v '^ *+' conftest.er1 >conftest.err
31673 rm -f conftest.er1
31674 cat conftest.err >&5
31675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); } && {
31677 test -z "$ac_c_werror_flag" ||
31678 test ! -s conftest.err
31679 } && test -s conftest$ac_exeext && {
31680 test "$cross_compiling" = yes ||
31681 $as_test_x conftest$ac_exeext
31682 }; then
31683 eval "$as_ac_var=yes"
31684else
31685 $as_echo "$as_me: failed program was:" >&5
31686sed 's/^/| /' conftest.$ac_ext >&5
31687
31688 eval "$as_ac_var=no"
31689fi
31690
31691rm -rf conftest.dSYM
31692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31693 conftest$ac_exeext conftest.$ac_ext
31694fi
31695ac_res=`eval 'as_val=${'$as_ac_var'}
31696 $as_echo "$as_val"'`
31697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31698$as_echo "$ac_res" >&6; }
31699as_val=`eval 'as_val=${'$as_ac_var'}
31700 $as_echo "$as_val"'`
31701 if test "x$as_val" = x""yes; then
31702 cat >>confdefs.h <<_ACEOF
31703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31704_ACEOF
31705 break
31706fi
31707done
31708
31709
31710
31711fi
31712
31713
31714
cristy3ed852e2009-09-05 21:47:34 +000031715########
31716#
31717# Check for function prototypes
31718#
31719########
31720
31721{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
31722$as_echo_n "checking whether pread is declared... " >&6; }
31723if test "${ac_cv_have_decl_pread+set}" = set; then
31724 $as_echo_n "(cached) " >&6
31725else
31726 cat >conftest.$ac_ext <<_ACEOF
31727/* confdefs.h. */
31728_ACEOF
31729cat confdefs.h >>conftest.$ac_ext
31730cat >>conftest.$ac_ext <<_ACEOF
31731/* end confdefs.h. */
31732
31733#include <unistd.h>
31734
31735int
31736main ()
31737{
31738#ifndef pread
31739 (void) pread;
31740#endif
31741
31742 ;
31743 return 0;
31744}
31745_ACEOF
31746rm -f conftest.$ac_objext
31747if { (ac_try="$ac_compile"
31748case "(($ac_try" in
31749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31750 *) ac_try_echo=$ac_try;;
31751esac
31752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31753$as_echo "$ac_try_echo") >&5
31754 (eval "$ac_compile") 2>conftest.er1
31755 ac_status=$?
31756 grep -v '^ *+' conftest.er1 >conftest.err
31757 rm -f conftest.er1
31758 cat conftest.err >&5
31759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); } && {
31761 test -z "$ac_c_werror_flag" ||
31762 test ! -s conftest.err
31763 } && test -s conftest.$ac_objext; then
31764 ac_cv_have_decl_pread=yes
31765else
31766 $as_echo "$as_me: failed program was:" >&5
31767sed 's/^/| /' conftest.$ac_ext >&5
31768
31769 ac_cv_have_decl_pread=no
31770fi
31771
31772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31773fi
31774{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
31775$as_echo "$ac_cv_have_decl_pread" >&6; }
31776if test "x$ac_cv_have_decl_pread" = x""yes; then
31777
31778cat >>confdefs.h <<_ACEOF
31779#define HAVE_DECL_PREAD 1
31780_ACEOF
31781
31782
31783else
31784 cat >>confdefs.h <<_ACEOF
31785#define HAVE_DECL_PREAD 0
31786_ACEOF
31787
31788
31789fi
31790{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
31791$as_echo_n "checking whether pwrite is declared... " >&6; }
31792if test "${ac_cv_have_decl_pwrite+set}" = set; then
31793 $as_echo_n "(cached) " >&6
31794else
31795 cat >conftest.$ac_ext <<_ACEOF
31796/* confdefs.h. */
31797_ACEOF
31798cat confdefs.h >>conftest.$ac_ext
31799cat >>conftest.$ac_ext <<_ACEOF
31800/* end confdefs.h. */
31801
31802#include <unistd.h>
31803
31804int
31805main ()
31806{
31807#ifndef pwrite
31808 (void) pwrite;
31809#endif
31810
31811 ;
31812 return 0;
31813}
31814_ACEOF
31815rm -f conftest.$ac_objext
31816if { (ac_try="$ac_compile"
31817case "(($ac_try" in
31818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819 *) ac_try_echo=$ac_try;;
31820esac
31821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31822$as_echo "$ac_try_echo") >&5
31823 (eval "$ac_compile") 2>conftest.er1
31824 ac_status=$?
31825 grep -v '^ *+' conftest.er1 >conftest.err
31826 rm -f conftest.er1
31827 cat conftest.err >&5
31828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); } && {
31830 test -z "$ac_c_werror_flag" ||
31831 test ! -s conftest.err
31832 } && test -s conftest.$ac_objext; then
31833 ac_cv_have_decl_pwrite=yes
31834else
31835 $as_echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
31838 ac_cv_have_decl_pwrite=no
31839fi
31840
31841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31842fi
31843{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
31844$as_echo "$ac_cv_have_decl_pwrite" >&6; }
31845if test "x$ac_cv_have_decl_pwrite" = x""yes; then
31846
31847cat >>confdefs.h <<_ACEOF
31848#define HAVE_DECL_PWRITE 1
31849_ACEOF
31850
31851
31852else
31853 cat >>confdefs.h <<_ACEOF
31854#define HAVE_DECL_PWRITE 0
31855_ACEOF
31856
31857
31858fi
31859
31860
31861
31862{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
31863$as_echo_n "checking whether strlcpy is declared... " >&6; }
31864if test "${ac_cv_have_decl_strlcpy+set}" = set; then
31865 $as_echo_n "(cached) " >&6
31866else
31867 cat >conftest.$ac_ext <<_ACEOF
31868/* confdefs.h. */
31869_ACEOF
31870cat confdefs.h >>conftest.$ac_ext
31871cat >>conftest.$ac_ext <<_ACEOF
31872/* end confdefs.h. */
31873
31874#include <strings.h>
31875
31876int
31877main ()
31878{
31879#ifndef strlcpy
31880 (void) strlcpy;
31881#endif
31882
31883 ;
31884 return 0;
31885}
31886_ACEOF
31887rm -f conftest.$ac_objext
31888if { (ac_try="$ac_compile"
31889case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31892esac
31893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31894$as_echo "$ac_try_echo") >&5
31895 (eval "$ac_compile") 2>conftest.er1
31896 ac_status=$?
31897 grep -v '^ *+' conftest.er1 >conftest.err
31898 rm -f conftest.er1
31899 cat conftest.err >&5
31900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } && {
31902 test -z "$ac_c_werror_flag" ||
31903 test ! -s conftest.err
31904 } && test -s conftest.$ac_objext; then
31905 ac_cv_have_decl_strlcpy=yes
31906else
31907 $as_echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
31910 ac_cv_have_decl_strlcpy=no
31911fi
31912
31913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31914fi
31915{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
31916$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
31917if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
31918
31919cat >>confdefs.h <<_ACEOF
31920#define HAVE_DECL_STRLCPY 1
31921_ACEOF
31922
31923
31924else
31925 cat >>confdefs.h <<_ACEOF
31926#define HAVE_DECL_STRLCPY 0
31927_ACEOF
31928
31929
31930fi
31931
31932
31933
31934{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
31935$as_echo_n "checking whether vsnprintf is declared... " >&6; }
31936if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
31937 $as_echo_n "(cached) " >&6
31938else
31939 cat >conftest.$ac_ext <<_ACEOF
31940/* confdefs.h. */
31941_ACEOF
31942cat confdefs.h >>conftest.$ac_ext
31943cat >>conftest.$ac_ext <<_ACEOF
31944/* end confdefs.h. */
31945
31946#include <stdio.h>
31947#include <stdarg.h>
31948
31949int
31950main ()
31951{
31952#ifndef vsnprintf
31953 (void) vsnprintf;
31954#endif
31955
31956 ;
31957 return 0;
31958}
31959_ACEOF
31960rm -f conftest.$ac_objext
31961if { (ac_try="$ac_compile"
31962case "(($ac_try" in
31963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964 *) ac_try_echo=$ac_try;;
31965esac
31966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31967$as_echo "$ac_try_echo") >&5
31968 (eval "$ac_compile") 2>conftest.er1
31969 ac_status=$?
31970 grep -v '^ *+' conftest.er1 >conftest.err
31971 rm -f conftest.er1
31972 cat conftest.err >&5
31973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); } && {
31975 test -z "$ac_c_werror_flag" ||
31976 test ! -s conftest.err
31977 } && test -s conftest.$ac_objext; then
31978 ac_cv_have_decl_vsnprintf=yes
31979else
31980 $as_echo "$as_me: failed program was:" >&5
31981sed 's/^/| /' conftest.$ac_ext >&5
31982
31983 ac_cv_have_decl_vsnprintf=no
31984fi
31985
31986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31987fi
31988{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
31989$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
31990if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
31991
31992cat >>confdefs.h <<_ACEOF
31993#define HAVE_DECL_VSNPRINTF 1
31994_ACEOF
31995
31996
31997else
31998 cat >>confdefs.h <<_ACEOF
31999#define HAVE_DECL_VSNPRINTF 0
32000_ACEOF
32001
32002
32003fi
32004
32005
32006
32007########
32008#
32009# C++ Support Tests (For Magick++)
32010#
32011########
32012have_magick_plus_plus='no'
32013if test "$with_magick_plus_plus" = 'yes'; then
32014 OLIBS="$LIBS"
32015 LIBS=''
32016 ac_ext=cpp
32017ac_cpp='$CXXCPP $CPPFLAGS'
32018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32021
32022
32023 # Full set of headers used...
32024 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
32025 # functional iomanip iosfwd iostream iterator list string strstream utility
32026 ac_ext=cpp
32027ac_cpp='$CXXCPP $CPPFLAGS'
32028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32031
32032 ac_ext=cpp
32033ac_cpp='$CXXCPP $CPPFLAGS'
32034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32037if test -z "$CXX"; then
32038 if test -n "$CCC"; then
32039 CXX=$CCC
32040 else
32041 if test -n "$ac_tool_prefix"; then
32042 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
32043 do
32044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32046{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32047$as_echo_n "checking for $ac_word... " >&6; }
32048if test "${ac_cv_prog_CXX+set}" = set; then
32049 $as_echo_n "(cached) " >&6
32050else
32051 if test -n "$CXX"; then
32052 ac_cv_prog_CXX="$CXX" # Let the user override the test.
32053else
32054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32055for as_dir in $PATH
32056do
32057 IFS=$as_save_IFS
32058 test -z "$as_dir" && as_dir=.
32059 for ac_exec_ext in '' $ac_executable_extensions; do
32060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32061 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
32062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32063 break 2
32064 fi
32065done
32066done
32067IFS=$as_save_IFS
32068
32069fi
32070fi
32071CXX=$ac_cv_prog_CXX
32072if test -n "$CXX"; then
32073 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
32074$as_echo "$CXX" >&6; }
32075else
32076 { $as_echo "$as_me:$LINENO: result: no" >&5
32077$as_echo "no" >&6; }
32078fi
32079
32080
32081 test -n "$CXX" && break
32082 done
32083fi
32084if test -z "$CXX"; then
32085 ac_ct_CXX=$CXX
32086 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
32087do
32088 # Extract the first word of "$ac_prog", so it can be a program name with args.
32089set dummy $ac_prog; ac_word=$2
32090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32091$as_echo_n "checking for $ac_word... " >&6; }
32092if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
32093 $as_echo_n "(cached) " >&6
32094else
32095 if test -n "$ac_ct_CXX"; then
32096 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32097else
32098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32099for as_dir in $PATH
32100do
32101 IFS=$as_save_IFS
32102 test -z "$as_dir" && as_dir=.
32103 for ac_exec_ext in '' $ac_executable_extensions; do
32104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32105 ac_cv_prog_ac_ct_CXX="$ac_prog"
32106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32107 break 2
32108 fi
32109done
32110done
32111IFS=$as_save_IFS
32112
32113fi
32114fi
32115ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32116if test -n "$ac_ct_CXX"; then
32117 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
32118$as_echo "$ac_ct_CXX" >&6; }
32119else
32120 { $as_echo "$as_me:$LINENO: result: no" >&5
32121$as_echo "no" >&6; }
32122fi
32123
32124
32125 test -n "$ac_ct_CXX" && break
32126done
32127
32128 if test "x$ac_ct_CXX" = x; then
32129 CXX="g++"
32130 else
32131 case $cross_compiling:$ac_tool_warned in
32132yes:)
32133{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
32134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32135ac_tool_warned=yes ;;
32136esac
32137 CXX=$ac_ct_CXX
32138 fi
32139fi
32140
32141 fi
32142fi
32143# Provide some information about the compiler.
32144$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
32145set X $ac_compile
32146ac_compiler=$2
32147{ (ac_try="$ac_compiler --version >&5"
32148case "(($ac_try" in
32149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32151esac
32152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32153$as_echo "$ac_try_echo") >&5
32154 (eval "$ac_compiler --version >&5") 2>&5
32155 ac_status=$?
32156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }
32158{ (ac_try="$ac_compiler -v >&5"
32159case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32162esac
32163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32164$as_echo "$ac_try_echo") >&5
32165 (eval "$ac_compiler -v >&5") 2>&5
32166 ac_status=$?
32167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); }
32169{ (ac_try="$ac_compiler -V >&5"
32170case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173esac
32174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32175$as_echo "$ac_try_echo") >&5
32176 (eval "$ac_compiler -V >&5") 2>&5
32177 ac_status=$?
32178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); }
32180
32181{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
32182$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
32183if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
32184 $as_echo_n "(cached) " >&6
32185else
32186 cat >conftest.$ac_ext <<_ACEOF
32187/* confdefs.h. */
32188_ACEOF
32189cat confdefs.h >>conftest.$ac_ext
32190cat >>conftest.$ac_ext <<_ACEOF
32191/* end confdefs.h. */
32192
32193int
32194main ()
32195{
32196#ifndef __GNUC__
32197 choke me
32198#endif
32199
32200 ;
32201 return 0;
32202}
32203_ACEOF
32204rm -f conftest.$ac_objext
32205if { (ac_try="$ac_compile"
32206case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32209esac
32210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32211$as_echo "$ac_try_echo") >&5
32212 (eval "$ac_compile") 2>conftest.er1
32213 ac_status=$?
32214 grep -v '^ *+' conftest.er1 >conftest.err
32215 rm -f conftest.er1
32216 cat conftest.err >&5
32217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); } && {
32219 test -z "$ac_cxx_werror_flag" ||
32220 test ! -s conftest.err
32221 } && test -s conftest.$ac_objext; then
32222 ac_compiler_gnu=yes
32223else
32224 $as_echo "$as_me: failed program was:" >&5
32225sed 's/^/| /' conftest.$ac_ext >&5
32226
32227 ac_compiler_gnu=no
32228fi
32229
32230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
32232
32233fi
32234{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
32235$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
32236if test $ac_compiler_gnu = yes; then
32237 GXX=yes
32238else
32239 GXX=
32240fi
32241ac_test_CXXFLAGS=${CXXFLAGS+set}
32242ac_save_CXXFLAGS=$CXXFLAGS
32243{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
32244$as_echo_n "checking whether $CXX accepts -g... " >&6; }
32245if test "${ac_cv_prog_cxx_g+set}" = set; then
32246 $as_echo_n "(cached) " >&6
32247else
32248 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
32249 ac_cxx_werror_flag=yes
32250 ac_cv_prog_cxx_g=no
32251 CXXFLAGS="-g"
32252 cat >conftest.$ac_ext <<_ACEOF
32253/* confdefs.h. */
32254_ACEOF
32255cat confdefs.h >>conftest.$ac_ext
32256cat >>conftest.$ac_ext <<_ACEOF
32257/* end confdefs.h. */
32258
32259int
32260main ()
32261{
32262
32263 ;
32264 return 0;
32265}
32266_ACEOF
32267rm -f conftest.$ac_objext
32268if { (ac_try="$ac_compile"
32269case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32272esac
32273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32274$as_echo "$ac_try_echo") >&5
32275 (eval "$ac_compile") 2>conftest.er1
32276 ac_status=$?
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
32280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } && {
32282 test -z "$ac_cxx_werror_flag" ||
32283 test ! -s conftest.err
32284 } && test -s conftest.$ac_objext; then
32285 ac_cv_prog_cxx_g=yes
32286else
32287 $as_echo "$as_me: failed program was:" >&5
32288sed 's/^/| /' conftest.$ac_ext >&5
32289
32290 CXXFLAGS=""
32291 cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h. */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h. */
32297
32298int
32299main ()
32300{
32301
32302 ;
32303 return 0;
32304}
32305_ACEOF
32306rm -f conftest.$ac_objext
32307if { (ac_try="$ac_compile"
32308case "(($ac_try" in
32309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32310 *) ac_try_echo=$ac_try;;
32311esac
32312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32313$as_echo "$ac_try_echo") >&5
32314 (eval "$ac_compile") 2>conftest.er1
32315 ac_status=$?
32316 grep -v '^ *+' conftest.er1 >conftest.err
32317 rm -f conftest.er1
32318 cat conftest.err >&5
32319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); } && {
32321 test -z "$ac_cxx_werror_flag" ||
32322 test ! -s conftest.err
32323 } && test -s conftest.$ac_objext; then
32324 :
32325else
32326 $as_echo "$as_me: failed program was:" >&5
32327sed 's/^/| /' conftest.$ac_ext >&5
32328
32329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32330 CXXFLAGS="-g"
32331 cat >conftest.$ac_ext <<_ACEOF
32332/* confdefs.h. */
32333_ACEOF
32334cat confdefs.h >>conftest.$ac_ext
32335cat >>conftest.$ac_ext <<_ACEOF
32336/* end confdefs.h. */
32337
32338int
32339main ()
32340{
32341
32342 ;
32343 return 0;
32344}
32345_ACEOF
32346rm -f conftest.$ac_objext
32347if { (ac_try="$ac_compile"
32348case "(($ac_try" in
32349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32350 *) ac_try_echo=$ac_try;;
32351esac
32352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32353$as_echo "$ac_try_echo") >&5
32354 (eval "$ac_compile") 2>conftest.er1
32355 ac_status=$?
32356 grep -v '^ *+' conftest.er1 >conftest.err
32357 rm -f conftest.er1
32358 cat conftest.err >&5
32359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } && {
32361 test -z "$ac_cxx_werror_flag" ||
32362 test ! -s conftest.err
32363 } && test -s conftest.$ac_objext; then
32364 ac_cv_prog_cxx_g=yes
32365else
32366 $as_echo "$as_me: failed program was:" >&5
32367sed 's/^/| /' conftest.$ac_ext >&5
32368
32369
32370fi
32371
32372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32373fi
32374
32375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32376fi
32377
32378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32380fi
32381{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
32382$as_echo "$ac_cv_prog_cxx_g" >&6; }
32383if test "$ac_test_CXXFLAGS" = set; then
32384 CXXFLAGS=$ac_save_CXXFLAGS
32385elif test $ac_cv_prog_cxx_g = yes; then
32386 if test "$GXX" = yes; then
32387 CXXFLAGS="-g -O2"
32388 else
32389 CXXFLAGS="-g"
32390 fi
32391else
32392 if test "$GXX" = yes; then
32393 CXXFLAGS="-O2"
32394 else
32395 CXXFLAGS=
32396 fi
32397fi
32398ac_ext=cpp
32399ac_cpp='$CXXCPP $CPPFLAGS'
32400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32403
32404depcc="$CXX" am_compiler_list=
32405
32406{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32407$as_echo_n "checking dependency style of $depcc... " >&6; }
32408if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
32409 $as_echo_n "(cached) " >&6
32410else
32411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32412 # We make a subdir and do the tests there. Otherwise we can end up
32413 # making bogus files that we don't know about and never remove. For
32414 # instance it was reported that on HP-UX the gcc test will end up
32415 # making a dummy file named `D' -- because `-MD' means `put the output
32416 # in D'.
32417 mkdir conftest.dir
32418 # Copy depcomp to subdir because otherwise we won't find it if we're
32419 # using a relative directory.
32420 cp "$am_depcomp" conftest.dir
32421 cd conftest.dir
32422 # We will build objects and dependencies in a subdirectory because
32423 # it helps to detect inapplicable dependency modes. For instance
32424 # both Tru64's cc and ICC support -MD to output dependencies as a
32425 # side effect of compilation, but ICC will put the dependencies in
32426 # the current directory while Tru64 will put them in the object
32427 # directory.
32428 mkdir sub
32429
32430 am_cv_CXX_dependencies_compiler_type=none
32431 if test "$am_compiler_list" = ""; then
32432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32433 fi
32434 am__universal=false
32435 case " $depcc " in #(
32436 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32437 esac
32438
32439 for depmode in $am_compiler_list; do
32440 # Setup a source with many dependencies, because some compilers
32441 # like to wrap large dependency lists on column 80 (with \), and
32442 # we should not choose a depcomp mode which is confused by this.
32443 #
32444 # We need to recreate these files for each test, as the compiler may
32445 # overwrite some of them when testing with obscure command lines.
32446 # This happens at least with the AIX C compiler.
32447 : > sub/conftest.c
32448 for i in 1 2 3 4 5 6; do
32449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32450 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
32451 # Solaris 8's {/usr,}/bin/sh.
32452 touch sub/conftst$i.h
32453 done
32454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32455
32456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
32457 # mode. It turns out that the SunPro C++ compiler does not properly
32458 # handle `-M -o', and we need to detect this. Also, some Intel
32459 # versions had trouble with output in subdirs
32460 am__obj=sub/conftest.${OBJEXT-o}
32461 am__minus_obj="-o $am__obj"
32462 case $depmode in
32463 gcc)
32464 # This depmode causes a compiler race in universal mode.
32465 test "$am__universal" = false || continue
32466 ;;
32467 nosideeffect)
32468 # after this tag, mechanisms are not by side-effect, so they'll
32469 # only be used when explicitly requested
32470 if test "x$enable_dependency_tracking" = xyes; then
32471 continue
32472 else
32473 break
32474 fi
32475 ;;
32476 msvisualcpp | msvcmsys)
32477 # This compiler won't grok `-c -o', but also, the minuso test has
32478 # not run yet. These depmodes are late enough in the game, and
32479 # so weak that their functioning should not be impacted.
32480 am__obj=conftest.${OBJEXT-o}
32481 am__minus_obj=
32482 ;;
32483 none) break ;;
32484 esac
32485 if depmode=$depmode \
32486 source=sub/conftest.c object=$am__obj \
32487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32489 >/dev/null 2>conftest.err &&
32490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32494 # icc doesn't choke on unknown options, it will just issue warnings
32495 # or remarks (even with -Werror). So we grep stderr for any message
32496 # that says an option was ignored or not supported.
32497 # When given -MP, icc 7.0 and 7.1 complain thusly:
32498 # icc: Command line warning: ignoring option '-M'; no argument required
32499 # The diagnosis changed in icc 8.0:
32500 # icc: Command line remark: option '-MP' not supported
32501 if (grep 'ignoring option' conftest.err ||
32502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32503 am_cv_CXX_dependencies_compiler_type=$depmode
32504 break
32505 fi
32506 fi
32507 done
32508
32509 cd ..
32510 rm -rf conftest.dir
32511else
32512 am_cv_CXX_dependencies_compiler_type=none
32513fi
32514
32515fi
32516{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
32517$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32518CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32519
32520 if
32521 test "x$enable_dependency_tracking" != xno \
32522 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32523 am__fastdepCXX_TRUE=
32524 am__fastdepCXX_FALSE='#'
32525else
32526 am__fastdepCXX_TRUE='#'
32527 am__fastdepCXX_FALSE=
32528fi
32529
32530
32531 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
32532$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
32533if test "${ac_cv_cxx_have_bool+set}" = set; then
32534 $as_echo_n "(cached) " >&6
32535else
32536
32537 ac_ext=cpp
32538ac_cpp='$CXXCPP $CPPFLAGS'
32539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32542
32543 cat >conftest.$ac_ext <<_ACEOF
32544/* confdefs.h. */
32545_ACEOF
32546cat confdefs.h >>conftest.$ac_ext
32547cat >>conftest.$ac_ext <<_ACEOF
32548/* end confdefs.h. */
32549
32550int f(int x){return 1;}
32551int f(char x){return 1;}
32552int f(bool x){return 1;}
32553
32554int
32555main ()
32556{
32557bool b = true; return f(b);
32558 ;
32559 return 0;
32560}
32561_ACEOF
32562rm -f conftest.$ac_objext
32563if { (ac_try="$ac_compile"
32564case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32567esac
32568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32569$as_echo "$ac_try_echo") >&5
32570 (eval "$ac_compile") 2>conftest.er1
32571 ac_status=$?
32572 grep -v '^ *+' conftest.er1 >conftest.err
32573 rm -f conftest.er1
32574 cat conftest.err >&5
32575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576 (exit $ac_status); } && {
32577 test -z "$ac_cxx_werror_flag" ||
32578 test ! -s conftest.err
32579 } && test -s conftest.$ac_objext; then
32580 ac_cv_cxx_have_bool=yes
32581else
32582 $as_echo "$as_me: failed program was:" >&5
32583sed 's/^/| /' conftest.$ac_ext >&5
32584
32585 ac_cv_cxx_have_bool=no
32586fi
32587
32588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32589 ac_ext=cpp
32590ac_cpp='$CXXCPP $CPPFLAGS'
32591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32594
32595
32596fi
32597{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
32598$as_echo "$ac_cv_cxx_have_bool" >&6; }
32599if test "$ac_cv_cxx_have_bool" = yes; then
32600
32601cat >>confdefs.h <<\_ACEOF
32602#define HAVE_BOOL /**/
32603_ACEOF
32604
32605fi
32606
32607 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32608$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
32609if test "${ac_cv_cxx_have_namespaces+set}" = set; then
32610 $as_echo_n "(cached) " >&6
32611else
32612
32613 ac_ext=cpp
32614ac_cpp='$CXXCPP $CPPFLAGS'
32615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32618
32619 cat >conftest.$ac_ext <<_ACEOF
32620/* confdefs.h. */
32621_ACEOF
32622cat confdefs.h >>conftest.$ac_ext
32623cat >>conftest.$ac_ext <<_ACEOF
32624/* end confdefs.h. */
32625namespace Outer { namespace Inner { int i = 0; }}
32626int
32627main ()
32628{
32629using namespace Outer::Inner; return i;
32630 ;
32631 return 0;
32632}
32633_ACEOF
32634rm -f conftest.$ac_objext
32635if { (ac_try="$ac_compile"
32636case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639esac
32640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32641$as_echo "$ac_try_echo") >&5
32642 (eval "$ac_compile") 2>conftest.er1
32643 ac_status=$?
32644 grep -v '^ *+' conftest.er1 >conftest.err
32645 rm -f conftest.er1
32646 cat conftest.err >&5
32647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } && {
32649 test -z "$ac_cxx_werror_flag" ||
32650 test ! -s conftest.err
32651 } && test -s conftest.$ac_objext; then
32652 ac_cv_cxx_have_namespaces=yes
32653else
32654 $as_echo "$as_me: failed program was:" >&5
32655sed 's/^/| /' conftest.$ac_ext >&5
32656
32657 ac_cv_cxx_have_namespaces=no
32658fi
32659
32660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32661 ac_ext=cpp
32662ac_cpp='$CXXCPP $CPPFLAGS'
32663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32666
32667
32668fi
32669{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
32670$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
32671if test "$ac_cv_cxx_have_namespaces" = yes; then
32672
32673cat >>confdefs.h <<\_ACEOF
32674#define HAVE_NAMESPACES /**/
32675_ACEOF
32676
32677fi
32678
32679 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
32680$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
32681if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
32682 $as_echo_n "(cached) " >&6
32683else
32684
32685 ac_ext=cpp
32686ac_cpp='$CXXCPP $CPPFLAGS'
32687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32690
32691 cat >conftest.$ac_ext <<_ACEOF
32692/* confdefs.h. */
32693_ACEOF
32694cat confdefs.h >>conftest.$ac_ext
32695cat >>conftest.$ac_ext <<_ACEOF
32696/* end confdefs.h. */
32697#include <iostream>
32698 std::istream& is = std::cin;
32699
32700int
32701main ()
32702{
32703return 0;
32704 ;
32705 return 0;
32706}
32707_ACEOF
32708rm -f conftest.$ac_objext
32709if { (ac_try="$ac_compile"
32710case "(($ac_try" in
32711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712 *) ac_try_echo=$ac_try;;
32713esac
32714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32715$as_echo "$ac_try_echo") >&5
32716 (eval "$ac_compile") 2>conftest.er1
32717 ac_status=$?
32718 grep -v '^ *+' conftest.er1 >conftest.err
32719 rm -f conftest.er1
32720 cat conftest.err >&5
32721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); } && {
32723 test -z "$ac_cxx_werror_flag" ||
32724 test ! -s conftest.err
32725 } && test -s conftest.$ac_objext; then
32726 ac_cv_cxx_have_std_namespace=yes
32727else
32728 $as_echo "$as_me: failed program was:" >&5
32729sed 's/^/| /' conftest.$ac_ext >&5
32730
32731 ac_cv_cxx_have_std_namespace=no
32732fi
32733
32734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735 ac_ext=cpp
32736ac_cpp='$CXXCPP $CPPFLAGS'
32737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32740
32741
32742fi
32743{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
32744$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
32745if test "$ac_cv_cxx_have_std_namespace" = yes; then
32746
32747cat >>confdefs.h <<\_ACEOF
32748#define HAVE_STD_NAMESPACE /**/
32749_ACEOF
32750
32751fi
32752
32753 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
32754$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
32755if test "${ac_cv_cxx_have_std_libs+set}" = set; then
32756 $as_echo_n "(cached) " >&6
32757else
32758
32759
32760 ac_ext=cpp
32761ac_cpp='$CXXCPP $CPPFLAGS'
32762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32765
32766 cat >conftest.$ac_ext <<_ACEOF
32767/* confdefs.h. */
32768_ACEOF
32769cat confdefs.h >>conftest.$ac_ext
32770cat >>conftest.$ac_ext <<_ACEOF
32771/* end confdefs.h. */
32772#include <iostream>
32773#include <map>
32774#include <iomanip>
32775#include <cmath>
32776#ifdef HAVE_NAMESPACES
32777using namespace std;
32778#endif
32779int
32780main ()
32781{
32782return 0;
32783 ;
32784 return 0;
32785}
32786_ACEOF
32787rm -f conftest.$ac_objext
32788if { (ac_try="$ac_compile"
32789case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32792esac
32793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32794$as_echo "$ac_try_echo") >&5
32795 (eval "$ac_compile") 2>conftest.er1
32796 ac_status=$?
32797 grep -v '^ *+' conftest.er1 >conftest.err
32798 rm -f conftest.er1
32799 cat conftest.err >&5
32800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); } && {
32802 test -z "$ac_cxx_werror_flag" ||
32803 test ! -s conftest.err
32804 } && test -s conftest.$ac_objext; then
32805 ac_cv_cxx_have_std_libs=yes
32806else
32807 $as_echo "$as_me: failed program was:" >&5
32808sed 's/^/| /' conftest.$ac_ext >&5
32809
32810 ac_cv_cxx_have_std_libs=no
32811fi
32812
32813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814 ac_ext=cpp
32815ac_cpp='$CXXCPP $CPPFLAGS'
32816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32819
32820
32821fi
32822{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
32823$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
32824if test "$ac_cv_cxx_have_std_libs" = yes; then
32825
32826cat >>confdefs.h <<\_ACEOF
32827#define HAVE_STD_LIBS /**/
32828_ACEOF
32829
32830fi
32831
32832 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
32833$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
32834if test "${ac_cv_cxx_have_lstring+set}" = set; then
32835 $as_echo_n "(cached) " >&6
32836else
32837
32838 ac_ext=cpp
32839ac_cpp='$CXXCPP $CPPFLAGS'
32840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32843
32844 cat >conftest.$ac_ext <<_ACEOF
32845/* confdefs.h. */
32846_ACEOF
32847cat confdefs.h >>conftest.$ac_ext
32848cat >>conftest.$ac_ext <<_ACEOF
32849/* end confdefs.h. */
32850const wchar_t* s=L"wide string";
32851_ACEOF
32852rm -f conftest.$ac_objext
32853if { (ac_try="$ac_compile"
32854case "(($ac_try" in
32855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32856 *) ac_try_echo=$ac_try;;
32857esac
32858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32859$as_echo "$ac_try_echo") >&5
32860 (eval "$ac_compile") 2>conftest.er1
32861 ac_status=$?
32862 grep -v '^ *+' conftest.er1 >conftest.err
32863 rm -f conftest.er1
32864 cat conftest.err >&5
32865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); } && {
32867 test -z "$ac_cxx_werror_flag" ||
32868 test ! -s conftest.err
32869 } && test -s conftest.$ac_objext; then
32870 ac_cv_cxx_have_lstring=yes
32871else
32872 $as_echo "$as_me: failed program was:" >&5
32873sed 's/^/| /' conftest.$ac_ext >&5
32874
32875 ac_cv_cxx_have_lstring=no
32876fi
32877
32878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32879 ac_ext=cpp
32880ac_cpp='$CXXCPP $CPPFLAGS'
32881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32884
32885
32886fi
32887{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
32888$as_echo "$ac_cv_cxx_have_lstring" >&6; }
32889if test "$ac_cv_cxx_have_lstring" = yes; then
32890
32891cat >>confdefs.h <<\_ACEOF
32892#define HAVE_LSTRING /**/
32893_ACEOF
32894
32895fi
32896
32897
32898 OPENMP_CXXFLAGS=
32899 # Check whether --enable-openmp was given.
32900if test "${enable_openmp+set}" = set; then
32901 enableval=$enable_openmp;
32902fi
32903
32904 if test "$enable_openmp" != no; then
32905 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
32906$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
32907if test "${ac_cv_prog_cxx_openmp+set}" = set; then
32908 $as_echo_n "(cached) " >&6
32909else
32910 cat >conftest.$ac_ext <<_ACEOF
32911
32912#ifndef _OPENMP
32913 choke me
32914#endif
32915#include <omp.h>
32916int main () { return omp_get_num_threads (); }
32917
32918_ACEOF
32919rm -f conftest.$ac_objext conftest$ac_exeext
32920if { (ac_try="$ac_link"
32921case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32924esac
32925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32926$as_echo "$ac_try_echo") >&5
32927 (eval "$ac_link") 2>conftest.er1
32928 ac_status=$?
32929 grep -v '^ *+' conftest.er1 >conftest.err
32930 rm -f conftest.er1
32931 cat conftest.err >&5
32932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } && {
32934 test -z "$ac_cxx_werror_flag" ||
32935 test ! -s conftest.err
32936 } && test -s conftest$ac_exeext && {
32937 test "$cross_compiling" = yes ||
32938 $as_test_x conftest$ac_exeext
32939 }; then
32940 ac_cv_prog_cxx_openmp='none needed'
32941else
32942 $as_echo "$as_me: failed program was:" >&5
32943sed 's/^/| /' conftest.$ac_ext >&5
32944
32945 ac_cv_prog_cxx_openmp='unsupported'
32946 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
32947 ac_save_CXXFLAGS=$CXXFLAGS
32948 CXXFLAGS="$CXXFLAGS $ac_option"
32949 cat >conftest.$ac_ext <<_ACEOF
32950
32951#ifndef _OPENMP
32952 choke me
32953#endif
32954#include <omp.h>
32955int main () { return omp_get_num_threads (); }
32956
32957_ACEOF
32958rm -f conftest.$ac_objext conftest$ac_exeext
32959if { (ac_try="$ac_link"
32960case "(($ac_try" in
32961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32962 *) ac_try_echo=$ac_try;;
32963esac
32964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32965$as_echo "$ac_try_echo") >&5
32966 (eval "$ac_link") 2>conftest.er1
32967 ac_status=$?
32968 grep -v '^ *+' conftest.er1 >conftest.err
32969 rm -f conftest.er1
32970 cat conftest.err >&5
32971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } && {
32973 test -z "$ac_cxx_werror_flag" ||
32974 test ! -s conftest.err
32975 } && test -s conftest$ac_exeext && {
32976 test "$cross_compiling" = yes ||
32977 $as_test_x conftest$ac_exeext
32978 }; then
32979 ac_cv_prog_cxx_openmp=$ac_option
32980else
32981 $as_echo "$as_me: failed program was:" >&5
32982sed 's/^/| /' conftest.$ac_ext >&5
32983
32984
32985fi
32986
32987rm -rf conftest.dSYM
32988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32989 conftest$ac_exeext conftest.$ac_ext
32990 CXXFLAGS=$ac_save_CXXFLAGS
32991 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
32992 break
32993 fi
32994 done
32995fi
32996
32997rm -rf conftest.dSYM
32998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32999 conftest$ac_exeext conftest.$ac_ext
33000fi
33001{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
33002$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
33003 case $ac_cv_prog_cxx_openmp in #(
33004 "none needed" | unsupported)
33005 ;; #(
33006 *)
33007 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
33008 esac
33009 fi
33010
33011
33012 ac_ext=c
33013ac_cpp='$CPP $CPPFLAGS'
33014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33016ac_compiler_gnu=$ac_cv_c_compiler_gnu
33017
33018
33019 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
33020$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
33021 if \
33022 test $ac_cv_cxx_have_bool = 'yes' && \
33023 test $ac_cv_cxx_have_lstring = 'yes' && \
33024 test $ac_cv_cxx_have_namespaces = 'yes' && \
33025 test $ac_cv_cxx_have_std_libs = 'yes' && \
33026 test $ac_cv_cxx_have_std_namespace = 'yes'; then
33027 have_magick_plus_plus='yes'
33028 else
33029 have_magick_plus_plus='no (failed tests)'
33030 fi
33031 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
33032$as_echo "$have_magick_plus_plus" >&6; }
33033 LIBS="$OLIBS"
33034fi
33035 if test "$have_magick_plus_plus" = 'yes'; then
33036 WITH_MAGICK_PLUS_PLUS_TRUE=
33037 WITH_MAGICK_PLUS_PLUS_FALSE='#'
33038else
33039 WITH_MAGICK_PLUS_PLUS_TRUE='#'
33040 WITH_MAGICK_PLUS_PLUS_FALSE=
33041fi
33042
33043
33044# Only check for delegate libraries in subdirectories if requested.
33045if test "$enable_delegate_build" != 'no'; then
33046 # Check for delegate sub-directories and add -I & -L options as required.
33047 # This presumes that delegates are installed as detailed in the ImageMagick
33048 # README. If delegates are installed in a standard location where the
33049 # compiler will automatically find them then these options should not be
33050 # required.
33051
33052 #
33053 # Most delegates have includes in the same directory as the library, but not all...
33054 #
33055 # Includes
33056 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
33057 if test -d "$builddir/$dir"; then
33058 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
33059 else
33060 if test -d "$srcdirfull/$dir"; then
33061 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
33062 fi
33063 fi
33064 done
33065
33066 # Libraries
33067 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
33068 if test -d "$builddir/$dir/.libs"; then
33069 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
33070 else
33071 if test -d "$srcdirfull/$dir/.libs"; then
33072 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
33073 fi
33074 fi
33075 if test -d "$builddir/$dir"; then
33076 LDFLAGS="$LDFLAGS -L$builddir/$dir"
33077 else
33078 if test -d "$srcdirfull/$dir"; then
33079 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
33080 fi
33081 fi
33082 done
33083fi
33084
33085# Assume that delegate headers reside under same directory as ImageMagick
33086# installation prefix.
33087MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
33088
33089#
33090# Find the X11 RGB database
33091#
33092{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
33093$as_echo_n "checking for X11 configure files... " >&6; }
33094if test "${im_cv_x_configure+set}" = set; then
33095 $as_echo_n "(cached) " >&6
33096else
33097 # Look for the header file in a standard set of common directories.
33098# Check X11 before X11Rn because it is often a symlink to the current release.
33099 for ac_dir in \
33100 /lib/usr/lib/X11 \
33101 /usr/X11/lib \
33102 /usr/X11R4/lib \
33103 /usr/X11R5/lib \
33104 /usr/X11R6/lib \
33105 /usr/X11R7/lib \
33106 /usr/X386/lib \
33107 /usr/XFree86/lib/X11 \
33108 /usr/athena/lib \
33109 /usr/lib \
33110 /usr/lib/X11 \
33111 /usr/lib/X11R4 \
33112 /usr/lib/X11R5 \
33113 /usr/lib/X11R6 \
33114 /usr/lib/X11R7 \
33115 /usr/local/X11/lib \
33116 /usr/local/X11R4/lib \
33117 /usr/local/X11R5/lib \
33118 /usr/local/X11R6/lib \
33119 /usr/local/lib \
33120 /usr/local/lib/X11 \
33121 /usr/local/lib/X11R4 \
33122 /usr/local/lib/X11R5 \
33123 /usr/local/lib/X11R6 \
33124 /usr/local/lib/X11R7 \
33125 /usr/local/x11r5/lib \
33126 /usr/lpp/Xamples/lib \
33127 /usr/openwin/lib \
33128 /usr/openwin/share/lib \
33129 /usr/unsupported/lib \
33130 /usr/x386/lib \
33131 ; do
33132 if test -f "$ac_dir/X11/rgb.txt"; then
33133 im_cv_x_configure="$ac_dir/X11/"
33134 break
33135 elif test -f "$ac_dir/rgb.txt"; then
33136 im_cv_x_configure="$ac_dir/"
33137 break
33138 fi
33139
33140 done
33141fi
33142{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
33143$as_echo "$im_cv_x_configure" >&6; }
33144X11_CONFIGURE_PATH="$im_cv_x_configure"
33145case "${build_os}" in
33146 mingw* )
33147 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
33148 ;;
33149esac
33150
33151cat >>confdefs.h <<_ACEOF
33152#define X11_CONFIGURE_PATH "$X11ConfigurePath"
33153_ACEOF
33154
33155
33156#
33157# Find OpenMP library
33158#
33159GOMP_LIBS=''
33160if test "$enable_openmp" != 'no'; then
33161 if test "${GCC}" = "yes"; then
33162 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
33163$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
33164if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
33165 $as_echo_n "(cached) " >&6
33166else
33167 ac_check_lib_save_LIBS=$LIBS
33168LIBS="-lgomp $LIBS"
33169cat >conftest.$ac_ext <<_ACEOF
33170/* confdefs.h. */
33171_ACEOF
33172cat confdefs.h >>conftest.$ac_ext
33173cat >>conftest.$ac_ext <<_ACEOF
33174/* end confdefs.h. */
33175
33176/* Override any GCC internal prototype to avoid an error.
33177 Use char because int might match the return type of a GCC
33178 builtin and then its argument prototype would still apply. */
33179#ifdef __cplusplus
33180extern "C"
33181#endif
33182char GOMP_parallel_start ();
33183int
33184main ()
33185{
33186return GOMP_parallel_start ();
33187 ;
33188 return 0;
33189}
33190_ACEOF
33191rm -f conftest.$ac_objext conftest$ac_exeext
33192if { (ac_try="$ac_link"
33193case "(($ac_try" in
33194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33195 *) ac_try_echo=$ac_try;;
33196esac
33197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33198$as_echo "$ac_try_echo") >&5
33199 (eval "$ac_link") 2>conftest.er1
33200 ac_status=$?
33201 grep -v '^ *+' conftest.er1 >conftest.err
33202 rm -f conftest.er1
33203 cat conftest.err >&5
33204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); } && {
33206 test -z "$ac_c_werror_flag" ||
33207 test ! -s conftest.err
33208 } && test -s conftest$ac_exeext && {
33209 test "$cross_compiling" = yes ||
33210 $as_test_x conftest$ac_exeext
33211 }; then
33212 ac_cv_lib_gomp_GOMP_parallel_start=yes
33213else
33214 $as_echo "$as_me: failed program was:" >&5
33215sed 's/^/| /' conftest.$ac_ext >&5
33216
33217 ac_cv_lib_gomp_GOMP_parallel_start=no
33218fi
33219
33220rm -rf conftest.dSYM
33221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33222 conftest$ac_exeext conftest.$ac_ext
33223LIBS=$ac_check_lib_save_LIBS
33224fi
33225{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
33226$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
33227if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
33228 GOMP_LIBS="-lgomp"
33229fi
33230 # gcc
33231 else
33232 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
33233$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
33234if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
33235 $as_echo_n "(cached) " >&6
33236else
33237 ac_check_lib_save_LIBS=$LIBS
33238LIBS="-lmtsk $LIBS"
33239cat >conftest.$ac_ext <<_ACEOF
33240/* confdefs.h. */
33241_ACEOF
33242cat confdefs.h >>conftest.$ac_ext
33243cat >>conftest.$ac_ext <<_ACEOF
33244/* end confdefs.h. */
33245
33246/* Override any GCC internal prototype to avoid an error.
33247 Use char because int might match the return type of a GCC
33248 builtin and then its argument prototype would still apply. */
33249#ifdef __cplusplus
33250extern "C"
33251#endif
33252char sunw_mp_register_warn ();
33253int
33254main ()
33255{
33256return sunw_mp_register_warn ();
33257 ;
33258 return 0;
33259}
33260_ACEOF
33261rm -f conftest.$ac_objext conftest$ac_exeext
33262if { (ac_try="$ac_link"
33263case "(($ac_try" in
33264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265 *) ac_try_echo=$ac_try;;
33266esac
33267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33268$as_echo "$ac_try_echo") >&5
33269 (eval "$ac_link") 2>conftest.er1
33270 ac_status=$?
33271 grep -v '^ *+' conftest.er1 >conftest.err
33272 rm -f conftest.er1
33273 cat conftest.err >&5
33274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); } && {
33276 test -z "$ac_c_werror_flag" ||
33277 test ! -s conftest.err
33278 } && test -s conftest$ac_exeext && {
33279 test "$cross_compiling" = yes ||
33280 $as_test_x conftest$ac_exeext
33281 }; then
33282 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
33283else
33284 $as_echo "$as_me: failed program was:" >&5
33285sed 's/^/| /' conftest.$ac_ext >&5
33286
33287 ac_cv_lib_mtsk_sunw_mp_register_warn=no
33288fi
33289
33290rm -rf conftest.dSYM
33291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33292 conftest$ac_exeext conftest.$ac_ext
33293LIBS=$ac_check_lib_save_LIBS
33294fi
33295{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
33296$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
33297if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
33298 GOMP_LIBS="-lmtsk"
33299fi
33300 # solaris cc
33301 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
33302$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
33303if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
33304 $as_echo_n "(cached) " >&6
33305else
33306 ac_check_lib_save_LIBS=$LIBS
33307LIBS="-lxlsmp $LIBS"
33308cat >conftest.$ac_ext <<_ACEOF
33309/* confdefs.h. */
33310_ACEOF
33311cat confdefs.h >>conftest.$ac_ext
33312cat >>conftest.$ac_ext <<_ACEOF
33313/* end confdefs.h. */
33314
33315/* Override any GCC internal prototype to avoid an error.
33316 Use char because int might match the return type of a GCC
33317 builtin and then its argument prototype would still apply. */
33318#ifdef __cplusplus
33319extern "C"
33320#endif
33321char _xlsmpFlush ();
33322int
33323main ()
33324{
33325return _xlsmpFlush ();
33326 ;
33327 return 0;
33328}
33329_ACEOF
33330rm -f conftest.$ac_objext conftest$ac_exeext
33331if { (ac_try="$ac_link"
33332case "(($ac_try" in
33333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334 *) ac_try_echo=$ac_try;;
33335esac
33336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33337$as_echo "$ac_try_echo") >&5
33338 (eval "$ac_link") 2>conftest.er1
33339 ac_status=$?
33340 grep -v '^ *+' conftest.er1 >conftest.err
33341 rm -f conftest.er1
33342 cat conftest.err >&5
33343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); } && {
33345 test -z "$ac_c_werror_flag" ||
33346 test ! -s conftest.err
33347 } && test -s conftest$ac_exeext && {
33348 test "$cross_compiling" = yes ||
33349 $as_test_x conftest$ac_exeext
33350 }; then
33351 ac_cv_lib_xlsmp__xlsmpFlush=yes
33352else
33353 $as_echo "$as_me: failed program was:" >&5
33354sed 's/^/| /' conftest.$ac_ext >&5
33355
33356 ac_cv_lib_xlsmp__xlsmpFlush=no
33357fi
33358
33359rm -rf conftest.dSYM
33360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33361 conftest$ac_exeext conftest.$ac_ext
33362LIBS=$ac_check_lib_save_LIBS
33363fi
33364{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
33365$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
33366if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
33367 GOMP_LIBS="-lxlsmp"
33368fi
33369 # AIX xlc
33370 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
33371$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
33372if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
33373 $as_echo_n "(cached) " >&6
33374else
33375 ac_check_lib_save_LIBS=$LIBS
33376LIBS="-lmp $LIBS"
33377cat >conftest.$ac_ext <<_ACEOF
33378/* confdefs.h. */
33379_ACEOF
33380cat confdefs.h >>conftest.$ac_ext
33381cat >>conftest.$ac_ext <<_ACEOF
33382/* end confdefs.h. */
33383
33384/* Override any GCC internal prototype to avoid an error.
33385 Use char because int might match the return type of a GCC
33386 builtin and then its argument prototype would still apply. */
33387#ifdef __cplusplus
33388extern "C"
33389#endif
33390char mp_destroy ();
33391int
33392main ()
33393{
33394return mp_destroy ();
33395 ;
33396 return 0;
33397}
33398_ACEOF
33399rm -f conftest.$ac_objext conftest$ac_exeext
33400if { (ac_try="$ac_link"
33401case "(($ac_try" in
33402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403 *) ac_try_echo=$ac_try;;
33404esac
33405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33406$as_echo "$ac_try_echo") >&5
33407 (eval "$ac_link") 2>conftest.er1
33408 ac_status=$?
33409 grep -v '^ *+' conftest.er1 >conftest.err
33410 rm -f conftest.er1
33411 cat conftest.err >&5
33412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); } && {
33414 test -z "$ac_c_werror_flag" ||
33415 test ! -s conftest.err
33416 } && test -s conftest$ac_exeext && {
33417 test "$cross_compiling" = yes ||
33418 $as_test_x conftest$ac_exeext
33419 }; then
33420 ac_cv_lib_mp_mp_destroy=yes
33421else
33422 $as_echo "$as_me: failed program was:" >&5
33423sed 's/^/| /' conftest.$ac_ext >&5
33424
33425 ac_cv_lib_mp_mp_destroy=no
33426fi
33427
33428rm -rf conftest.dSYM
33429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33430 conftest$ac_exeext conftest.$ac_ext
33431LIBS=$ac_check_lib_save_LIBS
33432fi
33433{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
33434$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
33435if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
33436 GOMP_LIBS="-lmp"
33437fi
33438 # SGI IRIX 6.5 MIPSpro C/C++
33439 fi
33440 LIBS="$GOMP_LIBS $LIBS"
33441fi
33442
33443
33444#
33445# Find Posix threads library
33446#
33447THREAD_LIBS=''
33448if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
33449
33450 if test "x$PTHREAD_LIBS" = "x"; then
33451 case "${host_cpu}-${host_os}" in
33452 *-freebsd*)
33453
33454
33455
33456ac_ext=c
33457ac_cpp='$CPP $CPPFLAGS'
33458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33460ac_compiler_gnu=$ac_cv_c_compiler_gnu
33461
33462magick_pthread_lib_ok=no
33463
33464LIB=-lc_r
33465save_LIBS="$LIBS"
33466LIBS="$LIBS $LIB"
33467
33468{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33469$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33470cat >conftest.$ac_ext <<_ACEOF
33471/* confdefs.h. */
33472_ACEOF
33473cat confdefs.h >>conftest.$ac_ext
33474cat >>conftest.$ac_ext <<_ACEOF
33475/* end confdefs.h. */
33476#include <pthread.h>
33477int
33478main ()
33479{
33480 pthread_t th;
33481 pthread_join(th, 0);
33482 pthread_attr_init(0);
33483 pthread_cleanup_push(0, 0);
33484 pthread_create(0,0,0,0);
33485 pthread_cleanup_pop(0);
33486 ;
33487 return 0;
33488}
33489_ACEOF
33490rm -f conftest.$ac_objext conftest$ac_exeext
33491if { (ac_try="$ac_link"
33492case "(($ac_try" in
33493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494 *) ac_try_echo=$ac_try;;
33495esac
33496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33497$as_echo "$ac_try_echo") >&5
33498 (eval "$ac_link") 2>conftest.er1
33499 ac_status=$?
33500 grep -v '^ *+' conftest.er1 >conftest.err
33501 rm -f conftest.er1
33502 cat conftest.err >&5
33503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); } && {
33505 test -z "$ac_c_werror_flag" ||
33506 test ! -s conftest.err
33507 } && test -s conftest$ac_exeext && {
33508 test "$cross_compiling" = yes ||
33509 $as_test_x conftest$ac_exeext
33510 }; then
33511 magick_pthread_lib_ok=yes
33512else
33513 $as_echo "$as_me: failed program was:" >&5
33514sed 's/^/| /' conftest.$ac_ext >&5
33515
33516
33517fi
33518
33519rm -rf conftest.dSYM
33520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33521 conftest$ac_exeext conftest.$ac_ext
33522
33523{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33524$as_echo "${magick_pthread_lib_ok}" >&6; }
33525if test "$magick_pthread_lib_ok" = yes
33526then
33527 PTHREAD_LIBS=-lc_r
33528 :
33529else
33530
33531 :
33532fi
33533
33534LIBS="$save_LIBS"
33535
33536ac_ext=c
33537ac_cpp='$CPP $CPPFLAGS'
33538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33540ac_compiler_gnu=$ac_cv_c_compiler_gnu
33541
33542 ;;
33543 esac
33544 fi
33545
33546 for lib in pthread pthreads; do
33547 if test "x$PTHREAD_LIBS" = "x"; then
33548
33549
33550
33551ac_ext=c
33552ac_cpp='$CPP $CPPFLAGS'
33553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33555ac_compiler_gnu=$ac_cv_c_compiler_gnu
33556
33557magick_pthread_lib_ok=no
33558
33559LIB=-l$lib
33560save_LIBS="$LIBS"
33561LIBS="$LIBS $LIB"
33562
33563{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33564$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33565cat >conftest.$ac_ext <<_ACEOF
33566/* confdefs.h. */
33567_ACEOF
33568cat confdefs.h >>conftest.$ac_ext
33569cat >>conftest.$ac_ext <<_ACEOF
33570/* end confdefs.h. */
33571#include <pthread.h>
33572int
33573main ()
33574{
33575 pthread_t th;
33576 pthread_join(th, 0);
33577 pthread_attr_init(0);
33578 pthread_cleanup_push(0, 0);
33579 pthread_create(0,0,0,0);
33580 pthread_cleanup_pop(0);
33581 ;
33582 return 0;
33583}
33584_ACEOF
33585rm -f conftest.$ac_objext conftest$ac_exeext
33586if { (ac_try="$ac_link"
33587case "(($ac_try" in
33588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33589 *) ac_try_echo=$ac_try;;
33590esac
33591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33592$as_echo "$ac_try_echo") >&5
33593 (eval "$ac_link") 2>conftest.er1
33594 ac_status=$?
33595 grep -v '^ *+' conftest.er1 >conftest.err
33596 rm -f conftest.er1
33597 cat conftest.err >&5
33598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); } && {
33600 test -z "$ac_c_werror_flag" ||
33601 test ! -s conftest.err
33602 } && test -s conftest$ac_exeext && {
33603 test "$cross_compiling" = yes ||
33604 $as_test_x conftest$ac_exeext
33605 }; then
33606 magick_pthread_lib_ok=yes
33607else
33608 $as_echo "$as_me: failed program was:" >&5
33609sed 's/^/| /' conftest.$ac_ext >&5
33610
33611
33612fi
33613
33614rm -rf conftest.dSYM
33615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33616 conftest$ac_exeext conftest.$ac_ext
33617
33618{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33619$as_echo "${magick_pthread_lib_ok}" >&6; }
33620if test "$magick_pthread_lib_ok" = yes
33621then
33622 PTHREAD_LIBS=-l$lib
33623 :
33624else
33625
33626 :
33627fi
33628
33629LIBS="$save_LIBS"
33630
33631ac_ext=c
33632ac_cpp='$CPP $CPPFLAGS'
33633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33635ac_compiler_gnu=$ac_cv_c_compiler_gnu
33636
33637
33638 fi
33639 done
33640
33641 THREAD_LIBS="$PTHREAD_LIBS"
33642 LIBS="$LIBS $THREAD_LIBS"
33643fi
33644
33645
33646#
33647# Check for umem.
33648#
33649have_umem='no'
33650UMEM_LIBS=''
33651if test "$with_umem" != 'no'; then
33652 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
33653$as_echo_n "checking for UMEM support ... " >&6; }
33654 { $as_echo "$as_me:$LINENO: result: " >&5
33655$as_echo "" >&6; }
33656 failed=0
33657 passed=0
33658 if test "${ac_cv_header_umem_h+set}" = set; then
33659 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33660$as_echo_n "checking for umem.h... " >&6; }
33661if test "${ac_cv_header_umem_h+set}" = set; then
33662 $as_echo_n "(cached) " >&6
33663fi
33664{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33665$as_echo "$ac_cv_header_umem_h" >&6; }
33666else
33667 # Is the header compilable?
33668{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
33669$as_echo_n "checking umem.h usability... " >&6; }
33670cat >conftest.$ac_ext <<_ACEOF
33671/* confdefs.h. */
33672_ACEOF
33673cat confdefs.h >>conftest.$ac_ext
33674cat >>conftest.$ac_ext <<_ACEOF
33675/* end confdefs.h. */
33676$ac_includes_default
33677#include <umem.h>
33678_ACEOF
33679rm -f conftest.$ac_objext
33680if { (ac_try="$ac_compile"
33681case "(($ac_try" in
33682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683 *) ac_try_echo=$ac_try;;
33684esac
33685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33686$as_echo "$ac_try_echo") >&5
33687 (eval "$ac_compile") 2>conftest.er1
33688 ac_status=$?
33689 grep -v '^ *+' conftest.er1 >conftest.err
33690 rm -f conftest.er1
33691 cat conftest.err >&5
33692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); } && {
33694 test -z "$ac_c_werror_flag" ||
33695 test ! -s conftest.err
33696 } && test -s conftest.$ac_objext; then
33697 ac_header_compiler=yes
33698else
33699 $as_echo "$as_me: failed program was:" >&5
33700sed 's/^/| /' conftest.$ac_ext >&5
33701
33702 ac_header_compiler=no
33703fi
33704
33705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33706{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33707$as_echo "$ac_header_compiler" >&6; }
33708
33709# Is the header present?
33710{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
33711$as_echo_n "checking umem.h presence... " >&6; }
33712cat >conftest.$ac_ext <<_ACEOF
33713/* confdefs.h. */
33714_ACEOF
33715cat confdefs.h >>conftest.$ac_ext
33716cat >>conftest.$ac_ext <<_ACEOF
33717/* end confdefs.h. */
33718#include <umem.h>
33719_ACEOF
33720if { (ac_try="$ac_cpp conftest.$ac_ext"
33721case "(($ac_try" in
33722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33723 *) ac_try_echo=$ac_try;;
33724esac
33725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33726$as_echo "$ac_try_echo") >&5
33727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33728 ac_status=$?
33729 grep -v '^ *+' conftest.er1 >conftest.err
33730 rm -f conftest.er1
33731 cat conftest.err >&5
33732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); } >/dev/null && {
33734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33735 test ! -s conftest.err
33736 }; then
33737 ac_header_preproc=yes
33738else
33739 $as_echo "$as_me: failed program was:" >&5
33740sed 's/^/| /' conftest.$ac_ext >&5
33741
33742 ac_header_preproc=no
33743fi
33744
33745rm -f conftest.err conftest.$ac_ext
33746{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33747$as_echo "$ac_header_preproc" >&6; }
33748
33749# So? What about this header?
33750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33751 yes:no: )
33752 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
33753$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33754 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
33755$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
33756 ac_header_preproc=yes
33757 ;;
33758 no:yes:* )
33759 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
33760$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
33761 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
33762$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
33763 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
33764$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
33765 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
33766$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
33767 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
33768$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
33769 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
33770$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
33771 ( cat <<\_ASBOX
33772## ----------------------------------------- ##
33773## Report this to http://www.imagemagick.org ##
33774## ----------------------------------------- ##
33775_ASBOX
33776 ) | sed "s/^/$as_me: WARNING: /" >&2
33777 ;;
33778esac
33779{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33780$as_echo_n "checking for umem.h... " >&6; }
33781if test "${ac_cv_header_umem_h+set}" = set; then
33782 $as_echo_n "(cached) " >&6
33783else
33784 ac_cv_header_umem_h=$ac_header_preproc
33785fi
33786{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33787$as_echo "$ac_cv_header_umem_h" >&6; }
33788
33789fi
33790if test "x$ac_cv_header_umem_h" = x""yes; then
33791 passed=`expr $passed + 1`
33792else
33793 failed=`expr $failed + 1`
33794fi
33795
33796
33797 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
33798$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
33799if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
33800 $as_echo_n "(cached) " >&6
33801else
33802 ac_check_lib_save_LIBS=$LIBS
33803LIBS="-lumem $LIBS"
33804cat >conftest.$ac_ext <<_ACEOF
33805/* confdefs.h. */
33806_ACEOF
33807cat confdefs.h >>conftest.$ac_ext
33808cat >>conftest.$ac_ext <<_ACEOF
33809/* end confdefs.h. */
33810
33811/* Override any GCC internal prototype to avoid an error.
33812 Use char because int might match the return type of a GCC
33813 builtin and then its argument prototype would still apply. */
33814#ifdef __cplusplus
33815extern "C"
33816#endif
33817char umem_alloc ();
33818int
33819main ()
33820{
33821return umem_alloc ();
33822 ;
33823 return 0;
33824}
33825_ACEOF
33826rm -f conftest.$ac_objext conftest$ac_exeext
33827if { (ac_try="$ac_link"
33828case "(($ac_try" in
33829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33830 *) ac_try_echo=$ac_try;;
33831esac
33832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33833$as_echo "$ac_try_echo") >&5
33834 (eval "$ac_link") 2>conftest.er1
33835 ac_status=$?
33836 grep -v '^ *+' conftest.er1 >conftest.err
33837 rm -f conftest.er1
33838 cat conftest.err >&5
33839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } && {
33841 test -z "$ac_c_werror_flag" ||
33842 test ! -s conftest.err
33843 } && test -s conftest$ac_exeext && {
33844 test "$cross_compiling" = yes ||
33845 $as_test_x conftest$ac_exeext
33846 }; then
33847 ac_cv_lib_umem_umem_alloc=yes
33848else
33849 $as_echo "$as_me: failed program was:" >&5
33850sed 's/^/| /' conftest.$ac_ext >&5
33851
33852 ac_cv_lib_umem_umem_alloc=no
33853fi
33854
33855rm -rf conftest.dSYM
33856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33857 conftest$ac_exeext conftest.$ac_ext
33858LIBS=$ac_check_lib_save_LIBS
33859fi
33860{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
33861$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
33862if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
33863 passed=`expr $passed + 1`
33864else
33865 failed=`expr $failed + 1`
33866fi
33867
33868 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
33869$as_echo_n "checking for umem_free in -lumem... " >&6; }
33870if test "${ac_cv_lib_umem_umem_free+set}" = set; then
33871 $as_echo_n "(cached) " >&6
33872else
33873 ac_check_lib_save_LIBS=$LIBS
33874LIBS="-lumem $LIBS"
33875cat >conftest.$ac_ext <<_ACEOF
33876/* confdefs.h. */
33877_ACEOF
33878cat confdefs.h >>conftest.$ac_ext
33879cat >>conftest.$ac_ext <<_ACEOF
33880/* end confdefs.h. */
33881
33882/* Override any GCC internal prototype to avoid an error.
33883 Use char because int might match the return type of a GCC
33884 builtin and then its argument prototype would still apply. */
33885#ifdef __cplusplus
33886extern "C"
33887#endif
33888char umem_free ();
33889int
33890main ()
33891{
33892return umem_free ();
33893 ;
33894 return 0;
33895}
33896_ACEOF
33897rm -f conftest.$ac_objext conftest$ac_exeext
33898if { (ac_try="$ac_link"
33899case "(($ac_try" in
33900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33901 *) ac_try_echo=$ac_try;;
33902esac
33903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33904$as_echo "$ac_try_echo") >&5
33905 (eval "$ac_link") 2>conftest.er1
33906 ac_status=$?
33907 grep -v '^ *+' conftest.er1 >conftest.err
33908 rm -f conftest.er1
33909 cat conftest.err >&5
33910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } && {
33912 test -z "$ac_c_werror_flag" ||
33913 test ! -s conftest.err
33914 } && test -s conftest$ac_exeext && {
33915 test "$cross_compiling" = yes ||
33916 $as_test_x conftest$ac_exeext
33917 }; then
33918 ac_cv_lib_umem_umem_free=yes
33919else
33920 $as_echo "$as_me: failed program was:" >&5
33921sed 's/^/| /' conftest.$ac_ext >&5
33922
33923 ac_cv_lib_umem_umem_free=no
33924fi
33925
33926rm -rf conftest.dSYM
33927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33928 conftest$ac_exeext conftest.$ac_ext
33929LIBS=$ac_check_lib_save_LIBS
33930fi
33931{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
33932$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
33933if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
33934 passed=`expr $passed + 1`
33935else
33936 failed=`expr $failed + 1`
33937fi
33938
33939 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
33940$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
33941 if test $passed -gt 0; then
33942 if test $failed -gt 0; then
33943 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33944$as_echo "no -- some components failed test" >&6; }
33945 have_umem='no (failed tests)'
33946 else
33947 UMEM_LIBS='-lumem'
33948 LIBS="$UMEM_LIBS $LIBS"
33949
33950cat >>confdefs.h <<\_ACEOF
33951#define HasUMEM 1
33952_ACEOF
33953
33954 { $as_echo "$as_me:$LINENO: result: yes" >&5
33955$as_echo "yes" >&6; }
33956 have_umem='yes'
33957 fi
33958 else
33959 { $as_echo "$as_me:$LINENO: result: no" >&5
33960$as_echo "no" >&6; }
33961 fi
33962fi
33963 if test "$have_umem" = 'yes'; then
33964 HasUMEM_TRUE=
33965 HasUMEM_FALSE='#'
33966else
33967 HasUMEM_TRUE='#'
33968 HasUMEM_FALSE=
33969fi
33970
33971
33972
33973#
33974# Add support for ccmalloc memory debugging library if requested
33975#
33976have_ccmalloc='no'
33977CCMALLOC_LIBS=''
33978if test "$enable_ccmalloc" = 'yes'; then
33979 # Extract the first word of "ccmalloc", so it can be a program name with args.
33980set dummy ccmalloc; ac_word=$2
33981{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33982$as_echo_n "checking for $ac_word... " >&6; }
33983if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
33984 $as_echo_n "(cached) " >&6
33985else
33986 case $CCMALLOCDelegate in
33987 [\\/]* | ?:[\\/]*)
33988 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
33989 ;;
33990 *)
33991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33992for as_dir in $PATH
33993do
33994 IFS=$as_save_IFS
33995 test -z "$as_dir" && as_dir=.
33996 for ac_exec_ext in '' $ac_executable_extensions; do
33997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33998 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
33999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34000 break 2
34001 fi
34002done
34003done
34004IFS=$as_save_IFS
34005
34006 ;;
34007esac
34008fi
34009CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
34010if test -n "$CCMALLOCDelegate"; then
34011 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
34012$as_echo "$CCMALLOCDelegate" >&6; }
34013else
34014 { $as_echo "$as_me:$LINENO: result: no" >&5
34015$as_echo "no" >&6; }
34016fi
34017
34018
34019 if test -n "$CCMALLOCDelegate"; then
34020 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
34021 OLIBS="$LIBS"
34022 # Assume that gcc is used with ccmalloc.
34023 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
34024 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
34025$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
34026if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
34027 $as_echo_n "(cached) " >&6
34028else
34029 ac_check_lib_save_LIBS=$LIBS
34030LIBS="-lccmalloc -ldl $LIBS"
34031cat >conftest.$ac_ext <<_ACEOF
34032/* confdefs.h. */
34033_ACEOF
34034cat confdefs.h >>conftest.$ac_ext
34035cat >>conftest.$ac_ext <<_ACEOF
34036/* end confdefs.h. */
34037
34038/* Override any GCC internal prototype to avoid an error.
34039 Use char because int might match the return type of a GCC
34040 builtin and then its argument prototype would still apply. */
34041#ifdef __cplusplus
34042extern "C"
34043#endif
34044char ccmalloc_malloc ();
34045int
34046main ()
34047{
34048return ccmalloc_malloc ();
34049 ;
34050 return 0;
34051}
34052_ACEOF
34053rm -f conftest.$ac_objext conftest$ac_exeext
34054if { (ac_try="$ac_link"
34055case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34058esac
34059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34060$as_echo "$ac_try_echo") >&5
34061 (eval "$ac_link") 2>conftest.er1
34062 ac_status=$?
34063 grep -v '^ *+' conftest.er1 >conftest.err
34064 rm -f conftest.er1
34065 cat conftest.err >&5
34066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); } && {
34068 test -z "$ac_c_werror_flag" ||
34069 test ! -s conftest.err
34070 } && test -s conftest$ac_exeext && {
34071 test "$cross_compiling" = yes ||
34072 $as_test_x conftest$ac_exeext
34073 }; then
34074 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
34075else
34076 $as_echo "$as_me: failed program was:" >&5
34077sed 's/^/| /' conftest.$ac_ext >&5
34078
34079 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
34080fi
34081
34082rm -rf conftest.dSYM
34083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34084 conftest$ac_exeext conftest.$ac_ext
34085LIBS=$ac_check_lib_save_LIBS
34086fi
34087{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
34088$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
34089if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
34090 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
34091fi
34092
34093 if test -n "$CCMALLOC_LIBS"; then
34094 LIBS="$OLIBS"
34095 LIBS="$LIBS $CCMALLOC_LIBS"
34096 have_ccmalloc='yes'
34097 else
34098 LIBS="$OLIBS"
34099 fi
34100 fi
34101fi
34102
34103#
34104# Add support for efence memory debugging library if requested
34105#
34106if test "$enable_efence" = 'yes'; then
34107 EFENCE_LIBS='-lefence'
34108 LIBS="$EFENCE_LIBS $LIBS"
34109fi
34110
34111#
34112# Find math library
34113#
34114MATH_LIBS=''
34115{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
34116$as_echo_n "checking for sqrt in -lm... " >&6; }
34117if test "${ac_cv_lib_m_sqrt+set}" = set; then
34118 $as_echo_n "(cached) " >&6
34119else
34120 ac_check_lib_save_LIBS=$LIBS
34121LIBS="-lm $LIBS"
34122cat >conftest.$ac_ext <<_ACEOF
34123/* confdefs.h. */
34124_ACEOF
34125cat confdefs.h >>conftest.$ac_ext
34126cat >>conftest.$ac_ext <<_ACEOF
34127/* end confdefs.h. */
34128
34129/* Override any GCC internal prototype to avoid an error.
34130 Use char because int might match the return type of a GCC
34131 builtin and then its argument prototype would still apply. */
34132#ifdef __cplusplus
34133extern "C"
34134#endif
34135char sqrt ();
34136int
34137main ()
34138{
34139return sqrt ();
34140 ;
34141 return 0;
34142}
34143_ACEOF
34144rm -f conftest.$ac_objext conftest$ac_exeext
34145if { (ac_try="$ac_link"
34146case "(($ac_try" in
34147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148 *) ac_try_echo=$ac_try;;
34149esac
34150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34151$as_echo "$ac_try_echo") >&5
34152 (eval "$ac_link") 2>conftest.er1
34153 ac_status=$?
34154 grep -v '^ *+' conftest.er1 >conftest.err
34155 rm -f conftest.er1
34156 cat conftest.err >&5
34157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); } && {
34159 test -z "$ac_c_werror_flag" ||
34160 test ! -s conftest.err
34161 } && test -s conftest$ac_exeext && {
34162 test "$cross_compiling" = yes ||
34163 $as_test_x conftest$ac_exeext
34164 }; then
34165 ac_cv_lib_m_sqrt=yes
34166else
34167 $as_echo "$as_me: failed program was:" >&5
34168sed 's/^/| /' conftest.$ac_ext >&5
34169
34170 ac_cv_lib_m_sqrt=no
34171fi
34172
34173rm -rf conftest.dSYM
34174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34175 conftest$ac_exeext conftest.$ac_ext
34176LIBS=$ac_check_lib_save_LIBS
34177fi
34178{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
34179$as_echo "$ac_cv_lib_m_sqrt" >&6; }
34180if test "x$ac_cv_lib_m_sqrt" = x""yes; then
34181 MATH_LIBS="-lm"
34182fi
34183
34184LIBS="$MATH_LIBS $LIBS"
34185
34186
34187
34188#
34189# Check for BZLIB
34190#
34191
34192
34193# Check whether --with-bzlib was given.
34194if test "${with_bzlib+set}" = set; then
34195 withval=$with_bzlib; with_bzlib=$withval
34196else
34197 with_bzlib='yes'
34198fi
34199
34200
34201if test "$with_bzlib" != 'yes'; then
34202 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
34203fi
34204
34205have_bzlib='no'
34206if test "$with_bzlib" != 'no'; then
34207 BZLIB_LIBS=''
34208 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
34209$as_echo "-------------------------------------------------------------" >&6; }
34210 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
34211$as_echo_n "checking for BZLIB... " >&6; }
34212 { $as_echo "$as_me:$LINENO: result: " >&5
34213$as_echo "" >&6; }
34214 failed=0
34215 passed=0
34216 found_libbz=0
34217 if test "${ac_cv_header_bzlib_h+set}" = set; then
34218 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34219$as_echo_n "checking for bzlib.h... " >&6; }
34220if test "${ac_cv_header_bzlib_h+set}" = set; then
34221 $as_echo_n "(cached) " >&6
34222fi
34223{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34224$as_echo "$ac_cv_header_bzlib_h" >&6; }
34225else
34226 # Is the header compilable?
34227{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
34228$as_echo_n "checking bzlib.h usability... " >&6; }
34229cat >conftest.$ac_ext <<_ACEOF
34230/* confdefs.h. */
34231_ACEOF
34232cat confdefs.h >>conftest.$ac_ext
34233cat >>conftest.$ac_ext <<_ACEOF
34234/* end confdefs.h. */
34235$ac_includes_default
34236#include <bzlib.h>
34237_ACEOF
34238rm -f conftest.$ac_objext
34239if { (ac_try="$ac_compile"
34240case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34243esac
34244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34245$as_echo "$ac_try_echo") >&5
34246 (eval "$ac_compile") 2>conftest.er1
34247 ac_status=$?
34248 grep -v '^ *+' conftest.er1 >conftest.err
34249 rm -f conftest.er1
34250 cat conftest.err >&5
34251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); } && {
34253 test -z "$ac_c_werror_flag" ||
34254 test ! -s conftest.err
34255 } && test -s conftest.$ac_objext; then
34256 ac_header_compiler=yes
34257else
34258 $as_echo "$as_me: failed program was:" >&5
34259sed 's/^/| /' conftest.$ac_ext >&5
34260
34261 ac_header_compiler=no
34262fi
34263
34264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34265{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34266$as_echo "$ac_header_compiler" >&6; }
34267
34268# Is the header present?
34269{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
34270$as_echo_n "checking bzlib.h presence... " >&6; }
34271cat >conftest.$ac_ext <<_ACEOF
34272/* confdefs.h. */
34273_ACEOF
34274cat confdefs.h >>conftest.$ac_ext
34275cat >>conftest.$ac_ext <<_ACEOF
34276/* end confdefs.h. */
34277#include <bzlib.h>
34278_ACEOF
34279if { (ac_try="$ac_cpp conftest.$ac_ext"
34280case "(($ac_try" in
34281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282 *) ac_try_echo=$ac_try;;
34283esac
34284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34285$as_echo "$ac_try_echo") >&5
34286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34287 ac_status=$?
34288 grep -v '^ *+' conftest.er1 >conftest.err
34289 rm -f conftest.er1
34290 cat conftest.err >&5
34291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); } >/dev/null && {
34293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34294 test ! -s conftest.err
34295 }; then
34296 ac_header_preproc=yes
34297else
34298 $as_echo "$as_me: failed program was:" >&5
34299sed 's/^/| /' conftest.$ac_ext >&5
34300
34301 ac_header_preproc=no
34302fi
34303
34304rm -f conftest.err conftest.$ac_ext
34305{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34306$as_echo "$ac_header_preproc" >&6; }
34307
34308# So? What about this header?
34309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34310 yes:no: )
34311 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34312$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34313 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
34314$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
34315 ac_header_preproc=yes
34316 ;;
34317 no:yes:* )
34318 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
34319$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
34320 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
34321$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
34322 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
34323$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
34324 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
34325$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34326 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
34327$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
34328 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
34329$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
34330 ( cat <<\_ASBOX
34331## ----------------------------------------- ##
34332## Report this to http://www.imagemagick.org ##
34333## ----------------------------------------- ##
34334_ASBOX
34335 ) | sed "s/^/$as_me: WARNING: /" >&2
34336 ;;
34337esac
34338{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34339$as_echo_n "checking for bzlib.h... " >&6; }
34340if test "${ac_cv_header_bzlib_h+set}" = set; then
34341 $as_echo_n "(cached) " >&6
34342else
34343 ac_cv_header_bzlib_h=$ac_header_preproc
34344fi
34345{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34346$as_echo "$ac_cv_header_bzlib_h" >&6; }
34347
34348fi
34349if test "x$ac_cv_header_bzlib_h" = x""yes; then
34350 passed=`expr $passed + 1`
34351else
34352 failed=`expr $failed + 1`
34353fi
34354
34355
34356 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
34357$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
34358if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
34359 $as_echo_n "(cached) " >&6
34360else
34361 ac_check_lib_save_LIBS=$LIBS
34362LIBS="-lbz2 $LIBS"
34363cat >conftest.$ac_ext <<_ACEOF
34364/* confdefs.h. */
34365_ACEOF
34366cat confdefs.h >>conftest.$ac_ext
34367cat >>conftest.$ac_ext <<_ACEOF
34368/* end confdefs.h. */
34369
34370/* Override any GCC internal prototype to avoid an error.
34371 Use char because int might match the return type of a GCC
34372 builtin and then its argument prototype would still apply. */
34373#ifdef __cplusplus
34374extern "C"
34375#endif
34376char BZ2_bzDecompress ();
34377int
34378main ()
34379{
34380return BZ2_bzDecompress ();
34381 ;
34382 return 0;
34383}
34384_ACEOF
34385rm -f conftest.$ac_objext conftest$ac_exeext
34386if { (ac_try="$ac_link"
34387case "(($ac_try" in
34388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34389 *) ac_try_echo=$ac_try;;
34390esac
34391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34392$as_echo "$ac_try_echo") >&5
34393 (eval "$ac_link") 2>conftest.er1
34394 ac_status=$?
34395 grep -v '^ *+' conftest.er1 >conftest.err
34396 rm -f conftest.er1
34397 cat conftest.err >&5
34398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); } && {
34400 test -z "$ac_c_werror_flag" ||
34401 test ! -s conftest.err
34402 } && test -s conftest$ac_exeext && {
34403 test "$cross_compiling" = yes ||
34404 $as_test_x conftest$ac_exeext
34405 }; then
34406 ac_cv_lib_bz2_BZ2_bzDecompress=yes
34407else
34408 $as_echo "$as_me: failed program was:" >&5
34409sed 's/^/| /' conftest.$ac_ext >&5
34410
34411 ac_cv_lib_bz2_BZ2_bzDecompress=no
34412fi
34413
34414rm -rf conftest.dSYM
34415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34416 conftest$ac_exeext conftest.$ac_ext
34417LIBS=$ac_check_lib_save_LIBS
34418fi
34419{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
34420$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
34421if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
34422 found_libbz=`expr $found_libbz + 1`
34423fi
34424
34425 if test "$native_win32_build" = 'yes'; then
34426 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
34427$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
34428if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
34429 $as_echo_n "(cached) " >&6
34430else
34431 ac_check_lib_save_LIBS=$LIBS
34432LIBS="-lbz2 $LIBS"
34433cat >conftest.$ac_ext <<_ACEOF
34434/* confdefs.h. */
34435_ACEOF
34436cat confdefs.h >>conftest.$ac_ext
34437cat >>conftest.$ac_ext <<_ACEOF
34438/* end confdefs.h. */
34439
34440/* Override any GCC internal prototype to avoid an error.
34441 Use char because int might match the return type of a GCC
34442 builtin and then its argument prototype would still apply. */
34443#ifdef __cplusplus
34444extern "C"
34445#endif
34446char _imp__BZ2_decompress ();
34447int
34448main ()
34449{
34450return _imp__BZ2_decompress ();
34451 ;
34452 return 0;
34453}
34454_ACEOF
34455rm -f conftest.$ac_objext conftest$ac_exeext
34456if { (ac_try="$ac_link"
34457case "(($ac_try" in
34458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34459 *) ac_try_echo=$ac_try;;
34460esac
34461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34462$as_echo "$ac_try_echo") >&5
34463 (eval "$ac_link") 2>conftest.er1
34464 ac_status=$?
34465 grep -v '^ *+' conftest.er1 >conftest.err
34466 rm -f conftest.er1
34467 cat conftest.err >&5
34468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); } && {
34470 test -z "$ac_c_werror_flag" ||
34471 test ! -s conftest.err
34472 } && test -s conftest$ac_exeext && {
34473 test "$cross_compiling" = yes ||
34474 $as_test_x conftest$ac_exeext
34475 }; then
34476 ac_cv_lib_bz2__imp__BZ2_decompress=yes
34477else
34478 $as_echo "$as_me: failed program was:" >&5
34479sed 's/^/| /' conftest.$ac_ext >&5
34480
34481 ac_cv_lib_bz2__imp__BZ2_decompress=no
34482fi
34483
34484rm -rf conftest.dSYM
34485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34486 conftest$ac_exeext conftest.$ac_ext
34487LIBS=$ac_check_lib_save_LIBS
34488fi
34489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
34490$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
34491if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
34492 found_libbz=`expr $found_libbz + 1`
34493fi
34494
34495 fi
34496 if test $found_libbz -gt 0; then
34497 passed=`expr $passed + 1`
34498 else
34499 failed=`expr $failed + 1`
34500 fi
34501 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
34502$as_echo_n "checking if BZLIB package is complete... " >&6; }
34503 if test $passed -gt 0; then
34504 if test $failed -gt 0; then
34505 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
34506$as_echo "no -- some components failed test" >&6; }
34507 have_bzlib='no (failed tests)'
34508 else
34509 BZLIB_LIBS='-lbz2'
34510 LIBS="$BZLIB_LIBS $LIBS"
34511
34512cat >>confdefs.h <<\_ACEOF
34513#define BZLIB_DELEGATE 1
34514_ACEOF
34515
34516 { $as_echo "$as_me:$LINENO: result: yes" >&5
34517$as_echo "yes" >&6; }
34518 have_bzlib='yes'
34519 fi
34520 else
34521 { $as_echo "$as_me:$LINENO: result: no" >&5
34522$as_echo "no" >&6; }
34523 fi
34524fi
34525 if test "$have_bzlib" = 'yes'; then
34526 BZLIB_DELEGATE_TRUE=
34527 BZLIB_DELEGATE_FALSE='#'
34528else
34529 BZLIB_DELEGATE_TRUE='#'
34530 BZLIB_DELEGATE_FALSE=
34531fi
34532
34533
34534
34535#
34536# Find the X11 include and library directories.
34537#
34538IPC_LIBS=''
34539X11_LIBS=''
34540XEXT_LIBS=''
34541XT_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000034542if test "$no_x" = yes; then
34543 # Not all programs may use this symbol, but it does not hurt to define it.
34544
34545cat >>confdefs.h <<\_ACEOF
34546#define X_DISPLAY_MISSING 1
34547_ACEOF
34548
34549 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34550else
34551 if test -n "$x_includes"; then
34552 X_CFLAGS="$X_CFLAGS -I$x_includes"
34553 fi
34554
34555 # It would also be nice to do this for all -L options, not just this one.
34556 if test -n "$x_libraries"; then
34557 X_LIBS="$X_LIBS -L$x_libraries"
34558 # For Solaris; some versions of Sun CC require a space after -R and
34559 # others require no space. Words are not sufficient . . . .
34560 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34561$as_echo_n "checking whether -R must be followed by a space... " >&6; }
34562 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34563 ac_xsave_c_werror_flag=$ac_c_werror_flag
34564 ac_c_werror_flag=yes
34565 cat >conftest.$ac_ext <<_ACEOF
34566/* confdefs.h. */
34567_ACEOF
34568cat confdefs.h >>conftest.$ac_ext
34569cat >>conftest.$ac_ext <<_ACEOF
34570/* end confdefs.h. */
34571
34572int
34573main ()
34574{
34575
34576 ;
34577 return 0;
34578}
34579_ACEOF
34580rm -f conftest.$ac_objext conftest$ac_exeext
34581if { (ac_try="$ac_link"
34582case "(($ac_try" in
34583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34584 *) ac_try_echo=$ac_try;;
34585esac
34586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34587$as_echo "$ac_try_echo") >&5
34588 (eval "$ac_link") 2>conftest.er1
34589 ac_status=$?
34590 grep -v '^ *+' conftest.er1 >conftest.err
34591 rm -f conftest.er1
34592 cat conftest.err >&5
34593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594 (exit $ac_status); } && {
34595 test -z "$ac_c_werror_flag" ||
34596 test ! -s conftest.err
34597 } && test -s conftest$ac_exeext && {
34598 test "$cross_compiling" = yes ||
34599 $as_test_x conftest$ac_exeext
34600 }; then
34601 { $as_echo "$as_me:$LINENO: result: no" >&5
34602$as_echo "no" >&6; }
34603 X_LIBS="$X_LIBS -R$x_libraries"
34604else
34605 $as_echo "$as_me: failed program was:" >&5
34606sed 's/^/| /' conftest.$ac_ext >&5
34607
34608 LIBS="$ac_xsave_LIBS -R $x_libraries"
34609 cat >conftest.$ac_ext <<_ACEOF
34610/* confdefs.h. */
34611_ACEOF
34612cat confdefs.h >>conftest.$ac_ext
34613cat >>conftest.$ac_ext <<_ACEOF
34614/* end confdefs.h. */
34615
34616int
34617main ()
34618{
34619
34620 ;
34621 return 0;
34622}
34623_ACEOF
34624rm -f conftest.$ac_objext conftest$ac_exeext
34625if { (ac_try="$ac_link"
34626case "(($ac_try" in
34627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34628 *) ac_try_echo=$ac_try;;
34629esac
34630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34631$as_echo "$ac_try_echo") >&5
34632 (eval "$ac_link") 2>conftest.er1
34633 ac_status=$?
34634 grep -v '^ *+' conftest.er1 >conftest.err
34635 rm -f conftest.er1
34636 cat conftest.err >&5
34637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } && {
34639 test -z "$ac_c_werror_flag" ||
34640 test ! -s conftest.err
34641 } && test -s conftest$ac_exeext && {
34642 test "$cross_compiling" = yes ||
34643 $as_test_x conftest$ac_exeext
34644 }; then
34645 { $as_echo "$as_me:$LINENO: result: yes" >&5
34646$as_echo "yes" >&6; }
34647 X_LIBS="$X_LIBS -R $x_libraries"
34648else
34649 $as_echo "$as_me: failed program was:" >&5
34650sed 's/^/| /' conftest.$ac_ext >&5
34651
34652 { $as_echo "$as_me:$LINENO: result: neither works" >&5
34653$as_echo "neither works" >&6; }
34654fi
34655
34656rm -rf conftest.dSYM
34657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34658 conftest$ac_exeext conftest.$ac_ext
34659fi
34660
34661rm -rf conftest.dSYM
34662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34663 conftest$ac_exeext conftest.$ac_ext
34664 ac_c_werror_flag=$ac_xsave_c_werror_flag
34665 LIBS=$ac_xsave_LIBS
34666 fi
34667
34668 # Check for system-dependent libraries X programs must link with.
34669 # Do this before checking for the system-independent R6 libraries
34670 # (-lICE), since we may need -lsocket or whatever for X linking.
34671
34672 if test "$ISC" = yes; then
34673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34674 else
34675 # Martyn Johnson says this is needed for Ultrix, if the X
34676 # libraries were built with DECnet support. And Karl Berry says
34677 # the Alpha needs dnet_stub (dnet does not exist).
34678 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34679 cat >conftest.$ac_ext <<_ACEOF
34680/* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
34685
34686/* Override any GCC internal prototype to avoid an error.
34687 Use char because int might match the return type of a GCC
34688 builtin and then its argument prototype would still apply. */
34689#ifdef __cplusplus
34690extern "C"
34691#endif
34692char XOpenDisplay ();
34693int
34694main ()
34695{
34696return XOpenDisplay ();
34697 ;
34698 return 0;
34699}
34700_ACEOF
34701rm -f conftest.$ac_objext conftest$ac_exeext
34702if { (ac_try="$ac_link"
34703case "(($ac_try" in
34704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34705 *) ac_try_echo=$ac_try;;
34706esac
34707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34708$as_echo "$ac_try_echo") >&5
34709 (eval "$ac_link") 2>conftest.er1
34710 ac_status=$?
34711 grep -v '^ *+' conftest.er1 >conftest.err
34712 rm -f conftest.er1
34713 cat conftest.err >&5
34714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } && {
34716 test -z "$ac_c_werror_flag" ||
34717 test ! -s conftest.err
34718 } && test -s conftest$ac_exeext && {
34719 test "$cross_compiling" = yes ||
34720 $as_test_x conftest$ac_exeext
34721 }; then
34722 :
34723else
34724 $as_echo "$as_me: failed program was:" >&5
34725sed 's/^/| /' conftest.$ac_ext >&5
34726
34727 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34728$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
34729if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34730 $as_echo_n "(cached) " >&6
34731else
34732 ac_check_lib_save_LIBS=$LIBS
34733LIBS="-ldnet $LIBS"
34734cat >conftest.$ac_ext <<_ACEOF
34735/* confdefs.h. */
34736_ACEOF
34737cat confdefs.h >>conftest.$ac_ext
34738cat >>conftest.$ac_ext <<_ACEOF
34739/* end confdefs.h. */
34740
34741/* Override any GCC internal prototype to avoid an error.
34742 Use char because int might match the return type of a GCC
34743 builtin and then its argument prototype would still apply. */
34744#ifdef __cplusplus
34745extern "C"
34746#endif
34747char dnet_ntoa ();
34748int
34749main ()
34750{
34751return dnet_ntoa ();
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext conftest$ac_exeext
34757if { (ac_try="$ac_link"
34758case "(($ac_try" in
34759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34760 *) ac_try_echo=$ac_try;;
34761esac
34762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34763$as_echo "$ac_try_echo") >&5
34764 (eval "$ac_link") 2>conftest.er1
34765 ac_status=$?
34766 grep -v '^ *+' conftest.er1 >conftest.err
34767 rm -f conftest.er1
34768 cat conftest.err >&5
34769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } && {
34771 test -z "$ac_c_werror_flag" ||
34772 test ! -s conftest.err
34773 } && test -s conftest$ac_exeext && {
34774 test "$cross_compiling" = yes ||
34775 $as_test_x conftest$ac_exeext
34776 }; then
34777 ac_cv_lib_dnet_dnet_ntoa=yes
34778else
34779 $as_echo "$as_me: failed program was:" >&5
34780sed 's/^/| /' conftest.$ac_ext >&5
34781
34782 ac_cv_lib_dnet_dnet_ntoa=no
34783fi
34784
34785rm -rf conftest.dSYM
34786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34787 conftest$ac_exeext conftest.$ac_ext
34788LIBS=$ac_check_lib_save_LIBS
34789fi
34790{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34791$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34792if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
34793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34794fi
34795
34796 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34797 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34798$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
34799if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34800 $as_echo_n "(cached) " >&6
34801else
34802 ac_check_lib_save_LIBS=$LIBS
34803LIBS="-ldnet_stub $LIBS"
34804cat >conftest.$ac_ext <<_ACEOF
34805/* confdefs.h. */
34806_ACEOF
34807cat confdefs.h >>conftest.$ac_ext
34808cat >>conftest.$ac_ext <<_ACEOF
34809/* end confdefs.h. */
34810
34811/* Override any GCC internal prototype to avoid an error.
34812 Use char because int might match the return type of a GCC
34813 builtin and then its argument prototype would still apply. */
34814#ifdef __cplusplus
34815extern "C"
34816#endif
34817char dnet_ntoa ();
34818int
34819main ()
34820{
34821return dnet_ntoa ();
34822 ;
34823 return 0;
34824}
34825_ACEOF
34826rm -f conftest.$ac_objext conftest$ac_exeext
34827if { (ac_try="$ac_link"
34828case "(($ac_try" in
34829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34830 *) ac_try_echo=$ac_try;;
34831esac
34832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34833$as_echo "$ac_try_echo") >&5
34834 (eval "$ac_link") 2>conftest.er1
34835 ac_status=$?
34836 grep -v '^ *+' conftest.er1 >conftest.err
34837 rm -f conftest.er1
34838 cat conftest.err >&5
34839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); } && {
34841 test -z "$ac_c_werror_flag" ||
34842 test ! -s conftest.err
34843 } && test -s conftest$ac_exeext && {
34844 test "$cross_compiling" = yes ||
34845 $as_test_x conftest$ac_exeext
34846 }; then
34847 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34848else
34849 $as_echo "$as_me: failed program was:" >&5
34850sed 's/^/| /' conftest.$ac_ext >&5
34851
34852 ac_cv_lib_dnet_stub_dnet_ntoa=no
34853fi
34854
34855rm -rf conftest.dSYM
34856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34857 conftest$ac_exeext conftest.$ac_ext
34858LIBS=$ac_check_lib_save_LIBS
34859fi
34860{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34861$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34862if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34863 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34864fi
34865
34866 fi
34867fi
34868
34869rm -rf conftest.dSYM
34870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34871 conftest$ac_exeext conftest.$ac_ext
34872 LIBS="$ac_xsave_LIBS"
34873
34874 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34875 # to get the SysV transport functions.
34876 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34877 # needs -lnsl.
34878 # The nsl library prevents programs from opening the X display
34879 # on Irix 5.2, according to T.E. Dickey.
34880 # The functions gethostbyname, getservbyname, and inet_addr are
34881 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34882 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34883$as_echo_n "checking for gethostbyname... " >&6; }
34884if test "${ac_cv_func_gethostbyname+set}" = set; then
34885 $as_echo_n "(cached) " >&6
34886else
34887 cat >conftest.$ac_ext <<_ACEOF
34888/* confdefs.h. */
34889_ACEOF
34890cat confdefs.h >>conftest.$ac_ext
34891cat >>conftest.$ac_ext <<_ACEOF
34892/* end confdefs.h. */
34893/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34895#define gethostbyname innocuous_gethostbyname
34896
34897/* System header to define __stub macros and hopefully few prototypes,
34898 which can conflict with char gethostbyname (); below.
34899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34900 <limits.h> exists even on freestanding compilers. */
34901
34902#ifdef __STDC__
34903# include <limits.h>
34904#else
34905# include <assert.h>
34906#endif
34907
34908#undef gethostbyname
34909
34910/* Override any GCC internal prototype to avoid an error.
34911 Use char because int might match the return type of a GCC
34912 builtin and then its argument prototype would still apply. */
34913#ifdef __cplusplus
34914extern "C"
34915#endif
34916char gethostbyname ();
34917/* The GNU C library defines this for functions which it implements
34918 to always fail with ENOSYS. Some functions are actually named
34919 something starting with __ and the normal name is an alias. */
34920#if defined __stub_gethostbyname || defined __stub___gethostbyname
34921choke me
34922#endif
34923
34924int
34925main ()
34926{
34927return gethostbyname ();
34928 ;
34929 return 0;
34930}
34931_ACEOF
34932rm -f conftest.$ac_objext conftest$ac_exeext
34933if { (ac_try="$ac_link"
34934case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34937esac
34938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34939$as_echo "$ac_try_echo") >&5
34940 (eval "$ac_link") 2>conftest.er1
34941 ac_status=$?
34942 grep -v '^ *+' conftest.er1 >conftest.err
34943 rm -f conftest.er1
34944 cat conftest.err >&5
34945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } && {
34947 test -z "$ac_c_werror_flag" ||
34948 test ! -s conftest.err
34949 } && test -s conftest$ac_exeext && {
34950 test "$cross_compiling" = yes ||
34951 $as_test_x conftest$ac_exeext
34952 }; then
34953 ac_cv_func_gethostbyname=yes
34954else
34955 $as_echo "$as_me: failed program was:" >&5
34956sed 's/^/| /' conftest.$ac_ext >&5
34957
34958 ac_cv_func_gethostbyname=no
34959fi
34960
34961rm -rf conftest.dSYM
34962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34963 conftest$ac_exeext conftest.$ac_ext
34964fi
34965{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34966$as_echo "$ac_cv_func_gethostbyname" >&6; }
34967
34968 if test $ac_cv_func_gethostbyname = no; then
34969 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34970$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34971if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34972 $as_echo_n "(cached) " >&6
34973else
34974 ac_check_lib_save_LIBS=$LIBS
34975LIBS="-lnsl $LIBS"
34976cat >conftest.$ac_ext <<_ACEOF
34977/* confdefs.h. */
34978_ACEOF
34979cat confdefs.h >>conftest.$ac_ext
34980cat >>conftest.$ac_ext <<_ACEOF
34981/* end confdefs.h. */
34982
34983/* Override any GCC internal prototype to avoid an error.
34984 Use char because int might match the return type of a GCC
34985 builtin and then its argument prototype would still apply. */
34986#ifdef __cplusplus
34987extern "C"
34988#endif
34989char gethostbyname ();
34990int
34991main ()
34992{
34993return gethostbyname ();
34994 ;
34995 return 0;
34996}
34997_ACEOF
34998rm -f conftest.$ac_objext conftest$ac_exeext
34999if { (ac_try="$ac_link"
35000case "(($ac_try" in
35001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002 *) ac_try_echo=$ac_try;;
35003esac
35004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35005$as_echo "$ac_try_echo") >&5
35006 (eval "$ac_link") 2>conftest.er1
35007 ac_status=$?
35008 grep -v '^ *+' conftest.er1 >conftest.err
35009 rm -f conftest.er1
35010 cat conftest.err >&5
35011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); } && {
35013 test -z "$ac_c_werror_flag" ||
35014 test ! -s conftest.err
35015 } && test -s conftest$ac_exeext && {
35016 test "$cross_compiling" = yes ||
35017 $as_test_x conftest$ac_exeext
35018 }; then
35019 ac_cv_lib_nsl_gethostbyname=yes
35020else
35021 $as_echo "$as_me: failed program was:" >&5
35022sed 's/^/| /' conftest.$ac_ext >&5
35023
35024 ac_cv_lib_nsl_gethostbyname=no
35025fi
35026
35027rm -rf conftest.dSYM
35028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35029 conftest$ac_exeext conftest.$ac_ext
35030LIBS=$ac_check_lib_save_LIBS
35031fi
35032{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
35033$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
35034if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
35035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
35036fi
35037
35038 if test $ac_cv_lib_nsl_gethostbyname = no; then
35039 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
35040$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
35041if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
35042 $as_echo_n "(cached) " >&6
35043else
35044 ac_check_lib_save_LIBS=$LIBS
35045LIBS="-lbsd $LIBS"
35046cat >conftest.$ac_ext <<_ACEOF
35047/* confdefs.h. */
35048_ACEOF
35049cat confdefs.h >>conftest.$ac_ext
35050cat >>conftest.$ac_ext <<_ACEOF
35051/* end confdefs.h. */
35052
35053/* Override any GCC internal prototype to avoid an error.
35054 Use char because int might match the return type of a GCC
35055 builtin and then its argument prototype would still apply. */
35056#ifdef __cplusplus
35057extern "C"
35058#endif
35059char gethostbyname ();
35060int
35061main ()
35062{
35063return gethostbyname ();
35064 ;
35065 return 0;
35066}
35067_ACEOF
35068rm -f conftest.$ac_objext conftest$ac_exeext
35069if { (ac_try="$ac_link"
35070case "(($ac_try" in
35071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35072 *) ac_try_echo=$ac_try;;
35073esac
35074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35075$as_echo "$ac_try_echo") >&5
35076 (eval "$ac_link") 2>conftest.er1
35077 ac_status=$?
35078 grep -v '^ *+' conftest.er1 >conftest.err
35079 rm -f conftest.er1
35080 cat conftest.err >&5
35081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); } && {
35083 test -z "$ac_c_werror_flag" ||
35084 test ! -s conftest.err
35085 } && test -s conftest$ac_exeext && {
35086 test "$cross_compiling" = yes ||
35087 $as_test_x conftest$ac_exeext
35088 }; then
35089 ac_cv_lib_bsd_gethostbyname=yes
35090else
35091 $as_echo "$as_me: failed program was:" >&5
35092sed 's/^/| /' conftest.$ac_ext >&5
35093
35094 ac_cv_lib_bsd_gethostbyname=no
35095fi
35096
35097rm -rf conftest.dSYM
35098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35099 conftest$ac_exeext conftest.$ac_ext
35100LIBS=$ac_check_lib_save_LIBS
35101fi
35102{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
35103$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
35104if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
35105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
35106fi
35107
35108 fi
35109 fi
35110
35111 # lieder@skyler.mavd.honeywell.com says without -lsocket,
35112 # socket/setsockopt and other routines are undefined under SCO ODT
35113 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
35114 # on later versions), says Simon Leinen: it contains gethostby*
35115 # variants that don't use the name server (or something). -lsocket
35116 # must be given before -lnsl if both are needed. We assume that
35117 # if connect needs -lnsl, so does gethostbyname.
35118 { $as_echo "$as_me:$LINENO: checking for connect" >&5
35119$as_echo_n "checking for connect... " >&6; }
35120if test "${ac_cv_func_connect+set}" = set; then
35121 $as_echo_n "(cached) " >&6
35122else
35123 cat >conftest.$ac_ext <<_ACEOF
35124/* confdefs.h. */
35125_ACEOF
35126cat confdefs.h >>conftest.$ac_ext
35127cat >>conftest.$ac_ext <<_ACEOF
35128/* end confdefs.h. */
35129/* Define connect to an innocuous variant, in case <limits.h> declares connect.
35130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35131#define connect innocuous_connect
35132
35133/* System header to define __stub macros and hopefully few prototypes,
35134 which can conflict with char connect (); below.
35135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35136 <limits.h> exists even on freestanding compilers. */
35137
35138#ifdef __STDC__
35139# include <limits.h>
35140#else
35141# include <assert.h>
35142#endif
35143
35144#undef connect
35145
35146/* Override any GCC internal prototype to avoid an error.
35147 Use char because int might match the return type of a GCC
35148 builtin and then its argument prototype would still apply. */
35149#ifdef __cplusplus
35150extern "C"
35151#endif
35152char connect ();
35153/* The GNU C library defines this for functions which it implements
35154 to always fail with ENOSYS. Some functions are actually named
35155 something starting with __ and the normal name is an alias. */
35156#if defined __stub_connect || defined __stub___connect
35157choke me
35158#endif
35159
35160int
35161main ()
35162{
35163return connect ();
35164 ;
35165 return 0;
35166}
35167_ACEOF
35168rm -f conftest.$ac_objext conftest$ac_exeext
35169if { (ac_try="$ac_link"
35170case "(($ac_try" in
35171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35172 *) ac_try_echo=$ac_try;;
35173esac
35174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35175$as_echo "$ac_try_echo") >&5
35176 (eval "$ac_link") 2>conftest.er1
35177 ac_status=$?
35178 grep -v '^ *+' conftest.er1 >conftest.err
35179 rm -f conftest.er1
35180 cat conftest.err >&5
35181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); } && {
35183 test -z "$ac_c_werror_flag" ||
35184 test ! -s conftest.err
35185 } && test -s conftest$ac_exeext && {
35186 test "$cross_compiling" = yes ||
35187 $as_test_x conftest$ac_exeext
35188 }; then
35189 ac_cv_func_connect=yes
35190else
35191 $as_echo "$as_me: failed program was:" >&5
35192sed 's/^/| /' conftest.$ac_ext >&5
35193
35194 ac_cv_func_connect=no
35195fi
35196
35197rm -rf conftest.dSYM
35198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35199 conftest$ac_exeext conftest.$ac_ext
35200fi
35201{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
35202$as_echo "$ac_cv_func_connect" >&6; }
35203
35204 if test $ac_cv_func_connect = no; then
35205 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
35206$as_echo_n "checking for connect in -lsocket... " >&6; }
35207if test "${ac_cv_lib_socket_connect+set}" = set; then
35208 $as_echo_n "(cached) " >&6
35209else
35210 ac_check_lib_save_LIBS=$LIBS
35211LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
35212cat >conftest.$ac_ext <<_ACEOF
35213/* confdefs.h. */
35214_ACEOF
35215cat confdefs.h >>conftest.$ac_ext
35216cat >>conftest.$ac_ext <<_ACEOF
35217/* end confdefs.h. */
35218
35219/* Override any GCC internal prototype to avoid an error.
35220 Use char because int might match the return type of a GCC
35221 builtin and then its argument prototype would still apply. */
35222#ifdef __cplusplus
35223extern "C"
35224#endif
35225char connect ();
35226int
35227main ()
35228{
35229return connect ();
35230 ;
35231 return 0;
35232}
35233_ACEOF
35234rm -f conftest.$ac_objext conftest$ac_exeext
35235if { (ac_try="$ac_link"
35236case "(($ac_try" in
35237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35238 *) ac_try_echo=$ac_try;;
35239esac
35240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35241$as_echo "$ac_try_echo") >&5
35242 (eval "$ac_link") 2>conftest.er1
35243 ac_status=$?
35244 grep -v '^ *+' conftest.er1 >conftest.err
35245 rm -f conftest.er1
35246 cat conftest.err >&5
35247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); } && {
35249 test -z "$ac_c_werror_flag" ||
35250 test ! -s conftest.err
35251 } && test -s conftest$ac_exeext && {
35252 test "$cross_compiling" = yes ||
35253 $as_test_x conftest$ac_exeext
35254 }; then
35255 ac_cv_lib_socket_connect=yes
35256else
35257 $as_echo "$as_me: failed program was:" >&5
35258sed 's/^/| /' conftest.$ac_ext >&5
35259
35260 ac_cv_lib_socket_connect=no
35261fi
35262
35263rm -rf conftest.dSYM
35264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35265 conftest$ac_exeext conftest.$ac_ext
35266LIBS=$ac_check_lib_save_LIBS
35267fi
35268{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35269$as_echo "$ac_cv_lib_socket_connect" >&6; }
35270if test "x$ac_cv_lib_socket_connect" = x""yes; then
35271 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35272fi
35273
35274 fi
35275
35276 # Guillermo Gomez says -lposix is necessary on A/UX.
35277 { $as_echo "$as_me:$LINENO: checking for remove" >&5
35278$as_echo_n "checking for remove... " >&6; }
35279if test "${ac_cv_func_remove+set}" = set; then
35280 $as_echo_n "(cached) " >&6
35281else
35282 cat >conftest.$ac_ext <<_ACEOF
35283/* confdefs.h. */
35284_ACEOF
35285cat confdefs.h >>conftest.$ac_ext
35286cat >>conftest.$ac_ext <<_ACEOF
35287/* end confdefs.h. */
35288/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35290#define remove innocuous_remove
35291
35292/* System header to define __stub macros and hopefully few prototypes,
35293 which can conflict with char remove (); below.
35294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35295 <limits.h> exists even on freestanding compilers. */
35296
35297#ifdef __STDC__
35298# include <limits.h>
35299#else
35300# include <assert.h>
35301#endif
35302
35303#undef remove
35304
35305/* Override any GCC internal prototype to avoid an error.
35306 Use char because int might match the return type of a GCC
35307 builtin and then its argument prototype would still apply. */
35308#ifdef __cplusplus
35309extern "C"
35310#endif
35311char remove ();
35312/* The GNU C library defines this for functions which it implements
35313 to always fail with ENOSYS. Some functions are actually named
35314 something starting with __ and the normal name is an alias. */
35315#if defined __stub_remove || defined __stub___remove
35316choke me
35317#endif
35318
35319int
35320main ()
35321{
35322return remove ();
35323 ;
35324 return 0;
35325}
35326_ACEOF
35327rm -f conftest.$ac_objext conftest$ac_exeext
35328if { (ac_try="$ac_link"
35329case "(($ac_try" in
35330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35331 *) ac_try_echo=$ac_try;;
35332esac
35333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35334$as_echo "$ac_try_echo") >&5
35335 (eval "$ac_link") 2>conftest.er1
35336 ac_status=$?
35337 grep -v '^ *+' conftest.er1 >conftest.err
35338 rm -f conftest.er1
35339 cat conftest.err >&5
35340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); } && {
35342 test -z "$ac_c_werror_flag" ||
35343 test ! -s conftest.err
35344 } && test -s conftest$ac_exeext && {
35345 test "$cross_compiling" = yes ||
35346 $as_test_x conftest$ac_exeext
35347 }; then
35348 ac_cv_func_remove=yes
35349else
35350 $as_echo "$as_me: failed program was:" >&5
35351sed 's/^/| /' conftest.$ac_ext >&5
35352
35353 ac_cv_func_remove=no
35354fi
35355
35356rm -rf conftest.dSYM
35357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35358 conftest$ac_exeext conftest.$ac_ext
35359fi
35360{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35361$as_echo "$ac_cv_func_remove" >&6; }
35362
35363 if test $ac_cv_func_remove = no; then
35364 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35365$as_echo_n "checking for remove in -lposix... " >&6; }
35366if test "${ac_cv_lib_posix_remove+set}" = set; then
35367 $as_echo_n "(cached) " >&6
35368else
35369 ac_check_lib_save_LIBS=$LIBS
35370LIBS="-lposix $LIBS"
35371cat >conftest.$ac_ext <<_ACEOF
35372/* confdefs.h. */
35373_ACEOF
35374cat confdefs.h >>conftest.$ac_ext
35375cat >>conftest.$ac_ext <<_ACEOF
35376/* end confdefs.h. */
35377
35378/* Override any GCC internal prototype to avoid an error.
35379 Use char because int might match the return type of a GCC
35380 builtin and then its argument prototype would still apply. */
35381#ifdef __cplusplus
35382extern "C"
35383#endif
35384char remove ();
35385int
35386main ()
35387{
35388return remove ();
35389 ;
35390 return 0;
35391}
35392_ACEOF
35393rm -f conftest.$ac_objext conftest$ac_exeext
35394if { (ac_try="$ac_link"
35395case "(($ac_try" in
35396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35397 *) ac_try_echo=$ac_try;;
35398esac
35399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35400$as_echo "$ac_try_echo") >&5
35401 (eval "$ac_link") 2>conftest.er1
35402 ac_status=$?
35403 grep -v '^ *+' conftest.er1 >conftest.err
35404 rm -f conftest.er1
35405 cat conftest.err >&5
35406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } && {
35408 test -z "$ac_c_werror_flag" ||
35409 test ! -s conftest.err
35410 } && test -s conftest$ac_exeext && {
35411 test "$cross_compiling" = yes ||
35412 $as_test_x conftest$ac_exeext
35413 }; then
35414 ac_cv_lib_posix_remove=yes
35415else
35416 $as_echo "$as_me: failed program was:" >&5
35417sed 's/^/| /' conftest.$ac_ext >&5
35418
35419 ac_cv_lib_posix_remove=no
35420fi
35421
35422rm -rf conftest.dSYM
35423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35424 conftest$ac_exeext conftest.$ac_ext
35425LIBS=$ac_check_lib_save_LIBS
35426fi
35427{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35428$as_echo "$ac_cv_lib_posix_remove" >&6; }
35429if test "x$ac_cv_lib_posix_remove" = x""yes; then
35430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35431fi
35432
35433 fi
35434
35435 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35436 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
35437$as_echo_n "checking for shmat... " >&6; }
35438if test "${ac_cv_func_shmat+set}" = set; then
35439 $as_echo_n "(cached) " >&6
35440else
35441 cat >conftest.$ac_ext <<_ACEOF
35442/* confdefs.h. */
35443_ACEOF
35444cat confdefs.h >>conftest.$ac_ext
35445cat >>conftest.$ac_ext <<_ACEOF
35446/* end confdefs.h. */
35447/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35449#define shmat innocuous_shmat
35450
35451/* System header to define __stub macros and hopefully few prototypes,
35452 which can conflict with char shmat (); below.
35453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35454 <limits.h> exists even on freestanding compilers. */
35455
35456#ifdef __STDC__
35457# include <limits.h>
35458#else
35459# include <assert.h>
35460#endif
35461
35462#undef shmat
35463
35464/* Override any GCC internal prototype to avoid an error.
35465 Use char because int might match the return type of a GCC
35466 builtin and then its argument prototype would still apply. */
35467#ifdef __cplusplus
35468extern "C"
35469#endif
35470char shmat ();
35471/* The GNU C library defines this for functions which it implements
35472 to always fail with ENOSYS. Some functions are actually named
35473 something starting with __ and the normal name is an alias. */
35474#if defined __stub_shmat || defined __stub___shmat
35475choke me
35476#endif
35477
35478int
35479main ()
35480{
35481return shmat ();
35482 ;
35483 return 0;
35484}
35485_ACEOF
35486rm -f conftest.$ac_objext conftest$ac_exeext
35487if { (ac_try="$ac_link"
35488case "(($ac_try" in
35489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35490 *) ac_try_echo=$ac_try;;
35491esac
35492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35493$as_echo "$ac_try_echo") >&5
35494 (eval "$ac_link") 2>conftest.er1
35495 ac_status=$?
35496 grep -v '^ *+' conftest.er1 >conftest.err
35497 rm -f conftest.er1
35498 cat conftest.err >&5
35499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35500 (exit $ac_status); } && {
35501 test -z "$ac_c_werror_flag" ||
35502 test ! -s conftest.err
35503 } && test -s conftest$ac_exeext && {
35504 test "$cross_compiling" = yes ||
35505 $as_test_x conftest$ac_exeext
35506 }; then
35507 ac_cv_func_shmat=yes
35508else
35509 $as_echo "$as_me: failed program was:" >&5
35510sed 's/^/| /' conftest.$ac_ext >&5
35511
35512 ac_cv_func_shmat=no
35513fi
35514
35515rm -rf conftest.dSYM
35516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35517 conftest$ac_exeext conftest.$ac_ext
35518fi
35519{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35520$as_echo "$ac_cv_func_shmat" >&6; }
35521
35522 if test $ac_cv_func_shmat = no; then
35523 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35524$as_echo_n "checking for shmat in -lipc... " >&6; }
35525if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35526 $as_echo_n "(cached) " >&6
35527else
35528 ac_check_lib_save_LIBS=$LIBS
35529LIBS="-lipc $LIBS"
35530cat >conftest.$ac_ext <<_ACEOF
35531/* confdefs.h. */
35532_ACEOF
35533cat confdefs.h >>conftest.$ac_ext
35534cat >>conftest.$ac_ext <<_ACEOF
35535/* end confdefs.h. */
35536
35537/* Override any GCC internal prototype to avoid an error.
35538 Use char because int might match the return type of a GCC
35539 builtin and then its argument prototype would still apply. */
35540#ifdef __cplusplus
35541extern "C"
35542#endif
35543char shmat ();
35544int
35545main ()
35546{
35547return shmat ();
35548 ;
35549 return 0;
35550}
35551_ACEOF
35552rm -f conftest.$ac_objext conftest$ac_exeext
35553if { (ac_try="$ac_link"
35554case "(($ac_try" in
35555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35556 *) ac_try_echo=$ac_try;;
35557esac
35558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35559$as_echo "$ac_try_echo") >&5
35560 (eval "$ac_link") 2>conftest.er1
35561 ac_status=$?
35562 grep -v '^ *+' conftest.er1 >conftest.err
35563 rm -f conftest.er1
35564 cat conftest.err >&5
35565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); } && {
35567 test -z "$ac_c_werror_flag" ||
35568 test ! -s conftest.err
35569 } && test -s conftest$ac_exeext && {
35570 test "$cross_compiling" = yes ||
35571 $as_test_x conftest$ac_exeext
35572 }; then
35573 ac_cv_lib_ipc_shmat=yes
35574else
35575 $as_echo "$as_me: failed program was:" >&5
35576sed 's/^/| /' conftest.$ac_ext >&5
35577
35578 ac_cv_lib_ipc_shmat=no
35579fi
35580
35581rm -rf conftest.dSYM
35582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35583 conftest$ac_exeext conftest.$ac_ext
35584LIBS=$ac_check_lib_save_LIBS
35585fi
35586{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35587$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
35588if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
35589 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35590fi
35591
35592 fi
35593 fi
35594
35595 # Check for libraries that X11R6 Xt/Xaw programs need.
35596 ac_save_LDFLAGS=$LDFLAGS
35597 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35598 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35599 # check for ICE first), but we must link in the order -lSM -lICE or
35600 # we get undefined symbols. So assume we have SM if we have ICE.
35601 # These have to be linked with before -lX11, unlike the other
35602 # libraries we check for below, so use a different variable.
35603 # John Interrante, Karl Berry
35604 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35605$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
35606if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35607 $as_echo_n "(cached) " >&6
35608else
35609 ac_check_lib_save_LIBS=$LIBS
35610LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35611cat >conftest.$ac_ext <<_ACEOF
35612/* confdefs.h. */
35613_ACEOF
35614cat confdefs.h >>conftest.$ac_ext
35615cat >>conftest.$ac_ext <<_ACEOF
35616/* end confdefs.h. */
35617
35618/* Override any GCC internal prototype to avoid an error.
35619 Use char because int might match the return type of a GCC
35620 builtin and then its argument prototype would still apply. */
35621#ifdef __cplusplus
35622extern "C"
35623#endif
35624char IceConnectionNumber ();
35625int
35626main ()
35627{
35628return IceConnectionNumber ();
35629 ;
35630 return 0;
35631}
35632_ACEOF
35633rm -f conftest.$ac_objext conftest$ac_exeext
35634if { (ac_try="$ac_link"
35635case "(($ac_try" in
35636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35637 *) ac_try_echo=$ac_try;;
35638esac
35639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35640$as_echo "$ac_try_echo") >&5
35641 (eval "$ac_link") 2>conftest.er1
35642 ac_status=$?
35643 grep -v '^ *+' conftest.er1 >conftest.err
35644 rm -f conftest.er1
35645 cat conftest.err >&5
35646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647 (exit $ac_status); } && {
35648 test -z "$ac_c_werror_flag" ||
35649 test ! -s conftest.err
35650 } && test -s conftest$ac_exeext && {
35651 test "$cross_compiling" = yes ||
35652 $as_test_x conftest$ac_exeext
35653 }; then
35654 ac_cv_lib_ICE_IceConnectionNumber=yes
35655else
35656 $as_echo "$as_me: failed program was:" >&5
35657sed 's/^/| /' conftest.$ac_ext >&5
35658
35659 ac_cv_lib_ICE_IceConnectionNumber=no
35660fi
35661
35662rm -rf conftest.dSYM
35663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35664 conftest$ac_exeext conftest.$ac_ext
35665LIBS=$ac_check_lib_save_LIBS
35666fi
35667{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35668$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35669if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
35670 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35671fi
35672
35673 LDFLAGS=$ac_save_LDFLAGS
35674
35675fi
35676
35677if test "$no_x" != 'yes'; then
35678 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35679$as_echo "-------------------------------------------------------------" >&6; }
35680 { $as_echo "$as_me:$LINENO: checking for X11" >&5
35681$as_echo_n "checking for X11... " >&6; }
35682 { $as_echo "$as_me:$LINENO: result: " >&5
35683$as_echo "" >&6; }
35684 LDFLAGS="$LDFLAGS $X_LIBS"
35685 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
35686 LIBS="$X11_LIBS $LIBS"
35687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
35688
35689
35690cat >>confdefs.h <<\_ACEOF
35691#define X11_DELEGATE 1
35692_ACEOF
35693
35694 #
35695 # Check for X11 shared memory extension
35696 #
35697 # shmctl is required to support the shared memory extension
35698 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
35699$as_echo_n "checking for shmctl... " >&6; }
35700if test "${ac_cv_func_shmctl+set}" = set; then
35701 $as_echo_n "(cached) " >&6
35702else
35703 cat >conftest.$ac_ext <<_ACEOF
35704/* confdefs.h. */
35705_ACEOF
35706cat confdefs.h >>conftest.$ac_ext
35707cat >>conftest.$ac_ext <<_ACEOF
35708/* end confdefs.h. */
35709/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
35710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35711#define shmctl innocuous_shmctl
35712
35713/* System header to define __stub macros and hopefully few prototypes,
35714 which can conflict with char shmctl (); below.
35715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35716 <limits.h> exists even on freestanding compilers. */
35717
35718#ifdef __STDC__
35719# include <limits.h>
35720#else
35721# include <assert.h>
35722#endif
35723
35724#undef shmctl
35725
35726/* Override any GCC internal prototype to avoid an error.
35727 Use char because int might match the return type of a GCC
35728 builtin and then its argument prototype would still apply. */
35729#ifdef __cplusplus
35730extern "C"
35731#endif
35732char shmctl ();
35733/* The GNU C library defines this for functions which it implements
35734 to always fail with ENOSYS. Some functions are actually named
35735 something starting with __ and the normal name is an alias. */
35736#if defined __stub_shmctl || defined __stub___shmctl
35737choke me
35738#endif
35739
35740int
35741main ()
35742{
35743return shmctl ();
35744 ;
35745 return 0;
35746}
35747_ACEOF
35748rm -f conftest.$ac_objext conftest$ac_exeext
35749if { (ac_try="$ac_link"
35750case "(($ac_try" in
35751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35752 *) ac_try_echo=$ac_try;;
35753esac
35754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35755$as_echo "$ac_try_echo") >&5
35756 (eval "$ac_link") 2>conftest.er1
35757 ac_status=$?
35758 grep -v '^ *+' conftest.er1 >conftest.err
35759 rm -f conftest.er1
35760 cat conftest.err >&5
35761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); } && {
35763 test -z "$ac_c_werror_flag" ||
35764 test ! -s conftest.err
35765 } && test -s conftest$ac_exeext && {
35766 test "$cross_compiling" = yes ||
35767 $as_test_x conftest$ac_exeext
35768 }; then
35769 ac_cv_func_shmctl=yes
35770else
35771 $as_echo "$as_me: failed program was:" >&5
35772sed 's/^/| /' conftest.$ac_ext >&5
35773
35774 ac_cv_func_shmctl=no
35775fi
35776
35777rm -rf conftest.dSYM
35778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35779 conftest$ac_exeext conftest.$ac_ext
35780fi
35781{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
35782$as_echo "$ac_cv_func_shmctl" >&6; }
35783if test "x$ac_cv_func_shmctl" = x""yes; then
35784 have_shmctl='yes'
35785fi
35786
35787 if test "$have_shmctl" != 'yes'; then
35788 PERSIST_LIBS=$LIBS
35789 LIBS="$LIBS -lcygipc"
35790 cat >conftest.$ac_ext <<_ACEOF
35791/* confdefs.h. */
35792_ACEOF
35793cat confdefs.h >>conftest.$ac_ext
35794cat >>conftest.$ac_ext <<_ACEOF
35795/* end confdefs.h. */
35796
35797/* Override any GCC internal prototype to avoid an error.
35798 Use char because int might match the return type of a GCC
35799 builtin and then its argument prototype would still apply. */
35800#ifdef __cplusplus
35801extern "C"
35802#endif
35803char shmctl ();
35804int
35805main ()
35806{
35807return shmctl ();
35808 ;
35809 return 0;
35810}
35811_ACEOF
35812rm -f conftest.$ac_objext conftest$ac_exeext
35813if { (ac_try="$ac_link"
35814case "(($ac_try" in
35815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35816 *) ac_try_echo=$ac_try;;
35817esac
35818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35819$as_echo "$ac_try_echo") >&5
35820 (eval "$ac_link") 2>conftest.er1
35821 ac_status=$?
35822 grep -v '^ *+' conftest.er1 >conftest.err
35823 rm -f conftest.er1
35824 cat conftest.err >&5
35825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826 (exit $ac_status); } && {
35827 test -z "$ac_c_werror_flag" ||
35828 test ! -s conftest.err
35829 } && test -s conftest$ac_exeext && {
35830 test "$cross_compiling" = yes ||
35831 $as_test_x conftest$ac_exeext
35832 }; then
35833 have_shmctl='yes'; IPC_LIBS='-lcygipc'
35834else
35835 $as_echo "$as_me: failed program was:" >&5
35836sed 's/^/| /' conftest.$ac_ext >&5
35837
35838
35839fi
35840
35841rm -rf conftest.dSYM
35842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35843 conftest$ac_exeext conftest.$ac_ext
35844 LIBS=$PERSIST_LIBS
35845 fi
35846
35847 if test "$have_shmctl" = 'yes'; then
35848 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35849$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35850if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35851 $as_echo_n "(cached) " >&6
35852else
35853 ac_check_lib_save_LIBS=$LIBS
35854LIBS="-lXext $LIBS"
35855cat >conftest.$ac_ext <<_ACEOF
35856/* confdefs.h. */
35857_ACEOF
35858cat confdefs.h >>conftest.$ac_ext
35859cat >>conftest.$ac_ext <<_ACEOF
35860/* end confdefs.h. */
35861
35862/* Override any GCC internal prototype to avoid an error.
35863 Use char because int might match the return type of a GCC
35864 builtin and then its argument prototype would still apply. */
35865#ifdef __cplusplus
35866extern "C"
35867#endif
35868char XShmAttach ();
35869int
35870main ()
35871{
35872return XShmAttach ();
35873 ;
35874 return 0;
35875}
35876_ACEOF
35877rm -f conftest.$ac_objext conftest$ac_exeext
35878if { (ac_try="$ac_link"
35879case "(($ac_try" in
35880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35881 *) ac_try_echo=$ac_try;;
35882esac
35883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35884$as_echo "$ac_try_echo") >&5
35885 (eval "$ac_link") 2>conftest.er1
35886 ac_status=$?
35887 grep -v '^ *+' conftest.er1 >conftest.err
35888 rm -f conftest.er1
35889 cat conftest.err >&5
35890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); } && {
35892 test -z "$ac_c_werror_flag" ||
35893 test ! -s conftest.err
35894 } && test -s conftest$ac_exeext && {
35895 test "$cross_compiling" = yes ||
35896 $as_test_x conftest$ac_exeext
35897 }; then
35898 ac_cv_lib_Xext_XShmAttach=yes
35899else
35900 $as_echo "$as_me: failed program was:" >&5
35901sed 's/^/| /' conftest.$ac_ext >&5
35902
35903 ac_cv_lib_Xext_XShmAttach=no
35904fi
35905
35906rm -rf conftest.dSYM
35907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35908 conftest$ac_exeext conftest.$ac_ext
35909LIBS=$ac_check_lib_save_LIBS
35910fi
35911{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35912$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35913if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35914 XEXT_LIBS='-lXext' ;
35915cat >>confdefs.h <<\_ACEOF
35916#define HAVE_SHARED_MEMORY 1
35917_ACEOF
35918
35919fi
35920
35921 fi
35922
35923 #
35924 # Check for X11 shape extension
35925 #
35926 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35927$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35928if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35929 $as_echo_n "(cached) " >&6
35930else
35931 ac_check_lib_save_LIBS=$LIBS
35932LIBS="-lXext $LIBS"
35933cat >conftest.$ac_ext <<_ACEOF
35934/* confdefs.h. */
35935_ACEOF
35936cat confdefs.h >>conftest.$ac_ext
35937cat >>conftest.$ac_ext <<_ACEOF
35938/* end confdefs.h. */
35939
35940/* Override any GCC internal prototype to avoid an error.
35941 Use char because int might match the return type of a GCC
35942 builtin and then its argument prototype would still apply. */
35943#ifdef __cplusplus
35944extern "C"
35945#endif
35946char XShapeCombineMask ();
35947int
35948main ()
35949{
35950return XShapeCombineMask ();
35951 ;
35952 return 0;
35953}
35954_ACEOF
35955rm -f conftest.$ac_objext conftest$ac_exeext
35956if { (ac_try="$ac_link"
35957case "(($ac_try" in
35958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35959 *) ac_try_echo=$ac_try;;
35960esac
35961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35962$as_echo "$ac_try_echo") >&5
35963 (eval "$ac_link") 2>conftest.er1
35964 ac_status=$?
35965 grep -v '^ *+' conftest.er1 >conftest.err
35966 rm -f conftest.er1
35967 cat conftest.err >&5
35968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); } && {
35970 test -z "$ac_c_werror_flag" ||
35971 test ! -s conftest.err
35972 } && test -s conftest$ac_exeext && {
35973 test "$cross_compiling" = yes ||
35974 $as_test_x conftest$ac_exeext
35975 }; then
35976 ac_cv_lib_Xext_XShapeCombineMask=yes
35977else
35978 $as_echo "$as_me: failed program was:" >&5
35979sed 's/^/| /' conftest.$ac_ext >&5
35980
35981 ac_cv_lib_Xext_XShapeCombineMask=no
35982fi
35983
35984rm -rf conftest.dSYM
35985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35986 conftest$ac_exeext conftest.$ac_ext
35987LIBS=$ac_check_lib_save_LIBS
35988fi
35989{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35990$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35991if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35992 XEXT_LIBS='-lXext' ;
35993cat >>confdefs.h <<\_ACEOF
35994#define HAVE_SHAPE 1
35995_ACEOF
35996
35997fi
35998
35999 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
36000$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
36001if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
36002 $as_echo_n "(cached) " >&6
36003else
36004 ac_check_lib_save_LIBS=$LIBS
36005LIBS="-lXt $LIBS"
36006cat >conftest.$ac_ext <<_ACEOF
36007/* confdefs.h. */
36008_ACEOF
36009cat confdefs.h >>conftest.$ac_ext
36010cat >>conftest.$ac_ext <<_ACEOF
36011/* end confdefs.h. */
36012
36013/* Override any GCC internal prototype to avoid an error.
36014 Use char because int might match the return type of a GCC
36015 builtin and then its argument prototype would still apply. */
36016#ifdef __cplusplus
36017extern "C"
36018#endif
36019char XtSetEventDispatcher ();
36020int
36021main ()
36022{
36023return XtSetEventDispatcher ();
36024 ;
36025 return 0;
36026}
36027_ACEOF
36028rm -f conftest.$ac_objext conftest$ac_exeext
36029if { (ac_try="$ac_link"
36030case "(($ac_try" in
36031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36032 *) ac_try_echo=$ac_try;;
36033esac
36034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36035$as_echo "$ac_try_echo") >&5
36036 (eval "$ac_link") 2>conftest.er1
36037 ac_status=$?
36038 grep -v '^ *+' conftest.er1 >conftest.err
36039 rm -f conftest.er1
36040 cat conftest.err >&5
36041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); } && {
36043 test -z "$ac_c_werror_flag" ||
36044 test ! -s conftest.err
36045 } && test -s conftest$ac_exeext && {
36046 test "$cross_compiling" = yes ||
36047 $as_test_x conftest$ac_exeext
36048 }; then
36049 ac_cv_lib_Xt_XtSetEventDispatcher=yes
36050else
36051 $as_echo "$as_me: failed program was:" >&5
36052sed 's/^/| /' conftest.$ac_ext >&5
36053
36054 ac_cv_lib_Xt_XtSetEventDispatcher=no
36055fi
36056
36057rm -rf conftest.dSYM
36058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36059 conftest$ac_exeext conftest.$ac_ext
36060LIBS=$ac_check_lib_save_LIBS
36061fi
36062{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
36063$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
36064if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
36065 XT_LIBS='-lXt'
36066fi
36067
36068 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
36069fi
36070if test "$no_x" != 'yes'; then
36071 have_x='yes'
36072else
36073 have_x='no'
36074fi
36075 if test "$have_x" = 'yes'; then
36076 X11_DELEGATE_TRUE=
36077 X11_DELEGATE_FALSE='#'
36078else
36079 X11_DELEGATE_TRUE='#'
36080 X11_DELEGATE_FALSE=
36081fi
36082
36083
36084
36085
36086
36087#
36088# Check for ZLIB
36089#
36090
36091# Check whether --with-zlib was given.
36092if test "${with_zlib+set}" = set; then
36093 withval=$with_zlib; with_zlib=$withval
36094else
36095 with_zlib='yes'
36096fi
36097
36098
36099if test "$with_zlib" != 'yes'; then
36100 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
36101fi
36102
36103have_zlib='no'
36104ZLIB_LIBS=''
36105if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
36106 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36107$as_echo "-------------------------------------------------------------" >&6; }
36108 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
36109$as_echo_n "checking for ZLIB... " >&6; }
36110 { $as_echo "$as_me:$LINENO: result: " >&5
36111$as_echo "" >&6; }
36112 ZLIB_LIBS=''
36113 failed=0
36114 passed=0
36115 if test "${ac_cv_header_zconf_h+set}" = set; then
36116 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36117$as_echo_n "checking for zconf.h... " >&6; }
36118if test "${ac_cv_header_zconf_h+set}" = set; then
36119 $as_echo_n "(cached) " >&6
36120fi
36121{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36122$as_echo "$ac_cv_header_zconf_h" >&6; }
36123else
36124 # Is the header compilable?
36125{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
36126$as_echo_n "checking zconf.h usability... " >&6; }
36127cat >conftest.$ac_ext <<_ACEOF
36128/* confdefs.h. */
36129_ACEOF
36130cat confdefs.h >>conftest.$ac_ext
36131cat >>conftest.$ac_ext <<_ACEOF
36132/* end confdefs.h. */
36133$ac_includes_default
36134#include <zconf.h>
36135_ACEOF
36136rm -f conftest.$ac_objext
36137if { (ac_try="$ac_compile"
36138case "(($ac_try" in
36139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36140 *) ac_try_echo=$ac_try;;
36141esac
36142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36143$as_echo "$ac_try_echo") >&5
36144 (eval "$ac_compile") 2>conftest.er1
36145 ac_status=$?
36146 grep -v '^ *+' conftest.er1 >conftest.err
36147 rm -f conftest.er1
36148 cat conftest.err >&5
36149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); } && {
36151 test -z "$ac_c_werror_flag" ||
36152 test ! -s conftest.err
36153 } && test -s conftest.$ac_objext; then
36154 ac_header_compiler=yes
36155else
36156 $as_echo "$as_me: failed program was:" >&5
36157sed 's/^/| /' conftest.$ac_ext >&5
36158
36159 ac_header_compiler=no
36160fi
36161
36162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36163{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36164$as_echo "$ac_header_compiler" >&6; }
36165
36166# Is the header present?
36167{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
36168$as_echo_n "checking zconf.h presence... " >&6; }
36169cat >conftest.$ac_ext <<_ACEOF
36170/* confdefs.h. */
36171_ACEOF
36172cat confdefs.h >>conftest.$ac_ext
36173cat >>conftest.$ac_ext <<_ACEOF
36174/* end confdefs.h. */
36175#include <zconf.h>
36176_ACEOF
36177if { (ac_try="$ac_cpp conftest.$ac_ext"
36178case "(($ac_try" in
36179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36180 *) ac_try_echo=$ac_try;;
36181esac
36182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36183$as_echo "$ac_try_echo") >&5
36184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36185 ac_status=$?
36186 grep -v '^ *+' conftest.er1 >conftest.err
36187 rm -f conftest.er1
36188 cat conftest.err >&5
36189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); } >/dev/null && {
36191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36192 test ! -s conftest.err
36193 }; then
36194 ac_header_preproc=yes
36195else
36196 $as_echo "$as_me: failed program was:" >&5
36197sed 's/^/| /' conftest.$ac_ext >&5
36198
36199 ac_header_preproc=no
36200fi
36201
36202rm -f conftest.err conftest.$ac_ext
36203{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36204$as_echo "$ac_header_preproc" >&6; }
36205
36206# So? What about this header?
36207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36208 yes:no: )
36209 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
36210$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36211 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
36212$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
36213 ac_header_preproc=yes
36214 ;;
36215 no:yes:* )
36216 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
36217$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
36218 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
36219$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
36220 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
36221$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
36222 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
36223$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
36224 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
36225$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
36226 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
36227$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
36228 ( cat <<\_ASBOX
36229## ----------------------------------------- ##
36230## Report this to http://www.imagemagick.org ##
36231## ----------------------------------------- ##
36232_ASBOX
36233 ) | sed "s/^/$as_me: WARNING: /" >&2
36234 ;;
36235esac
36236{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36237$as_echo_n "checking for zconf.h... " >&6; }
36238if test "${ac_cv_header_zconf_h+set}" = set; then
36239 $as_echo_n "(cached) " >&6
36240else
36241 ac_cv_header_zconf_h=$ac_header_preproc
36242fi
36243{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36244$as_echo "$ac_cv_header_zconf_h" >&6; }
36245
36246fi
36247if test "x$ac_cv_header_zconf_h" = x""yes; then
36248 passed=`expr $passed + 1`
36249else
36250 failed=`expr $failed + 1`
36251fi
36252
36253
36254 if test "${ac_cv_header_zlib_h+set}" = set; then
36255 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36256$as_echo_n "checking for zlib.h... " >&6; }
36257if test "${ac_cv_header_zlib_h+set}" = set; then
36258 $as_echo_n "(cached) " >&6
36259fi
36260{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36261$as_echo "$ac_cv_header_zlib_h" >&6; }
36262else
36263 # Is the header compilable?
36264{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
36265$as_echo_n "checking zlib.h usability... " >&6; }
36266cat >conftest.$ac_ext <<_ACEOF
36267/* confdefs.h. */
36268_ACEOF
36269cat confdefs.h >>conftest.$ac_ext
36270cat >>conftest.$ac_ext <<_ACEOF
36271/* end confdefs.h. */
36272$ac_includes_default
36273#include <zlib.h>
36274_ACEOF
36275rm -f conftest.$ac_objext
36276if { (ac_try="$ac_compile"
36277case "(($ac_try" in
36278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279 *) ac_try_echo=$ac_try;;
36280esac
36281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36282$as_echo "$ac_try_echo") >&5
36283 (eval "$ac_compile") 2>conftest.er1
36284 ac_status=$?
36285 grep -v '^ *+' conftest.er1 >conftest.err
36286 rm -f conftest.er1
36287 cat conftest.err >&5
36288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); } && {
36290 test -z "$ac_c_werror_flag" ||
36291 test ! -s conftest.err
36292 } && test -s conftest.$ac_objext; then
36293 ac_header_compiler=yes
36294else
36295 $as_echo "$as_me: failed program was:" >&5
36296sed 's/^/| /' conftest.$ac_ext >&5
36297
36298 ac_header_compiler=no
36299fi
36300
36301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36302{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36303$as_echo "$ac_header_compiler" >&6; }
36304
36305# Is the header present?
36306{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
36307$as_echo_n "checking zlib.h presence... " >&6; }
36308cat >conftest.$ac_ext <<_ACEOF
36309/* confdefs.h. */
36310_ACEOF
36311cat confdefs.h >>conftest.$ac_ext
36312cat >>conftest.$ac_ext <<_ACEOF
36313/* end confdefs.h. */
36314#include <zlib.h>
36315_ACEOF
36316if { (ac_try="$ac_cpp conftest.$ac_ext"
36317case "(($ac_try" in
36318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36319 *) ac_try_echo=$ac_try;;
36320esac
36321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36322$as_echo "$ac_try_echo") >&5
36323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36324 ac_status=$?
36325 grep -v '^ *+' conftest.er1 >conftest.err
36326 rm -f conftest.er1
36327 cat conftest.err >&5
36328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329 (exit $ac_status); } >/dev/null && {
36330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36331 test ! -s conftest.err
36332 }; then
36333 ac_header_preproc=yes
36334else
36335 $as_echo "$as_me: failed program was:" >&5
36336sed 's/^/| /' conftest.$ac_ext >&5
36337
36338 ac_header_preproc=no
36339fi
36340
36341rm -f conftest.err conftest.$ac_ext
36342{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36343$as_echo "$ac_header_preproc" >&6; }
36344
36345# So? What about this header?
36346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36347 yes:no: )
36348 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36349$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36350 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36351$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36352 ac_header_preproc=yes
36353 ;;
36354 no:yes:* )
36355 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36356$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36357 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36358$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36359 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36360$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36361 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36362$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36363 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36364$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36365 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36366$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36367 ( cat <<\_ASBOX
36368## ----------------------------------------- ##
36369## Report this to http://www.imagemagick.org ##
36370## ----------------------------------------- ##
36371_ASBOX
36372 ) | sed "s/^/$as_me: WARNING: /" >&2
36373 ;;
36374esac
36375{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36376$as_echo_n "checking for zlib.h... " >&6; }
36377if test "${ac_cv_header_zlib_h+set}" = set; then
36378 $as_echo_n "(cached) " >&6
36379else
36380 ac_cv_header_zlib_h=$ac_header_preproc
36381fi
36382{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36383$as_echo "$ac_cv_header_zlib_h" >&6; }
36384
36385fi
36386if test "x$ac_cv_header_zlib_h" = x""yes; then
36387 passed=`expr $passed + 1`
36388else
36389 failed=`expr $failed + 1`
36390fi
36391
36392
36393 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
36394$as_echo_n "checking for compress in -lz... " >&6; }
36395if test "${ac_cv_lib_z_compress+set}" = set; then
36396 $as_echo_n "(cached) " >&6
36397else
36398 ac_check_lib_save_LIBS=$LIBS
36399LIBS="-lz $LIBS"
36400cat >conftest.$ac_ext <<_ACEOF
36401/* confdefs.h. */
36402_ACEOF
36403cat confdefs.h >>conftest.$ac_ext
36404cat >>conftest.$ac_ext <<_ACEOF
36405/* end confdefs.h. */
36406
36407/* Override any GCC internal prototype to avoid an error.
36408 Use char because int might match the return type of a GCC
36409 builtin and then its argument prototype would still apply. */
36410#ifdef __cplusplus
36411extern "C"
36412#endif
36413char compress ();
36414int
36415main ()
36416{
36417return compress ();
36418 ;
36419 return 0;
36420}
36421_ACEOF
36422rm -f conftest.$ac_objext conftest$ac_exeext
36423if { (ac_try="$ac_link"
36424case "(($ac_try" in
36425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36426 *) ac_try_echo=$ac_try;;
36427esac
36428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36429$as_echo "$ac_try_echo") >&5
36430 (eval "$ac_link") 2>conftest.er1
36431 ac_status=$?
36432 grep -v '^ *+' conftest.er1 >conftest.err
36433 rm -f conftest.er1
36434 cat conftest.err >&5
36435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436 (exit $ac_status); } && {
36437 test -z "$ac_c_werror_flag" ||
36438 test ! -s conftest.err
36439 } && test -s conftest$ac_exeext && {
36440 test "$cross_compiling" = yes ||
36441 $as_test_x conftest$ac_exeext
36442 }; then
36443 ac_cv_lib_z_compress=yes
36444else
36445 $as_echo "$as_me: failed program was:" >&5
36446sed 's/^/| /' conftest.$ac_ext >&5
36447
36448 ac_cv_lib_z_compress=no
36449fi
36450
36451rm -rf conftest.dSYM
36452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36453 conftest$ac_exeext conftest.$ac_ext
36454LIBS=$ac_check_lib_save_LIBS
36455fi
36456{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
36457$as_echo "$ac_cv_lib_z_compress" >&6; }
36458if test "x$ac_cv_lib_z_compress" = x""yes; then
36459 passed=`expr $passed + 1`
36460else
36461 failed=`expr $failed + 1`
36462fi
36463
36464 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
36465$as_echo_n "checking for uncompress in -lz... " >&6; }
36466if test "${ac_cv_lib_z_uncompress+set}" = set; then
36467 $as_echo_n "(cached) " >&6
36468else
36469 ac_check_lib_save_LIBS=$LIBS
36470LIBS="-lz $LIBS"
36471cat >conftest.$ac_ext <<_ACEOF
36472/* confdefs.h. */
36473_ACEOF
36474cat confdefs.h >>conftest.$ac_ext
36475cat >>conftest.$ac_ext <<_ACEOF
36476/* end confdefs.h. */
36477
36478/* Override any GCC internal prototype to avoid an error.
36479 Use char because int might match the return type of a GCC
36480 builtin and then its argument prototype would still apply. */
36481#ifdef __cplusplus
36482extern "C"
36483#endif
36484char uncompress ();
36485int
36486main ()
36487{
36488return uncompress ();
36489 ;
36490 return 0;
36491}
36492_ACEOF
36493rm -f conftest.$ac_objext conftest$ac_exeext
36494if { (ac_try="$ac_link"
36495case "(($ac_try" in
36496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36497 *) ac_try_echo=$ac_try;;
36498esac
36499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36500$as_echo "$ac_try_echo") >&5
36501 (eval "$ac_link") 2>conftest.er1
36502 ac_status=$?
36503 grep -v '^ *+' conftest.er1 >conftest.err
36504 rm -f conftest.er1
36505 cat conftest.err >&5
36506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); } && {
36508 test -z "$ac_c_werror_flag" ||
36509 test ! -s conftest.err
36510 } && test -s conftest$ac_exeext && {
36511 test "$cross_compiling" = yes ||
36512 $as_test_x conftest$ac_exeext
36513 }; then
36514 ac_cv_lib_z_uncompress=yes
36515else
36516 $as_echo "$as_me: failed program was:" >&5
36517sed 's/^/| /' conftest.$ac_ext >&5
36518
36519 ac_cv_lib_z_uncompress=no
36520fi
36521
36522rm -rf conftest.dSYM
36523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36524 conftest$ac_exeext conftest.$ac_ext
36525LIBS=$ac_check_lib_save_LIBS
36526fi
36527{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
36528$as_echo "$ac_cv_lib_z_uncompress" >&6; }
36529if test "x$ac_cv_lib_z_uncompress" = x""yes; then
36530 passed=`expr $passed + 1`
36531else
36532 failed=`expr $failed + 1`
36533fi
36534
36535 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
36536$as_echo_n "checking for deflate in -lz... " >&6; }
36537if test "${ac_cv_lib_z_deflate+set}" = set; then
36538 $as_echo_n "(cached) " >&6
36539else
36540 ac_check_lib_save_LIBS=$LIBS
36541LIBS="-lz $LIBS"
36542cat >conftest.$ac_ext <<_ACEOF
36543/* confdefs.h. */
36544_ACEOF
36545cat confdefs.h >>conftest.$ac_ext
36546cat >>conftest.$ac_ext <<_ACEOF
36547/* end confdefs.h. */
36548
36549/* Override any GCC internal prototype to avoid an error.
36550 Use char because int might match the return type of a GCC
36551 builtin and then its argument prototype would still apply. */
36552#ifdef __cplusplus
36553extern "C"
36554#endif
36555char deflate ();
36556int
36557main ()
36558{
36559return deflate ();
36560 ;
36561 return 0;
36562}
36563_ACEOF
36564rm -f conftest.$ac_objext conftest$ac_exeext
36565if { (ac_try="$ac_link"
36566case "(($ac_try" in
36567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36568 *) ac_try_echo=$ac_try;;
36569esac
36570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36571$as_echo "$ac_try_echo") >&5
36572 (eval "$ac_link") 2>conftest.er1
36573 ac_status=$?
36574 grep -v '^ *+' conftest.er1 >conftest.err
36575 rm -f conftest.er1
36576 cat conftest.err >&5
36577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); } && {
36579 test -z "$ac_c_werror_flag" ||
36580 test ! -s conftest.err
36581 } && test -s conftest$ac_exeext && {
36582 test "$cross_compiling" = yes ||
36583 $as_test_x conftest$ac_exeext
36584 }; then
36585 ac_cv_lib_z_deflate=yes
36586else
36587 $as_echo "$as_me: failed program was:" >&5
36588sed 's/^/| /' conftest.$ac_ext >&5
36589
36590 ac_cv_lib_z_deflate=no
36591fi
36592
36593rm -rf conftest.dSYM
36594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36595 conftest$ac_exeext conftest.$ac_ext
36596LIBS=$ac_check_lib_save_LIBS
36597fi
36598{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
36599$as_echo "$ac_cv_lib_z_deflate" >&6; }
36600if test "x$ac_cv_lib_z_deflate" = x""yes; then
36601 passed=`expr $passed + 1`
36602else
36603 failed=`expr $failed + 1`
36604fi
36605
36606 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
36607$as_echo_n "checking for inflate in -lz... " >&6; }
36608if test "${ac_cv_lib_z_inflate+set}" = set; then
36609 $as_echo_n "(cached) " >&6
36610else
36611 ac_check_lib_save_LIBS=$LIBS
36612LIBS="-lz $LIBS"
36613cat >conftest.$ac_ext <<_ACEOF
36614/* confdefs.h. */
36615_ACEOF
36616cat confdefs.h >>conftest.$ac_ext
36617cat >>conftest.$ac_ext <<_ACEOF
36618/* end confdefs.h. */
36619
36620/* Override any GCC internal prototype to avoid an error.
36621 Use char because int might match the return type of a GCC
36622 builtin and then its argument prototype would still apply. */
36623#ifdef __cplusplus
36624extern "C"
36625#endif
36626char inflate ();
36627int
36628main ()
36629{
36630return inflate ();
36631 ;
36632 return 0;
36633}
36634_ACEOF
36635rm -f conftest.$ac_objext conftest$ac_exeext
36636if { (ac_try="$ac_link"
36637case "(($ac_try" in
36638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36639 *) ac_try_echo=$ac_try;;
36640esac
36641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36642$as_echo "$ac_try_echo") >&5
36643 (eval "$ac_link") 2>conftest.er1
36644 ac_status=$?
36645 grep -v '^ *+' conftest.er1 >conftest.err
36646 rm -f conftest.er1
36647 cat conftest.err >&5
36648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649 (exit $ac_status); } && {
36650 test -z "$ac_c_werror_flag" ||
36651 test ! -s conftest.err
36652 } && test -s conftest$ac_exeext && {
36653 test "$cross_compiling" = yes ||
36654 $as_test_x conftest$ac_exeext
36655 }; then
36656 ac_cv_lib_z_inflate=yes
36657else
36658 $as_echo "$as_me: failed program was:" >&5
36659sed 's/^/| /' conftest.$ac_ext >&5
36660
36661 ac_cv_lib_z_inflate=no
36662fi
36663
36664rm -rf conftest.dSYM
36665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36666 conftest$ac_exeext conftest.$ac_ext
36667LIBS=$ac_check_lib_save_LIBS
36668fi
36669{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
36670$as_echo "$ac_cv_lib_z_inflate" >&6; }
36671if test "x$ac_cv_lib_z_inflate" = x""yes; then
36672 passed=`expr $passed + 1`
36673else
36674 failed=`expr $failed + 1`
36675fi
36676
36677 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
36678$as_echo_n "checking for gzseek in -lz... " >&6; }
36679if test "${ac_cv_lib_z_gzseek+set}" = set; then
36680 $as_echo_n "(cached) " >&6
36681else
36682 ac_check_lib_save_LIBS=$LIBS
36683LIBS="-lz $LIBS"
36684cat >conftest.$ac_ext <<_ACEOF
36685/* confdefs.h. */
36686_ACEOF
36687cat confdefs.h >>conftest.$ac_ext
36688cat >>conftest.$ac_ext <<_ACEOF
36689/* end confdefs.h. */
36690
36691/* Override any GCC internal prototype to avoid an error.
36692 Use char because int might match the return type of a GCC
36693 builtin and then its argument prototype would still apply. */
36694#ifdef __cplusplus
36695extern "C"
36696#endif
36697char gzseek ();
36698int
36699main ()
36700{
36701return gzseek ();
36702 ;
36703 return 0;
36704}
36705_ACEOF
36706rm -f conftest.$ac_objext conftest$ac_exeext
36707if { (ac_try="$ac_link"
36708case "(($ac_try" in
36709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710 *) ac_try_echo=$ac_try;;
36711esac
36712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36713$as_echo "$ac_try_echo") >&5
36714 (eval "$ac_link") 2>conftest.er1
36715 ac_status=$?
36716 grep -v '^ *+' conftest.er1 >conftest.err
36717 rm -f conftest.er1
36718 cat conftest.err >&5
36719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); } && {
36721 test -z "$ac_c_werror_flag" ||
36722 test ! -s conftest.err
36723 } && test -s conftest$ac_exeext && {
36724 test "$cross_compiling" = yes ||
36725 $as_test_x conftest$ac_exeext
36726 }; then
36727 ac_cv_lib_z_gzseek=yes
36728else
36729 $as_echo "$as_me: failed program was:" >&5
36730sed 's/^/| /' conftest.$ac_ext >&5
36731
36732 ac_cv_lib_z_gzseek=no
36733fi
36734
36735rm -rf conftest.dSYM
36736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36737 conftest$ac_exeext conftest.$ac_ext
36738LIBS=$ac_check_lib_save_LIBS
36739fi
36740{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
36741$as_echo "$ac_cv_lib_z_gzseek" >&6; }
36742if test "x$ac_cv_lib_z_gzseek" = x""yes; then
36743 passed=`expr $passed + 1`
36744else
36745 failed=`expr $failed + 1`
36746fi
36747
36748 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
36749$as_echo_n "checking for gztell in -lz... " >&6; }
36750if test "${ac_cv_lib_z_gztell+set}" = set; then
36751 $as_echo_n "(cached) " >&6
36752else
36753 ac_check_lib_save_LIBS=$LIBS
36754LIBS="-lz $LIBS"
36755cat >conftest.$ac_ext <<_ACEOF
36756/* confdefs.h. */
36757_ACEOF
36758cat confdefs.h >>conftest.$ac_ext
36759cat >>conftest.$ac_ext <<_ACEOF
36760/* end confdefs.h. */
36761
36762/* Override any GCC internal prototype to avoid an error.
36763 Use char because int might match the return type of a GCC
36764 builtin and then its argument prototype would still apply. */
36765#ifdef __cplusplus
36766extern "C"
36767#endif
36768char gztell ();
36769int
36770main ()
36771{
36772return gztell ();
36773 ;
36774 return 0;
36775}
36776_ACEOF
36777rm -f conftest.$ac_objext conftest$ac_exeext
36778if { (ac_try="$ac_link"
36779case "(($ac_try" in
36780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36781 *) ac_try_echo=$ac_try;;
36782esac
36783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36784$as_echo "$ac_try_echo") >&5
36785 (eval "$ac_link") 2>conftest.er1
36786 ac_status=$?
36787 grep -v '^ *+' conftest.er1 >conftest.err
36788 rm -f conftest.er1
36789 cat conftest.err >&5
36790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); } && {
36792 test -z "$ac_c_werror_flag" ||
36793 test ! -s conftest.err
36794 } && test -s conftest$ac_exeext && {
36795 test "$cross_compiling" = yes ||
36796 $as_test_x conftest$ac_exeext
36797 }; then
36798 ac_cv_lib_z_gztell=yes
36799else
36800 $as_echo "$as_me: failed program was:" >&5
36801sed 's/^/| /' conftest.$ac_ext >&5
36802
36803 ac_cv_lib_z_gztell=no
36804fi
36805
36806rm -rf conftest.dSYM
36807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36808 conftest$ac_exeext conftest.$ac_ext
36809LIBS=$ac_check_lib_save_LIBS
36810fi
36811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
36812$as_echo "$ac_cv_lib_z_gztell" >&6; }
36813if test "x$ac_cv_lib_z_gztell" = x""yes; then
36814 passed=`expr $passed + 1`
36815else
36816 failed=`expr $failed + 1`
36817fi
36818
36819 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
36820$as_echo_n "checking if ZLIB package is complete... " >&6; }
36821 if test $passed -gt 0; then
36822 if test $failed -gt 0; then
36823 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36824$as_echo "no -- some components failed test" >&6; }
36825 have_zlib='no (failed tests)'
36826 else
36827 ZLIB_LIBS='-lz'
36828 LIBS="$ZLIB_LIBS $LIBS"
36829
36830cat >>confdefs.h <<\_ACEOF
36831#define ZLIB_DELEGATE 1
36832_ACEOF
36833
36834 { $as_echo "$as_me:$LINENO: result: yes" >&5
36835$as_echo "yes" >&6; }
36836 have_zlib='yes'
36837 fi
36838 else
36839 { $as_echo "$as_me:$LINENO: result: no" >&5
36840$as_echo "no" >&6; }
36841 fi
36842fi
36843 if test "$have_zlib" = 'yes'; then
36844 ZLIB_DELEGATE_TRUE=
36845 ZLIB_DELEGATE_FALSE='#'
36846else
36847 ZLIB_DELEGATE_TRUE='#'
36848 ZLIB_DELEGATE_FALSE=
36849fi
36850
36851
36852
36853#
36854# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36855#
36856LIB_DL=''
36857if test "$enable_profiling" = 'yes'; then
36858 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36859$as_echo_n "checking for dlopen in -ldl... " >&6; }
36860if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36861 $as_echo_n "(cached) " >&6
36862else
36863 ac_check_lib_save_LIBS=$LIBS
36864LIBS="-ldl $LIBS"
36865cat >conftest.$ac_ext <<_ACEOF
36866/* confdefs.h. */
36867_ACEOF
36868cat confdefs.h >>conftest.$ac_ext
36869cat >>conftest.$ac_ext <<_ACEOF
36870/* end confdefs.h. */
36871
36872/* Override any GCC internal prototype to avoid an error.
36873 Use char because int might match the return type of a GCC
36874 builtin and then its argument prototype would still apply. */
36875#ifdef __cplusplus
36876extern "C"
36877#endif
36878char dlopen ();
36879int
36880main ()
36881{
36882return dlopen ();
36883 ;
36884 return 0;
36885}
36886_ACEOF
36887rm -f conftest.$ac_objext conftest$ac_exeext
36888if { (ac_try="$ac_link"
36889case "(($ac_try" in
36890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36891 *) ac_try_echo=$ac_try;;
36892esac
36893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36894$as_echo "$ac_try_echo") >&5
36895 (eval "$ac_link") 2>conftest.er1
36896 ac_status=$?
36897 grep -v '^ *+' conftest.er1 >conftest.err
36898 rm -f conftest.er1
36899 cat conftest.err >&5
36900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); } && {
36902 test -z "$ac_c_werror_flag" ||
36903 test ! -s conftest.err
36904 } && test -s conftest$ac_exeext && {
36905 test "$cross_compiling" = yes ||
36906 $as_test_x conftest$ac_exeext
36907 }; then
36908 ac_cv_lib_dl_dlopen=yes
36909else
36910 $as_echo "$as_me: failed program was:" >&5
36911sed 's/^/| /' conftest.$ac_ext >&5
36912
36913 ac_cv_lib_dl_dlopen=no
36914fi
36915
36916rm -rf conftest.dSYM
36917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36918 conftest$ac_exeext conftest.$ac_ext
36919LIBS=$ac_check_lib_save_LIBS
36920fi
36921{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36922$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36923if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36924 LIB_DL='-ldl'
36925fi
36926
36927 LIBS="$LIB_DL $LIBS"
36928fi
36929
36930
36931
36932#
36933# Check for Autotrace delegate library.
36934#
36935
36936# Check whether --with-autotrace was given.
36937if test "${with_autotrace+set}" = set; then
36938 withval=$with_autotrace; with_autotrace=$withval
36939else
36940 with_autotrace='no'
36941fi
36942
36943
36944if test "$with_autotrace" != 'yes'; then
36945 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36946fi
36947
36948have_autotrace='no'
36949AUTOTRACE_CFLAGS=""
36950AUTOTRACE_LIBS=""
36951AUTOTRACE_PKG=""
36952if test "x$with_autotrace" = "xyes"; then
36953 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36954$as_echo "-------------------------------------------------------------" >&6; }
36955
36956pkg_failed=no
36957{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36958$as_echo_n "checking for AUTOTRACE... " >&6; }
36959
36960if test -n "$AUTOTRACE_CFLAGS"; then
36961 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36962 elif test -n "$PKG_CONFIG"; then
36963 if test -n "$PKG_CONFIG" && \
36964 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36965 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36966 ac_status=$?
36967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); }; then
36969 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36970else
36971 pkg_failed=yes
36972fi
36973 else
36974 pkg_failed=untried
36975fi
36976if test -n "$AUTOTRACE_LIBS"; then
36977 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36978 elif test -n "$PKG_CONFIG"; then
36979 if test -n "$PKG_CONFIG" && \
36980 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36981 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36982 ac_status=$?
36983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984 (exit $ac_status); }; then
36985 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36986else
36987 pkg_failed=yes
36988fi
36989 else
36990 pkg_failed=untried
36991fi
36992
36993
36994
36995if test $pkg_failed = yes; then
36996
36997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36998 _pkg_short_errors_supported=yes
36999else
37000 _pkg_short_errors_supported=no
37001fi
37002 if test $_pkg_short_errors_supported = yes; then
37003 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
37004 else
37005 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
37006 fi
37007 # Put the nasty error message in config.log where it belongs
37008 echo "$AUTOTRACE_PKG_ERRORS" >&5
37009
37010 { $as_echo "$as_me:$LINENO: result: no" >&5
37011$as_echo "no" >&6; }
37012 have_autotrace=no
37013elif test $pkg_failed = untried; then
37014 have_autotrace=no
37015else
37016 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
37017 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
37018 { $as_echo "$as_me:$LINENO: result: yes" >&5
37019$as_echo "yes" >&6; }
37020 have_autotrace=yes
37021fi
37022 { $as_echo "$as_me:$LINENO: result: " >&5
37023$as_echo "" >&6; }
37024fi
37025
37026if test "$have_autotrace" = 'yes'; then
37027 failed=0
37028
37029cat >>confdefs.h <<\_ACEOF
37030#define AUTOTRACE_DELEGATE 1
37031_ACEOF
37032
37033 if test "$with_modules" = 'no'; then
37034 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
37035 fi
37036fi
37037
37038 if test "$have_autotrace" = 'yes'; then
37039 AUTOTRACE_DELEGATE_TRUE=
37040 AUTOTRACE_DELEGATE_FALSE='#'
37041else
37042 AUTOTRACE_DELEGATE_TRUE='#'
37043 AUTOTRACE_DELEGATE_FALSE=
37044fi
37045
37046
37047
37048
37049
37050#
37051# Check for Display Postscript delegate library.
37052#
37053
37054# Check whether --with-dps was given.
37055if test "${with_dps+set}" = set; then
37056 withval=$with_dps; with_dps=$withval
37057else
37058 with_dps='yes'
37059fi
37060
37061
37062if test "$with_dps" != 'yes'; then
37063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
37064fi
37065
37066have_dps='no'
37067DPS_LIBS=''
37068if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
37069 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37070$as_echo "-------------------------------------------------------------" >&6; }
37071 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
37072$as_echo_n "checking for DPS... " >&6; }
37073 { $as_echo "$as_me:$LINENO: result: " >&5
37074$as_echo "" >&6; }
37075 failed=0
37076 passed=0
37077 PERSIST_CPPFLAGS="$CPPFLAGS"
37078 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
37079 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37080 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37081$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37082if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37083 $as_echo_n "(cached) " >&6
37084fi
37085{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37086$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37087else
37088 # Is the header compilable?
37089{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
37090$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
37091cat >conftest.$ac_ext <<_ACEOF
37092/* confdefs.h. */
37093_ACEOF
37094cat confdefs.h >>conftest.$ac_ext
37095cat >>conftest.$ac_ext <<_ACEOF
37096/* end confdefs.h. */
37097$ac_includes_default
37098#include <DPS/dpsXclient.h>
37099_ACEOF
37100rm -f conftest.$ac_objext
37101if { (ac_try="$ac_compile"
37102case "(($ac_try" in
37103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37104 *) ac_try_echo=$ac_try;;
37105esac
37106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37107$as_echo "$ac_try_echo") >&5
37108 (eval "$ac_compile") 2>conftest.er1
37109 ac_status=$?
37110 grep -v '^ *+' conftest.er1 >conftest.err
37111 rm -f conftest.er1
37112 cat conftest.err >&5
37113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114 (exit $ac_status); } && {
37115 test -z "$ac_c_werror_flag" ||
37116 test ! -s conftest.err
37117 } && test -s conftest.$ac_objext; then
37118 ac_header_compiler=yes
37119else
37120 $as_echo "$as_me: failed program was:" >&5
37121sed 's/^/| /' conftest.$ac_ext >&5
37122
37123 ac_header_compiler=no
37124fi
37125
37126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37127{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37128$as_echo "$ac_header_compiler" >&6; }
37129
37130# Is the header present?
37131{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
37132$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
37133cat >conftest.$ac_ext <<_ACEOF
37134/* confdefs.h. */
37135_ACEOF
37136cat confdefs.h >>conftest.$ac_ext
37137cat >>conftest.$ac_ext <<_ACEOF
37138/* end confdefs.h. */
37139#include <DPS/dpsXclient.h>
37140_ACEOF
37141if { (ac_try="$ac_cpp conftest.$ac_ext"
37142case "(($ac_try" in
37143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37144 *) ac_try_echo=$ac_try;;
37145esac
37146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37147$as_echo "$ac_try_echo") >&5
37148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37149 ac_status=$?
37150 grep -v '^ *+' conftest.er1 >conftest.err
37151 rm -f conftest.er1
37152 cat conftest.err >&5
37153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154 (exit $ac_status); } >/dev/null && {
37155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37156 test ! -s conftest.err
37157 }; then
37158 ac_header_preproc=yes
37159else
37160 $as_echo "$as_me: failed program was:" >&5
37161sed 's/^/| /' conftest.$ac_ext >&5
37162
37163 ac_header_preproc=no
37164fi
37165
37166rm -f conftest.err conftest.$ac_ext
37167{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37168$as_echo "$ac_header_preproc" >&6; }
37169
37170# So? What about this header?
37171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37172 yes:no: )
37173 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
37174$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37175 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
37176$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
37177 ac_header_preproc=yes
37178 ;;
37179 no:yes:* )
37180 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
37181$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
37182 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
37183$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
37184 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
37185$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
37186 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
37187$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
37188 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
37189$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
37190 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
37191$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
37192 ( cat <<\_ASBOX
37193## ----------------------------------------- ##
37194## Report this to http://www.imagemagick.org ##
37195## ----------------------------------------- ##
37196_ASBOX
37197 ) | sed "s/^/$as_me: WARNING: /" >&2
37198 ;;
37199esac
37200{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37201$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37202if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37203 $as_echo_n "(cached) " >&6
37204else
37205 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
37206fi
37207{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37208$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37209
37210fi
37211if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
37212 passed=`expr $passed + 1`
37213else
37214 failed=`expr $failed + 1`
37215fi
37216
37217
37218 # DPS issues:
37219 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
37220 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
37221 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
37222 # ImageMagick itself doesn't use -lXt.
37223 have_libdps='no'
37224 LIBDPS_XT=''
37225 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37226$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37227if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37228 $as_echo_n "(cached) " >&6
37229else
37230 ac_check_lib_save_LIBS=$LIBS
37231LIBS="-ldps $LIBS"
37232cat >conftest.$ac_ext <<_ACEOF
37233/* confdefs.h. */
37234_ACEOF
37235cat confdefs.h >>conftest.$ac_ext
37236cat >>conftest.$ac_ext <<_ACEOF
37237/* end confdefs.h. */
37238
37239/* Override any GCC internal prototype to avoid an error.
37240 Use char because int might match the return type of a GCC
37241 builtin and then its argument prototype would still apply. */
37242#ifdef __cplusplus
37243extern "C"
37244#endif
37245char DPSInitialize ();
37246int
37247main ()
37248{
37249return DPSInitialize ();
37250 ;
37251 return 0;
37252}
37253_ACEOF
37254rm -f conftest.$ac_objext conftest$ac_exeext
37255if { (ac_try="$ac_link"
37256case "(($ac_try" in
37257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37258 *) ac_try_echo=$ac_try;;
37259esac
37260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37261$as_echo "$ac_try_echo") >&5
37262 (eval "$ac_link") 2>conftest.er1
37263 ac_status=$?
37264 grep -v '^ *+' conftest.er1 >conftest.err
37265 rm -f conftest.er1
37266 cat conftest.err >&5
37267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); } && {
37269 test -z "$ac_c_werror_flag" ||
37270 test ! -s conftest.err
37271 } && test -s conftest$ac_exeext && {
37272 test "$cross_compiling" = yes ||
37273 $as_test_x conftest$ac_exeext
37274 }; then
37275 ac_cv_lib_dps_DPSInitialize=yes
37276else
37277 $as_echo "$as_me: failed program was:" >&5
37278sed 's/^/| /' conftest.$ac_ext >&5
37279
37280 ac_cv_lib_dps_DPSInitialize=no
37281fi
37282
37283rm -rf conftest.dSYM
37284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37285 conftest$ac_exeext conftest.$ac_ext
37286LIBS=$ac_check_lib_save_LIBS
37287fi
37288{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37289$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37290if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37291 have_libdps='yes'
37292else
37293 have_libdps='no'
37294fi
37295
37296 if test "$have_libdps" != 'yes'; then
37297 # Unset cache variable so we can try again.
37298 unset ac_cv_lib_dps_DPSInitialize
37299 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37300$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37301if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37302 $as_echo_n "(cached) " >&6
37303else
37304 ac_check_lib_save_LIBS=$LIBS
37305LIBS="-ldps -lXt $LIBS"
37306cat >conftest.$ac_ext <<_ACEOF
37307/* confdefs.h. */
37308_ACEOF
37309cat confdefs.h >>conftest.$ac_ext
37310cat >>conftest.$ac_ext <<_ACEOF
37311/* end confdefs.h. */
37312
37313/* Override any GCC internal prototype to avoid an error.
37314 Use char because int might match the return type of a GCC
37315 builtin and then its argument prototype would still apply. */
37316#ifdef __cplusplus
37317extern "C"
37318#endif
37319char DPSInitialize ();
37320int
37321main ()
37322{
37323return DPSInitialize ();
37324 ;
37325 return 0;
37326}
37327_ACEOF
37328rm -f conftest.$ac_objext conftest$ac_exeext
37329if { (ac_try="$ac_link"
37330case "(($ac_try" in
37331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37332 *) ac_try_echo=$ac_try;;
37333esac
37334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37335$as_echo "$ac_try_echo") >&5
37336 (eval "$ac_link") 2>conftest.er1
37337 ac_status=$?
37338 grep -v '^ *+' conftest.er1 >conftest.err
37339 rm -f conftest.er1
37340 cat conftest.err >&5
37341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37342 (exit $ac_status); } && {
37343 test -z "$ac_c_werror_flag" ||
37344 test ! -s conftest.err
37345 } && test -s conftest$ac_exeext && {
37346 test "$cross_compiling" = yes ||
37347 $as_test_x conftest$ac_exeext
37348 }; then
37349 ac_cv_lib_dps_DPSInitialize=yes
37350else
37351 $as_echo "$as_me: failed program was:" >&5
37352sed 's/^/| /' conftest.$ac_ext >&5
37353
37354 ac_cv_lib_dps_DPSInitialize=no
37355fi
37356
37357rm -rf conftest.dSYM
37358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37359 conftest$ac_exeext conftest.$ac_ext
37360LIBS=$ac_check_lib_save_LIBS
37361fi
37362{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37363$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37364if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37365 have_libdps='yes'
37366else
37367 have_libdps='no'
37368fi
37369
37370 if test "$have_libdps" = 'yes'; then
37371 LIBDPS_XT='-lXt'
37372 fi
37373 fi
37374 if test "$have_libdps" = 'yes'; then
37375 passed=`expr $passed + 1`
37376 else
37377 failed=`expr $failed + 1`
37378 fi
37379 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
37380$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
37381if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
37382 $as_echo_n "(cached) " >&6
37383else
37384 ac_check_lib_save_LIBS=$LIBS
37385LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
37386cat >conftest.$ac_ext <<_ACEOF
37387/* confdefs.h. */
37388_ACEOF
37389cat confdefs.h >>conftest.$ac_ext
37390cat >>conftest.$ac_ext <<_ACEOF
37391/* end confdefs.h. */
37392
37393/* Override any GCC internal prototype to avoid an error.
37394 Use char because int might match the return type of a GCC
37395 builtin and then its argument prototype would still apply. */
37396#ifdef __cplusplus
37397extern "C"
37398#endif
37399char XDPSPixelsPerPoint ();
37400int
37401main ()
37402{
37403return XDPSPixelsPerPoint ();
37404 ;
37405 return 0;
37406}
37407_ACEOF
37408rm -f conftest.$ac_objext conftest$ac_exeext
37409if { (ac_try="$ac_link"
37410case "(($ac_try" in
37411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37412 *) ac_try_echo=$ac_try;;
37413esac
37414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37415$as_echo "$ac_try_echo") >&5
37416 (eval "$ac_link") 2>conftest.er1
37417 ac_status=$?
37418 grep -v '^ *+' conftest.er1 >conftest.err
37419 rm -f conftest.er1
37420 cat conftest.err >&5
37421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422 (exit $ac_status); } && {
37423 test -z "$ac_c_werror_flag" ||
37424 test ! -s conftest.err
37425 } && test -s conftest$ac_exeext && {
37426 test "$cross_compiling" = yes ||
37427 $as_test_x conftest$ac_exeext
37428 }; then
37429 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
37430else
37431 $as_echo "$as_me: failed program was:" >&5
37432sed 's/^/| /' conftest.$ac_ext >&5
37433
37434 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
37435fi
37436
37437rm -rf conftest.dSYM
37438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37439 conftest$ac_exeext conftest.$ac_ext
37440LIBS=$ac_check_lib_save_LIBS
37441fi
37442{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
37443$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
37444if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
37445 passed=`expr $passed + 1`
37446else
37447 failed=`expr $failed + 1`
37448fi
37449
37450 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
37451$as_echo_n "checking if DPS package is complete... " >&6; }
37452 if test $passed -gt 0; then
37453 if test $failed -gt 0; then
37454 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37455$as_echo "no -- some components failed test" >&6; }
37456 have_dps='no (failed tests)'
37457 CPPFLAGS="$PERSIST_CPPFLAGS"
37458 else
37459 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
37460 LIBS="$DPS_LIBS $LIBS"
37461
37462cat >>confdefs.h <<\_ACEOF
37463#define DPS_DELEGATE 1
37464_ACEOF
37465
37466 { $as_echo "$as_me:$LINENO: result: yes" >&5
37467$as_echo "yes" >&6; }
37468 have_dps='yes'
37469 fi
37470 else
37471 { $as_echo "$as_me:$LINENO: result: no" >&5
37472$as_echo "no" >&6; }
37473 CPPFLAGS=$PERSIST_CPPFLAGS
37474 fi
37475fi
37476 if test "$have_dps" = 'yes'; then
37477 DPS_DELEGATE_TRUE=
37478 DPS_DELEGATE_FALSE='#'
37479else
37480 DPS_DELEGATE_TRUE='#'
37481 DPS_DELEGATE_FALSE=
37482fi
37483
37484
37485
37486
37487#
37488# Check for DJVU delegate library.
37489#
37490
37491# Check whether --with-djvu was given.
37492if test "${with_djvu+set}" = set; then
37493 withval=$with_djvu; with_djvu=$withval
37494else
37495 with_djvu='yes'
37496fi
37497
37498
37499if test "$with_djvu" != 'yes'; then
37500 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
37501fi
37502
37503have_djvu='no'
37504DJVU_LIBS=''
37505if test "$with_djvu" != 'no'; then
37506 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37507$as_echo "-------------------------------------------------------------" >&6; }
37508 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
37509$as_echo_n "checking for DJVU... " >&6; }
37510 { $as_echo "$as_me:$LINENO: result: " >&5
37511$as_echo "" >&6; }
37512 failed=0
37513 passed=0
37514 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37515 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37516$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37517if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37518 $as_echo_n "(cached) " >&6
37519fi
37520{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37521$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37522else
37523 # Is the header compilable?
37524{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
37525$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
37526cat >conftest.$ac_ext <<_ACEOF
37527/* confdefs.h. */
37528_ACEOF
37529cat confdefs.h >>conftest.$ac_ext
37530cat >>conftest.$ac_ext <<_ACEOF
37531/* end confdefs.h. */
37532$ac_includes_default
37533#include <libdjvu/ddjvuapi.h>
37534_ACEOF
37535rm -f conftest.$ac_objext
37536if { (ac_try="$ac_compile"
37537case "(($ac_try" in
37538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37539 *) ac_try_echo=$ac_try;;
37540esac
37541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37542$as_echo "$ac_try_echo") >&5
37543 (eval "$ac_compile") 2>conftest.er1
37544 ac_status=$?
37545 grep -v '^ *+' conftest.er1 >conftest.err
37546 rm -f conftest.er1
37547 cat conftest.err >&5
37548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); } && {
37550 test -z "$ac_c_werror_flag" ||
37551 test ! -s conftest.err
37552 } && test -s conftest.$ac_objext; then
37553 ac_header_compiler=yes
37554else
37555 $as_echo "$as_me: failed program was:" >&5
37556sed 's/^/| /' conftest.$ac_ext >&5
37557
37558 ac_header_compiler=no
37559fi
37560
37561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37562{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37563$as_echo "$ac_header_compiler" >&6; }
37564
37565# Is the header present?
37566{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
37567$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
37568cat >conftest.$ac_ext <<_ACEOF
37569/* confdefs.h. */
37570_ACEOF
37571cat confdefs.h >>conftest.$ac_ext
37572cat >>conftest.$ac_ext <<_ACEOF
37573/* end confdefs.h. */
37574#include <libdjvu/ddjvuapi.h>
37575_ACEOF
37576if { (ac_try="$ac_cpp conftest.$ac_ext"
37577case "(($ac_try" in
37578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37579 *) ac_try_echo=$ac_try;;
37580esac
37581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37582$as_echo "$ac_try_echo") >&5
37583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37584 ac_status=$?
37585 grep -v '^ *+' conftest.er1 >conftest.err
37586 rm -f conftest.er1
37587 cat conftest.err >&5
37588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); } >/dev/null && {
37590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37591 test ! -s conftest.err
37592 }; then
37593 ac_header_preproc=yes
37594else
37595 $as_echo "$as_me: failed program was:" >&5
37596sed 's/^/| /' conftest.$ac_ext >&5
37597
37598 ac_header_preproc=no
37599fi
37600
37601rm -f conftest.err conftest.$ac_ext
37602{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37603$as_echo "$ac_header_preproc" >&6; }
37604
37605# So? What about this header?
37606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37607 yes:no: )
37608 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
37609$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37610 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
37611$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
37612 ac_header_preproc=yes
37613 ;;
37614 no:yes:* )
37615 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
37616$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
37617 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
37618$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
37619 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
37620$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
37621 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
37622$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
37623 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
37624$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
37625 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
37626$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
37627 ( cat <<\_ASBOX
37628## ----------------------------------------- ##
37629## Report this to http://www.imagemagick.org ##
37630## ----------------------------------------- ##
37631_ASBOX
37632 ) | sed "s/^/$as_me: WARNING: /" >&2
37633 ;;
37634esac
37635{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37636$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37637if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37638 $as_echo_n "(cached) " >&6
37639else
37640 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
37641fi
37642{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37643$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37644
37645fi
37646if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
37647 passed=`expr $passed + 1`
37648else
37649 failed=`expr $failed + 1`
37650fi
37651
37652
37653 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
37654$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
37655if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
37656 $as_echo_n "(cached) " >&6
37657else
37658 ac_check_lib_save_LIBS=$LIBS
37659LIBS="-ldjvulibre $LIBS"
37660cat >conftest.$ac_ext <<_ACEOF
37661/* confdefs.h. */
37662_ACEOF
37663cat confdefs.h >>conftest.$ac_ext
37664cat >>conftest.$ac_ext <<_ACEOF
37665/* end confdefs.h. */
37666
37667/* Override any GCC internal prototype to avoid an error.
37668 Use char because int might match the return type of a GCC
37669 builtin and then its argument prototype would still apply. */
37670#ifdef __cplusplus
37671extern "C"
37672#endif
37673char ddjvu_context_create ();
37674int
37675main ()
37676{
37677return ddjvu_context_create ();
37678 ;
37679 return 0;
37680}
37681_ACEOF
37682rm -f conftest.$ac_objext conftest$ac_exeext
37683if { (ac_try="$ac_link"
37684case "(($ac_try" in
37685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37686 *) ac_try_echo=$ac_try;;
37687esac
37688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37689$as_echo "$ac_try_echo") >&5
37690 (eval "$ac_link") 2>conftest.er1
37691 ac_status=$?
37692 grep -v '^ *+' conftest.er1 >conftest.err
37693 rm -f conftest.er1
37694 cat conftest.err >&5
37695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696 (exit $ac_status); } && {
37697 test -z "$ac_c_werror_flag" ||
37698 test ! -s conftest.err
37699 } && test -s conftest$ac_exeext && {
37700 test "$cross_compiling" = yes ||
37701 $as_test_x conftest$ac_exeext
37702 }; then
37703 ac_cv_lib_djvulibre_ddjvu_context_create=yes
37704else
37705 $as_echo "$as_me: failed program was:" >&5
37706sed 's/^/| /' conftest.$ac_ext >&5
37707
37708 ac_cv_lib_djvulibre_ddjvu_context_create=no
37709fi
37710
37711rm -rf conftest.dSYM
37712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37713 conftest$ac_exeext conftest.$ac_ext
37714LIBS=$ac_check_lib_save_LIBS
37715fi
37716{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
37717$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
37718if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
37719 passed=`expr $passed + 1`
37720else
37721 failed=`expr $failed + 1`
37722fi
37723
37724 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
37725$as_echo_n "checking if DJVU package is complete... " >&6; }
37726 if test $passed -gt 0; then
37727 if test $failed -gt 0; then
37728 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37729$as_echo "no -- some components failed test" >&6; }
37730 have_djvu='no (failed tests)'
37731 else
37732 DJVU_LIBS='-ldjvulibre'
37733 LIBS="$DJVU_LIBS $LIBS"
37734
37735cat >>confdefs.h <<\_ACEOF
37736#define DJVU_DELEGATE 1
37737_ACEOF
37738
37739 { $as_echo "$as_me:$LINENO: result: yes" >&5
37740$as_echo "yes" >&6; }
37741 have_djvu='yes'
37742 fi
37743 else
37744 { $as_echo "$as_me:$LINENO: result: no" >&5
37745$as_echo "no" >&6; }
37746 fi
37747fi
37748 if test "$have_djvu" = 'yes'; then
37749 DJVU_DELEGATE_TRUE=
37750 DJVU_DELEGATE_FALSE='#'
37751else
37752 DJVU_DELEGATE_TRUE='#'
37753 DJVU_DELEGATE_FALSE=
37754fi
37755
37756
37757
37758
37759#
37760# Check for FFTW delegate library.
37761#
37762
37763# Check whether --with-fftw was given.
37764if test "${with_fftw+set}" = set; then
37765 withval=$with_fftw; with_fftw=$withval
37766else
37767 with_fftw='yes'
37768fi
37769
37770
37771if test "$with_fftw" != 'yes'; then
37772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
37773fi
37774
37775have_fftw='no'
37776FFTW_LIBS=''
37777if test "$with_fftw" != 'no'; then
37778 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37779$as_echo "-------------------------------------------------------------" >&6; }
37780 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
37781$as_echo_n "checking for FFTW... " >&6; }
37782 { $as_echo "$as_me:$LINENO: result: " >&5
37783$as_echo "" >&6; }
37784 failed=0
37785 passed=0
37786 if test "${ac_cv_header_fftw3_h+set}" = set; then
37787 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37788$as_echo_n "checking for fftw3.h... " >&6; }
37789if test "${ac_cv_header_fftw3_h+set}" = set; then
37790 $as_echo_n "(cached) " >&6
37791fi
37792{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37793$as_echo "$ac_cv_header_fftw3_h" >&6; }
37794else
37795 # Is the header compilable?
37796{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
37797$as_echo_n "checking fftw3.h usability... " >&6; }
37798cat >conftest.$ac_ext <<_ACEOF
37799/* confdefs.h. */
37800_ACEOF
37801cat confdefs.h >>conftest.$ac_ext
37802cat >>conftest.$ac_ext <<_ACEOF
37803/* end confdefs.h. */
37804$ac_includes_default
37805#include <fftw3.h>
37806_ACEOF
37807rm -f conftest.$ac_objext
37808if { (ac_try="$ac_compile"
37809case "(($ac_try" in
37810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37811 *) ac_try_echo=$ac_try;;
37812esac
37813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37814$as_echo "$ac_try_echo") >&5
37815 (eval "$ac_compile") 2>conftest.er1
37816 ac_status=$?
37817 grep -v '^ *+' conftest.er1 >conftest.err
37818 rm -f conftest.er1
37819 cat conftest.err >&5
37820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); } && {
37822 test -z "$ac_c_werror_flag" ||
37823 test ! -s conftest.err
37824 } && test -s conftest.$ac_objext; then
37825 ac_header_compiler=yes
37826else
37827 $as_echo "$as_me: failed program was:" >&5
37828sed 's/^/| /' conftest.$ac_ext >&5
37829
37830 ac_header_compiler=no
37831fi
37832
37833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37834{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37835$as_echo "$ac_header_compiler" >&6; }
37836
37837# Is the header present?
37838{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
37839$as_echo_n "checking fftw3.h presence... " >&6; }
37840cat >conftest.$ac_ext <<_ACEOF
37841/* confdefs.h. */
37842_ACEOF
37843cat confdefs.h >>conftest.$ac_ext
37844cat >>conftest.$ac_ext <<_ACEOF
37845/* end confdefs.h. */
37846#include <fftw3.h>
37847_ACEOF
37848if { (ac_try="$ac_cpp conftest.$ac_ext"
37849case "(($ac_try" in
37850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37851 *) ac_try_echo=$ac_try;;
37852esac
37853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37854$as_echo "$ac_try_echo") >&5
37855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37856 ac_status=$?
37857 grep -v '^ *+' conftest.er1 >conftest.err
37858 rm -f conftest.er1
37859 cat conftest.err >&5
37860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861 (exit $ac_status); } >/dev/null && {
37862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37863 test ! -s conftest.err
37864 }; then
37865 ac_header_preproc=yes
37866else
37867 $as_echo "$as_me: failed program was:" >&5
37868sed 's/^/| /' conftest.$ac_ext >&5
37869
37870 ac_header_preproc=no
37871fi
37872
37873rm -f conftest.err conftest.$ac_ext
37874{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37875$as_echo "$ac_header_preproc" >&6; }
37876
37877# So? What about this header?
37878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37879 yes:no: )
37880 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37881$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37882 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37883$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37884 ac_header_preproc=yes
37885 ;;
37886 no:yes:* )
37887 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37888$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37889 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37890$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37891 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37892$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37893 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37894$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37895 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37896$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37897 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37898$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37899 ( cat <<\_ASBOX
37900## ----------------------------------------- ##
37901## Report this to http://www.imagemagick.org ##
37902## ----------------------------------------- ##
37903_ASBOX
37904 ) | sed "s/^/$as_me: WARNING: /" >&2
37905 ;;
37906esac
37907{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37908$as_echo_n "checking for fftw3.h... " >&6; }
37909if test "${ac_cv_header_fftw3_h+set}" = set; then
37910 $as_echo_n "(cached) " >&6
37911else
37912 ac_cv_header_fftw3_h=$ac_header_preproc
37913fi
37914{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37915$as_echo "$ac_cv_header_fftw3_h" >&6; }
37916
37917fi
37918if test "x$ac_cv_header_fftw3_h" = x""yes; then
37919 passed=`expr $passed + 1`
37920else
37921 failed=`expr $failed + 1`
37922fi
37923
37924
37925 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37926$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37927if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37928 $as_echo_n "(cached) " >&6
37929else
37930 ac_check_lib_save_LIBS=$LIBS
37931LIBS="-lfftw3 $LIBS"
37932cat >conftest.$ac_ext <<_ACEOF
37933/* confdefs.h. */
37934_ACEOF
37935cat confdefs.h >>conftest.$ac_ext
37936cat >>conftest.$ac_ext <<_ACEOF
37937/* end confdefs.h. */
37938
37939/* Override any GCC internal prototype to avoid an error.
37940 Use char because int might match the return type of a GCC
37941 builtin and then its argument prototype would still apply. */
37942#ifdef __cplusplus
37943extern "C"
37944#endif
37945char fftw_execute ();
37946int
37947main ()
37948{
37949return fftw_execute ();
37950 ;
37951 return 0;
37952}
37953_ACEOF
37954rm -f conftest.$ac_objext conftest$ac_exeext
37955if { (ac_try="$ac_link"
37956case "(($ac_try" in
37957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37958 *) ac_try_echo=$ac_try;;
37959esac
37960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37961$as_echo "$ac_try_echo") >&5
37962 (eval "$ac_link") 2>conftest.er1
37963 ac_status=$?
37964 grep -v '^ *+' conftest.er1 >conftest.err
37965 rm -f conftest.er1
37966 cat conftest.err >&5
37967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); } && {
37969 test -z "$ac_c_werror_flag" ||
37970 test ! -s conftest.err
37971 } && test -s conftest$ac_exeext && {
37972 test "$cross_compiling" = yes ||
37973 $as_test_x conftest$ac_exeext
37974 }; then
37975 ac_cv_lib_fftw3_fftw_execute=yes
37976else
37977 $as_echo "$as_me: failed program was:" >&5
37978sed 's/^/| /' conftest.$ac_ext >&5
37979
37980 ac_cv_lib_fftw3_fftw_execute=no
37981fi
37982
37983rm -rf conftest.dSYM
37984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37985 conftest$ac_exeext conftest.$ac_ext
37986LIBS=$ac_check_lib_save_LIBS
37987fi
37988{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37989$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37990if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37991 passed=`expr $passed + 1`
37992else
37993 failed=`expr $failed + 1`
37994fi
37995
37996 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37997$as_echo_n "checking if FFTW package is complete... " >&6; }
37998 if test $passed -gt 0; then
37999 if test $failed -gt 0; then
38000 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38001$as_echo "no -- some components failed test" >&6; }
38002 have_fftw='no (failed tests)'
38003 else
38004 FFTW_LIBS='-lfftw3'
38005 LIBS="$FFTW_LIBS $LIBS"
38006
38007cat >>confdefs.h <<\_ACEOF
38008#define FFTW_DELEGATE 1
38009_ACEOF
38010
38011 { $as_echo "$as_me:$LINENO: result: yes" >&5
38012$as_echo "yes" >&6; }
38013 have_fftw='yes'
38014 fi
38015 else
38016 { $as_echo "$as_me:$LINENO: result: no" >&5
38017$as_echo "no" >&6; }
38018 fi
38019fi
38020 if test "$have_fftw" = 'yes'; then
38021 FFTW_DELEGATE_TRUE=
38022 FFTW_DELEGATE_FALSE='#'
38023else
38024 FFTW_DELEGATE_TRUE='#'
38025 FFTW_DELEGATE_FALSE=
38026fi
38027
38028
38029
38030
38031#
38032# Check for FlashPIX delegate library.
38033#
38034
38035# Check whether --with-fpx was given.
38036if test "${with_fpx+set}" = set; then
38037 withval=$with_fpx; with_fpx=$withval
38038else
38039 with_fpx='yes'
38040fi
38041
38042
38043if test "$with_fpx" != 'yes'; then
38044 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
38045fi
38046
38047have_fpx='no'
38048FPX_LIBS=''
38049if test "$with_fpx" != 'no'; then
38050 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38051$as_echo "-------------------------------------------------------------" >&6; }
38052 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
38053$as_echo_n "checking for FlashPIX... " >&6; }
38054 { $as_echo "$as_me:$LINENO: result: " >&5
38055$as_echo "" >&6; }
38056 failed=0
38057 passed=0
38058 ac_ext=cpp
38059ac_cpp='$CXXCPP $CPPFLAGS'
38060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38063
38064
38065if test "${ac_cv_header_fpxlib_h+set}" = set; then
38066 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38067$as_echo_n "checking for fpxlib.h... " >&6; }
38068if test "${ac_cv_header_fpxlib_h+set}" = set; then
38069 $as_echo_n "(cached) " >&6
38070fi
38071{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38072$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38073else
38074 # Is the header compilable?
38075{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
38076$as_echo_n "checking fpxlib.h usability... " >&6; }
38077cat >conftest.$ac_ext <<_ACEOF
38078/* confdefs.h. */
38079_ACEOF
38080cat confdefs.h >>conftest.$ac_ext
38081cat >>conftest.$ac_ext <<_ACEOF
38082/* end confdefs.h. */
38083$ac_includes_default
38084#include <fpxlib.h>
38085_ACEOF
38086rm -f conftest.$ac_objext
38087if { (ac_try="$ac_compile"
38088case "(($ac_try" in
38089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38090 *) ac_try_echo=$ac_try;;
38091esac
38092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38093$as_echo "$ac_try_echo") >&5
38094 (eval "$ac_compile") 2>conftest.er1
38095 ac_status=$?
38096 grep -v '^ *+' conftest.er1 >conftest.err
38097 rm -f conftest.er1
38098 cat conftest.err >&5
38099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100 (exit $ac_status); } && {
38101 test -z "$ac_cxx_werror_flag" ||
38102 test ! -s conftest.err
38103 } && test -s conftest.$ac_objext; then
38104 ac_header_compiler=yes
38105else
38106 $as_echo "$as_me: failed program was:" >&5
38107sed 's/^/| /' conftest.$ac_ext >&5
38108
38109 ac_header_compiler=no
38110fi
38111
38112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38113{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38114$as_echo "$ac_header_compiler" >&6; }
38115
38116# Is the header present?
38117{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
38118$as_echo_n "checking fpxlib.h presence... " >&6; }
38119cat >conftest.$ac_ext <<_ACEOF
38120/* confdefs.h. */
38121_ACEOF
38122cat confdefs.h >>conftest.$ac_ext
38123cat >>conftest.$ac_ext <<_ACEOF
38124/* end confdefs.h. */
38125#include <fpxlib.h>
38126_ACEOF
38127if { (ac_try="$ac_cpp conftest.$ac_ext"
38128case "(($ac_try" in
38129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38130 *) ac_try_echo=$ac_try;;
38131esac
38132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38133$as_echo "$ac_try_echo") >&5
38134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38135 ac_status=$?
38136 grep -v '^ *+' conftest.er1 >conftest.err
38137 rm -f conftest.er1
38138 cat conftest.err >&5
38139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140 (exit $ac_status); } >/dev/null && {
38141 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
38142 test ! -s conftest.err
38143 }; then
38144 ac_header_preproc=yes
38145else
38146 $as_echo "$as_me: failed program was:" >&5
38147sed 's/^/| /' conftest.$ac_ext >&5
38148
38149 ac_header_preproc=no
38150fi
38151
38152rm -f conftest.err conftest.$ac_ext
38153{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38154$as_echo "$ac_header_preproc" >&6; }
38155
38156# So? What about this header?
38157case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38158 yes:no: )
38159 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38160$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38161 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
38162$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
38163 ac_header_preproc=yes
38164 ;;
38165 no:yes:* )
38166 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
38167$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
38168 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
38169$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
38170 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
38171$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
38172 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
38173$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
38174 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
38175$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
38176 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
38177$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
38178 ( cat <<\_ASBOX
38179## ----------------------------------------- ##
38180## Report this to http://www.imagemagick.org ##
38181## ----------------------------------------- ##
38182_ASBOX
38183 ) | sed "s/^/$as_me: WARNING: /" >&2
38184 ;;
38185esac
38186{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38187$as_echo_n "checking for fpxlib.h... " >&6; }
38188if test "${ac_cv_header_fpxlib_h+set}" = set; then
38189 $as_echo_n "(cached) " >&6
38190else
38191 ac_cv_header_fpxlib_h=$ac_header_preproc
38192fi
38193{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38194$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38195
38196fi
38197if test "x$ac_cv_header_fpxlib_h" = x""yes; then
38198 passed=`expr $passed + 1`
38199else
38200 failed=`expr $failed + 1`
38201fi
38202
38203
38204 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
38205$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
38206if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
38207 $as_echo_n "(cached) " >&6
38208else
38209 ac_check_lib_save_LIBS=$LIBS
38210LIBS="-lfpx $LIBS"
38211cat >conftest.$ac_ext <<_ACEOF
38212/* confdefs.h. */
38213_ACEOF
38214cat confdefs.h >>conftest.$ac_ext
38215cat >>conftest.$ac_ext <<_ACEOF
38216/* end confdefs.h. */
38217
38218/* Override any GCC internal prototype to avoid an error.
38219 Use char because int might match the return type of a GCC
38220 builtin and then its argument prototype would still apply. */
38221#ifdef __cplusplus
38222extern "C"
38223#endif
38224char FPX_OpenImageByFilename ();
38225int
38226main ()
38227{
38228return FPX_OpenImageByFilename ();
38229 ;
38230 return 0;
38231}
38232_ACEOF
38233rm -f conftest.$ac_objext conftest$ac_exeext
38234if { (ac_try="$ac_link"
38235case "(($ac_try" in
38236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38237 *) ac_try_echo=$ac_try;;
38238esac
38239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38240$as_echo "$ac_try_echo") >&5
38241 (eval "$ac_link") 2>conftest.er1
38242 ac_status=$?
38243 grep -v '^ *+' conftest.er1 >conftest.err
38244 rm -f conftest.er1
38245 cat conftest.err >&5
38246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247 (exit $ac_status); } && {
38248 test -z "$ac_cxx_werror_flag" ||
38249 test ! -s conftest.err
38250 } && test -s conftest$ac_exeext && {
38251 test "$cross_compiling" = yes ||
38252 $as_test_x conftest$ac_exeext
38253 }; then
38254 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
38255else
38256 $as_echo "$as_me: failed program was:" >&5
38257sed 's/^/| /' conftest.$ac_ext >&5
38258
38259 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
38260fi
38261
38262rm -rf conftest.dSYM
38263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38264 conftest$ac_exeext conftest.$ac_ext
38265LIBS=$ac_check_lib_save_LIBS
38266fi
38267{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
38268$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
38269if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
38270 passed=`expr $passed + 1`
38271else
38272 failed=`expr $failed + 1`
38273fi
38274
38275 ac_ext=c
38276ac_cpp='$CPP $CPPFLAGS'
38277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38279ac_compiler_gnu=$ac_cv_c_compiler_gnu
38280
38281 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
38282$as_echo_n "checking if FlashPIX package is complete... " >&6; }
38283 if test $passed -gt 0; then
38284 if test $failed -gt 0; then
38285 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38286$as_echo "no -- some components failed test" >&6; }
38287 have_fpx='no (failed tests)'
38288 else
38289 FPX_LIBS='-lfpx'
38290
38291cat >>confdefs.h <<\_ACEOF
38292#define FPX_DELEGATE 1
38293_ACEOF
38294
38295 { $as_echo "$as_me:$LINENO: result: yes" >&5
38296$as_echo "yes" >&6; }
38297 have_fpx='yes'
38298 PERLMAINCC="$CXX"
38299 fi
38300 else
38301 { $as_echo "$as_me:$LINENO: result: no" >&5
38302$as_echo "no" >&6; }
38303 fi
38304fi
38305 if test "$have_fpx" = 'yes'; then
38306 FPX_DELEGATE_TRUE=
38307 FPX_DELEGATE_FALSE='#'
38308else
38309 FPX_DELEGATE_TRUE='#'
38310 FPX_DELEGATE_FALSE=
38311fi
38312
38313
38314
38315
38316#
38317# Check for fontconfig delegate library.
38318#
38319
38320# Check whether --with-fontconfig was given.
38321if test "${with_fontconfig+set}" = set; then
38322 withval=$with_fontconfig; with_fontconfig=$withval
38323else
38324 with_fontconfig=$have_x
38325fi
38326
38327
38328if test "$with_fontconfig" != 'yes'; then
38329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
38330fi
38331
38332have_fontconfig='no'
38333FONTCONFIG_CFLAGS=""
38334FONTCONFIG_LIBS=""
38335FONTCONFIG_PKG=""
38336if test "x$with_fontconfig" = "xyes"; then
38337 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38338$as_echo "-------------------------------------------------------------" >&6; }
38339
38340pkg_failed=no
38341{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
38342$as_echo_n "checking for FONTCONFIG... " >&6; }
38343
38344if test -n "$FONTCONFIG_CFLAGS"; then
38345 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
38346 elif test -n "$PKG_CONFIG"; then
38347 if test -n "$PKG_CONFIG" && \
38348 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38349 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38350 ac_status=$?
38351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); }; then
38353 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
38354else
38355 pkg_failed=yes
38356fi
38357 else
38358 pkg_failed=untried
38359fi
38360if test -n "$FONTCONFIG_LIBS"; then
38361 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
38362 elif test -n "$PKG_CONFIG"; then
38363 if test -n "$PKG_CONFIG" && \
38364 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38365 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38366 ac_status=$?
38367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); }; then
38369 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
38370else
38371 pkg_failed=yes
38372fi
38373 else
38374 pkg_failed=untried
38375fi
38376
38377
38378
38379if test $pkg_failed = yes; then
38380
38381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38382 _pkg_short_errors_supported=yes
38383else
38384 _pkg_short_errors_supported=no
38385fi
38386 if test $_pkg_short_errors_supported = yes; then
38387 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
38388 else
38389 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
38390 fi
38391 # Put the nasty error message in config.log where it belongs
38392 echo "$FONTCONFIG_PKG_ERRORS" >&5
38393
38394 { $as_echo "$as_me:$LINENO: result: no" >&5
38395$as_echo "no" >&6; }
38396 have_fontconfig=no
38397elif test $pkg_failed = untried; then
38398 have_fontconfig=no
38399else
38400 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
38401 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
38402 { $as_echo "$as_me:$LINENO: result: yes" >&5
38403$as_echo "yes" >&6; }
38404 have_fontconfig=yes
38405fi
38406 { $as_echo "$as_me:$LINENO: result: " >&5
38407$as_echo "" >&6; }
38408fi
38409
38410if test "$have_fontconfig" = 'yes'; then
38411
38412cat >>confdefs.h <<\_ACEOF
38413#define FONTCONFIG_DELEGATE 1
38414_ACEOF
38415
38416 if test "$with_modules" = 'no'; then
38417 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
38418 fi
38419fi
38420
38421 if test "$have_fontconfig" = 'yes'; then
38422 FONTCONFIG_DELEGATE_TRUE=
38423 FONTCONFIG_DELEGATE_FALSE='#'
38424else
38425 FONTCONFIG_DELEGATE_TRUE='#'
38426 FONTCONFIG_DELEGATE_FALSE=
38427fi
38428
38429
38430
38431
38432
38433#
38434# Check for freetype delegate library.
38435#
38436
38437# Check whether --with-freetype was given.
38438if test "${with_freetype+set}" = set; then
38439 withval=$with_freetype; with_freetype=$withval
38440else
38441 with_freetype='yes'
38442fi
38443
38444
38445
38446if test "$with_freetype" != 'yes'; then
38447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
38448fi
38449
38450have_freetype='no'
38451FREETYPE_LIBS=''
38452if test "$with_freetype" != 'no'; then
38453 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38454$as_echo "-------------------------------------------------------------" >&6; }
38455 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
38456$as_echo_n "checking for FreeType 2.0... " >&6; }
38457 { $as_echo "$as_me:$LINENO: result: " >&5
38458$as_echo "" >&6; }
38459 failed=0
38460 passed=0
38461 PERSIST_LDFLAGS="$LDFLAGS"
38462 PERSIST_CPPFLAGS="$CPPFLAGS"
38463 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
38464 :
38465 else
38466 freetype_config=''
38467 for ac_prog in freetype-config
38468do
38469 # Extract the first word of "$ac_prog", so it can be a program name with args.
38470set dummy $ac_prog; ac_word=$2
38471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38472$as_echo_n "checking for $ac_word... " >&6; }
38473if test "${ac_cv_prog_freetype_config+set}" = set; then
38474 $as_echo_n "(cached) " >&6
38475else
38476 if test -n "$freetype_config"; then
38477 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
38478else
38479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38480for as_dir in $PATH
38481do
38482 IFS=$as_save_IFS
38483 test -z "$as_dir" && as_dir=.
38484 for ac_exec_ext in '' $ac_executable_extensions; do
38485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38486 ac_cv_prog_freetype_config="$ac_prog"
38487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38488 break 2
38489 fi
38490done
38491done
38492IFS=$as_save_IFS
38493
38494fi
38495fi
38496freetype_config=$ac_cv_prog_freetype_config
38497if test -n "$freetype_config"; then
38498 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
38499$as_echo "$freetype_config" >&6; }
38500else
38501 { $as_echo "$as_me:$LINENO: result: no" >&5
38502$as_echo "no" >&6; }
38503fi
38504
38505
38506 test -n "$freetype_config" && break
38507done
38508 if test -n "$freetype_config"; then
38509 freetype_cflags=`$freetype_config --cflags`
38510 freetype_libs=`$freetype_config --libs`
38511 LDFLAGS="$LDFLAGS $freetype_libs"
38512 CPPFLAGS="$freetype_cflags $CPPFLAGS"
38513 fi
38514 fi
38515
38516 if test "$FREETYPE_LIBS" = ''; then
38517 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
38518$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
38519if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
38520 $as_echo_n "(cached) " >&6
38521else
38522 ac_check_lib_save_LIBS=$LIBS
38523LIBS="-lfreetype $LIBS"
38524cat >conftest.$ac_ext <<_ACEOF
38525/* confdefs.h. */
38526_ACEOF
38527cat confdefs.h >>conftest.$ac_ext
38528cat >>conftest.$ac_ext <<_ACEOF
38529/* end confdefs.h. */
38530
38531/* Override any GCC internal prototype to avoid an error.
38532 Use char because int might match the return type of a GCC
38533 builtin and then its argument prototype would still apply. */
38534#ifdef __cplusplus
38535extern "C"
38536#endif
38537char FT_Init_FreeType ();
38538int
38539main ()
38540{
38541return FT_Init_FreeType ();
38542 ;
38543 return 0;
38544}
38545_ACEOF
38546rm -f conftest.$ac_objext conftest$ac_exeext
38547if { (ac_try="$ac_link"
38548case "(($ac_try" in
38549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38550 *) ac_try_echo=$ac_try;;
38551esac
38552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38553$as_echo "$ac_try_echo") >&5
38554 (eval "$ac_link") 2>conftest.er1
38555 ac_status=$?
38556 grep -v '^ *+' conftest.er1 >conftest.err
38557 rm -f conftest.er1
38558 cat conftest.err >&5
38559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); } && {
38561 test -z "$ac_c_werror_flag" ||
38562 test ! -s conftest.err
38563 } && test -s conftest$ac_exeext && {
38564 test "$cross_compiling" = yes ||
38565 $as_test_x conftest$ac_exeext
38566 }; then
38567 ac_cv_lib_freetype_FT_Init_FreeType=yes
38568else
38569 $as_echo "$as_me: failed program was:" >&5
38570sed 's/^/| /' conftest.$ac_ext >&5
38571
38572 ac_cv_lib_freetype_FT_Init_FreeType=no
38573fi
38574
38575rm -rf conftest.dSYM
38576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38577 conftest$ac_exeext conftest.$ac_ext
38578LIBS=$ac_check_lib_save_LIBS
38579fi
38580{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
38581$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
38582if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
38583 FREETYPE_LIBS='-lfreetype'
38584fi
38585
38586 if test "$FREETYPE_LIBS" != ''; then
38587 passed=`expr $passed + 1`
38588 else
38589 failed=`expr $failed + 1`
38590 LDFLAGS="$PERSIST_LDFLAGS"
38591 fi
38592 fi
38593
38594 if test "${ac_cv_header_ft2build_h+set}" = set; then
38595 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38596$as_echo_n "checking for ft2build.h... " >&6; }
38597if test "${ac_cv_header_ft2build_h+set}" = set; then
38598 $as_echo_n "(cached) " >&6
38599fi
38600{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38601$as_echo "$ac_cv_header_ft2build_h" >&6; }
38602else
38603 # Is the header compilable?
38604{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
38605$as_echo_n "checking ft2build.h usability... " >&6; }
38606cat >conftest.$ac_ext <<_ACEOF
38607/* confdefs.h. */
38608_ACEOF
38609cat confdefs.h >>conftest.$ac_ext
38610cat >>conftest.$ac_ext <<_ACEOF
38611/* end confdefs.h. */
38612$ac_includes_default
38613#include <ft2build.h>
38614_ACEOF
38615rm -f conftest.$ac_objext
38616if { (ac_try="$ac_compile"
38617case "(($ac_try" in
38618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38619 *) ac_try_echo=$ac_try;;
38620esac
38621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38622$as_echo "$ac_try_echo") >&5
38623 (eval "$ac_compile") 2>conftest.er1
38624 ac_status=$?
38625 grep -v '^ *+' conftest.er1 >conftest.err
38626 rm -f conftest.er1
38627 cat conftest.err >&5
38628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } && {
38630 test -z "$ac_c_werror_flag" ||
38631 test ! -s conftest.err
38632 } && test -s conftest.$ac_objext; then
38633 ac_header_compiler=yes
38634else
38635 $as_echo "$as_me: failed program was:" >&5
38636sed 's/^/| /' conftest.$ac_ext >&5
38637
38638 ac_header_compiler=no
38639fi
38640
38641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38642{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38643$as_echo "$ac_header_compiler" >&6; }
38644
38645# Is the header present?
38646{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
38647$as_echo_n "checking ft2build.h presence... " >&6; }
38648cat >conftest.$ac_ext <<_ACEOF
38649/* confdefs.h. */
38650_ACEOF
38651cat confdefs.h >>conftest.$ac_ext
38652cat >>conftest.$ac_ext <<_ACEOF
38653/* end confdefs.h. */
38654#include <ft2build.h>
38655_ACEOF
38656if { (ac_try="$ac_cpp conftest.$ac_ext"
38657case "(($ac_try" in
38658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38659 *) ac_try_echo=$ac_try;;
38660esac
38661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38662$as_echo "$ac_try_echo") >&5
38663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38664 ac_status=$?
38665 grep -v '^ *+' conftest.er1 >conftest.err
38666 rm -f conftest.er1
38667 cat conftest.err >&5
38668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); } >/dev/null && {
38670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38671 test ! -s conftest.err
38672 }; then
38673 ac_header_preproc=yes
38674else
38675 $as_echo "$as_me: failed program was:" >&5
38676sed 's/^/| /' conftest.$ac_ext >&5
38677
38678 ac_header_preproc=no
38679fi
38680
38681rm -f conftest.err conftest.$ac_ext
38682{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38683$as_echo "$ac_header_preproc" >&6; }
38684
38685# So? What about this header?
38686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38687 yes:no: )
38688 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
38689$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38690 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
38691$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
38692 ac_header_preproc=yes
38693 ;;
38694 no:yes:* )
38695 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
38696$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
38697 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
38698$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
38699 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
38700$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
38701 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
38702$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
38703 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
38704$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
38705 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
38706$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
38707 ( cat <<\_ASBOX
38708## ----------------------------------------- ##
38709## Report this to http://www.imagemagick.org ##
38710## ----------------------------------------- ##
38711_ASBOX
38712 ) | sed "s/^/$as_me: WARNING: /" >&2
38713 ;;
38714esac
38715{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38716$as_echo_n "checking for ft2build.h... " >&6; }
38717if test "${ac_cv_header_ft2build_h+set}" = set; then
38718 $as_echo_n "(cached) " >&6
38719else
38720 ac_cv_header_ft2build_h=$ac_header_preproc
38721fi
38722{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38723$as_echo "$ac_cv_header_ft2build_h" >&6; }
38724
38725fi
38726if test "x$ac_cv_header_ft2build_h" = x""yes; then
38727 FT2BUILD_H='#include <ft2build.h>'
38728else
38729 ft2build=''
38730fi
38731
38732
38733 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
38734$as_echo_n "checking for freetype/freetype.h... " >&6; }
38735if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
38736 $as_echo_n "(cached) " >&6
38737else
38738 cat >conftest.$ac_ext <<_ACEOF
38739/* confdefs.h. */
38740_ACEOF
38741cat confdefs.h >>conftest.$ac_ext
38742cat >>conftest.$ac_ext <<_ACEOF
38743/* end confdefs.h. */
38744$FT2BUILD_H
38745
38746#include <freetype/freetype.h>
38747_ACEOF
38748rm -f conftest.$ac_objext
38749if { (ac_try="$ac_compile"
38750case "(($ac_try" in
38751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752 *) ac_try_echo=$ac_try;;
38753esac
38754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38755$as_echo "$ac_try_echo") >&5
38756 (eval "$ac_compile") 2>conftest.er1
38757 ac_status=$?
38758 grep -v '^ *+' conftest.er1 >conftest.err
38759 rm -f conftest.er1
38760 cat conftest.err >&5
38761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); } && {
38763 test -z "$ac_c_werror_flag" ||
38764 test ! -s conftest.err
38765 } && test -s conftest.$ac_objext; then
38766 ac_cv_header_freetype_freetype_h=yes
38767else
38768 $as_echo "$as_me: failed program was:" >&5
38769sed 's/^/| /' conftest.$ac_ext >&5
38770
38771 ac_cv_header_freetype_freetype_h=no
38772fi
38773
38774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38775fi
38776{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
38777$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
38778if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
38779 have_freetype_h='yes'
38780else
38781 have_freetype_h='no'
38782fi
38783
38784
38785 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
38786 passed=`expr $passed + 1`
38787 else
38788 failed=`expr $failed + 1`
38789 CPPFLAGS="$PERSIST_CPPFLAGS"
38790 fi
38791
38792 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
38793$as_echo_n "checking if FreeType package is complete... " >&6; }
38794 if test $passed -gt 0; then
38795 if test $failed -gt 0; then
38796 FREETYPE_LIBS=''
38797 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38798$as_echo "no -- some components failed test" >&6; }
38799 have_freetype='no (failed tests)'
38800 else
38801 LIBS="$FREETYPE_LIBS $LIBS"
38802
38803cat >>confdefs.h <<\_ACEOF
38804#define FREETYPE_DELEGATE 1
38805_ACEOF
38806
38807 if test "$ac_cv_header_ft2build_h" = 'yes'; then
38808
38809cat >>confdefs.h <<\_ACEOF
38810#define HAVE_FT2BUILD_H 1
38811_ACEOF
38812
38813 fi
38814 { $as_echo "$as_me:$LINENO: result: yes" >&5
38815$as_echo "yes" >&6; }
38816 have_freetype='yes'
38817 fi
38818 else
38819 { $as_echo "$as_me:$LINENO: result: no" >&5
38820$as_echo "no" >&6; }
38821 fi
38822fi
38823 if test "$have_freetype" = 'yes'; then
38824 FREETYPE_DELEGATE_TRUE=
38825 FREETYPE_DELEGATE_FALSE='#'
38826else
38827 FREETYPE_DELEGATE_TRUE='#'
38828 FREETYPE_DELEGATE_FALSE=
38829fi
38830
38831
38832
38833
38834
38835#
38836# Check for Ghostscript library or framework.
38837#
38838# Test for iapi.h & test for gsapi_new_instance in -lgs
38839# or -framework Ghostscript
38840
38841
38842# Check whether --with-gslib was given.
38843if test "${with_gslib+set}" = set; then
38844 withval=$with_gslib; with_gslib=$withval
38845else
38846 with_gslib='no'
38847fi
38848
38849
cristyb7931f12009-09-25 10:22:21 +000038850gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000038851if test "$with_gslib" != 'yes'; then
38852 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38853fi
38854
38855have_gslib='no'
38856GS_LIBS=''
38857if test "$with_gslib" != 'no'; then
38858 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38859$as_echo "-------------------------------------------------------------" >&6; }
38860 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38861$as_echo_n "checking for Ghostscript... " >&6; }
38862 { $as_echo "$as_me:$LINENO: result: " >&5
38863$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000038864 framework=0
cristy3ed852e2009-09-05 21:47:34 +000038865 failed=0
38866 passed=0
38867 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38868 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38869$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38870if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38871 $as_echo_n "(cached) " >&6
38872fi
38873{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38874$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38875else
38876 # Is the header compilable?
38877{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38878$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38879cat >conftest.$ac_ext <<_ACEOF
38880/* confdefs.h. */
38881_ACEOF
38882cat confdefs.h >>conftest.$ac_ext
38883cat >>conftest.$ac_ext <<_ACEOF
38884/* end confdefs.h. */
38885$ac_includes_default
38886#include <ghostscript/iapi.h>
38887_ACEOF
38888rm -f conftest.$ac_objext
38889if { (ac_try="$ac_compile"
38890case "(($ac_try" in
38891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38892 *) ac_try_echo=$ac_try;;
38893esac
38894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38895$as_echo "$ac_try_echo") >&5
38896 (eval "$ac_compile") 2>conftest.er1
38897 ac_status=$?
38898 grep -v '^ *+' conftest.er1 >conftest.err
38899 rm -f conftest.er1
38900 cat conftest.err >&5
38901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); } && {
38903 test -z "$ac_c_werror_flag" ||
38904 test ! -s conftest.err
38905 } && test -s conftest.$ac_objext; then
38906 ac_header_compiler=yes
38907else
38908 $as_echo "$as_me: failed program was:" >&5
38909sed 's/^/| /' conftest.$ac_ext >&5
38910
38911 ac_header_compiler=no
38912fi
38913
38914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38915{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38916$as_echo "$ac_header_compiler" >&6; }
38917
38918# Is the header present?
38919{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38920$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38921cat >conftest.$ac_ext <<_ACEOF
38922/* confdefs.h. */
38923_ACEOF
38924cat confdefs.h >>conftest.$ac_ext
38925cat >>conftest.$ac_ext <<_ACEOF
38926/* end confdefs.h. */
38927#include <ghostscript/iapi.h>
38928_ACEOF
38929if { (ac_try="$ac_cpp conftest.$ac_ext"
38930case "(($ac_try" in
38931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38932 *) ac_try_echo=$ac_try;;
38933esac
38934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38935$as_echo "$ac_try_echo") >&5
38936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38937 ac_status=$?
38938 grep -v '^ *+' conftest.er1 >conftest.err
38939 rm -f conftest.er1
38940 cat conftest.err >&5
38941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942 (exit $ac_status); } >/dev/null && {
38943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38944 test ! -s conftest.err
38945 }; then
38946 ac_header_preproc=yes
38947else
38948 $as_echo "$as_me: failed program was:" >&5
38949sed 's/^/| /' conftest.$ac_ext >&5
38950
38951 ac_header_preproc=no
38952fi
38953
38954rm -f conftest.err conftest.$ac_ext
38955{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38956$as_echo "$ac_header_preproc" >&6; }
38957
38958# So? What about this header?
38959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38960 yes:no: )
38961 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38962$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38963 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38964$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38965 ac_header_preproc=yes
38966 ;;
38967 no:yes:* )
38968 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38969$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38970 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38971$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38972 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38973$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38974 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38975$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38976 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38977$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38978 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38979$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38980 ( cat <<\_ASBOX
38981## ----------------------------------------- ##
38982## Report this to http://www.imagemagick.org ##
38983## ----------------------------------------- ##
38984_ASBOX
38985 ) | sed "s/^/$as_me: WARNING: /" >&2
38986 ;;
38987esac
38988{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38989$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38990if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38991 $as_echo_n "(cached) " >&6
38992else
38993 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38994fi
38995{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38996$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38997
38998fi
38999if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
39000 passed=`expr $passed + 1`
39001else
39002 failed=`expr $failed + 1`
39003fi
39004
39005
39006 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39007 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39008$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39009if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39010 $as_echo_n "(cached) " >&6
39011fi
39012{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39013$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39014else
39015 # Is the header compilable?
39016{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
39017$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
39018cat >conftest.$ac_ext <<_ACEOF
39019/* confdefs.h. */
39020_ACEOF
39021cat confdefs.h >>conftest.$ac_ext
39022cat >>conftest.$ac_ext <<_ACEOF
39023/* end confdefs.h. */
39024$ac_includes_default
39025#include <ghostscript/ierrors.h>
39026_ACEOF
39027rm -f conftest.$ac_objext
39028if { (ac_try="$ac_compile"
39029case "(($ac_try" in
39030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39031 *) ac_try_echo=$ac_try;;
39032esac
39033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39034$as_echo "$ac_try_echo") >&5
39035 (eval "$ac_compile") 2>conftest.er1
39036 ac_status=$?
39037 grep -v '^ *+' conftest.er1 >conftest.err
39038 rm -f conftest.er1
39039 cat conftest.err >&5
39040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041 (exit $ac_status); } && {
39042 test -z "$ac_c_werror_flag" ||
39043 test ! -s conftest.err
39044 } && test -s conftest.$ac_objext; then
39045 ac_header_compiler=yes
39046else
39047 $as_echo "$as_me: failed program was:" >&5
39048sed 's/^/| /' conftest.$ac_ext >&5
39049
39050 ac_header_compiler=no
39051fi
39052
39053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39054{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39055$as_echo "$ac_header_compiler" >&6; }
39056
39057# Is the header present?
39058{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
39059$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
39060cat >conftest.$ac_ext <<_ACEOF
39061/* confdefs.h. */
39062_ACEOF
39063cat confdefs.h >>conftest.$ac_ext
39064cat >>conftest.$ac_ext <<_ACEOF
39065/* end confdefs.h. */
39066#include <ghostscript/ierrors.h>
39067_ACEOF
39068if { (ac_try="$ac_cpp conftest.$ac_ext"
39069case "(($ac_try" in
39070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39071 *) ac_try_echo=$ac_try;;
39072esac
39073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39074$as_echo "$ac_try_echo") >&5
39075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39076 ac_status=$?
39077 grep -v '^ *+' conftest.er1 >conftest.err
39078 rm -f conftest.er1
39079 cat conftest.err >&5
39080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); } >/dev/null && {
39082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39083 test ! -s conftest.err
39084 }; then
39085 ac_header_preproc=yes
39086else
39087 $as_echo "$as_me: failed program was:" >&5
39088sed 's/^/| /' conftest.$ac_ext >&5
39089
39090 ac_header_preproc=no
39091fi
39092
39093rm -f conftest.err conftest.$ac_ext
39094{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39095$as_echo "$ac_header_preproc" >&6; }
39096
39097# So? What about this header?
39098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39099 yes:no: )
39100 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
39101$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39102 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
39103$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
39104 ac_header_preproc=yes
39105 ;;
39106 no:yes:* )
39107 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
39108$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
39109 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
39110$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
39111 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
39112$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
39113 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
39114$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
39115 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
39116$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
39117 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
39118$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
39119 ( cat <<\_ASBOX
39120## ----------------------------------------- ##
39121## Report this to http://www.imagemagick.org ##
39122## ----------------------------------------- ##
39123_ASBOX
39124 ) | sed "s/^/$as_me: WARNING: /" >&2
39125 ;;
39126esac
39127{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39128$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39129if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39130 $as_echo_n "(cached) " >&6
39131else
39132 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
39133fi
39134{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39135$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39136
39137fi
39138if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
39139 passed=`expr $passed + 1`
39140else
39141 failed=`expr $failed + 1`
39142fi
39143
39144
39145 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
39146$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
39147if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
39148 $as_echo_n "(cached) " >&6
39149else
39150 ac_check_framework_save_LIBS=$LIBS
39151LIBS="-framework Ghostscript $LIBS"
39152cat >conftest.$ac_ext <<_ACEOF
39153/* confdefs.h. */
39154_ACEOF
39155cat confdefs.h >>conftest.$ac_ext
39156cat >>conftest.$ac_ext <<_ACEOF
39157/* end confdefs.h. */
39158
39159/* Override any GCC internal prototype to avoid an error.
39160 Use char because int might match the return type of a GCC
39161 builtin and then its argument prototype would still apply. */
39162#ifdef __cplusplus
39163extern "C"
39164#endif
39165char gsapi_new_instance ();
39166int
39167main ()
39168{
39169return gsapi_new_instance ();
39170 ;
39171 return 0;
39172}
39173_ACEOF
39174rm -f conftest.$ac_objext conftest$ac_exeext
39175if { (ac_try="$ac_link"
39176case "(($ac_try" in
39177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39178 *) ac_try_echo=$ac_try;;
39179esac
39180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39181$as_echo "$ac_try_echo") >&5
39182 (eval "$ac_link") 2>conftest.er1
39183 ac_status=$?
39184 grep -v '^ *+' conftest.er1 >conftest.err
39185 rm -f conftest.er1
39186 cat conftest.err >&5
39187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188 (exit $ac_status); } && {
39189 test -z "$ac_c_werror_flag" ||
39190 test ! -s conftest.err
39191 } && test -s conftest$ac_exeext && {
39192 test "$cross_compiling" = yes ||
39193 $as_test_x conftest$ac_exeext
39194 }; then
39195 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
39196else
39197 $as_echo "$as_me: failed program was:" >&5
39198sed 's/^/| /' conftest.$ac_ext >&5
39199
39200 ac_cv_framework_Ghostscript_gsapi_new_instance=no
39201fi
39202
39203rm -rf conftest.dSYM
39204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39205 conftest$ac_exeext conftest.$ac_ext
39206LIBS=$ac_check_framework_save_LIBS
39207fi
39208{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
39209$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
39210if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
39211 framework=`expr $framework + 1`
39212else
39213 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
39214$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
39215if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
39216 $as_echo_n "(cached) " >&6
39217else
39218 ac_check_lib_save_LIBS=$LIBS
39219LIBS="-lgs $LIBS"
39220cat >conftest.$ac_ext <<_ACEOF
39221/* confdefs.h. */
39222_ACEOF
39223cat confdefs.h >>conftest.$ac_ext
39224cat >>conftest.$ac_ext <<_ACEOF
39225/* end confdefs.h. */
39226
39227/* Override any GCC internal prototype to avoid an error.
39228 Use char because int might match the return type of a GCC
39229 builtin and then its argument prototype would still apply. */
39230#ifdef __cplusplus
39231extern "C"
39232#endif
39233char gsapi_new_instance ();
39234int
39235main ()
39236{
39237return gsapi_new_instance ();
39238 ;
39239 return 0;
39240}
39241_ACEOF
39242rm -f conftest.$ac_objext conftest$ac_exeext
39243if { (ac_try="$ac_link"
39244case "(($ac_try" in
39245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39246 *) ac_try_echo=$ac_try;;
39247esac
39248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39249$as_echo "$ac_try_echo") >&5
39250 (eval "$ac_link") 2>conftest.er1
39251 ac_status=$?
39252 grep -v '^ *+' conftest.er1 >conftest.err
39253 rm -f conftest.er1
39254 cat conftest.err >&5
39255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); } && {
39257 test -z "$ac_c_werror_flag" ||
39258 test ! -s conftest.err
39259 } && test -s conftest$ac_exeext && {
39260 test "$cross_compiling" = yes ||
39261 $as_test_x conftest$ac_exeext
39262 }; then
39263 ac_cv_lib_gs_gsapi_new_instance=yes
39264else
39265 $as_echo "$as_me: failed program was:" >&5
39266sed 's/^/| /' conftest.$ac_ext >&5
39267
39268 ac_cv_lib_gs_gsapi_new_instance=no
39269fi
39270
39271rm -rf conftest.dSYM
39272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39273 conftest$ac_exeext conftest.$ac_ext
39274LIBS=$ac_check_lib_save_LIBS
39275fi
39276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
39277$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
39278if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
39279 passed=`expr $passed + 1`
39280else
39281 failed=`expr $failed + 1`
39282fi
39283
39284fi
39285
39286 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
39287$as_echo_n "checking if Ghostscript package is complete... " >&6; }
39288 if test $passed -gt 0; then
39289 if test $failed -gt 0; then
39290 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39291$as_echo "no -- some components failed test" >&6; }
39292 have_gslib='no (failed tests)'
39293 else
39294 if test $framework -gt 0; then
39295 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000039296 gslib_framework='yes'
cristy3ed852e2009-09-05 21:47:34 +000039297 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
39298$as_echo "yes, using framework." >&6; }
39299 else
39300 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
39301$as_echo "yes, using library." >&6; }
39302 GS_LIBS='-lgs'
39303 fi
39304 LIBS="$GS_LIBS $LIBS"
39305
39306cat >>confdefs.h <<\_ACEOF
39307#define GS_DELEGATE 1
39308_ACEOF
39309
39310 have_gslib='yes'
39311 fi
39312 else
39313 { $as_echo "$as_me:$LINENO: result: no" >&5
39314$as_echo "no" >&6; }
39315 fi
39316fi
39317 if test "$have_gslib" = 'yes'; then
39318 GS_DELEGATE_TRUE=
39319 GS_DELEGATE_FALSE='#'
39320else
39321 GS_DELEGATE_TRUE='#'
39322 GS_DELEGATE_FALSE=
39323fi
39324
39325
39326
39327# Set default font search path
39328
39329# Check whether --with-fontpath was given.
39330if test "${with_fontpath+set}" = set; then
39331 withval=$with_fontpath; with_fontpath=$withval
39332else
39333 with_fontpath=''
39334fi
39335
39336
39337if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
39338 with_fontpath=''
39339else
39340
39341cat >>confdefs.h <<_ACEOF
39342#define MAGICK_FONT_PATH "$with_fontpath"
39343_ACEOF
39344
39345fi
39346if test "$with_fontpath=" != ''; then
39347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
39348fi
39349
39350# Set Ghostscript font directory
39351
39352# Check whether --with-gs-font-dir was given.
39353if test "${with_gs_font_dir+set}" = set; then
39354 withval=$with_gs_font_dir; with_gs_font_dir=$withval
39355else
39356 with_gs_font_dir='default'
39357fi
39358
39359
39360if test "$with_gs_font_dir" != 'default'; then
39361 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
39362fi
39363
39364
39365#
39366# Check for GVC delegate library.
39367#
39368
39369# Check whether --with-gvc was given.
39370if test "${with_gvc+set}" = set; then
39371 withval=$with_gvc; with_gvc=$withval
39372else
39373 with_gvc='yes'
39374fi
39375
39376
39377if test "$with_gvc" != 'yes'; then
39378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
39379fi
39380
39381GVC_PKG=""
39382if test "x$with_gvc" = "xyes"; then
39383 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39384$as_echo "-------------------------------------------------------------" >&6; }
39385
39386pkg_failed=no
39387{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
39388$as_echo_n "checking for GVC... " >&6; }
39389
39390if test -n "$GVC_CFLAGS"; then
39391 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
39392 elif test -n "$PKG_CONFIG"; then
39393 if test -n "$PKG_CONFIG" && \
39394 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39395 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39396 ac_status=$?
39397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39398 (exit $ac_status); }; then
39399 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
39400else
39401 pkg_failed=yes
39402fi
39403 else
39404 pkg_failed=untried
39405fi
39406if test -n "$GVC_LIBS"; then
39407 pkg_cv_GVC_LIBS="$GVC_LIBS"
39408 elif test -n "$PKG_CONFIG"; then
39409 if test -n "$PKG_CONFIG" && \
39410 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39411 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39412 ac_status=$?
39413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414 (exit $ac_status); }; then
39415 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
39416else
39417 pkg_failed=yes
39418fi
39419 else
39420 pkg_failed=untried
39421fi
39422
39423
39424
39425if test $pkg_failed = yes; then
39426
39427if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39428 _pkg_short_errors_supported=yes
39429else
39430 _pkg_short_errors_supported=no
39431fi
39432 if test $_pkg_short_errors_supported = yes; then
39433 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
39434 else
39435 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
39436 fi
39437 # Put the nasty error message in config.log where it belongs
39438 echo "$GVC_PKG_ERRORS" >&5
39439
39440 { $as_echo "$as_me:$LINENO: result: no" >&5
39441$as_echo "no" >&6; }
39442 have_gvc=no
39443elif test $pkg_failed = untried; then
39444 have_gvc=no
39445else
39446 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
39447 GVC_LIBS=$pkg_cv_GVC_LIBS
39448 { $as_echo "$as_me:$LINENO: result: yes" >&5
39449$as_echo "yes" >&6; }
39450 have_gvc=yes
39451fi
39452 { $as_echo "$as_me:$LINENO: result: " >&5
39453$as_echo "" >&6; }
39454fi
39455
39456if test "$have_gvc" = 'yes'; then
39457
39458cat >>confdefs.h <<\_ACEOF
39459#define GVC_DELEGATE 1
39460_ACEOF
39461
39462 if test "$with_modules" = 'no'; then
39463 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
39464 fi
39465fi
39466
39467 if test "$have_gvc" = 'yes'; then
39468 GVC_DELEGATE_TRUE=
39469 GVC_DELEGATE_FALSE='#'
39470else
39471 GVC_DELEGATE_TRUE='#'
39472 GVC_DELEGATE_FALSE=
39473fi
39474
39475
39476
39477
39478
39479#
39480# Check for JBIG delegate library.
39481#
39482
39483
39484# Check whether --with-jbig was given.
39485if test "${with_jbig+set}" = set; then
39486 withval=$with_jbig; with_jbig=$withval
39487else
39488 with_jbig='yes'
39489fi
39490
39491
39492have_jbig='no'
39493JBIG_LIBS=''
39494if test "$with_jbig" != 'no'; then
39495 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39496$as_echo "-------------------------------------------------------------" >&6; }
39497 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
39498$as_echo_n "checking for JBIG... " >&6; }
39499 { $as_echo "$as_me:$LINENO: result: " >&5
39500$as_echo "" >&6; }
39501 failed=0
39502 passed=0
39503 if test "${ac_cv_header_jbig_h+set}" = set; then
39504 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39505$as_echo_n "checking for jbig.h... " >&6; }
39506if test "${ac_cv_header_jbig_h+set}" = set; then
39507 $as_echo_n "(cached) " >&6
39508fi
39509{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39510$as_echo "$ac_cv_header_jbig_h" >&6; }
39511else
39512 # Is the header compilable?
39513{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
39514$as_echo_n "checking jbig.h usability... " >&6; }
39515cat >conftest.$ac_ext <<_ACEOF
39516/* confdefs.h. */
39517_ACEOF
39518cat confdefs.h >>conftest.$ac_ext
39519cat >>conftest.$ac_ext <<_ACEOF
39520/* end confdefs.h. */
39521$ac_includes_default
39522#include <jbig.h>
39523_ACEOF
39524rm -f conftest.$ac_objext
39525if { (ac_try="$ac_compile"
39526case "(($ac_try" in
39527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39528 *) ac_try_echo=$ac_try;;
39529esac
39530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39531$as_echo "$ac_try_echo") >&5
39532 (eval "$ac_compile") 2>conftest.er1
39533 ac_status=$?
39534 grep -v '^ *+' conftest.er1 >conftest.err
39535 rm -f conftest.er1
39536 cat conftest.err >&5
39537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); } && {
39539 test -z "$ac_c_werror_flag" ||
39540 test ! -s conftest.err
39541 } && test -s conftest.$ac_objext; then
39542 ac_header_compiler=yes
39543else
39544 $as_echo "$as_me: failed program was:" >&5
39545sed 's/^/| /' conftest.$ac_ext >&5
39546
39547 ac_header_compiler=no
39548fi
39549
39550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39551{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39552$as_echo "$ac_header_compiler" >&6; }
39553
39554# Is the header present?
39555{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
39556$as_echo_n "checking jbig.h presence... " >&6; }
39557cat >conftest.$ac_ext <<_ACEOF
39558/* confdefs.h. */
39559_ACEOF
39560cat confdefs.h >>conftest.$ac_ext
39561cat >>conftest.$ac_ext <<_ACEOF
39562/* end confdefs.h. */
39563#include <jbig.h>
39564_ACEOF
39565if { (ac_try="$ac_cpp conftest.$ac_ext"
39566case "(($ac_try" in
39567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39568 *) ac_try_echo=$ac_try;;
39569esac
39570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39571$as_echo "$ac_try_echo") >&5
39572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39573 ac_status=$?
39574 grep -v '^ *+' conftest.er1 >conftest.err
39575 rm -f conftest.er1
39576 cat conftest.err >&5
39577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578 (exit $ac_status); } >/dev/null && {
39579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39580 test ! -s conftest.err
39581 }; then
39582 ac_header_preproc=yes
39583else
39584 $as_echo "$as_me: failed program was:" >&5
39585sed 's/^/| /' conftest.$ac_ext >&5
39586
39587 ac_header_preproc=no
39588fi
39589
39590rm -f conftest.err conftest.$ac_ext
39591{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39592$as_echo "$ac_header_preproc" >&6; }
39593
39594# So? What about this header?
39595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39596 yes:no: )
39597 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39598$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39599 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
39600$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
39601 ac_header_preproc=yes
39602 ;;
39603 no:yes:* )
39604 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
39605$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
39606 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
39607$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
39608 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
39609$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
39610 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
39611$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39612 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
39613$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
39614 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
39615$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
39616 ( cat <<\_ASBOX
39617## ----------------------------------------- ##
39618## Report this to http://www.imagemagick.org ##
39619## ----------------------------------------- ##
39620_ASBOX
39621 ) | sed "s/^/$as_me: WARNING: /" >&2
39622 ;;
39623esac
39624{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39625$as_echo_n "checking for jbig.h... " >&6; }
39626if test "${ac_cv_header_jbig_h+set}" = set; then
39627 $as_echo_n "(cached) " >&6
39628else
39629 ac_cv_header_jbig_h=$ac_header_preproc
39630fi
39631{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39632$as_echo "$ac_cv_header_jbig_h" >&6; }
39633
39634fi
39635if test "x$ac_cv_header_jbig_h" = x""yes; then
39636 passed=`expr $passed + 1`
39637else
39638 failed=`expr $failed + 1`
39639fi
39640
39641
39642 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
39643$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
39644if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
39645 $as_echo_n "(cached) " >&6
39646else
39647 ac_check_lib_save_LIBS=$LIBS
39648LIBS="-ljbig $LIBS"
39649cat >conftest.$ac_ext <<_ACEOF
39650/* confdefs.h. */
39651_ACEOF
39652cat confdefs.h >>conftest.$ac_ext
39653cat >>conftest.$ac_ext <<_ACEOF
39654/* end confdefs.h. */
39655
39656/* Override any GCC internal prototype to avoid an error.
39657 Use char because int might match the return type of a GCC
39658 builtin and then its argument prototype would still apply. */
39659#ifdef __cplusplus
39660extern "C"
39661#endif
39662char jbg_dec_init ();
39663int
39664main ()
39665{
39666return jbg_dec_init ();
39667 ;
39668 return 0;
39669}
39670_ACEOF
39671rm -f conftest.$ac_objext conftest$ac_exeext
39672if { (ac_try="$ac_link"
39673case "(($ac_try" in
39674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39675 *) ac_try_echo=$ac_try;;
39676esac
39677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39678$as_echo "$ac_try_echo") >&5
39679 (eval "$ac_link") 2>conftest.er1
39680 ac_status=$?
39681 grep -v '^ *+' conftest.er1 >conftest.err
39682 rm -f conftest.er1
39683 cat conftest.err >&5
39684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39685 (exit $ac_status); } && {
39686 test -z "$ac_c_werror_flag" ||
39687 test ! -s conftest.err
39688 } && test -s conftest$ac_exeext && {
39689 test "$cross_compiling" = yes ||
39690 $as_test_x conftest$ac_exeext
39691 }; then
39692 ac_cv_lib_jbig_jbg_dec_init=yes
39693else
39694 $as_echo "$as_me: failed program was:" >&5
39695sed 's/^/| /' conftest.$ac_ext >&5
39696
39697 ac_cv_lib_jbig_jbg_dec_init=no
39698fi
39699
39700rm -rf conftest.dSYM
39701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39702 conftest$ac_exeext conftest.$ac_ext
39703LIBS=$ac_check_lib_save_LIBS
39704fi
39705{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
39706$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
39707if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
39708 passed=`expr $passed + 1`
39709else
39710 failed=`expr $failed + 1`
39711fi
39712
39713 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
39714$as_echo_n "checking if JBIG package is complete... " >&6; }
39715 if test $passed -gt 0; then
39716 if test $failed -gt 0; then
39717 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39718$as_echo "no -- some components failed test" >&6; }
39719 have_jbig='no (failed tests)'
39720 else
39721 JBIG_LIBS='-ljbig'
39722 LIBS="$JBIG_LIBS $LIBS"
39723
39724cat >>confdefs.h <<\_ACEOF
39725#define JBIG_DELEGATE 1
39726_ACEOF
39727
39728 { $as_echo "$as_me:$LINENO: result: yes" >&5
39729$as_echo "yes" >&6; }
39730 have_jbig='yes'
39731 fi
39732 else
39733 { $as_echo "$as_me:$LINENO: result: no" >&5
39734$as_echo "no" >&6; }
39735 fi
39736fi
39737 if test "$have_jbig" = 'yes'; then
39738 JBIG_DELEGATE_TRUE=
39739 JBIG_DELEGATE_FALSE='#'
39740else
39741 JBIG_DELEGATE_TRUE='#'
39742 JBIG_DELEGATE_FALSE=
39743fi
39744
39745
39746
39747
39748#
39749# Check for JPEG delegate library.
39750#
39751
39752# Check whether --with-jpeg was given.
39753if test "${with_jpeg+set}" = set; then
39754 withval=$with_jpeg; with_jpeg=$withval
39755else
39756 with_jpeg='yes'
39757fi
39758
39759
39760if test "$with_jpeg" != 'yes'; then
39761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
39762fi
39763
39764have_jpeg='no'
39765JPEG_LIBS=''
39766if test "$with_jpeg" != 'no'; then
39767 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39768$as_echo "-------------------------------------------------------------" >&6; }
39769 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
39770$as_echo_n "checking for JPEG... " >&6; }
39771 { $as_echo "$as_me:$LINENO: result: " >&5
39772$as_echo "" >&6; }
39773 failed=0
39774 passed=0
39775 if test "${ac_cv_header_jconfig_h+set}" = set; then
39776 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39777$as_echo_n "checking for jconfig.h... " >&6; }
39778if test "${ac_cv_header_jconfig_h+set}" = set; then
39779 $as_echo_n "(cached) " >&6
39780fi
39781{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39782$as_echo "$ac_cv_header_jconfig_h" >&6; }
39783else
39784 # Is the header compilable?
39785{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
39786$as_echo_n "checking jconfig.h usability... " >&6; }
39787cat >conftest.$ac_ext <<_ACEOF
39788/* confdefs.h. */
39789_ACEOF
39790cat confdefs.h >>conftest.$ac_ext
39791cat >>conftest.$ac_ext <<_ACEOF
39792/* end confdefs.h. */
39793$ac_includes_default
39794#include <jconfig.h>
39795_ACEOF
39796rm -f conftest.$ac_objext
39797if { (ac_try="$ac_compile"
39798case "(($ac_try" in
39799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39800 *) ac_try_echo=$ac_try;;
39801esac
39802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39803$as_echo "$ac_try_echo") >&5
39804 (eval "$ac_compile") 2>conftest.er1
39805 ac_status=$?
39806 grep -v '^ *+' conftest.er1 >conftest.err
39807 rm -f conftest.er1
39808 cat conftest.err >&5
39809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); } && {
39811 test -z "$ac_c_werror_flag" ||
39812 test ! -s conftest.err
39813 } && test -s conftest.$ac_objext; then
39814 ac_header_compiler=yes
39815else
39816 $as_echo "$as_me: failed program was:" >&5
39817sed 's/^/| /' conftest.$ac_ext >&5
39818
39819 ac_header_compiler=no
39820fi
39821
39822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39823{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39824$as_echo "$ac_header_compiler" >&6; }
39825
39826# Is the header present?
39827{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
39828$as_echo_n "checking jconfig.h presence... " >&6; }
39829cat >conftest.$ac_ext <<_ACEOF
39830/* confdefs.h. */
39831_ACEOF
39832cat confdefs.h >>conftest.$ac_ext
39833cat >>conftest.$ac_ext <<_ACEOF
39834/* end confdefs.h. */
39835#include <jconfig.h>
39836_ACEOF
39837if { (ac_try="$ac_cpp conftest.$ac_ext"
39838case "(($ac_try" in
39839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39840 *) ac_try_echo=$ac_try;;
39841esac
39842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39843$as_echo "$ac_try_echo") >&5
39844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39845 ac_status=$?
39846 grep -v '^ *+' conftest.er1 >conftest.err
39847 rm -f conftest.er1
39848 cat conftest.err >&5
39849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); } >/dev/null && {
39851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39852 test ! -s conftest.err
39853 }; then
39854 ac_header_preproc=yes
39855else
39856 $as_echo "$as_me: failed program was:" >&5
39857sed 's/^/| /' conftest.$ac_ext >&5
39858
39859 ac_header_preproc=no
39860fi
39861
39862rm -f conftest.err conftest.$ac_ext
39863{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39864$as_echo "$ac_header_preproc" >&6; }
39865
39866# So? What about this header?
39867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39868 yes:no: )
39869 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39870$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39871 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39872$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39873 ac_header_preproc=yes
39874 ;;
39875 no:yes:* )
39876 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39877$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39878 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39879$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39880 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39881$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39882 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39883$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39884 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39885$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39886 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39887$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39888 ( cat <<\_ASBOX
39889## ----------------------------------------- ##
39890## Report this to http://www.imagemagick.org ##
39891## ----------------------------------------- ##
39892_ASBOX
39893 ) | sed "s/^/$as_me: WARNING: /" >&2
39894 ;;
39895esac
39896{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39897$as_echo_n "checking for jconfig.h... " >&6; }
39898if test "${ac_cv_header_jconfig_h+set}" = set; then
39899 $as_echo_n "(cached) " >&6
39900else
39901 ac_cv_header_jconfig_h=$ac_header_preproc
39902fi
39903{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39904$as_echo "$ac_cv_header_jconfig_h" >&6; }
39905
39906fi
39907if test "x$ac_cv_header_jconfig_h" = x""yes; then
39908 passed=`expr $passed + 1`
39909else
39910 failed=`expr $failed + 1`
39911fi
39912
39913
39914 if test "${ac_cv_header_jerror_h+set}" = set; then
39915 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39916$as_echo_n "checking for jerror.h... " >&6; }
39917if test "${ac_cv_header_jerror_h+set}" = set; then
39918 $as_echo_n "(cached) " >&6
39919fi
39920{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39921$as_echo "$ac_cv_header_jerror_h" >&6; }
39922else
39923 # Is the header compilable?
39924{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39925$as_echo_n "checking jerror.h usability... " >&6; }
39926cat >conftest.$ac_ext <<_ACEOF
39927/* confdefs.h. */
39928_ACEOF
39929cat confdefs.h >>conftest.$ac_ext
39930cat >>conftest.$ac_ext <<_ACEOF
39931/* end confdefs.h. */
39932$ac_includes_default
39933#include <jerror.h>
39934_ACEOF
39935rm -f conftest.$ac_objext
39936if { (ac_try="$ac_compile"
39937case "(($ac_try" in
39938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39939 *) ac_try_echo=$ac_try;;
39940esac
39941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39942$as_echo "$ac_try_echo") >&5
39943 (eval "$ac_compile") 2>conftest.er1
39944 ac_status=$?
39945 grep -v '^ *+' conftest.er1 >conftest.err
39946 rm -f conftest.er1
39947 cat conftest.err >&5
39948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); } && {
39950 test -z "$ac_c_werror_flag" ||
39951 test ! -s conftest.err
39952 } && test -s conftest.$ac_objext; then
39953 ac_header_compiler=yes
39954else
39955 $as_echo "$as_me: failed program was:" >&5
39956sed 's/^/| /' conftest.$ac_ext >&5
39957
39958 ac_header_compiler=no
39959fi
39960
39961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39962{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39963$as_echo "$ac_header_compiler" >&6; }
39964
39965# Is the header present?
39966{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39967$as_echo_n "checking jerror.h presence... " >&6; }
39968cat >conftest.$ac_ext <<_ACEOF
39969/* confdefs.h. */
39970_ACEOF
39971cat confdefs.h >>conftest.$ac_ext
39972cat >>conftest.$ac_ext <<_ACEOF
39973/* end confdefs.h. */
39974#include <jerror.h>
39975_ACEOF
39976if { (ac_try="$ac_cpp conftest.$ac_ext"
39977case "(($ac_try" in
39978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39979 *) ac_try_echo=$ac_try;;
39980esac
39981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39982$as_echo "$ac_try_echo") >&5
39983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39984 ac_status=$?
39985 grep -v '^ *+' conftest.er1 >conftest.err
39986 rm -f conftest.er1
39987 cat conftest.err >&5
39988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); } >/dev/null && {
39990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39991 test ! -s conftest.err
39992 }; then
39993 ac_header_preproc=yes
39994else
39995 $as_echo "$as_me: failed program was:" >&5
39996sed 's/^/| /' conftest.$ac_ext >&5
39997
39998 ac_header_preproc=no
39999fi
40000
40001rm -f conftest.err conftest.$ac_ext
40002{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40003$as_echo "$ac_header_preproc" >&6; }
40004
40005# So? What about this header?
40006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40007 yes:no: )
40008 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
40009$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40010 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
40011$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
40012 ac_header_preproc=yes
40013 ;;
40014 no:yes:* )
40015 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
40016$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
40017 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
40018$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
40019 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
40020$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
40021 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
40022$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
40023 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
40024$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
40025 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
40026$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
40027 ( cat <<\_ASBOX
40028## ----------------------------------------- ##
40029## Report this to http://www.imagemagick.org ##
40030## ----------------------------------------- ##
40031_ASBOX
40032 ) | sed "s/^/$as_me: WARNING: /" >&2
40033 ;;
40034esac
40035{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
40036$as_echo_n "checking for jerror.h... " >&6; }
40037if test "${ac_cv_header_jerror_h+set}" = set; then
40038 $as_echo_n "(cached) " >&6
40039else
40040 ac_cv_header_jerror_h=$ac_header_preproc
40041fi
40042{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
40043$as_echo "$ac_cv_header_jerror_h" >&6; }
40044
40045fi
40046if test "x$ac_cv_header_jerror_h" = x""yes; then
40047 passed=`expr $passed + 1`
40048else
40049 failed=`expr $failed + 1`
40050fi
40051
40052
40053 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40054 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40055$as_echo_n "checking for jmorecfg.h... " >&6; }
40056if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40057 $as_echo_n "(cached) " >&6
40058fi
40059{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40060$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40061else
40062 # Is the header compilable?
40063{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
40064$as_echo_n "checking jmorecfg.h usability... " >&6; }
40065cat >conftest.$ac_ext <<_ACEOF
40066/* confdefs.h. */
40067_ACEOF
40068cat confdefs.h >>conftest.$ac_ext
40069cat >>conftest.$ac_ext <<_ACEOF
40070/* end confdefs.h. */
40071$ac_includes_default
40072#include <jmorecfg.h>
40073_ACEOF
40074rm -f conftest.$ac_objext
40075if { (ac_try="$ac_compile"
40076case "(($ac_try" in
40077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40078 *) ac_try_echo=$ac_try;;
40079esac
40080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40081$as_echo "$ac_try_echo") >&5
40082 (eval "$ac_compile") 2>conftest.er1
40083 ac_status=$?
40084 grep -v '^ *+' conftest.er1 >conftest.err
40085 rm -f conftest.er1
40086 cat conftest.err >&5
40087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088 (exit $ac_status); } && {
40089 test -z "$ac_c_werror_flag" ||
40090 test ! -s conftest.err
40091 } && test -s conftest.$ac_objext; then
40092 ac_header_compiler=yes
40093else
40094 $as_echo "$as_me: failed program was:" >&5
40095sed 's/^/| /' conftest.$ac_ext >&5
40096
40097 ac_header_compiler=no
40098fi
40099
40100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40101{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40102$as_echo "$ac_header_compiler" >&6; }
40103
40104# Is the header present?
40105{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
40106$as_echo_n "checking jmorecfg.h presence... " >&6; }
40107cat >conftest.$ac_ext <<_ACEOF
40108/* confdefs.h. */
40109_ACEOF
40110cat confdefs.h >>conftest.$ac_ext
40111cat >>conftest.$ac_ext <<_ACEOF
40112/* end confdefs.h. */
40113#include <jmorecfg.h>
40114_ACEOF
40115if { (ac_try="$ac_cpp conftest.$ac_ext"
40116case "(($ac_try" in
40117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40118 *) ac_try_echo=$ac_try;;
40119esac
40120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40121$as_echo "$ac_try_echo") >&5
40122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40123 ac_status=$?
40124 grep -v '^ *+' conftest.er1 >conftest.err
40125 rm -f conftest.er1
40126 cat conftest.err >&5
40127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128 (exit $ac_status); } >/dev/null && {
40129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40130 test ! -s conftest.err
40131 }; then
40132 ac_header_preproc=yes
40133else
40134 $as_echo "$as_me: failed program was:" >&5
40135sed 's/^/| /' conftest.$ac_ext >&5
40136
40137 ac_header_preproc=no
40138fi
40139
40140rm -f conftest.err conftest.$ac_ext
40141{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40142$as_echo "$ac_header_preproc" >&6; }
40143
40144# So? What about this header?
40145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40146 yes:no: )
40147 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
40148$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40149 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
40150$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
40151 ac_header_preproc=yes
40152 ;;
40153 no:yes:* )
40154 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
40155$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
40156 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
40157$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
40158 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
40159$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
40160 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
40161$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
40162 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
40163$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
40164 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
40165$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
40166 ( cat <<\_ASBOX
40167## ----------------------------------------- ##
40168## Report this to http://www.imagemagick.org ##
40169## ----------------------------------------- ##
40170_ASBOX
40171 ) | sed "s/^/$as_me: WARNING: /" >&2
40172 ;;
40173esac
40174{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40175$as_echo_n "checking for jmorecfg.h... " >&6; }
40176if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40177 $as_echo_n "(cached) " >&6
40178else
40179 ac_cv_header_jmorecfg_h=$ac_header_preproc
40180fi
40181{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40182$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40183
40184fi
40185if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
40186 passed=`expr $passed + 1`
40187else
40188 failed=`expr $failed + 1`
40189fi
40190
40191
40192 if test "${ac_cv_header_jpeglib_h+set}" = set; then
40193 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40194$as_echo_n "checking for jpeglib.h... " >&6; }
40195if test "${ac_cv_header_jpeglib_h+set}" = set; then
40196 $as_echo_n "(cached) " >&6
40197fi
40198{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40199$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40200else
40201 # Is the header compilable?
40202{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
40203$as_echo_n "checking jpeglib.h usability... " >&6; }
40204cat >conftest.$ac_ext <<_ACEOF
40205/* confdefs.h. */
40206_ACEOF
40207cat confdefs.h >>conftest.$ac_ext
40208cat >>conftest.$ac_ext <<_ACEOF
40209/* end confdefs.h. */
40210$ac_includes_default
40211#include <jpeglib.h>
40212_ACEOF
40213rm -f conftest.$ac_objext
40214if { (ac_try="$ac_compile"
40215case "(($ac_try" in
40216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40217 *) ac_try_echo=$ac_try;;
40218esac
40219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40220$as_echo "$ac_try_echo") >&5
40221 (eval "$ac_compile") 2>conftest.er1
40222 ac_status=$?
40223 grep -v '^ *+' conftest.er1 >conftest.err
40224 rm -f conftest.er1
40225 cat conftest.err >&5
40226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227 (exit $ac_status); } && {
40228 test -z "$ac_c_werror_flag" ||
40229 test ! -s conftest.err
40230 } && test -s conftest.$ac_objext; then
40231 ac_header_compiler=yes
40232else
40233 $as_echo "$as_me: failed program was:" >&5
40234sed 's/^/| /' conftest.$ac_ext >&5
40235
40236 ac_header_compiler=no
40237fi
40238
40239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40240{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40241$as_echo "$ac_header_compiler" >&6; }
40242
40243# Is the header present?
40244{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
40245$as_echo_n "checking jpeglib.h presence... " >&6; }
40246cat >conftest.$ac_ext <<_ACEOF
40247/* confdefs.h. */
40248_ACEOF
40249cat confdefs.h >>conftest.$ac_ext
40250cat >>conftest.$ac_ext <<_ACEOF
40251/* end confdefs.h. */
40252#include <jpeglib.h>
40253_ACEOF
40254if { (ac_try="$ac_cpp conftest.$ac_ext"
40255case "(($ac_try" in
40256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40257 *) ac_try_echo=$ac_try;;
40258esac
40259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40260$as_echo "$ac_try_echo") >&5
40261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40262 ac_status=$?
40263 grep -v '^ *+' conftest.er1 >conftest.err
40264 rm -f conftest.er1
40265 cat conftest.err >&5
40266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40267 (exit $ac_status); } >/dev/null && {
40268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40269 test ! -s conftest.err
40270 }; then
40271 ac_header_preproc=yes
40272else
40273 $as_echo "$as_me: failed program was:" >&5
40274sed 's/^/| /' conftest.$ac_ext >&5
40275
40276 ac_header_preproc=no
40277fi
40278
40279rm -f conftest.err conftest.$ac_ext
40280{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40281$as_echo "$ac_header_preproc" >&6; }
40282
40283# So? What about this header?
40284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40285 yes:no: )
40286 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40287$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40288 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
40289$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
40290 ac_header_preproc=yes
40291 ;;
40292 no:yes:* )
40293 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
40294$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
40295 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
40296$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
40297 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
40298$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
40299 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
40300$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40301 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
40302$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
40303 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
40304$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
40305 ( cat <<\_ASBOX
40306## ----------------------------------------- ##
40307## Report this to http://www.imagemagick.org ##
40308## ----------------------------------------- ##
40309_ASBOX
40310 ) | sed "s/^/$as_me: WARNING: /" >&2
40311 ;;
40312esac
40313{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40314$as_echo_n "checking for jpeglib.h... " >&6; }
40315if test "${ac_cv_header_jpeglib_h+set}" = set; then
40316 $as_echo_n "(cached) " >&6
40317else
40318 ac_cv_header_jpeglib_h=$ac_header_preproc
40319fi
40320{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40321$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40322
40323fi
40324if test "x$ac_cv_header_jpeglib_h" = x""yes; then
40325 passed=`expr $passed + 1`
40326else
40327 failed=`expr $failed + 1`
40328fi
40329
40330
40331 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
40332$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40333if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
40334 $as_echo_n "(cached) " >&6
40335else
40336 ac_check_lib_save_LIBS=$LIBS
40337LIBS="-ljpeg $LIBS"
40338cat >conftest.$ac_ext <<_ACEOF
40339/* confdefs.h. */
40340_ACEOF
40341cat confdefs.h >>conftest.$ac_ext
40342cat >>conftest.$ac_ext <<_ACEOF
40343/* end confdefs.h. */
40344
40345/* Override any GCC internal prototype to avoid an error.
40346 Use char because int might match the return type of a GCC
40347 builtin and then its argument prototype would still apply. */
40348#ifdef __cplusplus
40349extern "C"
40350#endif
40351char jpeg_read_header ();
40352int
40353main ()
40354{
40355return jpeg_read_header ();
40356 ;
40357 return 0;
40358}
40359_ACEOF
40360rm -f conftest.$ac_objext conftest$ac_exeext
40361if { (ac_try="$ac_link"
40362case "(($ac_try" in
40363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40364 *) ac_try_echo=$ac_try;;
40365esac
40366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40367$as_echo "$ac_try_echo") >&5
40368 (eval "$ac_link") 2>conftest.er1
40369 ac_status=$?
40370 grep -v '^ *+' conftest.er1 >conftest.err
40371 rm -f conftest.er1
40372 cat conftest.err >&5
40373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40374 (exit $ac_status); } && {
40375 test -z "$ac_c_werror_flag" ||
40376 test ! -s conftest.err
40377 } && test -s conftest$ac_exeext && {
40378 test "$cross_compiling" = yes ||
40379 $as_test_x conftest$ac_exeext
40380 }; then
40381 ac_cv_lib_jpeg_jpeg_read_header=yes
40382else
40383 $as_echo "$as_me: failed program was:" >&5
40384sed 's/^/| /' conftest.$ac_ext >&5
40385
40386 ac_cv_lib_jpeg_jpeg_read_header=no
40387fi
40388
40389rm -rf conftest.dSYM
40390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40391 conftest$ac_exeext conftest.$ac_ext
40392LIBS=$ac_check_lib_save_LIBS
40393fi
40394{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40395$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40396if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
40397 passed=`expr $passed + 1`
40398else
40399 failed=`expr $failed + 1`
40400fi
40401
40402
40403# Test for compatible JPEG library
40404if test "$ac_cv_jpeg_version_ok" != 'yes'; then
40405{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
40406$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
40407if test "${ac_cv_jpeg_version_ok+set}" = set; then
40408 $as_echo_n "(cached) " >&6
40409else
40410 cat >conftest.$ac_ext <<_ACEOF
40411/* confdefs.h. */
40412_ACEOF
40413cat confdefs.h >>conftest.$ac_ext
40414cat >>conftest.$ac_ext <<_ACEOF
40415/* end confdefs.h. */
40416#include <stdio.h>
40417#include <stdlib.h>
40418#include <jpeglib.h>
40419
40420int
40421main ()
40422{
40423
40424#if JPEG_LIB_VERSION < 62
40425#error IJG JPEG library must be version 6b or newer!
40426#endif
40427return 0;
40428
40429 ;
40430 return 0;
40431}
40432_ACEOF
40433rm -f conftest.$ac_objext
40434if { (ac_try="$ac_compile"
40435case "(($ac_try" in
40436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40437 *) ac_try_echo=$ac_try;;
40438esac
40439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40440$as_echo "$ac_try_echo") >&5
40441 (eval "$ac_compile") 2>conftest.er1
40442 ac_status=$?
40443 grep -v '^ *+' conftest.er1 >conftest.err
40444 rm -f conftest.er1
40445 cat conftest.err >&5
40446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447 (exit $ac_status); } && {
40448 test -z "$ac_c_werror_flag" ||
40449 test ! -s conftest.err
40450 } && test -s conftest.$ac_objext; then
40451 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
40452else
40453 $as_echo "$as_me: failed program was:" >&5
40454sed 's/^/| /' conftest.$ac_ext >&5
40455
40456 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
40457fi
40458
40459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40460fi
40461{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
40462$as_echo "$ac_cv_jpeg_version_ok" >&6; }
40463fi
40464 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
40465$as_echo_n "checking if JPEG package is complete... " >&6; }
40466 if test $passed -gt 0; then
40467 if test $failed -gt 0; then
40468 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40469$as_echo "no -- some components failed test" >&6; }
40470 have_jpeg='no (failed tests)'
40471 else
40472 JPEG_LIBS='-ljpeg'
40473 LIBS="$JPEG_LIBS $LIBS"
40474
40475cat >>confdefs.h <<\_ACEOF
40476#define JPEG_DELEGATE 1
40477_ACEOF
40478
40479 { $as_echo "$as_me:$LINENO: result: yes" >&5
40480$as_echo "yes" >&6; }
40481 have_jpeg='yes'
40482 fi
40483 else
40484 { $as_echo "$as_me:$LINENO: result: no" >&5
40485$as_echo "no" >&6; }
40486 fi
40487fi
40488 if test "$have_jpeg" = 'yes'; then
40489 JPEG_DELEGATE_TRUE=
40490 JPEG_DELEGATE_FALSE='#'
40491else
40492 JPEG_DELEGATE_TRUE='#'
40493 JPEG_DELEGATE_FALSE=
40494fi
40495
40496
40497
40498
40499#
40500# Check for JPEG Version 2 delegate library.
40501#
40502
40503# Check whether --with-jp2 was given.
40504if test "${with_jp2+set}" = set; then
40505 withval=$with_jp2; with_jp2=$withval
40506else
40507 with_jp2='yes'
40508fi
40509
40510
40511if test "$with_jp2" != 'yes'; then
40512 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
40513fi
40514
40515have_jp2='no'
40516JP2_LIBS=''
40517if test "$with_jp2" != 'no'; then
40518 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40519$as_echo "-------------------------------------------------------------" >&6; }
40520 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
40521$as_echo_n "checking for JPEG Version 2... " >&6; }
40522 { $as_echo "$as_me:$LINENO: result: " >&5
40523$as_echo "" >&6; }
40524 failed=0
40525 passed=0
40526 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40527 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40528$as_echo_n "checking for jasper/jasper.h... " >&6; }
40529if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40530 $as_echo_n "(cached) " >&6
40531fi
40532{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40533$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40534else
40535 # Is the header compilable?
40536{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
40537$as_echo_n "checking jasper/jasper.h usability... " >&6; }
40538cat >conftest.$ac_ext <<_ACEOF
40539/* confdefs.h. */
40540_ACEOF
40541cat confdefs.h >>conftest.$ac_ext
40542cat >>conftest.$ac_ext <<_ACEOF
40543/* end confdefs.h. */
40544$ac_includes_default
40545#include <jasper/jasper.h>
40546_ACEOF
40547rm -f conftest.$ac_objext
40548if { (ac_try="$ac_compile"
40549case "(($ac_try" in
40550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40551 *) ac_try_echo=$ac_try;;
40552esac
40553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40554$as_echo "$ac_try_echo") >&5
40555 (eval "$ac_compile") 2>conftest.er1
40556 ac_status=$?
40557 grep -v '^ *+' conftest.er1 >conftest.err
40558 rm -f conftest.er1
40559 cat conftest.err >&5
40560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561 (exit $ac_status); } && {
40562 test -z "$ac_c_werror_flag" ||
40563 test ! -s conftest.err
40564 } && test -s conftest.$ac_objext; then
40565 ac_header_compiler=yes
40566else
40567 $as_echo "$as_me: failed program was:" >&5
40568sed 's/^/| /' conftest.$ac_ext >&5
40569
40570 ac_header_compiler=no
40571fi
40572
40573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40574{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40575$as_echo "$ac_header_compiler" >&6; }
40576
40577# Is the header present?
40578{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
40579$as_echo_n "checking jasper/jasper.h presence... " >&6; }
40580cat >conftest.$ac_ext <<_ACEOF
40581/* confdefs.h. */
40582_ACEOF
40583cat confdefs.h >>conftest.$ac_ext
40584cat >>conftest.$ac_ext <<_ACEOF
40585/* end confdefs.h. */
40586#include <jasper/jasper.h>
40587_ACEOF
40588if { (ac_try="$ac_cpp conftest.$ac_ext"
40589case "(($ac_try" in
40590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40591 *) ac_try_echo=$ac_try;;
40592esac
40593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40594$as_echo "$ac_try_echo") >&5
40595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40596 ac_status=$?
40597 grep -v '^ *+' conftest.er1 >conftest.err
40598 rm -f conftest.er1
40599 cat conftest.err >&5
40600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601 (exit $ac_status); } >/dev/null && {
40602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40603 test ! -s conftest.err
40604 }; then
40605 ac_header_preproc=yes
40606else
40607 $as_echo "$as_me: failed program was:" >&5
40608sed 's/^/| /' conftest.$ac_ext >&5
40609
40610 ac_header_preproc=no
40611fi
40612
40613rm -f conftest.err conftest.$ac_ext
40614{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40615$as_echo "$ac_header_preproc" >&6; }
40616
40617# So? What about this header?
40618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40619 yes:no: )
40620 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
40621$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40622 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
40623$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
40624 ac_header_preproc=yes
40625 ;;
40626 no:yes:* )
40627 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
40628$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
40629 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
40630$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
40631 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
40632$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
40633 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
40634$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
40635 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
40636$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
40637 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
40638$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
40639 ( cat <<\_ASBOX
40640## ----------------------------------------- ##
40641## Report this to http://www.imagemagick.org ##
40642## ----------------------------------------- ##
40643_ASBOX
40644 ) | sed "s/^/$as_me: WARNING: /" >&2
40645 ;;
40646esac
40647{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40648$as_echo_n "checking for jasper/jasper.h... " >&6; }
40649if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40650 $as_echo_n "(cached) " >&6
40651else
40652 ac_cv_header_jasper_jasper_h=$ac_header_preproc
40653fi
40654{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40655$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40656
40657fi
40658if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
40659 passed=`expr $passed + 1`
40660else
40661 failed=`expr $failed + 1`
40662fi
40663
40664
40665 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
40666$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
40667if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
40668 $as_echo_n "(cached) " >&6
40669else
40670 ac_check_lib_save_LIBS=$LIBS
40671LIBS="-ljasper $LIBS"
40672cat >conftest.$ac_ext <<_ACEOF
40673/* confdefs.h. */
40674_ACEOF
40675cat confdefs.h >>conftest.$ac_ext
40676cat >>conftest.$ac_ext <<_ACEOF
40677/* end confdefs.h. */
40678
40679/* Override any GCC internal prototype to avoid an error.
40680 Use char because int might match the return type of a GCC
40681 builtin and then its argument prototype would still apply. */
40682#ifdef __cplusplus
40683extern "C"
40684#endif
40685char jas_stream_fopen ();
40686int
40687main ()
40688{
40689return jas_stream_fopen ();
40690 ;
40691 return 0;
40692}
40693_ACEOF
40694rm -f conftest.$ac_objext conftest$ac_exeext
40695if { (ac_try="$ac_link"
40696case "(($ac_try" in
40697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40698 *) ac_try_echo=$ac_try;;
40699esac
40700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40701$as_echo "$ac_try_echo") >&5
40702 (eval "$ac_link") 2>conftest.er1
40703 ac_status=$?
40704 grep -v '^ *+' conftest.er1 >conftest.err
40705 rm -f conftest.er1
40706 cat conftest.err >&5
40707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708 (exit $ac_status); } && {
40709 test -z "$ac_c_werror_flag" ||
40710 test ! -s conftest.err
40711 } && test -s conftest$ac_exeext && {
40712 test "$cross_compiling" = yes ||
40713 $as_test_x conftest$ac_exeext
40714 }; then
40715 ac_cv_lib_jasper_jas_stream_fopen=yes
40716else
40717 $as_echo "$as_me: failed program was:" >&5
40718sed 's/^/| /' conftest.$ac_ext >&5
40719
40720 ac_cv_lib_jasper_jas_stream_fopen=no
40721fi
40722
40723rm -rf conftest.dSYM
40724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40725 conftest$ac_exeext conftest.$ac_ext
40726LIBS=$ac_check_lib_save_LIBS
40727fi
40728{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
40729$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
40730if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
40731 passed=`expr $passed + 1`
40732else
40733 failed=`expr $failed + 1`
40734fi
40735
40736 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
40737$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
40738 if test $passed -gt 0; then
40739 if test $failed -gt 0; then
40740 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40741$as_echo "no -- some components failed test" >&6; }
40742 have_jp2='no (failed tests)'
40743 else
40744 JP2_LIBS='-ljasper'
40745 LIBS="$JP2_LIBS $LIBS"
40746
40747cat >>confdefs.h <<\_ACEOF
40748#define JP2_DELEGATE 1
40749_ACEOF
40750
40751 { $as_echo "$as_me:$LINENO: result: yes" >&5
40752$as_echo "yes" >&6; }
40753 have_jp2='yes'
40754 fi
40755 else
40756 { $as_echo "$as_me:$LINENO: result: no" >&5
40757$as_echo "no" >&6; }
40758 fi
40759fi
40760 if test "$have_jp2" = 'yes'; then
40761 JP2_DELEGATE_TRUE=
40762 JP2_DELEGATE_FALSE='#'
40763else
40764 JP2_DELEGATE_TRUE='#'
40765 JP2_DELEGATE_FALSE=
40766fi
40767
40768
40769
40770
40771#
40772# Check for LCMS delegate library.
40773#
40774
40775# Check whether --with-lcms was given.
40776if test "${with_lcms+set}" = set; then
40777 withval=$with_lcms; with_lcms=$withval
40778else
40779 with_lcms='yes'
40780fi
40781
40782
40783if test "$with_lcms" != 'yes'; then
40784 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
40785fi
40786
40787have_lcms='no'
40788LCMS_LIBS=''
40789if test "$with_lcms" != 'no'; then
40790 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40791$as_echo "-------------------------------------------------------------" >&6; }
40792 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
40793$as_echo_n "checking for LCMS... " >&6; }
40794 { $as_echo "$as_me:$LINENO: result: " >&5
40795$as_echo "" >&6; }
40796 failed=0
40797 passed=0
40798 have_lcms_header='no'
40799 if test "${ac_cv_header_lcms_h+set}" = set; then
40800 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40801$as_echo_n "checking for lcms.h... " >&6; }
40802if test "${ac_cv_header_lcms_h+set}" = set; then
40803 $as_echo_n "(cached) " >&6
40804fi
40805{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40806$as_echo "$ac_cv_header_lcms_h" >&6; }
40807else
40808 # Is the header compilable?
40809{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
40810$as_echo_n "checking lcms.h usability... " >&6; }
40811cat >conftest.$ac_ext <<_ACEOF
40812/* confdefs.h. */
40813_ACEOF
40814cat confdefs.h >>conftest.$ac_ext
40815cat >>conftest.$ac_ext <<_ACEOF
40816/* end confdefs.h. */
40817$ac_includes_default
40818#include <lcms.h>
40819_ACEOF
40820rm -f conftest.$ac_objext
40821if { (ac_try="$ac_compile"
40822case "(($ac_try" in
40823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40824 *) ac_try_echo=$ac_try;;
40825esac
40826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40827$as_echo "$ac_try_echo") >&5
40828 (eval "$ac_compile") 2>conftest.er1
40829 ac_status=$?
40830 grep -v '^ *+' conftest.er1 >conftest.err
40831 rm -f conftest.er1
40832 cat conftest.err >&5
40833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40834 (exit $ac_status); } && {
40835 test -z "$ac_c_werror_flag" ||
40836 test ! -s conftest.err
40837 } && test -s conftest.$ac_objext; then
40838 ac_header_compiler=yes
40839else
40840 $as_echo "$as_me: failed program was:" >&5
40841sed 's/^/| /' conftest.$ac_ext >&5
40842
40843 ac_header_compiler=no
40844fi
40845
40846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40847{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40848$as_echo "$ac_header_compiler" >&6; }
40849
40850# Is the header present?
40851{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40852$as_echo_n "checking lcms.h presence... " >&6; }
40853cat >conftest.$ac_ext <<_ACEOF
40854/* confdefs.h. */
40855_ACEOF
40856cat confdefs.h >>conftest.$ac_ext
40857cat >>conftest.$ac_ext <<_ACEOF
40858/* end confdefs.h. */
40859#include <lcms.h>
40860_ACEOF
40861if { (ac_try="$ac_cpp conftest.$ac_ext"
40862case "(($ac_try" in
40863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40864 *) ac_try_echo=$ac_try;;
40865esac
40866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40867$as_echo "$ac_try_echo") >&5
40868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40869 ac_status=$?
40870 grep -v '^ *+' conftest.er1 >conftest.err
40871 rm -f conftest.er1
40872 cat conftest.err >&5
40873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); } >/dev/null && {
40875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40876 test ! -s conftest.err
40877 }; then
40878 ac_header_preproc=yes
40879else
40880 $as_echo "$as_me: failed program was:" >&5
40881sed 's/^/| /' conftest.$ac_ext >&5
40882
40883 ac_header_preproc=no
40884fi
40885
40886rm -f conftest.err conftest.$ac_ext
40887{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40888$as_echo "$ac_header_preproc" >&6; }
40889
40890# So? What about this header?
40891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40892 yes:no: )
40893 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40894$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40895 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40896$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40897 ac_header_preproc=yes
40898 ;;
40899 no:yes:* )
40900 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40901$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40902 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40903$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40904 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40905$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40906 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40907$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40908 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40909$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40910 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40911$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40912 ( cat <<\_ASBOX
40913## ----------------------------------------- ##
40914## Report this to http://www.imagemagick.org ##
40915## ----------------------------------------- ##
40916_ASBOX
40917 ) | sed "s/^/$as_me: WARNING: /" >&2
40918 ;;
40919esac
40920{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40921$as_echo_n "checking for lcms.h... " >&6; }
40922if test "${ac_cv_header_lcms_h+set}" = set; then
40923 $as_echo_n "(cached) " >&6
40924else
40925 ac_cv_header_lcms_h=$ac_header_preproc
40926fi
40927{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40928$as_echo "$ac_cv_header_lcms_h" >&6; }
40929
40930fi
40931if test "x$ac_cv_header_lcms_h" = x""yes; then
40932 have_lcms_header='yes'
40933fi
40934
40935
40936 if test "$have_lcms_header" = 'yes'; then
40937 passed=`expr $passed + 1`
40938
40939cat >>confdefs.h <<\_ACEOF
40940#define HAVE_LCMS_H 1
40941_ACEOF
40942
40943 else
40944 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40945 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40946$as_echo_n "checking for lcms/lcms.h... " >&6; }
40947if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40948 $as_echo_n "(cached) " >&6
40949fi
40950{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40951$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40952else
40953 # Is the header compilable?
40954{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40955$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40956cat >conftest.$ac_ext <<_ACEOF
40957/* confdefs.h. */
40958_ACEOF
40959cat confdefs.h >>conftest.$ac_ext
40960cat >>conftest.$ac_ext <<_ACEOF
40961/* end confdefs.h. */
40962$ac_includes_default
40963#include <lcms/lcms.h>
40964_ACEOF
40965rm -f conftest.$ac_objext
40966if { (ac_try="$ac_compile"
40967case "(($ac_try" in
40968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969 *) ac_try_echo=$ac_try;;
40970esac
40971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40972$as_echo "$ac_try_echo") >&5
40973 (eval "$ac_compile") 2>conftest.er1
40974 ac_status=$?
40975 grep -v '^ *+' conftest.er1 >conftest.err
40976 rm -f conftest.er1
40977 cat conftest.err >&5
40978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40979 (exit $ac_status); } && {
40980 test -z "$ac_c_werror_flag" ||
40981 test ! -s conftest.err
40982 } && test -s conftest.$ac_objext; then
40983 ac_header_compiler=yes
40984else
40985 $as_echo "$as_me: failed program was:" >&5
40986sed 's/^/| /' conftest.$ac_ext >&5
40987
40988 ac_header_compiler=no
40989fi
40990
40991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40992{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40993$as_echo "$ac_header_compiler" >&6; }
40994
40995# Is the header present?
40996{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40997$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40998cat >conftest.$ac_ext <<_ACEOF
40999/* confdefs.h. */
41000_ACEOF
41001cat confdefs.h >>conftest.$ac_ext
41002cat >>conftest.$ac_ext <<_ACEOF
41003/* end confdefs.h. */
41004#include <lcms/lcms.h>
41005_ACEOF
41006if { (ac_try="$ac_cpp conftest.$ac_ext"
41007case "(($ac_try" in
41008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009 *) ac_try_echo=$ac_try;;
41010esac
41011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41012$as_echo "$ac_try_echo") >&5
41013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41014 ac_status=$?
41015 grep -v '^ *+' conftest.er1 >conftest.err
41016 rm -f conftest.er1
41017 cat conftest.err >&5
41018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); } >/dev/null && {
41020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41021 test ! -s conftest.err
41022 }; then
41023 ac_header_preproc=yes
41024else
41025 $as_echo "$as_me: failed program was:" >&5
41026sed 's/^/| /' conftest.$ac_ext >&5
41027
41028 ac_header_preproc=no
41029fi
41030
41031rm -f conftest.err conftest.$ac_ext
41032{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41033$as_echo "$ac_header_preproc" >&6; }
41034
41035# So? What about this header?
41036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41037 yes:no: )
41038 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
41039$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41040 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
41041$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
41042 ac_header_preproc=yes
41043 ;;
41044 no:yes:* )
41045 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
41046$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
41047 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
41048$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
41049 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
41050$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
41051 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
41052$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
41053 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
41054$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
41055 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
41056$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
41057 ( cat <<\_ASBOX
41058## ----------------------------------------- ##
41059## Report this to http://www.imagemagick.org ##
41060## ----------------------------------------- ##
41061_ASBOX
41062 ) | sed "s/^/$as_me: WARNING: /" >&2
41063 ;;
41064esac
41065{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
41066$as_echo_n "checking for lcms/lcms.h... " >&6; }
41067if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
41068 $as_echo_n "(cached) " >&6
41069else
41070 ac_cv_header_lcms_lcms_h=$ac_header_preproc
41071fi
41072{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
41073$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
41074
41075fi
41076if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
41077 have_lcms_header='yes'
41078fi
41079
41080
41081 if test "$have_lcms_header" = 'yes'; then
41082 passed=`expr $passed + 1`
41083
41084cat >>confdefs.h <<\_ACEOF
41085#define HAVE_LCMS_LCMS_H 1
41086_ACEOF
41087
41088 else
41089 failed=`expr $failed + 1`
41090 fi
41091 fi
41092 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
41093$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
41094if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
41095 $as_echo_n "(cached) " >&6
41096else
41097 ac_check_lib_save_LIBS=$LIBS
41098LIBS="-llcms $LIBS"
41099cat >conftest.$ac_ext <<_ACEOF
41100/* confdefs.h. */
41101_ACEOF
41102cat confdefs.h >>conftest.$ac_ext
41103cat >>conftest.$ac_ext <<_ACEOF
41104/* end confdefs.h. */
41105
41106/* Override any GCC internal prototype to avoid an error.
41107 Use char because int might match the return type of a GCC
41108 builtin and then its argument prototype would still apply. */
41109#ifdef __cplusplus
41110extern "C"
41111#endif
41112char cmsOpenProfileFromMem ();
41113int
41114main ()
41115{
41116return cmsOpenProfileFromMem ();
41117 ;
41118 return 0;
41119}
41120_ACEOF
41121rm -f conftest.$ac_objext conftest$ac_exeext
41122if { (ac_try="$ac_link"
41123case "(($ac_try" in
41124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41125 *) ac_try_echo=$ac_try;;
41126esac
41127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41128$as_echo "$ac_try_echo") >&5
41129 (eval "$ac_link") 2>conftest.er1
41130 ac_status=$?
41131 grep -v '^ *+' conftest.er1 >conftest.err
41132 rm -f conftest.er1
41133 cat conftest.err >&5
41134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41135 (exit $ac_status); } && {
41136 test -z "$ac_c_werror_flag" ||
41137 test ! -s conftest.err
41138 } && test -s conftest$ac_exeext && {
41139 test "$cross_compiling" = yes ||
41140 $as_test_x conftest$ac_exeext
41141 }; then
41142 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
41143else
41144 $as_echo "$as_me: failed program was:" >&5
41145sed 's/^/| /' conftest.$ac_ext >&5
41146
41147 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
41148fi
41149
41150rm -rf conftest.dSYM
41151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41152 conftest$ac_exeext conftest.$ac_ext
41153LIBS=$ac_check_lib_save_LIBS
41154fi
41155{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
41156$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
41157if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
41158 passed=`expr $passed + 1`
41159else
41160 failed=`expr $failed + 1`
41161fi
41162
41163 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
41164$as_echo_n "checking if LCMS package is complete... " >&6; }
41165 if test $passed -gt 0; then
41166 if test $failed -gt 0; then
41167 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41168$as_echo "no -- some components failed test" >&6; }
41169 have_lcms='no (failed tests)'
41170 else
41171 LCMS_LIBS='-llcms'
41172 LIBS="$LCMS_LIBS $LIBS"
41173
41174cat >>confdefs.h <<\_ACEOF
41175#define LCMS_DELEGATE 1
41176_ACEOF
41177
41178 { $as_echo "$as_me:$LINENO: result: yes" >&5
41179$as_echo "yes" >&6; }
41180 have_lcms='yes'
41181 fi
41182 else
41183 { $as_echo "$as_me:$LINENO: result: no" >&5
41184$as_echo "no" >&6; }
41185 fi
41186fi
41187 if test "$have_lcms" = 'yes'; then
41188 LCMS_DELEGATE_TRUE=
41189 LCMS_DELEGATE_FALSE='#'
41190else
41191 LCMS_DELEGATE_TRUE='#'
41192 LCMS_DELEGATE_FALSE=
41193fi
41194
41195
41196
41197
41198#
41199# Check for the LQR (Liquid Rescale) delegate library.
41200#
41201
41202# Check whether --with-lqr was given.
41203if test "${with_lqr+set}" = set; then
41204 withval=$with_lqr; with_lqr=$withval
41205else
41206 with_lqr='yes'
41207fi
41208
41209
41210if test "$with_lqr" != 'yes'; then
41211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
41212fi
41213
41214have_lqr='no'
41215LQR_CFLAGS=""
41216LQR_LIBS=""
41217LQR_PKG=""
41218if test "x$with_lqr" = "xyes"; then
41219 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41220$as_echo "-------------------------------------------------------------" >&6; }
41221
41222pkg_failed=no
41223{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
41224$as_echo_n "checking for LQR... " >&6; }
41225
41226if test -n "$LQR_CFLAGS"; then
41227 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
41228 elif test -n "$PKG_CONFIG"; then
41229 if test -n "$PKG_CONFIG" && \
41230 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41231 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41232 ac_status=$?
41233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); }; then
41235 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
41236else
41237 pkg_failed=yes
41238fi
41239 else
41240 pkg_failed=untried
41241fi
41242if test -n "$LQR_LIBS"; then
41243 pkg_cv_LQR_LIBS="$LQR_LIBS"
41244 elif test -n "$PKG_CONFIG"; then
41245 if test -n "$PKG_CONFIG" && \
41246 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41247 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41248 ac_status=$?
41249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41250 (exit $ac_status); }; then
41251 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
41252else
41253 pkg_failed=yes
41254fi
41255 else
41256 pkg_failed=untried
41257fi
41258
41259
41260
41261if test $pkg_failed = yes; then
41262
41263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41264 _pkg_short_errors_supported=yes
41265else
41266 _pkg_short_errors_supported=no
41267fi
41268 if test $_pkg_short_errors_supported = yes; then
41269 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
41270 else
41271 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
41272 fi
41273 # Put the nasty error message in config.log where it belongs
41274 echo "$LQR_PKG_ERRORS" >&5
41275
41276 { $as_echo "$as_me:$LINENO: result: no" >&5
41277$as_echo "no" >&6; }
41278 have_lqr=no
41279elif test $pkg_failed = untried; then
41280 have_lqr=no
41281else
41282 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
41283 LQR_LIBS=$pkg_cv_LQR_LIBS
41284 { $as_echo "$as_me:$LINENO: result: yes" >&5
41285$as_echo "yes" >&6; }
41286 have_lqr=yes
41287fi
41288 { $as_echo "$as_me:$LINENO: result: " >&5
41289$as_echo "" >&6; }
41290fi
41291
41292if test "$have_lqr" = 'yes'; then
41293
41294cat >>confdefs.h <<\_ACEOF
41295#define LQR_DELEGATE 1
41296_ACEOF
41297
41298 CFLAGS="$LQR_CFLAGS $CFLAGS"
41299fi
41300
41301 if test "$have_lqr" = 'yes'; then
41302 LQR_DELEGATE_TRUE=
41303 LQR_DELEGATE_FALSE='#'
41304else
41305 LQR_DELEGATE_TRUE='#'
41306 LQR_DELEGATE_FALSE=
41307fi
41308
41309
41310
41311
41312
41313#
41314# Check for the OpenEXR delegate library.
41315#
41316
41317# Check whether --with-openexr was given.
41318if test "${with_openexr+set}" = set; then
41319 withval=$with_openexr; with_openexr=$withval
41320else
41321 with_openexr='yes'
41322fi
41323
41324
41325if test "$with_openexr" != 'yes'; then
41326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
41327fi
41328
41329have_openexr='no'
41330OPENEXR_CFLAGS=""
41331OPENEXR_LIBS=""
41332OPENEXR_PKG=""
41333if test "x$with_openexr" = "xyes"; then
41334 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41335$as_echo "-------------------------------------------------------------" >&6; }
41336
41337pkg_failed=no
41338{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
41339$as_echo_n "checking for OPENEXR... " >&6; }
41340
41341if test -n "$OPENEXR_CFLAGS"; then
41342 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
41343 elif test -n "$PKG_CONFIG"; then
41344 if test -n "$PKG_CONFIG" && \
41345 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41346 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41347 ac_status=$?
41348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); }; then
41350 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
41351else
41352 pkg_failed=yes
41353fi
41354 else
41355 pkg_failed=untried
41356fi
41357if test -n "$OPENEXR_LIBS"; then
41358 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
41359 elif test -n "$PKG_CONFIG"; then
41360 if test -n "$PKG_CONFIG" && \
41361 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41362 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41363 ac_status=$?
41364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); }; then
41366 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
41367else
41368 pkg_failed=yes
41369fi
41370 else
41371 pkg_failed=untried
41372fi
41373
41374
41375
41376if test $pkg_failed = yes; then
41377
41378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41379 _pkg_short_errors_supported=yes
41380else
41381 _pkg_short_errors_supported=no
41382fi
41383 if test $_pkg_short_errors_supported = yes; then
41384 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
41385 else
41386 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
41387 fi
41388 # Put the nasty error message in config.log where it belongs
41389 echo "$OPENEXR_PKG_ERRORS" >&5
41390
41391 { $as_echo "$as_me:$LINENO: result: no" >&5
41392$as_echo "no" >&6; }
41393 have_openexr=no
41394elif test $pkg_failed = untried; then
41395 have_openexr=no
41396else
41397 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
41398 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
41399 { $as_echo "$as_me:$LINENO: result: yes" >&5
41400$as_echo "yes" >&6; }
41401 have_openexr=yes
41402fi
41403 { $as_echo "$as_me:$LINENO: result: " >&5
41404$as_echo "" >&6; }
41405fi
41406
41407if test "$have_openexr" = 'yes'; then
41408
41409cat >>confdefs.h <<\_ACEOF
41410#define OPENEXR_DELEGATE 1
41411_ACEOF
41412
41413 if test "$with_modules" = 'no'; then
41414 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
41415 fi
41416fi
41417
41418 if test "$have_openexr" = 'yes'; then
41419 OPENEXR_DELEGATE_TRUE=
41420 OPENEXR_DELEGATE_FALSE='#'
41421else
41422 OPENEXR_DELEGATE_TRUE='#'
41423 OPENEXR_DELEGATE_FALSE=
41424fi
41425
41426
41427
41428
41429
41430#
41431# Check for PNG delegate library.
41432#
41433
41434# Check whether --with-png was given.
41435if test "${with_png+set}" = set; then
41436 withval=$with_png; with_png=$withval
41437else
41438 with_png='yes'
41439fi
41440
41441
41442if test "$with_png" != 'yes'; then
41443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
41444fi
41445
41446have_png='no'
41447PNG_LIBS=''
41448if test "$with_png" != 'no'; then
41449 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41450$as_echo "-------------------------------------------------------------" >&6; }
41451 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
41452$as_echo_n "checking for PNG... " >&6; }
41453 { $as_echo "$as_me:$LINENO: result: " >&5
41454$as_echo "" >&6; }
41455 failed=0
41456 passed=0
41457 if test "${ac_cv_header_png_h+set}" = set; then
41458 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
41459$as_echo_n "checking for png.h... " >&6; }
41460if test "${ac_cv_header_png_h+set}" = set; then
41461 $as_echo_n "(cached) " >&6
41462fi
41463{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41464$as_echo "$ac_cv_header_png_h" >&6; }
41465else
41466 # Is the header compilable?
41467{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
41468$as_echo_n "checking png.h usability... " >&6; }
41469cat >conftest.$ac_ext <<_ACEOF
41470/* confdefs.h. */
41471_ACEOF
41472cat confdefs.h >>conftest.$ac_ext
41473cat >>conftest.$ac_ext <<_ACEOF
41474/* end confdefs.h. */
41475$ac_includes_default
41476#include <png.h>
41477_ACEOF
41478rm -f conftest.$ac_objext
41479if { (ac_try="$ac_compile"
41480case "(($ac_try" in
41481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41482 *) ac_try_echo=$ac_try;;
41483esac
41484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41485$as_echo "$ac_try_echo") >&5
41486 (eval "$ac_compile") 2>conftest.er1
41487 ac_status=$?
41488 grep -v '^ *+' conftest.er1 >conftest.err
41489 rm -f conftest.er1
41490 cat conftest.err >&5
41491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); } && {
41493 test -z "$ac_c_werror_flag" ||
41494 test ! -s conftest.err
41495 } && test -s conftest.$ac_objext; then
41496 ac_header_compiler=yes
41497else
41498 $as_echo "$as_me: failed program was:" >&5
41499sed 's/^/| /' conftest.$ac_ext >&5
41500
41501 ac_header_compiler=no
41502fi
41503
41504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41505{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41506$as_echo "$ac_header_compiler" >&6; }
41507
41508# Is the header present?
41509{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
41510$as_echo_n "checking png.h presence... " >&6; }
41511cat >conftest.$ac_ext <<_ACEOF
41512/* confdefs.h. */
41513_ACEOF
41514cat confdefs.h >>conftest.$ac_ext
41515cat >>conftest.$ac_ext <<_ACEOF
41516/* end confdefs.h. */
41517#include <png.h>
41518_ACEOF
41519if { (ac_try="$ac_cpp conftest.$ac_ext"
41520case "(($ac_try" in
41521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41522 *) ac_try_echo=$ac_try;;
41523esac
41524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41525$as_echo "$ac_try_echo") >&5
41526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41527 ac_status=$?
41528 grep -v '^ *+' conftest.er1 >conftest.err
41529 rm -f conftest.er1
41530 cat conftest.err >&5
41531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); } >/dev/null && {
41533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41534 test ! -s conftest.err
41535 }; then
41536 ac_header_preproc=yes
41537else
41538 $as_echo "$as_me: failed program was:" >&5
41539sed 's/^/| /' conftest.$ac_ext >&5
41540
41541 ac_header_preproc=no
41542fi
41543
41544rm -f conftest.err conftest.$ac_ext
41545{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41546$as_echo "$ac_header_preproc" >&6; }
41547
41548# So? What about this header?
41549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41550 yes:no: )
41551 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
41552$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41553 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
41554$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
41555 ac_header_preproc=yes
41556 ;;
41557 no:yes:* )
41558 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
41559$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
41560 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
41561$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
41562 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
41563$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
41564 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
41565$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
41566 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
41567$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
41568 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
41569$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
41570 ( cat <<\_ASBOX
41571## ----------------------------------------- ##
41572## Report this to http://www.imagemagick.org ##
41573## ----------------------------------------- ##
41574_ASBOX
41575 ) | sed "s/^/$as_me: WARNING: /" >&2
41576 ;;
41577esac
41578{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
41579$as_echo_n "checking for png.h... " >&6; }
41580if test "${ac_cv_header_png_h+set}" = set; then
41581 $as_echo_n "(cached) " >&6
41582else
41583 ac_cv_header_png_h=$ac_header_preproc
41584fi
41585{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41586$as_echo "$ac_cv_header_png_h" >&6; }
41587
41588fi
41589if test "x$ac_cv_header_png_h" = x""yes; then
41590 passed=`expr $passed + 1`
41591else
41592 failed=`expr $failed + 1`
41593fi
41594
41595
41596 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
41597$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
41598if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
41599 $as_echo_n "(cached) " >&6
41600else
41601 ac_check_lib_save_LIBS=$LIBS
41602LIBS="-lpng $LIBS"
41603cat >conftest.$ac_ext <<_ACEOF
41604/* confdefs.h. */
41605_ACEOF
41606cat confdefs.h >>conftest.$ac_ext
41607cat >>conftest.$ac_ext <<_ACEOF
41608/* end confdefs.h. */
41609
41610/* Override any GCC internal prototype to avoid an error.
41611 Use char because int might match the return type of a GCC
41612 builtin and then its argument prototype would still apply. */
41613#ifdef __cplusplus
41614extern "C"
41615#endif
41616char png_get_io_ptr ();
41617int
41618main ()
41619{
41620return png_get_io_ptr ();
41621 ;
41622 return 0;
41623}
41624_ACEOF
41625rm -f conftest.$ac_objext conftest$ac_exeext
41626if { (ac_try="$ac_link"
41627case "(($ac_try" in
41628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41629 *) ac_try_echo=$ac_try;;
41630esac
41631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41632$as_echo "$ac_try_echo") >&5
41633 (eval "$ac_link") 2>conftest.er1
41634 ac_status=$?
41635 grep -v '^ *+' conftest.er1 >conftest.err
41636 rm -f conftest.er1
41637 cat conftest.err >&5
41638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639 (exit $ac_status); } && {
41640 test -z "$ac_c_werror_flag" ||
41641 test ! -s conftest.err
41642 } && test -s conftest$ac_exeext && {
41643 test "$cross_compiling" = yes ||
41644 $as_test_x conftest$ac_exeext
41645 }; then
41646 ac_cv_lib_png_png_get_io_ptr=yes
41647else
41648 $as_echo "$as_me: failed program was:" >&5
41649sed 's/^/| /' conftest.$ac_ext >&5
41650
41651 ac_cv_lib_png_png_get_io_ptr=no
41652fi
41653
41654rm -rf conftest.dSYM
41655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41656 conftest$ac_exeext conftest.$ac_ext
41657LIBS=$ac_check_lib_save_LIBS
41658fi
41659{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
41660$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
41661if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
41662 passed=`expr $passed + 1`
41663else
41664 failed=`expr $failed + 1`
41665fi
41666
41667 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
41668$as_echo_n "checking if PNG package is complete... " >&6; }
41669 if test $passed -gt 0; then
41670 if test $failed -gt 0; then
41671 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41672$as_echo "no -- some components failed test" >&6; }
41673 have_png='no (failed tests)'
41674 else
41675 PNG_LIBS='-lpng'
41676 LIBS="$PNG_LIBS $LIBS"
41677
41678cat >>confdefs.h <<\_ACEOF
41679#define PNG_DELEGATE 1
41680_ACEOF
41681
41682 { $as_echo "$as_me:$LINENO: result: yes" >&5
41683$as_echo "yes" >&6; }
41684 have_png='yes'
41685 fi
41686 else
41687 { $as_echo "$as_me:$LINENO: result: no" >&5
41688$as_echo "no" >&6; }
41689 fi
41690fi
41691 if test "$have_png" = 'yes'; then
41692 PNG_DELEGATE_TRUE=
41693 PNG_DELEGATE_FALSE='#'
41694else
41695 PNG_DELEGATE_TRUE='#'
41696 PNG_DELEGATE_FALSE=
41697fi
41698
41699
41700
41701
41702#
41703# Check for RSVG delegate library.
41704#
41705
41706# Check whether --with-rsvg was given.
41707if test "${with_rsvg+set}" = set; then
41708 withval=$with_rsvg; with_rsvg=$withval
41709else
41710 with_rsvg=$have_x
41711fi
41712
41713
41714if test "$with_rsvg" != 'yes'; then
41715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
41716fi
41717
41718have_rsvg='no'
41719have_cairo='no'
41720RSVG_CFLAGS=""
41721RSVG_LIBS=""
41722RSVG_PKG=""
41723if test "x$with_rsvg" = "xyes"; then
41724 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41725$as_echo "-------------------------------------------------------------" >&6; }
41726
41727pkg_failed=no
41728{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
41729$as_echo_n "checking for RSVG... " >&6; }
41730
41731if test -n "$RSVG_CFLAGS"; then
41732 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
41733 elif test -n "$PKG_CONFIG"; then
41734 if test -n "$PKG_CONFIG" && \
41735 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41736 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41737 ac_status=$?
41738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41739 (exit $ac_status); }; then
41740 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41741else
41742 pkg_failed=yes
41743fi
41744 else
41745 pkg_failed=untried
41746fi
41747if test -n "$RSVG_LIBS"; then
41748 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
41749 elif test -n "$PKG_CONFIG"; then
41750 if test -n "$PKG_CONFIG" && \
41751 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41752 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41753 ac_status=$?
41754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); }; then
41756 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41757else
41758 pkg_failed=yes
41759fi
41760 else
41761 pkg_failed=untried
41762fi
41763
41764
41765
41766if test $pkg_failed = yes; then
41767
41768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41769 _pkg_short_errors_supported=yes
41770else
41771 _pkg_short_errors_supported=no
41772fi
41773 if test $_pkg_short_errors_supported = yes; then
41774 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41775 else
41776 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41777 fi
41778 # Put the nasty error message in config.log where it belongs
41779 echo "$RSVG_PKG_ERRORS" >&5
41780
41781 { $as_echo "$as_me:$LINENO: result: no" >&5
41782$as_echo "no" >&6; }
41783 have_rsvg=no
41784elif test $pkg_failed = untried; then
41785 have_rsvg=no
41786else
41787 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
41788 RSVG_LIBS=$pkg_cv_RSVG_LIBS
41789 { $as_echo "$as_me:$LINENO: result: yes" >&5
41790$as_echo "yes" >&6; }
41791 have_rsvg=yes
41792fi
41793 { $as_echo "$as_me:$LINENO: result: " >&5
41794$as_echo "" >&6; }
41795
41796pkg_failed=no
41797{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
41798$as_echo_n "checking for CAIRO_SVG... " >&6; }
41799
41800if test -n "$CAIRO_SVG_CFLAGS"; then
41801 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
41802 elif test -n "$PKG_CONFIG"; then
41803 if test -n "$PKG_CONFIG" && \
41804 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41805 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41806 ac_status=$?
41807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41808 (exit $ac_status); }; then
41809 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
41810else
41811 pkg_failed=yes
41812fi
41813 else
41814 pkg_failed=untried
41815fi
41816if test -n "$CAIRO_SVG_LIBS"; then
41817 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
41818 elif test -n "$PKG_CONFIG"; then
41819 if test -n "$PKG_CONFIG" && \
41820 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41821 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41822 ac_status=$?
41823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824 (exit $ac_status); }; then
41825 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
41826else
41827 pkg_failed=yes
41828fi
41829 else
41830 pkg_failed=untried
41831fi
41832
41833
41834
41835if test $pkg_failed = yes; then
41836
41837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41838 _pkg_short_errors_supported=yes
41839else
41840 _pkg_short_errors_supported=no
41841fi
41842 if test $_pkg_short_errors_supported = yes; then
41843 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41844 else
41845 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41846 fi
41847 # Put the nasty error message in config.log where it belongs
41848 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41849
41850 { $as_echo "$as_me:$LINENO: result: no" >&5
41851$as_echo "no" >&6; }
41852 have_cairo=no
41853elif test $pkg_failed = untried; then
41854 have_cairo=no
41855else
41856 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41857 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41858 { $as_echo "$as_me:$LINENO: result: yes" >&5
41859$as_echo "yes" >&6; }
41860 have_cairo=yes
41861fi
41862 { $as_echo "$as_me:$LINENO: result: " >&5
41863$as_echo "" >&6; }
41864fi
41865
41866if test "$have_rsvg" = 'yes'; then
41867
41868cat >>confdefs.h <<\_ACEOF
41869#define RSVG_DELEGATE 1
41870_ACEOF
41871
41872 if test "$with_modules" = 'no'; then
41873 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41874 fi
41875fi
41876
41877if test "$have_cairo" = 'yes'; then
41878
41879cat >>confdefs.h <<\_ACEOF
41880#define CAIRO_DELEGATE 1
41881_ACEOF
41882
41883 if test "$with_modules" = 'no'; then
41884 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41885 fi
41886fi
41887
41888 if test "$have_rsvg" = 'yes'; then
41889 RSVG_DELEGATE_TRUE=
41890 RSVG_DELEGATE_FALSE='#'
41891else
41892 RSVG_DELEGATE_TRUE='#'
41893 RSVG_DELEGATE_FALSE=
41894fi
41895
41896 if test "$have_cairo" = 'yes'; then
41897 CAIRO_DELEGATE_TRUE=
41898 CAIRO_DELEGATE_FALSE='#'
41899else
41900 CAIRO_DELEGATE_TRUE='#'
41901 CAIRO_DELEGATE_FALSE=
41902fi
41903
41904
41905
41906
41907
41908#
41909# Check for TIFF delegate library.
41910#
41911
41912# Check whether --with-tiff was given.
41913if test "${with_tiff+set}" = set; then
41914 withval=$with_tiff; with_tiff=$withval
41915else
41916 with_tiff='yes'
41917fi
41918
41919
41920if test "$with_tiff" != 'yes'; then
41921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41922fi
41923
41924have_tiff='no'
41925TIFF_LIBS=''
41926if test "$with_tiff" != 'no'; then
41927 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41928$as_echo "-------------------------------------------------------------" >&6; }
41929 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41930$as_echo_n "checking for TIFF... " >&6; }
41931 { $as_echo "$as_me:$LINENO: result: " >&5
41932$as_echo "" >&6; }
41933 failed=0
41934 passed=0
41935 if test "${ac_cv_header_tiff_h+set}" = set; then
41936 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41937$as_echo_n "checking for tiff.h... " >&6; }
41938if test "${ac_cv_header_tiff_h+set}" = set; then
41939 $as_echo_n "(cached) " >&6
41940fi
41941{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41942$as_echo "$ac_cv_header_tiff_h" >&6; }
41943else
41944 # Is the header compilable?
41945{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41946$as_echo_n "checking tiff.h usability... " >&6; }
41947cat >conftest.$ac_ext <<_ACEOF
41948/* confdefs.h. */
41949_ACEOF
41950cat confdefs.h >>conftest.$ac_ext
41951cat >>conftest.$ac_ext <<_ACEOF
41952/* end confdefs.h. */
41953$ac_includes_default
41954#include <tiff.h>
41955_ACEOF
41956rm -f conftest.$ac_objext
41957if { (ac_try="$ac_compile"
41958case "(($ac_try" in
41959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41960 *) ac_try_echo=$ac_try;;
41961esac
41962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41963$as_echo "$ac_try_echo") >&5
41964 (eval "$ac_compile") 2>conftest.er1
41965 ac_status=$?
41966 grep -v '^ *+' conftest.er1 >conftest.err
41967 rm -f conftest.er1
41968 cat conftest.err >&5
41969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); } && {
41971 test -z "$ac_c_werror_flag" ||
41972 test ! -s conftest.err
41973 } && test -s conftest.$ac_objext; then
41974 ac_header_compiler=yes
41975else
41976 $as_echo "$as_me: failed program was:" >&5
41977sed 's/^/| /' conftest.$ac_ext >&5
41978
41979 ac_header_compiler=no
41980fi
41981
41982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41983{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41984$as_echo "$ac_header_compiler" >&6; }
41985
41986# Is the header present?
41987{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41988$as_echo_n "checking tiff.h presence... " >&6; }
41989cat >conftest.$ac_ext <<_ACEOF
41990/* confdefs.h. */
41991_ACEOF
41992cat confdefs.h >>conftest.$ac_ext
41993cat >>conftest.$ac_ext <<_ACEOF
41994/* end confdefs.h. */
41995#include <tiff.h>
41996_ACEOF
41997if { (ac_try="$ac_cpp conftest.$ac_ext"
41998case "(($ac_try" in
41999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42000 *) ac_try_echo=$ac_try;;
42001esac
42002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42003$as_echo "$ac_try_echo") >&5
42004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42005 ac_status=$?
42006 grep -v '^ *+' conftest.er1 >conftest.err
42007 rm -f conftest.er1
42008 cat conftest.err >&5
42009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); } >/dev/null && {
42011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42012 test ! -s conftest.err
42013 }; then
42014 ac_header_preproc=yes
42015else
42016 $as_echo "$as_me: failed program was:" >&5
42017sed 's/^/| /' conftest.$ac_ext >&5
42018
42019 ac_header_preproc=no
42020fi
42021
42022rm -f conftest.err conftest.$ac_ext
42023{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42024$as_echo "$ac_header_preproc" >&6; }
42025
42026# So? What about this header?
42027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42028 yes:no: )
42029 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
42030$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42031 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
42032$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
42033 ac_header_preproc=yes
42034 ;;
42035 no:yes:* )
42036 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
42037$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
42038 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
42039$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
42040 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
42041$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
42042 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
42043$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
42044 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
42045$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
42046 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
42047$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
42048 ( cat <<\_ASBOX
42049## ----------------------------------------- ##
42050## Report this to http://www.imagemagick.org ##
42051## ----------------------------------------- ##
42052_ASBOX
42053 ) | sed "s/^/$as_me: WARNING: /" >&2
42054 ;;
42055esac
42056{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
42057$as_echo_n "checking for tiff.h... " >&6; }
42058if test "${ac_cv_header_tiff_h+set}" = set; then
42059 $as_echo_n "(cached) " >&6
42060else
42061 ac_cv_header_tiff_h=$ac_header_preproc
42062fi
42063{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
42064$as_echo "$ac_cv_header_tiff_h" >&6; }
42065
42066fi
42067if test "x$ac_cv_header_tiff_h" = x""yes; then
42068 passed=`expr $passed + 1`
42069else
42070 failed=`expr $failed + 1`
42071fi
42072
42073
42074 if test "${ac_cv_header_tiffio_h+set}" = set; then
42075 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42076$as_echo_n "checking for tiffio.h... " >&6; }
42077if test "${ac_cv_header_tiffio_h+set}" = set; then
42078 $as_echo_n "(cached) " >&6
42079fi
42080{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42081$as_echo "$ac_cv_header_tiffio_h" >&6; }
42082else
42083 # Is the header compilable?
42084{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
42085$as_echo_n "checking tiffio.h usability... " >&6; }
42086cat >conftest.$ac_ext <<_ACEOF
42087/* confdefs.h. */
42088_ACEOF
42089cat confdefs.h >>conftest.$ac_ext
42090cat >>conftest.$ac_ext <<_ACEOF
42091/* end confdefs.h. */
42092$ac_includes_default
42093#include <tiffio.h>
42094_ACEOF
42095rm -f conftest.$ac_objext
42096if { (ac_try="$ac_compile"
42097case "(($ac_try" in
42098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42099 *) ac_try_echo=$ac_try;;
42100esac
42101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42102$as_echo "$ac_try_echo") >&5
42103 (eval "$ac_compile") 2>conftest.er1
42104 ac_status=$?
42105 grep -v '^ *+' conftest.er1 >conftest.err
42106 rm -f conftest.er1
42107 cat conftest.err >&5
42108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42109 (exit $ac_status); } && {
42110 test -z "$ac_c_werror_flag" ||
42111 test ! -s conftest.err
42112 } && test -s conftest.$ac_objext; then
42113 ac_header_compiler=yes
42114else
42115 $as_echo "$as_me: failed program was:" >&5
42116sed 's/^/| /' conftest.$ac_ext >&5
42117
42118 ac_header_compiler=no
42119fi
42120
42121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42122{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42123$as_echo "$ac_header_compiler" >&6; }
42124
42125# Is the header present?
42126{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
42127$as_echo_n "checking tiffio.h presence... " >&6; }
42128cat >conftest.$ac_ext <<_ACEOF
42129/* confdefs.h. */
42130_ACEOF
42131cat confdefs.h >>conftest.$ac_ext
42132cat >>conftest.$ac_ext <<_ACEOF
42133/* end confdefs.h. */
42134#include <tiffio.h>
42135_ACEOF
42136if { (ac_try="$ac_cpp conftest.$ac_ext"
42137case "(($ac_try" in
42138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42139 *) ac_try_echo=$ac_try;;
42140esac
42141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42142$as_echo "$ac_try_echo") >&5
42143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42144 ac_status=$?
42145 grep -v '^ *+' conftest.er1 >conftest.err
42146 rm -f conftest.er1
42147 cat conftest.err >&5
42148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42149 (exit $ac_status); } >/dev/null && {
42150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42151 test ! -s conftest.err
42152 }; then
42153 ac_header_preproc=yes
42154else
42155 $as_echo "$as_me: failed program was:" >&5
42156sed 's/^/| /' conftest.$ac_ext >&5
42157
42158 ac_header_preproc=no
42159fi
42160
42161rm -f conftest.err conftest.$ac_ext
42162{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42163$as_echo "$ac_header_preproc" >&6; }
42164
42165# So? What about this header?
42166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42167 yes:no: )
42168 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
42169$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42170 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
42171$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
42172 ac_header_preproc=yes
42173 ;;
42174 no:yes:* )
42175 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
42176$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
42177 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
42178$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
42179 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
42180$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
42181 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
42182$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
42183 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
42184$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
42185 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
42186$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
42187 ( cat <<\_ASBOX
42188## ----------------------------------------- ##
42189## Report this to http://www.imagemagick.org ##
42190## ----------------------------------------- ##
42191_ASBOX
42192 ) | sed "s/^/$as_me: WARNING: /" >&2
42193 ;;
42194esac
42195{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42196$as_echo_n "checking for tiffio.h... " >&6; }
42197if test "${ac_cv_header_tiffio_h+set}" = set; then
42198 $as_echo_n "(cached) " >&6
42199else
42200 ac_cv_header_tiffio_h=$ac_header_preproc
42201fi
42202{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42203$as_echo "$ac_cv_header_tiffio_h" >&6; }
42204
42205fi
42206if test "x$ac_cv_header_tiffio_h" = x""yes; then
42207 passed=`expr $passed + 1`
42208else
42209 failed=`expr $failed + 1`
42210fi
42211
42212
42213 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
42214$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
42215if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
42216 $as_echo_n "(cached) " >&6
42217else
42218 ac_check_lib_save_LIBS=$LIBS
42219LIBS="-ltiff $LIBS"
42220cat >conftest.$ac_ext <<_ACEOF
42221/* confdefs.h. */
42222_ACEOF
42223cat confdefs.h >>conftest.$ac_ext
42224cat >>conftest.$ac_ext <<_ACEOF
42225/* end confdefs.h. */
42226
42227/* Override any GCC internal prototype to avoid an error.
42228 Use char because int might match the return type of a GCC
42229 builtin and then its argument prototype would still apply. */
42230#ifdef __cplusplus
42231extern "C"
42232#endif
42233char TIFFOpen ();
42234int
42235main ()
42236{
42237return TIFFOpen ();
42238 ;
42239 return 0;
42240}
42241_ACEOF
42242rm -f conftest.$ac_objext conftest$ac_exeext
42243if { (ac_try="$ac_link"
42244case "(($ac_try" in
42245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42246 *) ac_try_echo=$ac_try;;
42247esac
42248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42249$as_echo "$ac_try_echo") >&5
42250 (eval "$ac_link") 2>conftest.er1
42251 ac_status=$?
42252 grep -v '^ *+' conftest.er1 >conftest.err
42253 rm -f conftest.er1
42254 cat conftest.err >&5
42255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256 (exit $ac_status); } && {
42257 test -z "$ac_c_werror_flag" ||
42258 test ! -s conftest.err
42259 } && test -s conftest$ac_exeext && {
42260 test "$cross_compiling" = yes ||
42261 $as_test_x conftest$ac_exeext
42262 }; then
42263 ac_cv_lib_tiff_TIFFOpen=yes
42264else
42265 $as_echo "$as_me: failed program was:" >&5
42266sed 's/^/| /' conftest.$ac_ext >&5
42267
42268 ac_cv_lib_tiff_TIFFOpen=no
42269fi
42270
42271rm -rf conftest.dSYM
42272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42273 conftest$ac_exeext conftest.$ac_ext
42274LIBS=$ac_check_lib_save_LIBS
42275fi
42276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
42277$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
42278if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
42279 passed=`expr $passed + 1`
42280else
42281 failed=`expr $failed + 1`
42282fi
42283
42284 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
42285$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
42286if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
42287 $as_echo_n "(cached) " >&6
42288else
42289 ac_check_lib_save_LIBS=$LIBS
42290LIBS="-ltiff $LIBS"
42291cat >conftest.$ac_ext <<_ACEOF
42292/* confdefs.h. */
42293_ACEOF
42294cat confdefs.h >>conftest.$ac_ext
42295cat >>conftest.$ac_ext <<_ACEOF
42296/* end confdefs.h. */
42297
42298/* Override any GCC internal prototype to avoid an error.
42299 Use char because int might match the return type of a GCC
42300 builtin and then its argument prototype would still apply. */
42301#ifdef __cplusplus
42302extern "C"
42303#endif
42304char TIFFClientOpen ();
42305int
42306main ()
42307{
42308return TIFFClientOpen ();
42309 ;
42310 return 0;
42311}
42312_ACEOF
42313rm -f conftest.$ac_objext conftest$ac_exeext
42314if { (ac_try="$ac_link"
42315case "(($ac_try" in
42316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42317 *) ac_try_echo=$ac_try;;
42318esac
42319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42320$as_echo "$ac_try_echo") >&5
42321 (eval "$ac_link") 2>conftest.er1
42322 ac_status=$?
42323 grep -v '^ *+' conftest.er1 >conftest.err
42324 rm -f conftest.er1
42325 cat conftest.err >&5
42326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327 (exit $ac_status); } && {
42328 test -z "$ac_c_werror_flag" ||
42329 test ! -s conftest.err
42330 } && test -s conftest$ac_exeext && {
42331 test "$cross_compiling" = yes ||
42332 $as_test_x conftest$ac_exeext
42333 }; then
42334 ac_cv_lib_tiff_TIFFClientOpen=yes
42335else
42336 $as_echo "$as_me: failed program was:" >&5
42337sed 's/^/| /' conftest.$ac_ext >&5
42338
42339 ac_cv_lib_tiff_TIFFClientOpen=no
42340fi
42341
42342rm -rf conftest.dSYM
42343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42344 conftest$ac_exeext conftest.$ac_ext
42345LIBS=$ac_check_lib_save_LIBS
42346fi
42347{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
42348$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
42349if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
42350 passed=`expr $passed + 1`
42351else
42352 failed=`expr $failed + 1`
42353fi
42354
42355 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
42356$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
42357if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
42358 $as_echo_n "(cached) " >&6
42359else
42360 ac_check_lib_save_LIBS=$LIBS
42361LIBS="-ltiff $LIBS"
42362cat >conftest.$ac_ext <<_ACEOF
42363/* confdefs.h. */
42364_ACEOF
42365cat confdefs.h >>conftest.$ac_ext
42366cat >>conftest.$ac_ext <<_ACEOF
42367/* end confdefs.h. */
42368
42369/* Override any GCC internal prototype to avoid an error.
42370 Use char because int might match the return type of a GCC
42371 builtin and then its argument prototype would still apply. */
42372#ifdef __cplusplus
42373extern "C"
42374#endif
42375char TIFFIsByteSwapped ();
42376int
42377main ()
42378{
42379return TIFFIsByteSwapped ();
42380 ;
42381 return 0;
42382}
42383_ACEOF
42384rm -f conftest.$ac_objext conftest$ac_exeext
42385if { (ac_try="$ac_link"
42386case "(($ac_try" in
42387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42388 *) ac_try_echo=$ac_try;;
42389esac
42390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42391$as_echo "$ac_try_echo") >&5
42392 (eval "$ac_link") 2>conftest.er1
42393 ac_status=$?
42394 grep -v '^ *+' conftest.er1 >conftest.err
42395 rm -f conftest.er1
42396 cat conftest.err >&5
42397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); } && {
42399 test -z "$ac_c_werror_flag" ||
42400 test ! -s conftest.err
42401 } && test -s conftest$ac_exeext && {
42402 test "$cross_compiling" = yes ||
42403 $as_test_x conftest$ac_exeext
42404 }; then
42405 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
42406else
42407 $as_echo "$as_me: failed program was:" >&5
42408sed 's/^/| /' conftest.$ac_ext >&5
42409
42410 ac_cv_lib_tiff_TIFFIsByteSwapped=no
42411fi
42412
42413rm -rf conftest.dSYM
42414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42415 conftest$ac_exeext conftest.$ac_ext
42416LIBS=$ac_check_lib_save_LIBS
42417fi
42418{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
42419$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
42420if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
42421 passed=`expr $passed + 1`
42422else
42423 failed=`expr $failed + 1`
42424fi
42425
42426 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
42427$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
42428if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
42429 $as_echo_n "(cached) " >&6
42430else
42431 ac_check_lib_save_LIBS=$LIBS
42432LIBS="-ltiff $LIBS"
42433cat >conftest.$ac_ext <<_ACEOF
42434/* confdefs.h. */
42435_ACEOF
42436cat confdefs.h >>conftest.$ac_ext
42437cat >>conftest.$ac_ext <<_ACEOF
42438/* end confdefs.h. */
42439
42440/* Override any GCC internal prototype to avoid an error.
42441 Use char because int might match the return type of a GCC
42442 builtin and then its argument prototype would still apply. */
42443#ifdef __cplusplus
42444extern "C"
42445#endif
42446char TIFFReadRGBATile ();
42447int
42448main ()
42449{
42450return TIFFReadRGBATile ();
42451 ;
42452 return 0;
42453}
42454_ACEOF
42455rm -f conftest.$ac_objext conftest$ac_exeext
42456if { (ac_try="$ac_link"
42457case "(($ac_try" in
42458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42459 *) ac_try_echo=$ac_try;;
42460esac
42461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42462$as_echo "$ac_try_echo") >&5
42463 (eval "$ac_link") 2>conftest.er1
42464 ac_status=$?
42465 grep -v '^ *+' conftest.er1 >conftest.err
42466 rm -f conftest.er1
42467 cat conftest.err >&5
42468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42469 (exit $ac_status); } && {
42470 test -z "$ac_c_werror_flag" ||
42471 test ! -s conftest.err
42472 } && test -s conftest$ac_exeext && {
42473 test "$cross_compiling" = yes ||
42474 $as_test_x conftest$ac_exeext
42475 }; then
42476 ac_cv_lib_tiff_TIFFReadRGBATile=yes
42477else
42478 $as_echo "$as_me: failed program was:" >&5
42479sed 's/^/| /' conftest.$ac_ext >&5
42480
42481 ac_cv_lib_tiff_TIFFReadRGBATile=no
42482fi
42483
42484rm -rf conftest.dSYM
42485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42486 conftest$ac_exeext conftest.$ac_ext
42487LIBS=$ac_check_lib_save_LIBS
42488fi
42489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
42490$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
42491if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
42492 passed=`expr $passed + 1`
42493else
42494 failed=`expr $failed + 1`
42495fi
42496
42497 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
42498$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
42499if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
42500 $as_echo_n "(cached) " >&6
42501else
42502 ac_check_lib_save_LIBS=$LIBS
42503LIBS="-ltiff $LIBS"
42504cat >conftest.$ac_ext <<_ACEOF
42505/* confdefs.h. */
42506_ACEOF
42507cat confdefs.h >>conftest.$ac_ext
42508cat >>conftest.$ac_ext <<_ACEOF
42509/* end confdefs.h. */
42510
42511/* Override any GCC internal prototype to avoid an error.
42512 Use char because int might match the return type of a GCC
42513 builtin and then its argument prototype would still apply. */
42514#ifdef __cplusplus
42515extern "C"
42516#endif
42517char TIFFReadRGBAStrip ();
42518int
42519main ()
42520{
42521return TIFFReadRGBAStrip ();
42522 ;
42523 return 0;
42524}
42525_ACEOF
42526rm -f conftest.$ac_objext conftest$ac_exeext
42527if { (ac_try="$ac_link"
42528case "(($ac_try" in
42529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42530 *) ac_try_echo=$ac_try;;
42531esac
42532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42533$as_echo "$ac_try_echo") >&5
42534 (eval "$ac_link") 2>conftest.er1
42535 ac_status=$?
42536 grep -v '^ *+' conftest.er1 >conftest.err
42537 rm -f conftest.er1
42538 cat conftest.err >&5
42539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42540 (exit $ac_status); } && {
42541 test -z "$ac_c_werror_flag" ||
42542 test ! -s conftest.err
42543 } && test -s conftest$ac_exeext && {
42544 test "$cross_compiling" = yes ||
42545 $as_test_x conftest$ac_exeext
42546 }; then
42547 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
42548else
42549 $as_echo "$as_me: failed program was:" >&5
42550sed 's/^/| /' conftest.$ac_ext >&5
42551
42552 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
42553fi
42554
42555rm -rf conftest.dSYM
42556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42557 conftest$ac_exeext conftest.$ac_ext
42558LIBS=$ac_check_lib_save_LIBS
42559fi
42560{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
42561$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
42562if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
42563 passed=`expr $passed + 1`
42564else
42565 failed=`expr $failed + 1`
42566fi
42567
42568 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
42569$as_echo_n "checking if TIFF package is complete... " >&6; }
42570 if test $passed -gt 0; then
42571 if test $failed -gt 0; then
42572 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42573$as_echo "no -- some components failed test" >&6; }
42574 have_tiff='no (failed tests)'
42575 else
42576 TIFF_LIBS='-ltiff'
42577 LIBS="$TIFF_LIBS $LIBS"
42578
42579cat >>confdefs.h <<\_ACEOF
42580#define TIFF_DELEGATE 1
42581_ACEOF
42582
42583 { $as_echo "$as_me:$LINENO: result: yes" >&5
42584$as_echo "yes" >&6; }
42585 have_tiff='yes'
42586
42587for ac_header in tiffconf.h
42588do
42589as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42592$as_echo_n "checking for $ac_header... " >&6; }
42593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42594 $as_echo_n "(cached) " >&6
42595fi
42596ac_res=`eval 'as_val=${'$as_ac_Header'}
42597 $as_echo "$as_val"'`
42598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42599$as_echo "$ac_res" >&6; }
42600else
42601 # Is the header compilable?
42602{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42603$as_echo_n "checking $ac_header usability... " >&6; }
42604cat >conftest.$ac_ext <<_ACEOF
42605/* confdefs.h. */
42606_ACEOF
42607cat confdefs.h >>conftest.$ac_ext
42608cat >>conftest.$ac_ext <<_ACEOF
42609/* end confdefs.h. */
42610$ac_includes_default
42611#include <$ac_header>
42612_ACEOF
42613rm -f conftest.$ac_objext
42614if { (ac_try="$ac_compile"
42615case "(($ac_try" in
42616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42617 *) ac_try_echo=$ac_try;;
42618esac
42619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42620$as_echo "$ac_try_echo") >&5
42621 (eval "$ac_compile") 2>conftest.er1
42622 ac_status=$?
42623 grep -v '^ *+' conftest.er1 >conftest.err
42624 rm -f conftest.er1
42625 cat conftest.err >&5
42626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627 (exit $ac_status); } && {
42628 test -z "$ac_c_werror_flag" ||
42629 test ! -s conftest.err
42630 } && test -s conftest.$ac_objext; then
42631 ac_header_compiler=yes
42632else
42633 $as_echo "$as_me: failed program was:" >&5
42634sed 's/^/| /' conftest.$ac_ext >&5
42635
42636 ac_header_compiler=no
42637fi
42638
42639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42640{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42641$as_echo "$ac_header_compiler" >&6; }
42642
42643# Is the header present?
42644{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42645$as_echo_n "checking $ac_header presence... " >&6; }
42646cat >conftest.$ac_ext <<_ACEOF
42647/* confdefs.h. */
42648_ACEOF
42649cat confdefs.h >>conftest.$ac_ext
42650cat >>conftest.$ac_ext <<_ACEOF
42651/* end confdefs.h. */
42652#include <$ac_header>
42653_ACEOF
42654if { (ac_try="$ac_cpp conftest.$ac_ext"
42655case "(($ac_try" in
42656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42657 *) ac_try_echo=$ac_try;;
42658esac
42659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42660$as_echo "$ac_try_echo") >&5
42661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42662 ac_status=$?
42663 grep -v '^ *+' conftest.er1 >conftest.err
42664 rm -f conftest.er1
42665 cat conftest.err >&5
42666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42667 (exit $ac_status); } >/dev/null && {
42668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42669 test ! -s conftest.err
42670 }; then
42671 ac_header_preproc=yes
42672else
42673 $as_echo "$as_me: failed program was:" >&5
42674sed 's/^/| /' conftest.$ac_ext >&5
42675
42676 ac_header_preproc=no
42677fi
42678
42679rm -f conftest.err conftest.$ac_ext
42680{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42681$as_echo "$ac_header_preproc" >&6; }
42682
42683# So? What about this header?
42684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42685 yes:no: )
42686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42687$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42689$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42690 ac_header_preproc=yes
42691 ;;
42692 no:yes:* )
42693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42694$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42696$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42698$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42700$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42702$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42704$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42705 ( cat <<\_ASBOX
42706## ----------------------------------------- ##
42707## Report this to http://www.imagemagick.org ##
42708## ----------------------------------------- ##
42709_ASBOX
42710 ) | sed "s/^/$as_me: WARNING: /" >&2
42711 ;;
42712esac
42713{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42714$as_echo_n "checking for $ac_header... " >&6; }
42715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42716 $as_echo_n "(cached) " >&6
42717else
42718 eval "$as_ac_Header=\$ac_header_preproc"
42719fi
42720ac_res=`eval 'as_val=${'$as_ac_Header'}
42721 $as_echo "$as_val"'`
42722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42723$as_echo "$ac_res" >&6; }
42724
42725fi
42726as_val=`eval 'as_val=${'$as_ac_Header'}
42727 $as_echo "$as_val"'`
42728 if test "x$as_val" = x""yes; then
42729 cat >>confdefs.h <<_ACEOF
42730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42731_ACEOF
42732
42733fi
42734
42735done
42736
42737
42738
42739
42740
42741
42742
42743
42744for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
42745 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
42746 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
42747do
42748as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42749{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42750$as_echo_n "checking for $ac_func... " >&6; }
42751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42752 $as_echo_n "(cached) " >&6
42753else
42754 cat >conftest.$ac_ext <<_ACEOF
42755/* confdefs.h. */
42756_ACEOF
42757cat confdefs.h >>conftest.$ac_ext
42758cat >>conftest.$ac_ext <<_ACEOF
42759/* end confdefs.h. */
42760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42762#define $ac_func innocuous_$ac_func
42763
42764/* System header to define __stub macros and hopefully few prototypes,
42765 which can conflict with char $ac_func (); below.
42766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42767 <limits.h> exists even on freestanding compilers. */
42768
42769#ifdef __STDC__
42770# include <limits.h>
42771#else
42772# include <assert.h>
42773#endif
42774
42775#undef $ac_func
42776
42777/* Override any GCC internal prototype to avoid an error.
42778 Use char because int might match the return type of a GCC
42779 builtin and then its argument prototype would still apply. */
42780#ifdef __cplusplus
42781extern "C"
42782#endif
42783char $ac_func ();
42784/* The GNU C library defines this for functions which it implements
42785 to always fail with ENOSYS. Some functions are actually named
42786 something starting with __ and the normal name is an alias. */
42787#if defined __stub_$ac_func || defined __stub___$ac_func
42788choke me
42789#endif
42790
42791int
42792main ()
42793{
42794return $ac_func ();
42795 ;
42796 return 0;
42797}
42798_ACEOF
42799rm -f conftest.$ac_objext conftest$ac_exeext
42800if { (ac_try="$ac_link"
42801case "(($ac_try" in
42802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42803 *) ac_try_echo=$ac_try;;
42804esac
42805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42806$as_echo "$ac_try_echo") >&5
42807 (eval "$ac_link") 2>conftest.er1
42808 ac_status=$?
42809 grep -v '^ *+' conftest.er1 >conftest.err
42810 rm -f conftest.er1
42811 cat conftest.err >&5
42812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42813 (exit $ac_status); } && {
42814 test -z "$ac_c_werror_flag" ||
42815 test ! -s conftest.err
42816 } && test -s conftest$ac_exeext && {
42817 test "$cross_compiling" = yes ||
42818 $as_test_x conftest$ac_exeext
42819 }; then
42820 eval "$as_ac_var=yes"
42821else
42822 $as_echo "$as_me: failed program was:" >&5
42823sed 's/^/| /' conftest.$ac_ext >&5
42824
42825 eval "$as_ac_var=no"
42826fi
42827
42828rm -rf conftest.dSYM
42829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42830 conftest$ac_exeext conftest.$ac_ext
42831fi
42832ac_res=`eval 'as_val=${'$as_ac_var'}
42833 $as_echo "$as_val"'`
42834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42835$as_echo "$ac_res" >&6; }
42836as_val=`eval 'as_val=${'$as_ac_var'}
42837 $as_echo "$as_val"'`
42838 if test "x$as_val" = x""yes; then
42839 cat >>confdefs.h <<_ACEOF
42840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42841_ACEOF
42842
42843fi
42844done
42845
42846 fi
42847 else
42848 { $as_echo "$as_me:$LINENO: result: no" >&5
42849$as_echo "no" >&6; }
42850 fi
42851fi
42852 if test "$have_tiff" = 'yes'; then
42853 TIFF_DELEGATE_TRUE=
42854 TIFF_DELEGATE_FALSE='#'
42855else
42856 TIFF_DELEGATE_TRUE='#'
42857 TIFF_DELEGATE_FALSE=
42858fi
42859
42860
42861
42862
42863#
42864# Set Windows font directory.
42865#
42866
42867# Check whether --with-windows-font-dir was given.
42868if test "${with_windows_font_dir+set}" = set; then
42869 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42870else
42871 with_windows_font_dir=''
42872fi
42873
42874if test "$with_windows_font_dir" != '' ; then
42875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42876fi
42877
42878
42879#
42880# Check for WMF delegate library.
42881#
42882
42883# Check whether --with-wmf was given.
42884if test "${with_wmf+set}" = set; then
42885 withval=$with_wmf; with_wmf=$withval
42886else
42887 with_wmf=$with_modules
42888fi
42889
42890
42891if test "$with_wmf" != 'yes'; then
42892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42893fi
42894
42895have_wmf='no'
42896WMF_LIBS=''
42897WMF_LIBS_DEPS=''
42898OLIBS="$LIBS"
42899if test "$with_wmf" != 'no'; then
42900 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42901$as_echo "-------------------------------------------------------------" >&6; }
42902 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42903$as_echo_n "checking for WMF... " >&6; }
42904 { $as_echo "$as_me:$LINENO: result: " >&5
42905$as_echo "" >&6; }
42906 have_libwmf='no'
42907 have_libwmflite='no'
42908 have_libwmf_ipa_h='no'
42909
42910 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42911$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42912if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42913 $as_echo_n "(cached) " >&6
42914else
42915 cat >conftest.$ac_ext <<_ACEOF
42916/* confdefs.h. */
42917_ACEOF
42918cat confdefs.h >>conftest.$ac_ext
42919cat >>conftest.$ac_ext <<_ACEOF
42920/* end confdefs.h. */
42921$FT2BUILD_H
42922
42923#include <libwmf/ipa.h>
42924_ACEOF
42925rm -f conftest.$ac_objext
42926if { (ac_try="$ac_compile"
42927case "(($ac_try" in
42928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42929 *) ac_try_echo=$ac_try;;
42930esac
42931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42932$as_echo "$ac_try_echo") >&5
42933 (eval "$ac_compile") 2>conftest.er1
42934 ac_status=$?
42935 grep -v '^ *+' conftest.er1 >conftest.err
42936 rm -f conftest.er1
42937 cat conftest.err >&5
42938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939 (exit $ac_status); } && {
42940 test -z "$ac_c_werror_flag" ||
42941 test ! -s conftest.err
42942 } && test -s conftest.$ac_objext; then
42943 ac_cv_header_libwmf_ipa_h=yes
42944else
42945 $as_echo "$as_me: failed program was:" >&5
42946sed 's/^/| /' conftest.$ac_ext >&5
42947
42948 ac_cv_header_libwmf_ipa_h=no
42949fi
42950
42951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42952fi
42953{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42954$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42955if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42956 have_libwmf_ipa_h='yes'
42957fi
42958
42959
42960 if test "$have_libwmf_ipa_h" = 'yes'; then
42961 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42962$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42963if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42964 $as_echo_n "(cached) " >&6
42965else
42966 ac_check_lib_save_LIBS=$LIBS
42967LIBS="-lwmflite $LIBS"
42968cat >conftest.$ac_ext <<_ACEOF
42969/* confdefs.h. */
42970_ACEOF
42971cat confdefs.h >>conftest.$ac_ext
42972cat >>conftest.$ac_ext <<_ACEOF
42973/* end confdefs.h. */
42974
42975/* Override any GCC internal prototype to avoid an error.
42976 Use char because int might match the return type of a GCC
42977 builtin and then its argument prototype would still apply. */
42978#ifdef __cplusplus
42979extern "C"
42980#endif
42981char wmf_lite_create ();
42982int
42983main ()
42984{
42985return wmf_lite_create ();
42986 ;
42987 return 0;
42988}
42989_ACEOF
42990rm -f conftest.$ac_objext conftest$ac_exeext
42991if { (ac_try="$ac_link"
42992case "(($ac_try" in
42993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42994 *) ac_try_echo=$ac_try;;
42995esac
42996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42997$as_echo "$ac_try_echo") >&5
42998 (eval "$ac_link") 2>conftest.er1
42999 ac_status=$?
43000 grep -v '^ *+' conftest.er1 >conftest.err
43001 rm -f conftest.er1
43002 cat conftest.err >&5
43003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004 (exit $ac_status); } && {
43005 test -z "$ac_c_werror_flag" ||
43006 test ! -s conftest.err
43007 } && test -s conftest$ac_exeext && {
43008 test "$cross_compiling" = yes ||
43009 $as_test_x conftest$ac_exeext
43010 }; then
43011 ac_cv_lib_wmflite_wmf_lite_create=yes
43012else
43013 $as_echo "$as_me: failed program was:" >&5
43014sed 's/^/| /' conftest.$ac_ext >&5
43015
43016 ac_cv_lib_wmflite_wmf_lite_create=no
43017fi
43018
43019rm -rf conftest.dSYM
43020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43021 conftest$ac_exeext conftest.$ac_ext
43022LIBS=$ac_check_lib_save_LIBS
43023fi
43024{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
43025$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
43026if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
43027 have_libwmflite='yes'
43028fi
43029
43030 if test "$have_libwmflite" = 'yes'; then
43031
43032cat >>confdefs.h <<\_ACEOF
43033#define WMFLITE_DELEGATE 1
43034_ACEOF
43035
43036 WMF_LIBS='-lwmflite'
43037 LIBS="$WMF_LIBS $LIBS"
43038 have_wmf='yes'
43039 else
43040 WMF_LIBS_DEPS=''
43041 WMF_CONFIG_LIBS=`libwmf-config --libs`
43042 for lib in xml2 expat freetype jpeg png z; do
43043 testlib="-l${lib}"
43044 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
43045 done
43046 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
43047$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
43048if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
43049 $as_echo_n "(cached) " >&6
43050else
43051 ac_check_lib_save_LIBS=$LIBS
43052LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
43053cat >conftest.$ac_ext <<_ACEOF
43054/* confdefs.h. */
43055_ACEOF
43056cat confdefs.h >>conftest.$ac_ext
43057cat >>conftest.$ac_ext <<_ACEOF
43058/* end confdefs.h. */
43059
43060/* Override any GCC internal prototype to avoid an error.
43061 Use char because int might match the return type of a GCC
43062 builtin and then its argument prototype would still apply. */
43063#ifdef __cplusplus
43064extern "C"
43065#endif
43066char wmf_api_create ();
43067int
43068main ()
43069{
43070return wmf_api_create ();
43071 ;
43072 return 0;
43073}
43074_ACEOF
43075rm -f conftest.$ac_objext conftest$ac_exeext
43076if { (ac_try="$ac_link"
43077case "(($ac_try" in
43078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43079 *) ac_try_echo=$ac_try;;
43080esac
43081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43082$as_echo "$ac_try_echo") >&5
43083 (eval "$ac_link") 2>conftest.er1
43084 ac_status=$?
43085 grep -v '^ *+' conftest.er1 >conftest.err
43086 rm -f conftest.er1
43087 cat conftest.err >&5
43088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43089 (exit $ac_status); } && {
43090 test -z "$ac_c_werror_flag" ||
43091 test ! -s conftest.err
43092 } && test -s conftest$ac_exeext && {
43093 test "$cross_compiling" = yes ||
43094 $as_test_x conftest$ac_exeext
43095 }; then
43096 ac_cv_lib_wmf_wmf_api_create=yes
43097else
43098 $as_echo "$as_me: failed program was:" >&5
43099sed 's/^/| /' conftest.$ac_ext >&5
43100
43101 ac_cv_lib_wmf_wmf_api_create=no
43102fi
43103
43104rm -rf conftest.dSYM
43105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43106 conftest$ac_exeext conftest.$ac_ext
43107LIBS=$ac_check_lib_save_LIBS
43108fi
43109{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
43110$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
43111if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
43112 have_libwmf='yes'
43113fi
43114
43115 if test "$have_libwmf" = 'yes'; then
43116
43117cat >>confdefs.h <<\_ACEOF
43118#define WMF_DELEGATE 1
43119_ACEOF
43120
43121 WMF_LIBS='-lwmf'
43122 LIBS="$WMF_LIBS $LIBS"
43123 have_wmf='yes'
43124 else
43125 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43126$as_echo "no -- some components failed test" >&6; }
43127 have_wmf='no (failed tests)'
43128 have_wmflite='no (failed tests)'
43129 LIBS="$OLIBS"
43130 WMF_LIBS=''
43131 fi
43132 fi
43133 fi
43134 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
43135$as_echo_n "checking if WMF package is complete... " >&6; }
43136 if test "$have_wmf" = 'yes'; then
43137 { $as_echo "$as_me:$LINENO: result: yes" >&5
43138$as_echo "yes" >&6; }
43139 else
43140 { $as_echo "$as_me:$LINENO: result: no" >&5
43141$as_echo "no" >&6; }
43142 fi
43143fi
43144 if test "$have_wmf" = 'yes'; then
43145 WMF_DELEGATE_TRUE=
43146 WMF_DELEGATE_FALSE='#'
43147else
43148 WMF_DELEGATE_TRUE='#'
43149 WMF_DELEGATE_FALSE=
43150fi
43151
43152
43153
43154
43155
43156#
43157# Check for XML delegate library.
43158#
43159
43160# Check whether --with-xml was given.
43161if test "${with_xml+set}" = set; then
43162 withval=$with_xml; with_xml=$withval
43163else
43164 with_xml=$have_x
43165fi
43166
43167
43168if test "$with_xml" != 'yes' ; then
43169 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
43170fi
43171
43172have_xml='no'
43173XML_LIBS=''
43174if test "$with_xml" != 'no'; then
43175 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43176$as_echo "-------------------------------------------------------------" >&6; }
43177 { $as_echo "$as_me:$LINENO: checking for XML" >&5
43178$as_echo_n "checking for XML... " >&6; }
43179 { $as_echo "$as_me:$LINENO: result: " >&5
43180$as_echo "" >&6; }
43181 PERSIST_LDFLAGS=$LDFLAGS
43182 PERSIST_CPPFLAGS=$CPPFLAGS
43183 xml2_config=''
43184 for ac_prog in xml2-config
43185do
43186 # Extract the first word of "$ac_prog", so it can be a program name with args.
43187set dummy $ac_prog; ac_word=$2
43188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43189$as_echo_n "checking for $ac_word... " >&6; }
43190if test "${ac_cv_prog_xml2_config+set}" = set; then
43191 $as_echo_n "(cached) " >&6
43192else
43193 if test -n "$xml2_config"; then
43194 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
43195else
43196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43197for as_dir in $PATH
43198do
43199 IFS=$as_save_IFS
43200 test -z "$as_dir" && as_dir=.
43201 for ac_exec_ext in '' $ac_executable_extensions; do
43202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43203 ac_cv_prog_xml2_config="$ac_prog"
43204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43205 break 2
43206 fi
43207done
43208done
43209IFS=$as_save_IFS
43210
43211fi
43212fi
43213xml2_config=$ac_cv_prog_xml2_config
43214if test -n "$xml2_config"; then
43215 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
43216$as_echo "$xml2_config" >&6; }
43217else
43218 { $as_echo "$as_me:$LINENO: result: no" >&5
43219$as_echo "no" >&6; }
43220fi
43221
43222
43223 test -n "$xml2_config" && break
43224done
43225 if test -n "$xml2_config"; then
43226 # Debian installs libxml headers under /usr/include/libxml2/libxml with
43227 # the shared library installed under /usr/lib, whereas the package
43228 # installs itself under $prefix/libxml and $prefix/lib.
43229 xml2_prefix=`xml2-config --prefix`
43230 if test -d "${xml2_prefix}/include/libxml2"; then
43231 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
43232 fi
43233 if test "${xml2_prefix}" != '/usr'; then
43234 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
43235 fi
43236 fi
43237 failed=0
43238 passed=0
43239 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43240 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43241$as_echo_n "checking for libxml/parser.h... " >&6; }
43242if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43243 $as_echo_n "(cached) " >&6
43244fi
43245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43246$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43247else
43248 # Is the header compilable?
43249{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
43250$as_echo_n "checking libxml/parser.h usability... " >&6; }
43251cat >conftest.$ac_ext <<_ACEOF
43252/* confdefs.h. */
43253_ACEOF
43254cat confdefs.h >>conftest.$ac_ext
43255cat >>conftest.$ac_ext <<_ACEOF
43256/* end confdefs.h. */
43257$ac_includes_default
43258#include <libxml/parser.h>
43259_ACEOF
43260rm -f conftest.$ac_objext
43261if { (ac_try="$ac_compile"
43262case "(($ac_try" in
43263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43264 *) ac_try_echo=$ac_try;;
43265esac
43266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43267$as_echo "$ac_try_echo") >&5
43268 (eval "$ac_compile") 2>conftest.er1
43269 ac_status=$?
43270 grep -v '^ *+' conftest.er1 >conftest.err
43271 rm -f conftest.er1
43272 cat conftest.err >&5
43273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43274 (exit $ac_status); } && {
43275 test -z "$ac_c_werror_flag" ||
43276 test ! -s conftest.err
43277 } && test -s conftest.$ac_objext; then
43278 ac_header_compiler=yes
43279else
43280 $as_echo "$as_me: failed program was:" >&5
43281sed 's/^/| /' conftest.$ac_ext >&5
43282
43283 ac_header_compiler=no
43284fi
43285
43286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43288$as_echo "$ac_header_compiler" >&6; }
43289
43290# Is the header present?
43291{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
43292$as_echo_n "checking libxml/parser.h presence... " >&6; }
43293cat >conftest.$ac_ext <<_ACEOF
43294/* confdefs.h. */
43295_ACEOF
43296cat confdefs.h >>conftest.$ac_ext
43297cat >>conftest.$ac_ext <<_ACEOF
43298/* end confdefs.h. */
43299#include <libxml/parser.h>
43300_ACEOF
43301if { (ac_try="$ac_cpp conftest.$ac_ext"
43302case "(($ac_try" in
43303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43304 *) ac_try_echo=$ac_try;;
43305esac
43306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43307$as_echo "$ac_try_echo") >&5
43308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43309 ac_status=$?
43310 grep -v '^ *+' conftest.er1 >conftest.err
43311 rm -f conftest.er1
43312 cat conftest.err >&5
43313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43314 (exit $ac_status); } >/dev/null && {
43315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43316 test ! -s conftest.err
43317 }; then
43318 ac_header_preproc=yes
43319else
43320 $as_echo "$as_me: failed program was:" >&5
43321sed 's/^/| /' conftest.$ac_ext >&5
43322
43323 ac_header_preproc=no
43324fi
43325
43326rm -f conftest.err conftest.$ac_ext
43327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43328$as_echo "$ac_header_preproc" >&6; }
43329
43330# So? What about this header?
43331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43332 yes:no: )
43333 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
43334$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43335 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
43336$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
43337 ac_header_preproc=yes
43338 ;;
43339 no:yes:* )
43340 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
43341$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
43342 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
43343$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
43344 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
43345$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
43346 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
43347$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
43348 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
43349$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
43350 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
43351$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
43352 ( cat <<\_ASBOX
43353## ----------------------------------------- ##
43354## Report this to http://www.imagemagick.org ##
43355## ----------------------------------------- ##
43356_ASBOX
43357 ) | sed "s/^/$as_me: WARNING: /" >&2
43358 ;;
43359esac
43360{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43361$as_echo_n "checking for libxml/parser.h... " >&6; }
43362if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43363 $as_echo_n "(cached) " >&6
43364else
43365 ac_cv_header_libxml_parser_h=$ac_header_preproc
43366fi
43367{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43368$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43369
43370fi
43371if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
43372 passed=`expr $passed + 1`
43373else
43374 failed=`expr $failed + 1`
43375fi
43376
43377
43378 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
43379$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
43380if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
43381 $as_echo_n "(cached) " >&6
43382else
43383 ac_check_lib_save_LIBS=$LIBS
43384LIBS="-lxml2 $LIBS"
43385cat >conftest.$ac_ext <<_ACEOF
43386/* confdefs.h. */
43387_ACEOF
43388cat confdefs.h >>conftest.$ac_ext
43389cat >>conftest.$ac_ext <<_ACEOF
43390/* end confdefs.h. */
43391
43392/* Override any GCC internal prototype to avoid an error.
43393 Use char because int might match the return type of a GCC
43394 builtin and then its argument prototype would still apply. */
43395#ifdef __cplusplus
43396extern "C"
43397#endif
43398char xmlParseExternalEntity ();
43399int
43400main ()
43401{
43402return xmlParseExternalEntity ();
43403 ;
43404 return 0;
43405}
43406_ACEOF
43407rm -f conftest.$ac_objext conftest$ac_exeext
43408if { (ac_try="$ac_link"
43409case "(($ac_try" in
43410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43411 *) ac_try_echo=$ac_try;;
43412esac
43413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43414$as_echo "$ac_try_echo") >&5
43415 (eval "$ac_link") 2>conftest.er1
43416 ac_status=$?
43417 grep -v '^ *+' conftest.er1 >conftest.err
43418 rm -f conftest.er1
43419 cat conftest.err >&5
43420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421 (exit $ac_status); } && {
43422 test -z "$ac_c_werror_flag" ||
43423 test ! -s conftest.err
43424 } && test -s conftest$ac_exeext && {
43425 test "$cross_compiling" = yes ||
43426 $as_test_x conftest$ac_exeext
43427 }; then
43428 ac_cv_lib_xml2_xmlParseExternalEntity=yes
43429else
43430 $as_echo "$as_me: failed program was:" >&5
43431sed 's/^/| /' conftest.$ac_ext >&5
43432
43433 ac_cv_lib_xml2_xmlParseExternalEntity=no
43434fi
43435
43436rm -rf conftest.dSYM
43437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43438 conftest$ac_exeext conftest.$ac_ext
43439LIBS=$ac_check_lib_save_LIBS
43440fi
43441{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
43442$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
43443if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
43444 passed=`expr $passed + 1`
43445else
43446 failed=`expr $failed + 1`
43447fi
43448
43449 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
43450$as_echo_n "checking if XML package is complete... " >&6; }
43451 if test $passed -gt 0; then
43452 if test $failed -gt 0; then
43453 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43454$as_echo "no -- some components failed test" >&6; }
43455 have_xml='no (failed tests)'
43456 LDFLAGS="$PERSIST_LDFLAGS"
43457 CPPFLAGS="$PERSIST_CPPFLAGS"
43458 else
43459 XML_LIBS='-lxml2'
43460 LIBS="$XML_LIBS $LIBS"
43461
43462cat >>confdefs.h <<\_ACEOF
43463#define XML_DELEGATE 1
43464_ACEOF
43465
43466 { $as_echo "$as_me:$LINENO: result: yes" >&5
43467$as_echo "yes" >&6; }
43468 have_xml='yes'
43469 fi
43470 else
43471 { $as_echo "$as_me:$LINENO: result: no" >&5
43472$as_echo "no" >&6; }
43473 fi
43474fi
43475 if test "$have_xml" = 'yes'; then
43476 XML_DELEGATE_TRUE=
43477 XML_DELEGATE_FALSE='#'
43478else
43479 XML_DELEGATE_TRUE='#'
43480 XML_DELEGATE_FALSE=
43481fi
43482
43483
43484
43485
43486# Substitute compiler name to build/link PerlMagick
43487#
43488
43489
43490#
43491# Configure install Paths
43492#
43493
43494# Subdirectory under lib to place ImageMagick lib files
43495LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43496
43497cat >>confdefs.h <<_ACEOF
43498#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
43499_ACEOF
43500
43501
43502# Path to ImageMagick bin directory
43503EXECUTABLE_PATH="${BIN_DIR}"
43504DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
43505case "${build_os}" in
43506 mingw* )
43507 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
43508 ;;
43509esac
43510
43511cat >>confdefs.h <<_ACEOF
43512#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
43513_ACEOF
43514
43515
43516
43517# Path to ImageMagick lib
43518LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
43519DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
43520case "${build_os}" in
43521 mingw* )
43522 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
43523 ;;
43524esac
43525
43526cat >>confdefs.h <<_ACEOF
43527#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
43528_ACEOF
43529
43530
43531
43532# Subdirectory under lib to place ImageMagick configuration files
43533CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43534
43535cat >>confdefs.h <<_ACEOF
43536#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
43537_ACEOF
43538
43539CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43540DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43541case "${build_os}" in
43542 mingw* )
43543 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
43544 ;;
43545esac
43546
43547cat >>confdefs.h <<_ACEOF
43548#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
43549_ACEOF
43550
43551
43552
43553#
43554# Subdirectory under lib to place ImageMagick coder module files
43555CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
43556
43557cat >>confdefs.h <<_ACEOF
43558#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
43559_ACEOF
43560
43561CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
43562DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
43563case "${build_os}" in
43564 mingw* )
43565 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
43566 ;;
43567esac
43568
43569cat >>confdefs.h <<_ACEOF
43570#define CODER_PATH "$DEFINE_CODER_PATH"
43571_ACEOF
43572
43573
43574
43575#
43576# Subdirectory under lib to place ImageMagick filter module files
43577FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
43578
43579cat >>confdefs.h <<_ACEOF
43580#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
43581_ACEOF
43582
43583FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
43584DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
43585case "${build_os}" in
43586 mingw* )
43587 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
43588 ;;
43589esac
43590
43591cat >>confdefs.h <<_ACEOF
43592#define FILTER_PATH "$DEFINE_FILTER_PATH"
43593_ACEOF
43594
43595
43596
43597#
43598# Path to ImageMagick documentation files
43599DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43600DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
43601DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
43602case "${build_os}" in
43603 mingw* )
43604 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
43605 ;;
43606esac
43607
43608cat >>confdefs.h <<_ACEOF
43609#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
43610_ACEOF
43611
43612
43613
43614#
43615# Path to ImageMagick share files
43616SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43617SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
43618DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
43619case "${build_os}" in
43620 mingw* )
43621 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
43622 ;;
43623esac
43624
43625cat >>confdefs.h <<_ACEOF
43626#define SHARE_PATH "$DEFINE_SHARE_PATH"
43627_ACEOF
43628
43629
43630
43631# Subdirectory under share to place ImageMagick configuration files
43632SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43633
43634cat >>confdefs.h <<_ACEOF
43635#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
43636_ACEOF
43637
43638SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
43639DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
43640case "${build_os}" in
43641 mingw* )
43642 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
43643 ;;
43644esac
43645
43646cat >>confdefs.h <<_ACEOF
43647#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
43648_ACEOF
43649
43650
43651
43652#
43653# program_transform_name is formed for use in a Makefile, so create a
43654# modified version for use in a shell script.
43655configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
43656
43657# Default delegate definitions
43658{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43659$as_echo "-------------------------------------------------------------" >&6; }
43660{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
43661$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
43662{ $as_echo "$as_me:$LINENO: result: " >&5
43663$as_echo "" >&6; }
43664AutotraceDecodeDelegateDefault='autotrace'
43665AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000043666BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000043667BZIPDelegateDefault='bzip2'
43668BrowseDelegateDefault='xdg-open'
43669CGMDecodeDelegateDefault='ralcgm'
43670CatDelegateDefault='cat'
43671DNGDecodeDelegateDefault='ufraw-batch'
43672GVCDecodeDelegateDefault='dot'
43673DVIDecodeDelegateDefault='dvips'
43674EchoDelegateDefault='echo'
43675EditorDelegateDefault='xterm'
43676FIGDecodeDelegateDefault='fig2dev'
43677ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
43678DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
43679MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
43680GnuplotDecodeDelegateDefault='gnuplot'
43681HDRDecodeDelegateDefault='ra_pfm'
43682HPGLDecodeDelegateDefault='hp2xx'
43683HTMLDecodeDelegateDefault='html2ps'
43684ILBMDecodeDelegateDefault='ilbmtoppm'
43685ILBMEncodeDelegateDefault='ppmtoilbm'
43686LPDelegateDefault='lp'
43687LPRDelegateDefault='lpr'
43688LZWDecodeDelegateDefault='uncompress'
43689LZWEncodeDelegateDefault='compress'
43690LaunchDelegateDefault='gimp'
43691MANDelegateDefault='groff'
43692MPEGDecodeDelegateDefault='ffmpeg'
43693MPEGEncodeDelegateDefault='ffmpeg'
43694MVDelegateDefault='mv'
43695PCLDelegateDefault='pcl6'
43696PGPDecodeDelegateDefault='pgpv'
43697POVDelegateDefault='povray'
43698if test "$native_win32_build" = 'yes'; then
43699 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000043700elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000043701 PSDelegateDefault='gsc'
43702else
43703 PSDelegateDefault='gs'
43704fi
43705RLEEncodeDelegateDefault='rawtorle'
43706RMDelegateDefault='rm'
43707SCANDecodeDelegateDefault='scanimage'
43708TXTDelegateDefault='enscript'
43709WMFDecodeDelegateDefault='wmf2eps'
43710WWWDecodeDelegateDefault='curl'
43711XPSDelegateDefault='gxps'
43712ZipDelegateDefault='gzip'
43713
43714# Search for delegates
43715# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
43716set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
43717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43718$as_echo_n "checking for $ac_word... " >&6; }
43719if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
43720 $as_echo_n "(cached) " >&6
43721else
43722 case $AutotraceDecodeDelegate in
43723 [\\/]* | ?:[\\/]*)
43724 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
43725 ;;
43726 *)
43727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43728for as_dir in $PATH
43729do
43730 IFS=$as_save_IFS
43731 test -z "$as_dir" && as_dir=.
43732 for ac_exec_ext in '' $ac_executable_extensions; do
43733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43734 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43736 break 2
43737 fi
43738done
43739done
43740IFS=$as_save_IFS
43741
43742 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
43743 ;;
43744esac
43745fi
43746AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
43747if test -n "$AutotraceDecodeDelegate"; then
43748 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
43749$as_echo "$AutotraceDecodeDelegate" >&6; }
43750else
43751 { $as_echo "$as_me:$LINENO: result: no" >&5
43752$as_echo "no" >&6; }
43753fi
43754
43755
43756# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
43757set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
43758{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43759$as_echo_n "checking for $ac_word... " >&6; }
43760if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
43761 $as_echo_n "(cached) " >&6
43762else
43763 case $AVIDecodeDelegate in
43764 [\\/]* | ?:[\\/]*)
43765 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
43766 ;;
43767 *)
43768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43769for as_dir in $PATH
43770do
43771 IFS=$as_save_IFS
43772 test -z "$as_dir" && as_dir=.
43773 for ac_exec_ext in '' $ac_executable_extensions; do
43774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43775 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43777 break 2
43778 fi
43779done
43780done
43781IFS=$as_save_IFS
43782
43783 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
43784 ;;
43785esac
43786fi
43787AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
43788if test -n "$AVIDecodeDelegate"; then
43789 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
43790$as_echo "$AVIDecodeDelegate" >&6; }
43791else
43792 { $as_echo "$as_me:$LINENO: result: no" >&5
43793$as_echo "no" >&6; }
43794fi
43795
43796
43797# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
43798set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
43799{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43800$as_echo_n "checking for $ac_word... " >&6; }
43801if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
43802 $as_echo_n "(cached) " >&6
43803else
43804 case $BlenderDecodeDelegate in
43805 [\\/]* | ?:[\\/]*)
43806 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
43807 ;;
43808 *)
43809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43810for as_dir in $PATH
43811do
43812 IFS=$as_save_IFS
43813 test -z "$as_dir" && as_dir=.
43814 for ac_exec_ext in '' $ac_executable_extensions; do
43815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43816 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43818 break 2
43819 fi
43820done
43821done
43822IFS=$as_save_IFS
43823
43824 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
43825 ;;
43826esac
43827fi
43828BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
43829if test -n "$BlenderDecodeDelegate"; then
43830 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
43831$as_echo "$BlenderDecodeDelegate" >&6; }
43832else
43833 { $as_echo "$as_me:$LINENO: result: no" >&5
43834$as_echo "no" >&6; }
43835fi
43836
43837
43838# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
43839set dummy "$BZIPDelegateDefault"; ac_word=$2
43840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43841$as_echo_n "checking for $ac_word... " >&6; }
43842if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43843 $as_echo_n "(cached) " >&6
43844else
43845 case $BZIPDelegate in
43846 [\\/]* | ?:[\\/]*)
43847 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43848 ;;
43849 *)
43850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43851for as_dir in $PATH
43852do
43853 IFS=$as_save_IFS
43854 test -z "$as_dir" && as_dir=.
43855 for ac_exec_ext in '' $ac_executable_extensions; do
43856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43857 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43858 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43859 break 2
43860 fi
43861done
43862done
43863IFS=$as_save_IFS
43864
43865 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43866 ;;
43867esac
43868fi
43869BZIPDelegate=$ac_cv_path_BZIPDelegate
43870if test -n "$BZIPDelegate"; then
43871 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43872$as_echo "$BZIPDelegate" >&6; }
43873else
43874 { $as_echo "$as_me:$LINENO: result: no" >&5
43875$as_echo "no" >&6; }
43876fi
43877
43878
43879# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43880set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43882$as_echo_n "checking for $ac_word... " >&6; }
43883if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43884 $as_echo_n "(cached) " >&6
43885else
43886 case $BrowseDelegate in
43887 [\\/]* | ?:[\\/]*)
43888 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43889 ;;
43890 *)
43891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43892for as_dir in $PATH
43893do
43894 IFS=$as_save_IFS
43895 test -z "$as_dir" && as_dir=.
43896 for ac_exec_ext in '' $ac_executable_extensions; do
43897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43898 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43900 break 2
43901 fi
43902done
43903done
43904IFS=$as_save_IFS
43905
43906 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43907 ;;
43908esac
43909fi
43910BrowseDelegate=$ac_cv_path_BrowseDelegate
43911if test -n "$BrowseDelegate"; then
43912 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43913$as_echo "$BrowseDelegate" >&6; }
43914else
43915 { $as_echo "$as_me:$LINENO: result: no" >&5
43916$as_echo "no" >&6; }
43917fi
43918
43919
43920# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43921set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43923$as_echo_n "checking for $ac_word... " >&6; }
43924if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43925 $as_echo_n "(cached) " >&6
43926else
43927 case $CGMDecodeDelegate in
43928 [\\/]* | ?:[\\/]*)
43929 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43930 ;;
43931 *)
43932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43933for as_dir in $PATH
43934do
43935 IFS=$as_save_IFS
43936 test -z "$as_dir" && as_dir=.
43937 for ac_exec_ext in '' $ac_executable_extensions; do
43938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43939 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43941 break 2
43942 fi
43943done
43944done
43945IFS=$as_save_IFS
43946
43947 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43948 ;;
43949esac
43950fi
43951CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43952if test -n "$CGMDecodeDelegate"; then
43953 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43954$as_echo "$CGMDecodeDelegate" >&6; }
43955else
43956 { $as_echo "$as_me:$LINENO: result: no" >&5
43957$as_echo "no" >&6; }
43958fi
43959
43960
43961# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43962set dummy "$CatDelegateDefault"; ac_word=$2
43963{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43964$as_echo_n "checking for $ac_word... " >&6; }
43965if test "${ac_cv_path_CatDelegate+set}" = set; then
43966 $as_echo_n "(cached) " >&6
43967else
43968 case $CatDelegate in
43969 [\\/]* | ?:[\\/]*)
43970 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43971 ;;
43972 *)
43973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43974for as_dir in $PATH
43975do
43976 IFS=$as_save_IFS
43977 test -z "$as_dir" && as_dir=.
43978 for ac_exec_ext in '' $ac_executable_extensions; do
43979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43980 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43982 break 2
43983 fi
43984done
43985done
43986IFS=$as_save_IFS
43987
43988 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43989 ;;
43990esac
43991fi
43992CatDelegate=$ac_cv_path_CatDelegate
43993if test -n "$CatDelegate"; then
43994 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43995$as_echo "$CatDelegate" >&6; }
43996else
43997 { $as_echo "$as_me:$LINENO: result: no" >&5
43998$as_echo "no" >&6; }
43999fi
44000
44001
44002# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
44003set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
44004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44005$as_echo_n "checking for $ac_word... " >&6; }
44006if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
44007 $as_echo_n "(cached) " >&6
44008else
44009 case $DNGDecodeDelegate in
44010 [\\/]* | ?:[\\/]*)
44011 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
44012 ;;
44013 *)
44014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44015for as_dir in $PATH
44016do
44017 IFS=$as_save_IFS
44018 test -z "$as_dir" && as_dir=.
44019 for ac_exec_ext in '' $ac_executable_extensions; do
44020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44021 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44023 break 2
44024 fi
44025done
44026done
44027IFS=$as_save_IFS
44028
44029 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
44030 ;;
44031esac
44032fi
44033DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
44034if test -n "$DNGDecodeDelegate"; then
44035 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
44036$as_echo "$DNGDecodeDelegate" >&6; }
44037else
44038 { $as_echo "$as_me:$LINENO: result: no" >&5
44039$as_echo "no" >&6; }
44040fi
44041
44042
44043# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
44044set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
44045{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44046$as_echo_n "checking for $ac_word... " >&6; }
44047if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
44048 $as_echo_n "(cached) " >&6
44049else
44050 case $GVCDecodeDelegate in
44051 [\\/]* | ?:[\\/]*)
44052 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
44053 ;;
44054 *)
44055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44056for as_dir in $PATH
44057do
44058 IFS=$as_save_IFS
44059 test -z "$as_dir" && as_dir=.
44060 for ac_exec_ext in '' $ac_executable_extensions; do
44061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44062 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44064 break 2
44065 fi
44066done
44067done
44068IFS=$as_save_IFS
44069
44070 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
44071 ;;
44072esac
44073fi
44074GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
44075if test -n "$GVCDecodeDelegate"; then
44076 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
44077$as_echo "$GVCDecodeDelegate" >&6; }
44078else
44079 { $as_echo "$as_me:$LINENO: result: no" >&5
44080$as_echo "no" >&6; }
44081fi
44082
44083
44084# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
44085set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
44086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44087$as_echo_n "checking for $ac_word... " >&6; }
44088if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
44089 $as_echo_n "(cached) " >&6
44090else
44091 case $DVIDecodeDelegate in
44092 [\\/]* | ?:[\\/]*)
44093 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
44094 ;;
44095 *)
44096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44097for as_dir in $PATH
44098do
44099 IFS=$as_save_IFS
44100 test -z "$as_dir" && as_dir=.
44101 for ac_exec_ext in '' $ac_executable_extensions; do
44102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44103 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44105 break 2
44106 fi
44107done
44108done
44109IFS=$as_save_IFS
44110
44111 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
44112 ;;
44113esac
44114fi
44115DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
44116if test -n "$DVIDecodeDelegate"; then
44117 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
44118$as_echo "$DVIDecodeDelegate" >&6; }
44119else
44120 { $as_echo "$as_me:$LINENO: result: no" >&5
44121$as_echo "no" >&6; }
44122fi
44123
44124
44125# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
44126set dummy "$EchoDelegateDefault"; ac_word=$2
44127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44128$as_echo_n "checking for $ac_word... " >&6; }
44129if test "${ac_cv_path_EchoDelegate+set}" = set; then
44130 $as_echo_n "(cached) " >&6
44131else
44132 case $EchoDelegate in
44133 [\\/]* | ?:[\\/]*)
44134 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
44135 ;;
44136 *)
44137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44138for as_dir in $PATH
44139do
44140 IFS=$as_save_IFS
44141 test -z "$as_dir" && as_dir=.
44142 for ac_exec_ext in '' $ac_executable_extensions; do
44143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44144 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
44145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44146 break 2
44147 fi
44148done
44149done
44150IFS=$as_save_IFS
44151
44152 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
44153 ;;
44154esac
44155fi
44156EchoDelegate=$ac_cv_path_EchoDelegate
44157if test -n "$EchoDelegate"; then
44158 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
44159$as_echo "$EchoDelegate" >&6; }
44160else
44161 { $as_echo "$as_me:$LINENO: result: no" >&5
44162$as_echo "no" >&6; }
44163fi
44164
44165
44166# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
44167set dummy "$EditorDelegateDefault"; ac_word=$2
44168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44169$as_echo_n "checking for $ac_word... " >&6; }
44170if test "${ac_cv_path_EditorDelegate+set}" = set; then
44171 $as_echo_n "(cached) " >&6
44172else
44173 case $EditorDelegate in
44174 [\\/]* | ?:[\\/]*)
44175 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
44176 ;;
44177 *)
44178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44179for as_dir in $PATH
44180do
44181 IFS=$as_save_IFS
44182 test -z "$as_dir" && as_dir=.
44183 for ac_exec_ext in '' $ac_executable_extensions; do
44184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44185 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
44186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44187 break 2
44188 fi
44189done
44190done
44191IFS=$as_save_IFS
44192
44193 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
44194 ;;
44195esac
44196fi
44197EditorDelegate=$ac_cv_path_EditorDelegate
44198if test -n "$EditorDelegate"; then
44199 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
44200$as_echo "$EditorDelegate" >&6; }
44201else
44202 { $as_echo "$as_me:$LINENO: result: no" >&5
44203$as_echo "no" >&6; }
44204fi
44205
44206
44207# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
44208set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
44209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44210$as_echo_n "checking for $ac_word... " >&6; }
44211if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
44212 $as_echo_n "(cached) " >&6
44213else
44214 case $FIGDecodeDelegate in
44215 [\\/]* | ?:[\\/]*)
44216 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
44217 ;;
44218 *)
44219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44220for as_dir in $PATH
44221do
44222 IFS=$as_save_IFS
44223 test -z "$as_dir" && as_dir=.
44224 for ac_exec_ext in '' $ac_executable_extensions; do
44225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44226 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44228 break 2
44229 fi
44230done
44231done
44232IFS=$as_save_IFS
44233
44234 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
44235 ;;
44236esac
44237fi
44238FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
44239if test -n "$FIGDecodeDelegate"; then
44240 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
44241$as_echo "$FIGDecodeDelegate" >&6; }
44242else
44243 { $as_echo "$as_me:$LINENO: result: no" >&5
44244$as_echo "no" >&6; }
44245fi
44246
44247
44248# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
44249set dummy "$ConvertDelegateDefault"; ac_word=$2
44250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44251$as_echo_n "checking for $ac_word... " >&6; }
44252if test "${ac_cv_path_ConvertDelegate+set}" = set; then
44253 $as_echo_n "(cached) " >&6
44254else
44255 case $ConvertDelegate in
44256 [\\/]* | ?:[\\/]*)
44257 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
44258 ;;
44259 *)
44260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44261for as_dir in $PATH
44262do
44263 IFS=$as_save_IFS
44264 test -z "$as_dir" && as_dir=.
44265 for ac_exec_ext in '' $ac_executable_extensions; do
44266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44267 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
44268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44269 break 2
44270 fi
44271done
44272done
44273IFS=$as_save_IFS
44274
44275 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
44276 ;;
44277esac
44278fi
44279ConvertDelegate=$ac_cv_path_ConvertDelegate
44280if test -n "$ConvertDelegate"; then
44281 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
44282$as_echo "$ConvertDelegate" >&6; }
44283else
44284 { $as_echo "$as_me:$LINENO: result: no" >&5
44285$as_echo "no" >&6; }
44286fi
44287
44288
44289# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
44290set dummy "$DisplayDelegateDefault"; ac_word=$2
44291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44292$as_echo_n "checking for $ac_word... " >&6; }
44293if test "${ac_cv_path_DisplayDelegate+set}" = set; then
44294 $as_echo_n "(cached) " >&6
44295else
44296 case $DisplayDelegate in
44297 [\\/]* | ?:[\\/]*)
44298 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
44299 ;;
44300 *)
44301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44302for as_dir in $PATH
44303do
44304 IFS=$as_save_IFS
44305 test -z "$as_dir" && as_dir=.
44306 for ac_exec_ext in '' $ac_executable_extensions; do
44307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44308 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
44309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44310 break 2
44311 fi
44312done
44313done
44314IFS=$as_save_IFS
44315
44316 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
44317 ;;
44318esac
44319fi
44320DisplayDelegate=$ac_cv_path_DisplayDelegate
44321if test -n "$DisplayDelegate"; then
44322 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
44323$as_echo "$DisplayDelegate" >&6; }
44324else
44325 { $as_echo "$as_me:$LINENO: result: no" >&5
44326$as_echo "no" >&6; }
44327fi
44328
44329
44330# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
44331set dummy "$MogrifyDelegateDefault"; ac_word=$2
44332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44333$as_echo_n "checking for $ac_word... " >&6; }
44334if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
44335 $as_echo_n "(cached) " >&6
44336else
44337 case $MogrifyDelegate in
44338 [\\/]* | ?:[\\/]*)
44339 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
44340 ;;
44341 *)
44342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44343for as_dir in $PATH
44344do
44345 IFS=$as_save_IFS
44346 test -z "$as_dir" && as_dir=.
44347 for ac_exec_ext in '' $ac_executable_extensions; do
44348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44349 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
44350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44351 break 2
44352 fi
44353done
44354done
44355IFS=$as_save_IFS
44356
44357 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
44358 ;;
44359esac
44360fi
44361MogrifyDelegate=$ac_cv_path_MogrifyDelegate
44362if test -n "$MogrifyDelegate"; then
44363 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
44364$as_echo "$MogrifyDelegate" >&6; }
44365else
44366 { $as_echo "$as_me:$LINENO: result: no" >&5
44367$as_echo "no" >&6; }
44368fi
44369
44370
44371# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
44372set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
44373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44374$as_echo_n "checking for $ac_word... " >&6; }
44375if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
44376 $as_echo_n "(cached) " >&6
44377else
44378 case $GnuplotDecodeDelegate in
44379 [\\/]* | ?:[\\/]*)
44380 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
44381 ;;
44382 *)
44383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44384for as_dir in $PATH
44385do
44386 IFS=$as_save_IFS
44387 test -z "$as_dir" && as_dir=.
44388 for ac_exec_ext in '' $ac_executable_extensions; do
44389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44390 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44392 break 2
44393 fi
44394done
44395done
44396IFS=$as_save_IFS
44397
44398 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
44399 ;;
44400esac
44401fi
44402GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
44403if test -n "$GnuplotDecodeDelegate"; then
44404 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
44405$as_echo "$GnuplotDecodeDelegate" >&6; }
44406else
44407 { $as_echo "$as_me:$LINENO: result: no" >&5
44408$as_echo "no" >&6; }
44409fi
44410
44411
44412# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
44413set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
44414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44415$as_echo_n "checking for $ac_word... " >&6; }
44416if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
44417 $as_echo_n "(cached) " >&6
44418else
44419 case $HDRDecodeDelegate in
44420 [\\/]* | ?:[\\/]*)
44421 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
44422 ;;
44423 *)
44424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44425for as_dir in $PATH
44426do
44427 IFS=$as_save_IFS
44428 test -z "$as_dir" && as_dir=.
44429 for ac_exec_ext in '' $ac_executable_extensions; do
44430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44431 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44433 break 2
44434 fi
44435done
44436done
44437IFS=$as_save_IFS
44438
44439 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
44440 ;;
44441esac
44442fi
44443HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
44444if test -n "$HDRDecodeDelegate"; then
44445 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
44446$as_echo "$HDRDecodeDelegate" >&6; }
44447else
44448 { $as_echo "$as_me:$LINENO: result: no" >&5
44449$as_echo "no" >&6; }
44450fi
44451
44452
44453# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
44454set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
44455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44456$as_echo_n "checking for $ac_word... " >&6; }
44457if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
44458 $as_echo_n "(cached) " >&6
44459else
44460 case $HPGLDecodeDelegate in
44461 [\\/]* | ?:[\\/]*)
44462 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
44463 ;;
44464 *)
44465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44466for as_dir in $PATH
44467do
44468 IFS=$as_save_IFS
44469 test -z "$as_dir" && as_dir=.
44470 for ac_exec_ext in '' $ac_executable_extensions; do
44471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44472 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44474 break 2
44475 fi
44476done
44477done
44478IFS=$as_save_IFS
44479
44480 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
44481 ;;
44482esac
44483fi
44484HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
44485if test -n "$HPGLDecodeDelegate"; then
44486 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
44487$as_echo "$HPGLDecodeDelegate" >&6; }
44488else
44489 { $as_echo "$as_me:$LINENO: result: no" >&5
44490$as_echo "no" >&6; }
44491fi
44492
44493
44494# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
44495set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
44496{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44497$as_echo_n "checking for $ac_word... " >&6; }
44498if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
44499 $as_echo_n "(cached) " >&6
44500else
44501 case $HTMLDecodeDelegate in
44502 [\\/]* | ?:[\\/]*)
44503 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
44504 ;;
44505 *)
44506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44507for as_dir in $PATH
44508do
44509 IFS=$as_save_IFS
44510 test -z "$as_dir" && as_dir=.
44511 for ac_exec_ext in '' $ac_executable_extensions; do
44512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44513 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44515 break 2
44516 fi
44517done
44518done
44519IFS=$as_save_IFS
44520
44521 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
44522 ;;
44523esac
44524fi
44525HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
44526if test -n "$HTMLDecodeDelegate"; then
44527 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
44528$as_echo "$HTMLDecodeDelegate" >&6; }
44529else
44530 { $as_echo "$as_me:$LINENO: result: no" >&5
44531$as_echo "no" >&6; }
44532fi
44533
44534
44535# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
44536set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
44537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44538$as_echo_n "checking for $ac_word... " >&6; }
44539if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
44540 $as_echo_n "(cached) " >&6
44541else
44542 case $ILBMDecodeDelegate in
44543 [\\/]* | ?:[\\/]*)
44544 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
44545 ;;
44546 *)
44547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44548for as_dir in $PATH
44549do
44550 IFS=$as_save_IFS
44551 test -z "$as_dir" && as_dir=.
44552 for ac_exec_ext in '' $ac_executable_extensions; do
44553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44554 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44556 break 2
44557 fi
44558done
44559done
44560IFS=$as_save_IFS
44561
44562 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
44563 ;;
44564esac
44565fi
44566ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
44567if test -n "$ILBMDecodeDelegate"; then
44568 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
44569$as_echo "$ILBMDecodeDelegate" >&6; }
44570else
44571 { $as_echo "$as_me:$LINENO: result: no" >&5
44572$as_echo "no" >&6; }
44573fi
44574
44575
44576# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
44577set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
44578{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44579$as_echo_n "checking for $ac_word... " >&6; }
44580if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
44581 $as_echo_n "(cached) " >&6
44582else
44583 case $ILBMEncodeDelegate in
44584 [\\/]* | ?:[\\/]*)
44585 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
44586 ;;
44587 *)
44588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44589for as_dir in $PATH
44590do
44591 IFS=$as_save_IFS
44592 test -z "$as_dir" && as_dir=.
44593 for ac_exec_ext in '' $ac_executable_extensions; do
44594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44595 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44597 break 2
44598 fi
44599done
44600done
44601IFS=$as_save_IFS
44602
44603 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
44604 ;;
44605esac
44606fi
44607ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
44608if test -n "$ILBMEncodeDelegate"; then
44609 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
44610$as_echo "$ILBMEncodeDelegate" >&6; }
44611else
44612 { $as_echo "$as_me:$LINENO: result: no" >&5
44613$as_echo "no" >&6; }
44614fi
44615
44616
44617# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
44618set dummy "$LPDelegateDefault"; ac_word=$2
44619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44620$as_echo_n "checking for $ac_word... " >&6; }
44621if test "${ac_cv_path_LPDelegate+set}" = set; then
44622 $as_echo_n "(cached) " >&6
44623else
44624 case $LPDelegate in
44625 [\\/]* | ?:[\\/]*)
44626 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
44627 ;;
44628 *)
44629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44630for as_dir in $PATH
44631do
44632 IFS=$as_save_IFS
44633 test -z "$as_dir" && as_dir=.
44634 for ac_exec_ext in '' $ac_executable_extensions; do
44635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44636 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
44637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44638 break 2
44639 fi
44640done
44641done
44642IFS=$as_save_IFS
44643
44644 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
44645 ;;
44646esac
44647fi
44648LPDelegate=$ac_cv_path_LPDelegate
44649if test -n "$LPDelegate"; then
44650 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
44651$as_echo "$LPDelegate" >&6; }
44652else
44653 { $as_echo "$as_me:$LINENO: result: no" >&5
44654$as_echo "no" >&6; }
44655fi
44656
44657
44658# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
44659set dummy "$LPRDelegateDefault"; ac_word=$2
44660{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44661$as_echo_n "checking for $ac_word... " >&6; }
44662if test "${ac_cv_path_LPRDelegate+set}" = set; then
44663 $as_echo_n "(cached) " >&6
44664else
44665 case $LPRDelegate in
44666 [\\/]* | ?:[\\/]*)
44667 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
44668 ;;
44669 *)
44670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44671for as_dir in $PATH
44672do
44673 IFS=$as_save_IFS
44674 test -z "$as_dir" && as_dir=.
44675 for ac_exec_ext in '' $ac_executable_extensions; do
44676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44677 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
44678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44679 break 2
44680 fi
44681done
44682done
44683IFS=$as_save_IFS
44684
44685 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
44686 ;;
44687esac
44688fi
44689LPRDelegate=$ac_cv_path_LPRDelegate
44690if test -n "$LPRDelegate"; then
44691 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
44692$as_echo "$LPRDelegate" >&6; }
44693else
44694 { $as_echo "$as_me:$LINENO: result: no" >&5
44695$as_echo "no" >&6; }
44696fi
44697
44698
44699# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
44700set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
44701{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44702$as_echo_n "checking for $ac_word... " >&6; }
44703if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
44704 $as_echo_n "(cached) " >&6
44705else
44706 case $LZWDecodeDelegate in
44707 [\\/]* | ?:[\\/]*)
44708 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
44709 ;;
44710 *)
44711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44712for as_dir in $PATH
44713do
44714 IFS=$as_save_IFS
44715 test -z "$as_dir" && as_dir=.
44716 for ac_exec_ext in '' $ac_executable_extensions; do
44717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44718 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44720 break 2
44721 fi
44722done
44723done
44724IFS=$as_save_IFS
44725
44726 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
44727 ;;
44728esac
44729fi
44730LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
44731if test -n "$LZWDecodeDelegate"; then
44732 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
44733$as_echo "$LZWDecodeDelegate" >&6; }
44734else
44735 { $as_echo "$as_me:$LINENO: result: no" >&5
44736$as_echo "no" >&6; }
44737fi
44738
44739
44740# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
44741set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
44742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44743$as_echo_n "checking for $ac_word... " >&6; }
44744if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
44745 $as_echo_n "(cached) " >&6
44746else
44747 case $LZWEncodeDelegate in
44748 [\\/]* | ?:[\\/]*)
44749 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
44750 ;;
44751 *)
44752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44753for as_dir in $PATH
44754do
44755 IFS=$as_save_IFS
44756 test -z "$as_dir" && as_dir=.
44757 for ac_exec_ext in '' $ac_executable_extensions; do
44758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44759 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44761 break 2
44762 fi
44763done
44764done
44765IFS=$as_save_IFS
44766
44767 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
44768 ;;
44769esac
44770fi
44771LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
44772if test -n "$LZWEncodeDelegate"; then
44773 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
44774$as_echo "$LZWEncodeDelegate" >&6; }
44775else
44776 { $as_echo "$as_me:$LINENO: result: no" >&5
44777$as_echo "no" >&6; }
44778fi
44779
44780
44781# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
44782set dummy "$LaunchDelegateDefault"; ac_word=$2
44783{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44784$as_echo_n "checking for $ac_word... " >&6; }
44785if test "${ac_cv_path_LaunchDelegate+set}" = set; then
44786 $as_echo_n "(cached) " >&6
44787else
44788 case $LaunchDelegate in
44789 [\\/]* | ?:[\\/]*)
44790 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
44791 ;;
44792 *)
44793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44794for as_dir in $PATH
44795do
44796 IFS=$as_save_IFS
44797 test -z "$as_dir" && as_dir=.
44798 for ac_exec_ext in '' $ac_executable_extensions; do
44799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44800 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
44801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44802 break 2
44803 fi
44804done
44805done
44806IFS=$as_save_IFS
44807
44808 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
44809 ;;
44810esac
44811fi
44812LaunchDelegate=$ac_cv_path_LaunchDelegate
44813if test -n "$LaunchDelegate"; then
44814 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
44815$as_echo "$LaunchDelegate" >&6; }
44816else
44817 { $as_echo "$as_me:$LINENO: result: no" >&5
44818$as_echo "no" >&6; }
44819fi
44820
44821
44822# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
44823set dummy "$MANDelegateDefault"; ac_word=$2
44824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44825$as_echo_n "checking for $ac_word... " >&6; }
44826if test "${ac_cv_path_MANDelegate+set}" = set; then
44827 $as_echo_n "(cached) " >&6
44828else
44829 case $MANDelegate in
44830 [\\/]* | ?:[\\/]*)
44831 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
44832 ;;
44833 *)
44834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44835for as_dir in $PATH
44836do
44837 IFS=$as_save_IFS
44838 test -z "$as_dir" && as_dir=.
44839 for ac_exec_ext in '' $ac_executable_extensions; do
44840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44841 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44843 break 2
44844 fi
44845done
44846done
44847IFS=$as_save_IFS
44848
44849 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44850 ;;
44851esac
44852fi
44853MANDelegate=$ac_cv_path_MANDelegate
44854if test -n "$MANDelegate"; then
44855 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44856$as_echo "$MANDelegate" >&6; }
44857else
44858 { $as_echo "$as_me:$LINENO: result: no" >&5
44859$as_echo "no" >&6; }
44860fi
44861
44862
44863# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44864set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44865{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44866$as_echo_n "checking for $ac_word... " >&6; }
44867if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44868 $as_echo_n "(cached) " >&6
44869else
44870 case $MPEGDecodeDelegate in
44871 [\\/]* | ?:[\\/]*)
44872 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44873 ;;
44874 *)
44875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44876for as_dir in $PATH
44877do
44878 IFS=$as_save_IFS
44879 test -z "$as_dir" && as_dir=.
44880 for ac_exec_ext in '' $ac_executable_extensions; do
44881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44882 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44884 break 2
44885 fi
44886done
44887done
44888IFS=$as_save_IFS
44889
44890 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44891 ;;
44892esac
44893fi
44894MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44895if test -n "$MPEGDecodeDelegate"; then
44896 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44897$as_echo "$MPEGDecodeDelegate" >&6; }
44898else
44899 { $as_echo "$as_me:$LINENO: result: no" >&5
44900$as_echo "no" >&6; }
44901fi
44902
44903
44904# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44905set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44907$as_echo_n "checking for $ac_word... " >&6; }
44908if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44909 $as_echo_n "(cached) " >&6
44910else
44911 case $MPEGEncodeDelegate in
44912 [\\/]* | ?:[\\/]*)
44913 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44914 ;;
44915 *)
44916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44917for as_dir in $PATH
44918do
44919 IFS=$as_save_IFS
44920 test -z "$as_dir" && as_dir=.
44921 for ac_exec_ext in '' $ac_executable_extensions; do
44922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44923 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44925 break 2
44926 fi
44927done
44928done
44929IFS=$as_save_IFS
44930
44931 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44932 ;;
44933esac
44934fi
44935MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44936if test -n "$MPEGEncodeDelegate"; then
44937 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44938$as_echo "$MPEGEncodeDelegate" >&6; }
44939else
44940 { $as_echo "$as_me:$LINENO: result: no" >&5
44941$as_echo "no" >&6; }
44942fi
44943
44944
44945# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44946set dummy "$MVDelegateDefault"; ac_word=$2
44947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44948$as_echo_n "checking for $ac_word... " >&6; }
44949if test "${ac_cv_path_MVDelegate+set}" = set; then
44950 $as_echo_n "(cached) " >&6
44951else
44952 case $MVDelegate in
44953 [\\/]* | ?:[\\/]*)
44954 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44955 ;;
44956 *)
44957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44958for as_dir in $PATH
44959do
44960 IFS=$as_save_IFS
44961 test -z "$as_dir" && as_dir=.
44962 for ac_exec_ext in '' $ac_executable_extensions; do
44963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44964 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44966 break 2
44967 fi
44968done
44969done
44970IFS=$as_save_IFS
44971
44972 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44973 ;;
44974esac
44975fi
44976MVDelegate=$ac_cv_path_MVDelegate
44977if test -n "$MVDelegate"; then
44978 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44979$as_echo "$MVDelegate" >&6; }
44980else
44981 { $as_echo "$as_me:$LINENO: result: no" >&5
44982$as_echo "no" >&6; }
44983fi
44984
44985
44986# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44987set dummy "$PCLDelegateDefault"; ac_word=$2
44988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44989$as_echo_n "checking for $ac_word... " >&6; }
44990if test "${ac_cv_path_PCLDelegate+set}" = set; then
44991 $as_echo_n "(cached) " >&6
44992else
44993 case $PCLDelegate in
44994 [\\/]* | ?:[\\/]*)
44995 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44996 ;;
44997 *)
44998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44999for as_dir in $PATH
45000do
45001 IFS=$as_save_IFS
45002 test -z "$as_dir" && as_dir=.
45003 for ac_exec_ext in '' $ac_executable_extensions; do
45004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45005 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
45006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45007 break 2
45008 fi
45009done
45010done
45011IFS=$as_save_IFS
45012
45013 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
45014 ;;
45015esac
45016fi
45017PCLDelegate=$ac_cv_path_PCLDelegate
45018if test -n "$PCLDelegate"; then
45019 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
45020$as_echo "$PCLDelegate" >&6; }
45021else
45022 { $as_echo "$as_me:$LINENO: result: no" >&5
45023$as_echo "no" >&6; }
45024fi
45025
45026
45027# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
45028set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
45029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45030$as_echo_n "checking for $ac_word... " >&6; }
45031if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
45032 $as_echo_n "(cached) " >&6
45033else
45034 case $PGPDecodeDelegate in
45035 [\\/]* | ?:[\\/]*)
45036 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
45037 ;;
45038 *)
45039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45040for as_dir in $PATH
45041do
45042 IFS=$as_save_IFS
45043 test -z "$as_dir" && as_dir=.
45044 for ac_exec_ext in '' $ac_executable_extensions; do
45045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45046 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45048 break 2
45049 fi
45050done
45051done
45052IFS=$as_save_IFS
45053
45054 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
45055 ;;
45056esac
45057fi
45058PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
45059if test -n "$PGPDecodeDelegate"; then
45060 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
45061$as_echo "$PGPDecodeDelegate" >&6; }
45062else
45063 { $as_echo "$as_me:$LINENO: result: no" >&5
45064$as_echo "no" >&6; }
45065fi
45066
45067
45068# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
45069set dummy "$POVDelegateDefault"; ac_word=$2
45070{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45071$as_echo_n "checking for $ac_word... " >&6; }
45072if test "${ac_cv_path_POVDelegate+set}" = set; then
45073 $as_echo_n "(cached) " >&6
45074else
45075 case $POVDelegate in
45076 [\\/]* | ?:[\\/]*)
45077 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
45078 ;;
45079 *)
45080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45081for as_dir in $PATH
45082do
45083 IFS=$as_save_IFS
45084 test -z "$as_dir" && as_dir=.
45085 for ac_exec_ext in '' $ac_executable_extensions; do
45086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45087 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
45088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45089 break 2
45090 fi
45091done
45092done
45093IFS=$as_save_IFS
45094
45095 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
45096 ;;
45097esac
45098fi
45099POVDelegate=$ac_cv_path_POVDelegate
45100if test -n "$POVDelegate"; then
45101 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
45102$as_echo "$POVDelegate" >&6; }
45103else
45104 { $as_echo "$as_me:$LINENO: result: no" >&5
45105$as_echo "no" >&6; }
45106fi
45107
45108
45109for ac_prog in gsx gsc "$PSDelegateDefault"
45110do
45111 # Extract the first word of "$ac_prog", so it can be a program name with args.
45112set dummy $ac_prog; ac_word=$2
45113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45114$as_echo_n "checking for $ac_word... " >&6; }
45115if test "${ac_cv_path_PSDelegate+set}" = set; then
45116 $as_echo_n "(cached) " >&6
45117else
45118 case $PSDelegate in
45119 [\\/]* | ?:[\\/]*)
45120 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
45121 ;;
45122 *)
45123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45124for as_dir in $PATH
45125do
45126 IFS=$as_save_IFS
45127 test -z "$as_dir" && as_dir=.
45128 for ac_exec_ext in '' $ac_executable_extensions; do
45129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45130 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
45131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45132 break 2
45133 fi
45134done
45135done
45136IFS=$as_save_IFS
45137
45138 ;;
45139esac
45140fi
45141PSDelegate=$ac_cv_path_PSDelegate
45142if test -n "$PSDelegate"; then
45143 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
45144$as_echo "$PSDelegate" >&6; }
45145else
45146 { $as_echo "$as_me:$LINENO: result: no" >&5
45147$as_echo "no" >&6; }
45148fi
45149
45150
45151 test -n "$PSDelegate" && break
45152done
45153test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
45154
45155# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
45156set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
45157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45158$as_echo_n "checking for $ac_word... " >&6; }
45159if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
45160 $as_echo_n "(cached) " >&6
45161else
45162 case $RLEEncodeDelegate in
45163 [\\/]* | ?:[\\/]*)
45164 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
45165 ;;
45166 *)
45167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45168for as_dir in $PATH
45169do
45170 IFS=$as_save_IFS
45171 test -z "$as_dir" && as_dir=.
45172 for ac_exec_ext in '' $ac_executable_extensions; do
45173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45174 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45176 break 2
45177 fi
45178done
45179done
45180IFS=$as_save_IFS
45181
45182 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
45183 ;;
45184esac
45185fi
45186RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
45187if test -n "$RLEEncodeDelegate"; then
45188 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
45189$as_echo "$RLEEncodeDelegate" >&6; }
45190else
45191 { $as_echo "$as_me:$LINENO: result: no" >&5
45192$as_echo "no" >&6; }
45193fi
45194
45195
45196# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
45197set dummy "$RMDelegateDefault"; ac_word=$2
45198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45199$as_echo_n "checking for $ac_word... " >&6; }
45200if test "${ac_cv_path_RMDelegate+set}" = set; then
45201 $as_echo_n "(cached) " >&6
45202else
45203 case $RMDelegate in
45204 [\\/]* | ?:[\\/]*)
45205 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
45206 ;;
45207 *)
45208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45209for as_dir in $PATH
45210do
45211 IFS=$as_save_IFS
45212 test -z "$as_dir" && as_dir=.
45213 for ac_exec_ext in '' $ac_executable_extensions; do
45214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45215 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
45216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45217 break 2
45218 fi
45219done
45220done
45221IFS=$as_save_IFS
45222
45223 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
45224 ;;
45225esac
45226fi
45227RMDelegate=$ac_cv_path_RMDelegate
45228if test -n "$RMDelegate"; then
45229 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
45230$as_echo "$RMDelegate" >&6; }
45231else
45232 { $as_echo "$as_me:$LINENO: result: no" >&5
45233$as_echo "no" >&6; }
45234fi
45235
45236
45237# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
45238set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
45239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45240$as_echo_n "checking for $ac_word... " >&6; }
45241if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
45242 $as_echo_n "(cached) " >&6
45243else
45244 case $SCANDecodeDelegate in
45245 [\\/]* | ?:[\\/]*)
45246 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
45247 ;;
45248 *)
45249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45250for as_dir in $PATH
45251do
45252 IFS=$as_save_IFS
45253 test -z "$as_dir" && as_dir=.
45254 for ac_exec_ext in '' $ac_executable_extensions; do
45255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45256 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45258 break 2
45259 fi
45260done
45261done
45262IFS=$as_save_IFS
45263
45264 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
45265 ;;
45266esac
45267fi
45268SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
45269if test -n "$SCANDecodeDelegate"; then
45270 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
45271$as_echo "$SCANDecodeDelegate" >&6; }
45272else
45273 { $as_echo "$as_me:$LINENO: result: no" >&5
45274$as_echo "no" >&6; }
45275fi
45276
45277
45278# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
45279set dummy "$TXTDelegateDefault"; ac_word=$2
45280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45281$as_echo_n "checking for $ac_word... " >&6; }
45282if test "${ac_cv_path_TXTDelegate+set}" = set; then
45283 $as_echo_n "(cached) " >&6
45284else
45285 case $TXTDelegate in
45286 [\\/]* | ?:[\\/]*)
45287 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
45288 ;;
45289 *)
45290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45291for as_dir in $PATH
45292do
45293 IFS=$as_save_IFS
45294 test -z "$as_dir" && as_dir=.
45295 for ac_exec_ext in '' $ac_executable_extensions; do
45296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45297 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
45298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45299 break 2
45300 fi
45301done
45302done
45303IFS=$as_save_IFS
45304
45305 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
45306 ;;
45307esac
45308fi
45309TXTDelegate=$ac_cv_path_TXTDelegate
45310if test -n "$TXTDelegate"; then
45311 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
45312$as_echo "$TXTDelegate" >&6; }
45313else
45314 { $as_echo "$as_me:$LINENO: result: no" >&5
45315$as_echo "no" >&6; }
45316fi
45317
45318
45319# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
45320set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
45321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45322$as_echo_n "checking for $ac_word... " >&6; }
45323if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
45324 $as_echo_n "(cached) " >&6
45325else
45326 case $WMFDecodeDelegate in
45327 [\\/]* | ?:[\\/]*)
45328 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
45329 ;;
45330 *)
45331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45332for as_dir in $PATH
45333do
45334 IFS=$as_save_IFS
45335 test -z "$as_dir" && as_dir=.
45336 for ac_exec_ext in '' $ac_executable_extensions; do
45337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45338 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45340 break 2
45341 fi
45342done
45343done
45344IFS=$as_save_IFS
45345
45346 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
45347 ;;
45348esac
45349fi
45350WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
45351if test -n "$WMFDecodeDelegate"; then
45352 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
45353$as_echo "$WMFDecodeDelegate" >&6; }
45354else
45355 { $as_echo "$as_me:$LINENO: result: no" >&5
45356$as_echo "no" >&6; }
45357fi
45358
45359
45360# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
45361set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
45362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45363$as_echo_n "checking for $ac_word... " >&6; }
45364if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
45365 $as_echo_n "(cached) " >&6
45366else
45367 case $WWWDecodeDelegate in
45368 [\\/]* | ?:[\\/]*)
45369 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
45370 ;;
45371 *)
45372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45373for as_dir in $PATH
45374do
45375 IFS=$as_save_IFS
45376 test -z "$as_dir" && as_dir=.
45377 for ac_exec_ext in '' $ac_executable_extensions; do
45378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45379 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45381 break 2
45382 fi
45383done
45384done
45385IFS=$as_save_IFS
45386
45387 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
45388 ;;
45389esac
45390fi
45391WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
45392if test -n "$WWWDecodeDelegate"; then
45393 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
45394$as_echo "$WWWDecodeDelegate" >&6; }
45395else
45396 { $as_echo "$as_me:$LINENO: result: no" >&5
45397$as_echo "no" >&6; }
45398fi
45399
45400
45401# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
45402set dummy "$XPSDelegateDefault"; ac_word=$2
45403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45404$as_echo_n "checking for $ac_word... " >&6; }
45405if test "${ac_cv_path_XPSDelegate+set}" = set; then
45406 $as_echo_n "(cached) " >&6
45407else
45408 case $XPSDelegate in
45409 [\\/]* | ?:[\\/]*)
45410 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
45411 ;;
45412 *)
45413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45414for as_dir in $PATH
45415do
45416 IFS=$as_save_IFS
45417 test -z "$as_dir" && as_dir=.
45418 for ac_exec_ext in '' $ac_executable_extensions; do
45419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45420 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
45421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45422 break 2
45423 fi
45424done
45425done
45426IFS=$as_save_IFS
45427
45428 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
45429 ;;
45430esac
45431fi
45432XPSDelegate=$ac_cv_path_XPSDelegate
45433if test -n "$XPSDelegate"; then
45434 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
45435$as_echo "$XPSDelegate" >&6; }
45436else
45437 { $as_echo "$as_me:$LINENO: result: no" >&5
45438$as_echo "no" >&6; }
45439fi
45440
45441
45442# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
45443set dummy "$ZipDelegateDefault"; ac_word=$2
45444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45445$as_echo_n "checking for $ac_word... " >&6; }
45446if test "${ac_cv_path_ZipDelegate+set}" = set; then
45447 $as_echo_n "(cached) " >&6
45448else
45449 case $ZipDelegate in
45450 [\\/]* | ?:[\\/]*)
45451 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
45452 ;;
45453 *)
45454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45455for as_dir in $PATH
45456do
45457 IFS=$as_save_IFS
45458 test -z "$as_dir" && as_dir=.
45459 for ac_exec_ext in '' $ac_executable_extensions; do
45460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45461 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
45462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45463 break 2
45464 fi
45465done
45466done
45467IFS=$as_save_IFS
45468
45469 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
45470 ;;
45471esac
45472fi
45473ZipDelegate=$ac_cv_path_ZipDelegate
45474if test -n "$ZipDelegate"; then
45475 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
45476$as_echo "$ZipDelegate" >&6; }
45477else
45478 { $as_echo "$as_me:$LINENO: result: no" >&5
45479$as_echo "no" >&6; }
45480fi
45481
45482
45483
45484# Prefer lpr to lp; lp needs options tacked on.
45485if test "$LPRDelegate" != no; then
45486 PrintDelegate="$LPRDelegate"
45487else
45488 PrintDelegate="$LPDelegate -c -s"
45489fi
45490
45491
45492# Installed ImageMagick utiltity paths
45493ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
45494DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
45495MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
45496
45497# Set delegate booleans
45498have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
45499have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
45500have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
45501have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
45502have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
45503have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
45504have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
45505have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
45506have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
45507have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
45508have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
45509
45510#
45511# Test for font directories
45512#
45513type_include_files=''
45514
45515# Windows
45516windows_font_dir=''
45517if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
45518 windows_font_dir="${with_windows_font_dir}/"
45519fi
45520if test -n "$windows_font_dir"; then
45521 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
45522 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
45523 fi
45524 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
45525 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
45526 fi
45527 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
45528 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
45529 fi
45530fi
45531if test -n "$windows_font_dir"; then
45532 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
45533fi
45534
45535
45536# Ghostscript
45537{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
45538$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
45539ghostscript_font_dir=''
45540if test "${with_gs_font_dir}" != 'default'; then
45541 ghostscript_font_dir="${with_gs_font_dir}/"
45542else
45543 if test "${native_win32_build}" = 'yes'; then
45544 # Native Windows Build
45545 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
45546 if test -f "${font_dir}a010013l.pfb"; then
45547 ghostscript_font_dir="$font_dir"
45548 break 1
45549 fi
45550 done
45551 if test "${PSDelegate}" != 'gswin32c'; then
45552 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
45553 fi
45554 else
45555 # Linux / Mac OS X / Unix Build
45556 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
45557 if test -f "${font_dir}a010013l.pfb"; then
45558 ghostscript_font_dir="${font_dir}"
45559 break 1
45560 fi
45561 done
45562 if test "${ghostscript_font_dir}x" = 'x'; then
45563 if test "$PSDelegate" != 'gs'; then
45564 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
45565 fi
45566 fi
45567 fi
45568fi
45569if test "${ghostscript_font_dir}x" != 'x'; then
45570 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
45571 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
45572$as_echo "$ghostscript_font_dir" >&6; }
45573else
45574 { $as_echo "$as_me:$LINENO: result: not found!" >&5
45575$as_echo "not found!" >&6; };
45576fi
45577
45578case "${build_os}" in
45579 mingw* )
45580 PSDelegate=`$WinPathScript "$PSDelegate" 1`
45581 ;;
45582esac
45583
45584
45585
45586#
45587# Handle case where user doesn't want frozen paths
45588#
45589if test "$with_frozenpaths" != 'yes'; then
45590 # Re-set delegate definitions to default (no paths)
45591 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
45592 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
45593 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
45594 BZIPDelegate="$BZIPDelegateDefault"
45595 BrowseDelegate="$BrowseDelegateDefault"
45596 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
45597 CatDelegate="$CatDelegateDefault"
45598 ConvertDelegate="$ConvertDelegateDefault"
45599 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
45600 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
45601 EchoDelegate="$EchoDelegateDefault"
45602 EditorDelegate="$EditorDelegateDefault"
45603 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
45604 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
45605 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
45606 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
45607 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
45608 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
45609 LPDelegate="$LPDelegateDefault"
45610 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
45611 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
45612 LaunchDelegate="$LaunchDelegateDefault"
45613 MANDelegate="$MANDelegateDefault"
45614 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
45615 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
45616 MVDelegate="$MVDelegateDefault"
45617 MogrifyDelegate="$MogrifyDelegateDefault"
45618 PCLDelegate="$PCLDelegateDefault"
45619 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
45620 POVDelegate="$POVDelegateDefault"
45621 PSDelegate="$PSDelegateDefault"
45622 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
45623 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
45624 RMDelegate="$RMDelegateDefault"
45625 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
45626 ShowImageDelegate="$ShowImageDelegateDefault"
45627 TXTDelegate="$TXTDelegateDefault"
45628 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
45629 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
45630 XPSDelegate="$XPSDelegateDefault"
45631 ZipDelegate="$ZipDelegateDefault"
45632fi
45633
45634# Delegate substitutions
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
45677#
45678# RPM support.
45679#
45680RPM=''
45681for ac_prog in gnutar gtar tar
45682do
45683 # Extract the first word of "$ac_prog", so it can be a program name with args.
45684set dummy $ac_prog; ac_word=$2
45685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45686$as_echo_n "checking for $ac_word... " >&6; }
45687if test "${ac_cv_prog_TAR+set}" = set; then
45688 $as_echo_n "(cached) " >&6
45689else
45690 if test -n "$TAR"; then
45691 ac_cv_prog_TAR="$TAR" # Let the user override the test.
45692else
45693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45694for as_dir in $PATH
45695do
45696 IFS=$as_save_IFS
45697 test -z "$as_dir" && as_dir=.
45698 for ac_exec_ext in '' $ac_executable_extensions; do
45699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45700 ac_cv_prog_TAR="$ac_prog"
45701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45702 break 2
45703 fi
45704done
45705done
45706IFS=$as_save_IFS
45707
45708fi
45709fi
45710TAR=$ac_cv_prog_TAR
45711if test -n "$TAR"; then
45712 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
45713$as_echo "$TAR" >&6; }
45714else
45715 { $as_echo "$as_me:$LINENO: result: no" >&5
45716$as_echo "no" >&6; }
45717fi
45718
45719
45720 test -n "$TAR" && break
45721done
45722
45723for ac_prog in perl
45724do
45725 # Extract the first word of "$ac_prog", so it can be a program name with args.
45726set dummy $ac_prog; ac_word=$2
45727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45728$as_echo_n "checking for $ac_word... " >&6; }
45729if test "${ac_cv_prog_PERL+set}" = set; then
45730 $as_echo_n "(cached) " >&6
45731else
45732 if test -n "$PERL"; then
45733 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45734else
45735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45736for as_dir in $PATH
45737do
45738 IFS=$as_save_IFS
45739 test -z "$as_dir" && as_dir=.
45740 for ac_exec_ext in '' $ac_executable_extensions; do
45741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45742 ac_cv_prog_PERL="$ac_prog"
45743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45744 break 2
45745 fi
45746done
45747done
45748IFS=$as_save_IFS
45749
45750fi
45751fi
45752PERL=$ac_cv_prog_PERL
45753if test -n "$PERL"; then
45754 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45755$as_echo "$PERL" >&6; }
45756else
45757 { $as_echo "$as_me:$LINENO: result: no" >&5
45758$as_echo "no" >&6; }
45759fi
45760
45761
45762 test -n "$PERL" && break
45763done
45764
45765for ac_prog in rpmbuild rpm
45766do
45767 # Extract the first word of "$ac_prog", so it can be a program name with args.
45768set dummy $ac_prog; ac_word=$2
45769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45770$as_echo_n "checking for $ac_word... " >&6; }
45771if test "${ac_cv_prog_RPM+set}" = set; then
45772 $as_echo_n "(cached) " >&6
45773else
45774 if test -n "$RPM"; then
45775 ac_cv_prog_RPM="$RPM" # Let the user override the test.
45776else
45777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45778for as_dir in $PATH
45779do
45780 IFS=$as_save_IFS
45781 test -z "$as_dir" && as_dir=.
45782 for ac_exec_ext in '' $ac_executable_extensions; do
45783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45784 ac_cv_prog_RPM="$ac_prog"
45785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45786 break 2
45787 fi
45788done
45789done
45790IFS=$as_save_IFS
45791
45792fi
45793fi
45794RPM=$ac_cv_prog_RPM
45795if test -n "$RPM"; then
45796 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
45797$as_echo "$RPM" >&6; }
45798else
45799 { $as_echo "$as_me:$LINENO: result: no" >&5
45800$as_echo "no" >&6; }
45801fi
45802
45803
45804 test -n "$RPM" && break
45805done
45806
45807
45808ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
45809
45810
45811AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
45812
45813
45814AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
45815
45816
45817AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
45818
45819
45820 if test "x$RPM" != "x" ; then
45821 RPM_DELEGATE_TRUE=
45822 RPM_DELEGATE_FALSE='#'
45823else
45824 RPM_DELEGATE_TRUE='#'
45825 RPM_DELEGATE_FALSE=
45826fi
45827
45828
45829#
45830# 7ZIP support (http://p7zip.sourceforge.net/)
45831#
45832P7ZIP=''
45833for ac_prog in 7za
45834do
45835 # Extract the first word of "$ac_prog", so it can be a program name with args.
45836set dummy $ac_prog; ac_word=$2
45837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45838$as_echo_n "checking for $ac_word... " >&6; }
45839if test "${ac_cv_prog_P7ZIP+set}" = set; then
45840 $as_echo_n "(cached) " >&6
45841else
45842 if test -n "$P7ZIP"; then
45843 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45844else
45845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45846for as_dir in $PATH
45847do
45848 IFS=$as_save_IFS
45849 test -z "$as_dir" && as_dir=.
45850 for ac_exec_ext in '' $ac_executable_extensions; do
45851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45852 ac_cv_prog_P7ZIP="$ac_prog"
45853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45854 break 2
45855 fi
45856done
45857done
45858IFS=$as_save_IFS
45859
45860fi
45861fi
45862P7ZIP=$ac_cv_prog_P7ZIP
45863if test -n "$P7ZIP"; then
45864 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45865$as_echo "$P7ZIP" >&6; }
45866else
45867 { $as_echo "$as_me:$LINENO: result: no" >&5
45868$as_echo "no" >&6; }
45869fi
45870
45871
45872 test -n "$P7ZIP" && break
45873done
45874
45875
45876 if test "x$P7ZIP" != "x" ; then
45877 P7ZIP_DELEGATE_TRUE=
45878 P7ZIP_DELEGATE_FALSE='#'
45879else
45880 P7ZIP_DELEGATE_TRUE='#'
45881 P7ZIP_DELEGATE_FALSE=
45882fi
45883
45884
45885#
45886# ZIP support (http://www.info-zip.org/Zip.html)
45887#
45888ZIP=''
45889for ac_prog in zip
45890do
45891 # Extract the first word of "$ac_prog", so it can be a program name with args.
45892set dummy $ac_prog; ac_word=$2
45893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45894$as_echo_n "checking for $ac_word... " >&6; }
45895if test "${ac_cv_prog_ZIP+set}" = set; then
45896 $as_echo_n "(cached) " >&6
45897else
45898 if test -n "$ZIP"; then
45899 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45900else
45901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45902for as_dir in $PATH
45903do
45904 IFS=$as_save_IFS
45905 test -z "$as_dir" && as_dir=.
45906 for ac_exec_ext in '' $ac_executable_extensions; do
45907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45908 ac_cv_prog_ZIP="$ac_prog"
45909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45910 break 2
45911 fi
45912done
45913done
45914IFS=$as_save_IFS
45915
45916fi
45917fi
45918ZIP=$ac_cv_prog_ZIP
45919if test -n "$ZIP"; then
45920 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45921$as_echo "$ZIP" >&6; }
45922else
45923 { $as_echo "$as_me:$LINENO: result: no" >&5
45924$as_echo "no" >&6; }
45925fi
45926
45927
45928 test -n "$ZIP" && break
45929done
45930
45931
45932 if test "x$ZIP" != "x" ; then
45933 ZIP_DELEGATE_TRUE=
45934 ZIP_DELEGATE_FALSE='#'
45935else
45936 ZIP_DELEGATE_TRUE='#'
45937 ZIP_DELEGATE_FALSE=
45938fi
45939
45940
45941#
45942# GhostPCL related configuration.
45943#
45944PCLColorDevice=ppmraw
45945PCLCMYKDevice=bmpsep8
45946PCLMonoDevice=pbmraw
45947if test -z "$PCLVersion"; then
45948 PCLVersion='unknown'
45949fi
45950if test $have_pcl = 'yes'; then
45951 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45952$as_echo "-------------------------------------------------------------" >&6; }
45953 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45954$as_echo_n "checking for PCL... " >&6; }
45955 { $as_echo "$as_me:$LINENO: result: " >&5
45956$as_echo "" >&6; }
45957 # PCLColorDevice
45958 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45959$as_echo_n "checking for pcl color device... " >&6; }
45960 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45961 :
45962 else
45963 PCLColorDevice=ppmraw
45964 fi
45965 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45966$as_echo "$PCLColorDevice" >&6; }
45967
45968 # PCLCMYKDevice
45969 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45970$as_echo_n "checking for pcl CMYK device... " >&6; }
45971 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45972 :
45973 else
45974 PCLCMYKDevice=$PCLColorDevice
45975 fi
45976 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45977$as_echo "$PCLCMYKDevice" >&6; }
45978
45979 # PCLMonoDevice
45980 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45981$as_echo_n "checking for pcl mono device... " >&6; }
45982 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45983 :
45984 else
45985 PCLMonoDevice=$PCLColorDevice
45986 fi
45987 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45988$as_echo "$PCLMonoDevice" >&6; }
45989fi
45990
45991
45992
45993
45994
45995
45996#
45997# GhostXPS related configuration.
45998#
45999XPSColorDevice=ppmraw
46000XPSCMYKDevice=bmpsep8
46001XPSMonoDevice=pbmraw
46002if test -z "$XPSVersion"; then
46003 XPSVersion='unknown'
46004fi
46005if test $have_xps = 'yes'; then
46006 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46007$as_echo "-------------------------------------------------------------" >&6; }
46008 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
46009$as_echo_n "checking for XPS... " >&6; }
46010 { $as_echo "$as_me:$LINENO: result: " >&5
46011$as_echo "" >&6; }
46012 # XPSColorDevice
46013 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
46014$as_echo_n "checking for xps color device... " >&6; }
46015 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46016 :
46017 else
46018 XPSColorDevice=ppmraw
46019 fi
46020 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
46021$as_echo "$XPSColorDevice" >&6; }
46022
46023 # XPSCMYKDevice
46024 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
46025$as_echo_n "checking for xps CMYK device... " >&6; }
46026 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46027 :
46028 else
46029 XPSCMYKDevice=$XPSColorDevice
46030 fi
46031 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
46032$as_echo "$XPSCMYKDevice" >&6; }
46033
46034 # XPSMonoDevice
46035 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
46036$as_echo_n "checking for xps mono device... " >&6; }
46037 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46038 :
46039 else
46040 XPSMonoDevice=$XPSColorDevice
46041 fi
46042 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
46043$as_echo "$XPSMonoDevice" >&6; }
46044fi
46045
46046
46047
46048
46049
46050
46051#
46052# Ghostscript related configuration.
46053#
46054if test "$have_png" = 'yes'; then
46055 GSAlphaDevice=pngalpha
46056else
46057 GSAlphaDevice=pnmraw
46058fi
46059GSColorDevice=pnmraw
46060GSCMYKDevice=pam
46061GSMonoDevice=pbmraw
46062GSPDFDevice=pdfwrite
46063GSPSDevice=pswrite
46064GSEPSDevice=epswrite
46065GSVersion='unknown'
46066if test $have_gs = 'yes'; then
46067 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46068$as_echo "-------------------------------------------------------------" >&6; }
46069 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
46070$as_echo_n "checking for Ghostscript... " >&6; }
46071 { $as_echo "$as_me:$LINENO: result: " >&5
46072$as_echo "" >&6; }
46073 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
46074$as_echo_n "checking for Ghostscript version... " >&6; }
46075 if GSVersion=`$PSDelegate --version`; then
46076 :
46077 else
46078 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
46079 fi
46080 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
46081$as_echo "$GSVersion" >&6; }
46082
46083 # GSAlphaDevice
46084 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
46085$as_echo_n "checking for gs alpha device... " >&6; }
46086 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46087 :
46088 else
46089 GSAlphaDevice=pnmraw
46090 fi
46091 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
46092$as_echo "$GSAlphaDevice" >&6; }
46093
46094 # GSColorDevice
46095 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
46096$as_echo_n "checking for gs color device... " >&6; }
46097 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46098 :
46099 else
46100 GSColorDevice=pnmraw
46101 fi
46102 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
46103$as_echo "$GSColorDevice" >&6; }
46104
46105 # GSCMYKDevice
46106 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
46107$as_echo_n "checking for gs CMYK device... " >&6; }
46108 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46109 :
46110 else
46111 GSCMYKDevice=bmpsep8
46112 fi
46113 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
46114$as_echo "$GSCMYKDevice" >&6; }
46115
46116 # GSMonoDevice
46117 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
46118$as_echo_n "checking for gs mono device... " >&6; }
46119 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46120 :
46121 else
46122 GSMonoDevice=$GSColorDevice
46123 fi
46124 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
46125$as_echo "$GSMonoDevice" >&6; }
46126
46127 # GSPDFDevice
46128 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
46129$as_echo_n "checking for gs PDF writing device... " >&6; }
46130 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46131 :
46132 else
46133 GSPDFDevice=nodevice
46134 fi
46135 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
46136$as_echo "$GSPDFDevice" >&6; }
46137
46138 # GSPSDevice
46139 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
46140$as_echo_n "checking for gs PS writing device... " >&6; }
46141 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46142 :
46143 else
46144 GSPSDevice=nodevice
46145 fi
46146 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
46147$as_echo "$GSPSDevice" >&6; }
46148
46149 # GSEPSDevice
46150 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
46151$as_echo_n "checking for gs EPS writing device... " >&6; }
46152 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46153 :
46154 else
46155 GSEPSDevice=nodevice
46156 fi
46157 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
46158$as_echo "$GSEPSDevice" >&6; }
46159fi
46160
46161
46162
46163
46164
46165
46166
46167
46168
46169
46170#
46171# PerlMagick-related configuration
46172#
46173
46174# Look for PERL if PerlMagick requested
46175# If name/path of desired PERL interpreter is specified, look for that one first
46176have_perl='no'
46177if test "$with_perl" != 'no'; then
46178 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46179$as_echo "-------------------------------------------------------------" >&6; }
46180 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
46181$as_echo_n "checking for Perl... " >&6; }
46182 { $as_echo "$as_me:$LINENO: result: " >&5
46183$as_echo "" >&6; }
46184 if test "$with_perl" != 'yes'; then
46185 { $as_echo "$as_me:$LINENO: checking for perl" >&5
46186$as_echo_n "checking for perl... " >&6; }
46187if test "${ac_cv_path_PERL+set}" = set; then
46188 $as_echo_n "(cached) " >&6
46189else
46190 ac_cv_path_PERL="$with_perl"
46191fi
46192{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
46193$as_echo "$ac_cv_path_PERL" >&6; };
46194 PERL=$ac_cv_path_PERL
46195 have_perl="$ac_cv_path_PERL"
46196 else
46197 for ac_prog in perl perl5
46198do
46199 # Extract the first word of "$ac_prog", so it can be a program name with args.
46200set dummy $ac_prog; ac_word=$2
46201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46202$as_echo_n "checking for $ac_word... " >&6; }
46203if test "${ac_cv_path_PERL+set}" = set; then
46204 $as_echo_n "(cached) " >&6
46205else
46206 case $PERL in
46207 [\\/]* | ?:[\\/]*)
46208 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
46209 ;;
46210 *)
46211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46212for as_dir in $PATH
46213do
46214 IFS=$as_save_IFS
46215 test -z "$as_dir" && as_dir=.
46216 for ac_exec_ext in '' $ac_executable_extensions; do
46217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46218 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
46219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46220 break 2
46221 fi
46222done
46223done
46224IFS=$as_save_IFS
46225
46226 ;;
46227esac
46228fi
46229PERL=$ac_cv_path_PERL
46230if test -n "$PERL"; then
46231 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46232$as_echo "$PERL" >&6; }
46233else
46234 { $as_echo "$as_me:$LINENO: result: no" >&5
46235$as_echo "no" >&6; }
46236fi
46237
46238
46239 test -n "$PERL" && break
46240done
46241 if test "$ac_cv_path_PERL"; then
46242 have_perl="$ac_cv_path_PERL"
46243 fi
46244 fi
46245fi
46246
46247with_perl_static='no'
46248with_perl_dynamic='no'
46249if test "$have_perl" != 'no'; then
46250 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
46251 with_perl_static='yes'
46252 fi
46253 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
46254 with_perl_dynamic='yes'
46255 fi
46256 # Is PERL's MakeMaker new enough to support DESTDIR?
46257 # Make sure we have perl
46258if test -z "$PERL"; then
46259# Extract the first word of "perl", so it can be a program name with args.
46260set dummy perl; ac_word=$2
46261{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46262$as_echo_n "checking for $ac_word... " >&6; }
46263if test "${ac_cv_prog_PERL+set}" = set; then
46264 $as_echo_n "(cached) " >&6
46265else
46266 if test -n "$PERL"; then
46267 ac_cv_prog_PERL="$PERL" # Let the user override the test.
46268else
46269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46270for as_dir in $PATH
46271do
46272 IFS=$as_save_IFS
46273 test -z "$as_dir" && as_dir=.
46274 for ac_exec_ext in '' $ac_executable_extensions; do
46275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46276 ac_cv_prog_PERL="perl"
46277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46278 break 2
46279 fi
46280done
46281done
46282IFS=$as_save_IFS
46283
46284fi
46285fi
46286PERL=$ac_cv_prog_PERL
46287if test -n "$PERL"; then
46288 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46289$as_echo "$PERL" >&6; }
46290else
46291 { $as_echo "$as_me:$LINENO: result: no" >&5
46292$as_echo "no" >&6; }
46293fi
46294
46295
46296fi
46297
46298# Check if version of Perl is sufficient
46299ac_perl_version="5.8.1"
46300
46301if test "x$PERL" != "x"; then
46302 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
46303$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
46304 # NB: It would be nice to log the error if there is one, but we cannot rely
46305 # on autoconf internals
46306 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
46307 if test $? -ne 0; then
46308 { $as_echo "$as_me:$LINENO: result: no" >&5
46309$as_echo "no" >&6; };
46310 PERL_SUPPORTS_DESTDIR='no'
46311 else
46312 { $as_echo "$as_me:$LINENO: result: ok" >&5
46313$as_echo "ok" >&6; };
46314 PERL_SUPPORTS_DESTDIR='yes'
46315 fi
46316else
46317 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
46318$as_echo "$as_me: WARNING: could not find perl" >&2;}
46319fi
46320
46321fi
46322 if test "$have_perl" != 'no'; then
46323 WITH_PERL_TRUE=
46324 WITH_PERL_FALSE='#'
46325else
46326 WITH_PERL_TRUE='#'
46327 WITH_PERL_FALSE=
46328fi
46329
46330 if test $with_perl_static = 'yes'; then
46331 WITH_PERL_STATIC_TRUE=
46332 WITH_PERL_STATIC_FALSE='#'
46333else
46334 WITH_PERL_STATIC_TRUE='#'
46335 WITH_PERL_STATIC_FALSE=
46336fi
46337
46338 if test $with_perl_dynamic = 'yes'; then
46339 WITH_PERL_DYNAMIC_TRUE=
46340 WITH_PERL_DYNAMIC_FALSE='#'
46341else
46342 WITH_PERL_DYNAMIC_TRUE='#'
46343 WITH_PERL_DYNAMIC_FALSE=
46344fi
46345
46346
46347
46348# Determine path to pick up MagickCore library from for use with building PerlMagick
46349MAGICKCORE_PATH="${LIB_DIR}"
46350if test $with_perl_static = 'yes'; then
46351 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
46352 libtool_objdir=$objdir
46353
46354 # Linker search path to library, followed by -lMagickCore
46355 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
46356fi
46357
46358
46359# Create a simple string containing format names for all delegate libraries
46360DELEGATES=''
46361if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
46362if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
46363if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
46364if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
46365if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
46366if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
46367if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
46368if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
46369if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
46370if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
46371if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
46372if test "$have_jpeg" = 'yes'; then
46373 DELEGATES="$DELEGATES jpeg";
46374 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
46375fi
46376if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
46377if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
46378if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
46379if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
46380if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
46381if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
46382if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
46383if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
46384if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
46385if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
46386if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
46387if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
46388
46389
46390
46391#
46392# Handle special compiler flags
46393#
46394
46395# Add '-p' if prof source profiling support enabled
46396if test "$enable_prof" = 'yes'; then
46397 CFLAGS="-p $CFLAGS"
46398 CXXFLAGS="-p $CXXFLAGS"
46399 LDFLAGS="-p $LDFLAGS"
46400fi
46401
46402# Add '-pg' if gprof source profiling support enabled
46403if test "$enable_gprof" = 'yes'; then
46404 CFLAGS="-pg $CFLAGS"
46405 CXXFLAGS="-pg $CXXFLAGS"
46406 LDFLAGS="-pg $LDFLAGS"
46407fi
46408
46409# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
46410# This is a gcc-specific feature
46411if test "$enable_gcov" = 'yes'; then
46412
46413{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
46414$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
46415if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
46416 $as_echo_n "(cached) " >&6
46417else
46418 ac_check_lib_save_LIBS=$LIBS
46419LIBS="-lgcov $LIBS"
46420cat >conftest.$ac_ext <<_ACEOF
46421/* confdefs.h. */
46422_ACEOF
46423cat confdefs.h >>conftest.$ac_ext
46424cat >>conftest.$ac_ext <<_ACEOF
46425/* end confdefs.h. */
46426
46427/* Override any GCC internal prototype to avoid an error.
46428 Use char because int might match the return type of a GCC
46429 builtin and then its argument prototype would still apply. */
46430#ifdef __cplusplus
46431extern "C"
46432#endif
46433char _gcov_init ();
46434int
46435main ()
46436{
46437return _gcov_init ();
46438 ;
46439 return 0;
46440}
46441_ACEOF
46442rm -f conftest.$ac_objext conftest$ac_exeext
46443if { (ac_try="$ac_link"
46444case "(($ac_try" in
46445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46446 *) ac_try_echo=$ac_try;;
46447esac
46448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46449$as_echo "$ac_try_echo") >&5
46450 (eval "$ac_link") 2>conftest.er1
46451 ac_status=$?
46452 grep -v '^ *+' conftest.er1 >conftest.err
46453 rm -f conftest.er1
46454 cat conftest.err >&5
46455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46456 (exit $ac_status); } && {
46457 test -z "$ac_c_werror_flag" ||
46458 test ! -s conftest.err
46459 } && test -s conftest$ac_exeext && {
46460 test "$cross_compiling" = yes ||
46461 $as_test_x conftest$ac_exeext
46462 }; then
46463 ac_cv_lib_gcov__gcov_init=yes
46464else
46465 $as_echo "$as_me: failed program was:" >&5
46466sed 's/^/| /' conftest.$ac_ext >&5
46467
46468 ac_cv_lib_gcov__gcov_init=no
46469fi
46470
46471rm -rf conftest.dSYM
46472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46473 conftest$ac_exeext conftest.$ac_ext
46474LIBS=$ac_check_lib_save_LIBS
46475fi
46476{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
46477$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
46478if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
46479 cat >>confdefs.h <<_ACEOF
46480#define HAVE_LIBGCOV 1
46481_ACEOF
46482
46483 LIBS="-lgcov $LIBS"
46484
46485fi
46486
46487
46488{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
46489$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
46490if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
46491 $as_echo_n "(cached) " >&6
46492else
46493 ac_check_lib_save_LIBS=$LIBS
46494LIBS="-lgcov $LIBS"
46495cat >conftest.$ac_ext <<_ACEOF
46496/* confdefs.h. */
46497_ACEOF
46498cat confdefs.h >>conftest.$ac_ext
46499cat >>conftest.$ac_ext <<_ACEOF
46500/* end confdefs.h. */
46501
46502/* Override any GCC internal prototype to avoid an error.
46503 Use char because int might match the return type of a GCC
46504 builtin and then its argument prototype would still apply. */
46505#ifdef __cplusplus
46506extern "C"
46507#endif
46508char __gcov_init ();
46509int
46510main ()
46511{
46512return __gcov_init ();
46513 ;
46514 return 0;
46515}
46516_ACEOF
46517rm -f conftest.$ac_objext conftest$ac_exeext
46518if { (ac_try="$ac_link"
46519case "(($ac_try" in
46520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46521 *) ac_try_echo=$ac_try;;
46522esac
46523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46524$as_echo "$ac_try_echo") >&5
46525 (eval "$ac_link") 2>conftest.er1
46526 ac_status=$?
46527 grep -v '^ *+' conftest.er1 >conftest.err
46528 rm -f conftest.er1
46529 cat conftest.err >&5
46530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46531 (exit $ac_status); } && {
46532 test -z "$ac_c_werror_flag" ||
46533 test ! -s conftest.err
46534 } && test -s conftest$ac_exeext && {
46535 test "$cross_compiling" = yes ||
46536 $as_test_x conftest$ac_exeext
46537 }; then
46538 ac_cv_lib_gcov___gcov_init=yes
46539else
46540 $as_echo "$as_me: failed program was:" >&5
46541sed 's/^/| /' conftest.$ac_ext >&5
46542
46543 ac_cv_lib_gcov___gcov_init=no
46544fi
46545
46546rm -rf conftest.dSYM
46547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46548 conftest$ac_exeext conftest.$ac_ext
46549LIBS=$ac_check_lib_save_LIBS
46550fi
46551{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
46552$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
46553if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
46554 cat >>confdefs.h <<_ACEOF
46555#define HAVE_LIBGCOV 1
46556_ACEOF
46557
46558 LIBS="-lgcov $LIBS"
46559
46560fi
46561
46562 case "$target_os" in
46563 darwin*)
46564 OSX_GCOV_LDFLAG="-Wl,-single_module"
46565 ;;
46566 *)
46567 OSX_GCOV_LDFLAG=""
46568 ;;
46569 esac
46570
46571 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
46572 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
46573 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
46574fi
46575
46576#
46577# Build library dependency list for libMagickCore
46578#
46579
46580MAGICK_LIBLTDL='' # Libltdl for build
46581MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
46582MAGICK_LTDLDEPS='' # extra libltdl dependencies
46583if test "$with_ltdl" != 'no'
46584then
46585 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
46586 MAGICK_API_LIBLTDL='-lltdl'
46587 fi
46588 MAGICK_LIBLTDL=${LIBLTDL}
46589 MAGICK_LTDLDEPS=${LTDLDEPS}
46590fi
46591
46592
46593
46594if test "$with_modules" != 'no'; then
46595 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"
46596else
46597 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"
46598fi
46599
46600
46601#
46602# Remove extraneous spaces from output variables (asthetic)
46603#
46604X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
46605X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
46606X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
46607X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
46608
46609CC=`echo $CC | sed -e 's/ */ /g'`
46610CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
46611CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
46612CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
46613DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
46614DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
46615LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
46616TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46617MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
46618#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46619
46620# Pass only user-provided LIBS as "global" libraries
46621LIBS=$USER_LIBS
46622
46623#AC_SUBST(CPPFLAGS)
46624
46625#AC_SUBST(LDFLAGS)
46626#AC_SUBST(X_PRE_LIBS)
46627#AC_SUBST(X_LIBS)
46628#AC_SUBST(X_EXTRA_LIBS)
46629
46630MAGICK_CFLAGS=$CFLAGS
46631MAGICK_CXXFLAGS="$CXXFLAGS"
46632MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
46633MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
46634MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
46635MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
46636
46637
46638
46639
46640
46641
46642
46643
46644# Set configured scripts to executable.
46645ac_config_commands="$ac_config_commands default"
46646
46647ac_config_commands="$ac_config_commands MagickCore-config.in"
46648
46649ac_config_commands="$ac_config_commands Magick-config.in"
46650
46651ac_config_commands="$ac_config_commands MagickWand-config.in"
46652
46653ac_config_commands="$ac_config_commands Wand-config.in"
46654
46655ac_config_commands="$ac_config_commands Magick++-config.in"
46656
46657ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
46658
46659
46660{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46661$as_echo "-------------------------------------------------------------" >&6; }
46662{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
46663$as_echo "Update ImageMagick configuration" >&6; }
46664cat >confcache <<\_ACEOF
46665# This file is a shell script that caches the results of configure
46666# tests run on this system so they can be shared between configure
46667# scripts and configure runs, see configure's option --config-cache.
46668# It is not useful on other systems. If it contains results you don't
46669# want to keep, you may remove or edit it.
46670#
46671# config.status only pays attention to the cache file if you give it
46672# the --recheck option to rerun configure.
46673#
46674# `ac_cv_env_foo' variables (set or unset) will be overridden when
46675# loading this file, other *unset* `ac_cv_foo' will be assigned the
46676# following values.
46677
46678_ACEOF
46679
46680# The following way of writing the cache mishandles newlines in values,
46681# but we know of no workaround that is simple, portable, and efficient.
46682# So, we kill variables containing newlines.
46683# Ultrix sh set writes to stderr and can't be redirected directly,
46684# and sets the high bit in the cache file unless we assign to the vars.
46685(
46686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46687 eval ac_val=\$$ac_var
46688 case $ac_val in #(
46689 *${as_nl}*)
46690 case $ac_var in #(
46691 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46692$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46693 esac
46694 case $ac_var in #(
46695 _ | IFS | as_nl) ;; #(
46696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46697 *) $as_unset $ac_var ;;
46698 esac ;;
46699 esac
46700 done
46701
46702 (set) 2>&1 |
46703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46704 *${as_nl}ac_space=\ *)
46705 # `set' does not quote correctly, so add quotes (double-quote
46706 # substitution turns \\\\ into \\, and sed turns \\ into \).
46707 sed -n \
46708 "s/'/'\\\\''/g;
46709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46710 ;; #(
46711 *)
46712 # `set' quotes correctly as required by POSIX, so do not add quotes.
46713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46714 ;;
46715 esac |
46716 sort
46717) |
46718 sed '
46719 /^ac_cv_env_/b end
46720 t clear
46721 :clear
46722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46723 t end
46724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46725 :end' >>confcache
46726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46727 if test -w "$cache_file"; then
46728 test "x$cache_file" != "x/dev/null" &&
46729 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46730$as_echo "$as_me: updating cache $cache_file" >&6;}
46731 cat confcache >$cache_file
46732 else
46733 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46735 fi
46736fi
46737rm -f confcache
46738
46739test "x$prefix" = xNONE && prefix=$ac_default_prefix
46740# Let make expand exec_prefix.
46741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46742
46743DEFS=-DHAVE_CONFIG_H
46744
46745ac_libobjs=
46746ac_ltlibobjs=
46747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46748 # 1. Remove the extension, and $U if already installed.
46749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46752 # will be set to the directory where LIBOBJS objects are built.
46753 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46754 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46755done
46756LIBOBJS=$ac_libobjs
46757
46758LTLIBOBJS=$ac_ltlibobjs
46759
46760
46761 if test -n "$EXEEXT"; then
46762 am__EXEEXT_TRUE=
46763 am__EXEEXT_FALSE='#'
46764else
46765 am__EXEEXT_TRUE='#'
46766 am__EXEEXT_FALSE=
46767fi
46768
46769if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46770 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46771Usually this means the macro was only invoked conditionally." >&5
46772$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
46773Usually this means the macro was only invoked conditionally." >&2;}
46774 { (exit 1); exit 1; }; }
46775fi
46776if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46777 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46778Usually this means the macro was only invoked conditionally." >&5
46779$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46780Usually this means the macro was only invoked conditionally." >&2;}
46781 { (exit 1); exit 1; }; }
46782fi
46783if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46784 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46785Usually this means the macro was only invoked conditionally." >&5
46786$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46787Usually this means the macro was only invoked conditionally." >&2;}
46788 { (exit 1); exit 1; }; }
46789fi
46790if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
46791 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46792Usually this means the macro was only invoked conditionally." >&5
46793$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46794Usually this means the macro was only invoked conditionally." >&2;}
46795 { (exit 1); exit 1; }; }
46796fi
46797if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
46798 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46799Usually this means the macro was only invoked conditionally." >&5
46800$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46801Usually this means the macro was only invoked conditionally." >&2;}
46802 { (exit 1); exit 1; }; }
46803fi
46804if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
46805 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
46806Usually this means the macro was only invoked conditionally." >&5
46807$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
46808Usually this means the macro was only invoked conditionally." >&2;}
46809 { (exit 1); exit 1; }; }
46810fi
46811if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
46812 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
46813Usually this means the macro was only invoked conditionally." >&5
46814$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
46815Usually this means the macro was only invoked conditionally." >&2;}
46816 { (exit 1); exit 1; }; }
46817fi
46818if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46819 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46820Usually this means the macro was only invoked conditionally." >&5
46821$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46822Usually this means the macro was only invoked conditionally." >&2;}
46823 { (exit 1); exit 1; }; }
46824fi
46825if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
46826 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
46827Usually this means the macro was only invoked conditionally." >&5
46828$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
46829Usually this means the macro was only invoked conditionally." >&2;}
46830 { (exit 1); exit 1; }; }
46831fi
46832if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
46833 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46834Usually this means the macro was only invoked conditionally." >&5
46835$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46836Usually this means the macro was only invoked conditionally." >&2;}
46837 { (exit 1); exit 1; }; }
46838fi
46839LT_CONFIG_H=config/config.h
46840
46841 _ltdl_libobjs=
46842 _ltdl_ltlibobjs=
46843 if test -n "$_LT_LIBOBJS"; then
46844 # Remove the extension.
46845 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46846 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46847 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46848 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46849 done
46850 fi
46851 ltdl_LIBOBJS=$_ltdl_libobjs
46852
46853 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46854
46855
46856if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46857 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46858Usually this means the macro was only invoked conditionally." >&5
46859$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46860Usually this means the macro was only invoked conditionally." >&2;}
46861 { (exit 1); exit 1; }; }
46862fi
46863if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46864 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46865Usually this means the macro was only invoked conditionally." >&5
46866$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46867Usually this means the macro was only invoked conditionally." >&2;}
46868 { (exit 1); exit 1; }; }
46869fi
46870if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46871 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46872Usually this means the macro was only invoked conditionally." >&5
46873$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46874Usually this means the macro was only invoked conditionally." >&2;}
46875 { (exit 1); exit 1; }; }
46876fi
46877
46878if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46879 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46880Usually this means the macro was only invoked conditionally." >&5
46881$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46882Usually this means the macro was only invoked conditionally." >&2;}
46883 { (exit 1); exit 1; }; }
46884fi
46885if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46886 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46887Usually this means the macro was only invoked conditionally." >&5
46888$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46889Usually this means the macro was only invoked conditionally." >&2;}
46890 { (exit 1); exit 1; }; }
46891fi
46892if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46893 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46894Usually this means the macro was only invoked conditionally." >&5
46895$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46896Usually this means the macro was only invoked conditionally." >&2;}
46897 { (exit 1); exit 1; }; }
46898fi
46899if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46900 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46901Usually this means the macro was only invoked conditionally." >&5
46902$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46903Usually this means the macro was only invoked conditionally." >&2;}
46904 { (exit 1); exit 1; }; }
46905fi
46906if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46907 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46908Usually this means the macro was only invoked conditionally." >&5
46909$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46910Usually this means the macro was only invoked conditionally." >&2;}
46911 { (exit 1); exit 1; }; }
46912fi
46913if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46914 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46915Usually this means the macro was only invoked conditionally." >&5
46916$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46917Usually this means the macro was only invoked conditionally." >&2;}
46918 { (exit 1); exit 1; }; }
46919fi
46920if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46921 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46922Usually this means the macro was only invoked conditionally." >&5
46923$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46924Usually this means the macro was only invoked conditionally." >&2;}
46925 { (exit 1); exit 1; }; }
46926fi
46927if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46928 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46929Usually this means the macro was only invoked conditionally." >&5
46930$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46931Usually this means the macro was only invoked conditionally." >&2;}
46932 { (exit 1); exit 1; }; }
46933fi
46934if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46935 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46936Usually this means the macro was only invoked conditionally." >&5
46937$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46938Usually this means the macro was only invoked conditionally." >&2;}
46939 { (exit 1); exit 1; }; }
46940fi
46941if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46942 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46943Usually this means the macro was only invoked conditionally." >&5
46944$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46945Usually this means the macro was only invoked conditionally." >&2;}
46946 { (exit 1); exit 1; }; }
46947fi
46948if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46949 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46950Usually this means the macro was only invoked conditionally." >&5
46951$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46952Usually this means the macro was only invoked conditionally." >&2;}
46953 { (exit 1); exit 1; }; }
46954fi
46955if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46956 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46957Usually this means the macro was only invoked conditionally." >&5
46958$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46959Usually this means the macro was only invoked conditionally." >&2;}
46960 { (exit 1); exit 1; }; }
46961fi
46962if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46963 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46964Usually this means the macro was only invoked conditionally." >&5
46965$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46966Usually this means the macro was only invoked conditionally." >&2;}
46967 { (exit 1); exit 1; }; }
46968fi
46969if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46970 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46971Usually this means the macro was only invoked conditionally." >&5
46972$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46973Usually this means the macro was only invoked conditionally." >&2;}
46974 { (exit 1); exit 1; }; }
46975fi
46976if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46977 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46978Usually this means the macro was only invoked conditionally." >&5
46979$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46980Usually this means the macro was only invoked conditionally." >&2;}
46981 { (exit 1); exit 1; }; }
46982fi
46983if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46984 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46985Usually this means the macro was only invoked conditionally." >&5
46986$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46987Usually this means the macro was only invoked conditionally." >&2;}
46988 { (exit 1); exit 1; }; }
46989fi
46990if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46991 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46992Usually this means the macro was only invoked conditionally." >&5
46993$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46994Usually this means the macro was only invoked conditionally." >&2;}
46995 { (exit 1); exit 1; }; }
46996fi
46997if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46998 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46999Usually this means the macro was only invoked conditionally." >&5
47000$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
47001Usually this means the macro was only invoked conditionally." >&2;}
47002 { (exit 1); exit 1; }; }
47003fi
47004if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
47005 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
47006Usually this means the macro was only invoked conditionally." >&5
47007$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
47008Usually this means the macro was only invoked conditionally." >&2;}
47009 { (exit 1); exit 1; }; }
47010fi
47011if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
47012 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
47013Usually this means the macro was only invoked conditionally." >&5
47014$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
47015Usually this means the macro was only invoked conditionally." >&2;}
47016 { (exit 1); exit 1; }; }
47017fi
47018if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
47019 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
47020Usually this means the macro was only invoked conditionally." >&5
47021$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
47022Usually this means the macro was only invoked conditionally." >&2;}
47023 { (exit 1); exit 1; }; }
47024fi
47025if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
47026 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
47027Usually this means the macro was only invoked conditionally." >&5
47028$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
47029Usually this means the macro was only invoked conditionally." >&2;}
47030 { (exit 1); exit 1; }; }
47031fi
47032if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
47033 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
47034Usually this means the macro was only invoked conditionally." >&5
47035$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
47036Usually this means the macro was only invoked conditionally." >&2;}
47037 { (exit 1); exit 1; }; }
47038fi
47039if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
47040 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
47041Usually this means the macro was only invoked conditionally." >&5
47042$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
47043Usually this means the macro was only invoked conditionally." >&2;}
47044 { (exit 1); exit 1; }; }
47045fi
47046if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
47047 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
47048Usually this means the macro was only invoked conditionally." >&5
47049$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
47050Usually this means the macro was only invoked conditionally." >&2;}
47051 { (exit 1); exit 1; }; }
47052fi
47053if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
47054 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
47055Usually this means the macro was only invoked conditionally." >&5
47056$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
47057Usually this means the macro was only invoked conditionally." >&2;}
47058 { (exit 1); exit 1; }; }
47059fi
47060if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
47061 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
47062Usually this means the macro was only invoked conditionally." >&5
47063$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
47064Usually this means the macro was only invoked conditionally." >&2;}
47065 { (exit 1); exit 1; }; }
47066fi
47067if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
47068 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
47069Usually this means the macro was only invoked conditionally." >&5
47070$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
47071Usually this means the macro was only invoked conditionally." >&2;}
47072 { (exit 1); exit 1; }; }
47073fi
47074if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
47075 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47076Usually this means the macro was only invoked conditionally." >&5
47077$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47078Usually this means the macro was only invoked conditionally." >&2;}
47079 { (exit 1); exit 1; }; }
47080fi
47081if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
47082 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
47083Usually this means the macro was only invoked conditionally." >&5
47084$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
47085Usually this means the macro was only invoked conditionally." >&2;}
47086 { (exit 1); exit 1; }; }
47087fi
47088if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
47089 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
47090Usually this means the macro was only invoked conditionally." >&5
47091$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
47092Usually this means the macro was only invoked conditionally." >&2;}
47093 { (exit 1); exit 1; }; }
47094fi
47095if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
47096 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
47097Usually this means the macro was only invoked conditionally." >&5
47098$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
47099Usually this means the macro was only invoked conditionally." >&2;}
47100 { (exit 1); exit 1; }; }
47101fi
47102if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
47103 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47104Usually this means the macro was only invoked conditionally." >&5
47105$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47106Usually this means the macro was only invoked conditionally." >&2;}
47107 { (exit 1); exit 1; }; }
47108fi
47109
47110: ${CONFIG_STATUS=./config.status}
47111ac_write_fail=0
47112ac_clean_files_save=$ac_clean_files
47113ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47114{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47115$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47116cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47117#! $SHELL
47118# Generated by $as_me.
47119# Run this file to recreate the current configuration.
47120# Compiler output produced by configure, useful for debugging
47121# configure, is in config.log if it exists.
47122
47123debug=false
47124ac_cs_recheck=false
47125ac_cs_silent=false
47126SHELL=\${CONFIG_SHELL-$SHELL}
47127_ACEOF
47128
47129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47130## --------------------- ##
47131## M4sh Initialization. ##
47132## --------------------- ##
47133
47134# Be more Bourne compatible
47135DUALCASE=1; export DUALCASE # for MKS sh
47136if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47137 emulate sh
47138 NULLCMD=:
47139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47140 # is contrary to our usage. Disable this feature.
47141 alias -g '${1+"$@"}'='"$@"'
47142 setopt NO_GLOB_SUBST
47143else
47144 case `(set -o) 2>/dev/null` in
47145 *posix*) set -o posix ;;
47146esac
47147
47148fi
47149
47150
47151
47152
47153# PATH needs CR
47154# Avoid depending upon Character Ranges.
47155as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47157as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47158as_cr_digits='0123456789'
47159as_cr_alnum=$as_cr_Letters$as_cr_digits
47160
47161as_nl='
47162'
47163export as_nl
47164# Printing a long string crashes Solaris 7 /usr/bin/printf.
47165as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47168if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47169 as_echo='printf %s\n'
47170 as_echo_n='printf %s'
47171else
47172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47174 as_echo_n='/usr/ucb/echo -n'
47175 else
47176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47177 as_echo_n_body='eval
47178 arg=$1;
47179 case $arg in
47180 *"$as_nl"*)
47181 expr "X$arg" : "X\\(.*\\)$as_nl";
47182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47183 esac;
47184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47185 '
47186 export as_echo_n_body
47187 as_echo_n='sh -c $as_echo_n_body as_echo'
47188 fi
47189 export as_echo_body
47190 as_echo='sh -c $as_echo_body as_echo'
47191fi
47192
47193# The user is always right.
47194if test "${PATH_SEPARATOR+set}" != set; then
47195 PATH_SEPARATOR=:
47196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47198 PATH_SEPARATOR=';'
47199 }
47200fi
47201
47202# Support unset when possible.
47203if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47204 as_unset=unset
47205else
47206 as_unset=false
47207fi
47208
47209
47210# IFS
47211# We need space, tab and new line, in precisely that order. Quoting is
47212# there to prevent editors from complaining about space-tab.
47213# (If _AS_PATH_WALK were called with IFS unset, it would disable word
47214# splitting by setting IFS to empty value.)
47215IFS=" "" $as_nl"
47216
47217# Find who we are. Look in the path if we contain no directory separator.
47218case $0 in
47219 *[\\/]* ) as_myself=$0 ;;
47220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47221for as_dir in $PATH
47222do
47223 IFS=$as_save_IFS
47224 test -z "$as_dir" && as_dir=.
47225 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47226done
47227IFS=$as_save_IFS
47228
47229 ;;
47230esac
47231# We did not find ourselves, most probably we were run as `sh COMMAND'
47232# in which case we are not to be found in the path.
47233if test "x$as_myself" = x; then
47234 as_myself=$0
47235fi
47236if test ! -f "$as_myself"; then
47237 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47238 { (exit 1); exit 1; }
47239fi
47240
47241# Work around bugs in pre-3.0 UWIN ksh.
47242for as_var in ENV MAIL MAILPATH
47243do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47244done
47245PS1='$ '
47246PS2='> '
47247PS4='+ '
47248
47249# NLS nuisances.
47250LC_ALL=C
47251export LC_ALL
47252LANGUAGE=C
47253export LANGUAGE
47254
47255# Required to use basename.
47256if expr a : '\(a\)' >/dev/null 2>&1 &&
47257 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47258 as_expr=expr
47259else
47260 as_expr=false
47261fi
47262
47263if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47264 as_basename=basename
47265else
47266 as_basename=false
47267fi
47268
47269
47270# Name of the executable.
47271as_me=`$as_basename -- "$0" ||
47272$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47273 X"$0" : 'X\(//\)$' \| \
47274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47275$as_echo X/"$0" |
47276 sed '/^.*\/\([^/][^/]*\)\/*$/{
47277 s//\1/
47278 q
47279 }
47280 /^X\/\(\/\/\)$/{
47281 s//\1/
47282 q
47283 }
47284 /^X\/\(\/\).*/{
47285 s//\1/
47286 q
47287 }
47288 s/.*/./; q'`
47289
47290# CDPATH.
47291$as_unset CDPATH
47292
47293
47294
47295 as_lineno_1=$LINENO
47296 as_lineno_2=$LINENO
47297 test "x$as_lineno_1" != "x$as_lineno_2" &&
47298 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47299
47300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47301 # uniformly replaced by the line number. The first 'sed' inserts a
47302 # line-number line after each line using $LINENO; the second 'sed'
47303 # does the real work. The second script uses 'N' to pair each
47304 # line-number line with the line containing $LINENO, and appends
47305 # trailing '-' during substitution so that $LINENO is not a special
47306 # case at line end.
47307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47308 # scripts with optimization help from Paolo Bonzini. Blame Lee
47309 # E. McMahon (1931-1989) for sed's syntax. :-)
47310 sed -n '
47311 p
47312 /[$]LINENO/=
47313 ' <$as_myself |
47314 sed '
47315 s/[$]LINENO.*/&-/
47316 t lineno
47317 b
47318 :lineno
47319 N
47320 :loop
47321 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47322 t loop
47323 s/-\n.*//
47324 ' >$as_me.lineno &&
47325 chmod +x "$as_me.lineno" ||
47326 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47327 { (exit 1); exit 1; }; }
47328
47329 # Don't try to exec as it changes $[0], causing all sort of problems
47330 # (the dirname of $[0] is not the place where we might find the
47331 # original and so on. Autoconf is especially sensitive to this).
47332 . "./$as_me.lineno"
47333 # Exit status is that of the last command.
47334 exit
47335}
47336
47337
47338if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47339 as_dirname=dirname
47340else
47341 as_dirname=false
47342fi
47343
47344ECHO_C= ECHO_N= ECHO_T=
47345case `echo -n x` in
47346-n*)
47347 case `echo 'x\c'` in
47348 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47349 *) ECHO_C='\c';;
47350 esac;;
47351*)
47352 ECHO_N='-n';;
47353esac
47354if expr a : '\(a\)' >/dev/null 2>&1 &&
47355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47356 as_expr=expr
47357else
47358 as_expr=false
47359fi
47360
47361rm -f conf$$ conf$$.exe conf$$.file
47362if test -d conf$$.dir; then
47363 rm -f conf$$.dir/conf$$.file
47364else
47365 rm -f conf$$.dir
47366 mkdir conf$$.dir 2>/dev/null
47367fi
47368if (echo >conf$$.file) 2>/dev/null; then
47369 if ln -s conf$$.file conf$$ 2>/dev/null; then
47370 as_ln_s='ln -s'
47371 # ... but there are two gotchas:
47372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47374 # In both cases, we have to default to `cp -p'.
47375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47376 as_ln_s='cp -p'
47377 elif ln conf$$.file conf$$ 2>/dev/null; then
47378 as_ln_s=ln
47379 else
47380 as_ln_s='cp -p'
47381 fi
47382else
47383 as_ln_s='cp -p'
47384fi
47385rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47386rmdir conf$$.dir 2>/dev/null
47387
47388if mkdir -p . 2>/dev/null; then
47389 as_mkdir_p=:
47390else
47391 test -d ./-p && rmdir ./-p
47392 as_mkdir_p=false
47393fi
47394
47395if test -x / >/dev/null 2>&1; then
47396 as_test_x='test -x'
47397else
47398 if ls -dL / >/dev/null 2>&1; then
47399 as_ls_L_option=L
47400 else
47401 as_ls_L_option=
47402 fi
47403 as_test_x='
47404 eval sh -c '\''
47405 if test -d "$1"; then
47406 test -d "$1/.";
47407 else
47408 case $1 in
47409 -*)set "./$1";;
47410 esac;
47411 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47412 ???[sx]*):;;*)false;;esac;fi
47413 '\'' sh
47414 '
47415fi
47416as_executable_p=$as_test_x
47417
47418# Sed expression to map a string onto a valid CPP name.
47419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47420
47421# Sed expression to map a string onto a valid variable name.
47422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47423
47424
47425exec 6>&1
47426
47427# Save the log message, to keep $[0] and so on meaningful, and to
47428# report actual input values of CONFIG_FILES etc. instead of their
47429# values after options handling.
47430ac_log="
cristybf083432009-09-13 04:31:08 +000047431This file was extended by ImageMagick $as_me 6.5.6, which was
cristy3ed852e2009-09-05 21:47:34 +000047432generated by GNU Autoconf 2.63. Invocation command line was
47433
47434 CONFIG_FILES = $CONFIG_FILES
47435 CONFIG_HEADERS = $CONFIG_HEADERS
47436 CONFIG_LINKS = $CONFIG_LINKS
47437 CONFIG_COMMANDS = $CONFIG_COMMANDS
47438 $ $0 $@
47439
47440on `(hostname || uname -n) 2>/dev/null | sed 1q`
47441"
47442
47443_ACEOF
47444
47445case $ac_config_files in *"
47446"*) set x $ac_config_files; shift; ac_config_files=$*;;
47447esac
47448
47449case $ac_config_headers in *"
47450"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47451esac
47452
47453
47454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47455# Files that config.status was made for.
47456config_files="$ac_config_files"
47457config_headers="$ac_config_headers"
47458config_commands="$ac_config_commands"
47459
47460_ACEOF
47461
47462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47463ac_cs_usage="\
47464\`$as_me' instantiates files from templates according to the
47465current configuration.
47466
47467Usage: $0 [OPTION]... [FILE]...
47468
47469 -h, --help print this help, then exit
47470 -V, --version print version number and configuration settings, then exit
47471 -q, --quiet, --silent
47472 do not print progress messages
47473 -d, --debug don't remove temporary files
47474 --recheck update $as_me by reconfiguring in the same conditions
47475 --file=FILE[:TEMPLATE]
47476 instantiate the configuration file FILE
47477 --header=FILE[:TEMPLATE]
47478 instantiate the configuration header FILE
47479
47480Configuration files:
47481$config_files
47482
47483Configuration headers:
47484$config_headers
47485
47486Configuration commands:
47487$config_commands
47488
47489Report bugs to <bug-autoconf@gnu.org>."
47490
47491_ACEOF
47492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47493ac_cs_version="\\
cristybf083432009-09-13 04:31:08 +000047494ImageMagick config.status 6.5.6
cristy3ed852e2009-09-05 21:47:34 +000047495configured by $0, generated by GNU Autoconf 2.63,
47496 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47497
47498Copyright (C) 2008 Free Software Foundation, Inc.
47499This config.status script is free software; the Free Software Foundation
47500gives unlimited permission to copy, distribute and modify it."
47501
47502ac_pwd='$ac_pwd'
47503srcdir='$srcdir'
47504INSTALL='$INSTALL'
47505MKDIR_P='$MKDIR_P'
47506AWK='$AWK'
47507test -n "\$AWK" || AWK=awk
47508_ACEOF
47509
47510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47511# The default lists apply if the user does not specify any file.
47512ac_need_defaults=:
47513while test $# != 0
47514do
47515 case $1 in
47516 --*=*)
47517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47519 ac_shift=:
47520 ;;
47521 *)
47522 ac_option=$1
47523 ac_optarg=$2
47524 ac_shift=shift
47525 ;;
47526 esac
47527
47528 case $ac_option in
47529 # Handling of the options.
47530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47531 ac_cs_recheck=: ;;
47532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47533 $as_echo "$ac_cs_version"; exit ;;
47534 --debug | --debu | --deb | --de | --d | -d )
47535 debug=: ;;
47536 --file | --fil | --fi | --f )
47537 $ac_shift
47538 case $ac_optarg in
47539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47540 esac
47541 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
47542 ac_need_defaults=false;;
47543 --header | --heade | --head | --hea )
47544 $ac_shift
47545 case $ac_optarg in
47546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47547 esac
47548 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
47549 ac_need_defaults=false;;
47550 --he | --h)
47551 # Conflict between --help and --header
47552 { $as_echo "$as_me: error: ambiguous option: $1
47553Try \`$0 --help' for more information." >&2
47554 { (exit 1); exit 1; }; };;
47555 --help | --hel | -h )
47556 $as_echo "$ac_cs_usage"; exit ;;
47557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47559 ac_cs_silent=: ;;
47560
47561 # This is an error.
47562 -*) { $as_echo "$as_me: error: unrecognized option: $1
47563Try \`$0 --help' for more information." >&2
47564 { (exit 1); exit 1; }; } ;;
47565
47566 *) ac_config_targets="$ac_config_targets $1"
47567 ac_need_defaults=false ;;
47568
47569 esac
47570 shift
47571done
47572
47573ac_configure_extra_args=
47574
47575if $ac_cs_silent; then
47576 exec 6>/dev/null
47577 ac_configure_extra_args="$ac_configure_extra_args --silent"
47578fi
47579
47580_ACEOF
47581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47582if \$ac_cs_recheck; then
47583 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47584 shift
47585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47586 CONFIG_SHELL='$SHELL'
47587 export CONFIG_SHELL
47588 exec "\$@"
47589fi
47590
47591_ACEOF
47592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47593exec 5>>config.log
47594{
47595 echo
47596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47597## Running $as_me. ##
47598_ASBOX
47599 $as_echo "$ac_log"
47600} >&5
47601
47602_ACEOF
47603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47604#
47605# INIT-COMMANDS
47606#
47607PACKAGE="$PACKAGE"
47608AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47609
47610
47611# The HP-UX ksh and POSIX shell print the target directory to stdout
47612# if CDPATH is set.
47613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47614
47615sed_quote_subst='$sed_quote_subst'
47616double_quote_subst='$double_quote_subst'
47617delay_variable_subst='$delay_variable_subst'
47618SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
47619Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
47620GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
47621EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
47622FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
47623LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
47624macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
47625macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
47626AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
47627DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47628OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
47629enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
47630enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
47631pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
47632enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
47633host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
47634host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
47635host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
47636build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
47637build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
47638build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
47639NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
47640LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
47641max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
47642ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
47643exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
47644lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
47645lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
47646lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
47647reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
47648reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47649deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
47650file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
47651AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
47652AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47653STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
47654RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
47655old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47656old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47657old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47658CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
47659CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47660compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
47661GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
47662lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
47663lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
47664lt_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"`'
47665lt_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"`'
47666objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
47667SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
47668ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
47669MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
47670lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
47671lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
47672lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
47673lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
47674lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
47675need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
47676DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
47677NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
47678LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
47679OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47680OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
47681libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
47682shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47683extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47684archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
47685enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
47686export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47687whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47688compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
47689old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47690old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47691archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47692archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47693module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47694module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47695with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
47696allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47697no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47698hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47699hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
47700hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
47701hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
47702hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
47703hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
47704hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47705hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
47706inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
47707link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
47708fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
47709always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
47710export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47711exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47712include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47713prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47714file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
47715variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
47716need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
47717need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
47718version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
47719runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47720shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47721shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
47722libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47723library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
47724soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47725postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47726postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47727finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47728finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
47729hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
47730sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47731sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47732hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
47733enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
47734enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
47735enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
47736old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
47737striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
47738compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
47739predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47740postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47741predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
47742postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
47743compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
47744LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47745old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47746compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47747GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47748lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47749lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47750lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47751lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47752lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47753archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47754enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47755export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47756whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47757compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47758old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47759old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47760archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47761archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47762module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47763module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47764with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47765allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47766no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47767hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47768hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47769hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47770hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47771hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47772hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47773hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47774hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47775inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47776link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47777fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47778always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47779export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47780exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47781include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47782prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47783file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47784hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47785compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47786predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47787postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47788predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47789postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47790compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47791
47792LTCC='$LTCC'
47793LTCFLAGS='$LTCFLAGS'
47794compiler='$compiler_DEFAULT'
47795
47796# Quote evaled strings.
47797for var in SED \
47798GREP \
47799EGREP \
47800FGREP \
47801LD \
47802NM \
47803LN_S \
47804lt_SP2NL \
47805lt_NL2SP \
47806reload_flag \
47807deplibs_check_method \
47808file_magic_cmd \
47809AR \
47810AR_FLAGS \
47811STRIP \
47812RANLIB \
47813CC \
47814CFLAGS \
47815compiler \
47816lt_cv_sys_global_symbol_pipe \
47817lt_cv_sys_global_symbol_to_cdecl \
47818lt_cv_sys_global_symbol_to_c_name_address \
47819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47820SHELL \
47821ECHO \
47822lt_prog_compiler_no_builtin_flag \
47823lt_prog_compiler_wl \
47824lt_prog_compiler_pic \
47825lt_prog_compiler_static \
47826lt_cv_prog_compiler_c_o \
47827need_locks \
47828DSYMUTIL \
47829NMEDIT \
47830LIPO \
47831OTOOL \
47832OTOOL64 \
47833shrext_cmds \
47834export_dynamic_flag_spec \
47835whole_archive_flag_spec \
47836compiler_needs_object \
47837with_gnu_ld \
47838allow_undefined_flag \
47839no_undefined_flag \
47840hardcode_libdir_flag_spec \
47841hardcode_libdir_flag_spec_ld \
47842hardcode_libdir_separator \
47843fix_srcfile_path \
47844exclude_expsyms \
47845include_expsyms \
47846file_list_spec \
47847variables_saved_for_relink \
47848libname_spec \
47849library_names_spec \
47850soname_spec \
47851finish_eval \
47852old_striplib \
47853striplib \
47854compiler_lib_search_dirs \
47855predep_objects \
47856postdep_objects \
47857predeps \
47858postdeps \
47859compiler_lib_search_path \
47860LD_CXX \
47861compiler_CXX \
47862lt_prog_compiler_no_builtin_flag_CXX \
47863lt_prog_compiler_wl_CXX \
47864lt_prog_compiler_pic_CXX \
47865lt_prog_compiler_static_CXX \
47866lt_cv_prog_compiler_c_o_CXX \
47867export_dynamic_flag_spec_CXX \
47868whole_archive_flag_spec_CXX \
47869compiler_needs_object_CXX \
47870with_gnu_ld_CXX \
47871allow_undefined_flag_CXX \
47872no_undefined_flag_CXX \
47873hardcode_libdir_flag_spec_CXX \
47874hardcode_libdir_flag_spec_ld_CXX \
47875hardcode_libdir_separator_CXX \
47876fix_srcfile_path_CXX \
47877exclude_expsyms_CXX \
47878include_expsyms_CXX \
47879file_list_spec_CXX \
47880compiler_lib_search_dirs_CXX \
47881predep_objects_CXX \
47882postdep_objects_CXX \
47883predeps_CXX \
47884postdeps_CXX \
47885compiler_lib_search_path_CXX; do
47886 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47887 *[\\\\\\\`\\"\\\$]*)
47888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47889 ;;
47890 *)
47891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47892 ;;
47893 esac
47894done
47895
47896# Double-quote double-evaled strings.
47897for var in reload_cmds \
47898old_postinstall_cmds \
47899old_postuninstall_cmds \
47900old_archive_cmds \
47901extract_expsyms_cmds \
47902old_archive_from_new_cmds \
47903old_archive_from_expsyms_cmds \
47904archive_cmds \
47905archive_expsym_cmds \
47906module_cmds \
47907module_expsym_cmds \
47908export_symbols_cmds \
47909prelink_cmds \
47910postinstall_cmds \
47911postuninstall_cmds \
47912finish_cmds \
47913sys_lib_search_path_spec \
47914sys_lib_dlsearch_path_spec \
47915old_archive_cmds_CXX \
47916old_archive_from_new_cmds_CXX \
47917old_archive_from_expsyms_cmds_CXX \
47918archive_cmds_CXX \
47919archive_expsym_cmds_CXX \
47920module_cmds_CXX \
47921module_expsym_cmds_CXX \
47922export_symbols_cmds_CXX \
47923prelink_cmds_CXX; do
47924 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47925 *[\\\\\\\`\\"\\\$]*)
47926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47927 ;;
47928 *)
47929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47930 ;;
47931 esac
47932done
47933
47934# Fix-up fallback echo if it was mangled by the above quoting rules.
47935case \$lt_ECHO in
47936*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47937 ;;
47938esac
47939
47940ac_aux_dir='$ac_aux_dir'
47941xsi_shell='$xsi_shell'
47942lt_shell_append='$lt_shell_append'
47943
47944# See if we are running on zsh, and set the options which allow our
47945# commands through without removal of \ escapes INIT.
47946if test -n "\${ZSH_VERSION+set}" ; then
47947 setopt NO_GLOB_SUBST
47948fi
47949
47950
47951 PACKAGE='$PACKAGE'
47952 VERSION='$VERSION'
47953 TIMESTAMP='$TIMESTAMP'
47954 RM='$RM'
47955 ofile='$ofile'
47956
47957
47958
47959
47960
47961
47962_ACEOF
47963
47964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47965
47966# Handling of arguments.
47967for ac_config_target in $ac_config_targets
47968do
47969 case $ac_config_target in
47970 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47971 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47972 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47973 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47974 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47975 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47976 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47977 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47978 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47979 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47980 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47981 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47982 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47983 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47984 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47985 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47986 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47987 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47988 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47990 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47991 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47992 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47993 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47994 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47995 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47996 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47997 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47998 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47999 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
48000 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
48001 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
48002 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
48003 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
48004 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
48005 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
48006 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
48007 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
48008 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
48009 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
48010 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
48011 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
48012 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
48013 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
48014 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
48015 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
48016 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
48017 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
48018 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
48019
48020 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48021$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48022 { (exit 1); exit 1; }; };;
48023 esac
48024done
48025
48026
48027# If the user did not use the arguments to specify the items to instantiate,
48028# then the envvar interface is used. Set only those that are not.
48029# We use the long form for the default assignment because of an extremely
48030# bizarre bug on SunOS 4.1.3.
48031if $ac_need_defaults; then
48032 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48033 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48034 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48035fi
48036
48037# Have a temporary directory for convenience. Make it in the build tree
48038# simply because there is no reason against having it here, and in addition,
48039# creating and moving files from /tmp can sometimes cause problems.
48040# Hook for its removal unless debugging.
48041# Note that there is a small window in which the directory will not be cleaned:
48042# after its creation but before its name has been assigned to `$tmp'.
48043$debug ||
48044{
48045 tmp=
48046 trap 'exit_status=$?
48047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48048' 0
48049 trap '{ (exit 1); exit 1; }' 1 2 13 15
48050}
48051# Create a (secure) tmp directory for tmp files.
48052
48053{
48054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48055 test -n "$tmp" && test -d "$tmp"
48056} ||
48057{
48058 tmp=./conf$$-$RANDOM
48059 (umask 077 && mkdir "$tmp")
48060} ||
48061{
48062 $as_echo "$as_me: cannot create a temporary directory in ." >&2
48063 { (exit 1); exit 1; }
48064}
48065
48066# Set up the scripts for CONFIG_FILES section.
48067# No need to generate them if there are no CONFIG_FILES.
48068# This happens for instance with `./config.status config.h'.
48069if test -n "$CONFIG_FILES"; then
48070
48071
48072ac_cr=' '
48073ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48074if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48075 ac_cs_awk_cr='\\r'
48076else
48077 ac_cs_awk_cr=$ac_cr
48078fi
48079
48080echo 'BEGIN {' >"$tmp/subs1.awk" &&
48081_ACEOF
48082
48083
48084{
48085 echo "cat >conf$$subs.awk <<_ACEOF" &&
48086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48087 echo "_ACEOF"
48088} >conf$$subs.sh ||
48089 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48090$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48091 { (exit 1); exit 1; }; }
48092ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48093ac_delim='%!_!# '
48094for ac_last_try in false false false false false :; do
48095 . ./conf$$subs.sh ||
48096 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48097$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48098 { (exit 1); exit 1; }; }
48099
48100 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48101 if test $ac_delim_n = $ac_delim_num; then
48102 break
48103 elif $ac_last_try; then
48104 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48105$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48106 { (exit 1); exit 1; }; }
48107 else
48108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48109 fi
48110done
48111rm -f conf$$subs.sh
48112
48113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48114cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48115_ACEOF
48116sed -n '
48117h
48118s/^/S["/; s/!.*/"]=/
48119p
48120g
48121s/^[^!]*!//
48122:repl
48123t repl
48124s/'"$ac_delim"'$//
48125t delim
48126:nl
48127h
48128s/\(.\{148\}\).*/\1/
48129t more1
48130s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48131p
48132n
48133b repl
48134:more1
48135s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48136p
48137g
48138s/.\{148\}//
48139t nl
48140:delim
48141h
48142s/\(.\{148\}\).*/\1/
48143t more2
48144s/["\\]/\\&/g; s/^/"/; s/$/"/
48145p
48146b
48147:more2
48148s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48149p
48150g
48151s/.\{148\}//
48152t delim
48153' <conf$$subs.awk | sed '
48154/^[^""]/{
48155 N
48156 s/\n//
48157}
48158' >>$CONFIG_STATUS || ac_write_fail=1
48159rm -f conf$$subs.awk
48160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48161_ACAWK
48162cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48163 for (key in S) S_is_set[key] = 1
48164 FS = ""
48165
48166}
48167{
48168 line = $ 0
48169 nfields = split(line, field, "@")
48170 substed = 0
48171 len = length(field[1])
48172 for (i = 2; i < nfields; i++) {
48173 key = field[i]
48174 keylen = length(key)
48175 if (S_is_set[key]) {
48176 value = S[key]
48177 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48178 len += length(value) + length(field[++i])
48179 substed = 1
48180 } else
48181 len += 1 + keylen
48182 }
48183
48184 print line
48185}
48186
48187_ACAWK
48188_ACEOF
48189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48190if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48191 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48192else
48193 cat
48194fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48195 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48196$as_echo "$as_me: error: could not setup config files machinery" >&2;}
48197 { (exit 1); exit 1; }; }
48198_ACEOF
48199
48200# VPATH may cause trouble with some makes, so we remove $(srcdir),
48201# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48202# trailing colons and then remove the whole line if VPATH becomes empty
48203# (actually we leave an empty line to preserve line numbers).
48204if test "x$srcdir" = x.; then
48205 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48206s/:*\$(srcdir):*/:/
48207s/:*\${srcdir}:*/:/
48208s/:*@srcdir@:*/:/
48209s/^\([^=]*=[ ]*\):*/\1/
48210s/:*$//
48211s/^[^=]*=[ ]*$//
48212}'
48213fi
48214
48215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48216fi # test -n "$CONFIG_FILES"
48217
48218# Set up the scripts for CONFIG_HEADERS section.
48219# No need to generate them if there are no CONFIG_HEADERS.
48220# This happens for instance with `./config.status Makefile'.
48221if test -n "$CONFIG_HEADERS"; then
48222cat >"$tmp/defines.awk" <<\_ACAWK ||
48223BEGIN {
48224_ACEOF
48225
48226# Transform confdefs.h into an awk script `defines.awk', embedded as
48227# here-document in config.status, that substitutes the proper values into
48228# config.h.in to produce config.h.
48229
48230# Create a delimiter string that does not exist in confdefs.h, to ease
48231# handling of long lines.
48232ac_delim='%!_!# '
48233for ac_last_try in false false :; do
48234 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48235 if test -z "$ac_t"; then
48236 break
48237 elif $ac_last_try; then
48238 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
48239$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
48240 { (exit 1); exit 1; }; }
48241 else
48242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48243 fi
48244done
48245
48246# For the awk script, D is an array of macro values keyed by name,
48247# likewise P contains macro parameters if any. Preserve backslash
48248# newline sequences.
48249
48250ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48251sed -n '
48252s/.\{148\}/&'"$ac_delim"'/g
48253t rset
48254:rset
48255s/^[ ]*#[ ]*define[ ][ ]*/ /
48256t def
48257d
48258:def
48259s/\\$//
48260t bsnl
48261s/["\\]/\\&/g
48262s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48263D["\1"]=" \3"/p
48264s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48265d
48266:bsnl
48267s/["\\]/\\&/g
48268s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48269D["\1"]=" \3\\\\\\n"\\/p
48270t cont
48271s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48272t cont
48273d
48274:cont
48275n
48276s/.\{148\}/&'"$ac_delim"'/g
48277t clear
48278:clear
48279s/\\$//
48280t bsnlc
48281s/["\\]/\\&/g; s/^/"/; s/$/"/p
48282d
48283:bsnlc
48284s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48285b cont
48286' <confdefs.h | sed '
48287s/'"$ac_delim"'/"\\\
48288"/g' >>$CONFIG_STATUS || ac_write_fail=1
48289
48290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48291 for (key in D) D_is_set[key] = 1
48292 FS = ""
48293}
48294/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48295 line = \$ 0
48296 split(line, arg, " ")
48297 if (arg[1] == "#") {
48298 defundef = arg[2]
48299 mac1 = arg[3]
48300 } else {
48301 defundef = substr(arg[1], 2)
48302 mac1 = arg[2]
48303 }
48304 split(mac1, mac2, "(") #)
48305 macro = mac2[1]
48306 prefix = substr(line, 1, index(line, defundef) - 1)
48307 if (D_is_set[macro]) {
48308 # Preserve the white space surrounding the "#".
48309 print prefix "define", macro P[macro] D[macro]
48310 next
48311 } else {
48312 # Replace #undef with comments. This is necessary, for example,
48313 # in the case of _POSIX_SOURCE, which is predefined and required
48314 # on some systems where configure will not decide to define it.
48315 if (defundef == "undef") {
48316 print "/*", prefix defundef, macro, "*/"
48317 next
48318 }
48319 }
48320}
48321{ print }
48322_ACAWK
48323_ACEOF
48324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48325 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48326$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48327 { (exit 1); exit 1; }; }
48328fi # test -n "$CONFIG_HEADERS"
48329
48330
48331eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48332shift
48333for ac_tag
48334do
48335 case $ac_tag in
48336 :[FHLC]) ac_mode=$ac_tag; continue;;
48337 esac
48338 case $ac_mode$ac_tag in
48339 :[FHL]*:*);;
48340 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48341$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48342 { (exit 1); exit 1; }; };;
48343 :[FH]-) ac_tag=-:-;;
48344 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48345 esac
48346 ac_save_IFS=$IFS
48347 IFS=:
48348 set x $ac_tag
48349 IFS=$ac_save_IFS
48350 shift
48351 ac_file=$1
48352 shift
48353
48354 case $ac_mode in
48355 :L) ac_source=$1;;
48356 :[FH])
48357 ac_file_inputs=
48358 for ac_f
48359 do
48360 case $ac_f in
48361 -) ac_f="$tmp/stdin";;
48362 *) # Look for the file first in the build tree, then in the source tree
48363 # (if the path is not absolute). The absolute path cannot be DOS-style,
48364 # because $ac_f cannot contain `:'.
48365 test -f "$ac_f" ||
48366 case $ac_f in
48367 [\\/$]*) false;;
48368 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48369 esac ||
48370 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48371$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48372 { (exit 1); exit 1; }; };;
48373 esac
48374 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48375 ac_file_inputs="$ac_file_inputs '$ac_f'"
48376 done
48377
48378 # Let's still pretend it is `configure' which instantiates (i.e., don't
48379 # use $as_me), people would be surprised to read:
48380 # /* config.h. Generated by config.status. */
48381 configure_input='Generated from '`
48382 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48383 `' by configure.'
48384 if test x"$ac_file" != x-; then
48385 configure_input="$ac_file. $configure_input"
48386 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
48387$as_echo "$as_me: creating $ac_file" >&6;}
48388 fi
48389 # Neutralize special characters interpreted by sed in replacement strings.
48390 case $configure_input in #(
48391 *\&* | *\|* | *\\* )
48392 ac_sed_conf_input=`$as_echo "$configure_input" |
48393 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48394 *) ac_sed_conf_input=$configure_input;;
48395 esac
48396
48397 case $ac_tag in
48398 *:-:* | *:-) cat >"$tmp/stdin" \
48399 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48400$as_echo "$as_me: error: could not create $ac_file" >&2;}
48401 { (exit 1); exit 1; }; } ;;
48402 esac
48403 ;;
48404 esac
48405
48406 ac_dir=`$as_dirname -- "$ac_file" ||
48407$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48408 X"$ac_file" : 'X\(//\)[^/]' \| \
48409 X"$ac_file" : 'X\(//\)$' \| \
48410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48411$as_echo X"$ac_file" |
48412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48413 s//\1/
48414 q
48415 }
48416 /^X\(\/\/\)[^/].*/{
48417 s//\1/
48418 q
48419 }
48420 /^X\(\/\/\)$/{
48421 s//\1/
48422 q
48423 }
48424 /^X\(\/\).*/{
48425 s//\1/
48426 q
48427 }
48428 s/.*/./; q'`
48429 { as_dir="$ac_dir"
48430 case $as_dir in #(
48431 -*) as_dir=./$as_dir;;
48432 esac
48433 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48434 as_dirs=
48435 while :; do
48436 case $as_dir in #(
48437 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48438 *) as_qdir=$as_dir;;
48439 esac
48440 as_dirs="'$as_qdir' $as_dirs"
48441 as_dir=`$as_dirname -- "$as_dir" ||
48442$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48443 X"$as_dir" : 'X\(//\)[^/]' \| \
48444 X"$as_dir" : 'X\(//\)$' \| \
48445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48446$as_echo X"$as_dir" |
48447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48448 s//\1/
48449 q
48450 }
48451 /^X\(\/\/\)[^/].*/{
48452 s//\1/
48453 q
48454 }
48455 /^X\(\/\/\)$/{
48456 s//\1/
48457 q
48458 }
48459 /^X\(\/\).*/{
48460 s//\1/
48461 q
48462 }
48463 s/.*/./; q'`
48464 test -d "$as_dir" && break
48465 done
48466 test -z "$as_dirs" || eval "mkdir $as_dirs"
48467 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48468$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48469 { (exit 1); exit 1; }; }; }
48470 ac_builddir=.
48471
48472case "$ac_dir" in
48473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48474*)
48475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48476 # A ".." for each directory in $ac_dir_suffix.
48477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48478 case $ac_top_builddir_sub in
48479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48481 esac ;;
48482esac
48483ac_abs_top_builddir=$ac_pwd
48484ac_abs_builddir=$ac_pwd$ac_dir_suffix
48485# for backward compatibility:
48486ac_top_builddir=$ac_top_build_prefix
48487
48488case $srcdir in
48489 .) # We are building in place.
48490 ac_srcdir=.
48491 ac_top_srcdir=$ac_top_builddir_sub
48492 ac_abs_top_srcdir=$ac_pwd ;;
48493 [\\/]* | ?:[\\/]* ) # Absolute name.
48494 ac_srcdir=$srcdir$ac_dir_suffix;
48495 ac_top_srcdir=$srcdir
48496 ac_abs_top_srcdir=$srcdir ;;
48497 *) # Relative name.
48498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48499 ac_top_srcdir=$ac_top_build_prefix$srcdir
48500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48501esac
48502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48503
48504
48505 case $ac_mode in
48506 :F)
48507 #
48508 # CONFIG_FILE
48509 #
48510
48511 case $INSTALL in
48512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48514 esac
48515 ac_MKDIR_P=$MKDIR_P
48516 case $MKDIR_P in
48517 [\\/$]* | ?:[\\/]* ) ;;
48518 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48519 esac
48520_ACEOF
48521
48522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48523# If the template does not know about datarootdir, expand it.
48524# FIXME: This hack should be removed a few years after 2.60.
48525ac_datarootdir_hack=; ac_datarootdir_seen=
48526
48527ac_sed_dataroot='
48528/datarootdir/ {
48529 p
48530 q
48531}
48532/@datadir@/p
48533/@docdir@/p
48534/@infodir@/p
48535/@localedir@/p
48536/@mandir@/p
48537'
48538case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48539*datarootdir*) ac_datarootdir_seen=yes;;
48540*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48541 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48542$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48543_ACEOF
48544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48545 ac_datarootdir_hack='
48546 s&@datadir@&$datadir&g
48547 s&@docdir@&$docdir&g
48548 s&@infodir@&$infodir&g
48549 s&@localedir@&$localedir&g
48550 s&@mandir@&$mandir&g
48551 s&\\\${datarootdir}&$datarootdir&g' ;;
48552esac
48553_ACEOF
48554
48555# Neutralize VPATH when `$srcdir' = `.'.
48556# Shell code in configure.ac might set extrasub.
48557# FIXME: do we really want to maintain this feature?
48558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48559ac_sed_extra="$ac_vpsub
48560$extrasub
48561_ACEOF
48562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48563:t
48564/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48565s|@configure_input@|$ac_sed_conf_input|;t t
48566s&@top_builddir@&$ac_top_builddir_sub&;t t
48567s&@top_build_prefix@&$ac_top_build_prefix&;t t
48568s&@srcdir@&$ac_srcdir&;t t
48569s&@abs_srcdir@&$ac_abs_srcdir&;t t
48570s&@top_srcdir@&$ac_top_srcdir&;t t
48571s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48572s&@builddir@&$ac_builddir&;t t
48573s&@abs_builddir@&$ac_abs_builddir&;t t
48574s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48575s&@INSTALL@&$ac_INSTALL&;t t
48576s&@MKDIR_P@&$ac_MKDIR_P&;t t
48577$ac_datarootdir_hack
48578"
48579eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
48580 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48581$as_echo "$as_me: error: could not create $ac_file" >&2;}
48582 { (exit 1); exit 1; }; }
48583
48584test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
48586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
48587 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48588which seems to be undefined. Please make sure it is defined." >&5
48589$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48590which seems to be undefined. Please make sure it is defined." >&2;}
48591
48592 rm -f "$tmp/stdin"
48593 case $ac_file in
48594 -) cat "$tmp/out" && rm -f "$tmp/out";;
48595 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
48596 esac \
48597 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48598$as_echo "$as_me: error: could not create $ac_file" >&2;}
48599 { (exit 1); exit 1; }; }
48600 ;;
48601 :H)
48602 #
48603 # CONFIG_HEADER
48604 #
48605 if test x"$ac_file" != x-; then
48606 {
48607 $as_echo "/* $configure_input */" \
48608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
48609 } >"$tmp/config.h" \
48610 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48611$as_echo "$as_me: error: could not create $ac_file" >&2;}
48612 { (exit 1); exit 1; }; }
48613 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
48614 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48615$as_echo "$as_me: $ac_file is unchanged" >&6;}
48616 else
48617 rm -f "$ac_file"
48618 mv "$tmp/config.h" "$ac_file" \
48619 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48620$as_echo "$as_me: error: could not create $ac_file" >&2;}
48621 { (exit 1); exit 1; }; }
48622 fi
48623 else
48624 $as_echo "/* $configure_input */" \
48625 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
48626 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
48627$as_echo "$as_me: error: could not create -" >&2;}
48628 { (exit 1); exit 1; }; }
48629 fi
48630# Compute "$ac_file"'s index in $config_headers.
48631_am_arg="$ac_file"
48632_am_stamp_count=1
48633for _am_header in $config_headers :; do
48634 case $_am_header in
48635 $_am_arg | $_am_arg:* )
48636 break ;;
48637 * )
48638 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48639 esac
48640done
48641echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48642$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48643 X"$_am_arg" : 'X\(//\)[^/]' \| \
48644 X"$_am_arg" : 'X\(//\)$' \| \
48645 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48646$as_echo X"$_am_arg" |
48647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48648 s//\1/
48649 q
48650 }
48651 /^X\(\/\/\)[^/].*/{
48652 s//\1/
48653 q
48654 }
48655 /^X\(\/\/\)$/{
48656 s//\1/
48657 q
48658 }
48659 /^X\(\/\).*/{
48660 s//\1/
48661 q
48662 }
48663 s/.*/./; q'`/stamp-h$_am_stamp_count
48664 ;;
48665
48666 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
48667$as_echo "$as_me: executing $ac_file commands" >&6;}
48668 ;;
48669 esac
48670
48671
48672 case $ac_file$ac_mode in
48673 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
48674ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
48675ac_prefix_conf_PKG=`echo MagickCore`
48676ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
48677ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
48678ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
48679if test ".$ac_prefix_conf_INP" = "."; then
48680 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
48681 case "$ac_file" in
48682 *.h) ac_prefix_conf_INP=$ac_file ;;
48683 *)
48684 esac
48685 test ".$ac_prefix_conf_INP" != "." && break
48686 done
48687fi
48688if test ".$ac_prefix_conf_INP" = "."; then
48689 case "$ac_prefix_conf_OUT" in
48690 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
48691 ;;
48692 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
48693 ;;
48694 *) ac_prefix_conf_INP=config.h
48695 ;;
48696 esac
48697fi
48698if test -z "$ac_prefix_conf_PKG" ; then
48699 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
48700$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
48701 { (exit 1); exit 1; }; }
48702else
48703 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
48704 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
48705 fi fi
48706 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
48707$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
48708 if test -f $ac_prefix_conf_INP ; then
48709 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
48710 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
48711 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
48712 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
48713 echo "#endif/" >>conftest.prefix
48714 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
48715 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
48716 echo "#endif/" >> conftest.prefix
48717 # now executing _script on _DEF input to create _OUT output file
48718 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
48719 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
48720 echo ' ' >>$tmp/pconfig.h
48721 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
48722
48723 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
48724 echo ' ' >>$tmp/pconfig.h
48725 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
48726 echo "#endif" >>$tmp/pconfig.h
48727 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
48728 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
48729$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
48730 else
48731 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
48732$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48733 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
48734 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
48735 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
48736$as_echo X"$ac_prefix_conf_OUT" |
48737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48738 s//\1/
48739 q
48740 }
48741 /^X\(\/\/\)[^/].*/{
48742 s//\1/
48743 q
48744 }
48745 /^X\(\/\/\)$/{
48746 s//\1/
48747 q
48748 }
48749 /^X\(\/\).*/{
48750 s//\1/
48751 q
48752 }
48753 s/.*/./; q'`
48754 { as_dir="$ac_dir"
48755 case $as_dir in #(
48756 -*) as_dir=./$as_dir;;
48757 esac
48758 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48759 as_dirs=
48760 while :; do
48761 case $as_dir in #(
48762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48763 *) as_qdir=$as_dir;;
48764 esac
48765 as_dirs="'$as_qdir' $as_dirs"
48766 as_dir=`$as_dirname -- "$as_dir" ||
48767$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48768 X"$as_dir" : 'X\(//\)[^/]' \| \
48769 X"$as_dir" : 'X\(//\)$' \| \
48770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48771$as_echo X"$as_dir" |
48772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48773 s//\1/
48774 q
48775 }
48776 /^X\(\/\/\)[^/].*/{
48777 s//\1/
48778 q
48779 }
48780 /^X\(\/\/\)$/{
48781 s//\1/
48782 q
48783 }
48784 /^X\(\/\).*/{
48785 s//\1/
48786 q
48787 }
48788 s/.*/./; q'`
48789 test -d "$as_dir" && break
48790 done
48791 test -z "$as_dirs" || eval "mkdir $as_dirs"
48792 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48793$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48794 { (exit 1); exit 1; }; }; }
48795 rm -f "$ac_prefix_conf_OUT"
48796 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
48797 fi
48798 cp conftest.prefix _configs.sed
48799 else
48800 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
48801$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
48802 { (exit 1); exit 1; }; }
48803 fi
48804 rm -f conftest.*
48805fi
48806 ;;
48807 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48808 # Autoconf 2.62 quotes --file arguments for eval, but not when files
48809 # are listed without --file. Let's play safe and only enable the eval
48810 # if we detect the quoting.
48811 case $CONFIG_FILES in
48812 *\'*) eval set x "$CONFIG_FILES" ;;
48813 *) set x $CONFIG_FILES ;;
48814 esac
48815 shift
48816 for mf
48817 do
48818 # Strip MF so we end up with the name of the file.
48819 mf=`echo "$mf" | sed -e 's/:.*$//'`
48820 # Check whether this is an Automake generated Makefile or not.
48821 # We used to match only the files named `Makefile.in', but
48822 # some people rename them; so instead we look at the file content.
48823 # Grep'ing the first line is not enough: some people post-process
48824 # each Makefile.in and add a new line on top of each file to say so.
48825 # Grep'ing the whole file is not good either: AIX grep has a line
48826 # limit of 2048, but all sed's we know have understand at least 4000.
48827 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
48828 dirpart=`$as_dirname -- "$mf" ||
48829$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48830 X"$mf" : 'X\(//\)[^/]' \| \
48831 X"$mf" : 'X\(//\)$' \| \
48832 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
48833$as_echo X"$mf" |
48834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48835 s//\1/
48836 q
48837 }
48838 /^X\(\/\/\)[^/].*/{
48839 s//\1/
48840 q
48841 }
48842 /^X\(\/\/\)$/{
48843 s//\1/
48844 q
48845 }
48846 /^X\(\/\).*/{
48847 s//\1/
48848 q
48849 }
48850 s/.*/./; q'`
48851 else
48852 continue
48853 fi
48854 # Extract the definition of DEPDIR, am__include, and am__quote
48855 # from the Makefile without running `make'.
48856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48857 test -z "$DEPDIR" && continue
48858 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48859 test -z "am__include" && continue
48860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48861 # When using ansi2knr, U may be empty or an underscore; expand it
48862 U=`sed -n 's/^U = //p' < "$mf"`
48863 # Find all dependency output files, they are included files with
48864 # $(DEPDIR) in their names. We invoke sed twice because it is the
48865 # simplest approach to changing $(DEPDIR) to its actual value in the
48866 # expansion.
48867 for file in `sed -n "
48868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48870 # Make sure the directory exists.
48871 test -f "$dirpart/$file" && continue
48872 fdir=`$as_dirname -- "$file" ||
48873$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48874 X"$file" : 'X\(//\)[^/]' \| \
48875 X"$file" : 'X\(//\)$' \| \
48876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48877$as_echo X"$file" |
48878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48879 s//\1/
48880 q
48881 }
48882 /^X\(\/\/\)[^/].*/{
48883 s//\1/
48884 q
48885 }
48886 /^X\(\/\/\)$/{
48887 s//\1/
48888 q
48889 }
48890 /^X\(\/\).*/{
48891 s//\1/
48892 q
48893 }
48894 s/.*/./; q'`
48895 { as_dir=$dirpart/$fdir
48896 case $as_dir in #(
48897 -*) as_dir=./$as_dir;;
48898 esac
48899 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48900 as_dirs=
48901 while :; do
48902 case $as_dir in #(
48903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48904 *) as_qdir=$as_dir;;
48905 esac
48906 as_dirs="'$as_qdir' $as_dirs"
48907 as_dir=`$as_dirname -- "$as_dir" ||
48908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48909 X"$as_dir" : 'X\(//\)[^/]' \| \
48910 X"$as_dir" : 'X\(//\)$' \| \
48911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48912$as_echo X"$as_dir" |
48913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48914 s//\1/
48915 q
48916 }
48917 /^X\(\/\/\)[^/].*/{
48918 s//\1/
48919 q
48920 }
48921 /^X\(\/\/\)$/{
48922 s//\1/
48923 q
48924 }
48925 /^X\(\/\).*/{
48926 s//\1/
48927 q
48928 }
48929 s/.*/./; q'`
48930 test -d "$as_dir" && break
48931 done
48932 test -z "$as_dirs" || eval "mkdir $as_dirs"
48933 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48934$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48935 { (exit 1); exit 1; }; }; }
48936 # echo "creating $dirpart/$file"
48937 echo '# dummy' > "$dirpart/$file"
48938 done
48939 done
48940}
48941 ;;
48942 "libtool":C)
48943
48944 # See if we are running on zsh, and set the options which allow our
48945 # commands through without removal of \ escapes.
48946 if test -n "${ZSH_VERSION+set}" ; then
48947 setopt NO_GLOB_SUBST
48948 fi
48949
48950 cfgfile="${ofile}T"
48951 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48952 $RM "$cfgfile"
48953
48954 cat <<_LT_EOF >> "$cfgfile"
48955#! $SHELL
48956
48957# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48958# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48959# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48960# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48961#
48962# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48963# 2006, 2007, 2008 Free Software Foundation, Inc.
48964# Written by Gordon Matzigkeit, 1996
48965#
48966# This file is part of GNU Libtool.
48967#
48968# GNU Libtool is free software; you can redistribute it and/or
48969# modify it under the terms of the GNU General Public License as
48970# published by the Free Software Foundation; either version 2 of
48971# the License, or (at your option) any later version.
48972#
48973# As a special exception to the GNU General Public License,
48974# if you distribute this file as part of a program or library that
48975# is built using GNU Libtool, you may include this file under the
48976# same distribution terms that you use for the rest of that program.
48977#
48978# GNU Libtool is distributed in the hope that it will be useful,
48979# but WITHOUT ANY WARRANTY; without even the implied warranty of
48980# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48981# GNU General Public License for more details.
48982#
48983# You should have received a copy of the GNU General Public License
48984# along with GNU Libtool; see the file COPYING. If not, a copy
48985# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48986# obtained by writing to the Free Software Foundation, Inc.,
48987# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48988
48989
48990# The names of the tagged configurations supported by this script.
48991available_tags="CXX "
48992
48993# ### BEGIN LIBTOOL CONFIG
48994
48995# A sed program that does not truncate output.
48996SED=$lt_SED
48997
48998# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48999Xsed="\$SED -e 1s/^X//"
49000
49001# A grep program that handles long lines.
49002GREP=$lt_GREP
49003
49004# An ERE matcher.
49005EGREP=$lt_EGREP
49006
49007# A literal string matcher.
49008FGREP=$lt_FGREP
49009
49010# Which release of libtool.m4 was used?
49011macro_version=$macro_version
49012macro_revision=$macro_revision
49013
49014# Assembler program.
49015AS=$AS
49016
49017# DLL creation program.
49018DLLTOOL=$DLLTOOL
49019
49020# Object dumper program.
49021OBJDUMP=$OBJDUMP
49022
49023# Whether or not to build shared libraries.
49024build_libtool_libs=$enable_shared
49025
49026# Whether or not to build static libraries.
49027build_old_libs=$enable_static
49028
49029# What type of objects to build.
49030pic_mode=$pic_mode
49031
49032# Whether or not to optimize for fast installation.
49033fast_install=$enable_fast_install
49034
49035# The host system.
49036host_alias=$host_alias
49037host=$host
49038host_os=$host_os
49039
49040# The build system.
49041build_alias=$build_alias
49042build=$build
49043build_os=$build_os
49044
49045# A BSD- or MS-compatible name lister.
49046NM=$lt_NM
49047
49048# Whether we need soft or hard links.
49049LN_S=$lt_LN_S
49050
49051# What is the maximum length of a command?
49052max_cmd_len=$max_cmd_len
49053
49054# Object file suffix (normally "o").
49055objext=$ac_objext
49056
49057# Executable file suffix (normally "").
49058exeext=$exeext
49059
49060# whether the shell understands "unset".
49061lt_unset=$lt_unset
49062
49063# turn spaces into newlines.
49064SP2NL=$lt_lt_SP2NL
49065
49066# turn newlines into spaces.
49067NL2SP=$lt_lt_NL2SP
49068
49069# How to create reloadable object files.
49070reload_flag=$lt_reload_flag
49071reload_cmds=$lt_reload_cmds
49072
49073# Method to check whether dependent libraries are shared objects.
49074deplibs_check_method=$lt_deplibs_check_method
49075
49076# Command to use when deplibs_check_method == "file_magic".
49077file_magic_cmd=$lt_file_magic_cmd
49078
49079# The archiver.
49080AR=$lt_AR
49081AR_FLAGS=$lt_AR_FLAGS
49082
49083# A symbol stripping program.
49084STRIP=$lt_STRIP
49085
49086# Commands used to install an old-style archive.
49087RANLIB=$lt_RANLIB
49088old_postinstall_cmds=$lt_old_postinstall_cmds
49089old_postuninstall_cmds=$lt_old_postuninstall_cmds
49090
49091# A C compiler.
49092LTCC=$lt_CC
49093
49094# LTCC compiler flags.
49095LTCFLAGS=$lt_CFLAGS
49096
49097# Take the output of nm and produce a listing of raw symbols and C names.
49098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49099
49100# Transform the output of nm in a proper C declaration.
49101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49102
49103# Transform the output of nm in a C name address pair.
49104global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49105
49106# Transform the output of nm in a C name address pair when lib prefix is needed.
49107global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49108
49109# The name of the directory that contains temporary libtool files.
49110objdir=$objdir
49111
49112# Shell to use when invoking shell scripts.
49113SHELL=$lt_SHELL
49114
49115# An echo program that does not interpret backslashes.
49116ECHO=$lt_ECHO
49117
49118# Used to examine libraries when file_magic_cmd begins with "file".
49119MAGIC_CMD=$MAGIC_CMD
49120
49121# Must we lock files when doing compilation?
49122need_locks=$lt_need_locks
49123
49124# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49125DSYMUTIL=$lt_DSYMUTIL
49126
49127# Tool to change global to local symbols on Mac OS X.
49128NMEDIT=$lt_NMEDIT
49129
49130# Tool to manipulate fat objects and archives on Mac OS X.
49131LIPO=$lt_LIPO
49132
49133# ldd/readelf like tool for Mach-O binaries on Mac OS X.
49134OTOOL=$lt_OTOOL
49135
49136# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49137OTOOL64=$lt_OTOOL64
49138
49139# Old archive suffix (normally "a").
49140libext=$libext
49141
49142# Shared library suffix (normally ".so").
49143shrext_cmds=$lt_shrext_cmds
49144
49145# The commands to extract the exported symbol list from a shared archive.
49146extract_expsyms_cmds=$lt_extract_expsyms_cmds
49147
49148# Variables whose values should be saved in libtool wrapper scripts and
49149# restored at link time.
49150variables_saved_for_relink=$lt_variables_saved_for_relink
49151
49152# Do we need the "lib" prefix for modules?
49153need_lib_prefix=$need_lib_prefix
49154
49155# Do we need a version for libraries?
49156need_version=$need_version
49157
49158# Library versioning type.
49159version_type=$version_type
49160
49161# Shared library runtime path variable.
49162runpath_var=$runpath_var
49163
49164# Shared library path variable.
49165shlibpath_var=$shlibpath_var
49166
49167# Is shlibpath searched before the hard-coded library search path?
49168shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49169
49170# Format of library name prefix.
49171libname_spec=$lt_libname_spec
49172
49173# List of archive names. First name is the real one, the rest are links.
49174# The last name is the one that the linker finds with -lNAME
49175library_names_spec=$lt_library_names_spec
49176
49177# The coded name of the library, if different from the real name.
49178soname_spec=$lt_soname_spec
49179
49180# Command to use after installation of a shared archive.
49181postinstall_cmds=$lt_postinstall_cmds
49182
49183# Command to use after uninstallation of a shared archive.
49184postuninstall_cmds=$lt_postuninstall_cmds
49185
49186# Commands used to finish a libtool library installation in a directory.
49187finish_cmds=$lt_finish_cmds
49188
49189# As "finish_cmds", except a single script fragment to be evaled but
49190# not shown.
49191finish_eval=$lt_finish_eval
49192
49193# Whether we should hardcode library paths into libraries.
49194hardcode_into_libs=$hardcode_into_libs
49195
49196# Compile-time system search path for libraries.
49197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49198
49199# Run-time system search path for libraries.
49200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49201
49202# Whether dlopen is supported.
49203dlopen_support=$enable_dlopen
49204
49205# Whether dlopen of programs is supported.
49206dlopen_self=$enable_dlopen_self
49207
49208# Whether dlopen of statically linked programs is supported.
49209dlopen_self_static=$enable_dlopen_self_static
49210
49211# Commands to strip libraries.
49212old_striplib=$lt_old_striplib
49213striplib=$lt_striplib
49214
49215
49216# The linker used to build libraries.
49217LD=$lt_LD
49218
49219# Commands used to build an old-style archive.
49220old_archive_cmds=$lt_old_archive_cmds
49221
49222# A language specific compiler.
49223CC=$lt_compiler
49224
49225# Is the compiler the GNU compiler?
49226with_gcc=$GCC
49227
49228# Compiler flag to turn off builtin functions.
49229no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49230
49231# How to pass a linker flag through the compiler.
49232wl=$lt_lt_prog_compiler_wl
49233
49234# Additional compiler flags for building library objects.
49235pic_flag=$lt_lt_prog_compiler_pic
49236
49237# Compiler flag to prevent dynamic linking.
49238link_static_flag=$lt_lt_prog_compiler_static
49239
49240# Does compiler simultaneously support -c and -o options?
49241compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49242
49243# Whether or not to add -lc for building shared libraries.
49244build_libtool_need_lc=$archive_cmds_need_lc
49245
49246# Whether or not to disallow shared libs when runtime libs are static.
49247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49248
49249# Compiler flag to allow reflexive dlopens.
49250export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49251
49252# Compiler flag to generate shared objects directly from archives.
49253whole_archive_flag_spec=$lt_whole_archive_flag_spec
49254
49255# Whether the compiler copes with passing no objects directly.
49256compiler_needs_object=$lt_compiler_needs_object
49257
49258# Create an old-style archive from a shared archive.
49259old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49260
49261# Create a temporary old-style archive to link instead of a shared archive.
49262old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49263
49264# Commands used to build a shared archive.
49265archive_cmds=$lt_archive_cmds
49266archive_expsym_cmds=$lt_archive_expsym_cmds
49267
49268# Commands used to build a loadable module if different from building
49269# a shared archive.
49270module_cmds=$lt_module_cmds
49271module_expsym_cmds=$lt_module_expsym_cmds
49272
49273# Whether we are building with GNU ld or not.
49274with_gnu_ld=$lt_with_gnu_ld
49275
49276# Flag that allows shared libraries with undefined symbols to be built.
49277allow_undefined_flag=$lt_allow_undefined_flag
49278
49279# Flag that enforces no undefined symbols.
49280no_undefined_flag=$lt_no_undefined_flag
49281
49282# Flag to hardcode \$libdir into a binary during linking.
49283# This must work even if \$libdir does not exist
49284hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49285
49286# If ld is used when linking, flag to hardcode \$libdir into a binary
49287# during linking. This must work even if \$libdir does not exist.
49288hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49289
49290# Whether we need a single "-rpath" flag with a separated argument.
49291hardcode_libdir_separator=$lt_hardcode_libdir_separator
49292
49293# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49294# DIR into the resulting binary.
49295hardcode_direct=$hardcode_direct
49296
49297# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49298# DIR into the resulting binary and the resulting library dependency is
49299# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49300# library is relocated.
49301hardcode_direct_absolute=$hardcode_direct_absolute
49302
49303# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49304# into the resulting binary.
49305hardcode_minus_L=$hardcode_minus_L
49306
49307# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49308# into the resulting binary.
49309hardcode_shlibpath_var=$hardcode_shlibpath_var
49310
49311# Set to "yes" if building a shared library automatically hardcodes DIR
49312# into the library and all subsequent libraries and executables linked
49313# against it.
49314hardcode_automatic=$hardcode_automatic
49315
49316# Set to yes if linker adds runtime paths of dependent libraries
49317# to runtime path list.
49318inherit_rpath=$inherit_rpath
49319
49320# Whether libtool must link a program against all its dependency libraries.
49321link_all_deplibs=$link_all_deplibs
49322
49323# Fix the shell variable \$srcfile for the compiler.
49324fix_srcfile_path=$lt_fix_srcfile_path
49325
49326# Set to "yes" if exported symbols are required.
49327always_export_symbols=$always_export_symbols
49328
49329# The commands to list exported symbols.
49330export_symbols_cmds=$lt_export_symbols_cmds
49331
49332# Symbols that should not be listed in the preloaded symbols.
49333exclude_expsyms=$lt_exclude_expsyms
49334
49335# Symbols that must always be exported.
49336include_expsyms=$lt_include_expsyms
49337
49338# Commands necessary for linking programs (against libraries) with templates.
49339prelink_cmds=$lt_prelink_cmds
49340
49341# Specify filename containing input files.
49342file_list_spec=$lt_file_list_spec
49343
49344# How to hardcode a shared library path into an executable.
49345hardcode_action=$hardcode_action
49346
49347# The directories searched by this compiler when creating a shared library.
49348compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49349
49350# Dependencies to place before and after the objects being linked to
49351# create a shared library.
49352predep_objects=$lt_predep_objects
49353postdep_objects=$lt_postdep_objects
49354predeps=$lt_predeps
49355postdeps=$lt_postdeps
49356
49357# The library search path used internally by the compiler when linking
49358# a shared library.
49359compiler_lib_search_path=$lt_compiler_lib_search_path
49360
49361# ### END LIBTOOL CONFIG
49362
49363_LT_EOF
49364
49365 case $host_os in
49366 aix3*)
49367 cat <<\_LT_EOF >> "$cfgfile"
49368# AIX sometimes has problems with the GCC collect2 program. For some
49369# reason, if we set the COLLECT_NAMES environment variable, the problems
49370# vanish in a puff of smoke.
49371if test "X${COLLECT_NAMES+set}" != Xset; then
49372 COLLECT_NAMES=
49373 export COLLECT_NAMES
49374fi
49375_LT_EOF
49376 ;;
49377 esac
49378
49379
49380ltmain="$ac_aux_dir/ltmain.sh"
49381
49382
49383 # We use sed instead of cat because bash on DJGPP gets confused if
49384 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49385 # text mode, it properly converts lines to CR/LF. This bash problem
49386 # is reportedly fixed, but why not run on old versions too?
49387 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49388 || (rm -f "$cfgfile"; exit 1)
49389
49390 case $xsi_shell in
49391 yes)
49392 cat << \_LT_EOF >> "$cfgfile"
49393
49394# func_dirname file append nondir_replacement
49395# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49396# otherwise set result to NONDIR_REPLACEMENT.
49397func_dirname ()
49398{
49399 case ${1} in
49400 */*) func_dirname_result="${1%/*}${2}" ;;
49401 * ) func_dirname_result="${3}" ;;
49402 esac
49403}
49404
49405# func_basename file
49406func_basename ()
49407{
49408 func_basename_result="${1##*/}"
49409}
49410
49411# func_dirname_and_basename file append nondir_replacement
49412# perform func_basename and func_dirname in a single function
49413# call:
49414# dirname: Compute the dirname of FILE. If nonempty,
49415# add APPEND to the result, otherwise set result
49416# to NONDIR_REPLACEMENT.
49417# value returned in "$func_dirname_result"
49418# basename: Compute filename of FILE.
49419# value retuned in "$func_basename_result"
49420# Implementation must be kept synchronized with func_dirname
49421# and func_basename. For efficiency, we do not delegate to
49422# those functions but instead duplicate the functionality here.
49423func_dirname_and_basename ()
49424{
49425 case ${1} in
49426 */*) func_dirname_result="${1%/*}${2}" ;;
49427 * ) func_dirname_result="${3}" ;;
49428 esac
49429 func_basename_result="${1##*/}"
49430}
49431
49432# func_stripname prefix suffix name
49433# strip PREFIX and SUFFIX off of NAME.
49434# PREFIX and SUFFIX must not contain globbing or regex special
49435# characters, hashes, percent signs, but SUFFIX may contain a leading
49436# dot (in which case that matches only a dot).
49437func_stripname ()
49438{
49439 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49440 # positional parameters, so assign one to ordinary parameter first.
49441 func_stripname_result=${3}
49442 func_stripname_result=${func_stripname_result#"${1}"}
49443 func_stripname_result=${func_stripname_result%"${2}"}
49444}
49445
49446# func_opt_split
49447func_opt_split ()
49448{
49449 func_opt_split_opt=${1%%=*}
49450 func_opt_split_arg=${1#*=}
49451}
49452
49453# func_lo2o object
49454func_lo2o ()
49455{
49456 case ${1} in
49457 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49458 *) func_lo2o_result=${1} ;;
49459 esac
49460}
49461
49462# func_xform libobj-or-source
49463func_xform ()
49464{
49465 func_xform_result=${1%.*}.lo
49466}
49467
49468# func_arith arithmetic-term...
49469func_arith ()
49470{
49471 func_arith_result=$(( $* ))
49472}
49473
49474# func_len string
49475# STRING may not start with a hyphen.
49476func_len ()
49477{
49478 func_len_result=${#1}
49479}
49480
49481_LT_EOF
49482 ;;
49483 *) # Bourne compatible functions.
49484 cat << \_LT_EOF >> "$cfgfile"
49485
49486# func_dirname file append nondir_replacement
49487# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49488# otherwise set result to NONDIR_REPLACEMENT.
49489func_dirname ()
49490{
49491 # Extract subdirectory from the argument.
49492 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49493 if test "X$func_dirname_result" = "X${1}"; then
49494 func_dirname_result="${3}"
49495 else
49496 func_dirname_result="$func_dirname_result${2}"
49497 fi
49498}
49499
49500# func_basename file
49501func_basename ()
49502{
49503 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49504}
49505
49506
49507# func_stripname prefix suffix name
49508# strip PREFIX and SUFFIX off of NAME.
49509# PREFIX and SUFFIX must not contain globbing or regex special
49510# characters, hashes, percent signs, but SUFFIX may contain a leading
49511# dot (in which case that matches only a dot).
49512# func_strip_suffix prefix name
49513func_stripname ()
49514{
49515 case ${2} in
49516 .*) func_stripname_result=`$ECHO "X${3}" \
49517 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49518 *) func_stripname_result=`$ECHO "X${3}" \
49519 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49520 esac
49521}
49522
49523# sed scripts:
49524my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49525my_sed_long_arg='1s/^-[^=]*=//'
49526
49527# func_opt_split
49528func_opt_split ()
49529{
49530 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49531 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49532}
49533
49534# func_lo2o object
49535func_lo2o ()
49536{
49537 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49538}
49539
49540# func_xform libobj-or-source
49541func_xform ()
49542{
49543 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49544}
49545
49546# func_arith arithmetic-term...
49547func_arith ()
49548{
49549 func_arith_result=`expr "$@"`
49550}
49551
49552# func_len string
49553# STRING may not start with a hyphen.
49554func_len ()
49555{
49556 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
49557}
49558
49559_LT_EOF
49560esac
49561
49562case $lt_shell_append in
49563 yes)
49564 cat << \_LT_EOF >> "$cfgfile"
49565
49566# func_append var value
49567# Append VALUE to the end of shell variable VAR.
49568func_append ()
49569{
49570 eval "$1+=\$2"
49571}
49572_LT_EOF
49573 ;;
49574 *)
49575 cat << \_LT_EOF >> "$cfgfile"
49576
49577# func_append var value
49578# Append VALUE to the end of shell variable VAR.
49579func_append ()
49580{
49581 eval "$1=\$$1\$2"
49582}
49583
49584_LT_EOF
49585 ;;
49586 esac
49587
49588
49589 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
49590 || (rm -f "$cfgfile"; exit 1)
49591
49592 mv -f "$cfgfile" "$ofile" ||
49593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49594 chmod +x "$ofile"
49595
49596
49597 cat <<_LT_EOF >> "$ofile"
49598
49599# ### BEGIN LIBTOOL TAG CONFIG: CXX
49600
49601# The linker used to build libraries.
49602LD=$lt_LD_CXX
49603
49604# Commands used to build an old-style archive.
49605old_archive_cmds=$lt_old_archive_cmds_CXX
49606
49607# A language specific compiler.
49608CC=$lt_compiler_CXX
49609
49610# Is the compiler the GNU compiler?
49611with_gcc=$GCC_CXX
49612
49613# Compiler flag to turn off builtin functions.
49614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
49615
49616# How to pass a linker flag through the compiler.
49617wl=$lt_lt_prog_compiler_wl_CXX
49618
49619# Additional compiler flags for building library objects.
49620pic_flag=$lt_lt_prog_compiler_pic_CXX
49621
49622# Compiler flag to prevent dynamic linking.
49623link_static_flag=$lt_lt_prog_compiler_static_CXX
49624
49625# Does compiler simultaneously support -c and -o options?
49626compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
49627
49628# Whether or not to add -lc for building shared libraries.
49629build_libtool_need_lc=$archive_cmds_need_lc_CXX
49630
49631# Whether or not to disallow shared libs when runtime libs are static.
49632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
49633
49634# Compiler flag to allow reflexive dlopens.
49635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
49636
49637# Compiler flag to generate shared objects directly from archives.
49638whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
49639
49640# Whether the compiler copes with passing no objects directly.
49641compiler_needs_object=$lt_compiler_needs_object_CXX
49642
49643# Create an old-style archive from a shared archive.
49644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
49645
49646# Create a temporary old-style archive to link instead of a shared archive.
49647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
49648
49649# Commands used to build a shared archive.
49650archive_cmds=$lt_archive_cmds_CXX
49651archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
49652
49653# Commands used to build a loadable module if different from building
49654# a shared archive.
49655module_cmds=$lt_module_cmds_CXX
49656module_expsym_cmds=$lt_module_expsym_cmds_CXX
49657
49658# Whether we are building with GNU ld or not.
49659with_gnu_ld=$lt_with_gnu_ld_CXX
49660
49661# Flag that allows shared libraries with undefined symbols to be built.
49662allow_undefined_flag=$lt_allow_undefined_flag_CXX
49663
49664# Flag that enforces no undefined symbols.
49665no_undefined_flag=$lt_no_undefined_flag_CXX
49666
49667# Flag to hardcode \$libdir into a binary during linking.
49668# This must work even if \$libdir does not exist
49669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
49670
49671# If ld is used when linking, flag to hardcode \$libdir into a binary
49672# during linking. This must work even if \$libdir does not exist.
49673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
49674
49675# Whether we need a single "-rpath" flag with a separated argument.
49676hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
49677
49678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49679# DIR into the resulting binary.
49680hardcode_direct=$hardcode_direct_CXX
49681
49682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49683# DIR into the resulting binary and the resulting library dependency is
49684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49685# library is relocated.
49686hardcode_direct_absolute=$hardcode_direct_absolute_CXX
49687
49688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49689# into the resulting binary.
49690hardcode_minus_L=$hardcode_minus_L_CXX
49691
49692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49693# into the resulting binary.
49694hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
49695
49696# Set to "yes" if building a shared library automatically hardcodes DIR
49697# into the library and all subsequent libraries and executables linked
49698# against it.
49699hardcode_automatic=$hardcode_automatic_CXX
49700
49701# Set to yes if linker adds runtime paths of dependent libraries
49702# to runtime path list.
49703inherit_rpath=$inherit_rpath_CXX
49704
49705# Whether libtool must link a program against all its dependency libraries.
49706link_all_deplibs=$link_all_deplibs_CXX
49707
49708# Fix the shell variable \$srcfile for the compiler.
49709fix_srcfile_path=$lt_fix_srcfile_path_CXX
49710
49711# Set to "yes" if exported symbols are required.
49712always_export_symbols=$always_export_symbols_CXX
49713
49714# The commands to list exported symbols.
49715export_symbols_cmds=$lt_export_symbols_cmds_CXX
49716
49717# Symbols that should not be listed in the preloaded symbols.
49718exclude_expsyms=$lt_exclude_expsyms_CXX
49719
49720# Symbols that must always be exported.
49721include_expsyms=$lt_include_expsyms_CXX
49722
49723# Commands necessary for linking programs (against libraries) with templates.
49724prelink_cmds=$lt_prelink_cmds_CXX
49725
49726# Specify filename containing input files.
49727file_list_spec=$lt_file_list_spec_CXX
49728
49729# How to hardcode a shared library path into an executable.
49730hardcode_action=$hardcode_action_CXX
49731
49732# The directories searched by this compiler when creating a shared library.
49733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
49734
49735# Dependencies to place before and after the objects being linked to
49736# create a shared library.
49737predep_objects=$lt_predep_objects_CXX
49738postdep_objects=$lt_postdep_objects_CXX
49739predeps=$lt_predeps_CXX
49740postdeps=$lt_postdeps_CXX
49741
49742# The library search path used internally by the compiler when linking
49743# a shared library.
49744compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
49745
49746# ### END LIBTOOL TAG CONFIG: CXX
49747_LT_EOF
49748
49749 ;;
49750 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
49751 "Magick-config.in":C) chmod +x magick/Magick-config ;;
49752 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
49753 "Wand-config.in":C) chmod +x wand/Wand-config ;;
49754 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
49755 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
49756
49757 esac
49758done # for ac_tag
49759
49760
49761{ (exit 0); exit 0; }
49762_ACEOF
49763chmod +x $CONFIG_STATUS
49764ac_clean_files=$ac_clean_files_save
49765
49766test $ac_write_fail = 0 ||
49767 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49768$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49769 { (exit 1); exit 1; }; }
49770
49771
49772# configure is writing to config.log, and then calls config.status.
49773# config.status does its own redirection, appending to config.log.
49774# Unfortunately, on DOS this fails, as config.log is still kept open
49775# by configure, so config.status won't be able to write to it; its
49776# output is simply discarded. So we exec the FD to /dev/null,
49777# effectively closing config.log, so it can be properly (re)opened and
49778# appended to by config.status. When coming back to configure, we
49779# need to make the FD available again.
49780if test "$no_create" != yes; then
49781 ac_cs_success=:
49782 ac_config_status_args=
49783 test "$silent" = yes &&
49784 ac_config_status_args="$ac_config_status_args --quiet"
49785 exec 5>/dev/null
49786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49787 exec 5>>config.log
49788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49789 # would make configure fail if this is the last instruction.
49790 $ac_cs_success || { (exit 1); exit 1; }
49791fi
49792if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49793 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49794$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49795fi
49796
49797
49798rm -f magick-version
49799
49800result_ghostscript_font_dir='none'
49801if test "${ghostscript_font_dir}x" != 'x'; then
49802 result_ghostscript_font_dir=$ghostscript_font_dir
49803fi
49804
49805result_windows_font_dir='none'
49806if test "${windows_font_dir}x" != 'x'; then
49807 result_windows_font_dir=${windows_font_dir}
49808fi
49809
49810{ $as_echo "$as_me:$LINENO: result:
49811ImageMagick is configured as follows. Please verify that this configuration
49812matches your expectations.
49813
49814Host system type: $host
49815Build system type: $build
49816
49817 Option Value
49818-------------------------------------------------------------------------------
49819Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49820Static libraries --enable-static=$enable_static $libtool_build_static_libs
49821Module support --with-modules=$with_modules $with_modules
49822GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49823Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49824High Dynamic Range Imagery
49825 --enable-hdri=$enable_hdri $enable_hdri
49826
49827Delegate Configuration:
49828BZLIB --with-bzlib=$with_bzlib $have_bzlib
49829Autotrace --with-autotrace=$with_autotrace $have_autotrace
49830DJVU --with-djvu=$with_djvu $have_djvu
49831DPS --with-dps=$with_dps $have_dps
49832FFTW --with-fftw=$with_fftw $have_fftw
49833FlashPIX --with-fpx=$with_fpx $have_fpx
49834FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49835FreeType --with-freetype=$with_freetype $have_freetype
49836GhostPCL None $PCLDelegate ($PCLVersion)
49837GhostXPS None $XPSDelegate ($XPSVersion)
49838Ghostscript None $PSDelegate ($GSVersion)
49839Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49840Ghostscript lib --with-gslib=$with_gslib $have_gslib
49841Graphviz --with-gvc=$with_gvc $have_gvc
49842JBIG --with-jbig=$with_jbig $have_jbig
49843JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49844JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49845LCMS --with-lcms=$with_lcms $have_lcms
49846LQR --with-lqr=$with_lqr $have_lqr
49847Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49848OpenEXR --with-openexr=$with_openexr $have_openexr
49849PERL --with-perl=$with_perl $have_perl
49850PNG --with-png=$with_png $have_png
49851RSVG --with-rsvg=$with_rsvg $have_rsvg
49852TIFF --with-tiff=$with_tiff $have_tiff
49853Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49854WMF --with-wmf=$with_wmf $have_wmf
49855X11 --with-x=$with_x $have_x
49856XML --with-xml=$with_xml $have_xml
49857ZLIB --with-zlib=$with_zlib $have_zlib
49858
49859X11 Configuration:
49860 X_CFLAGS = $X_CFLAGS
49861 X_PRE_LIBS = $X_PRE_LIBS
49862 X_LIBS = $X_LIBS
49863 X_EXTRA_LIBS = $X_EXTRA_LIBS
49864
49865Options used to compile and link:
49866 PREFIX = $PREFIX_DIR
49867 EXEC-PREFIX = $EXEC_PREFIX_DIR
49868 VERSION = $PACKAGE_VERSION
49869 CC = $CC
49870 CFLAGS = $CFLAGS
49871 MAGICK_CFLAGS = $MAGICK_CFLAGS
49872 CPPFLAGS = $MAGICK_CPPFLAGS
49873 PCFLAGS = $MAGICK_PCFLAGS
49874 DEFS = $DEFS
49875 LDFLAGS = $LDFLAGS
49876 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49877 LIBS = $MAGICK_LIBS
49878 CXX = $CXX
49879 CXXFLAGS = $CXXFLAGS
49880" >&5
49881$as_echo "
49882ImageMagick is configured as follows. Please verify that this configuration
49883matches your expectations.
49884
49885Host system type: $host
49886Build system type: $build
49887
49888 Option Value
49889-------------------------------------------------------------------------------
49890Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49891Static libraries --enable-static=$enable_static $libtool_build_static_libs
49892Module support --with-modules=$with_modules $with_modules
49893GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49894Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49895High Dynamic Range Imagery
49896 --enable-hdri=$enable_hdri $enable_hdri
49897
49898Delegate Configuration:
49899BZLIB --with-bzlib=$with_bzlib $have_bzlib
49900Autotrace --with-autotrace=$with_autotrace $have_autotrace
49901DJVU --with-djvu=$with_djvu $have_djvu
49902DPS --with-dps=$with_dps $have_dps
49903FFTW --with-fftw=$with_fftw $have_fftw
49904FlashPIX --with-fpx=$with_fpx $have_fpx
49905FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49906FreeType --with-freetype=$with_freetype $have_freetype
49907GhostPCL None $PCLDelegate ($PCLVersion)
49908GhostXPS None $XPSDelegate ($XPSVersion)
49909Ghostscript None $PSDelegate ($GSVersion)
49910Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49911Ghostscript lib --with-gslib=$with_gslib $have_gslib
49912Graphviz --with-gvc=$with_gvc $have_gvc
49913JBIG --with-jbig=$with_jbig $have_jbig
49914JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49915JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49916LCMS --with-lcms=$with_lcms $have_lcms
49917LQR --with-lqr=$with_lqr $have_lqr
49918Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49919OpenEXR --with-openexr=$with_openexr $have_openexr
49920PERL --with-perl=$with_perl $have_perl
49921PNG --with-png=$with_png $have_png
49922RSVG --with-rsvg=$with_rsvg $have_rsvg
49923TIFF --with-tiff=$with_tiff $have_tiff
49924Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49925WMF --with-wmf=$with_wmf $have_wmf
49926X11 --with-x=$with_x $have_x
49927XML --with-xml=$with_xml $have_xml
49928ZLIB --with-zlib=$with_zlib $have_zlib
49929
49930X11 Configuration:
49931 X_CFLAGS = $X_CFLAGS
49932 X_PRE_LIBS = $X_PRE_LIBS
49933 X_LIBS = $X_LIBS
49934 X_EXTRA_LIBS = $X_EXTRA_LIBS
49935
49936Options used to compile and link:
49937 PREFIX = $PREFIX_DIR
49938 EXEC-PREFIX = $EXEC_PREFIX_DIR
49939 VERSION = $PACKAGE_VERSION
49940 CC = $CC
49941 CFLAGS = $CFLAGS
49942 MAGICK_CFLAGS = $MAGICK_CFLAGS
49943 CPPFLAGS = $MAGICK_CPPFLAGS
49944 PCFLAGS = $MAGICK_PCFLAGS
49945 DEFS = $DEFS
49946 LDFLAGS = $LDFLAGS
49947 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49948 LIBS = $MAGICK_LIBS
49949 CXX = $CXX
49950 CXXFLAGS = $CXXFLAGS
49951" >&6; }