blob: 20179da5d90b6a708154121828db11248609e46b [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyd934d102009-10-10 12:55:13 +00003# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.7.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725lt_ltdl_dir='ltdl'
726
727lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
728
729exec 7<&0 </dev/null 6>&1
730
731# Name of the host.
732# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733# so uname gets run too.
734ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
736#
737# Initializations.
738#
739ac_default_prefix=/usr/local
740ac_clean_files=
741ac_config_libobj_dir=.
742LIBOBJS=
743cross_compiling=no
744subdirs=
745MFLAGS=
746MAKEFLAGS=
747SHELL=${CONFIG_SHELL-/bin/sh}
748
749# Identity of this package.
750PACKAGE_NAME='ImageMagick'
751PACKAGE_TARNAME='ImageMagick'
cristyd934d102009-10-10 12:55:13 +0000752PACKAGE_VERSION='6.5.7'
753PACKAGE_STRING='ImageMagick 6.5.7'
cristy3ed852e2009-09-05 21:47:34 +0000754PACKAGE_BUGREPORT='http://www.imagemagick.org'
755
756ac_unique_file="magick/MagickCore.h"
757ac_config_libobj_dir=ltdl
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772# include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777# include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='ltdl_LTLIBOBJS
795ltdl_LIBOBJS
796am__EXEEXT_FALSE
797am__EXEEXT_TRUE
798LTLIBOBJS
799MAGICK_LIBS
800MAGICK_LDFLAGS
801MAGICK_PCFLAGS
802MAGICK_CPPFLAGS
803MAGICK_CXXFLAGS
804MAGICK_CFLAGS
805MAGICK_DEP_LIBS
806MAGICK_LTDLDEPS
807MAGICK_LIBLTDL
808OSX_GCOV_LDFLAG
809DELEGATES
810MAGICKCORE_PATH
811PERL_SUPPORTS_DESTDIR
812WITH_PERL_DYNAMIC_FALSE
813WITH_PERL_DYNAMIC_TRUE
814WITH_PERL_STATIC_FALSE
815WITH_PERL_STATIC_TRUE
816WITH_PERL_FALSE
817WITH_PERL_TRUE
818GSVersion
819GSPSDevice
820GSPDFDevice
821GSMonoDevice
822GSEPSDevice
823GSColorDevice
824GSCMYKDevice
825GSAlphaDevice
826XPSVersion
827XPSCMYKDevice
828XPSColorDevice
829XPSMonoDevice
830PCLVersion
831PCLCMYKDevice
832PCLColorDevice
833PCLMonoDevice
834ZIP_DELEGATE_FALSE
835ZIP_DELEGATE_TRUE
836ZIP
837P7ZIP_DELEGATE_FALSE
838P7ZIP_DELEGATE_TRUE
839P7ZIP
840RPM_DELEGATE_FALSE
841RPM_DELEGATE_TRUE
842RPM
843PERL
844TAR
845ShowImageDelegate
846type_include_files
847ghostscript_font_dir
848windows_font_dir
849PrintDelegate
850ZipDelegate
851XPSDelegate
852WWWDecodeDelegate
853WMFDecodeDelegate
854TXTDelegate
855SCANDecodeDelegate
856RMDelegate
857RLEEncodeDelegate
858PSDelegate
859POVDelegate
860PGPDecodeDelegate
861PCLDelegate
862MVDelegate
863MPEGEncodeDelegate
864MPEGDecodeDelegate
865MANDelegate
866LaunchDelegate
867LZWEncodeDelegate
868LZWDecodeDelegate
869LPRDelegate
870LPDelegate
871ILBMEncodeDelegate
872ILBMDecodeDelegate
873HTMLDecodeDelegate
874HPGLDecodeDelegate
875HDRDecodeDelegate
876GnuplotDecodeDelegate
877MogrifyDelegate
878DisplayDelegate
879ConvertDelegate
880FIGDecodeDelegate
881EditorDelegate
882EchoDelegate
883DVIDecodeDelegate
884GVCDecodeDelegate
885DNGDecodeDelegate
886CatDelegate
887CGMDecodeDelegate
888BrowseDelegate
889BZIPDelegate
890BlenderDecodeDelegate
891AVIDecodeDelegate
892AutotraceDecodeDelegate
893SHARE_CONFIGURE_PATH
894SHARE_PATH
895DOCUMENTATION_PATH
896FILTER_PATH
897CODER_PATH
898CONFIGURE_PATH
899LIBRARY_PATH
900EXECUTABLE_PATH
901PERLMAINCC
902XML_LIBS
903XML_DELEGATE_FALSE
904XML_DELEGATE_TRUE
905xml2_config
906WMF_LIBS_DEPS
907WMF_LIBS
908WMF_DELEGATE_FALSE
909WMF_DELEGATE_TRUE
910TIFF_LIBS
911TIFF_DELEGATE_FALSE
912TIFF_DELEGATE_TRUE
913CAIRO_DELEGATE_FALSE
914CAIRO_DELEGATE_TRUE
915RSVG_DELEGATE_FALSE
916RSVG_DELEGATE_TRUE
917CAIRO_SVG_LIBS
918CAIRO_SVG_CFLAGS
919RSVG_LIBS
920RSVG_CFLAGS
921PNG_LIBS
922PNG_DELEGATE_FALSE
923PNG_DELEGATE_TRUE
924OPENEXR_DELEGATE_FALSE
925OPENEXR_DELEGATE_TRUE
926OPENEXR_LIBS
927OPENEXR_CFLAGS
928LQR_DELEGATE_FALSE
929LQR_DELEGATE_TRUE
930LQR_LIBS
931LQR_CFLAGS
932LCMS_LIBS
933LCMS_DELEGATE_FALSE
934LCMS_DELEGATE_TRUE
935JP2_LIBS
936JP2_DELEGATE_FALSE
937JP2_DELEGATE_TRUE
938JPEG_LIBS
939JPEG_DELEGATE_FALSE
940JPEG_DELEGATE_TRUE
941JBIG_LIBS
942JBIG_DELEGATE_FALSE
943JBIG_DELEGATE_TRUE
944GVC_DELEGATE_FALSE
945GVC_DELEGATE_TRUE
946GVC_LIBS
947GVC_CFLAGS
948GS_LIBS
949GS_DELEGATE_FALSE
950GS_DELEGATE_TRUE
951FREETYPE_LIBS
952FREETYPE_DELEGATE_FALSE
953FREETYPE_DELEGATE_TRUE
954freetype_config
955FONTCONFIG_DELEGATE_FALSE
956FONTCONFIG_DELEGATE_TRUE
957FONTCONFIG_LIBS
958FONTCONFIG_CFLAGS
959FPX_LIBS
960FPX_DELEGATE_FALSE
961FPX_DELEGATE_TRUE
962FFTW_LIBS
963FFTW_DELEGATE_FALSE
964FFTW_DELEGATE_TRUE
965DJVU_LIBS
966DJVU_DELEGATE_FALSE
967DJVU_DELEGATE_TRUE
968DPS_LIBS
969DPS_DELEGATE_FALSE
970DPS_DELEGATE_TRUE
971AUTOTRACE_DELEGATE_FALSE
972AUTOTRACE_DELEGATE_TRUE
973AUTOTRACE_LIBS
974AUTOTRACE_CFLAGS
975LIB_DL
976ZLIB_LIBS
977ZLIB_DELEGATE_FALSE
978ZLIB_DELEGATE_TRUE
979XEXT_LIBS
980X11_LIBS
981X11_DELEGATE_FALSE
982X11_DELEGATE_TRUE
983X_EXTRA_LIBS
984X_LIBS
985X_PRE_LIBS
986X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000987XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000988BZLIB_LIBS
989BZLIB_DELEGATE_FALSE
990BZLIB_DELEGATE_TRUE
991MATH_LIBS
992CCMALLOCDelegate
993UMEM_LIBS
994HasUMEM_FALSE
995HasUMEM_TRUE
996THREAD_LIBS
997GOMP_LIBS
998WITH_MAGICK_PLUS_PLUS_FALSE
999WITH_MAGICK_PLUS_PLUS_TRUE
1000OPENMP_CXXFLAGS
1001POW_LIB
1002LIBOBJS
1003UINTPTR_T
1004UINTMAX_T
1005UINT64_T
1006INT64_T
1007UINT32_T
1008INT32_T
1009UINT16_T
1010INT16_T
1011UINT8_T
1012INT8_T
1013LIBRARY_EXTRA_CPPFLAGS
1014MODULE_EXTRA_CPPFLAGS
1015LIBSTDCLDFLAGS
1016PERL_MAKE_OPTIONS
1017QUANTUM_DEPTH
1018MAINT
1019MAINTAINER_MODE_FALSE
1020MAINTAINER_MODE_TRUE
1021MAGICK_HDRI
1022DLLDFLAGS
1023WITH_LTDL_FALSE
1024WITH_LTDL_TRUE
1025WITH_MODULES_FALSE
1026WITH_MODULES_TRUE
1027LTCXXLIBOPTS
1028LTDLOPEN
1029LT_CONFIG_H
1030CONVENIENCE_LTDL_FALSE
1031CONVENIENCE_LTDL_TRUE
1032INSTALL_LTDL_FALSE
1033INSTALL_LTDL_TRUE
1034ARGZ_H
1035sys_symbol_underscore
1036LIBADD_DL
1037LT_DLPREOPEN
1038LIBADD_DLD_LINK
1039LIBADD_SHL_LOAD
1040LIBADD_DLOPEN
1041LT_DLLOADERS
1042INCLTDL
1043LTDLINCL
1044LTDLDEPS
1045LIBLTDL
1046LIBTOOL_DEPS
1047CXXCPP
1048OTOOL64
1049OTOOL
1050LIPO
1051NMEDIT
1052DSYMUTIL
1053lt_ECHO
1054AR
1055NM
1056ac_ct_DUMPBIN
1057DUMPBIN
1058LIBTOOL
1059OBJDUMP
1060DLLTOOL
1061AS
1062LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001063CL_LIBS
1064CL_CFLAGS
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
1231enable_largefile
1232enable_shared
1233enable_static
1234with_pic
1235enable_fast_install
1236enable_libtool_lock
1237with_included_ltdl
1238with_ltdl_include
1239with_ltdl_lib
1240enable_ltdl_install
1241with_modules
1242enable_delegate_build
1243enable_deprecated
1244enable_installed
1245enable_cipher
1246enable_embeddable
1247enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001248enable_assert
1249enable_maintainer_mode
1250enable_ccmalloc
1251enable_efence
1252enable_prof
1253enable_gprof
1254enable_gcov
1255with_method_prefix
1256with_quantum_depth
1257with_cache
1258with_frozenpaths
1259with_magick_plus_plus
1260with_perl
1261with_perl_options
1262with_umem
1263with_libstdc
1264with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001265with_x
cristy3ed852e2009-09-05 21:47:34 +00001266with_zlib
1267with_autotrace
1268with_dps
1269with_djvu
1270with_fftw
1271with_fpx
1272with_fontconfig
1273with_freetype
1274with_gslib
1275with_fontpath
1276with_gs_font_dir
1277with_gvc
1278with_jbig
1279with_jpeg
1280with_jp2
1281with_lcms
1282with_lqr
1283with_openexr
1284with_png
1285with_rsvg
1286with_tiff
1287with_windows_font_dir
1288with_wmf
1289with_xml
1290'
1291 ac_precious_vars='build_alias
1292host_alias
1293target_alias
1294CC
1295CFLAGS
1296LDFLAGS
1297LIBS
1298CPPFLAGS
1299CPP
1300CXX
1301CXXFLAGS
1302CCC
1303PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001304CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001305XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001306AUTOTRACE_CFLAGS
1307AUTOTRACE_LIBS
1308FONTCONFIG_CFLAGS
1309FONTCONFIG_LIBS
1310GVC_CFLAGS
1311GVC_LIBS
1312LQR_CFLAGS
1313LQR_LIBS
1314OPENEXR_CFLAGS
1315OPENEXR_LIBS
1316RSVG_CFLAGS
1317RSVG_LIBS
1318CAIRO_SVG_CFLAGS
1319CAIRO_SVG_LIBS'
1320
1321
1322# Initialize some variables set by options.
1323ac_init_help=
1324ac_init_version=false
1325ac_unrecognized_opts=
1326ac_unrecognized_sep=
1327# The variables have the same names as the options, with
1328# dashes changed to underlines.
1329cache_file=/dev/null
1330exec_prefix=NONE
1331no_create=
1332no_recursion=
1333prefix=NONE
1334program_prefix=NONE
1335program_suffix=NONE
1336program_transform_name=s,x,x,
1337silent=
1338site=
1339srcdir=
1340verbose=
1341x_includes=NONE
1342x_libraries=NONE
1343
1344# Installation directory options.
1345# These are left unexpanded so users can "make install exec_prefix=/foo"
1346# and all the variables that are supposed to be based on exec_prefix
1347# by default will actually change.
1348# Use braces instead of parens because sh, perl, etc. also accept them.
1349# (The list follows the same order as the GNU Coding Standards.)
1350bindir='${exec_prefix}/bin'
1351sbindir='${exec_prefix}/sbin'
1352libexecdir='${exec_prefix}/libexec'
1353datarootdir='${prefix}/share'
1354datadir='${datarootdir}'
1355sysconfdir='${prefix}/etc'
1356sharedstatedir='${prefix}/com'
1357localstatedir='${prefix}/var'
1358includedir='${prefix}/include'
1359oldincludedir='/usr/include'
1360docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1361infodir='${datarootdir}/info'
1362htmldir='${docdir}'
1363dvidir='${docdir}'
1364pdfdir='${docdir}'
1365psdir='${docdir}'
1366libdir='${exec_prefix}/lib'
1367localedir='${datarootdir}/locale'
1368mandir='${datarootdir}/man'
1369
1370ac_prev=
1371ac_dashdash=
1372for ac_option
1373do
1374 # If the previous option needs an argument, assign it.
1375 if test -n "$ac_prev"; then
1376 eval $ac_prev=\$ac_option
1377 ac_prev=
1378 continue
1379 fi
1380
1381 case $ac_option in
1382 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1383 *) ac_optarg=yes ;;
1384 esac
1385
1386 # Accept the important Cygnus configure options, so we can diagnose typos.
1387
1388 case $ac_dashdash$ac_option in
1389 --)
1390 ac_dashdash=yes ;;
1391
1392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1393 ac_prev=bindir ;;
1394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1395 bindir=$ac_optarg ;;
1396
1397 -build | --build | --buil | --bui | --bu)
1398 ac_prev=build_alias ;;
1399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1400 build_alias=$ac_optarg ;;
1401
1402 -cache-file | --cache-file | --cache-fil | --cache-fi \
1403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1404 ac_prev=cache_file ;;
1405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1407 cache_file=$ac_optarg ;;
1408
1409 --config-cache | -C)
1410 cache_file=config.cache ;;
1411
1412 -datadir | --datadir | --datadi | --datad)
1413 ac_prev=datadir ;;
1414 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1415 datadir=$ac_optarg ;;
1416
1417 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1418 | --dataroo | --dataro | --datar)
1419 ac_prev=datarootdir ;;
1420 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1421 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1422 datarootdir=$ac_optarg ;;
1423
1424 -disable-* | --disable-*)
1425 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1428 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1429 { (exit 1); exit 1; }; }
1430 ac_useropt_orig=$ac_useropt
1431 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1432 case $ac_user_opts in
1433 *"
1434"enable_$ac_useropt"
1435"*) ;;
1436 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1437 ac_unrecognized_sep=', ';;
1438 esac
1439 eval enable_$ac_useropt=no ;;
1440
1441 -docdir | --docdir | --docdi | --doc | --do)
1442 ac_prev=docdir ;;
1443 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1444 docdir=$ac_optarg ;;
1445
1446 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1447 ac_prev=dvidir ;;
1448 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1449 dvidir=$ac_optarg ;;
1450
1451 -enable-* | --enable-*)
1452 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1455 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1456 { (exit 1); exit 1; }; }
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1460 *"
1461"enable_$ac_useropt"
1462"*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval enable_$ac_useropt=\$ac_optarg ;;
1467
1468 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1469 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1470 | --exec | --exe | --ex)
1471 ac_prev=exec_prefix ;;
1472 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1473 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1474 | --exec=* | --exe=* | --ex=*)
1475 exec_prefix=$ac_optarg ;;
1476
1477 -gas | --gas | --ga | --g)
1478 # Obsolete; use --with-gas.
1479 with_gas=yes ;;
1480
1481 -help | --help | --hel | --he | -h)
1482 ac_init_help=long ;;
1483 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1484 ac_init_help=recursive ;;
1485 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1486 ac_init_help=short ;;
1487
1488 -host | --host | --hos | --ho)
1489 ac_prev=host_alias ;;
1490 -host=* | --host=* | --hos=* | --ho=*)
1491 host_alias=$ac_optarg ;;
1492
1493 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1494 ac_prev=htmldir ;;
1495 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1496 | --ht=*)
1497 htmldir=$ac_optarg ;;
1498
1499 -includedir | --includedir | --includedi | --included | --include \
1500 | --includ | --inclu | --incl | --inc)
1501 ac_prev=includedir ;;
1502 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1503 | --includ=* | --inclu=* | --incl=* | --inc=*)
1504 includedir=$ac_optarg ;;
1505
1506 -infodir | --infodir | --infodi | --infod | --info | --inf)
1507 ac_prev=infodir ;;
1508 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1509 infodir=$ac_optarg ;;
1510
1511 -libdir | --libdir | --libdi | --libd)
1512 ac_prev=libdir ;;
1513 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1514 libdir=$ac_optarg ;;
1515
1516 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1517 | --libexe | --libex | --libe)
1518 ac_prev=libexecdir ;;
1519 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1520 | --libexe=* | --libex=* | --libe=*)
1521 libexecdir=$ac_optarg ;;
1522
1523 -localedir | --localedir | --localedi | --localed | --locale)
1524 ac_prev=localedir ;;
1525 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1526 localedir=$ac_optarg ;;
1527
1528 -localstatedir | --localstatedir | --localstatedi | --localstated \
1529 | --localstate | --localstat | --localsta | --localst | --locals)
1530 ac_prev=localstatedir ;;
1531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1532 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1533 localstatedir=$ac_optarg ;;
1534
1535 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1536 ac_prev=mandir ;;
1537 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1538 mandir=$ac_optarg ;;
1539
1540 -nfp | --nfp | --nf)
1541 # Obsolete; use --without-fp.
1542 with_fp=no ;;
1543
1544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1545 | --no-cr | --no-c | -n)
1546 no_create=yes ;;
1547
1548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1550 no_recursion=yes ;;
1551
1552 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1553 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1554 | --oldin | --oldi | --old | --ol | --o)
1555 ac_prev=oldincludedir ;;
1556 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1557 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1558 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1559 oldincludedir=$ac_optarg ;;
1560
1561 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1562 ac_prev=prefix ;;
1563 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1564 prefix=$ac_optarg ;;
1565
1566 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1567 | --program-pre | --program-pr | --program-p)
1568 ac_prev=program_prefix ;;
1569 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1570 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1571 program_prefix=$ac_optarg ;;
1572
1573 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1574 | --program-suf | --program-su | --program-s)
1575 ac_prev=program_suffix ;;
1576 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1577 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1578 program_suffix=$ac_optarg ;;
1579
1580 -program-transform-name | --program-transform-name \
1581 | --program-transform-nam | --program-transform-na \
1582 | --program-transform-n | --program-transform- \
1583 | --program-transform | --program-transfor \
1584 | --program-transfo | --program-transf \
1585 | --program-trans | --program-tran \
1586 | --progr-tra | --program-tr | --program-t)
1587 ac_prev=program_transform_name ;;
1588 -program-transform-name=* | --program-transform-name=* \
1589 | --program-transform-nam=* | --program-transform-na=* \
1590 | --program-transform-n=* | --program-transform-=* \
1591 | --program-transform=* | --program-transfor=* \
1592 | --program-transfo=* | --program-transf=* \
1593 | --program-trans=* | --program-tran=* \
1594 | --progr-tra=* | --program-tr=* | --program-t=*)
1595 program_transform_name=$ac_optarg ;;
1596
1597 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1598 ac_prev=pdfdir ;;
1599 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1600 pdfdir=$ac_optarg ;;
1601
1602 -psdir | --psdir | --psdi | --psd | --ps)
1603 ac_prev=psdir ;;
1604 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1605 psdir=$ac_optarg ;;
1606
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1609 silent=yes ;;
1610
1611 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1612 ac_prev=sbindir ;;
1613 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1614 | --sbi=* | --sb=*)
1615 sbindir=$ac_optarg ;;
1616
1617 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1618 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1619 | --sharedst | --shareds | --shared | --share | --shar \
1620 | --sha | --sh)
1621 ac_prev=sharedstatedir ;;
1622 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1623 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1624 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1625 | --sha=* | --sh=*)
1626 sharedstatedir=$ac_optarg ;;
1627
1628 -site | --site | --sit)
1629 ac_prev=site ;;
1630 -site=* | --site=* | --sit=*)
1631 site=$ac_optarg ;;
1632
1633 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1634 ac_prev=srcdir ;;
1635 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1636 srcdir=$ac_optarg ;;
1637
1638 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1639 | --syscon | --sysco | --sysc | --sys | --sy)
1640 ac_prev=sysconfdir ;;
1641 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1642 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1643 sysconfdir=$ac_optarg ;;
1644
1645 -target | --target | --targe | --targ | --tar | --ta | --t)
1646 ac_prev=target_alias ;;
1647 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1648 target_alias=$ac_optarg ;;
1649
1650 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1651 verbose=yes ;;
1652
1653 -version | --version | --versio | --versi | --vers | -V)
1654 ac_init_version=: ;;
1655
1656 -with-* | --with-*)
1657 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1658 # Reject names that are not valid shell variable names.
1659 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1660 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1661 { (exit 1); exit 1; }; }
1662 ac_useropt_orig=$ac_useropt
1663 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1665 *"
1666"with_$ac_useropt"
1667"*) ;;
1668 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1669 ac_unrecognized_sep=', ';;
1670 esac
1671 eval with_$ac_useropt=\$ac_optarg ;;
1672
1673 -without-* | --without-*)
1674 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1675 # Reject names that are not valid shell variable names.
1676 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1677 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1678 { (exit 1); exit 1; }; }
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1682 *"
1683"with_$ac_useropt"
1684"*) ;;
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1687 esac
1688 eval with_$ac_useropt=no ;;
1689
1690 --x)
1691 # Obsolete; use --with-x.
1692 with_x=yes ;;
1693
1694 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1695 | --x-incl | --x-inc | --x-in | --x-i)
1696 ac_prev=x_includes ;;
1697 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1698 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1699 x_includes=$ac_optarg ;;
1700
1701 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1702 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1703 ac_prev=x_libraries ;;
1704 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1705 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1706 x_libraries=$ac_optarg ;;
1707
1708 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1709Try \`$0 --help' for more information." >&2
1710 { (exit 1); exit 1; }; }
1711 ;;
1712
1713 *=*)
1714 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1715 # Reject names that are not valid shell variable names.
1716 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1717 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1718 { (exit 1); exit 1; }; }
1719 eval $ac_envvar=\$ac_optarg
1720 export $ac_envvar ;;
1721
1722 *)
1723 # FIXME: should be removed in autoconf 3.0.
1724 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1725 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1726 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1727 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1728 ;;
1729
1730 esac
1731done
1732
1733if test -n "$ac_prev"; then
1734 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1735 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1736 { (exit 1); exit 1; }; }
1737fi
1738
1739if test -n "$ac_unrecognized_opts"; then
1740 case $enable_option_checking in
1741 no) ;;
1742 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1743 { (exit 1); exit 1; }; } ;;
1744 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1745 esac
1746fi
1747
1748# Check all directory arguments for consistency.
1749for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1750 datadir sysconfdir sharedstatedir localstatedir includedir \
1751 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1752 libdir localedir mandir
1753do
1754 eval ac_val=\$$ac_var
1755 # Remove trailing slashes.
1756 case $ac_val in
1757 */ )
1758 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1759 eval $ac_var=\$ac_val;;
1760 esac
1761 # Be sure to have absolute directory names.
1762 case $ac_val in
1763 [\\/$]* | ?:[\\/]* ) continue;;
1764 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1765 esac
1766 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1767 { (exit 1); exit 1; }; }
1768done
1769
1770# There might be people who depend on the old broken behavior: `$host'
1771# used to hold the argument of --host etc.
1772# FIXME: To remove some day.
1773build=$build_alias
1774host=$host_alias
1775target=$target_alias
1776
1777# FIXME: To remove some day.
1778if test "x$host_alias" != x; then
1779 if test "x$build_alias" = x; then
1780 cross_compiling=maybe
1781 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1782 If a cross compiler is detected then cross compile mode will be used." >&2
1783 elif test "x$build_alias" != "x$host_alias"; then
1784 cross_compiling=yes
1785 fi
1786fi
1787
1788ac_tool_prefix=
1789test -n "$host_alias" && ac_tool_prefix=$host_alias-
1790
1791test "$silent" = yes && exec 6>/dev/null
1792
1793
1794ac_pwd=`pwd` && test -n "$ac_pwd" &&
1795ac_ls_di=`ls -di .` &&
1796ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1797 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1798 { (exit 1); exit 1; }; }
1799test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1800 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1801 { (exit 1); exit 1; }; }
1802
1803
1804# Find the source files, if location was not specified.
1805if test -z "$srcdir"; then
1806 ac_srcdir_defaulted=yes
1807 # Try the directory containing this script, then the parent directory.
1808 ac_confdir=`$as_dirname -- "$as_myself" ||
1809$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1810 X"$as_myself" : 'X\(//\)[^/]' \| \
1811 X"$as_myself" : 'X\(//\)$' \| \
1812 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1813$as_echo X"$as_myself" |
1814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1815 s//\1/
1816 q
1817 }
1818 /^X\(\/\/\)[^/].*/{
1819 s//\1/
1820 q
1821 }
1822 /^X\(\/\/\)$/{
1823 s//\1/
1824 q
1825 }
1826 /^X\(\/\).*/{
1827 s//\1/
1828 q
1829 }
1830 s/.*/./; q'`
1831 srcdir=$ac_confdir
1832 if test ! -r "$srcdir/$ac_unique_file"; then
1833 srcdir=..
1834 fi
1835else
1836 ac_srcdir_defaulted=no
1837fi
1838if test ! -r "$srcdir/$ac_unique_file"; then
1839 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1840 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1841 { (exit 1); exit 1; }; }
1842fi
1843ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1844ac_abs_confdir=`(
1845 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1846 { (exit 1); exit 1; }; }
1847 pwd)`
1848# When building in place, set srcdir=.
1849if test "$ac_abs_confdir" = "$ac_pwd"; then
1850 srcdir=.
1851fi
1852# Remove unnecessary trailing slashes from srcdir.
1853# Double slashes in file names in object file debugging info
1854# mess up M-x gdb in Emacs.
1855case $srcdir in
1856*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1857esac
1858for ac_var in $ac_precious_vars; do
1859 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1860 eval ac_env_${ac_var}_value=\$${ac_var}
1861 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1862 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1863done
1864
1865#
1866# Report the --help message.
1867#
1868if test "$ac_init_help" = "long"; then
1869 # Omit some internal or obsolete options to make the list less imposing.
1870 # This message is too long to be a string in the A/UX 3.1 sh.
1871 cat <<_ACEOF
cristyd934d102009-10-10 12:55:13 +00001872\`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001873
1874Usage: $0 [OPTION]... [VAR=VALUE]...
1875
1876To assign environment variables (e.g., CC, CFLAGS...), specify them as
1877VAR=VALUE. See below for descriptions of some of the useful variables.
1878
1879Defaults for the options are specified in brackets.
1880
1881Configuration:
1882 -h, --help display this help and exit
1883 --help=short display options specific to this package
1884 --help=recursive display the short help of all the included packages
1885 -V, --version display version information and exit
1886 -q, --quiet, --silent do not print \`checking...' messages
1887 --cache-file=FILE cache test results in FILE [disabled]
1888 -C, --config-cache alias for \`--cache-file=config.cache'
1889 -n, --no-create do not create output files
1890 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1891
1892Installation directories:
1893 --prefix=PREFIX install architecture-independent files in PREFIX
1894 [$ac_default_prefix]
1895 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1896 [PREFIX]
1897
1898By default, \`make install' will install all the files in
1899\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1900an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1901for instance \`--prefix=\$HOME'.
1902
1903For better control, use the options below.
1904
1905Fine tuning of the installation directories:
1906 --bindir=DIR user executables [EPREFIX/bin]
1907 --sbindir=DIR system admin executables [EPREFIX/sbin]
1908 --libexecdir=DIR program executables [EPREFIX/libexec]
1909 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1910 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1911 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1912 --libdir=DIR object code libraries [EPREFIX/lib]
1913 --includedir=DIR C header files [PREFIX/include]
1914 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1915 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1916 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1917 --infodir=DIR info documentation [DATAROOTDIR/info]
1918 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1919 --mandir=DIR man documentation [DATAROOTDIR/man]
1920 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1921 --htmldir=DIR html documentation [DOCDIR]
1922 --dvidir=DIR dvi documentation [DOCDIR]
1923 --pdfdir=DIR pdf documentation [DOCDIR]
1924 --psdir=DIR ps documentation [DOCDIR]
1925_ACEOF
1926
1927 cat <<\_ACEOF
1928
1929Program names:
1930 --program-prefix=PREFIX prepend PREFIX to installed program names
1931 --program-suffix=SUFFIX append SUFFIX to installed program names
1932 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1933
1934X features:
1935 --x-includes=DIR X include files are in DIR
1936 --x-libraries=DIR X library files are in DIR
1937
1938System types:
1939 --build=BUILD configure for building on BUILD [guessed]
1940 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1941 --target=TARGET configure for building compilers for TARGET [HOST]
1942_ACEOF
1943fi
1944
1945if test -n "$ac_init_help"; then
1946 case $ac_init_help in
cristyd934d102009-10-10 12:55:13 +00001947 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001948 esac
1949 cat <<\_ACEOF
1950
1951Optional Features:
1952 --disable-option-checking ignore unrecognized --enable/--with options
1953 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1954 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1955 --enable-silent-rules less verbose build output (undo: `make V=1')
1956 --disable-silent-rules verbose build output (undo: `make V=0')
1957 --disable-dependency-tracking speeds up one-time build
1958 --enable-dependency-tracking do not reject slow dependency extractors
1959 --bounds-checking enable run-time bounds-checking
1960 --enable-osx-universal-binary
1961 build universal binary on OS X [default=no]
1962 --disable-openmp do not use OpenMP
1963 --disable-largefile omit support for large files
1964 --enable-shared[=PKGS] build shared libraries [default=yes]
1965 --enable-static[=PKGS] build static libraries [default=yes]
1966 --enable-fast-install[=PKGS]
1967 optimize for fast installation [default=yes]
1968 --disable-libtool-lock avoid locking (might break parallel builds)
1969 --enable-ltdl-install install libltdl
1970 --enable-delegate-build look for delegate libraries in build directory
1971 --disable-deprecated exclude deprecated methods in MagickCore and
1972 MagickWand API's
1973 --disable-installed Formally install ImageMagick under PREFIX
1974 --disable-cipher disable enciphering and deciphering image pixels
1975 --enable-embeddable enable self-contained, embeddable,
1976 zero-configuration ImageMagick
1977 --enable-hdri accurately represent the wide range of intensity
1978 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001979 --disable-assert disable assert() statements in build
1980 --enable-maintainer-mode enable make rules and dependencies not useful
1981 (and sometimes confusing) to the casual installer
1982 --enable-ccmalloc enable 'ccmalloc' memory debug support
1983 --enable-efence enable 'efence' memory debug support
1984 --enable-prof enable 'prof' profiling support
1985 --enable-gprof enable 'gprof' profiling support
1986 --enable-gcov enable 'gcov' profiling support
1987
1988Optional Packages:
1989 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1990 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1991 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1992 --without-maximum-compile-warnings
1993 Disable maximum warning verbosity
1994 --with-dmalloc use dmalloc, as in
1995 http://www.dmalloc.com/dmalloc.tar.gz
1996 --without-threads disable threads support
1997 --with-pic try to use only PIC/non-PIC objects [default=use
1998 both]
1999 --with-included-ltdl use the GNU ltdl sources included here
2000 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2001 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2002 --with-modules enable building dynamically loadable modules
2003 --with-method-prefix=PREFIX
2004 prefix MagickCore API methods
2005 --with-quantum-depth=DEPTH
2006 number of bits in a pixel quantum (default 16)
2007 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2008 memory)
2009 --with-frozenpaths freeze delegate paths
2010 --without-magick-plus-plus
2011 disable build/install of Magick++
2012 --with-perl enable build/install of PerlMagick
2013 --with-perl-options=OPTIONS
2014 options to pass on command-line when generating
2015 PerlMagick's build file
2016 --with-umem enable umem memory allocation library support
2017 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2018 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00002019 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00002020 --without-zlib disable ZLIB support
2021 --with-autotrace enable autotrace support
2022 --without-dps disable Display Postscript support
2023 --without-djvu disable DjVu support
2024 --without-fftw disable FFTW support
2025 --without-fpx disable FlashPIX support
2026 --without-fontconfig disable fontconfig support
2027 --without-freetype disable Freetype support
2028 --without-gslib enable Ghostscript library support
2029 --with-fontpath=DIR prepend to default font search path
2030 --with-gs-font-dir=DIR Ghostscript font directory
2031 --without-gvc disable GVC support
2032 --without-jbig disable JBIG support
2033 --without-jpeg disable JPEG support
2034 --without-jp2 disable JPEG-2000 support
2035 --without-lcms disable LCMS support
2036 --without-lqr disable Liquid Rescale support (experimental)
2037 --without-openexr disable OpenEXR support
2038 --without-png disable PNG support
2039 --without-rsvg disable RSVG support
2040 --without-tiff disable TIFF support
2041 --with-windows-font-dir=DIR
2042 directory containing MS-Windows fonts
2043 --without-wmf disable WMF support
2044 --without-xml disable XML support
2045
2046Some influential environment variables:
2047 CC C compiler command
2048 CFLAGS C compiler flags
2049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2050 nonstandard directory <lib dir>
2051 LIBS libraries to pass to the linker, e.g. -l<library>
2052 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2053 you have headers in a nonstandard directory <include dir>
2054 CPP C preprocessor
2055 CXX C++ compiler command
2056 CXXFLAGS C++ compiler flags
2057 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002058 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002059 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002060 AUTOTRACE_CFLAGS
2061 C compiler flags for AUTOTRACE, overriding pkg-config
2062 AUTOTRACE_LIBS
2063 linker flags for AUTOTRACE, overriding pkg-config
2064 FONTCONFIG_CFLAGS
2065 C compiler flags for FONTCONFIG, overriding pkg-config
2066 FONTCONFIG_LIBS
2067 linker flags for FONTCONFIG, overriding pkg-config
2068 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2069 GVC_LIBS linker flags for GVC, overriding pkg-config
2070 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2071 LQR_LIBS linker flags for LQR, overriding pkg-config
2072 OPENEXR_CFLAGS
2073 C compiler flags for OPENEXR, overriding pkg-config
2074 OPENEXR_LIBS
2075 linker flags for OPENEXR, overriding pkg-config
2076 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2077 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2078 CAIRO_SVG_CFLAGS
2079 C compiler flags for CAIRO_SVG, overriding pkg-config
2080 CAIRO_SVG_LIBS
2081 linker flags for CAIRO_SVG, overriding pkg-config
2082
2083Use these variables to override the choices made by `configure' or to help
2084it to find libraries and programs with nonstandard names/locations.
2085
2086Report bugs to <http://www.imagemagick.org>.
2087_ACEOF
2088ac_status=$?
2089fi
2090
2091if test "$ac_init_help" = "recursive"; then
2092 # If there are subdirs, report their specific --help.
2093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2094 test -d "$ac_dir" ||
2095 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2096 continue
2097 ac_builddir=.
2098
2099case "$ac_dir" in
2100.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101*)
2102 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2103 # A ".." for each directory in $ac_dir_suffix.
2104 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2105 case $ac_top_builddir_sub in
2106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2108 esac ;;
2109esac
2110ac_abs_top_builddir=$ac_pwd
2111ac_abs_builddir=$ac_pwd$ac_dir_suffix
2112# for backward compatibility:
2113ac_top_builddir=$ac_top_build_prefix
2114
2115case $srcdir in
2116 .) # We are building in place.
2117 ac_srcdir=.
2118 ac_top_srcdir=$ac_top_builddir_sub
2119 ac_abs_top_srcdir=$ac_pwd ;;
2120 [\\/]* | ?:[\\/]* ) # Absolute name.
2121 ac_srcdir=$srcdir$ac_dir_suffix;
2122 ac_top_srcdir=$srcdir
2123 ac_abs_top_srcdir=$srcdir ;;
2124 *) # Relative name.
2125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2126 ac_top_srcdir=$ac_top_build_prefix$srcdir
2127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2128esac
2129ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2130
2131 cd "$ac_dir" || { ac_status=$?; continue; }
2132 # Check for guested configure.
2133 if test -f "$ac_srcdir/configure.gnu"; then
2134 echo &&
2135 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2136 elif test -f "$ac_srcdir/configure"; then
2137 echo &&
2138 $SHELL "$ac_srcdir/configure" --help=recursive
2139 else
2140 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2141 fi || ac_status=$?
2142 cd "$ac_pwd" || { ac_status=$?; break; }
2143 done
2144fi
2145
2146test -n "$ac_init_help" && exit $ac_status
2147if $ac_init_version; then
2148 cat <<\_ACEOF
cristyd934d102009-10-10 12:55:13 +00002149ImageMagick configure 6.5.7
cristy3ed852e2009-09-05 21:47:34 +00002150generated by GNU Autoconf 2.63
2151
2152Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21532002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2154This configure script is free software; the Free Software Foundation
2155gives unlimited permission to copy, distribute and modify it.
2156_ACEOF
2157 exit
2158fi
2159cat >config.log <<_ACEOF
2160This file contains any messages produced by compilers while
2161running configure, to aid debugging if configure makes a mistake.
2162
cristyd934d102009-10-10 12:55:13 +00002163It was created by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +00002164generated by GNU Autoconf 2.63. Invocation command line was
2165
2166 $ $0 $@
2167
2168_ACEOF
2169exec 5>>config.log
2170{
2171cat <<_ASUNAME
2172## --------- ##
2173## Platform. ##
2174## --------- ##
2175
2176hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184
2185/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192
2193_ASUNAME
2194
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2201done
2202IFS=$as_save_IFS
2203
2204} >&5
2205
2206cat >&5 <<_ACEOF
2207
2208
2209## ----------- ##
2210## Core tests. ##
2211## ----------- ##
2212
2213_ACEOF
2214
2215
2216# Keep a trace of the command line.
2217# Strip out --no-create and --no-recursion so they do not pile up.
2218# Strip out --silent because we don't want to record it for future runs.
2219# Also quote any args containing shell meta-characters.
2220# Make two passes to allow for proper duplicate-argument suppression.
2221ac_configure_args=
2222ac_configure_args0=
2223ac_configure_args1=
2224ac_must_keep_next=false
2225for ac_pass in 1 2
2226do
2227 for ac_arg
2228 do
2229 case $ac_arg in
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2233 continue ;;
2234 *\'*)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 esac
2237 case $ac_pass in
2238 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2239 2)
2240 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2243 else
2244 case $ac_arg in
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 esac
2252 ;;
2253 -* ) ac_must_keep_next=true ;;
2254 esac
2255 fi
2256 ac_configure_args="$ac_configure_args '$ac_arg'"
2257 ;;
2258 esac
2259 done
2260done
2261$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2262$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2263
2264# When interrupted or exit'd, cleanup temporary files, and complete
2265# config.log. We remove comments because anyway the quotes in there
2266# would cause problems or look ugly.
2267# WARNING: Use '\'' to represent an apostrophe within the trap.
2268# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 cat <<\_ASBOX
2275## ---------------- ##
2276## Cache variables. ##
2277## ---------------- ##
2278_ASBOX
2279 echo
2280 # The following way of writing the cache mishandles newlines in values,
2281(
2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in #(
2285 *${as_nl}*)
2286 case $ac_var in #(
2287 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289 esac
2290 case $ac_var in #(
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) $as_unset $ac_var ;;
2294 esac ;;
2295 esac
2296 done
2297 (set) 2>&1 |
2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2300 sed -n \
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303 ;; #(
2304 *)
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 ;;
2307 esac |
2308 sort
2309)
2310 echo
2311
2312 cat <<\_ASBOX
2313## ----------------- ##
2314## Output variables. ##
2315## ----------------- ##
2316_ASBOX
2317 echo
2318 for ac_var in $ac_subst_vars
2319 do
2320 eval ac_val=\$$ac_var
2321 case $ac_val in
2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 esac
2324 $as_echo "$ac_var='\''$ac_val'\''"
2325 done | sort
2326 echo
2327
2328 if test -n "$ac_subst_files"; then
2329 cat <<\_ASBOX
2330## ------------------- ##
2331## File substitutions. ##
2332## ------------------- ##
2333_ASBOX
2334 echo
2335 for ac_var in $ac_subst_files
2336 do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 $as_echo "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2344 fi
2345
2346 if test -s confdefs.h; then
2347 cat <<\_ASBOX
2348## ----------- ##
2349## confdefs.h. ##
2350## ----------- ##
2351_ASBOX
2352 echo
2353 cat confdefs.h
2354 echo
2355 fi
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2359 } >&5
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362 exit $exit_status
2363' 0
2364for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2366done
2367ac_signal=0
2368
2369# confdefs.h avoids OS command line length limits that DEFS can exceed.
2370rm -f -r conftest* confdefs.h
2371
2372# Predefined preprocessor variables.
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_NAME "$PACKAGE_NAME"
2376_ACEOF
2377
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381_ACEOF
2382
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_VERSION "$PACKAGE_VERSION"
2386_ACEOF
2387
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_STRING "$PACKAGE_STRING"
2391_ACEOF
2392
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396_ACEOF
2397
2398
2399# Let the site file select an alternate cache file if it wants to.
2400# Prefer an explicitly selected file to automatically selected ones.
2401ac_site_file1=NONE
2402ac_site_file2=NONE
2403if test -n "$CONFIG_SITE"; then
2404 ac_site_file1=$CONFIG_SITE
2405elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2411fi
2412for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413do
2414 test "x$ac_site_file" = xNONE && continue
2415 if test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2417$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2419 . "$ac_site_file"
2420 fi
2421done
2422
2423if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special
2425 # files actually), so we avoid doing that.
2426 if test -f "$cache_file"; then
2427 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2428$as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2433 fi
2434else
2435 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2436$as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2438fi
2439
2440# Check that the precious variables saved in the cache have kept the same
2441# value.
2442ac_cache_corrupted=false
2443for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2458 *)
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2471 fi
2472 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2473$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2475$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2487 esac
2488 fi
2489done
2490if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2496$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2497 { (exit 1); exit 1; }; }
2498fi
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524ac_ext=c
2525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532ac_aux_dir=
2533for ac_dir in config "$srcdir"/config; do
2534 if test -f "$ac_dir/install-sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install-sh -c"
2537 break
2538 elif test -f "$ac_dir/install.sh"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/install.sh -c"
2541 break
2542 elif test -f "$ac_dir/shtool"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/shtool install -c"
2545 break
2546 fi
2547done
2548if test -z "$ac_aux_dir"; then
2549 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2550$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2551 { (exit 1); exit 1; }; }
2552fi
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561
2562
2563
2564
2565ac_config_headers="$ac_config_headers config/config.h"
2566
2567ac_config_commands="$ac_config_commands magick/magick-config.h"
2568
2569ac_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"
2570
2571
2572#
2573# Save initial user-tunable values
2574#
2575USER_LIBS=$LIBS
2576for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2577 eval isset=\${$var+set}
2578 if test "$isset" = 'set'; then
2579 eval val=$`echo $var`
2580 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2581 fi
2582done
2583
2584
2585CONFIGURE_ARGS="$0 ${ac_configure_args}"
2586
2587
2588# Source file containing package/library versioning information.
2589. ${srcdir}/version.sh
2590
2591echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2592# Make sure we can run config.sub.
2593$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2597
2598{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2599$as_echo_n "checking build system type... " >&6; }
2600if test "${ac_cv_build+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2602else
2603 ac_build_alias=$build_alias
2604test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606test "x$ac_build_alias" = x &&
2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2614
2615fi
2616{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2617$as_echo "$ac_cv_build" >&6; }
2618case $ac_cv_build in
2619*-*-*) ;;
2620*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2623esac
2624build=$ac_cv_build
2625ac_save_IFS=$IFS; IFS='-'
2626set x $ac_cv_build
2627shift
2628build_cpu=$1
2629build_vendor=$2
2630shift; shift
2631# Remember, the first character of IFS is used to create $*,
2632# except with old shells:
2633build_os=$*
2634IFS=$ac_save_IFS
2635case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636
2637
2638{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2639$as_echo_n "checking host system type... " >&6; }
2640if test "${ac_cv_host+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test "x$host_alias" = x; then
2644 ac_cv_host=$ac_cv_build
2645else
2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2650fi
2651
2652fi
2653{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2654$as_echo "$ac_cv_host" >&6; }
2655case $ac_cv_host in
2656*-*-*) ;;
2657*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2660esac
2661host=$ac_cv_host
2662ac_save_IFS=$IFS; IFS='-'
2663set x $ac_cv_host
2664shift
2665host_cpu=$1
2666host_vendor=$2
2667shift; shift
2668# Remember, the first character of IFS is used to create $*,
2669# except with old shells:
2670host_os=$*
2671IFS=$ac_save_IFS
2672case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673
2674
2675{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2676$as_echo_n "checking target system type... " >&6; }
2677if test "${ac_cv_target+set}" = set; then
2678 $as_echo_n "(cached) " >&6
2679else
2680 if test "x$target_alias" = x; then
2681 ac_cv_target=$ac_cv_host
2682else
2683 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2684 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2685$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2686 { (exit 1); exit 1; }; }
2687fi
2688
2689fi
2690{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2691$as_echo "$ac_cv_target" >&6; }
2692case $ac_cv_target in
2693*-*-*) ;;
2694*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2695$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2696 { (exit 1); exit 1; }; };;
2697esac
2698target=$ac_cv_target
2699ac_save_IFS=$IFS; IFS='-'
2700set x $ac_cv_target
2701shift
2702target_cpu=$1
2703target_vendor=$2
2704shift; shift
2705# Remember, the first character of IFS is used to create $*,
2706# except with old shells:
2707target_os=$*
2708IFS=$ac_save_IFS
2709case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2710
2711
2712# The aliases save the names the user supplied, while $host etc.
2713# will get canonicalized.
2714test -n "$target_alias" &&
2715 test "$program_prefix$program_suffix$program_transform_name" = \
2716 NONENONEs,x,x, &&
2717 program_prefix=${target_alias}-
2718
2719# Substitute library versioning
2720
2721
2722# Ensure that make can run correctly
2723{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2724$as_echo_n "checking whether build environment is sane... " >&6; }
2725# Just in case
2726sleep 1
2727echo timestamp > conftest.file
2728# Reject unsafe characters in $srcdir or the absolute working directory
2729# name. Accept space and tab only in the latter.
2730am_lf='
2731'
2732case `pwd` in
2733 *[\\\"\#\$\&\'\`$am_lf]*)
2734 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2735$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2736 { (exit 1); exit 1; }; };;
2737esac
2738case $srcdir in
2739 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2740 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2741$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2742 { (exit 1); exit 1; }; };;
2743esac
2744
2745# Do `set' in a subshell so we don't clobber the current shell's
2746# arguments. Must try -L first in case configure is actually a
2747# symlink; some systems play weird games with the mod time of symlinks
2748# (eg FreeBSD returns the mod time of the symlink's containing
2749# directory).
2750if (
2751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2752 if test "$*" = "X"; then
2753 # -L didn't work.
2754 set X `ls -t "$srcdir/configure" conftest.file`
2755 fi
2756 rm -f conftest.file
2757 if test "$*" != "X $srcdir/configure conftest.file" \
2758 && test "$*" != "X conftest.file $srcdir/configure"; then
2759
2760 # If neither matched, then we have a broken ls. This can happen
2761 # if, for instance, CONFIG_SHELL is bash and it inherits a
2762 # broken ls alias from the environment. This has actually
2763 # happened. Such a system could not be considered "sane".
2764 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2765alias in your environment" >&5
2766$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2767alias in your environment" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771 test "$2" = conftest.file
2772 )
2773then
2774 # Ok.
2775 :
2776else
2777 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2778Check your system clock" >&5
2779$as_echo "$as_me: error: newly created file is older than distributed files!
2780Check your system clock" >&2;}
2781 { (exit 1); exit 1; }; }
2782fi
2783{ $as_echo "$as_me:$LINENO: result: yes" >&5
2784$as_echo "yes" >&6; }
2785
2786am__api_version='1.11'
2787
2788# Find a good install program. We prefer a C program (faster),
2789# so one script is as good as another. But avoid the broken or
2790# incompatible versions:
2791# SysV /etc/install, /usr/sbin/install
2792# SunOS /usr/etc/install
2793# IRIX /sbin/install
2794# AIX /bin/install
2795# AmigaOS /C/install, which installs bootblocks on floppy discs
2796# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2797# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2798# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2799# OS/2's system install, which has a completely different semantic
2800# ./install, which can be erroneously created by make from ./install.sh.
2801# Reject install programs that cannot install multiple files.
2802{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2803$as_echo_n "checking for a BSD-compatible install... " >&6; }
2804if test -z "$INSTALL"; then
2805if test "${ac_cv_path_install+set}" = set; then
2806 $as_echo_n "(cached) " >&6
2807else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 # Account for people who put trailing slashes in PATH elements.
2814case $as_dir/ in
2815 ./ | .// | /cC/* | \
2816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2817 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2818 /usr/ucb/* ) ;;
2819 *)
2820 # OSF1 and SCO ODT 3.0 have their own names for install.
2821 # Don't use installbsd from OSF since it installs stuff as root
2822 # by default.
2823 for ac_prog in ginstall scoinst install; do
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2826 if test $ac_prog = install &&
2827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2828 # AIX install. It has an incompatible calling convention.
2829 :
2830 elif test $ac_prog = install &&
2831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2832 # program-specific install script used by HP pwplus--don't use.
2833 :
2834 else
2835 rm -rf conftest.one conftest.two conftest.dir
2836 echo one > conftest.one
2837 echo two > conftest.two
2838 mkdir conftest.dir
2839 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2840 test -s conftest.one && test -s conftest.two &&
2841 test -s conftest.dir/conftest.one &&
2842 test -s conftest.dir/conftest.two
2843 then
2844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2845 break 3
2846 fi
2847 fi
2848 fi
2849 done
2850 done
2851 ;;
2852esac
2853
2854done
2855IFS=$as_save_IFS
2856
2857rm -rf conftest.one conftest.two conftest.dir
2858
2859fi
2860 if test "${ac_cv_path_install+set}" = set; then
2861 INSTALL=$ac_cv_path_install
2862 else
2863 # As a last resort, use the slow shell script. Don't cache a
2864 # value for INSTALL within a source directory, because that will
2865 # break other packages using the cache if that directory is
2866 # removed, or if the value is a relative name.
2867 INSTALL=$ac_install_sh
2868 fi
2869fi
2870{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2871$as_echo "$INSTALL" >&6; }
2872
2873# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2874# It thinks the first close brace ends the variable substitution.
2875test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2876
2877test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2878
2879test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2880
2881test "$program_prefix" != NONE &&
2882 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2883# Use a double $ so make ignores it.
2884test "$program_suffix" != NONE &&
2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886# Double any \ or $.
2887# By default was `s,x,x', remove it if useless.
2888ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890
2891# expand $ac_aux_dir to an absolute path
2892am_aux_dir=`cd $ac_aux_dir && pwd`
2893
2894if test x"${MISSING+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 *)
2899 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2900 esac
2901fi
2902# Use eval to expand $SHELL
2903if eval "$MISSING --run true"; then
2904 am_missing_run="$MISSING --run "
2905else
2906 am_missing_run=
2907 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2908$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2909fi
2910
2911if test x"${install_sh}" != xset; then
2912 case $am_aux_dir in
2913 *\ * | *\ *)
2914 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 *)
2916 install_sh="\${SHELL} $am_aux_dir/install-sh"
2917 esac
2918fi
2919
2920# Installed binaries are usually stripped using `strip' when the user
2921# run `make install-strip'. However `strip' might not be the right
2922# tool to use in cross-compilation environments, therefore Automake
2923# will honor the `STRIP' environment variable to overrule this program.
2924if test "$cross_compiling" != no; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}strip; ac_word=$2
2928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if test "${ac_cv_prog_STRIP+set}" = set; then
2931 $as_echo_n "(cached) " >&6
2932else
2933 if test -n "$STRIP"; then
2934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953STRIP=$ac_cv_prog_STRIP
2954if test -n "$STRIP"; then
2955 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2956$as_echo "$STRIP" >&6; }
2957else
2958 { $as_echo "$as_me:$LINENO: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$ac_cv_prog_STRIP"; then
2965 ac_ct_STRIP=$STRIP
2966 # Extract the first word of "strip", so it can be a program name with args.
2967set dummy strip; ac_word=$2
2968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2972else
2973 if test -n "$ac_ct_STRIP"; then
2974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_STRIP="strip"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994if test -n "$ac_ct_STRIP"; then
2995 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2996$as_echo "$ac_ct_STRIP" >&6; }
2997else
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002 if test "x$ac_ct_STRIP" = x; then
3003 STRIP=":"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011 STRIP=$ac_ct_STRIP
3012 fi
3013else
3014 STRIP="$ac_cv_prog_STRIP"
3015fi
3016
3017fi
3018INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3021$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3022if test -z "$MKDIR_P"; then
3023 if test "${ac_cv_path_mkdir+set}" = set; then
3024 $as_echo_n "(cached) " >&6
3025else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in mkdir gmkdir; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3034 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035 'mkdir (GNU coreutils) '* | \
3036 'mkdir (coreutils) '* | \
3037 'mkdir (fileutils) '4.1*)
3038 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3039 break 3;;
3040 esac
3041 done
3042 done
3043done
3044IFS=$as_save_IFS
3045
3046fi
3047
3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 test -d ./--version && rmdir ./--version
3056 MKDIR_P="$ac_install_sh -d"
3057 fi
3058fi
3059{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3060$as_echo "$MKDIR_P" >&6; }
3061
3062mkdir_p="$MKDIR_P"
3063case $mkdir_p in
3064 [\\/$]* | ?:[\\/]*) ;;
3065 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3066esac
3067
3068for ac_prog in gawk mawk nawk awk
3069do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071set dummy $ac_prog; ac_word=$2
3072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if test "${ac_cv_prog_AWK+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3076else
3077 if test -n "$AWK"; then
3078 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_AWK="$ac_prog"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092done
3093IFS=$as_save_IFS
3094
3095fi
3096fi
3097AWK=$ac_cv_prog_AWK
3098if test -n "$AWK"; then
3099 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3100$as_echo "$AWK" >&6; }
3101else
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106
3107 test -n "$AWK" && break
3108done
3109
3110{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3111$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3112set x ${MAKE-make}
3113ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3114if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3115 $as_echo_n "(cached) " >&6
3116else
3117 cat >conftest.make <<\_ACEOF
3118SHELL = /bin/sh
3119all:
3120 @echo '@@@%%%=$(MAKE)=@@@%%%'
3121_ACEOF
3122# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3123case `${MAKE-make} -f conftest.make 2>/dev/null` in
3124 *@@@%%%=?*=@@@%%%*)
3125 eval ac_cv_prog_make_${ac_make}_set=yes;;
3126 *)
3127 eval ac_cv_prog_make_${ac_make}_set=no;;
3128esac
3129rm -f conftest.make
3130fi
3131if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3132 { $as_echo "$as_me:$LINENO: result: yes" >&5
3133$as_echo "yes" >&6; }
3134 SET_MAKE=
3135else
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137$as_echo "no" >&6; }
3138 SET_MAKE="MAKE=${MAKE-make}"
3139fi
3140
3141rm -rf .tst 2>/dev/null
3142mkdir .tst 2>/dev/null
3143if test -d .tst; then
3144 am__leading_dot=.
3145else
3146 am__leading_dot=_
3147fi
3148rmdir .tst 2>/dev/null
3149
3150if test "`cd $srcdir && pwd`" != "`pwd`"; then
3151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3152 # is not polluted with repeated "-I."
3153 am__isrc=' -I$(srcdir)'
3154 # test to see if srcdir already configured
3155 if test -f $srcdir/config.status; then
3156 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3157$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160fi
3161
3162# test whether we have cygpath
3163if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169fi
3170
3171
3172# Define the identity of the package.
3173 PACKAGE=$PACKAGE_NAME
3174 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3175
3176
3177# Some tools Automake needs.
3178
3179ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3180
3181
3182AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3183
3184
3185AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3186
3187
3188AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3189
3190
3191MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3192
3193# We need awk for the "check" target. The system "awk" is bad on
3194# some platforms.
3195# Always define AMTAR for backward compatibility.
3196
3197AMTAR=${AMTAR-"${am_missing_run}tar"}
3198
3199am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3200
3201
3202
3203
3204
3205
3206# Enable support for silent build rules
3207# Check whether --enable-silent-rules was given.
3208if test "${enable_silent_rules+set}" = set; then
3209 enableval=$enable_silent_rules;
3210fi
3211
3212case $enable_silent_rules in
3213yes) AM_DEFAULT_VERBOSITY=0;;
3214no) AM_DEFAULT_VERBOSITY=1;;
3215*) AM_DEFAULT_VERBOSITY=0;;
3216esac
3217AM_BACKSLASH='\'
3218
3219
3220MAGICK_LIB_VERSION="0x"
3221if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3222 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3223fi
3224MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3225if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3226 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3227fi
3228MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3229if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3230 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3231fi
3232MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3233
3234
3235# Definition used to define MagickLibVersionText in version.h
3236MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3237
3238
3239# Definition used to define MagickLibVersionNumber in version.h
3240MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3241
3242
3243# Regenerate config.status if ChangeLog or version.sh is updated.
3244CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3245
3246
3247PERLMAINCC=$CC
3248
3249MAGICK_CFLAGS=''
3250MAGICK_CPPFLAGS=$CPPFLAGS_USER
3251MAGICK_PCFLAGS=$CPPFLAGS_USER
3252MAGICK_LDFLAGS=''
3253MAGICK_LIBS=''
3254
3255#
3256# Evaluate shell variable equivalents to Makefile directory variables
3257#
3258if test "x$prefix" = xNONE; then
3259 prefix=$ac_default_prefix
3260fi
3261# Let make expand exec_prefix.
3262if test "x$exec_prefix" = xNONE; then
3263 exec_prefix='${prefix}'
3264fi
3265
3266#
3267eval "eval PREFIX_DIR=${prefix}"
3268
3269eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3270
3271eval "eval BIN_DIR=$bindir"
3272
3273eval "eval SBIN_DIR=$sbindir"
3274
3275eval "eval LIBEXEC_DIR=$libexecdir"
3276
3277eval "eval DATA_DIR=$datadir"
3278
3279eval "eval SYSCONF_DIR=$sysconfdir"
3280
3281eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3282
3283eval "eval LOCALSTATE_DIR=$localstatedir"
3284
3285eval "eval LIB_DIR=$libdir"
3286
3287eval "eval INCLUDE_DIR=$includedir"
3288
3289eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3290
3291eval "eval INFO_DIR=$infodir"
3292
3293eval "eval MAN_DIR=$mandir"
3294
3295
3296# Get full paths to source and build directories
3297srcdirfull="`cd $srcdir && pwd`"
3298builddir="`pwd`"
3299
3300#
3301# Compute variables useful for running uninstalled software.
3302#
3303MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3304MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3305MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3306MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3307DIRSEP=':'
3308case "${build_os}" in
3309 mingw* )
3310 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3311 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3312 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3313 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3314 DIRSEP=';'
3315 ;;
3316esac
3317case "${host_os}" in
3318 mingw* )
3319 DIRSEP=';'
3320 ;;
3321esac
3322
3323
3324
3325
3326
3327
3328# Check for programs
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3336set dummy ${ac_tool_prefix}gcc; ac_word=$2
3337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3338$as_echo_n "checking for $ac_word... " >&6; }
3339if test "${ac_cv_prog_CC+set}" = set; then
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356done
3357done
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
3364 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3365$as_echo "$CC" >&6; }
3366else
3367 { $as_echo "$as_me:$LINENO: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372fi
3373if test -z "$ac_cv_prog_CC"; then
3374 ac_ct_CC=$CC
3375 # Extract the first word of "gcc", so it can be a program name with args.
3376set dummy gcc; ac_word=$2
3377{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_ac_ct_CC="gcc"
3393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405$as_echo "$ac_ct_CC" >&6; }
3406else
3407 { $as_echo "$as_me:$LINENO: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411 if test "x$ac_ct_CC" = x; then
3412 CC=""
3413 else
3414 case $cross_compiling:$ac_tool_warned in
3415yes:)
3416{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418ac_tool_warned=yes ;;
3419esac
3420 CC=$ac_ct_CC
3421 fi
3422else
3423 CC="$ac_cv_prog_CC"
3424fi
3425
3426if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429set dummy ${ac_tool_prefix}cc; ac_word=$2
3430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3431$as_echo_n "checking for $ac_word... " >&6; }
3432if test "${ac_cv_prog_CC+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3434else
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3437else
3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH
3440do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_CC="${ac_tool_prefix}cc"
3446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449done
3450done
3451IFS=$as_save_IFS
3452
3453fi
3454fi
3455CC=$ac_cv_prog_CC
3456if test -n "$CC"; then
3457 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3458$as_echo "$CC" >&6; }
3459else
3460 { $as_echo "$as_me:$LINENO: result: no" >&5
3461$as_echo "no" >&6; }
3462fi
3463
3464
3465 fi
3466fi
3467if test -z "$CC"; then
3468 # Extract the first word of "cc", so it can be a program name with args.
3469set dummy cc; ac_word=$2
3470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3471$as_echo_n "checking for $ac_word... " >&6; }
3472if test "${ac_cv_prog_CC+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3474else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477else
3478 ac_prog_rejected=no
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3487 ac_prog_rejected=yes
3488 continue
3489 fi
3490 ac_cv_prog_CC="cc"
3491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495done
3496IFS=$as_save_IFS
3497
3498if test $ac_prog_rejected = yes; then
3499 # We found a bogon in the path, so make sure we never use it.
3500 set dummy $ac_cv_prog_CC
3501 shift
3502 if test $# != 0; then
3503 # We chose a different compiler from the bogus one.
3504 # However, it has the same basename, so the bogon will be chosen
3505 # first if we set CC to just the basename; use the full file name.
3506 shift
3507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3508 fi
3509fi
3510fi
3511fi
3512CC=$ac_cv_prog_CC
3513if test -n "$CC"; then
3514 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3515$as_echo "$CC" >&6; }
3516else
3517 { $as_echo "$as_me:$LINENO: result: no" >&5
3518$as_echo "no" >&6; }
3519fi
3520
3521
3522fi
3523if test -z "$CC"; then
3524 if test -n "$ac_tool_prefix"; then
3525 for ac_prog in cl.exe
3526 do
3527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3530$as_echo_n "checking for $ac_word... " >&6; }
3531if test "${ac_cv_prog_CC+set}" = set; then
3532 $as_echo_n "(cached) " >&6
3533else
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548done
3549done
3550IFS=$as_save_IFS
3551
3552fi
3553fi
3554CC=$ac_cv_prog_CC
3555if test -n "$CC"; then
3556 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3557$as_echo "$CC" >&6; }
3558else
3559 { $as_echo "$as_me:$LINENO: result: no" >&5
3560$as_echo "no" >&6; }
3561fi
3562
3563
3564 test -n "$CC" && break
3565 done
3566fi
3567if test -z "$CC"; then
3568 ac_ct_CC=$CC
3569 for ac_prog in cl.exe
3570do
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572set dummy $ac_prog; ac_word=$2
3573{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3574$as_echo_n "checking for $ac_word... " >&6; }
3575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3576 $as_echo_n "(cached) " >&6
3577else
3578 if test -n "$ac_ct_CC"; then
3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580else
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 ac_cv_prog_ac_ct_CC="$ac_prog"
3589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3591 fi
3592done
3593done
3594IFS=$as_save_IFS
3595
3596fi
3597fi
3598ac_ct_CC=$ac_cv_prog_ac_ct_CC
3599if test -n "$ac_ct_CC"; then
3600 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3601$as_echo "$ac_ct_CC" >&6; }
3602else
3603 { $as_echo "$as_me:$LINENO: result: no" >&5
3604$as_echo "no" >&6; }
3605fi
3606
3607
3608 test -n "$ac_ct_CC" && break
3609done
3610
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615yes:)
3616{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618ac_tool_warned=yes ;;
3619esac
3620 CC=$ac_ct_CC
3621 fi
3622fi
3623
3624fi
3625
3626
3627test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3630See \`config.log' for more details." >&5
3631$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3632See \`config.log' for more details." >&2;}
3633 { (exit 1); exit 1; }; }; }
3634
3635# Provide some information about the compiler.
3636$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3637set X $ac_compile
3638ac_compiler=$2
3639{ (ac_try="$ac_compiler --version >&5"
3640case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645$as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compiler --version >&5") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650{ (ac_try="$ac_compiler -v >&5"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656$as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compiler -v >&5") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }
3661{ (ac_try="$ac_compiler -V >&5"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3667$as_echo "$ac_try_echo") >&5
3668 (eval "$ac_compiler -V >&5") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }
3672
3673cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
3679
3680int
3681main ()
3682{
3683
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688ac_clean_files_save=$ac_clean_files
3689ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3690# Try to create an executable without -o first, disregard a.out.
3691# It will help us diagnose broken compilers, and finding out an intuition
3692# of exeext.
3693{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3694$as_echo_n "checking for C compiler default output file name... " >&6; }
3695ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3696
3697# The possible output files:
3698ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3699
3700ac_rmfiles=
3701for ac_file in $ac_files
3702do
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3706 esac
3707done
3708rm -f $ac_rmfiles
3709
3710if { (ac_try="$ac_link_default"
3711case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716$as_echo "$ac_try_echo") >&5
3717 (eval "$ac_link_default") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; then
3721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3722# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3723# in a Makefile. We should not override ac_cv_exeext if it was cached,
3724# so that the user can short-circuit this test for compilers unknown to
3725# Autoconf.
3726for ac_file in $ac_files ''
3727do
3728 test -f "$ac_file" || continue
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3731 ;;
3732 [ab].out )
3733 # We found the default executable, but exeext='' is most
3734 # certainly right.
3735 break;;
3736 *.* )
3737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3738 then :; else
3739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740 fi
3741 # We set ac_cv_exeext here because the later test for it is not
3742 # safe: cross compilers may not add the suffix if given an `-o'
3743 # argument, so we may need to know it at that point already.
3744 # Even if this section looks crufty: it has the advantage of
3745 # actually working.
3746 break;;
3747 * )
3748 break;;
3749 esac
3750done
3751test "$ac_cv_exeext" = no && ac_cv_exeext=
3752
3753else
3754 ac_file=''
3755fi
3756
3757{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3758$as_echo "$ac_file" >&6; }
3759if test -z "$ac_file"; then
3760 $as_echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3766See \`config.log' for more details." >&5
3767$as_echo "$as_me: error: C compiler cannot create executables
3768See \`config.log' for more details." >&2;}
3769 { (exit 77); exit 77; }; }; }
3770fi
3771
3772ac_exeext=$ac_cv_exeext
3773
3774# Check that the compiler produces executables we can run. If not, either
3775# the compiler is broken, or we cross compile.
3776{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3777$as_echo_n "checking whether the C compiler works... " >&6; }
3778# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3779# If not cross compiling, check that we can run a simple program.
3780if test "$cross_compiling" != yes; then
3781 if { ac_try='./$ac_file'
3782 { (case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785esac
3786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787$as_echo "$ac_try_echo") >&5
3788 (eval "$ac_try") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 cross_compiling=no
3793 else
3794 if test "$cross_compiling" = maybe; then
3795 cross_compiling=yes
3796 else
3797 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3800If you meant to cross compile, use \`--host'.
3801See \`config.log' for more details." >&5
3802$as_echo "$as_me: error: cannot run C compiled programs.
3803If you meant to cross compile, use \`--host'.
3804See \`config.log' for more details." >&2;}
3805 { (exit 1); exit 1; }; }; }
3806 fi
3807 fi
3808fi
3809{ $as_echo "$as_me:$LINENO: result: yes" >&5
3810$as_echo "yes" >&6; }
3811
3812rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813ac_clean_files=$ac_clean_files_save
3814# Check that the compiler produces executables we can run. If not, either
3815# the compiler is broken, or we cross compile.
3816{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3817$as_echo_n "checking whether we are cross compiling... " >&6; }
3818{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3819$as_echo "$cross_compiling" >&6; }
3820
3821{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3822$as_echo_n "checking for suffix of executables... " >&6; }
3823if { (ac_try="$ac_link"
3824case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827esac
3828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3829$as_echo "$ac_try_echo") >&5
3830 (eval "$ac_link") 2>&5
3831 ac_status=$?
3832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; then
3834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3835# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3836# work properly (i.e., refer to `conftest.exe'), while it won't with
3837# `rm'.
3838for ac_file in conftest.exe conftest conftest.*; do
3839 test -f "$ac_file" || continue
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 break;;
3844 * ) break;;
3845 esac
3846done
3847else
3848 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3851See \`config.log' for more details." >&5
3852$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3853See \`config.log' for more details." >&2;}
3854 { (exit 1); exit 1; }; }; }
3855fi
3856
3857rm -f conftest$ac_cv_exeext
3858{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3859$as_echo "$ac_cv_exeext" >&6; }
3860
3861rm -f conftest.$ac_ext
3862EXEEXT=$ac_cv_exeext
3863ac_exeext=$EXEEXT
3864{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3865$as_echo_n "checking for suffix of object files... " >&6; }
3866if test "${ac_cv_objext+set}" = set; then
3867 $as_echo_n "(cached) " >&6
3868else
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
3879
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.o conftest.obj
3885if { (ac_try="$ac_compile"
3886case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3891$as_echo "$ac_try_echo") >&5
3892 (eval "$ac_compile") 2>&5
3893 ac_status=$?
3894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; then
3896 for ac_file in conftest.o conftest.obj conftest.*; do
3897 test -f "$ac_file" || continue;
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3901 break;;
3902 esac
3903done
3904else
3905 $as_echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3911See \`config.log' for more details." >&5
3912$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3913See \`config.log' for more details." >&2;}
3914 { (exit 1); exit 1; }; }; }
3915fi
3916
3917rm -f conftest.$ac_cv_objext conftest.$ac_ext
3918fi
3919{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3920$as_echo "$ac_cv_objext" >&6; }
3921OBJEXT=$ac_cv_objext
3922ac_objext=$OBJEXT
3923{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3924$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3925if test "${ac_cv_c_compiler_gnu+set}" = set; then
3926 $as_echo_n "(cached) " >&6
3927else
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934
3935int
3936main ()
3937{
3938#ifndef __GNUC__
3939 choke me
3940#endif
3941
3942 ;
3943 return 0;
3944}
3945_ACEOF
3946rm -f conftest.$ac_objext
3947if { (ac_try="$ac_compile"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953$as_echo "$ac_try_echo") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 ac_compiler_gnu=yes
3965else
3966 $as_echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 ac_compiler_gnu=no
3970fi
3971
3972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973ac_cv_c_compiler_gnu=$ac_compiler_gnu
3974
3975fi
3976{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3977$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978if test $ac_compiler_gnu = yes; then
3979 GCC=yes
3980else
3981 GCC=
3982fi
3983ac_test_CFLAGS=${CFLAGS+set}
3984ac_save_CFLAGS=$CFLAGS
3985{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3986$as_echo_n "checking whether $CC accepts -g... " >&6; }
3987if test "${ac_cv_prog_cc_g+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3989else
3990 ac_save_c_werror_flag=$ac_c_werror_flag
3991 ac_c_werror_flag=yes
3992 ac_cv_prog_cc_g=no
3993 CFLAGS="-g"
3994 cat >conftest.$ac_ext <<_ACEOF
3995/* confdefs.h. */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004
4005 ;
4006 return 0;
4007}
4008_ACEOF
4009rm -f conftest.$ac_objext
4010if { (ac_try="$ac_compile"
4011case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016$as_echo "$ac_try_echo") >&5
4017 (eval "$ac_compile") 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } && {
4024 test -z "$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4026 } && test -s conftest.$ac_objext; then
4027 ac_cv_prog_cc_g=yes
4028else
4029 $as_echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 CFLAGS=""
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039
4040int
4041main ()
4042{
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (ac_try="$ac_compile"
4050case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4055$as_echo "$ac_try_echo") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } && {
4063 test -z "$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 } && test -s conftest.$ac_objext; then
4066 :
4067else
4068 $as_echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 CFLAGS="-g"
4073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088rm -f conftest.$ac_objext
4089if { (ac_try="$ac_compile"
4090case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4095$as_echo "$ac_try_echo") >&5
4096 (eval "$ac_compile") 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && {
4103 test -z "$ac_c_werror_flag" ||
4104 test ! -s conftest.err
4105 } && test -s conftest.$ac_objext; then
4106 ac_cv_prog_cc_g=yes
4107else
4108 $as_echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111
4112fi
4113
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4122fi
4123{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4124$as_echo "$ac_cv_prog_cc_g" >&6; }
4125if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4129 CFLAGS="-g -O2"
4130 else
4131 CFLAGS="-g"
4132 fi
4133else
4134 if test "$GCC" = yes; then
4135 CFLAGS="-O2"
4136 else
4137 CFLAGS=
4138 fi
4139fi
4140{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4141$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142if test "${ac_cv_prog_cc_c89+set}" = set; then
4143 $as_echo_n "(cached) " >&6
4144else
4145 ac_cv_prog_cc_c89=no
4146ac_save_CC=$CC
4147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153#include <stdarg.h>
4154#include <stdio.h>
4155#include <sys/types.h>
4156#include <sys/stat.h>
4157/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4158struct buf { int x; };
4159FILE * (*rcsopen) (struct buf *, struct stat *, int);
4160static char *e (p, i)
4161 char **p;
4162 int i;
4163{
4164 return p[i];
4165}
4166static char *f (char * (*g) (char **, int), char **p, ...)
4167{
4168 char *s;
4169 va_list v;
4170 va_start (v,p);
4171 s = g (p, va_arg (v,int));
4172 va_end (v);
4173 return s;
4174}
4175
4176/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4177 function prototypes and stuff, but not '\xHH' hex character constants.
4178 These don't provoke an error unfortunately, instead are silently treated
4179 as 'x'. The following induces an error, until -std is added to get
4180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4181 array size at least. It's necessary to write '\x00'==0 to get something
4182 that's true only with -std. */
4183int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4184
4185/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4186 inside strings and character constants. */
4187#define FOO(x) 'x'
4188int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4189
4190int test (int i, double x);
4191struct s1 {int (*f) (int a);};
4192struct s2 {int (*f) (double a);};
4193int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4194int argc;
4195char **argv;
4196int
4197main ()
4198{
4199return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206do
4207 CC="$ac_save_CC $ac_arg"
4208 rm -f conftest.$ac_objext
4209if { (ac_try="$ac_compile"
4210case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4215$as_echo "$ac_try_echo") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } && {
4223 test -z "$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4225 } && test -s conftest.$ac_objext; then
4226 ac_cv_prog_cc_c89=$ac_arg
4227else
4228 $as_echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231
4232fi
4233
4234rm -f core conftest.err conftest.$ac_objext
4235 test "x$ac_cv_prog_cc_c89" != "xno" && break
4236done
4237rm -f conftest.$ac_ext
4238CC=$ac_save_CC
4239
4240fi
4241# AC_CACHE_VAL
4242case "x$ac_cv_prog_cc_c89" in
4243 x)
4244 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4245$as_echo "none needed" >&6; } ;;
4246 xno)
4247 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4248$as_echo "unsupported" >&6; } ;;
4249 *)
4250 CC="$CC $ac_cv_prog_cc_c89"
4251 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4252$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4253esac
4254
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261DEPDIR="${am__leading_dot}deps"
4262
4263ac_config_commands="$ac_config_commands depfiles"
4264
4265
4266am_make=${MAKE-make}
4267cat > confinc << 'END'
4268am__doit:
4269 @echo this is the am__doit target
4270.PHONY: am__doit
4271END
4272# If we don't find an include directive, just comment out the code.
4273{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4274$as_echo_n "checking for style of include used by $am_make... " >&6; }
4275am__include="#"
4276am__quote=
4277_am_result=none
4278# First try GNU make style include.
4279echo "include confinc" > confmf
4280# Ignore all kinds of additional output from `make'.
4281case `$am_make -s -f confmf 2> /dev/null` in #(
4282*the\ am__doit\ target*)
4283 am__include=include
4284 am__quote=
4285 _am_result=GNU
4286 ;;
4287esac
4288# Now try BSD make style include.
4289if test "$am__include" = "#"; then
4290 echo '.include "confinc"' > confmf
4291 case `$am_make -s -f confmf 2> /dev/null` in #(
4292 *the\ am__doit\ target*)
4293 am__include=.include
4294 am__quote="\""
4295 _am_result=BSD
4296 ;;
4297 esac
4298fi
4299
4300
4301{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4302$as_echo "$_am_result" >&6; }
4303rm -f confinc confmf
4304
4305# Check whether --enable-dependency-tracking was given.
4306if test "${enable_dependency_tracking+set}" = set; then
4307 enableval=$enable_dependency_tracking;
4308fi
4309
4310if test "x$enable_dependency_tracking" != xno; then
4311 am_depcomp="$ac_aux_dir/depcomp"
4312 AMDEPBACKSLASH='\'
4313fi
4314 if test "x$enable_dependency_tracking" != xno; then
4315 AMDEP_TRUE=
4316 AMDEP_FALSE='#'
4317else
4318 AMDEP_TRUE='#'
4319 AMDEP_FALSE=
4320fi
4321
4322
4323
4324depcc="$CC" am_compiler_list=
4325
4326{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4327$as_echo_n "checking dependency style of $depcc... " >&6; }
4328if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4329 $as_echo_n "(cached) " >&6
4330else
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
4335 # making a dummy file named `D' -- because `-MD' means `put the output
4336 # in D'.
4337 mkdir conftest.dir
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4341 cd conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4347 # directory.
4348 mkdir sub
4349
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 fi
4354 am__universal=false
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 esac
4358
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4363 #
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4367 : > sub/conftest.c
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371 # Solaris 8's {/usr,}/bin/sh.
4372 touch sub/conftst$i.h
4373 done
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
4376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle `-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4382 case $depmode in
4383 gcc)
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4386 ;;
4387 nosideeffect)
4388 # after this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested
4390 if test "x$enable_dependency_tracking" = xyes; then
4391 continue
4392 else
4393 break
4394 fi
4395 ;;
4396 msvisualcpp | msvcmsys)
4397 # This compiler won't grok `-c -o', but also, the minuso test has
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4401 am__minus_obj=
4402 ;;
4403 none) break ;;
4404 esac
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4424 break
4425 fi
4426 fi
4427 done
4428
4429 cd ..
4430 rm -rf conftest.dir
4431else
4432 am_cv_CC_dependencies_compiler_type=none
4433fi
4434
4435fi
4436{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4437$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
4440 if
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_TRUE=
4444 am__fastdepCC_FALSE='#'
4445else
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
4448fi
4449
4450
4451 case $ac_cv_prog_cc_stdc in
4452 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4453 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4454$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4455if test "${ac_cv_prog_cc_c99+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457else
4458 ac_cv_prog_cc_c99=no
4459ac_save_CC=$CC
4460cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
4466#include <stdarg.h>
4467#include <stdbool.h>
4468#include <stdlib.h>
4469#include <wchar.h>
4470#include <stdio.h>
4471
4472// Check varargs macros. These examples are taken from C99 6.10.3.5.
4473#define debug(...) fprintf (stderr, __VA_ARGS__)
4474#define showlist(...) puts (#__VA_ARGS__)
4475#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4476static void
4477test_varargs_macros (void)
4478{
4479 int x = 1234;
4480 int y = 5678;
4481 debug ("Flag");
4482 debug ("X = %d\n", x);
4483 showlist (The first, second, and third items.);
4484 report (x>y, "x is %d but y is %d", x, y);
4485}
4486
4487// Check long long types.
4488#define BIG64 18446744073709551615ull
4489#define BIG32 4294967295ul
4490#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4491#if !BIG_OK
4492 your preprocessor is broken;
4493#endif
4494#if BIG_OK
4495#else
4496 your preprocessor is broken;
4497#endif
4498static long long int bignum = -9223372036854775807LL;
4499static unsigned long long int ubignum = BIG64;
4500
4501struct incomplete_array
4502{
4503 int datasize;
4504 double data[];
4505};
4506
4507struct named_init {
4508 int number;
4509 const wchar_t *name;
4510 double average;
4511};
4512
4513typedef const char *ccp;
4514
4515static inline int
4516test_restrict (ccp restrict text)
4517{
4518 // See if C++-style comments work.
4519 // Iterate through items via the restricted pointer.
4520 // Also check for declarations in for loops.
4521 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4522 continue;
4523 return 0;
4524}
4525
4526// Check varargs and va_copy.
4527static void
4528test_varargs (const char *format, ...)
4529{
4530 va_list args;
4531 va_start (args, format);
4532 va_list args_copy;
4533 va_copy (args_copy, args);
4534
4535 const char *str;
4536 int number;
4537 float fnumber;
4538
4539 while (*format)
4540 {
4541 switch (*format++)
4542 {
4543 case 's': // string
4544 str = va_arg (args_copy, const char *);
4545 break;
4546 case 'd': // int
4547 number = va_arg (args_copy, int);
4548 break;
4549 case 'f': // float
4550 fnumber = va_arg (args_copy, double);
4551 break;
4552 default:
4553 break;
4554 }
4555 }
4556 va_end (args_copy);
4557 va_end (args);
4558}
4559
4560int
4561main ()
4562{
4563
4564 // Check bool.
4565 _Bool success = false;
4566
4567 // Check restrict.
4568 if (test_restrict ("String literal") == 0)
4569 success = true;
4570 char *restrict newvar = "Another string";
4571
4572 // Check varargs.
4573 test_varargs ("s, d' f .", "string", 65, 34.234);
4574 test_varargs_macros ();
4575
4576 // Check flexible array members.
4577 struct incomplete_array *ia =
4578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4579 ia->datasize = 10;
4580 for (int i = 0; i < ia->datasize; ++i)
4581 ia->data[i] = i * 1.234;
4582
4583 // Check named initializers.
4584 struct named_init ni = {
4585 .number = 34,
4586 .name = L"Test wide string",
4587 .average = 543.34343,
4588 };
4589
4590 ni.number = 58;
4591
4592 int dynamic_array[ni.number];
4593 dynamic_array[ni.number - 1] = 543;
4594
4595 // work around unused variable warnings
4596 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4597 || dynamic_array[ni.number - 1] != 543);
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4604do
4605 CC="$ac_save_CC $ac_arg"
4606 rm -f conftest.$ac_objext
4607if { (ac_try="$ac_compile"
4608case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613$as_echo "$ac_try_echo") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
4624 ac_cv_prog_cc_c99=$ac_arg
4625else
4626 $as_echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629
4630fi
4631
4632rm -f core conftest.err conftest.$ac_objext
4633 test "x$ac_cv_prog_cc_c99" != "xno" && break
4634done
4635rm -f conftest.$ac_ext
4636CC=$ac_save_CC
4637
4638fi
4639# AC_CACHE_VAL
4640case "x$ac_cv_prog_cc_c99" in
4641 x)
4642 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4643$as_echo "none needed" >&6; } ;;
4644 xno)
4645 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4646$as_echo "unsupported" >&6; } ;;
4647 *)
4648 CC="$CC $ac_cv_prog_cc_c99"
4649 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4650$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4651esac
4652if test "x$ac_cv_prog_cc_c99" != xno; then
4653 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4654else
4655 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4657if test "${ac_cv_prog_cc_c89+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4659else
4660 ac_cv_prog_cc_c89=no
4661ac_save_CC=$CC
4662cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
4668#include <stdarg.h>
4669#include <stdio.h>
4670#include <sys/types.h>
4671#include <sys/stat.h>
4672/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673struct buf { int x; };
4674FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675static char *e (p, i)
4676 char **p;
4677 int i;
4678{
4679 return p[i];
4680}
4681static char *f (char * (*g) (char **, int), char **p, ...)
4682{
4683 char *s;
4684 va_list v;
4685 va_start (v,p);
4686 s = g (p, va_arg (v,int));
4687 va_end (v);
4688 return s;
4689}
4690
4691/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
4694 as 'x'. The following induces an error, until -std is added to get
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
4697 that's true only with -std. */
4698int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4699
4700/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4702#define FOO(x) 'x'
4703int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4704
4705int test (int i, double x);
4706struct s1 {int (*f) (int a);};
4707struct s2 {int (*f) (double a);};
4708int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4709int argc;
4710char **argv;
4711int
4712main ()
4713{
4714return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4721do
4722 CC="$ac_save_CC $ac_arg"
4723 rm -f conftest.$ac_objext
4724if { (ac_try="$ac_compile"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730$as_echo "$ac_try_echo") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
4741 ac_cv_prog_cc_c89=$ac_arg
4742else
4743 $as_echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746
4747fi
4748
4749rm -f core conftest.err conftest.$ac_objext
4750 test "x$ac_cv_prog_cc_c89" != "xno" && break
4751done
4752rm -f conftest.$ac_ext
4753CC=$ac_save_CC
4754
4755fi
4756# AC_CACHE_VAL
4757case "x$ac_cv_prog_cc_c89" in
4758 x)
4759 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4760$as_echo "none needed" >&6; } ;;
4761 xno)
4762 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4763$as_echo "unsupported" >&6; } ;;
4764 *)
4765 CC="$CC $ac_cv_prog_cc_c89"
4766 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4768esac
4769if test "x$ac_cv_prog_cc_c89" != xno; then
4770 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4771else
4772 ac_cv_prog_cc_stdc=no
4773fi
4774
4775
4776fi
4777
4778 ;;
4779esac
4780 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4781$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4782 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4783 $as_echo_n "(cached) " >&6
4784fi
4785
4786 case $ac_cv_prog_cc_stdc in
4787 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4788$as_echo "unsupported" >&6; } ;;
4789 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4790$as_echo "none needed" >&6; } ;;
4791 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4792$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4793esac
4794
4795
4796ac_ext=c
4797ac_cpp='$CPP $CPPFLAGS'
4798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4802$as_echo_n "checking how to run the C preprocessor... " >&6; }
4803# On Suns, sometimes $CPP names a directory.
4804if test -n "$CPP" && test -d "$CPP"; then
4805 CPP=
4806fi
4807if test -z "$CPP"; then
4808 if test "${ac_cv_prog_CPP+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4810else
4811 # Double quotes because CPP needs to be expanded
4812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4813 do
4814 ac_preproc_ok=false
4815for ac_c_preproc_warn_flag in '' yes
4816do
4817 # Use a header file that comes with gcc, so configuring glibc
4818 # with a fresh cross-compiler works.
4819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4820 # <limits.h> exists even on freestanding compilers.
4821 # On the NeXT, cc -E runs the code through the compiler's parser,
4822 # not just through cpp. "Syntax error" is here to catch this case.
4823 cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
4829#ifdef __STDC__
4830# include <limits.h>
4831#else
4832# include <assert.h>
4833#endif
4834 Syntax error
4835_ACEOF
4836if { (ac_try="$ac_cpp conftest.$ac_ext"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4842$as_echo "$ac_try_echo") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 :
4854else
4855 $as_echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 # Broken: fails on valid input.
4859continue
4860fi
4861
4862rm -f conftest.err conftest.$ac_ext
4863
4864 # OK, works on sane cases. Now check whether nonexistent headers
4865 # can be detected and how.
4866 cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h. */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h. */
4872#include <ac_nonexistent.h>
4873_ACEOF
4874if { (ac_try="$ac_cpp conftest.$ac_ext"
4875case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878esac
4879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4880$as_echo "$ac_try_echo") >&5
4881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null && {
4888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4890 }; then
4891 # Broken: success on invalid input.
4892continue
4893else
4894 $as_echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 # Passes both tests.
4898ac_preproc_ok=:
4899break
4900fi
4901
4902rm -f conftest.err conftest.$ac_ext
4903
4904done
4905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906rm -f conftest.err conftest.$ac_ext
4907if $ac_preproc_ok; then
4908 break
4909fi
4910
4911 done
4912 ac_cv_prog_CPP=$CPP
4913
4914fi
4915 CPP=$ac_cv_prog_CPP
4916else
4917 ac_cv_prog_CPP=$CPP
4918fi
4919{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4920$as_echo "$CPP" >&6; }
4921ac_preproc_ok=false
4922for ac_c_preproc_warn_flag in '' yes
4923do
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936#ifdef __STDC__
4937# include <limits.h>
4938#else
4939# include <assert.h>
4940#endif
4941 Syntax error
4942_ACEOF
4943if { (ac_try="$ac_cpp conftest.$ac_ext"
4944case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947esac
4948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949$as_echo "$ac_try_echo") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 }; then
4960 :
4961else
4962 $as_echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 # Broken: fails on valid input.
4966continue
4967fi
4968
4969rm -f conftest.err conftest.$ac_ext
4970
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979#include <ac_nonexistent.h>
4980_ACEOF
4981if { (ac_try="$ac_cpp conftest.$ac_ext"
4982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
4986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4987$as_echo "$ac_try_echo") >&5
4988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null && {
4995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 }; then
4998 # Broken: success on invalid input.
4999continue
5000else
5001 $as_echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 # Passes both tests.
5005ac_preproc_ok=:
5006break
5007fi
5008
5009rm -f conftest.err conftest.$ac_ext
5010
5011done
5012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013rm -f conftest.err conftest.$ac_ext
5014if $ac_preproc_ok; then
5015 :
5016else
5017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5020See \`config.log' for more details." >&5
5021$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5022See \`config.log' for more details." >&2;}
5023 { (exit 1); exit 1; }; }; }
5024fi
5025
5026ac_ext=c
5027ac_cpp='$CPP $CPPFLAGS'
5028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5033$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5034if test "${ac_cv_path_SED+set}" = set; then
5035 $as_echo_n "(cached) " >&6
5036else
5037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5038 for ac_i in 1 2 3 4 5 6 7; do
5039 ac_script="$ac_script$as_nl$ac_script"
5040 done
5041 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5042 $as_unset ac_script || ac_script=
5043 if test -z "$SED"; then
5044 ac_path_SED_found=false
5045 # Loop through the user's path and test for each of PROGNAME-LIST
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_prog in sed gsed; do
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5054 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5055# Check for GNU ac_path_SED and select it if it is found.
5056 # Check for GNU $ac_path_SED
5057case `"$ac_path_SED" --version 2>&1` in
5058*GNU*)
5059 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5060*)
5061 ac_count=0
5062 $as_echo_n 0123456789 >"conftest.in"
5063 while :
5064 do
5065 cat "conftest.in" "conftest.in" >"conftest.tmp"
5066 mv "conftest.tmp" "conftest.in"
5067 cp "conftest.in" "conftest.nl"
5068 $as_echo '' >> "conftest.nl"
5069 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5071 ac_count=`expr $ac_count + 1`
5072 if test $ac_count -gt ${ac_path_SED_max-0}; then
5073 # Best one so far, save it but keep looking for a better one
5074 ac_cv_path_SED="$ac_path_SED"
5075 ac_path_SED_max=$ac_count
5076 fi
5077 # 10*(2^10) chars as input seems more than enough
5078 test $ac_count -gt 10 && break
5079 done
5080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081esac
5082
5083 $ac_path_SED_found && break 3
5084 done
5085 done
5086done
5087IFS=$as_save_IFS
5088 if test -z "$ac_cv_path_SED"; then
5089 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5090$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5091 { (exit 1); exit 1; }; }
5092 fi
5093else
5094 ac_cv_path_SED=$SED
5095fi
5096
5097fi
5098{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5099$as_echo "$ac_cv_path_SED" >&6; }
5100 SED="$ac_cv_path_SED"
5101 rm -f conftest.sed
5102
5103test -z "$SED" && SED=sed
5104Xsed="$SED -e 1s/^X//"
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5117$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5118if test "${ac_cv_path_GREP+set}" = set; then
5119 $as_echo_n "(cached) " >&6
5120else
5121 if test -z "$GREP"; then
5122 ac_path_GREP_found=false
5123 # Loop through the user's path and test for each of PROGNAME-LIST
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_prog in grep ggrep; do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5132 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5133# Check for GNU ac_path_GREP and select it if it is found.
5134 # Check for GNU $ac_path_GREP
5135case `"$ac_path_GREP" --version 2>&1` in
5136*GNU*)
5137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138*)
5139 ac_count=0
5140 $as_echo_n 0123456789 >"conftest.in"
5141 while :
5142 do
5143 cat "conftest.in" "conftest.in" >"conftest.tmp"
5144 mv "conftest.tmp" "conftest.in"
5145 cp "conftest.in" "conftest.nl"
5146 $as_echo 'GREP' >> "conftest.nl"
5147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5149 ac_count=`expr $ac_count + 1`
5150 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5151 # Best one so far, save it but keep looking for a better one
5152 ac_cv_path_GREP="$ac_path_GREP"
5153 ac_path_GREP_max=$ac_count
5154 fi
5155 # 10*(2^10) chars as input seems more than enough
5156 test $ac_count -gt 10 && break
5157 done
5158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159esac
5160
5161 $ac_path_GREP_found && break 3
5162 done
5163 done
5164done
5165IFS=$as_save_IFS
5166 if test -z "$ac_cv_path_GREP"; then
5167 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5168$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5169 { (exit 1); exit 1; }; }
5170 fi
5171else
5172 ac_cv_path_GREP=$GREP
5173fi
5174
5175fi
5176{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5177$as_echo "$ac_cv_path_GREP" >&6; }
5178 GREP="$ac_cv_path_GREP"
5179
5180
5181{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5182$as_echo_n "checking for egrep... " >&6; }
5183if test "${ac_cv_path_EGREP+set}" = set; then
5184 $as_echo_n "(cached) " >&6
5185else
5186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5187 then ac_cv_path_EGREP="$GREP -E"
5188 else
5189 if test -z "$EGREP"; then
5190 ac_path_EGREP_found=false
5191 # Loop through the user's path and test for each of PROGNAME-LIST
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_prog in egrep; do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5200 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5201# Check for GNU ac_path_EGREP and select it if it is found.
5202 # Check for GNU $ac_path_EGREP
5203case `"$ac_path_EGREP" --version 2>&1` in
5204*GNU*)
5205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5206*)
5207 ac_count=0
5208 $as_echo_n 0123456789 >"conftest.in"
5209 while :
5210 do
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
5214 $as_echo 'EGREP' >> "conftest.nl"
5215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217 ac_count=`expr $ac_count + 1`
5218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_EGREP="$ac_path_EGREP"
5221 ac_path_EGREP_max=$ac_count
5222 fi
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5225 done
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227esac
5228
5229 $ac_path_EGREP_found && break 3
5230 done
5231 done
5232done
5233IFS=$as_save_IFS
5234 if test -z "$ac_cv_path_EGREP"; then
5235 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5236$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5237 { (exit 1); exit 1; }; }
5238 fi
5239else
5240 ac_cv_path_EGREP=$EGREP
5241fi
5242
5243 fi
5244fi
5245{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5246$as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP="$ac_cv_path_EGREP"
5248
5249
5250{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5251$as_echo_n "checking for fgrep... " >&6; }
5252if test "${ac_cv_path_FGREP+set}" = set; then
5253 $as_echo_n "(cached) " >&6
5254else
5255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5256 then ac_cv_path_FGREP="$GREP -F"
5257 else
5258 if test -z "$FGREP"; then
5259 ac_path_FGREP_found=false
5260 # Loop through the user's path and test for each of PROGNAME-LIST
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_prog in fgrep; do
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5269 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5270# Check for GNU ac_path_FGREP and select it if it is found.
5271 # Check for GNU $ac_path_FGREP
5272case `"$ac_path_FGREP" --version 2>&1` in
5273*GNU*)
5274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5275*)
5276 ac_count=0
5277 $as_echo_n 0123456789 >"conftest.in"
5278 while :
5279 do
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 $as_echo 'FGREP' >> "conftest.nl"
5284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5286 ac_count=`expr $ac_count + 1`
5287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_FGREP="$ac_path_FGREP"
5290 ac_path_FGREP_max=$ac_count
5291 fi
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5294 done
5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296esac
5297
5298 $ac_path_FGREP_found && break 3
5299 done
5300 done
5301done
5302IFS=$as_save_IFS
5303 if test -z "$ac_cv_path_FGREP"; then
5304 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5305$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5306 { (exit 1); exit 1; }; }
5307 fi
5308else
5309 ac_cv_path_FGREP=$FGREP
5310fi
5311
5312 fi
5313fi
5314{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5315$as_echo "$ac_cv_path_FGREP" >&6; }
5316 FGREP="$ac_cv_path_FGREP"
5317
5318
5319test -z "$GREP" && GREP=grep
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339# Check whether --with-gnu-ld was given.
5340if test "${with_gnu_ld+set}" = set; then
5341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5342else
5343 with_gnu_ld=no
5344fi
5345
5346ac_prog=ld
5347if test "$GCC" = yes; then
5348 # Check if gcc -print-prog-name=ld gives a path.
5349 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5350$as_echo_n "checking for ld used by $CC... " >&6; }
5351 case $host in
5352 *-*-mingw*)
5353 # gcc leaves a trailing carriage return which upsets mingw
5354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5355 *)
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5357 esac
5358 case $ac_prog in
5359 # Accept absolute paths.
5360 [\\/]* | ?:[\\/]*)
5361 re_direlt='/[^/][^/]*/\.\./'
5362 # Canonicalize the pathname of ld
5363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5366 done
5367 test -z "$LD" && LD="$ac_prog"
5368 ;;
5369 "")
5370 # If it fails, then pretend we aren't using GCC.
5371 ac_prog=ld
5372 ;;
5373 *)
5374 # If it is relative, then search for the first ld in PATH.
5375 with_gnu_ld=unknown
5376 ;;
5377 esac
5378elif test "$with_gnu_ld" = yes; then
5379 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5380$as_echo_n "checking for GNU ld... " >&6; }
5381else
5382 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5383$as_echo_n "checking for non-GNU ld... " >&6; }
5384fi
5385if test "${lt_cv_path_LD+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5387else
5388 if test -z "$LD"; then
5389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5390 for ac_dir in $PATH; do
5391 IFS="$lt_save_ifs"
5392 test -z "$ac_dir" && ac_dir=.
5393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5394 lt_cv_path_LD="$ac_dir/$ac_prog"
5395 # Check to see if the program is GNU ld. I'd rather use --version,
5396 # but apparently some variants of GNU ld only accept -v.
5397 # Break only if it was the GNU/non-GNU ld that we prefer.
5398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5399 *GNU* | *'with BFD'*)
5400 test "$with_gnu_ld" != no && break
5401 ;;
5402 *)
5403 test "$with_gnu_ld" != yes && break
5404 ;;
5405 esac
5406 fi
5407 done
5408 IFS="$lt_save_ifs"
5409else
5410 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5411fi
5412fi
5413
5414LD="$lt_cv_path_LD"
5415if test -n "$LD"; then
5416 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5417$as_echo "$LD" >&6; }
5418else
5419 { $as_echo "$as_me:$LINENO: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5423$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5424 { (exit 1); exit 1; }; }
5425{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5427if test "${lt_cv_prog_gnu_ld+set}" = set; then
5428 $as_echo_n "(cached) " >&6
5429else
5430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5431case `$LD -v 2>&1 </dev/null` in
5432*GNU* | *'with BFD'*)
5433 lt_cv_prog_gnu_ld=yes
5434 ;;
5435*)
5436 lt_cv_prog_gnu_ld=no
5437 ;;
5438esac
5439fi
5440{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5441$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5442with_gnu_ld=$lt_cv_prog_gnu_ld
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5454set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5456$as_echo_n "checking for $ac_word... " >&6; }
5457if test "${ac_cv_prog_RANLIB+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459else
5460 if test -n "$RANLIB"; then
5461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480RANLIB=$ac_cv_prog_RANLIB
5481if test -n "$RANLIB"; then
5482 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5483$as_echo "$RANLIB" >&6; }
5484else
5485 { $as_echo "$as_me:$LINENO: result: no" >&5
5486$as_echo "no" >&6; }
5487fi
5488
5489
5490fi
5491if test -z "$ac_cv_prog_RANLIB"; then
5492 ac_ct_RANLIB=$RANLIB
5493 # Extract the first word of "ranlib", so it can be a program name with args.
5494set dummy ranlib; ac_word=$2
5495{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5496$as_echo_n "checking for $ac_word... " >&6; }
5497if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5498 $as_echo_n "(cached) " >&6
5499else
5500 if test -n "$ac_ct_RANLIB"; then
5501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_ac_ct_RANLIB="ranlib"
5511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514done
5515done
5516IFS=$as_save_IFS
5517
5518fi
5519fi
5520ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5521if test -n "$ac_ct_RANLIB"; then
5522 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5523$as_echo "$ac_ct_RANLIB" >&6; }
5524else
5525 { $as_echo "$as_me:$LINENO: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528
5529 if test "x$ac_ct_RANLIB" = x; then
5530 RANLIB=":"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533yes:)
5534{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536ac_tool_warned=yes ;;
5537esac
5538 RANLIB=$ac_ct_RANLIB
5539 fi
5540else
5541 RANLIB="$ac_cv_prog_RANLIB"
5542fi
5543
5544
5545if test "x$CC" != xcc; then
5546 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5547$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5548else
5549 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5550$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5551fi
5552set dummy $CC; ac_cc=`$as_echo "$2" |
5553 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5554if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5555 $as_echo_n "(cached) " >&6
5556else
5557 cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h. */
5563
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572# Make sure it works both with $CC and with simple cc.
5573# We do the test twice because some compilers refuse to overwrite an
5574# existing .o file with -o, though they will create one.
5575ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5576rm -f conftest2.*
5577if { (case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5582$as_echo "$ac_try_echo") >&5
5583 (eval "$ac_try") 2>&5
5584 ac_status=$?
5585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5592$as_echo "$ac_try_echo") >&5
5593 (eval "$ac_try") 2>&5
5594 ac_status=$?
5595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); };
5597then
5598 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5599 if test "x$CC" != xcc; then
5600 # Test first that cc exists at all.
5601 if { ac_try='cc -c conftest.$ac_ext >&5'
5602 { (case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5607$as_echo "$ac_try_echo") >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5613 rm -f conftest2.*
5614 if { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5619$as_echo "$ac_try_echo") >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); };
5634 then
5635 # cc works too.
5636 :
5637 else
5638 # cc exists but doesn't like -o.
5639 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5640 fi
5641 fi
5642 fi
5643else
5644 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5645fi
5646rm -f core conftest*
5647
5648fi
5649if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5650 { $as_echo "$as_me:$LINENO: result: yes" >&5
5651$as_echo "yes" >&6; }
5652else
5653 { $as_echo "$as_me:$LINENO: result: no" >&5
5654$as_echo "no" >&6; }
5655
5656cat >>confdefs.h <<\_ACEOF
5657#define NO_MINUS_C_MINUS_O 1
5658_ACEOF
5659
5660fi
5661
5662# FIXME: we rely on the cache variable name because
5663# there is no other way.
5664set dummy $CC
5665am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5666eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5667if test "$am_t" != yes; then
5668 # Losing compiler, so override with the script.
5669 # FIXME: It is wrong to rewrite CC.
5670 # But if we don't then we get into trouble of one sort or another.
5671 # A longer-term fix would be to have automake use am__CC in this case,
5672 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5673 CC="$am_aux_dir/compile $CC"
5674fi
5675
5676
5677# Find a good install program. We prefer a C program (faster),
5678# so one script is as good as another. But avoid the broken or
5679# incompatible versions:
5680# SysV /etc/install, /usr/sbin/install
5681# SunOS /usr/etc/install
5682# IRIX /sbin/install
5683# AIX /bin/install
5684# AmigaOS /C/install, which installs bootblocks on floppy discs
5685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5688# OS/2's system install, which has a completely different semantic
5689# ./install, which can be erroneously created by make from ./install.sh.
5690# Reject install programs that cannot install multiple files.
5691{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5692$as_echo_n "checking for a BSD-compatible install... " >&6; }
5693if test -z "$INSTALL"; then
5694if test "${ac_cv_path_install+set}" = set; then
5695 $as_echo_n "(cached) " >&6
5696else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 # Account for people who put trailing slashes in PATH elements.
5703case $as_dir/ in
5704 ./ | .// | /cC/* | \
5705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5707 /usr/ucb/* ) ;;
5708 *)
5709 # OSF1 and SCO ODT 3.0 have their own names for install.
5710 # Don't use installbsd from OSF since it installs stuff as root
5711 # by default.
5712 for ac_prog in ginstall scoinst install; do
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5715 if test $ac_prog = install &&
5716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5717 # AIX install. It has an incompatible calling convention.
5718 :
5719 elif test $ac_prog = install &&
5720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5721 # program-specific install script used by HP pwplus--don't use.
5722 :
5723 else
5724 rm -rf conftest.one conftest.two conftest.dir
5725 echo one > conftest.one
5726 echo two > conftest.two
5727 mkdir conftest.dir
5728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5729 test -s conftest.one && test -s conftest.two &&
5730 test -s conftest.dir/conftest.one &&
5731 test -s conftest.dir/conftest.two
5732 then
5733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5734 break 3
5735 fi
5736 fi
5737 fi
5738 done
5739 done
5740 ;;
5741esac
5742
5743done
5744IFS=$as_save_IFS
5745
5746rm -rf conftest.one conftest.two conftest.dir
5747
5748fi
5749 if test "${ac_cv_path_install+set}" = set; then
5750 INSTALL=$ac_cv_path_install
5751 else
5752 # As a last resort, use the slow shell script. Don't cache a
5753 # value for INSTALL within a source directory, because that will
5754 # break other packages using the cache if that directory is
5755 # removed, or if the value is a relative name.
5756 INSTALL=$ac_install_sh
5757 fi
5758fi
5759{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5760$as_echo "$INSTALL" >&6; }
5761
5762# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5763# It thinks the first close brace ends the variable substitution.
5764test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5765
5766test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5767
5768test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5769
5770{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5771$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5772set x ${MAKE-make}
5773ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5774if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5775 $as_echo_n "(cached) " >&6
5776else
5777 cat >conftest.make <<\_ACEOF
5778SHELL = /bin/sh
5779all:
5780 @echo '@@@%%%=$(MAKE)=@@@%%%'
5781_ACEOF
5782# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5783case `${MAKE-make} -f conftest.make 2>/dev/null` in
5784 *@@@%%%=?*=@@@%%%*)
5785 eval ac_cv_prog_make_${ac_make}_set=yes;;
5786 *)
5787 eval ac_cv_prog_make_${ac_make}_set=no;;
5788esac
5789rm -f conftest.make
5790fi
5791if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5792 { $as_echo "$as_me:$LINENO: result: yes" >&5
5793$as_echo "yes" >&6; }
5794 SET_MAKE=
5795else
5796 { $as_echo "$as_me:$LINENO: result: no" >&5
5797$as_echo "no" >&6; }
5798 SET_MAKE="MAKE=${MAKE-make}"
5799fi
5800
5801ac_ext=cpp
5802ac_cpp='$CXXCPP $CPPFLAGS'
5803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5806if test -z "$CXX"; then
5807 if test -n "$CCC"; then
5808 CXX=$CCC
5809 else
5810 if test -n "$ac_tool_prefix"; then
5811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5812 do
5813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
5817if test "${ac_cv_prog_CXX+set}" = set; then
5818 $as_echo_n "(cached) " >&6
5819else
5820 if test -n "$CXX"; then
5821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840CXX=$ac_cv_prog_CXX
5841if test -n "$CXX"; then
5842 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5843$as_echo "$CXX" >&6; }
5844else
5845 { $as_echo "$as_me:$LINENO: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850 test -n "$CXX" && break
5851 done
5852fi
5853if test -z "$CXX"; then
5854 ac_ct_CXX=$CXX
5855 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5856do
5857 # Extract the first word of "$ac_prog", so it can be a program name with args.
5858set dummy $ac_prog; ac_word=$2
5859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$ac_ct_CXX"; then
5865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_ac_ct_CXX="$ac_prog"
5875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5885if test -n "$ac_ct_CXX"; then
5886 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5887$as_echo "$ac_ct_CXX" >&6; }
5888else
5889 { $as_echo "$as_me:$LINENO: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894 test -n "$ac_ct_CXX" && break
5895done
5896
5897 if test "x$ac_ct_CXX" = x; then
5898 CXX="g++"
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901yes:)
5902{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904ac_tool_warned=yes ;;
5905esac
5906 CXX=$ac_ct_CXX
5907 fi
5908fi
5909
5910 fi
5911fi
5912# Provide some information about the compiler.
5913$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5914set X $ac_compile
5915ac_compiler=$2
5916{ (ac_try="$ac_compiler --version >&5"
5917case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920esac
5921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922$as_echo "$ac_try_echo") >&5
5923 (eval "$ac_compiler --version >&5") 2>&5
5924 ac_status=$?
5925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }
5927{ (ac_try="$ac_compiler -v >&5"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5933$as_echo "$ac_try_echo") >&5
5934 (eval "$ac_compiler -v >&5") 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }
5938{ (ac_try="$ac_compiler -V >&5"
5939case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944$as_echo "$ac_try_echo") >&5
5945 (eval "$ac_compiler -V >&5") 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }
5949
5950{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5951$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5952if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5953 $as_echo_n "(cached) " >&6
5954else
5955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961
5962int
5963main ()
5964{
5965#ifndef __GNUC__
5966 choke me
5967#endif
5968
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (ac_try="$ac_compile"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980$as_echo "$ac_try_echo") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_cxx_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest.$ac_objext; then
5991 ac_compiler_gnu=yes
5992else
5993 $as_echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 ac_compiler_gnu=no
5997fi
5998
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6001
6002fi
6003{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6004$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6005if test $ac_compiler_gnu = yes; then
6006 GXX=yes
6007else
6008 GXX=
6009fi
6010ac_test_CXXFLAGS=${CXXFLAGS+set}
6011ac_save_CXXFLAGS=$CXXFLAGS
6012{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6013$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6014if test "${ac_cv_prog_cxx_g+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6016else
6017 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6018 ac_cxx_werror_flag=yes
6019 ac_cv_prog_cxx_g=no
6020 CXXFLAGS="-g"
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027
6028int
6029main ()
6030{
6031
6032 ;
6033 return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext
6037if { (ac_try="$ac_compile"
6038case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041esac
6042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6043$as_echo "$ac_try_echo") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_cxx_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_cv_prog_cxx_g=yes
6055else
6056 $as_echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 CXXFLAGS=""
6060 cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066
6067int
6068main ()
6069{
6070
6071 ;
6072 return 0;
6073}
6074_ACEOF
6075rm -f conftest.$ac_objext
6076if { (ac_try="$ac_compile"
6077case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082$as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_cxx_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 :
6094else
6095 $as_echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6099 CXXFLAGS="-g"
6100 cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106
6107int
6108main ()
6109{
6110
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (ac_try="$ac_compile"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122$as_echo "$ac_try_echo") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_cxx_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 ac_cv_prog_cxx_g=yes
6134else
6135 $as_echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138
6139fi
6140
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
6148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6149fi
6150{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6151$as_echo "$ac_cv_prog_cxx_g" >&6; }
6152if test "$ac_test_CXXFLAGS" = set; then
6153 CXXFLAGS=$ac_save_CXXFLAGS
6154elif test $ac_cv_prog_cxx_g = yes; then
6155 if test "$GXX" = yes; then
6156 CXXFLAGS="-g -O2"
6157 else
6158 CXXFLAGS="-g"
6159 fi
6160else
6161 if test "$GXX" = yes; then
6162 CXXFLAGS="-O2"
6163 else
6164 CXXFLAGS=
6165 fi
6166fi
6167ac_ext=c
6168ac_cpp='$CPP $CPPFLAGS'
6169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
6173depcc="$CXX" am_compiler_list=
6174
6175{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6176$as_echo_n "checking dependency style of $depcc... " >&6; }
6177if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6179else
6180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6181 # We make a subdir and do the tests there. Otherwise we can end up
6182 # making bogus files that we don't know about and never remove. For
6183 # instance it was reported that on HP-UX the gcc test will end up
6184 # making a dummy file named `D' -- because `-MD' means `put the output
6185 # in D'.
6186 mkdir conftest.dir
6187 # Copy depcomp to subdir because otherwise we won't find it if we're
6188 # using a relative directory.
6189 cp "$am_depcomp" conftest.dir
6190 cd conftest.dir
6191 # We will build objects and dependencies in a subdirectory because
6192 # it helps to detect inapplicable dependency modes. For instance
6193 # both Tru64's cc and ICC support -MD to output dependencies as a
6194 # side effect of compilation, but ICC will put the dependencies in
6195 # the current directory while Tru64 will put them in the object
6196 # directory.
6197 mkdir sub
6198
6199 am_cv_CXX_dependencies_compiler_type=none
6200 if test "$am_compiler_list" = ""; then
6201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6202 fi
6203 am__universal=false
6204 case " $depcc " in #(
6205 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6206 esac
6207
6208 for depmode in $am_compiler_list; do
6209 # Setup a source with many dependencies, because some compilers
6210 # like to wrap large dependency lists on column 80 (with \), and
6211 # we should not choose a depcomp mode which is confused by this.
6212 #
6213 # We need to recreate these files for each test, as the compiler may
6214 # overwrite some of them when testing with obscure command lines.
6215 # This happens at least with the AIX C compiler.
6216 : > sub/conftest.c
6217 for i in 1 2 3 4 5 6; do
6218 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6220 # Solaris 8's {/usr,}/bin/sh.
6221 touch sub/conftst$i.h
6222 done
6223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6224
6225 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6226 # mode. It turns out that the SunPro C++ compiler does not properly
6227 # handle `-M -o', and we need to detect this. Also, some Intel
6228 # versions had trouble with output in subdirs
6229 am__obj=sub/conftest.${OBJEXT-o}
6230 am__minus_obj="-o $am__obj"
6231 case $depmode in
6232 gcc)
6233 # This depmode causes a compiler race in universal mode.
6234 test "$am__universal" = false || continue
6235 ;;
6236 nosideeffect)
6237 # after this tag, mechanisms are not by side-effect, so they'll
6238 # only be used when explicitly requested
6239 if test "x$enable_dependency_tracking" = xyes; then
6240 continue
6241 else
6242 break
6243 fi
6244 ;;
6245 msvisualcpp | msvcmsys)
6246 # This compiler won't grok `-c -o', but also, the minuso test has
6247 # not run yet. These depmodes are late enough in the game, and
6248 # so weak that their functioning should not be impacted.
6249 am__obj=conftest.${OBJEXT-o}
6250 am__minus_obj=
6251 ;;
6252 none) break ;;
6253 esac
6254 if depmode=$depmode \
6255 source=sub/conftest.c object=$am__obj \
6256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6257 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6258 >/dev/null 2>conftest.err &&
6259 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6261 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6263 # icc doesn't choke on unknown options, it will just issue warnings
6264 # or remarks (even with -Werror). So we grep stderr for any message
6265 # that says an option was ignored or not supported.
6266 # When given -MP, icc 7.0 and 7.1 complain thusly:
6267 # icc: Command line warning: ignoring option '-M'; no argument required
6268 # The diagnosis changed in icc 8.0:
6269 # icc: Command line remark: option '-MP' not supported
6270 if (grep 'ignoring option' conftest.err ||
6271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6272 am_cv_CXX_dependencies_compiler_type=$depmode
6273 break
6274 fi
6275 fi
6276 done
6277
6278 cd ..
6279 rm -rf conftest.dir
6280else
6281 am_cv_CXX_dependencies_compiler_type=none
6282fi
6283
6284fi
6285{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6286$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6287CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6288
6289 if
6290 test "x$enable_dependency_tracking" != xno \
6291 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6292 am__fastdepCXX_TRUE=
6293 am__fastdepCXX_FALSE='#'
6294else
6295 am__fastdepCXX_TRUE='#'
6296 am__fastdepCXX_FALSE=
6297fi
6298
6299
6300
6301{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6302$as_echo_n "checking maximum warning verbosity option... " >&6; }
6303
6304
6305
6306
6307# Check whether --with-maximum-compile-warnings was given.
6308if test "${with_maximum_compile_warnings+set}" = set; then
6309 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6310else
6311 ac_compile_warnings_on=""
6312fi
6313
6314
6315 if test x"$ac_compile_warnings_on" = xno
6316 then
6317 ac_compile_warnings_msg=no
6318 else
6319 if test -n "$CXX"
6320 then
6321 if test "$GXX" = "yes"
6322 then
6323 ac_compile_warnings_opt='-Wall -W'
6324 fi
6325 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6326 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6327 fi
6328
6329 if test -n "$CC"
6330 then
6331 if test "$GCC" = "yes"
6332 then
6333 ac_compile_warnings_opt='-Wall -W'
6334 fi
6335 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6336 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6337 fi
6338 fi
6339 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6340$as_echo "$ac_compile_warnings_msg" >&6; }
6341 unset ac_compile_warnings_msg
6342 unset ac_compile_warnings_opt
6343
6344{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6345$as_echo_n "checking whether ln -s works... " >&6; }
6346LN_S=$as_ln_s
6347if test "$LN_S" = "ln -s"; then
6348 { $as_echo "$as_me:$LINENO: result: yes" >&5
6349$as_echo "yes" >&6; }
6350else
6351 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6352$as_echo "no, using $LN_S" >&6; }
6353fi
6354
6355{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6356$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6357
6358# Check whether --with-dmalloc was given.
6359if test "${with_dmalloc+set}" = set; then
6360 withval=$with_dmalloc; if test "$withval" = yes; then
6361 { $as_echo "$as_me:$LINENO: result: yes" >&5
6362$as_echo "yes" >&6; }
6363
6364cat >>confdefs.h <<\_ACEOF
6365#define WITH_DMALLOC 1
6366_ACEOF
6367
6368 LIBS="$LIBS -ldmalloc"
6369 LDFLAGS="$LDFLAGS -g"
6370else
6371 { $as_echo "$as_me:$LINENO: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374else
6375 { $as_echo "$as_me:$LINENO: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379
6380
6381
6382if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6385set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6389 $as_echo_n "(cached) " >&6
6390else
6391 case $PKG_CONFIG in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6394 ;;
6395 *)
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409IFS=$as_save_IFS
6410
6411 ;;
6412esac
6413fi
6414PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6415if test -n "$PKG_CONFIG"; then
6416 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6417$as_echo "$PKG_CONFIG" >&6; }
6418else
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423
6424fi
6425if test -z "$ac_cv_path_PKG_CONFIG"; then
6426 ac_pt_PKG_CONFIG=$PKG_CONFIG
6427 # Extract the first word of "pkg-config", so it can be a program name with args.
6428set dummy pkg-config; ac_word=$2
6429{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6432 $as_echo_n "(cached) " >&6
6433else
6434 case $ac_pt_PKG_CONFIG in
6435 [\\/]* | ?:[\\/]*)
6436 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6437 ;;
6438 *)
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450done
6451done
6452IFS=$as_save_IFS
6453
6454 ;;
6455esac
6456fi
6457ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6458if test -n "$ac_pt_PKG_CONFIG"; then
6459 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6460$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6461else
6462 { $as_echo "$as_me:$LINENO: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466 if test "x$ac_pt_PKG_CONFIG" = x; then
6467 PKG_CONFIG=""
6468 else
6469 case $cross_compiling:$ac_tool_warned in
6470yes:)
6471{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473ac_tool_warned=yes ;;
6474esac
6475 PKG_CONFIG=$ac_pt_PKG_CONFIG
6476 fi
6477else
6478 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6479fi
6480
6481fi
6482if test -n "$PKG_CONFIG"; then
6483 _pkg_min_version=0.9.0
6484 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6485$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6486 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6487 { $as_echo "$as_me:$LINENO: result: yes" >&5
6488$as_echo "yes" >&6; }
6489 else
6490 { $as_echo "$as_me:$LINENO: result: no" >&5
6491$as_echo "no" >&6; }
6492 PKG_CONFIG=""
6493 fi
6494
6495fi
6496
6497#
6498# Enable OS features.
6499#
6500
6501
6502{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6503$as_echo_n "checking for ANSI C header files... " >&6; }
6504if test "${ac_cv_header_stdc+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6506else
6507 cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h. */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h. */
6513#include <stdlib.h>
6514#include <stdarg.h>
6515#include <string.h>
6516#include <float.h>
6517
6518int
6519main ()
6520{
6521
6522 ;
6523 return 0;
6524}
6525_ACEOF
6526rm -f conftest.$ac_objext
6527if { (ac_try="$ac_compile"
6528case "(($ac_try" in
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6531esac
6532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6533$as_echo "$ac_try_echo") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest.$ac_objext; then
6544 ac_cv_header_stdc=yes
6545else
6546 $as_echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cv_header_stdc=no
6550fi
6551
6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553
6554if test $ac_cv_header_stdc = yes; then
6555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6556 cat >conftest.$ac_ext <<_ACEOF
6557/* confdefs.h. */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h. */
6562#include <string.h>
6563
6564_ACEOF
6565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "memchr" >/dev/null 2>&1; then
6567 :
6568else
6569 ac_cv_header_stdc=no
6570fi
6571rm -f conftest*
6572
6573fi
6574
6575if test $ac_cv_header_stdc = yes; then
6576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6577 cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h. */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h. */
6583#include <stdlib.h>
6584
6585_ACEOF
6586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6587 $EGREP "free" >/dev/null 2>&1; then
6588 :
6589else
6590 ac_cv_header_stdc=no
6591fi
6592rm -f conftest*
6593
6594fi
6595
6596if test $ac_cv_header_stdc = yes; then
6597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6598 if test "$cross_compiling" = yes; then
6599 :
6600else
6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
6607#include <ctype.h>
6608#include <stdlib.h>
6609#if ((' ' & 0x0FF) == 0x020)
6610# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6611# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6612#else
6613# define ISLOWER(c) \
6614 (('a' <= (c) && (c) <= 'i') \
6615 || ('j' <= (c) && (c) <= 'r') \
6616 || ('s' <= (c) && (c) <= 'z'))
6617# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6618#endif
6619
6620#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6621int
6622main ()
6623{
6624 int i;
6625 for (i = 0; i < 256; i++)
6626 if (XOR (islower (i), ISLOWER (i))
6627 || toupper (i) != TOUPPER (i))
6628 return 2;
6629 return 0;
6630}
6631_ACEOF
6632rm -f conftest$ac_exeext
6633if { (ac_try="$ac_link"
6634case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637esac
6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639$as_echo "$ac_try_echo") >&5
6640 (eval "$ac_link") 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6644 { (case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647esac
6648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649$as_echo "$ac_try_echo") >&5
6650 (eval "$ac_try") 2>&5
6651 ac_status=$?
6652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 :
6655else
6656 $as_echo "$as_me: program exited with status $ac_status" >&5
6657$as_echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660( exit $ac_status )
6661ac_cv_header_stdc=no
6662fi
6663rm -rf conftest.dSYM
6664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6665fi
6666
6667
6668fi
6669fi
6670{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6671$as_echo "$ac_cv_header_stdc" >&6; }
6672if test $ac_cv_header_stdc = yes; then
6673
6674cat >>confdefs.h <<\_ACEOF
6675#define STDC_HEADERS 1
6676_ACEOF
6677
6678fi
6679
6680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6691 inttypes.h stdint.h unistd.h
6692do
6693as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6695$as_echo_n "checking for $ac_header... " >&6; }
6696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6697 $as_echo_n "(cached) " >&6
6698else
6699 cat >conftest.$ac_ext <<_ACEOF
6700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
6705$ac_includes_default
6706
6707#include <$ac_header>
6708_ACEOF
6709rm -f conftest.$ac_objext
6710if { (ac_try="$ac_compile"
6711case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714esac
6715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6716$as_echo "$ac_try_echo") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.$ac_objext; then
6727 eval "$as_ac_Header=yes"
6728else
6729 $as_echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 eval "$as_ac_Header=no"
6733fi
6734
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736fi
6737ac_res=`eval 'as_val=${'$as_ac_Header'}
6738 $as_echo "$as_val"'`
6739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6740$as_echo "$ac_res" >&6; }
6741as_val=`eval 'as_val=${'$as_ac_Header'}
6742 $as_echo "$as_val"'`
6743 if test "x$as_val" = x""yes; then
6744 cat >>confdefs.h <<_ACEOF
6745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6746_ACEOF
6747
6748fi
6749
6750done
6751
6752
6753
6754 if test "${ac_cv_header_minix_config_h+set}" = set; then
6755 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6756$as_echo_n "checking for minix/config.h... " >&6; }
6757if test "${ac_cv_header_minix_config_h+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759fi
6760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6761$as_echo "$ac_cv_header_minix_config_h" >&6; }
6762else
6763 # Is the header compilable?
6764{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6765$as_echo_n "checking minix/config.h usability... " >&6; }
6766cat >conftest.$ac_ext <<_ACEOF
6767/* confdefs.h. */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h. */
6772$ac_includes_default
6773#include <minix/config.h>
6774_ACEOF
6775rm -f conftest.$ac_objext
6776if { (ac_try="$ac_compile"
6777case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780esac
6781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782$as_echo "$ac_try_echo") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_header_compiler=yes
6794else
6795 $as_echo "$as_me: failed program was:" >&5
6796sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_header_compiler=no
6799fi
6800
6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6803$as_echo "$ac_header_compiler" >&6; }
6804
6805# Is the header present?
6806{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6807$as_echo_n "checking minix/config.h presence... " >&6; }
6808cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
6814#include <minix/config.h>
6815_ACEOF
6816if { (ac_try="$ac_cpp conftest.$ac_ext"
6817case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820esac
6821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822$as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6833 ac_header_preproc=yes
6834else
6835 $as_echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 ac_header_preproc=no
6839fi
6840
6841rm -f conftest.err conftest.$ac_ext
6842{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6843$as_echo "$ac_header_preproc" >&6; }
6844
6845# So? What about this header?
6846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6847 yes:no: )
6848 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6849$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6850 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6851$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6852 ac_header_preproc=yes
6853 ;;
6854 no:yes:* )
6855 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6856$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6857 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6858$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6859 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6860$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6861 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6862$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6863 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6864$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6865 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6866$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6867 ( cat <<\_ASBOX
6868## ----------------------------------------- ##
6869## Report this to http://www.imagemagick.org ##
6870## ----------------------------------------- ##
6871_ASBOX
6872 ) | sed "s/^/$as_me: WARNING: /" >&2
6873 ;;
6874esac
6875{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6876$as_echo_n "checking for minix/config.h... " >&6; }
6877if test "${ac_cv_header_minix_config_h+set}" = set; then
6878 $as_echo_n "(cached) " >&6
6879else
6880 ac_cv_header_minix_config_h=$ac_header_preproc
6881fi
6882{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6883$as_echo "$ac_cv_header_minix_config_h" >&6; }
6884
6885fi
6886if test "x$ac_cv_header_minix_config_h" = x""yes; then
6887 MINIX=yes
6888else
6889 MINIX=
6890fi
6891
6892
6893 if test "$MINIX" = yes; then
6894
6895cat >>confdefs.h <<\_ACEOF
6896#define _POSIX_SOURCE 1
6897_ACEOF
6898
6899
6900cat >>confdefs.h <<\_ACEOF
6901#define _POSIX_1_SOURCE 2
6902_ACEOF
6903
6904
6905cat >>confdefs.h <<\_ACEOF
6906#define _MINIX 1
6907_ACEOF
6908
6909 fi
6910
6911
6912
6913 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6914$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6915if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6916 $as_echo_n "(cached) " >&6
6917else
6918 cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h. */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h. */
6924
6925# define __EXTENSIONS__ 1
6926 $ac_includes_default
6927int
6928main ()
6929{
6930
6931 ;
6932 return 0;
6933}
6934_ACEOF
6935rm -f conftest.$ac_objext
6936if { (ac_try="$ac_compile"
6937case "(($ac_try" in
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6940esac
6941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942$as_echo "$ac_try_echo") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_cv_safe_to_define___extensions__=yes
6954else
6955 $as_echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 ac_cv_safe_to_define___extensions__=no
6959fi
6960
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962fi
6963{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6965 test $ac_cv_safe_to_define___extensions__ = yes &&
6966 cat >>confdefs.h <<\_ACEOF
6967#define __EXTENSIONS__ 1
6968_ACEOF
6969
6970 cat >>confdefs.h <<\_ACEOF
6971#define _ALL_SOURCE 1
6972_ACEOF
6973
6974 cat >>confdefs.h <<\_ACEOF
6975#define _GNU_SOURCE 1
6976_ACEOF
6977
6978 cat >>confdefs.h <<\_ACEOF
6979#define _POSIX_PTHREAD_SEMANTICS 1
6980_ACEOF
6981
6982 cat >>confdefs.h <<\_ACEOF
6983#define _TANDEM_SOURCE 1
6984_ACEOF
6985
6986
6987
6988#
6989# Enable run-time checking.
6990#
6991# Check whether --enable-bounds-checking was given.
6992if test "${enable_bounds_checking+set}" = set; then
6993 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6994else
6995 enable_bounds_checking='no'
6996fi
6997
6998
6999if test "$enable_bounds_checking" = yes; then
7000
7001cat >>confdefs.h <<\_ACEOF
7002#define _FORTIFY_SOURCE 2
7003_ACEOF
7004
7005fi
7006
7007#
7008# Tests for Windows
7009#
7010
7011
7012
7013GDI32_LIBS=''
7014StaticCplusPlusLibraries='no'
7015native_win32_build='no'
7016cygwin_build='no'
7017case "${host_os}" in
7018 cygwin* )
7019 StaticCplusPlusLibraries='yes'
7020 cygwin_build='yes'
7021 GDI32_LIBS='-lgdi32'
7022 ;;
7023 mingw* )
7024 StaticCplusPlusLibraries='yes'
7025 native_win32_build='yes'
7026 GDI32_LIBS='-lgdi32'
7027 ;;
7028esac
7029if test "${GDI32_LIBS}x" != 'x'; then
7030
7031cat >>confdefs.h <<\_ACEOF
7032#define WINGDI32_DELEGATE 1
7033_ACEOF
7034
7035fi
7036
7037 if test "${GDI32_LIBS}x" != 'x' ; then
7038 WINGDI32_DELEGATE_TRUE=
7039 WINGDI32_DELEGATE_FALSE='#'
7040else
7041 WINGDI32_DELEGATE_TRUE='#'
7042 WINGDI32_DELEGATE_FALSE=
7043fi
7044
7045 if test "${native_win32_build}" = 'yes' ; then
7046 WIN32_NATIVE_BUILD_TRUE=
7047 WIN32_NATIVE_BUILD_FALSE='#'
7048else
7049 WIN32_NATIVE_BUILD_TRUE='#'
7050 WIN32_NATIVE_BUILD_FALSE=
7051fi
7052
7053 if test "${cygwin_build}" = 'yes' ; then
7054 CYGWIN_BUILD_TRUE=
7055 CYGWIN_BUILD_FALSE='#'
7056else
7057 CYGWIN_BUILD_TRUE='#'
7058 CYGWIN_BUILD_FALSE=
7059fi
7060
7061 if test "x${CC}" = 'xcl.exe' ; then
7062 USING_CL_TRUE=
7063 USING_CL_FALSE='#'
7064else
7065 USING_CL_TRUE='#'
7066 USING_CL_FALSE=
7067fi
7068
7069
7070WinPathScript="${srcdirfull}/winpath.sh"
7071
7072
7073#
7074# Compiler flags tweaks
7075#
7076if test "${GCC}" != "yes"; then
7077 case "${host}" in
7078 *-*-hpux* )
7079 # aCC: HP ANSI C++ B3910B A.03.34
7080 CFLAGS="${CFLAGS} -Wp,-H30000"
7081 if test -n "${CXXFLAGS}"; then
7082 CXXFLAGS='-AA'
7083 else
7084 CXXFLAGS="${CXXFLAGS} -AA"
7085 fi
7086 ;;
7087 *-dec-osf5.* )
7088 # Compaq alphaev68-dec-osf5.1 compiler
7089 if test -n "${CXXFLAGS}"; then
7090 CXXFLAGS='-std strict_ansi -noimplicit_include'
7091 else
7092 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7093 fi
7094 esac
7095fi
7096
7097# Check for lazy-loading.
7098{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7099$as_echo_n "checking for linker lazyload option... " >&6; }
7100if test "${im_cv_ld_lazyload+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102else
7103
7104im_cv_ld_lazyload='none'
7105case "${host}" in
7106 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7107 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7108 im_cv_ld_lazyload='-Wl,-zlazyload'
7109 fi
7110 ;;
7111esac
7112
7113fi
7114{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7115$as_echo "$im_cv_ld_lazyload" >&6; }
7116if test "${im_cv_ld_lazyload}" != 'none' ; then
7117 if test -z "${LDFLAGS}" ; then
7118 LDFLAGS="${im_cv_ld_lazyload}"
7119 else
7120 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7121 fi
7122fi
7123
7124case "$host" in
7125*darwin* | *-macos10*)
7126 if test -d /opt/local ; then
7127 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7128 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7129 elif test -d /sw ; then
7130 CPPFLAGS="$CPPFLAGS -I/sw/include"
7131 LDFLAGS="$LDFLAGS -L/sw/lib"
7132 fi
7133 # Check whether --enable-osx-universal-binary was given.
7134if test "${enable_osx_universal_binary+set}" = set; then
7135 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7136else
7137 build_osxuniversal=no
7138fi
7139
7140
7141 if test "${build_osxuniversal}" != no ; then
7142 if test "$enable_dependency_tracking" != no ; then
7143 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7144Please re-run configure with these options:
7145 --disable-dependency-tracking --enable-osx-universal-binary
7146 " >&5
7147$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7148Please re-run configure with these options:
7149 --disable-dependency-tracking --enable-osx-universal-binary
7150 " >&2;}
7151 { (exit 1); exit 1; }; }
7152 fi
7153 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7154 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7155 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7156 fi
7157 ;;
7158esac
7159
7160# Enable support for threads
7161
7162# Check whether --with-threads was given.
7163if test "${with_threads+set}" = set; then
7164 withval=$with_threads; with_threads=$withval
7165else
7166 with_threads='yes'
7167fi
7168
7169
7170have_threads=no
7171if test "$with_threads" != 'no'; then
7172
7173
7174
7175ac_ext=c
7176ac_cpp='$CPP $CPPFLAGS'
7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180
7181acx_pthread_ok=no
7182
7183# We used to check for pthread.h first, but this fails if pthread.h
7184# requires special compiler flags (e.g. on True64 or Sequent).
7185# It gets checked for in the link test anyway.
7186
7187# First of all, check if the user has set any of the PTHREAD_LIBS,
7188# etcetera environment variables, and if threads linking works using
7189# them:
7190if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7191 save_CFLAGS="$CFLAGS"
7192 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7193 save_LIBS="$LIBS"
7194 LIBS="$PTHREAD_LIBS $LIBS"
7195 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7196$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7197 cat >conftest.$ac_ext <<_ACEOF
7198/* confdefs.h. */
7199_ACEOF
7200cat confdefs.h >>conftest.$ac_ext
7201cat >>conftest.$ac_ext <<_ACEOF
7202/* end confdefs.h. */
7203
7204/* Override any GCC internal prototype to avoid an error.
7205 Use char because int might match the return type of a GCC
7206 builtin and then its argument prototype would still apply. */
7207#ifdef __cplusplus
7208extern "C"
7209#endif
7210char pthread_join ();
7211int
7212main ()
7213{
7214return pthread_join ();
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219rm -f conftest.$ac_objext conftest$ac_exeext
7220if { (ac_try="$ac_link"
7221case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224esac
7225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226$as_echo "$ac_try_echo") >&5
7227 (eval "$ac_link") 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest$ac_exeext && {
7237 test "$cross_compiling" = yes ||
7238 $as_test_x conftest$ac_exeext
7239 }; then
7240 acx_pthread_ok=yes
7241else
7242 $as_echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
7245
7246fi
7247
7248rm -rf conftest.dSYM
7249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250 conftest$ac_exeext conftest.$ac_ext
7251 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7252$as_echo "$acx_pthread_ok" >&6; }
7253 if test x"$acx_pthread_ok" = xno; then
7254 PTHREAD_LIBS=""
7255 PTHREAD_CFLAGS=""
7256 fi
7257 LIBS="$save_LIBS"
7258 CFLAGS="$save_CFLAGS"
7259fi
7260
7261# We must check for the threads library under a number of different
7262# names; the ordering is very important because some systems
7263# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7264# libraries is broken (non-POSIX).
7265
7266# Create a list of thread flags to try. Items starting with a "-" are
7267# C compiler flags, and other items are library names, except for "none"
7268# which indicates that we try without any flags at all, and "pthread-config"
7269# which is a program returning the flags for the Pth emulation library.
7270
7271acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7272
7273# The ordering *is* (sometimes) important. Some notes on the
7274# individual items follow:
7275
7276# pthreads: AIX (must check this before -lpthread)
7277# none: in case threads are in libc; should be tried before -Kthread and
7278# other compiler flags to prevent continual compiler warnings
7279# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7280# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7281# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7282# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7283# -pthreads: Solaris/gcc
7284# -mthreads: Mingw32/gcc, Lynx/gcc
7285# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7286# doesn't hurt to check since this sometimes defines pthreads too;
7287# also defines -D_REENTRANT)
7288# ... -mt is also the pthreads flag for HP/aCC
7289# pthread: Linux, etcetera
7290# --thread-safe: KAI C++
7291# pthread-config: use pthread-config program (for GNU Pth library)
7292
7293case "${host_cpu}-${host_os}" in
7294 *solaris*)
7295
7296 # On Solaris (at least, for some versions), libc contains stubbed
7297 # (non-functional) versions of the pthreads routines, so link-based
7298 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7299 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7300 # a function called by this macro, so we could check for that, but
7301 # who knows whether they'll stub that too in a future libc.) So,
7302 # we'll just look for -pthreads and -lpthread first:
7303
7304 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7305 ;;
cristy3ed852e2009-09-05 21:47:34 +00007306esac
7307
7308if test x"$acx_pthread_ok" = xno; then
7309for flag in $acx_pthread_flags; do
7310
7311 case $flag in
7312 none)
7313 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7314$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7315 ;;
7316
7317 -*)
7318 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7319$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7320 PTHREAD_CFLAGS="$flag"
7321 ;;
7322
7323 pthread-config)
7324 # Extract the first word of "pthread-config", so it can be a program name with args.
7325set dummy pthread-config; ac_word=$2
7326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7327$as_echo_n "checking for $ac_word... " >&6; }
7328if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7329 $as_echo_n "(cached) " >&6
7330else
7331 if test -n "$acx_pthread_config"; then
7332 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_acx_pthread_config="yes"
7342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345done
7346done
7347IFS=$as_save_IFS
7348
7349 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7350fi
7351fi
7352acx_pthread_config=$ac_cv_prog_acx_pthread_config
7353if test -n "$acx_pthread_config"; then
7354 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7355$as_echo "$acx_pthread_config" >&6; }
7356else
7357 { $as_echo "$as_me:$LINENO: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361
7362 if test x"$acx_pthread_config" = xno; then continue; fi
7363 PTHREAD_CFLAGS="`pthread-config --cflags`"
7364 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7365 ;;
7366
7367 *)
7368 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7369$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7370 PTHREAD_LIBS="-l$flag"
7371 ;;
7372 esac
7373
7374 save_LIBS="$LIBS"
7375 save_CFLAGS="$CFLAGS"
7376 LIBS="$PTHREAD_LIBS $LIBS"
7377 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7378
7379 # Check for various functions. We must include pthread.h,
7380 # since some functions may be macros. (On the Sequent, we
7381 # need a special flag -Kthread to make this header compile.)
7382 # We check for pthread_join because it is in -lpthread on IRIX
7383 # while pthread_create is in libc. We check for pthread_attr_init
7384 # due to DEC craziness with -lpthreads. We check for
7385 # pthread_cleanup_push because it is one of the few pthread
7386 # functions on Solaris that doesn't have a non-functional libc stub.
7387 # We try pthread_create on general principles.
7388 cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h. */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h. */
7394#include <pthread.h>
7395int
7396main ()
7397{
7398pthread_t th; pthread_join(th, 0);
7399 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7400 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7401 ;
7402 return 0;
7403}
7404_ACEOF
7405rm -f conftest.$ac_objext conftest$ac_exeext
7406if { (ac_try="$ac_link"
7407case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410esac
7411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7412$as_echo "$ac_try_echo") >&5
7413 (eval "$ac_link") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && {
7420 test -z "$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 } && test -s conftest$ac_exeext && {
7423 test "$cross_compiling" = yes ||
7424 $as_test_x conftest$ac_exeext
7425 }; then
7426 acx_pthread_ok=yes
7427else
7428 $as_echo "$as_me: failed program was:" >&5
7429sed 's/^/| /' conftest.$ac_ext >&5
7430
7431
7432fi
7433
7434rm -rf conftest.dSYM
7435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7436 conftest$ac_exeext conftest.$ac_ext
7437
7438 LIBS="$save_LIBS"
7439 CFLAGS="$save_CFLAGS"
7440
7441 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7442$as_echo "$acx_pthread_ok" >&6; }
7443 if test "x$acx_pthread_ok" = xyes; then
7444 break;
7445 fi
7446
7447 PTHREAD_LIBS=""
7448 PTHREAD_CFLAGS=""
7449done
7450fi
7451
7452# Various other checks:
7453if test "x$acx_pthread_ok" = xyes; then
7454 save_LIBS="$LIBS"
7455 LIBS="$PTHREAD_LIBS $LIBS"
7456 save_CFLAGS="$CFLAGS"
7457 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7458
7459 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7460 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7461$as_echo_n "checking for joinable pthread attribute... " >&6; }
7462 attr_name=unknown
7463 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7464 cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
7470#include <pthread.h>
7471int
7472main ()
7473{
7474int attr=$attr; return attr;
7475 ;
7476 return 0;
7477}
7478_ACEOF
7479rm -f conftest.$ac_objext conftest$ac_exeext
7480if { (ac_try="$ac_link"
7481case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484esac
7485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7486$as_echo "$ac_try_echo") >&5
7487 (eval "$ac_link") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest$ac_exeext && {
7497 test "$cross_compiling" = yes ||
7498 $as_test_x conftest$ac_exeext
7499 }; then
7500 attr_name=$attr; break
7501else
7502 $as_echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505
7506fi
7507
7508rm -rf conftest.dSYM
7509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7510 conftest$ac_exeext conftest.$ac_ext
7511 done
7512 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7513$as_echo "$attr_name" >&6; }
7514 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7515
7516cat >>confdefs.h <<_ACEOF
7517#define PTHREAD_CREATE_JOINABLE $attr_name
7518_ACEOF
7519
7520 fi
7521
7522 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7523$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7524 flag=no
7525 case "${host_cpu}-${host_os}" in
7526 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7527 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7528 esac
7529 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7530$as_echo "${flag}" >&6; }
7531 if test "x$flag" != xno; then
7532 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7533 fi
7534
7535 LIBS="$save_LIBS"
7536 CFLAGS="$save_CFLAGS"
7537
7538 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007539 if test x"$GCC" != xyes; then
7540 for ac_prog in xlc_r cc_r
7541do
7542 # Extract the first word of "$ac_prog", so it can be a program name with args.
7543set dummy $ac_prog; ac_word=$2
cristy3ed852e2009-09-05 21:47:34 +00007544{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7545$as_echo_n "checking for $ac_word... " >&6; }
7546if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7548else
7549 if test -n "$PTHREAD_CC"; then
7550 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 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 +00007559 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy3ed852e2009-09-05 21:47:34 +00007560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564done
7565IFS=$as_save_IFS
7566
cristy3ed852e2009-09-05 21:47:34 +00007567fi
7568fi
7569PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7570if test -n "$PTHREAD_CC"; then
7571 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7572$as_echo "$PTHREAD_CC" >&6; }
7573else
7574 { $as_echo "$as_me:$LINENO: result: no" >&5
7575$as_echo "no" >&6; }
7576fi
7577
cristy736173a2009-09-20 21:18:22 +00007578
7579 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007580done
cristy736173a2009-09-20 21:18:22 +00007581test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007582
cristy736173a2009-09-20 21:18:22 +00007583 else
7584 PTHREAD_CC=$CC
7585 fi
cristy3ed852e2009-09-05 21:47:34 +00007586else
cristy736173a2009-09-20 21:18:22 +00007587 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007588fi
7589
cristy3ed852e2009-09-05 21:47:34 +00007590
7591
7592
7593
7594# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7595if test x"$acx_pthread_ok" = xyes; then
7596
7597cat >>confdefs.h <<\_ACEOF
7598#define HAVE_PTHREAD 1
7599_ACEOF
7600
7601 :
7602else
7603 acx_pthread_ok=no
7604
7605fi
7606ac_ext=c
7607ac_cpp='$CPP $CPPFLAGS'
7608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612
7613 if test "$acx_pthread_ok" = yes; then
7614 have_threads=yes
7615 DEF_THREAD="$PTHREAD_CFLAGS"
7616 CFLAGS="$CFLAGS $DEF_THREAD"
7617 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7618 if test "$CC" != "$PTHREAD_CC"; then
7619 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7620$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7621 CC="$PTHREAD_CC"
7622 fi
7623 fi
7624fi
7625
7626# Enable support for OpenMP
7627if test "$have_threads" != 'yes'; then
7628 ac_cv_prog_c_openmp=unsupported
7629fi
7630
7631 OPENMP_CFLAGS=
7632 # Check whether --enable-openmp was given.
7633if test "${enable_openmp+set}" = set; then
7634 enableval=$enable_openmp;
7635fi
7636
7637 if test "$enable_openmp" != no; then
7638 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7639$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7640if test "${ac_cv_prog_c_openmp+set}" = set; then
7641 $as_echo_n "(cached) " >&6
7642else
7643 cat >conftest.$ac_ext <<_ACEOF
7644
7645#ifndef _OPENMP
7646 choke me
7647#endif
7648#include <omp.h>
7649int main () { return omp_get_num_threads (); }
7650
7651_ACEOF
7652rm -f conftest.$ac_objext conftest$ac_exeext
7653if { (ac_try="$ac_link"
7654case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657esac
7658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659$as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext && {
7670 test "$cross_compiling" = yes ||
7671 $as_test_x conftest$ac_exeext
7672 }; then
7673 ac_cv_prog_c_openmp='none needed'
7674else
7675 $as_echo "$as_me: failed program was:" >&5
7676sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_cv_prog_c_openmp='unsupported'
7679 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7680 ac_save_CFLAGS=$CFLAGS
7681 CFLAGS="$CFLAGS $ac_option"
7682 cat >conftest.$ac_ext <<_ACEOF
7683
7684#ifndef _OPENMP
7685 choke me
7686#endif
7687#include <omp.h>
7688int main () { return omp_get_num_threads (); }
7689
7690_ACEOF
7691rm -f conftest.$ac_objext conftest$ac_exeext
7692if { (ac_try="$ac_link"
7693case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698$as_echo "$ac_try_echo") >&5
7699 (eval "$ac_link") 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest$ac_exeext && {
7709 test "$cross_compiling" = yes ||
7710 $as_test_x conftest$ac_exeext
7711 }; then
7712 ac_cv_prog_c_openmp=$ac_option
7713else
7714 $as_echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717
7718fi
7719
7720rm -rf conftest.dSYM
7721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7722 conftest$ac_exeext conftest.$ac_ext
7723 CFLAGS=$ac_save_CFLAGS
7724 if test "$ac_cv_prog_c_openmp" != unsupported; then
7725 break
7726 fi
7727 done
7728fi
7729
7730rm -rf conftest.dSYM
7731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7732 conftest$ac_exeext conftest.$ac_ext
7733fi
7734{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7735$as_echo "$ac_cv_prog_c_openmp" >&6; }
7736 case $ac_cv_prog_c_openmp in #(
7737 "none needed" | unsupported)
7738 ;; #(
7739 *)
7740 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7741 esac
7742 fi
7743
7744
7745CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7746MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7747
7748
cristy736173a2009-09-20 21:18:22 +00007749# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007750
7751ac_ext=c
7752ac_cpp='$CPP $CPPFLAGS'
7753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757{ $as_echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
7758$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7759if test "${ax_cv_c_compiler_ms+set}" = set; then
7760 $as_echo_n "(cached) " >&6
7761else
7762 cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h. */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h. */
7768
7769int
7770main ()
7771{
7772#ifndef _MSC_VER
7773 choke me
7774#endif
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7781if { (ac_try="$ac_compile"
7782case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7787$as_echo "$ac_try_echo") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 ax_compiler_ms=yes
7799else
7800 $as_echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ax_compiler_ms=no
7804fi
7805
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807ax_cv_c_compiler_ms=$ax_compiler_ms
7808
7809fi
7810{ $as_echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
7811$as_echo "$ax_cv_c_compiler_ms" >&6; }
7812if test X$ax_compiler_ms = Xno; then
7813 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7814fi
7815
7816
cristy736173a2009-09-20 21:18:22 +00007817ax_save_CPPFLAGS=$CPPFLAGS
7818CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7819
7820
cristyc7083c12009-10-14 03:16:55 +00007821for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007822do
7823as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7826$as_echo_n "checking for $ac_header... " >&6; }
7827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7828 $as_echo_n "(cached) " >&6
7829fi
7830ac_res=`eval 'as_val=${'$as_ac_Header'}
7831 $as_echo "$as_val"'`
7832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7833$as_echo "$ac_res" >&6; }
7834else
7835 # Is the header compilable?
7836{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7837$as_echo_n "checking $ac_header usability... " >&6; }
7838cat >conftest.$ac_ext <<_ACEOF
7839/* confdefs.h. */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */
7844$ac_includes_default
7845#include <$ac_header>
7846_ACEOF
7847rm -f conftest.$ac_objext
7848if { (ac_try="$ac_compile"
7849case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854$as_echo "$ac_try_echo") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_header_compiler=yes
7866else
7867 $as_echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_header_compiler=no
7871fi
7872
7873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7875$as_echo "$ac_header_compiler" >&6; }
7876
7877# Is the header present?
7878{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7879$as_echo_n "checking $ac_header presence... " >&6; }
7880cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886#include <$ac_header>
7887_ACEOF
7888if { (ac_try="$ac_cpp conftest.$ac_ext"
7889case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892esac
7893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7894$as_echo "$ac_try_echo") >&5
7895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } >/dev/null && {
7902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 }; then
7905 ac_header_preproc=yes
7906else
7907 $as_echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_header_preproc=no
7911fi
7912
7913rm -f conftest.err conftest.$ac_ext
7914{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7915$as_echo "$ac_header_preproc" >&6; }
7916
7917# So? What about this header?
7918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7919 yes:no: )
7920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7921$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7923$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7924 ac_header_preproc=yes
7925 ;;
7926 no:yes:* )
7927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7928$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7930$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7932$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7934$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7938$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7939 ( cat <<\_ASBOX
7940## ----------------------------------------- ##
7941## Report this to http://www.imagemagick.org ##
7942## ----------------------------------------- ##
7943_ASBOX
7944 ) | sed "s/^/$as_me: WARNING: /" >&2
7945 ;;
7946esac
7947{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7948$as_echo_n "checking for $ac_header... " >&6; }
7949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7950 $as_echo_n "(cached) " >&6
7951else
7952 eval "$as_ac_Header=\$ac_header_preproc"
7953fi
7954ac_res=`eval 'as_val=${'$as_ac_Header'}
7955 $as_echo "$as_val"'`
7956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7957$as_echo "$ac_res" >&6; }
7958
7959fi
7960as_val=`eval 'as_val=${'$as_ac_Header'}
7961 $as_echo "$as_val"'`
7962 if test "x$as_val" = x""yes; then
7963 cat >>confdefs.h <<_ACEOF
7964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965_ACEOF
7966
7967fi
7968
7969done
7970
7971CPPFLAGS=$ax_save_CPPFLAGS
7972
7973
7974for ac_header in windows.h
7975do
7976as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7979$as_echo_n "checking for $ac_header... " >&6; }
7980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 $as_echo_n "(cached) " >&6
7982fi
7983ac_res=`eval 'as_val=${'$as_ac_Header'}
7984 $as_echo "$as_val"'`
7985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7986$as_echo "$ac_res" >&6; }
7987else
7988 # Is the header compilable?
7989{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7990$as_echo_n "checking $ac_header usability... " >&6; }
7991cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997$ac_includes_default
7998#include <$ac_header>
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8007$as_echo "$ac_try_echo") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_header_compiler=yes
8019else
8020 $as_echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_header_compiler=no
8024fi
8025
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028$as_echo "$ac_header_compiler" >&6; }
8029
8030# Is the header present?
8031{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032$as_echo_n "checking $ac_header presence... " >&6; }
8033cat >conftest.$ac_ext <<_ACEOF
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039#include <$ac_header>
8040_ACEOF
8041if { (ac_try="$ac_cpp conftest.$ac_ext"
8042case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045esac
8046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8047$as_echo "$ac_try_echo") >&5
8048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } >/dev/null && {
8055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8056 test ! -s conftest.err
8057 }; then
8058 ac_header_preproc=yes
8059else
8060 $as_echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_preproc=no
8064fi
8065
8066rm -f conftest.err conftest.$ac_ext
8067{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8068$as_echo "$ac_header_preproc" >&6; }
8069
8070# So? What about this header?
8071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8072 yes:no: )
8073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8074$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8076$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8077 ac_header_preproc=yes
8078 ;;
8079 no:yes:* )
8080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8083$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8085$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8087$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8089$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8091$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8092 ( cat <<\_ASBOX
8093## ----------------------------------------- ##
8094## Report this to http://www.imagemagick.org ##
8095## ----------------------------------------- ##
8096_ASBOX
8097 ) | sed "s/^/$as_me: WARNING: /" >&2
8098 ;;
8099esac
8100{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8101$as_echo_n "checking for $ac_header... " >&6; }
8102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8103 $as_echo_n "(cached) " >&6
8104else
8105 eval "$as_ac_Header=\$ac_header_preproc"
8106fi
8107ac_res=`eval 'as_val=${'$as_ac_Header'}
8108 $as_echo "$as_val"'`
8109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8110$as_echo "$ac_res" >&6; }
8111
8112fi
8113as_val=`eval 'as_val=${'$as_ac_Header'}
8114 $as_echo "$as_val"'`
8115 if test "x$as_val" = x""yes; then
8116 cat >>confdefs.h <<_ACEOF
8117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8118_ACEOF
8119
8120fi
8121
8122done
8123
8124
8125
8126
8127{ $as_echo "$as_me:$LINENO: checking for OpenCL library" >&5
8128$as_echo_n "checking for OpenCL library... " >&6; }
8129if test "${ax_cv_check_cl_libcl+set}" = set; then
8130 $as_echo_n "(cached) " >&6
8131else
8132 ax_cv_check_cl_libcl=no
8133case $host_cpu in
8134 x86_64) ax_check_cl_libdir=lib64 ;;
8135 *) ax_check_cl_libdir=lib ;;
8136esac
8137ax_save_CPPFLAGS=$CPPFLAGS
8138CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8139ax_save_LIBS=$LIBS
8140LIBS=""
cristya49aa422009-09-20 23:40:10 +00008141ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00008142for ax_lib in $ax_check_libs; do
8143 if test X$ax_compiler_ms = Xyes; then
8144 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8145else
8146 ax_try_lib=$ax_lib
8147fi
8148
8149 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8150cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156
8157# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8158# include <windows.h>
8159# endif
cristya03a0852009-10-13 02:02:39 +00008160# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008161# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008162# elif defined(HAVE_OPENCL_OPENCL_H)
8163# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008164# else
cristya03a0852009-10-13 02:02:39 +00008165# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008166# endif
8167int
8168main ()
8169{
cristyc7083c12009-10-14 03:16:55 +00008170clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008171 ;
8172 return 0;
8173}
8174_ACEOF
8175rm -f conftest.$ac_objext conftest$ac_exeext
8176if { (ac_try="$ac_link"
8177case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180esac
8181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8182$as_echo "$ac_try_echo") >&5
8183 (eval "$ac_link") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest$ac_exeext && {
8193 test "$cross_compiling" = yes ||
8194 $as_test_x conftest$ac_exeext
8195 }; then
8196 ax_cv_check_cl_libcl=$ax_try_lib; break
8197else
8198 $as_echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 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"
8202 cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208
8209# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8210# include <windows.h>
8211# endif
cristya03a0852009-10-13 02:02:39 +00008212# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008213# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008214# elif defined(HAVE_OPENCL_OPENCL_H)
8215# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008216# else
cristya03a0852009-10-13 02:02:39 +00008217# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008218# endif
8219int
8220main ()
8221{
cristyc7083c12009-10-14 03:16:55 +00008222clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
8228if { (ac_try="$ac_link"
8229case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232esac
8233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234$as_echo "$ac_try_echo") >&5
8235 (eval "$ac_link") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest$ac_exeext && {
8245 test "$cross_compiling" = yes ||
8246 $as_test_x conftest$ac_exeext
8247 }; then
8248 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8249else
8250 $as_echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 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"
8254 cat >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
8261# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8262# include <windows.h>
8263# endif
cristya03a0852009-10-13 02:02:39 +00008264# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008265# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008266# elif defined(HAVE_OPENCL_OPENCL_H)
8267# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008268# else
cristya03a0852009-10-13 02:02:39 +00008269# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008270# endif
8271int
8272main ()
8273{
cristyc7083c12009-10-14 03:16:55 +00008274clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (ac_try="$ac_link"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286$as_echo "$ac_try_echo") >&5
8287 (eval "$ac_link") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest$ac_exeext && {
8297 test "$cross_compiling" = yes ||
8298 $as_test_x conftest$ac_exeext
8299 }; then
8300 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8301else
8302 $as_echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305
8306fi
8307
8308rm -rf conftest.dSYM
8309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311fi
8312
8313rm -rf conftest.dSYM
8314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8315 conftest$ac_exeext conftest.$ac_ext
8316fi
8317
8318rm -rf conftest.dSYM
8319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8320 conftest$ac_exeext conftest.$ac_ext
8321done
8322
8323if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then
8324 LIBS='-framework OpenCL'
8325 cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
8331
8332# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8333# include <windows.h>
8334# endif
cristya03a0852009-10-13 02:02:39 +00008335# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008336# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008337# elif defined(HAVE_OPENCL_OPENCL_H)
8338# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008339# else
cristya03a0852009-10-13 02:02:39 +00008340# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008341# endif
8342int
8343main ()
8344{
cristyc7083c12009-10-14 03:16:55 +00008345clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008346 ;
8347 return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext conftest$ac_exeext
8351if { (ac_try="$ac_link"
8352case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355esac
8356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357$as_echo "$ac_try_echo") >&5
8358 (eval "$ac_link") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest$ac_exeext && {
8368 test "$cross_compiling" = yes ||
8369 $as_test_x conftest$ac_exeext
8370 }; then
8371 ax_cv_check_cl_libcl=$LIBS
8372else
8373 $as_echo "$as_me: failed program was:" >&5
8374sed 's/^/| /' conftest.$ac_ext >&5
8375
8376
8377fi
8378
8379rm -rf conftest.dSYM
8380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8381 conftest$ac_exeext conftest.$ac_ext
8382fi
8383
8384
8385LIBS=$ax_save_LIBS
8386CPPFLAGS=$ax_save_CPPFLAGS
8387fi
8388{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cl_libcl" >&5
8389$as_echo "$ax_cv_check_cl_libcl" >&6; }
8390
8391if test "X$ax_cv_check_cl_libcl" = Xno; then
8392 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8393else
8394 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
8395fi
8396
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405
8406
cristyc7083c12009-10-14 03:16:55 +00008407CFLAGS="$CL_CFLAGS $CFLAGS"
8408LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008409
cristy2e8b51d2009-10-17 18:26:15 +00008410
cristy3ed852e2009-09-05 21:47:34 +00008411########
8412#
8413# Check for large file support
8414#
8415########
8416# Check whether --enable-largefile was given.
8417if test "${enable_largefile+set}" = set; then
8418 enableval=$enable_largefile;
8419fi
8420
8421if test "$enable_largefile" != no; then
8422
8423 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8424$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8425if test "${ac_cv_sys_largefile_CC+set}" = set; then
8426 $as_echo_n "(cached) " >&6
8427else
8428 ac_cv_sys_largefile_CC=no
8429 if test "$GCC" != yes; then
8430 ac_save_CC=$CC
8431 while :; do
8432 # IRIX 6.2 and later do not support large files by default,
8433 # so use the C compiler's -n32 option if that helps.
8434 cat >conftest.$ac_ext <<_ACEOF
8435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
8440#include <sys/types.h>
8441 /* Check that off_t can represent 2**63 - 1 correctly.
8442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8443 since some C++ compilers masquerading as C compilers
8444 incorrectly reject 9223372036854775807. */
8445#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8447 && LARGE_OFF_T % 2147483647 == 1)
8448 ? 1 : -1];
8449int
8450main ()
8451{
8452
8453 ;
8454 return 0;
8455}
8456_ACEOF
8457 rm -f conftest.$ac_objext
8458if { (ac_try="$ac_compile"
8459case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464$as_echo "$ac_try_echo") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 break
8476else
8477 $as_echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480
8481fi
8482
8483rm -f core conftest.err conftest.$ac_objext
8484 CC="$CC -n32"
8485 rm -f conftest.$ac_objext
8486if { (ac_try="$ac_compile"
8487case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492$as_echo "$ac_try_echo") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
8503 ac_cv_sys_largefile_CC=' -n32'; break
8504else
8505 $as_echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508
8509fi
8510
8511rm -f core conftest.err conftest.$ac_objext
8512 break
8513 done
8514 CC=$ac_save_CC
8515 rm -f conftest.$ac_ext
8516 fi
8517fi
8518{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8519$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8520 if test "$ac_cv_sys_largefile_CC" != no; then
8521 CC=$CC$ac_cv_sys_largefile_CC
8522 fi
8523
8524 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8525$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8526if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8527 $as_echo_n "(cached) " >&6
8528else
8529 while :; do
8530 cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536#include <sys/types.h>
8537 /* Check that off_t can represent 2**63 - 1 correctly.
8538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8539 since some C++ compilers masquerading as C compilers
8540 incorrectly reject 9223372036854775807. */
8541#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8543 && LARGE_OFF_T % 2147483647 == 1)
8544 ? 1 : -1];
8545int
8546main ()
8547{
8548
8549 ;
8550 return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext
8554if { (ac_try="$ac_compile"
8555case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558esac
8559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560$as_echo "$ac_try_echo") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_cv_sys_file_offset_bits=no; break
8572else
8573 $as_echo "$as_me: failed program was:" >&5
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
8576
8577fi
8578
8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 cat >conftest.$ac_ext <<_ACEOF
8581/* confdefs.h. */
8582_ACEOF
8583cat confdefs.h >>conftest.$ac_ext
8584cat >>conftest.$ac_ext <<_ACEOF
8585/* end confdefs.h. */
8586#define _FILE_OFFSET_BITS 64
8587#include <sys/types.h>
8588 /* Check that off_t can represent 2**63 - 1 correctly.
8589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8590 since some C++ compilers masquerading as C compilers
8591 incorrectly reject 9223372036854775807. */
8592#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8594 && LARGE_OFF_T % 2147483647 == 1)
8595 ? 1 : -1];
8596int
8597main ()
8598{
8599
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (ac_try="$ac_compile"
8606case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609esac
8610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8611$as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_cv_sys_file_offset_bits=64; break
8623else
8624 $as_echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627
8628fi
8629
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 ac_cv_sys_file_offset_bits=unknown
8632 break
8633done
8634fi
8635{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8636$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8637case $ac_cv_sys_file_offset_bits in #(
8638 no | unknown) ;;
8639 *)
8640cat >>confdefs.h <<_ACEOF
8641#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8642_ACEOF
8643;;
8644esac
8645rm -rf conftest*
8646 if test $ac_cv_sys_file_offset_bits = unknown; then
8647 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8648$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8649if test "${ac_cv_sys_large_files+set}" = set; then
8650 $as_echo_n "(cached) " >&6
8651else
8652 while :; do
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659#include <sys/types.h>
8660 /* Check that off_t can represent 2**63 - 1 correctly.
8661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8662 since some C++ compilers masquerading as C compilers
8663 incorrectly reject 9223372036854775807. */
8664#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8666 && LARGE_OFF_T % 2147483647 == 1)
8667 ? 1 : -1];
8668int
8669main ()
8670{
8671
8672 ;
8673 return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext
8677if { (ac_try="$ac_compile"
8678case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681esac
8682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683$as_echo "$ac_try_echo") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.$ac_objext; then
8694 ac_cv_sys_large_files=no; break
8695else
8696 $as_echo "$as_me: failed program was:" >&5
8697sed 's/^/| /' conftest.$ac_ext >&5
8698
8699
8700fi
8701
8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 cat >conftest.$ac_ext <<_ACEOF
8704/* confdefs.h. */
8705_ACEOF
8706cat confdefs.h >>conftest.$ac_ext
8707cat >>conftest.$ac_ext <<_ACEOF
8708/* end confdefs.h. */
8709#define _LARGE_FILES 1
8710#include <sys/types.h>
8711 /* Check that off_t can represent 2**63 - 1 correctly.
8712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8713 since some C++ compilers masquerading as C compilers
8714 incorrectly reject 9223372036854775807. */
8715#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8717 && LARGE_OFF_T % 2147483647 == 1)
8718 ? 1 : -1];
8719int
8720main ()
8721{
8722
8723 ;
8724 return 0;
8725}
8726_ACEOF
8727rm -f conftest.$ac_objext
8728if { (ac_try="$ac_compile"
8729case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732esac
8733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734$as_echo "$ac_try_echo") >&5
8735 (eval "$ac_compile") 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest.$ac_objext; then
8745 ac_cv_sys_large_files=1; break
8746else
8747 $as_echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750
8751fi
8752
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 ac_cv_sys_large_files=unknown
8755 break
8756done
8757fi
8758{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8759$as_echo "$ac_cv_sys_large_files" >&6; }
8760case $ac_cv_sys_large_files in #(
8761 no | unknown) ;;
8762 *)
8763cat >>confdefs.h <<_ACEOF
8764#define _LARGE_FILES $ac_cv_sys_large_files
8765_ACEOF
8766;;
8767esac
8768rm -rf conftest*
8769 fi
8770fi
8771
8772{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8773$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8774if test "${ac_cv_sys_largefile_source+set}" = set; then
8775 $as_echo_n "(cached) " >&6
8776else
8777 while :; do
8778 cat >conftest.$ac_ext <<_ACEOF
8779/* confdefs.h. */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */
8784#include <sys/types.h> /* for off_t */
8785 #include <stdio.h>
8786int
8787main ()
8788{
8789int (*fp) (FILE *, off_t, int) = fseeko;
8790 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8791 ;
8792 return 0;
8793}
8794_ACEOF
8795rm -f conftest.$ac_objext conftest$ac_exeext
8796if { (ac_try="$ac_link"
8797case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800esac
8801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802$as_echo "$ac_try_echo") >&5
8803 (eval "$ac_link") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest$ac_exeext && {
8813 test "$cross_compiling" = yes ||
8814 $as_test_x conftest$ac_exeext
8815 }; then
8816 ac_cv_sys_largefile_source=no; break
8817else
8818 $as_echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821
8822fi
8823
8824rm -rf conftest.dSYM
8825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8826 conftest$ac_exeext conftest.$ac_ext
8827 cat >conftest.$ac_ext <<_ACEOF
8828/* confdefs.h. */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h. */
8833#define _LARGEFILE_SOURCE 1
8834#include <sys/types.h> /* for off_t */
8835 #include <stdio.h>
8836int
8837main ()
8838{
8839int (*fp) (FILE *, off_t, int) = fseeko;
8840 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8841 ;
8842 return 0;
8843}
8844_ACEOF
8845rm -f conftest.$ac_objext conftest$ac_exeext
8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852$as_echo "$ac_try_echo") >&5
8853 (eval "$ac_link") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest$ac_exeext && {
8863 test "$cross_compiling" = yes ||
8864 $as_test_x conftest$ac_exeext
8865 }; then
8866 ac_cv_sys_largefile_source=1; break
8867else
8868 $as_echo "$as_me: failed program was:" >&5
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871
8872fi
8873
8874rm -rf conftest.dSYM
8875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8876 conftest$ac_exeext conftest.$ac_ext
8877 ac_cv_sys_largefile_source=unknown
8878 break
8879done
8880fi
8881{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8882$as_echo "$ac_cv_sys_largefile_source" >&6; }
8883case $ac_cv_sys_largefile_source in #(
8884 no | unknown) ;;
8885 *)
8886cat >>confdefs.h <<_ACEOF
8887#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8888_ACEOF
8889;;
8890esac
8891rm -rf conftest*
8892
8893# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8894# in glibc 2.1.3, but that breaks too many other things.
8895# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8896if test $ac_cv_sys_largefile_source != unknown; then
8897
8898cat >>confdefs.h <<\_ACEOF
8899#define HAVE_FSEEKO 1
8900_ACEOF
8901
8902fi
8903
8904LFS_CPPFLAGS=''
8905if test "$enable_largefile" != no; then
8906 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8907 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8908 else
8909 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
8910$as_echo_n "checking for native large file support... " >&6; }
8911 if test "$cross_compiling" = yes; then
8912 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8914{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8915See \`config.log' for more details." >&5
8916$as_echo "$as_me: error: cannot run test program while cross compiling
8917See \`config.log' for more details." >&2;}
8918 { (exit 1); exit 1; }; }; }
8919else
8920 cat >conftest.$ac_ext <<_ACEOF
8921#include <unistd.h>
8922 main () {
8923 exit(!(sizeof(off_t) == 8));
8924 }
8925_ACEOF
8926rm -f conftest$ac_exeext
8927if { (ac_try="$ac_link"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8933$as_echo "$ac_try_echo") >&5
8934 (eval "$ac_link") 2>&5
8935 ac_status=$?
8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8938 { (case "(($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_try") 2>&5
8945 ac_status=$?
8946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
8949#define _FILE_OFFSET_BITS 64
8950_ACEOF
8951
8952 { $as_echo "$as_me:$LINENO: result: yes" >&5
8953$as_echo "yes" >&6; }
8954else
8955 $as_echo "$as_me: program exited with status $ac_status" >&5
8956$as_echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959( exit $ac_status )
8960{ $as_echo "$as_me:$LINENO: result: no" >&5
8961$as_echo "no" >&6; }
8962fi
8963rm -rf conftest.dSYM
8964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8965fi
8966
8967
8968 fi
8969 if test "$ac_cv_sys_large_files" != 'no'; then
8970 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8971 fi
8972 if test "$ac_cv_sys_largefile_source" != 'no'; then
8973 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8974 fi
8975fi
8976
8977
8978#
8979# Configure libtool & libltdl
8980#
8981# Configure libtool
8982enable_dlopen=yes
8983
8984
8985
8986case `pwd` in
8987 *\ * | *\ *)
8988 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8989$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8990esac
8991
8992
8993
8994macro_version='2.2.6'
8995macro_revision='1.3012'
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009ltmain="$ac_aux_dir/ltmain.sh"
9010
9011{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
9012$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9013if test "${lt_cv_path_NM+set}" = set; then
9014 $as_echo_n "(cached) " >&6
9015else
9016 if test -n "$NM"; then
9017 # Let the user override the test.
9018 lt_cv_path_NM="$NM"
9019else
9020 lt_nm_to_check="${ac_tool_prefix}nm"
9021 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9022 lt_nm_to_check="$lt_nm_to_check nm"
9023 fi
9024 for lt_tmp_nm in $lt_nm_to_check; do
9025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9027 IFS="$lt_save_ifs"
9028 test -z "$ac_dir" && ac_dir=.
9029 tmp_nm="$ac_dir/$lt_tmp_nm"
9030 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9031 # Check to see if the nm accepts a BSD-compat flag.
9032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9033 # nm: unknown option "B" ignored
9034 # Tru64's nm complains that /dev/null is an invalid object file
9035 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9036 */dev/null* | *'Invalid file or object type'*)
9037 lt_cv_path_NM="$tmp_nm -B"
9038 break
9039 ;;
9040 *)
9041 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9042 */dev/null*)
9043 lt_cv_path_NM="$tmp_nm -p"
9044 break
9045 ;;
9046 *)
9047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9048 continue # so that we can try to find one that supports BSD flags
9049 ;;
9050 esac
9051 ;;
9052 esac
9053 fi
9054 done
9055 IFS="$lt_save_ifs"
9056 done
9057 : ${lt_cv_path_NM=no}
9058fi
9059fi
9060{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9061$as_echo "$lt_cv_path_NM" >&6; }
9062if test "$lt_cv_path_NM" != "no"; then
9063 NM="$lt_cv_path_NM"
9064else
9065 # Didn't find any BSD compatible name lister, look for dumpbin.
9066 if test -n "$ac_tool_prefix"; then
9067 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9068 do
9069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9071{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9072$as_echo_n "checking for $ac_word... " >&6; }
9073if test "${ac_cv_prog_DUMPBIN+set}" = set; then
9074 $as_echo_n "(cached) " >&6
9075else
9076 if test -n "$DUMPBIN"; then
9077 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9078else
9079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080for as_dir in $PATH
9081do
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9086 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9089 fi
9090done
9091done
9092IFS=$as_save_IFS
9093
9094fi
9095fi
9096DUMPBIN=$ac_cv_prog_DUMPBIN
9097if test -n "$DUMPBIN"; then
9098 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
9099$as_echo "$DUMPBIN" >&6; }
9100else
9101 { $as_echo "$as_me:$LINENO: result: no" >&5
9102$as_echo "no" >&6; }
9103fi
9104
9105
9106 test -n "$DUMPBIN" && break
9107 done
9108fi
9109if test -z "$DUMPBIN"; then
9110 ac_ct_DUMPBIN=$DUMPBIN
9111 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9112do
9113 # Extract the first word of "$ac_prog", so it can be a program name with args.
9114set dummy $ac_prog; ac_word=$2
9115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9116$as_echo_n "checking for $ac_word... " >&6; }
9117if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
9118 $as_echo_n "(cached) " >&6
9119else
9120 if test -n "$ac_ct_DUMPBIN"; then
9121 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9122else
9123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124for as_dir in $PATH
9125do
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9133 fi
9134done
9135done
9136IFS=$as_save_IFS
9137
9138fi
9139fi
9140ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9141if test -n "$ac_ct_DUMPBIN"; then
9142 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
9143$as_echo "$ac_ct_DUMPBIN" >&6; }
9144else
9145 { $as_echo "$as_me:$LINENO: result: no" >&5
9146$as_echo "no" >&6; }
9147fi
9148
9149
9150 test -n "$ac_ct_DUMPBIN" && break
9151done
9152
9153 if test "x$ac_ct_DUMPBIN" = x; then
9154 DUMPBIN=":"
9155 else
9156 case $cross_compiling:$ac_tool_warned in
9157yes:)
9158{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9160ac_tool_warned=yes ;;
9161esac
9162 DUMPBIN=$ac_ct_DUMPBIN
9163 fi
9164fi
9165
9166
9167 if test "$DUMPBIN" != ":"; then
9168 NM="$DUMPBIN"
9169 fi
9170fi
9171test -z "$NM" && NM=nm
9172
9173
9174
9175
9176
9177
9178{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
9179$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9180if test "${lt_cv_nm_interface+set}" = set; then
9181 $as_echo_n "(cached) " >&6
9182else
9183 lt_cv_nm_interface="BSD nm"
9184 echo "int some_variable = 0;" > conftest.$ac_ext
cristy2e8b51d2009-10-17 18:26:15 +00009185 (eval echo "\"\$as_me:9185: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009186 (eval "$ac_compile" 2>conftest.err)
9187 cat conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +00009188 (eval echo "\"\$as_me:9188: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009189 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9190 cat conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +00009191 (eval echo "\"\$as_me:9191: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009192 cat conftest.out >&5
9193 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9194 lt_cv_nm_interface="MS dumpbin"
9195 fi
9196 rm -f conftest*
9197fi
9198{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
9199$as_echo "$lt_cv_nm_interface" >&6; }
9200
9201# find the maximum length of command line arguments
9202{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9203$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9204if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9205 $as_echo_n "(cached) " >&6
9206else
9207 i=0
9208 teststring="ABCD"
9209
9210 case $build_os in
9211 msdosdjgpp*)
9212 # On DJGPP, this test can blow up pretty badly due to problems in libc
9213 # (any single argument exceeding 2000 bytes causes a buffer overrun
9214 # during glob expansion). Even if it were fixed, the result of this
9215 # check would be larger than it should be.
9216 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9217 ;;
9218
9219 gnu*)
9220 # Under GNU Hurd, this test is not required because there is
9221 # no limit to the length of command line arguments.
9222 # Libtool will interpret -1 as no limit whatsoever
9223 lt_cv_sys_max_cmd_len=-1;
9224 ;;
9225
9226 cygwin* | mingw* | cegcc*)
9227 # On Win9x/ME, this test blows up -- it succeeds, but takes
9228 # about 5 minutes as the teststring grows exponentially.
9229 # Worse, since 9x/ME are not pre-emptively multitasking,
9230 # you end up with a "frozen" computer, even though with patience
9231 # the test eventually succeeds (with a max line length of 256k).
9232 # Instead, let's just punt: use the minimum linelength reported by
9233 # all of the supported platforms: 8192 (on NT/2K/XP).
9234 lt_cv_sys_max_cmd_len=8192;
9235 ;;
9236
9237 amigaos*)
9238 # On AmigaOS with pdksh, this test takes hours, literally.
9239 # So we just punt and use a minimum line length of 8192.
9240 lt_cv_sys_max_cmd_len=8192;
9241 ;;
9242
9243 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9244 # This has been around since 386BSD, at least. Likely further.
9245 if test -x /sbin/sysctl; then
9246 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9247 elif test -x /usr/sbin/sysctl; then
9248 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9249 else
9250 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9251 fi
9252 # And add a safety zone
9253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9255 ;;
9256
9257 interix*)
9258 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9259 lt_cv_sys_max_cmd_len=196608
9260 ;;
9261
9262 osf*)
9263 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9264 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9265 # nice to cause kernel panics so lets avoid the loop below.
9266 # First set a reasonable default.
9267 lt_cv_sys_max_cmd_len=16384
9268 #
9269 if test -x /sbin/sysconfig; then
9270 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9271 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9272 esac
9273 fi
9274 ;;
9275 sco3.2v5*)
9276 lt_cv_sys_max_cmd_len=102400
9277 ;;
9278 sysv5* | sco5v6* | sysv4.2uw2*)
9279 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9280 if test -n "$kargmax"; then
9281 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9282 else
9283 lt_cv_sys_max_cmd_len=32768
9284 fi
9285 ;;
9286 *)
9287 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9288 if test -n "$lt_cv_sys_max_cmd_len"; then
9289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9291 else
9292 # Make teststring a little bigger before we do anything with it.
9293 # a 1K string should be a reasonable start.
9294 for i in 1 2 3 4 5 6 7 8 ; do
9295 teststring=$teststring$teststring
9296 done
9297 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9298 # If test is not a shell built-in, we'll probably end up computing a
9299 # maximum length that is only half of the actual maximum length, but
9300 # we can't tell.
9301 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9302 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9303 test $i != 17 # 1/2 MB should be enough
9304 do
9305 i=`expr $i + 1`
9306 teststring=$teststring$teststring
9307 done
9308 # Only check the string length outside the loop.
9309 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9310 teststring=
9311 # Add a significant safety factor because C++ compilers can tack on
9312 # massive amounts of additional arguments before passing them to the
9313 # linker. It appears as though 1/2 is a usable value.
9314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9315 fi
9316 ;;
9317 esac
9318
9319fi
9320
9321if test -n $lt_cv_sys_max_cmd_len ; then
9322 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9323$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9324else
9325 { $as_echo "$as_me:$LINENO: result: none" >&5
9326$as_echo "none" >&6; }
9327fi
9328max_cmd_len=$lt_cv_sys_max_cmd_len
9329
9330
9331
9332
9333
9334
9335: ${CP="cp -f"}
9336: ${MV="mv -f"}
9337: ${RM="rm -f"}
9338
9339{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
9340$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9341# Try some XSI features
9342xsi_shell=no
9343( _lt_dummy="a/b/c"
9344 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9345 = c,a/b,, \
9346 && eval 'test $(( 1 + 1 )) -eq 2 \
9347 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9348 && xsi_shell=yes
9349{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
9350$as_echo "$xsi_shell" >&6; }
9351
9352
9353{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
9354$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9355lt_shell_append=no
9356( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9357 >/dev/null 2>&1 \
9358 && lt_shell_append=yes
9359{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
9360$as_echo "$lt_shell_append" >&6; }
9361
9362
9363if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9364 lt_unset=unset
9365else
9366 lt_unset=false
9367fi
9368
9369
9370
9371
9372
9373# test EBCDIC or ASCII
9374case `echo X|tr X '\101'` in
9375 A) # ASCII based system
9376 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9377 lt_SP2NL='tr \040 \012'
9378 lt_NL2SP='tr \015\012 \040\040'
9379 ;;
9380 *) # EBCDIC based system
9381 lt_SP2NL='tr \100 \n'
9382 lt_NL2SP='tr \r\n \100\100'
9383 ;;
9384esac
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9395$as_echo_n "checking for $LD option to reload object files... " >&6; }
9396if test "${lt_cv_ld_reload_flag+set}" = set; then
9397 $as_echo_n "(cached) " >&6
9398else
9399 lt_cv_ld_reload_flag='-r'
9400fi
9401{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9402$as_echo "$lt_cv_ld_reload_flag" >&6; }
9403reload_flag=$lt_cv_ld_reload_flag
9404case $reload_flag in
9405"" | " "*) ;;
9406*) reload_flag=" $reload_flag" ;;
9407esac
9408reload_cmds='$LD$reload_flag -o $output$reload_objs'
9409case $host_os in
9410 darwin*)
9411 if test "$GCC" = yes; then
9412 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9413 else
9414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9415 fi
9416 ;;
9417esac
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427if test -n "$ac_tool_prefix"; then
9428 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9429set dummy ${ac_tool_prefix}objdump; ac_word=$2
9430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
9432if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9433 $as_echo_n "(cached) " >&6
9434else
9435 if test -n "$OBJDUMP"; then
9436 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9437else
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9448 fi
9449done
9450done
9451IFS=$as_save_IFS
9452
9453fi
9454fi
9455OBJDUMP=$ac_cv_prog_OBJDUMP
9456if test -n "$OBJDUMP"; then
9457 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9458$as_echo "$OBJDUMP" >&6; }
9459else
9460 { $as_echo "$as_me:$LINENO: result: no" >&5
9461$as_echo "no" >&6; }
9462fi
9463
9464
9465fi
9466if test -z "$ac_cv_prog_OBJDUMP"; then
9467 ac_ct_OBJDUMP=$OBJDUMP
9468 # Extract the first word of "objdump", so it can be a program name with args.
9469set dummy objdump; ac_word=$2
9470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9471$as_echo_n "checking for $ac_word... " >&6; }
9472if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9473 $as_echo_n "(cached) " >&6
9474else
9475 if test -n "$ac_ct_OBJDUMP"; then
9476 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9477else
9478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479for as_dir in $PATH
9480do
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9485 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9488 fi
9489done
9490done
9491IFS=$as_save_IFS
9492
9493fi
9494fi
9495ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9496if test -n "$ac_ct_OBJDUMP"; then
9497 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9498$as_echo "$ac_ct_OBJDUMP" >&6; }
9499else
9500 { $as_echo "$as_me:$LINENO: result: no" >&5
9501$as_echo "no" >&6; }
9502fi
9503
9504 if test "x$ac_ct_OBJDUMP" = x; then
9505 OBJDUMP="false"
9506 else
9507 case $cross_compiling:$ac_tool_warned in
9508yes:)
9509{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9511ac_tool_warned=yes ;;
9512esac
9513 OBJDUMP=$ac_ct_OBJDUMP
9514 fi
9515else
9516 OBJDUMP="$ac_cv_prog_OBJDUMP"
9517fi
9518
9519test -z "$OBJDUMP" && OBJDUMP=objdump
9520
9521
9522
9523
9524
9525
9526{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9527$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9528if test "${lt_cv_deplibs_check_method+set}" = set; then
9529 $as_echo_n "(cached) " >&6
9530else
9531 lt_cv_file_magic_cmd='$MAGIC_CMD'
9532lt_cv_file_magic_test_file=
9533lt_cv_deplibs_check_method='unknown'
9534# Need to set the preceding variable on all platforms that support
9535# interlibrary dependencies.
9536# 'none' -- dependencies not supported.
9537# `unknown' -- same as none, but documents that we really don't know.
9538# 'pass_all' -- all dependencies passed with no checks.
9539# 'test_compile' -- check by making test program.
9540# 'file_magic [[regex]]' -- check by looking for files in library path
9541# which responds to the $file_magic_cmd with a given extended regex.
9542# If you have `file' or equivalent on your system and you're not sure
9543# whether `pass_all' will *always* work, you probably want this one.
9544
9545case $host_os in
9546aix[4-9]*)
9547 lt_cv_deplibs_check_method=pass_all
9548 ;;
9549
9550beos*)
9551 lt_cv_deplibs_check_method=pass_all
9552 ;;
9553
9554bsdi[45]*)
9555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9556 lt_cv_file_magic_cmd='/usr/bin/file -L'
9557 lt_cv_file_magic_test_file=/shlib/libc.so
9558 ;;
9559
9560cygwin*)
9561 # func_win32_libid is a shell function defined in ltmain.sh
9562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9563 lt_cv_file_magic_cmd='func_win32_libid'
9564 ;;
9565
9566mingw* | pw32*)
9567 # Base MSYS/MinGW do not provide the 'file' command needed by
9568 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9569 # unless we find 'file', for example because we are cross-compiling.
9570 if ( file / ) >/dev/null 2>&1; then
9571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9572 lt_cv_file_magic_cmd='func_win32_libid'
9573 else
9574 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9575 lt_cv_file_magic_cmd='$OBJDUMP -f'
9576 fi
9577 ;;
9578
9579cegcc)
9580 # use the weaker test based on 'objdump'. See mingw*.
9581 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9582 lt_cv_file_magic_cmd='$OBJDUMP -f'
9583 ;;
9584
9585darwin* | rhapsody*)
9586 lt_cv_deplibs_check_method=pass_all
9587 ;;
9588
9589freebsd* | dragonfly*)
9590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9591 case $host_cpu in
9592 i*86 )
9593 # Not sure whether the presence of OpenBSD here was a mistake.
9594 # Let's accept both of them until this is cleared up.
9595 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9596 lt_cv_file_magic_cmd=/usr/bin/file
9597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9598 ;;
9599 esac
9600 else
9601 lt_cv_deplibs_check_method=pass_all
9602 fi
9603 ;;
9604
9605gnu*)
9606 lt_cv_deplibs_check_method=pass_all
9607 ;;
9608
9609hpux10.20* | hpux11*)
9610 lt_cv_file_magic_cmd=/usr/bin/file
9611 case $host_cpu in
9612 ia64*)
9613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9614 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9615 ;;
9616 hppa*64*)
9617 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]'
9618 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9619 ;;
9620 *)
9621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9622 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9623 ;;
9624 esac
9625 ;;
9626
9627interix[3-9]*)
9628 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9630 ;;
9631
9632irix5* | irix6* | nonstopux*)
9633 case $LD in
9634 *-32|*"-32 ") libmagic=32-bit;;
9635 *-n32|*"-n32 ") libmagic=N32;;
9636 *-64|*"-64 ") libmagic=64-bit;;
9637 *) libmagic=never-match;;
9638 esac
9639 lt_cv_deplibs_check_method=pass_all
9640 ;;
9641
9642# This must be Linux ELF.
9643linux* | k*bsd*-gnu)
9644 lt_cv_deplibs_check_method=pass_all
9645 ;;
9646
9647netbsd*)
9648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9650 else
9651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9652 fi
9653 ;;
9654
9655newos6*)
9656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9657 lt_cv_file_magic_cmd=/usr/bin/file
9658 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9659 ;;
9660
9661*nto* | *qnx*)
9662 lt_cv_deplibs_check_method=pass_all
9663 ;;
9664
9665openbsd*)
9666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9668 else
9669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9670 fi
9671 ;;
9672
9673osf3* | osf4* | osf5*)
9674 lt_cv_deplibs_check_method=pass_all
9675 ;;
9676
9677rdos*)
9678 lt_cv_deplibs_check_method=pass_all
9679 ;;
9680
9681solaris*)
9682 lt_cv_deplibs_check_method=pass_all
9683 ;;
9684
9685sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9686 lt_cv_deplibs_check_method=pass_all
9687 ;;
9688
9689sysv4 | sysv4.3*)
9690 case $host_vendor in
9691 motorola)
9692 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]'
9693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9694 ;;
9695 ncr)
9696 lt_cv_deplibs_check_method=pass_all
9697 ;;
9698 sequent)
9699 lt_cv_file_magic_cmd='/bin/file'
9700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9701 ;;
9702 sni)
9703 lt_cv_file_magic_cmd='/bin/file'
9704 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9705 lt_cv_file_magic_test_file=/lib/libc.so
9706 ;;
9707 siemens)
9708 lt_cv_deplibs_check_method=pass_all
9709 ;;
9710 pc)
9711 lt_cv_deplibs_check_method=pass_all
9712 ;;
9713 esac
9714 ;;
9715
9716tpf*)
9717 lt_cv_deplibs_check_method=pass_all
9718 ;;
9719esac
9720
9721fi
9722{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9723$as_echo "$lt_cv_deplibs_check_method" >&6; }
9724file_magic_cmd=$lt_cv_file_magic_cmd
9725deplibs_check_method=$lt_cv_deplibs_check_method
9726test -z "$deplibs_check_method" && deplibs_check_method=unknown
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739if test -n "$ac_tool_prefix"; then
9740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9741set dummy ${ac_tool_prefix}ar; ac_word=$2
9742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9743$as_echo_n "checking for $ac_word... " >&6; }
9744if test "${ac_cv_prog_AR+set}" = set; then
9745 $as_echo_n "(cached) " >&6
9746else
9747 if test -n "$AR"; then
9748 ac_cv_prog_AR="$AR" # Let the user override the test.
9749else
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9757 ac_cv_prog_AR="${ac_tool_prefix}ar"
9758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762done
9763IFS=$as_save_IFS
9764
9765fi
9766fi
9767AR=$ac_cv_prog_AR
9768if test -n "$AR"; then
9769 { $as_echo "$as_me:$LINENO: result: $AR" >&5
9770$as_echo "$AR" >&6; }
9771else
9772 { $as_echo "$as_me:$LINENO: result: no" >&5
9773$as_echo "no" >&6; }
9774fi
9775
9776
9777fi
9778if test -z "$ac_cv_prog_AR"; then
9779 ac_ct_AR=$AR
9780 # Extract the first word of "ar", so it can be a program name with args.
9781set dummy ar; ac_word=$2
9782{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9783$as_echo_n "checking for $ac_word... " >&6; }
9784if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9785 $as_echo_n "(cached) " >&6
9786else
9787 if test -n "$ac_ct_AR"; then
9788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9789else
9790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791for as_dir in $PATH
9792do
9793 IFS=$as_save_IFS
9794 test -z "$as_dir" && as_dir=.
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9797 ac_cv_prog_ac_ct_AR="ar"
9798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 break 2
9800 fi
9801done
9802done
9803IFS=$as_save_IFS
9804
9805fi
9806fi
9807ac_ct_AR=$ac_cv_prog_ac_ct_AR
9808if test -n "$ac_ct_AR"; then
9809 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9810$as_echo "$ac_ct_AR" >&6; }
9811else
9812 { $as_echo "$as_me:$LINENO: result: no" >&5
9813$as_echo "no" >&6; }
9814fi
9815
9816 if test "x$ac_ct_AR" = x; then
9817 AR="false"
9818 else
9819 case $cross_compiling:$ac_tool_warned in
9820yes:)
9821{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9823ac_tool_warned=yes ;;
9824esac
9825 AR=$ac_ct_AR
9826 fi
9827else
9828 AR="$ac_cv_prog_AR"
9829fi
9830
9831test -z "$AR" && AR=ar
9832test -z "$AR_FLAGS" && AR_FLAGS=cru
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844if test -n "$ac_tool_prefix"; then
9845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9846set dummy ${ac_tool_prefix}strip; ac_word=$2
9847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
9849if test "${ac_cv_prog_STRIP+set}" = set; then
9850 $as_echo_n "(cached) " >&6
9851else
9852 if test -n "$STRIP"; then
9853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866done
9867done
9868IFS=$as_save_IFS
9869
9870fi
9871fi
9872STRIP=$ac_cv_prog_STRIP
9873if test -n "$STRIP"; then
9874 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9875$as_echo "$STRIP" >&6; }
9876else
9877 { $as_echo "$as_me:$LINENO: result: no" >&5
9878$as_echo "no" >&6; }
9879fi
9880
9881
9882fi
9883if test -z "$ac_cv_prog_STRIP"; then
9884 ac_ct_STRIP=$STRIP
9885 # Extract the first word of "strip", so it can be a program name with args.
9886set dummy strip; ac_word=$2
9887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9888$as_echo_n "checking for $ac_word... " >&6; }
9889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9890 $as_echo_n "(cached) " >&6
9891else
9892 if test -n "$ac_ct_STRIP"; then
9893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9894else
9895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896for as_dir in $PATH
9897do
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9902 ac_cv_prog_ac_ct_STRIP="strip"
9903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9905 fi
9906done
9907done
9908IFS=$as_save_IFS
9909
9910fi
9911fi
9912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9913if test -n "$ac_ct_STRIP"; then
9914 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9915$as_echo "$ac_ct_STRIP" >&6; }
9916else
9917 { $as_echo "$as_me:$LINENO: result: no" >&5
9918$as_echo "no" >&6; }
9919fi
9920
9921 if test "x$ac_ct_STRIP" = x; then
9922 STRIP=":"
9923 else
9924 case $cross_compiling:$ac_tool_warned in
9925yes:)
9926{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9928ac_tool_warned=yes ;;
9929esac
9930 STRIP=$ac_ct_STRIP
9931 fi
9932else
9933 STRIP="$ac_cv_prog_STRIP"
9934fi
9935
9936test -z "$STRIP" && STRIP=:
9937
9938
9939
9940
9941
9942
9943if test -n "$ac_tool_prefix"; then
9944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9945set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9947$as_echo_n "checking for $ac_word... " >&6; }
9948if test "${ac_cv_prog_RANLIB+set}" = set; then
9949 $as_echo_n "(cached) " >&6
9950else
9951 if test -n "$RANLIB"; then
9952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9953else
9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965done
9966done
9967IFS=$as_save_IFS
9968
9969fi
9970fi
9971RANLIB=$ac_cv_prog_RANLIB
9972if test -n "$RANLIB"; then
9973 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9974$as_echo "$RANLIB" >&6; }
9975else
9976 { $as_echo "$as_me:$LINENO: result: no" >&5
9977$as_echo "no" >&6; }
9978fi
9979
9980
9981fi
9982if test -z "$ac_cv_prog_RANLIB"; then
9983 ac_ct_RANLIB=$RANLIB
9984 # Extract the first word of "ranlib", so it can be a program name with args.
9985set dummy ranlib; ac_word=$2
9986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9987$as_echo_n "checking for $ac_word... " >&6; }
9988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9989 $as_echo_n "(cached) " >&6
9990else
9991 if test -n "$ac_ct_RANLIB"; then
9992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9993else
9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_prog_ac_ct_RANLIB="ranlib"
10002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005done
10006done
10007IFS=$as_save_IFS
10008
10009fi
10010fi
10011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10012if test -n "$ac_ct_RANLIB"; then
10013 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10014$as_echo "$ac_ct_RANLIB" >&6; }
10015else
10016 { $as_echo "$as_me:$LINENO: result: no" >&5
10017$as_echo "no" >&6; }
10018fi
10019
10020 if test "x$ac_ct_RANLIB" = x; then
10021 RANLIB=":"
10022 else
10023 case $cross_compiling:$ac_tool_warned in
10024yes:)
10025{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10027ac_tool_warned=yes ;;
10028esac
10029 RANLIB=$ac_ct_RANLIB
10030 fi
10031else
10032 RANLIB="$ac_cv_prog_RANLIB"
10033fi
10034
10035test -z "$RANLIB" && RANLIB=:
10036
10037
10038
10039
10040
10041
10042# Determine commands to create old-style static archives.
10043old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10044old_postinstall_cmds='chmod 644 $oldlib'
10045old_postuninstall_cmds=
10046
10047if test -n "$RANLIB"; then
10048 case $host_os in
10049 openbsd*)
10050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10051 ;;
10052 *)
10053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10054 ;;
10055 esac
10056 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10057fi
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092# If no C compiler was specified, use CC.
10093LTCC=${LTCC-"$CC"}
10094
10095# If no C compiler flags were specified, use CFLAGS.
10096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10097
10098# Allow CC to be a program name with arguments.
10099compiler=$CC
10100
10101
10102# Check for command to grab the raw symbol name followed by C symbol from nm.
10103{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10104$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10105if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10106 $as_echo_n "(cached) " >&6
10107else
10108
10109# These are sane defaults that work on at least a few old systems.
10110# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10111
10112# Character class describing NM global symbol codes.
10113symcode='[BCDEGRST]'
10114
10115# Regexp to match symbols that can be accessed directly from C.
10116sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10117
10118# Define system-specific variables.
10119case $host_os in
10120aix*)
10121 symcode='[BCDT]'
10122 ;;
10123cygwin* | mingw* | pw32* | cegcc*)
10124 symcode='[ABCDGISTW]'
10125 ;;
10126hpux*)
10127 if test "$host_cpu" = ia64; then
10128 symcode='[ABCDEGRST]'
10129 fi
10130 ;;
10131irix* | nonstopux*)
10132 symcode='[BCDEGRST]'
10133 ;;
10134osf*)
10135 symcode='[BCDEGQRST]'
10136 ;;
10137solaris*)
10138 symcode='[BDRT]'
10139 ;;
10140sco3.2v5*)
10141 symcode='[DT]'
10142 ;;
10143sysv4.2uw2*)
10144 symcode='[DT]'
10145 ;;
10146sysv5* | sco5v6* | unixware* | OpenUNIX*)
10147 symcode='[ABDT]'
10148 ;;
10149sysv4)
10150 symcode='[DFNSTU]'
10151 ;;
10152esac
10153
10154# If we're using GNU nm, then use its standard symbol codes.
10155case `$NM -V 2>&1` in
10156*GNU* | *'with BFD'*)
10157 symcode='[ABCDGIRSTW]' ;;
10158esac
10159
10160# Transform an extracted symbol line into a proper C declaration.
10161# Some systems (esp. on ia64) link data and code symbols differently,
10162# so use this general approach.
10163lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10164
10165# Transform an extracted symbol line into symbol name and symbol address
10166lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10167lt_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'"
10168
10169# Handle CRLF in mingw tool chain
10170opt_cr=
10171case $build_os in
10172mingw*)
10173 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10174 ;;
10175esac
10176
10177# Try without a prefix underscore, then with it.
10178for ac_symprfx in "" "_"; do
10179
10180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10181 symxfrm="\\1 $ac_symprfx\\2 \\2"
10182
10183 # Write the raw and C identifiers.
10184 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10185 # Fake it for dumpbin and say T for any non-static function
10186 # and D for any global variable.
10187 # Also find C++ and __fastcall symbols from MSVC++,
10188 # which start with @ or ?.
10189 lt_cv_sys_global_symbol_pipe="$AWK '"\
10190" {last_section=section; section=\$ 3};"\
10191" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10192" \$ 0!~/External *\|/{next};"\
10193" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10194" {if(hide[section]) next};"\
10195" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10196" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10197" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10198" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10199" ' prfx=^$ac_symprfx"
10200 else
10201 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10202 fi
10203
10204 # Check to see that the pipe works correctly.
10205 pipe_works=no
10206
10207 rm -f conftest*
10208 cat > conftest.$ac_ext <<_LT_EOF
10209#ifdef __cplusplus
10210extern "C" {
10211#endif
10212char nm_test_var;
10213void nm_test_func(void);
10214void nm_test_func(void){}
10215#ifdef __cplusplus
10216}
10217#endif
10218int main(){nm_test_var='a';nm_test_func();return(0);}
10219_LT_EOF
10220
10221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10223 ac_status=$?
10224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; then
10226 # Now try to grab the symbols.
10227 nlist=conftest.nm
10228 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10229 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10230 ac_status=$?
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && test -s "$nlist"; then
10233 # Try sorting and uniquifying the output.
10234 if sort "$nlist" | uniq > "$nlist"T; then
10235 mv -f "$nlist"T "$nlist"
10236 else
10237 rm -f "$nlist"T
10238 fi
10239
10240 # Make sure that we snagged all the symbols we need.
10241 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10242 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10243 cat <<_LT_EOF > conftest.$ac_ext
10244#ifdef __cplusplus
10245extern "C" {
10246#endif
10247
10248_LT_EOF
10249 # Now generate the symbol file.
10250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10251
10252 cat <<_LT_EOF >> conftest.$ac_ext
10253
10254/* The mapping between symbol names and symbols. */
10255const struct {
10256 const char *name;
10257 void *address;
10258}
10259lt__PROGRAM__LTX_preloaded_symbols[] =
10260{
10261 { "@PROGRAM@", (void *) 0 },
10262_LT_EOF
10263 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10264 cat <<\_LT_EOF >> conftest.$ac_ext
10265 {0, (void *) 0}
10266};
10267
10268/* This works around a problem in FreeBSD linker */
10269#ifdef FREEBSD_WORKAROUND
10270static const void *lt_preloaded_setup() {
10271 return lt__PROGRAM__LTX_preloaded_symbols;
10272}
10273#endif
10274
10275#ifdef __cplusplus
10276}
10277#endif
10278_LT_EOF
10279 # Now try linking the two files.
10280 mv conftest.$ac_objext conftstm.$ac_objext
10281 lt_save_LIBS="$LIBS"
10282 lt_save_CFLAGS="$CFLAGS"
10283 LIBS="conftstm.$ac_objext"
10284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>&5
10287 ac_status=$?
10288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10290 pipe_works=yes
10291 fi
10292 LIBS="$lt_save_LIBS"
10293 CFLAGS="$lt_save_CFLAGS"
10294 else
10295 echo "cannot find nm_test_func in $nlist" >&5
10296 fi
10297 else
10298 echo "cannot find nm_test_var in $nlist" >&5
10299 fi
10300 else
10301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10302 fi
10303 else
10304 echo "$progname: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 fi
10307 rm -rf conftest* conftst*
10308
10309 # Do not use the global_symbol_pipe unless it works.
10310 if test "$pipe_works" = yes; then
10311 break
10312 else
10313 lt_cv_sys_global_symbol_pipe=
10314 fi
10315done
10316
10317fi
10318
10319if test -z "$lt_cv_sys_global_symbol_pipe"; then
10320 lt_cv_sys_global_symbol_to_cdecl=
10321fi
10322if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10323 { $as_echo "$as_me:$LINENO: result: failed" >&5
10324$as_echo "failed" >&6; }
10325else
10326 { $as_echo "$as_me:$LINENO: result: ok" >&5
10327$as_echo "ok" >&6; }
10328fi
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351# Check whether --enable-libtool-lock was given.
10352if test "${enable_libtool_lock+set}" = set; then
10353 enableval=$enable_libtool_lock;
10354fi
10355
10356test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10357
10358# Some flags need to be propagated to the compiler or linker for good
10359# libtool support.
10360case $host in
10361ia64-*-hpux*)
10362 # Find out which ABI we are using.
10363 echo 'int i;' > conftest.$ac_ext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 case `/usr/bin/file conftest.$ac_objext` in
10370 *ELF-32*)
10371 HPUX_IA64_MODE="32"
10372 ;;
10373 *ELF-64*)
10374 HPUX_IA64_MODE="64"
10375 ;;
10376 esac
10377 fi
10378 rm -rf conftest*
10379 ;;
10380*-*-irix6*)
10381 # Find out which ABI we are using.
cristy2e8b51d2009-10-17 18:26:15 +000010382 echo '#line 10382 "configure"' > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10385 ac_status=$?
10386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; then
10388 if test "$lt_cv_prog_gnu_ld" = yes; then
10389 case `/usr/bin/file conftest.$ac_objext` in
10390 *32-bit*)
10391 LD="${LD-ld} -melf32bsmip"
10392 ;;
10393 *N32*)
10394 LD="${LD-ld} -melf32bmipn32"
10395 ;;
10396 *64-bit*)
10397 LD="${LD-ld} -melf64bmip"
10398 ;;
10399 esac
10400 else
10401 case `/usr/bin/file conftest.$ac_objext` in
10402 *32-bit*)
10403 LD="${LD-ld} -32"
10404 ;;
10405 *N32*)
10406 LD="${LD-ld} -n32"
10407 ;;
10408 *64-bit*)
10409 LD="${LD-ld} -64"
10410 ;;
10411 esac
10412 fi
10413 fi
10414 rm -rf conftest*
10415 ;;
10416
10417x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10418s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10419 # Find out which ABI we are using.
10420 echo 'int i;' > conftest.$ac_ext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10423 ac_status=$?
10424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; then
10426 case `/usr/bin/file conftest.o` in
10427 *32-bit*)
10428 case $host in
10429 x86_64-*kfreebsd*-gnu)
10430 LD="${LD-ld} -m elf_i386_fbsd"
10431 ;;
10432 x86_64-*linux*)
10433 LD="${LD-ld} -m elf_i386"
10434 ;;
10435 ppc64-*linux*|powerpc64-*linux*)
10436 LD="${LD-ld} -m elf32ppclinux"
10437 ;;
10438 s390x-*linux*)
10439 LD="${LD-ld} -m elf_s390"
10440 ;;
10441 sparc64-*linux*)
10442 LD="${LD-ld} -m elf32_sparc"
10443 ;;
10444 esac
10445 ;;
10446 *64-bit*)
10447 case $host in
10448 x86_64-*kfreebsd*-gnu)
10449 LD="${LD-ld} -m elf_x86_64_fbsd"
10450 ;;
10451 x86_64-*linux*)
10452 LD="${LD-ld} -m elf_x86_64"
10453 ;;
10454 ppc*-*linux*|powerpc*-*linux*)
10455 LD="${LD-ld} -m elf64ppc"
10456 ;;
10457 s390*-*linux*|s390*-*tpf*)
10458 LD="${LD-ld} -m elf64_s390"
10459 ;;
10460 sparc*-*linux*)
10461 LD="${LD-ld} -m elf64_sparc"
10462 ;;
10463 esac
10464 ;;
10465 esac
10466 fi
10467 rm -rf conftest*
10468 ;;
10469
10470*-*-sco3.2v5*)
10471 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10472 SAVE_CFLAGS="$CFLAGS"
10473 CFLAGS="$CFLAGS -belf"
10474 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10475$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10476if test "${lt_cv_cc_needs_belf+set}" = set; then
10477 $as_echo_n "(cached) " >&6
10478else
10479 ac_ext=c
10480ac_cpp='$CPP $CPPFLAGS'
10481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10483ac_compiler_gnu=$ac_cv_c_compiler_gnu
10484
10485 cat >conftest.$ac_ext <<_ACEOF
10486/* confdefs.h. */
10487_ACEOF
10488cat confdefs.h >>conftest.$ac_ext
10489cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h. */
10491
10492int
10493main ()
10494{
10495
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500rm -f conftest.$ac_objext conftest$ac_exeext
10501if { (ac_try="$ac_link"
10502case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505esac
10506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10507$as_echo "$ac_try_echo") >&5
10508 (eval "$ac_link") 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest$ac_exeext && {
10518 test "$cross_compiling" = yes ||
10519 $as_test_x conftest$ac_exeext
10520 }; then
10521 lt_cv_cc_needs_belf=yes
10522else
10523 $as_echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 lt_cv_cc_needs_belf=no
10527fi
10528
10529rm -rf conftest.dSYM
10530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 ac_ext=c
10533ac_cpp='$CPP $CPPFLAGS'
10534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10536ac_compiler_gnu=$ac_cv_c_compiler_gnu
10537
10538fi
10539{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10540$as_echo "$lt_cv_cc_needs_belf" >&6; }
10541 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10542 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10543 CFLAGS="$SAVE_CFLAGS"
10544 fi
10545 ;;
10546sparc*-*solaris*)
10547 # Find out which ABI we are using.
10548 echo 'int i;' > conftest.$ac_ext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>&5
10551 ac_status=$?
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; then
10554 case `/usr/bin/file conftest.o` in
10555 *64-bit*)
10556 case $lt_cv_prog_gnu_ld in
10557 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10558 *)
10559 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10560 LD="${LD-ld} -64"
10561 fi
10562 ;;
10563 esac
10564 ;;
10565 esac
10566 fi
10567 rm -rf conftest*
10568 ;;
10569esac
10570
10571need_locks="$enable_libtool_lock"
10572
10573
10574 case $host_os in
10575 rhapsody* | darwin*)
10576 if test -n "$ac_tool_prefix"; then
10577 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10578set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10579{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10580$as_echo_n "checking for $ac_word... " >&6; }
10581if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10582 $as_echo_n "(cached) " >&6
10583else
10584 if test -n "$DSYMUTIL"; then
10585 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10586else
10587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588for as_dir in $PATH
10589do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
10593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10594 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10597 fi
10598done
10599done
10600IFS=$as_save_IFS
10601
10602fi
10603fi
10604DSYMUTIL=$ac_cv_prog_DSYMUTIL
10605if test -n "$DSYMUTIL"; then
10606 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10607$as_echo "$DSYMUTIL" >&6; }
10608else
10609 { $as_echo "$as_me:$LINENO: result: no" >&5
10610$as_echo "no" >&6; }
10611fi
10612
10613
10614fi
10615if test -z "$ac_cv_prog_DSYMUTIL"; then
10616 ac_ct_DSYMUTIL=$DSYMUTIL
10617 # Extract the first word of "dsymutil", so it can be a program name with args.
10618set dummy dsymutil; ac_word=$2
10619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10620$as_echo_n "checking for $ac_word... " >&6; }
10621if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10622 $as_echo_n "(cached) " >&6
10623else
10624 if test -n "$ac_ct_DSYMUTIL"; then
10625 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10626else
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10634 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10637 fi
10638done
10639done
10640IFS=$as_save_IFS
10641
10642fi
10643fi
10644ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10645if test -n "$ac_ct_DSYMUTIL"; then
10646 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10647$as_echo "$ac_ct_DSYMUTIL" >&6; }
10648else
10649 { $as_echo "$as_me:$LINENO: result: no" >&5
10650$as_echo "no" >&6; }
10651fi
10652
10653 if test "x$ac_ct_DSYMUTIL" = x; then
10654 DSYMUTIL=":"
10655 else
10656 case $cross_compiling:$ac_tool_warned in
10657yes:)
10658{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10660ac_tool_warned=yes ;;
10661esac
10662 DSYMUTIL=$ac_ct_DSYMUTIL
10663 fi
10664else
10665 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10666fi
10667
10668 if test -n "$ac_tool_prefix"; then
10669 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10670set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10671{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10672$as_echo_n "checking for $ac_word... " >&6; }
10673if test "${ac_cv_prog_NMEDIT+set}" = set; then
10674 $as_echo_n "(cached) " >&6
10675else
10676 if test -n "$NMEDIT"; then
10677 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10678else
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10686 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691done
10692IFS=$as_save_IFS
10693
10694fi
10695fi
10696NMEDIT=$ac_cv_prog_NMEDIT
10697if test -n "$NMEDIT"; then
10698 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10699$as_echo "$NMEDIT" >&6; }
10700else
10701 { $as_echo "$as_me:$LINENO: result: no" >&5
10702$as_echo "no" >&6; }
10703fi
10704
10705
10706fi
10707if test -z "$ac_cv_prog_NMEDIT"; then
10708 ac_ct_NMEDIT=$NMEDIT
10709 # Extract the first word of "nmedit", so it can be a program name with args.
10710set dummy nmedit; ac_word=$2
10711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10712$as_echo_n "checking for $ac_word... " >&6; }
10713if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10714 $as_echo_n "(cached) " >&6
10715else
10716 if test -n "$ac_ct_NMEDIT"; then
10717 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10718else
10719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10729 fi
10730done
10731done
10732IFS=$as_save_IFS
10733
10734fi
10735fi
10736ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10737if test -n "$ac_ct_NMEDIT"; then
10738 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10739$as_echo "$ac_ct_NMEDIT" >&6; }
10740else
10741 { $as_echo "$as_me:$LINENO: result: no" >&5
10742$as_echo "no" >&6; }
10743fi
10744
10745 if test "x$ac_ct_NMEDIT" = x; then
10746 NMEDIT=":"
10747 else
10748 case $cross_compiling:$ac_tool_warned in
10749yes:)
10750{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10752ac_tool_warned=yes ;;
10753esac
10754 NMEDIT=$ac_ct_NMEDIT
10755 fi
10756else
10757 NMEDIT="$ac_cv_prog_NMEDIT"
10758fi
10759
10760 if test -n "$ac_tool_prefix"; then
10761 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10762set dummy ${ac_tool_prefix}lipo; ac_word=$2
10763{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10764$as_echo_n "checking for $ac_word... " >&6; }
10765if test "${ac_cv_prog_LIPO+set}" = set; then
10766 $as_echo_n "(cached) " >&6
10767else
10768 if test -n "$LIPO"; then
10769 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10770else
10771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10778 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782done
10783done
10784IFS=$as_save_IFS
10785
10786fi
10787fi
10788LIPO=$ac_cv_prog_LIPO
10789if test -n "$LIPO"; then
10790 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10791$as_echo "$LIPO" >&6; }
10792else
10793 { $as_echo "$as_me:$LINENO: result: no" >&5
10794$as_echo "no" >&6; }
10795fi
10796
10797
10798fi
10799if test -z "$ac_cv_prog_LIPO"; then
10800 ac_ct_LIPO=$LIPO
10801 # Extract the first word of "lipo", so it can be a program name with args.
10802set dummy lipo; ac_word=$2
10803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10804$as_echo_n "checking for $ac_word... " >&6; }
10805if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10806 $as_echo_n "(cached) " >&6
10807else
10808 if test -n "$ac_ct_LIPO"; then
10809 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10810else
10811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10818 ac_cv_prog_ac_ct_LIPO="lipo"
10819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 break 2
10821 fi
10822done
10823done
10824IFS=$as_save_IFS
10825
10826fi
10827fi
10828ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10829if test -n "$ac_ct_LIPO"; then
10830 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10831$as_echo "$ac_ct_LIPO" >&6; }
10832else
10833 { $as_echo "$as_me:$LINENO: result: no" >&5
10834$as_echo "no" >&6; }
10835fi
10836
10837 if test "x$ac_ct_LIPO" = x; then
10838 LIPO=":"
10839 else
10840 case $cross_compiling:$ac_tool_warned in
10841yes:)
10842{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10844ac_tool_warned=yes ;;
10845esac
10846 LIPO=$ac_ct_LIPO
10847 fi
10848else
10849 LIPO="$ac_cv_prog_LIPO"
10850fi
10851
10852 if test -n "$ac_tool_prefix"; then
10853 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10854set dummy ${ac_tool_prefix}otool; ac_word=$2
10855{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
10857if test "${ac_cv_prog_OTOOL+set}" = set; then
10858 $as_echo_n "(cached) " >&6
10859else
10860 if test -n "$OTOOL"; then
10861 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874done
10875done
10876IFS=$as_save_IFS
10877
10878fi
10879fi
10880OTOOL=$ac_cv_prog_OTOOL
10881if test -n "$OTOOL"; then
10882 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10883$as_echo "$OTOOL" >&6; }
10884else
10885 { $as_echo "$as_me:$LINENO: result: no" >&5
10886$as_echo "no" >&6; }
10887fi
10888
10889
10890fi
10891if test -z "$ac_cv_prog_OTOOL"; then
10892 ac_ct_OTOOL=$OTOOL
10893 # Extract the first word of "otool", so it can be a program name with args.
10894set dummy otool; ac_word=$2
10895{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10896$as_echo_n "checking for $ac_word... " >&6; }
10897if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10898 $as_echo_n "(cached) " >&6
10899else
10900 if test -n "$ac_ct_OTOOL"; then
10901 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10902else
10903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904for as_dir in $PATH
10905do
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10910 ac_cv_prog_ac_ct_OTOOL="otool"
10911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 break 2
10913 fi
10914done
10915done
10916IFS=$as_save_IFS
10917
10918fi
10919fi
10920ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10921if test -n "$ac_ct_OTOOL"; then
10922 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10923$as_echo "$ac_ct_OTOOL" >&6; }
10924else
10925 { $as_echo "$as_me:$LINENO: result: no" >&5
10926$as_echo "no" >&6; }
10927fi
10928
10929 if test "x$ac_ct_OTOOL" = x; then
10930 OTOOL=":"
10931 else
10932 case $cross_compiling:$ac_tool_warned in
10933yes:)
10934{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10936ac_tool_warned=yes ;;
10937esac
10938 OTOOL=$ac_ct_OTOOL
10939 fi
10940else
10941 OTOOL="$ac_cv_prog_OTOOL"
10942fi
10943
10944 if test -n "$ac_tool_prefix"; then
10945 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10946set dummy ${ac_tool_prefix}otool64; ac_word=$2
10947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10948$as_echo_n "checking for $ac_word... " >&6; }
10949if test "${ac_cv_prog_OTOOL64+set}" = set; then
10950 $as_echo_n "(cached) " >&6
10951else
10952 if test -n "$OTOOL64"; then
10953 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10954else
10955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956for as_dir in $PATH
10957do
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10962 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10965 fi
10966done
10967done
10968IFS=$as_save_IFS
10969
10970fi
10971fi
10972OTOOL64=$ac_cv_prog_OTOOL64
10973if test -n "$OTOOL64"; then
10974 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10975$as_echo "$OTOOL64" >&6; }
10976else
10977 { $as_echo "$as_me:$LINENO: result: no" >&5
10978$as_echo "no" >&6; }
10979fi
10980
10981
10982fi
10983if test -z "$ac_cv_prog_OTOOL64"; then
10984 ac_ct_OTOOL64=$OTOOL64
10985 # Extract the first word of "otool64", so it can be a program name with args.
10986set dummy otool64; ac_word=$2
10987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10988$as_echo_n "checking for $ac_word... " >&6; }
10989if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10990 $as_echo_n "(cached) " >&6
10991else
10992 if test -n "$ac_ct_OTOOL64"; then
10993 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10994else
10995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $PATH
10997do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_prog_ac_ct_OTOOL64="otool64"
11003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006done
11007done
11008IFS=$as_save_IFS
11009
11010fi
11011fi
11012ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11013if test -n "$ac_ct_OTOOL64"; then
11014 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
11015$as_echo "$ac_ct_OTOOL64" >&6; }
11016else
11017 { $as_echo "$as_me:$LINENO: result: no" >&5
11018$as_echo "no" >&6; }
11019fi
11020
11021 if test "x$ac_ct_OTOOL64" = x; then
11022 OTOOL64=":"
11023 else
11024 case $cross_compiling:$ac_tool_warned in
11025yes:)
11026{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11028ac_tool_warned=yes ;;
11029esac
11030 OTOOL64=$ac_ct_OTOOL64
11031 fi
11032else
11033 OTOOL64="$ac_cv_prog_OTOOL64"
11034fi
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11063$as_echo_n "checking for -single_module linker flag... " >&6; }
11064if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11065 $as_echo_n "(cached) " >&6
11066else
11067 lt_cv_apple_cc_single_mod=no
11068 if test -z "${LT_MULTI_MODULE}"; then
11069 # By default we will add the -single_module flag. You can override
11070 # by either setting the environment variable LT_MULTI_MODULE
11071 # non-empty at configure time, or by adding -multi_module to the
11072 # link flags.
11073 rm -rf libconftest.dylib*
11074 echo "int foo(void){return 1;}" > conftest.c
11075 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11076-dynamiclib -Wl,-single_module conftest.c" >&5
11077 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11078 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11079 _lt_result=$?
11080 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11081 lt_cv_apple_cc_single_mod=yes
11082 else
11083 cat conftest.err >&5
11084 fi
11085 rm -rf libconftest.dylib*
11086 rm -f conftest.*
11087 fi
11088fi
11089{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11090$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11091 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11092$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11093if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11094 $as_echo_n "(cached) " >&6
11095else
11096 lt_cv_ld_exported_symbols_list=no
11097 save_LDFLAGS=$LDFLAGS
11098 echo "_main" > conftest.sym
11099 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11100 cat >conftest.$ac_ext <<_ACEOF
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106
11107int
11108main ()
11109{
11110
11111 ;
11112 return 0;
11113}
11114_ACEOF
11115rm -f conftest.$ac_objext conftest$ac_exeext
11116if { (ac_try="$ac_link"
11117case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120esac
11121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122$as_echo "$ac_try_echo") >&5
11123 (eval "$ac_link") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest$ac_exeext && {
11133 test "$cross_compiling" = yes ||
11134 $as_test_x conftest$ac_exeext
11135 }; then
11136 lt_cv_ld_exported_symbols_list=yes
11137else
11138 $as_echo "$as_me: failed program was:" >&5
11139sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 lt_cv_ld_exported_symbols_list=no
11142fi
11143
11144rm -rf conftest.dSYM
11145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LDFLAGS="$save_LDFLAGS"
11148
11149fi
11150{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11151$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11152 case $host_os in
11153 rhapsody* | darwin1.[012])
11154 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11155 darwin1.*)
11156 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11157 darwin*) # darwin 5.x on
11158 # if running on 10.5 or later, the deployment target defaults
11159 # to the OS version, if on x86, and 10.4, the deployment
11160 # target defaults to 10.4. Don't you love it?
11161 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11162 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11164 10.[012]*)
11165 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11166 10.*)
11167 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11168 esac
11169 ;;
11170 esac
11171 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11172 _lt_dar_single_mod='$single_module'
11173 fi
11174 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11175 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11176 else
11177 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11178 fi
11179 if test "$DSYMUTIL" != ":"; then
11180 _lt_dsymutil='~$DSYMUTIL $lib || :'
11181 else
11182 _lt_dsymutil=
11183 fi
11184 ;;
11185 esac
11186
11187
11188for ac_header in dlfcn.h
11189do
11190as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11192$as_echo_n "checking for $ac_header... " >&6; }
11193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 $as_echo_n "(cached) " >&6
11195else
11196 cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202$ac_includes_default
11203
11204#include <$ac_header>
11205_ACEOF
11206rm -f conftest.$ac_objext
11207if { (ac_try="$ac_compile"
11208case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211esac
11212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11213$as_echo "$ac_try_echo") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } && {
11221 test -z "$ac_c_werror_flag" ||
11222 test ! -s conftest.err
11223 } && test -s conftest.$ac_objext; then
11224 eval "$as_ac_Header=yes"
11225else
11226 $as_echo "$as_me: failed program was:" >&5
11227sed 's/^/| /' conftest.$ac_ext >&5
11228
11229 eval "$as_ac_Header=no"
11230fi
11231
11232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233fi
11234ac_res=`eval 'as_val=${'$as_ac_Header'}
11235 $as_echo "$as_val"'`
11236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11237$as_echo "$ac_res" >&6; }
11238as_val=`eval 'as_val=${'$as_ac_Header'}
11239 $as_echo "$as_val"'`
11240 if test "x$as_val" = x""yes; then
11241 cat >>confdefs.h <<_ACEOF
11242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11243_ACEOF
11244
11245fi
11246
11247done
11248
11249
11250
11251ac_ext=cpp
11252ac_cpp='$CXXCPP $CPPFLAGS'
11253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11256if test -z "$CXX"; then
11257 if test -n "$CCC"; then
11258 CXX=$CCC
11259 else
11260 if test -n "$ac_tool_prefix"; then
11261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11262 do
11263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11266$as_echo_n "checking for $ac_word... " >&6; }
11267if test "${ac_cv_prog_CXX+set}" = set; then
11268 $as_echo_n "(cached) " >&6
11269else
11270 if test -n "$CXX"; then
11271 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11272else
11273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274for as_dir in $PATH
11275do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_exec_ext in '' $ac_executable_extensions; do
11279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 break 2
11283 fi
11284done
11285done
11286IFS=$as_save_IFS
11287
11288fi
11289fi
11290CXX=$ac_cv_prog_CXX
11291if test -n "$CXX"; then
11292 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11293$as_echo "$CXX" >&6; }
11294else
11295 { $as_echo "$as_me:$LINENO: result: no" >&5
11296$as_echo "no" >&6; }
11297fi
11298
11299
11300 test -n "$CXX" && break
11301 done
11302fi
11303if test -z "$CXX"; then
11304 ac_ct_CXX=$CXX
11305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11306do
11307 # Extract the first word of "$ac_prog", so it can be a program name with args.
11308set dummy $ac_prog; ac_word=$2
11309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11310$as_echo_n "checking for $ac_word... " >&6; }
11311if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11312 $as_echo_n "(cached) " >&6
11313else
11314 if test -n "$ac_ct_CXX"; then
11315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11316else
11317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11324 ac_cv_prog_ac_ct_CXX="$ac_prog"
11325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11327 fi
11328done
11329done
11330IFS=$as_save_IFS
11331
11332fi
11333fi
11334ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11335if test -n "$ac_ct_CXX"; then
11336 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11337$as_echo "$ac_ct_CXX" >&6; }
11338else
11339 { $as_echo "$as_me:$LINENO: result: no" >&5
11340$as_echo "no" >&6; }
11341fi
11342
11343
11344 test -n "$ac_ct_CXX" && break
11345done
11346
11347 if test "x$ac_ct_CXX" = x; then
11348 CXX="g++"
11349 else
11350 case $cross_compiling:$ac_tool_warned in
11351yes:)
11352{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11354ac_tool_warned=yes ;;
11355esac
11356 CXX=$ac_ct_CXX
11357 fi
11358fi
11359
11360 fi
11361fi
11362# Provide some information about the compiler.
11363$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11364set X $ac_compile
11365ac_compiler=$2
11366{ (ac_try="$ac_compiler --version >&5"
11367case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11372$as_echo "$ac_try_echo") >&5
11373 (eval "$ac_compiler --version >&5") 2>&5
11374 ac_status=$?
11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }
11377{ (ac_try="$ac_compiler -v >&5"
11378case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381esac
11382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383$as_echo "$ac_try_echo") >&5
11384 (eval "$ac_compiler -v >&5") 2>&5
11385 ac_status=$?
11386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }
11388{ (ac_try="$ac_compiler -V >&5"
11389case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392esac
11393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11394$as_echo "$ac_try_echo") >&5
11395 (eval "$ac_compiler -V >&5") 2>&5
11396 ac_status=$?
11397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }
11399
11400{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11401$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11402if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11403 $as_echo_n "(cached) " >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411
11412int
11413main ()
11414{
11415#ifndef __GNUC__
11416 choke me
11417#endif
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (ac_try="$ac_compile"
11425case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11430$as_echo "$ac_try_echo") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_cxx_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest.$ac_objext; then
11441 ac_compiler_gnu=yes
11442else
11443 $as_echo "$as_me: failed program was:" >&5
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_compiler_gnu=no
11447fi
11448
11449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11451
11452fi
11453{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11454$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11455if test $ac_compiler_gnu = yes; then
11456 GXX=yes
11457else
11458 GXX=
11459fi
11460ac_test_CXXFLAGS=${CXXFLAGS+set}
11461ac_save_CXXFLAGS=$CXXFLAGS
11462{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11463$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11464if test "${ac_cv_prog_cxx_g+set}" = set; then
11465 $as_echo_n "(cached) " >&6
11466else
11467 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11468 ac_cxx_werror_flag=yes
11469 ac_cv_prog_cxx_g=no
11470 CXXFLAGS="-g"
11471 cat >conftest.$ac_ext <<_ACEOF
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477
11478int
11479main ()
11480{
11481
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext
11487if { (ac_try="$ac_compile"
11488case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493$as_echo "$ac_try_echo") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && {
11501 test -z "$ac_cxx_werror_flag" ||
11502 test ! -s conftest.err
11503 } && test -s conftest.$ac_objext; then
11504 ac_cv_prog_cxx_g=yes
11505else
11506 $as_echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 CXXFLAGS=""
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516
11517int
11518main ()
11519{
11520
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (ac_try="$ac_compile"
11527case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530esac
11531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11532$as_echo "$ac_try_echo") >&5
11533 (eval "$ac_compile") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } && {
11540 test -z "$ac_cxx_werror_flag" ||
11541 test ! -s conftest.err
11542 } && test -s conftest.$ac_objext; then
11543 :
11544else
11545 $as_echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11549 CXXFLAGS="-g"
11550 cat >conftest.$ac_ext <<_ACEOF
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
11556
11557int
11558main ()
11559{
11560
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext
11566if { (ac_try="$ac_compile"
11567case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570esac
11571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11572$as_echo "$ac_try_echo") >&5
11573 (eval "$ac_compile") 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && {
11580 test -z "$ac_cxx_werror_flag" ||
11581 test ! -s conftest.err
11582 } && test -s conftest.$ac_objext; then
11583 ac_cv_prog_cxx_g=yes
11584else
11585 $as_echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588
11589fi
11590
11591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592fi
11593
11594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595fi
11596
11597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11599fi
11600{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11601$as_echo "$ac_cv_prog_cxx_g" >&6; }
11602if test "$ac_test_CXXFLAGS" = set; then
11603 CXXFLAGS=$ac_save_CXXFLAGS
11604elif test $ac_cv_prog_cxx_g = yes; then
11605 if test "$GXX" = yes; then
11606 CXXFLAGS="-g -O2"
11607 else
11608 CXXFLAGS="-g"
11609 fi
11610else
11611 if test "$GXX" = yes; then
11612 CXXFLAGS="-O2"
11613 else
11614 CXXFLAGS=
11615 fi
11616fi
11617ac_ext=c
11618ac_cpp='$CPP $CPPFLAGS'
11619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622
11623depcc="$CXX" am_compiler_list=
11624
11625{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11626$as_echo_n "checking dependency style of $depcc... " >&6; }
11627if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11628 $as_echo_n "(cached) " >&6
11629else
11630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11631 # We make a subdir and do the tests there. Otherwise we can end up
11632 # making bogus files that we don't know about and never remove. For
11633 # instance it was reported that on HP-UX the gcc test will end up
11634 # making a dummy file named `D' -- because `-MD' means `put the output
11635 # in D'.
11636 mkdir conftest.dir
11637 # Copy depcomp to subdir because otherwise we won't find it if we're
11638 # using a relative directory.
11639 cp "$am_depcomp" conftest.dir
11640 cd conftest.dir
11641 # We will build objects and dependencies in a subdirectory because
11642 # it helps to detect inapplicable dependency modes. For instance
11643 # both Tru64's cc and ICC support -MD to output dependencies as a
11644 # side effect of compilation, but ICC will put the dependencies in
11645 # the current directory while Tru64 will put them in the object
11646 # directory.
11647 mkdir sub
11648
11649 am_cv_CXX_dependencies_compiler_type=none
11650 if test "$am_compiler_list" = ""; then
11651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11652 fi
11653 am__universal=false
11654 case " $depcc " in #(
11655 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11656 esac
11657
11658 for depmode in $am_compiler_list; do
11659 # Setup a source with many dependencies, because some compilers
11660 # like to wrap large dependency lists on column 80 (with \), and
11661 # we should not choose a depcomp mode which is confused by this.
11662 #
11663 # We need to recreate these files for each test, as the compiler may
11664 # overwrite some of them when testing with obscure command lines.
11665 # This happens at least with the AIX C compiler.
11666 : > sub/conftest.c
11667 for i in 1 2 3 4 5 6; do
11668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11670 # Solaris 8's {/usr,}/bin/sh.
11671 touch sub/conftst$i.h
11672 done
11673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11674
11675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11676 # mode. It turns out that the SunPro C++ compiler does not properly
11677 # handle `-M -o', and we need to detect this. Also, some Intel
11678 # versions had trouble with output in subdirs
11679 am__obj=sub/conftest.${OBJEXT-o}
11680 am__minus_obj="-o $am__obj"
11681 case $depmode in
11682 gcc)
11683 # This depmode causes a compiler race in universal mode.
11684 test "$am__universal" = false || continue
11685 ;;
11686 nosideeffect)
11687 # after this tag, mechanisms are not by side-effect, so they'll
11688 # only be used when explicitly requested
11689 if test "x$enable_dependency_tracking" = xyes; then
11690 continue
11691 else
11692 break
11693 fi
11694 ;;
11695 msvisualcpp | msvcmsys)
11696 # This compiler won't grok `-c -o', but also, the minuso test has
11697 # not run yet. These depmodes are late enough in the game, and
11698 # so weak that their functioning should not be impacted.
11699 am__obj=conftest.${OBJEXT-o}
11700 am__minus_obj=
11701 ;;
11702 none) break ;;
11703 esac
11704 if depmode=$depmode \
11705 source=sub/conftest.c object=$am__obj \
11706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11708 >/dev/null 2>conftest.err &&
11709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11713 # icc doesn't choke on unknown options, it will just issue warnings
11714 # or remarks (even with -Werror). So we grep stderr for any message
11715 # that says an option was ignored or not supported.
11716 # When given -MP, icc 7.0 and 7.1 complain thusly:
11717 # icc: Command line warning: ignoring option '-M'; no argument required
11718 # The diagnosis changed in icc 8.0:
11719 # icc: Command line remark: option '-MP' not supported
11720 if (grep 'ignoring option' conftest.err ||
11721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11722 am_cv_CXX_dependencies_compiler_type=$depmode
11723 break
11724 fi
11725 fi
11726 done
11727
11728 cd ..
11729 rm -rf conftest.dir
11730else
11731 am_cv_CXX_dependencies_compiler_type=none
11732fi
11733
11734fi
11735{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11736$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11737CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11738
11739 if
11740 test "x$enable_dependency_tracking" != xno \
11741 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11742 am__fastdepCXX_TRUE=
11743 am__fastdepCXX_FALSE='#'
11744else
11745 am__fastdepCXX_TRUE='#'
11746 am__fastdepCXX_FALSE=
11747fi
11748
11749
11750if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11752 (test "X$CXX" != "Xg++"))) ; then
11753 ac_ext=cpp
11754ac_cpp='$CXXCPP $CPPFLAGS'
11755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11758{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11759$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11760if test -z "$CXXCPP"; then
11761 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11762 $as_echo_n "(cached) " >&6
11763else
11764 # Double quotes because CXXCPP needs to be expanded
11765 for CXXCPP in "$CXX -E" "/lib/cpp"
11766 do
11767 ac_preproc_ok=false
11768for ac_cxx_preproc_warn_flag in '' yes
11769do
11770 # Use a header file that comes with gcc, so configuring glibc
11771 # with a fresh cross-compiler works.
11772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11773 # <limits.h> exists even on freestanding compilers.
11774 # On the NeXT, cc -E runs the code through the compiler's parser,
11775 # not just through cpp. "Syntax error" is here to catch this case.
11776 cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
11782#ifdef __STDC__
11783# include <limits.h>
11784#else
11785# include <assert.h>
11786#endif
11787 Syntax error
11788_ACEOF
11789if { (ac_try="$ac_cpp conftest.$ac_ext"
11790case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11795$as_echo "$ac_try_echo") >&5
11796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } >/dev/null && {
11803 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11804 test ! -s conftest.err
11805 }; then
11806 :
11807else
11808 $as_echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811 # Broken: fails on valid input.
11812continue
11813fi
11814
11815rm -f conftest.err conftest.$ac_ext
11816
11817 # OK, works on sane cases. Now check whether nonexistent headers
11818 # can be detected and how.
11819 cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825#include <ac_nonexistent.h>
11826_ACEOF
11827if { (ac_try="$ac_cpp conftest.$ac_ext"
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833$as_echo "$ac_try_echo") >&5
11834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } >/dev/null && {
11841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11842 test ! -s conftest.err
11843 }; then
11844 # Broken: success on invalid input.
11845continue
11846else
11847 $as_echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 # Passes both tests.
11851ac_preproc_ok=:
11852break
11853fi
11854
11855rm -f conftest.err conftest.$ac_ext
11856
11857done
11858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11859rm -f conftest.err conftest.$ac_ext
11860if $ac_preproc_ok; then
11861 break
11862fi
11863
11864 done
11865 ac_cv_prog_CXXCPP=$CXXCPP
11866
11867fi
11868 CXXCPP=$ac_cv_prog_CXXCPP
11869else
11870 ac_cv_prog_CXXCPP=$CXXCPP
11871fi
11872{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
11873$as_echo "$CXXCPP" >&6; }
11874ac_preproc_ok=false
11875for ac_cxx_preproc_warn_flag in '' yes
11876do
11877 # Use a header file that comes with gcc, so configuring glibc
11878 # with a fresh cross-compiler works.
11879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 # <limits.h> exists even on freestanding compilers.
11881 # On the NeXT, cc -E runs the code through the compiler's parser,
11882 # not just through cpp. "Syntax error" is here to catch this case.
11883 cat >conftest.$ac_ext <<_ACEOF
11884/* confdefs.h. */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h. */
11889#ifdef __STDC__
11890# include <limits.h>
11891#else
11892# include <assert.h>
11893#endif
11894 Syntax error
11895_ACEOF
11896if { (ac_try="$ac_cpp conftest.$ac_ext"
11897case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902$as_echo "$ac_try_echo") >&5
11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null && {
11910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11911 test ! -s conftest.err
11912 }; then
11913 :
11914else
11915 $as_echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 # Broken: fails on valid input.
11919continue
11920fi
11921
11922rm -f conftest.err conftest.$ac_ext
11923
11924 # OK, works on sane cases. Now check whether nonexistent headers
11925 # can be detected and how.
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932#include <ac_nonexistent.h>
11933_ACEOF
11934if { (ac_try="$ac_cpp conftest.$ac_ext"
11935case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938esac
11939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11940$as_echo "$ac_try_echo") >&5
11941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } >/dev/null && {
11948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11949 test ! -s conftest.err
11950 }; then
11951 # Broken: success on invalid input.
11952continue
11953else
11954 $as_echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 # Passes both tests.
11958ac_preproc_ok=:
11959break
11960fi
11961
11962rm -f conftest.err conftest.$ac_ext
11963
11964done
11965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11966rm -f conftest.err conftest.$ac_ext
11967if $ac_preproc_ok; then
11968 :
11969else
11970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11972_lt_caught_CXX_error=yes; }
11973fi
11974
11975ac_ext=c
11976ac_cpp='$CPP $CPPFLAGS'
11977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979ac_compiler_gnu=$ac_cv_c_compiler_gnu
11980
11981else
11982 _lt_caught_CXX_error=yes
11983fi
11984
11985
11986
11987
11988
11989# Set options
11990enable_win32_dll=yes
11991
11992case $host in
11993*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11994 if test -n "$ac_tool_prefix"; then
11995 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11996set dummy ${ac_tool_prefix}as; ac_word=$2
11997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
11999if test "${ac_cv_prog_AS+set}" = set; then
12000 $as_echo_n "(cached) " >&6
12001else
12002 if test -n "$AS"; then
12003 ac_cv_prog_AS="$AS" # Let the user override the test.
12004else
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12012 ac_cv_prog_AS="${ac_tool_prefix}as"
12013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 break 2
12015 fi
12016done
12017done
12018IFS=$as_save_IFS
12019
12020fi
12021fi
12022AS=$ac_cv_prog_AS
12023if test -n "$AS"; then
12024 { $as_echo "$as_me:$LINENO: result: $AS" >&5
12025$as_echo "$AS" >&6; }
12026else
12027 { $as_echo "$as_me:$LINENO: result: no" >&5
12028$as_echo "no" >&6; }
12029fi
12030
12031
12032fi
12033if test -z "$ac_cv_prog_AS"; then
12034 ac_ct_AS=$AS
12035 # Extract the first word of "as", so it can be a program name with args.
12036set dummy as; ac_word=$2
12037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12038$as_echo_n "checking for $ac_word... " >&6; }
12039if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
12040 $as_echo_n "(cached) " >&6
12041else
12042 if test -n "$ac_ct_AS"; then
12043 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12044else
12045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12052 ac_cv_prog_ac_ct_AS="as"
12053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056done
12057done
12058IFS=$as_save_IFS
12059
12060fi
12061fi
12062ac_ct_AS=$ac_cv_prog_ac_ct_AS
12063if test -n "$ac_ct_AS"; then
12064 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
12065$as_echo "$ac_ct_AS" >&6; }
12066else
12067 { $as_echo "$as_me:$LINENO: result: no" >&5
12068$as_echo "no" >&6; }
12069fi
12070
12071 if test "x$ac_ct_AS" = x; then
12072 AS="false"
12073 else
12074 case $cross_compiling:$ac_tool_warned in
12075yes:)
12076{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12078ac_tool_warned=yes ;;
12079esac
12080 AS=$ac_ct_AS
12081 fi
12082else
12083 AS="$ac_cv_prog_AS"
12084fi
12085
12086 if test -n "$ac_tool_prefix"; then
12087 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12088set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12089{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
12091if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12092 $as_echo_n "(cached) " >&6
12093else
12094 if test -n "$DLLTOOL"; then
12095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109done
12110IFS=$as_save_IFS
12111
12112fi
12113fi
12114DLLTOOL=$ac_cv_prog_DLLTOOL
12115if test -n "$DLLTOOL"; then
12116 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12117$as_echo "$DLLTOOL" >&6; }
12118else
12119 { $as_echo "$as_me:$LINENO: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123
12124fi
12125if test -z "$ac_cv_prog_DLLTOOL"; then
12126 ac_ct_DLLTOOL=$DLLTOOL
12127 # Extract the first word of "dlltool", so it can be a program name with args.
12128set dummy dlltool; ac_word=$2
12129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
12131if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12132 $as_echo_n "(cached) " >&6
12133else
12134 if test -n "$ac_ct_DLLTOOL"; then
12135 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12136else
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12144 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148done
12149done
12150IFS=$as_save_IFS
12151
12152fi
12153fi
12154ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12155if test -n "$ac_ct_DLLTOOL"; then
12156 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12157$as_echo "$ac_ct_DLLTOOL" >&6; }
12158else
12159 { $as_echo "$as_me:$LINENO: result: no" >&5
12160$as_echo "no" >&6; }
12161fi
12162
12163 if test "x$ac_ct_DLLTOOL" = x; then
12164 DLLTOOL="false"
12165 else
12166 case $cross_compiling:$ac_tool_warned in
12167yes:)
12168{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12170ac_tool_warned=yes ;;
12171esac
12172 DLLTOOL=$ac_ct_DLLTOOL
12173 fi
12174else
12175 DLLTOOL="$ac_cv_prog_DLLTOOL"
12176fi
12177
12178 if test -n "$ac_tool_prefix"; then
12179 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12180set dummy ${ac_tool_prefix}objdump; ac_word=$2
12181{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
12183if test "${ac_cv_prog_OBJDUMP+set}" = set; then
12184 $as_echo_n "(cached) " >&6
12185else
12186 if test -n "$OBJDUMP"; then
12187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200done
12201done
12202IFS=$as_save_IFS
12203
12204fi
12205fi
12206OBJDUMP=$ac_cv_prog_OBJDUMP
12207if test -n "$OBJDUMP"; then
12208 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
12209$as_echo "$OBJDUMP" >&6; }
12210else
12211 { $as_echo "$as_me:$LINENO: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216fi
12217if test -z "$ac_cv_prog_OBJDUMP"; then
12218 ac_ct_OBJDUMP=$OBJDUMP
12219 # Extract the first word of "objdump", so it can be a program name with args.
12220set dummy objdump; ac_word=$2
12221{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
12224 $as_echo_n "(cached) " >&6
12225else
12226 if test -n "$ac_ct_OBJDUMP"; then
12227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240done
12241done
12242IFS=$as_save_IFS
12243
12244fi
12245fi
12246ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12247if test -n "$ac_ct_OBJDUMP"; then
12248 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
12249$as_echo "$ac_ct_OBJDUMP" >&6; }
12250else
12251 { $as_echo "$as_me:$LINENO: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254
12255 if test "x$ac_ct_OBJDUMP" = x; then
12256 OBJDUMP="false"
12257 else
12258 case $cross_compiling:$ac_tool_warned in
12259yes:)
12260{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262ac_tool_warned=yes ;;
12263esac
12264 OBJDUMP=$ac_ct_OBJDUMP
12265 fi
12266else
12267 OBJDUMP="$ac_cv_prog_OBJDUMP"
12268fi
12269
12270 ;;
12271esac
12272
12273test -z "$AS" && AS=as
12274
12275
12276
12277
12278
12279test -z "$DLLTOOL" && DLLTOOL=dlltool
12280
12281
12282
12283
12284
12285test -z "$OBJDUMP" && OBJDUMP=objdump
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295 # Check whether --enable-shared was given.
12296if test "${enable_shared+set}" = set; then
12297 enableval=$enable_shared; p=${PACKAGE-default}
12298 case $enableval in
12299 yes) enable_shared=yes ;;
12300 no) enable_shared=no ;;
12301 *)
12302 enable_shared=no
12303 # Look at the argument we got. We use all the common list separators.
12304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305 for pkg in $enableval; do
12306 IFS="$lt_save_ifs"
12307 if test "X$pkg" = "X$p"; then
12308 enable_shared=yes
12309 fi
12310 done
12311 IFS="$lt_save_ifs"
12312 ;;
12313 esac
12314else
12315 enable_shared=yes
12316fi
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326 # Check whether --enable-static was given.
12327if test "${enable_static+set}" = set; then
12328 enableval=$enable_static; p=${PACKAGE-default}
12329 case $enableval in
12330 yes) enable_static=yes ;;
12331 no) enable_static=no ;;
12332 *)
12333 enable_static=no
12334 # Look at the argument we got. We use all the common list separators.
12335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12336 for pkg in $enableval; do
12337 IFS="$lt_save_ifs"
12338 if test "X$pkg" = "X$p"; then
12339 enable_static=yes
12340 fi
12341 done
12342 IFS="$lt_save_ifs"
12343 ;;
12344 esac
12345else
12346 enable_static=yes
12347fi
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358# Check whether --with-pic was given.
12359if test "${with_pic+set}" = set; then
12360 withval=$with_pic; pic_mode="$withval"
12361else
12362 pic_mode=default
12363fi
12364
12365
12366test -z "$pic_mode" && pic_mode=default
12367
12368
12369
12370
12371
12372
12373
12374 # Check whether --enable-fast-install was given.
12375if test "${enable_fast_install+set}" = set; then
12376 enableval=$enable_fast_install; p=${PACKAGE-default}
12377 case $enableval in
12378 yes) enable_fast_install=yes ;;
12379 no) enable_fast_install=no ;;
12380 *)
12381 enable_fast_install=no
12382 # Look at the argument we got. We use all the common list separators.
12383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12384 for pkg in $enableval; do
12385 IFS="$lt_save_ifs"
12386 if test "X$pkg" = "X$p"; then
12387 enable_fast_install=yes
12388 fi
12389 done
12390 IFS="$lt_save_ifs"
12391 ;;
12392 esac
12393else
12394 enable_fast_install=yes
12395fi
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407# This can be used to rebuild libtool when needed
12408LIBTOOL_DEPS="$ltmain"
12409
12410# Always use our own libtool.
12411LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437test -z "$LN_S" && LN_S="ln -s"
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452if test -n "${ZSH_VERSION+set}" ; then
12453 setopt NO_GLOB_SUBST
12454fi
12455
12456{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
12457$as_echo_n "checking for objdir... " >&6; }
12458if test "${lt_cv_objdir+set}" = set; then
12459 $as_echo_n "(cached) " >&6
12460else
12461 rm -f .libs 2>/dev/null
12462mkdir .libs 2>/dev/null
12463if test -d .libs; then
12464 lt_cv_objdir=.libs
12465else
12466 # MS-DOS does not allow filenames that begin with a dot.
12467 lt_cv_objdir=_libs
12468fi
12469rmdir .libs 2>/dev/null
12470fi
12471{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12472$as_echo "$lt_cv_objdir" >&6; }
12473objdir=$lt_cv_objdir
12474
12475
12476
12477
12478
12479cat >>confdefs.h <<_ACEOF
12480#define LT_OBJDIR "$lt_cv_objdir/"
12481_ACEOF
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499case $host_os in
12500aix3*)
12501 # AIX sometimes has problems with the GCC collect2 program. For some
12502 # reason, if we set the COLLECT_NAMES environment variable, the problems
12503 # vanish in a puff of smoke.
12504 if test "X${COLLECT_NAMES+set}" != Xset; then
12505 COLLECT_NAMES=
12506 export COLLECT_NAMES
12507 fi
12508 ;;
12509esac
12510
12511# Sed substitution that helps us do robust quoting. It backslashifies
12512# metacharacters that are still active within double-quoted strings.
12513sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12514
12515# Same as above, but do not quote variable references.
12516double_quote_subst='s/\(["`\\]\)/\\\1/g'
12517
12518# Sed substitution to delay expansion of an escaped shell variable in a
12519# double_quote_subst'ed string.
12520delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12521
12522# Sed substitution to delay expansion of an escaped single quote.
12523delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12524
12525# Sed substitution to avoid accidental globbing in evaled expressions
12526no_glob_subst='s/\*/\\\*/g'
12527
12528# Global variables:
12529ofile=libtool
12530can_build_shared=yes
12531
12532# All known linkers require a `.a' archive for static linking (except MSVC,
12533# which needs '.lib').
12534libext=a
12535
12536with_gnu_ld="$lt_cv_prog_gnu_ld"
12537
12538old_CC="$CC"
12539old_CFLAGS="$CFLAGS"
12540
12541# Set sane defaults for various variables
12542test -z "$CC" && CC=cc
12543test -z "$LTCC" && LTCC=$CC
12544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12545test -z "$LD" && LD=ld
12546test -z "$ac_objext" && ac_objext=o
12547
12548for cc_temp in $compiler""; do
12549 case $cc_temp in
12550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12552 \-*) ;;
12553 *) break;;
12554 esac
12555done
12556cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12557
12558
12559# Only perform the check for file, if the check method requires it
12560test -z "$MAGIC_CMD" && MAGIC_CMD=file
12561case $deplibs_check_method in
12562file_magic*)
12563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12564 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12566if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12567 $as_echo_n "(cached) " >&6
12568else
12569 case $MAGIC_CMD in
12570[\\/*] | ?:[\\/]*)
12571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12572 ;;
12573*)
12574 lt_save_MAGIC_CMD="$MAGIC_CMD"
12575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12577 for ac_dir in $ac_dummy; do
12578 IFS="$lt_save_ifs"
12579 test -z "$ac_dir" && ac_dir=.
12580 if test -f $ac_dir/${ac_tool_prefix}file; then
12581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12582 if test -n "$file_magic_test_file"; then
12583 case $deplibs_check_method in
12584 "file_magic "*)
12585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12588 $EGREP "$file_magic_regex" > /dev/null; then
12589 :
12590 else
12591 cat <<_LT_EOF 1>&2
12592
12593*** Warning: the command libtool uses to detect shared libraries,
12594*** $file_magic_cmd, produces output that libtool cannot recognize.
12595*** The result is that libtool may fail to recognize shared libraries
12596*** as such. This will affect the creation of libtool libraries that
12597*** depend on shared libraries, but programs linked with such libtool
12598*** libraries will work regardless of this problem. Nevertheless, you
12599*** may want to report the problem to your system manager and/or to
12600*** bug-libtool@gnu.org
12601
12602_LT_EOF
12603 fi ;;
12604 esac
12605 fi
12606 break
12607 fi
12608 done
12609 IFS="$lt_save_ifs"
12610 MAGIC_CMD="$lt_save_MAGIC_CMD"
12611 ;;
12612esac
12613fi
12614
12615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12616if test -n "$MAGIC_CMD"; then
12617 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12618$as_echo "$MAGIC_CMD" >&6; }
12619else
12620 { $as_echo "$as_me:$LINENO: result: no" >&5
12621$as_echo "no" >&6; }
12622fi
12623
12624
12625
12626
12627
12628if test -z "$lt_cv_path_MAGIC_CMD"; then
12629 if test -n "$ac_tool_prefix"; then
12630 { $as_echo "$as_me:$LINENO: checking for file" >&5
12631$as_echo_n "checking for file... " >&6; }
12632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12633 $as_echo_n "(cached) " >&6
12634else
12635 case $MAGIC_CMD in
12636[\\/*] | ?:[\\/]*)
12637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12638 ;;
12639*)
12640 lt_save_MAGIC_CMD="$MAGIC_CMD"
12641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12643 for ac_dir in $ac_dummy; do
12644 IFS="$lt_save_ifs"
12645 test -z "$ac_dir" && ac_dir=.
12646 if test -f $ac_dir/file; then
12647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12648 if test -n "$file_magic_test_file"; then
12649 case $deplibs_check_method in
12650 "file_magic "*)
12651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12654 $EGREP "$file_magic_regex" > /dev/null; then
12655 :
12656 else
12657 cat <<_LT_EOF 1>&2
12658
12659*** Warning: the command libtool uses to detect shared libraries,
12660*** $file_magic_cmd, produces output that libtool cannot recognize.
12661*** The result is that libtool may fail to recognize shared libraries
12662*** as such. This will affect the creation of libtool libraries that
12663*** depend on shared libraries, but programs linked with such libtool
12664*** libraries will work regardless of this problem. Nevertheless, you
12665*** may want to report the problem to your system manager and/or to
12666*** bug-libtool@gnu.org
12667
12668_LT_EOF
12669 fi ;;
12670 esac
12671 fi
12672 break
12673 fi
12674 done
12675 IFS="$lt_save_ifs"
12676 MAGIC_CMD="$lt_save_MAGIC_CMD"
12677 ;;
12678esac
12679fi
12680
12681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12682if test -n "$MAGIC_CMD"; then
12683 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12684$as_echo "$MAGIC_CMD" >&6; }
12685else
12686 { $as_echo "$as_me:$LINENO: result: no" >&5
12687$as_echo "no" >&6; }
12688fi
12689
12690
12691 else
12692 MAGIC_CMD=:
12693 fi
12694fi
12695
12696 fi
12697 ;;
12698esac
12699
12700# Use C for the default configuration in the libtool script
12701
12702lt_save_CC="$CC"
12703ac_ext=c
12704ac_cpp='$CPP $CPPFLAGS'
12705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707ac_compiler_gnu=$ac_cv_c_compiler_gnu
12708
12709
12710# Source file extension for C test sources.
12711ac_ext=c
12712
12713# Object file extension for compiled C test sources.
12714objext=o
12715objext=$objext
12716
12717# Code to be used in simple compile tests
12718lt_simple_compile_test_code="int some_variable = 0;"
12719
12720# Code to be used in simple link tests
12721lt_simple_link_test_code='int main(){return(0);}'
12722
12723
12724
12725
12726
12727
12728
12729# If no C compiler was specified, use CC.
12730LTCC=${LTCC-"$CC"}
12731
12732# If no C compiler flags were specified, use CFLAGS.
12733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12734
12735# Allow CC to be a program name with arguments.
12736compiler=$CC
12737
12738# Save the default compiler, since it gets overwritten when the other
12739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12740compiler_DEFAULT=$CC
12741
12742# save warnings/boilerplate of simple test code
12743ac_outfile=conftest.$ac_objext
12744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12746_lt_compiler_boilerplate=`cat conftest.err`
12747$RM conftest*
12748
12749ac_outfile=conftest.$ac_objext
12750echo "$lt_simple_link_test_code" >conftest.$ac_ext
12751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12752_lt_linker_boilerplate=`cat conftest.err`
12753$RM -r conftest*
12754
12755
12756## CAVEAT EMPTOR:
12757## There is no encapsulation within the following macros, do not change
12758## the running order or otherwise move them around unless you know exactly
12759## what you are doing...
12760if test -n "$compiler"; then
12761
12762lt_prog_compiler_no_builtin_flag=
12763
12764if test "$GCC" = yes; then
12765 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12766
12767 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12768$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12769if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12770 $as_echo_n "(cached) " >&6
12771else
12772 lt_cv_prog_compiler_rtti_exceptions=no
12773 ac_outfile=conftest.$ac_objext
12774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12775 lt_compiler_flag="-fno-rtti -fno-exceptions"
12776 # Insert the option either (1) after the last *FLAGS variable, or
12777 # (2) before a word containing "conftest.", or (3) at the end.
12778 # Note that $ac_compile itself does not contain backslashes and begins
12779 # with a dollar sign (not a hyphen), so the echo should work correctly.
12780 # The option is referenced via a variable to avoid confusing sed.
12781 lt_compile=`echo "$ac_compile" | $SED \
12782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12784 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000012785 (eval echo "\"\$as_me:12785: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012786 (eval "$lt_compile" 2>conftest.err)
12787 ac_status=$?
12788 cat conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000012789 echo "$as_me:12789: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012790 if (exit $ac_status) && test -s "$ac_outfile"; then
12791 # The compiler can only warn and ignore the option if not recognized
12792 # So say no if there are warnings other than the usual output.
12793 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12796 lt_cv_prog_compiler_rtti_exceptions=yes
12797 fi
12798 fi
12799 $RM conftest*
12800
12801fi
12802{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12803$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12804
12805if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12806 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12807else
12808 :
12809fi
12810
12811fi
12812
12813
12814
12815
12816
12817
12818 lt_prog_compiler_wl=
12819lt_prog_compiler_pic=
12820lt_prog_compiler_static=
12821
12822{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12823$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12824
12825 if test "$GCC" = yes; then
12826 lt_prog_compiler_wl='-Wl,'
12827 lt_prog_compiler_static='-static'
12828
12829 case $host_os in
12830 aix*)
12831 # All AIX code is PIC.
12832 if test "$host_cpu" = ia64; then
12833 # AIX 5 now supports IA64 processor
12834 lt_prog_compiler_static='-Bstatic'
12835 fi
12836 ;;
12837
12838 amigaos*)
12839 case $host_cpu in
12840 powerpc)
12841 # see comment about AmigaOS4 .so support
12842 lt_prog_compiler_pic='-fPIC'
12843 ;;
12844 m68k)
12845 # FIXME: we need at least 68020 code to build shared libraries, but
12846 # adding the `-m68020' flag to GCC prevents building anything better,
12847 # like `-m68040'.
12848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12849 ;;
12850 esac
12851 ;;
12852
12853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12854 # PIC is the default for these OSes.
12855 ;;
12856
12857 mingw* | cygwin* | pw32* | os2* | cegcc*)
12858 # This hack is so that the source file can tell whether it is being
12859 # built for inclusion in a dll (and should export symbols for example).
12860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12861 # (--disable-auto-import) libraries
12862 lt_prog_compiler_pic='-DDLL_EXPORT'
12863 ;;
12864
12865 darwin* | rhapsody*)
12866 # PIC is the default on this platform
12867 # Common symbols not allowed in MH_DYLIB files
12868 lt_prog_compiler_pic='-fno-common'
12869 ;;
12870
12871 hpux*)
12872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12874 # sets the default TLS model and affects inlining.
12875 case $host_cpu in
12876 hppa*64*)
12877 # +Z the default
12878 ;;
12879 *)
12880 lt_prog_compiler_pic='-fPIC'
12881 ;;
12882 esac
12883 ;;
12884
12885 interix[3-9]*)
12886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12887 # Instead, we relocate shared libraries at runtime.
12888 ;;
12889
12890 msdosdjgpp*)
12891 # Just because we use GCC doesn't mean we suddenly get shared libraries
12892 # on systems that don't support them.
12893 lt_prog_compiler_can_build_shared=no
12894 enable_shared=no
12895 ;;
12896
12897 *nto* | *qnx*)
12898 # QNX uses GNU C++, but need to define -shared option too, otherwise
12899 # it will coredump.
12900 lt_prog_compiler_pic='-fPIC -shared'
12901 ;;
12902
12903 sysv4*MP*)
12904 if test -d /usr/nec; then
12905 lt_prog_compiler_pic=-Kconform_pic
12906 fi
12907 ;;
12908
12909 *)
12910 lt_prog_compiler_pic='-fPIC'
12911 ;;
12912 esac
12913 else
12914 # PORTME Check for flag to pass linker flags through the system compiler.
12915 case $host_os in
12916 aix*)
12917 lt_prog_compiler_wl='-Wl,'
12918 if test "$host_cpu" = ia64; then
12919 # AIX 5 now supports IA64 processor
12920 lt_prog_compiler_static='-Bstatic'
12921 else
12922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12923 fi
12924 ;;
12925
12926 mingw* | cygwin* | pw32* | os2* | cegcc*)
12927 # This hack is so that the source file can tell whether it is being
12928 # built for inclusion in a dll (and should export symbols for example).
12929 lt_prog_compiler_pic='-DDLL_EXPORT'
12930 ;;
12931
12932 hpux9* | hpux10* | hpux11*)
12933 lt_prog_compiler_wl='-Wl,'
12934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12935 # not for PA HP-UX.
12936 case $host_cpu in
12937 hppa*64*|ia64*)
12938 # +Z the default
12939 ;;
12940 *)
12941 lt_prog_compiler_pic='+Z'
12942 ;;
12943 esac
12944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12945 lt_prog_compiler_static='${wl}-a ${wl}archive'
12946 ;;
12947
12948 irix5* | irix6* | nonstopux*)
12949 lt_prog_compiler_wl='-Wl,'
12950 # PIC (with -KPIC) is the default.
12951 lt_prog_compiler_static='-non_shared'
12952 ;;
12953
12954 linux* | k*bsd*-gnu)
12955 case $cc_basename in
12956 # old Intel for x86_64 which still supported -KPIC.
12957 ecc*)
12958 lt_prog_compiler_wl='-Wl,'
12959 lt_prog_compiler_pic='-KPIC'
12960 lt_prog_compiler_static='-static'
12961 ;;
12962 # icc used to be incompatible with GCC.
12963 # ICC 10 doesn't accept -KPIC any more.
12964 icc* | ifort*)
12965 lt_prog_compiler_wl='-Wl,'
12966 lt_prog_compiler_pic='-fPIC'
12967 lt_prog_compiler_static='-static'
12968 ;;
12969 # Lahey Fortran 8.1.
12970 lf95*)
12971 lt_prog_compiler_wl='-Wl,'
12972 lt_prog_compiler_pic='--shared'
12973 lt_prog_compiler_static='--static'
12974 ;;
12975 pgcc* | pgf77* | pgf90* | pgf95*)
12976 # Portland Group compilers (*not* the Pentium gcc compiler,
12977 # which looks to be a dead project)
12978 lt_prog_compiler_wl='-Wl,'
12979 lt_prog_compiler_pic='-fpic'
12980 lt_prog_compiler_static='-Bstatic'
12981 ;;
12982 ccc*)
12983 lt_prog_compiler_wl='-Wl,'
12984 # All Alpha code is PIC.
12985 lt_prog_compiler_static='-non_shared'
12986 ;;
12987 xl*)
12988 # IBM XL C 8.0/Fortran 10.1 on PPC
12989 lt_prog_compiler_wl='-Wl,'
12990 lt_prog_compiler_pic='-qpic'
12991 lt_prog_compiler_static='-qstaticlink'
12992 ;;
12993 *)
12994 case `$CC -V 2>&1 | sed 5q` in
12995 *Sun\ C*)
12996 # Sun C 5.9
12997 lt_prog_compiler_pic='-KPIC'
12998 lt_prog_compiler_static='-Bstatic'
12999 lt_prog_compiler_wl='-Wl,'
13000 ;;
13001 *Sun\ F*)
13002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13003 lt_prog_compiler_pic='-KPIC'
13004 lt_prog_compiler_static='-Bstatic'
13005 lt_prog_compiler_wl=''
13006 ;;
13007 esac
13008 ;;
13009 esac
13010 ;;
13011
13012 newsos6)
13013 lt_prog_compiler_pic='-KPIC'
13014 lt_prog_compiler_static='-Bstatic'
13015 ;;
13016
13017 *nto* | *qnx*)
13018 # QNX uses GNU C++, but need to define -shared option too, otherwise
13019 # it will coredump.
13020 lt_prog_compiler_pic='-fPIC -shared'
13021 ;;
13022
13023 osf3* | osf4* | osf5*)
13024 lt_prog_compiler_wl='-Wl,'
13025 # All OSF/1 code is PIC.
13026 lt_prog_compiler_static='-non_shared'
13027 ;;
13028
13029 rdos*)
13030 lt_prog_compiler_static='-non_shared'
13031 ;;
13032
13033 solaris*)
13034 lt_prog_compiler_pic='-KPIC'
13035 lt_prog_compiler_static='-Bstatic'
13036 case $cc_basename in
13037 f77* | f90* | f95*)
13038 lt_prog_compiler_wl='-Qoption ld ';;
13039 *)
13040 lt_prog_compiler_wl='-Wl,';;
13041 esac
13042 ;;
13043
13044 sunos4*)
13045 lt_prog_compiler_wl='-Qoption ld '
13046 lt_prog_compiler_pic='-PIC'
13047 lt_prog_compiler_static='-Bstatic'
13048 ;;
13049
13050 sysv4 | sysv4.2uw2* | sysv4.3*)
13051 lt_prog_compiler_wl='-Wl,'
13052 lt_prog_compiler_pic='-KPIC'
13053 lt_prog_compiler_static='-Bstatic'
13054 ;;
13055
13056 sysv4*MP*)
13057 if test -d /usr/nec ;then
13058 lt_prog_compiler_pic='-Kconform_pic'
13059 lt_prog_compiler_static='-Bstatic'
13060 fi
13061 ;;
13062
13063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13064 lt_prog_compiler_wl='-Wl,'
13065 lt_prog_compiler_pic='-KPIC'
13066 lt_prog_compiler_static='-Bstatic'
13067 ;;
13068
13069 unicos*)
13070 lt_prog_compiler_wl='-Wl,'
13071 lt_prog_compiler_can_build_shared=no
13072 ;;
13073
13074 uts4*)
13075 lt_prog_compiler_pic='-pic'
13076 lt_prog_compiler_static='-Bstatic'
13077 ;;
13078
13079 *)
13080 lt_prog_compiler_can_build_shared=no
13081 ;;
13082 esac
13083 fi
13084
13085case $host_os in
13086 # For platforms which do not support PIC, -DPIC is meaningless:
13087 *djgpp*)
13088 lt_prog_compiler_pic=
13089 ;;
13090 *)
13091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13092 ;;
13093esac
13094{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13095$as_echo "$lt_prog_compiler_pic" >&6; }
13096
13097
13098
13099
13100
13101
13102#
13103# Check to make sure the PIC flag actually works.
13104#
13105if test -n "$lt_prog_compiler_pic"; then
13106 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13107$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13108if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
13109 $as_echo_n "(cached) " >&6
13110else
13111 lt_cv_prog_compiler_pic_works=no
13112 ac_outfile=conftest.$ac_objext
13113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13115 # Insert the option either (1) after the last *FLAGS variable, or
13116 # (2) before a word containing "conftest.", or (3) at the end.
13117 # Note that $ac_compile itself does not contain backslashes and begins
13118 # with a dollar sign (not a hyphen), so the echo should work correctly.
13119 # The option is referenced via a variable to avoid confusing sed.
13120 lt_compile=`echo "$ac_compile" | $SED \
13121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13123 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000013124 (eval echo "\"\$as_me:13124: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013125 (eval "$lt_compile" 2>conftest.err)
13126 ac_status=$?
13127 cat conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000013128 echo "$as_me:13128: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013129 if (exit $ac_status) && test -s "$ac_outfile"; then
13130 # The compiler can only warn and ignore the option if not recognized
13131 # So say no if there are warnings other than the usual output.
13132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13135 lt_cv_prog_compiler_pic_works=yes
13136 fi
13137 fi
13138 $RM conftest*
13139
13140fi
13141{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
13142$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13143
13144if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13145 case $lt_prog_compiler_pic in
13146 "" | " "*) ;;
13147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13148 esac
13149else
13150 lt_prog_compiler_pic=
13151 lt_prog_compiler_can_build_shared=no
13152fi
13153
13154fi
13155
13156
13157
13158
13159
13160
13161#
13162# Check to make sure the static flag actually works.
13163#
13164wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13165{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13166$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13167if test "${lt_cv_prog_compiler_static_works+set}" = set; then
13168 $as_echo_n "(cached) " >&6
13169else
13170 lt_cv_prog_compiler_static_works=no
13171 save_LDFLAGS="$LDFLAGS"
13172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13175 # The linker can only warn and ignore the option if not recognized
13176 # So say no if there are warnings
13177 if test -s conftest.err; then
13178 # Append any errors to the config.log.
13179 cat conftest.err 1>&5
13180 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13182 if diff conftest.exp conftest.er2 >/dev/null; then
13183 lt_cv_prog_compiler_static_works=yes
13184 fi
13185 else
13186 lt_cv_prog_compiler_static_works=yes
13187 fi
13188 fi
13189 $RM -r conftest*
13190 LDFLAGS="$save_LDFLAGS"
13191
13192fi
13193{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
13194$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13195
13196if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13197 :
13198else
13199 lt_prog_compiler_static=
13200fi
13201
13202
13203
13204
13205
13206
13207
13208 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13209$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13210if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13211 $as_echo_n "(cached) " >&6
13212else
13213 lt_cv_prog_compiler_c_o=no
13214 $RM -r conftest 2>/dev/null
13215 mkdir conftest
13216 cd conftest
13217 mkdir out
13218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13219
13220 lt_compiler_flag="-o out/conftest2.$ac_objext"
13221 # Insert the option either (1) after the last *FLAGS variable, or
13222 # (2) before a word containing "conftest.", or (3) at the end.
13223 # Note that $ac_compile itself does not contain backslashes and begins
13224 # with a dollar sign (not a hyphen), so the echo should work correctly.
13225 lt_compile=`echo "$ac_compile" | $SED \
13226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13228 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000013229 (eval echo "\"\$as_me:13229: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013230 (eval "$lt_compile" 2>out/conftest.err)
13231 ac_status=$?
13232 cat out/conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000013233 echo "$as_me:13233: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13235 then
13236 # The compiler can only warn and ignore the option if not recognized
13237 # So say no if there are warnings
13238 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13241 lt_cv_prog_compiler_c_o=yes
13242 fi
13243 fi
13244 chmod u+w . 2>&5
13245 $RM conftest*
13246 # SGI C++ compiler will create directory out/ii_files/ for
13247 # template instantiation
13248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13249 $RM out/* && rmdir out
13250 cd ..
13251 $RM -r conftest
13252 $RM conftest*
13253
13254fi
13255{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13256$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13257
13258
13259
13260
13261
13262
13263 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13264$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13265if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13266 $as_echo_n "(cached) " >&6
13267else
13268 lt_cv_prog_compiler_c_o=no
13269 $RM -r conftest 2>/dev/null
13270 mkdir conftest
13271 cd conftest
13272 mkdir out
13273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13274
13275 lt_compiler_flag="-o out/conftest2.$ac_objext"
13276 # Insert the option either (1) after the last *FLAGS variable, or
13277 # (2) before a word containing "conftest.", or (3) at the end.
13278 # Note that $ac_compile itself does not contain backslashes and begins
13279 # with a dollar sign (not a hyphen), so the echo should work correctly.
13280 lt_compile=`echo "$ac_compile" | $SED \
13281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13283 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000013284 (eval echo "\"\$as_me:13284: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013285 (eval "$lt_compile" 2>out/conftest.err)
13286 ac_status=$?
13287 cat out/conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000013288 echo "$as_me:13288: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13290 then
13291 # The compiler can only warn and ignore the option if not recognized
13292 # So say no if there are warnings
13293 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13296 lt_cv_prog_compiler_c_o=yes
13297 fi
13298 fi
13299 chmod u+w . 2>&5
13300 $RM conftest*
13301 # SGI C++ compiler will create directory out/ii_files/ for
13302 # template instantiation
13303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13304 $RM out/* && rmdir out
13305 cd ..
13306 $RM -r conftest
13307 $RM conftest*
13308
13309fi
13310{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13311$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13312
13313
13314
13315
13316hard_links="nottested"
13317if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13318 # do not overwrite the value of need_locks provided by the user
13319 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13320$as_echo_n "checking if we can lock with hard links... " >&6; }
13321 hard_links=yes
13322 $RM conftest*
13323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13324 touch conftest.a
13325 ln conftest.a conftest.b 2>&5 || hard_links=no
13326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13328$as_echo "$hard_links" >&6; }
13329 if test "$hard_links" = no; then
13330 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13331$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13332 need_locks=warn
13333 fi
13334else
13335 need_locks=no
13336fi
13337
13338
13339
13340
13341
13342
13343 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13344$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13345
13346 runpath_var=
13347 allow_undefined_flag=
13348 always_export_symbols=no
13349 archive_cmds=
13350 archive_expsym_cmds=
13351 compiler_needs_object=no
13352 enable_shared_with_static_runtimes=no
13353 export_dynamic_flag_spec=
13354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13355 hardcode_automatic=no
13356 hardcode_direct=no
13357 hardcode_direct_absolute=no
13358 hardcode_libdir_flag_spec=
13359 hardcode_libdir_flag_spec_ld=
13360 hardcode_libdir_separator=
13361 hardcode_minus_L=no
13362 hardcode_shlibpath_var=unsupported
13363 inherit_rpath=no
13364 link_all_deplibs=unknown
13365 module_cmds=
13366 module_expsym_cmds=
13367 old_archive_from_new_cmds=
13368 old_archive_from_expsyms_cmds=
13369 thread_safe_flag_spec=
13370 whole_archive_flag_spec=
13371 # include_expsyms should be a list of space-separated symbols to be *always*
13372 # included in the symbol list
13373 include_expsyms=
13374 # exclude_expsyms can be an extended regexp of symbols to exclude
13375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13377 # as well as any symbol that contains `d'.
13378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13380 # platforms (ab)use it in PIC code, but their linkers get confused if
13381 # the symbol is explicitly referenced. Since portable code cannot
13382 # rely on this symbol name, it's probably fine to never include it in
13383 # preloaded symbol tables.
13384 # Exclude shared library initialization/finalization symbols.
13385 extract_expsyms_cmds=
13386
13387 case $host_os in
13388 cygwin* | mingw* | pw32* | cegcc*)
13389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13390 # When not using gcc, we currently assume that we are using
13391 # Microsoft Visual C++.
13392 if test "$GCC" != yes; then
13393 with_gnu_ld=no
13394 fi
13395 ;;
13396 interix*)
13397 # we just hope/assume this is gcc and not c89 (= MSVC++)
13398 with_gnu_ld=yes
13399 ;;
13400 openbsd*)
13401 with_gnu_ld=no
13402 ;;
13403 esac
13404
13405 ld_shlibs=yes
13406 if test "$with_gnu_ld" = yes; then
13407 # If archive_cmds runs LD, not CC, wlarc should be empty
13408 wlarc='${wl}'
13409
13410 # Set some defaults for GNU ld with shared library support. These
13411 # are reset later if shared libraries are not supported. Putting them
13412 # here allows them to be overridden if necessary.
13413 runpath_var=LD_RUN_PATH
13414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13415 export_dynamic_flag_spec='${wl}--export-dynamic'
13416 # ancient GNU ld didn't support --whole-archive et. al.
13417 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13419 else
13420 whole_archive_flag_spec=
13421 fi
13422 supports_anon_versioning=no
13423 case `$LD -v 2>&1` in
13424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13427 *\ 2.11.*) ;; # other 2.11 versions
13428 *) supports_anon_versioning=yes ;;
13429 esac
13430
13431 # See if GNU ld supports shared libraries.
13432 case $host_os in
13433 aix[3-9]*)
13434 # On AIX/PPC, the GNU linker is very broken
13435 if test "$host_cpu" != ia64; then
13436 ld_shlibs=no
13437 cat <<_LT_EOF 1>&2
13438
13439*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13440*** to be unable to reliably create shared libraries on AIX.
13441*** Therefore, libtool is disabling shared libraries support. If you
13442*** really care for shared libraries, you may want to modify your PATH
13443*** so that a non-GNU linker is found, and then restart.
13444
13445_LT_EOF
13446 fi
13447 ;;
13448
13449 amigaos*)
13450 case $host_cpu in
13451 powerpc)
13452 # see comment about AmigaOS4 .so support
13453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13454 archive_expsym_cmds=''
13455 ;;
13456 m68k)
13457 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)'
13458 hardcode_libdir_flag_spec='-L$libdir'
13459 hardcode_minus_L=yes
13460 ;;
13461 esac
13462 ;;
13463
13464 beos*)
13465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13466 allow_undefined_flag=unsupported
13467 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13468 # support --undefined. This deserves some investigation. FIXME
13469 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470 else
13471 ld_shlibs=no
13472 fi
13473 ;;
13474
13475 cygwin* | mingw* | pw32* | cegcc*)
13476 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13477 # as there is no search path for DLLs.
13478 hardcode_libdir_flag_spec='-L$libdir'
13479 allow_undefined_flag=unsupported
13480 always_export_symbols=no
13481 enable_shared_with_static_runtimes=yes
13482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13483
13484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13486 # If the export-symbols file already is a .def file (1st line
13487 # is EXPORTS), use it as is; otherwise, prepend...
13488 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489 cp $export_symbols $output_objdir/$soname.def;
13490 else
13491 echo EXPORTS > $output_objdir/$soname.def;
13492 cat $export_symbols >> $output_objdir/$soname.def;
13493 fi~
13494 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13495 else
13496 ld_shlibs=no
13497 fi
13498 ;;
13499
13500 interix[3-9]*)
13501 hardcode_direct=no
13502 hardcode_shlibpath_var=no
13503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13504 export_dynamic_flag_spec='${wl}-E'
13505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13506 # Instead, shared libraries are loaded at an image base (0x10000000 by
13507 # default) and relocated if they conflict, which is a slow very memory
13508 # consuming and fragmenting process. To avoid this, we pick a random,
13509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13512 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'
13513 ;;
13514
13515 gnu* | linux* | tpf* | k*bsd*-gnu)
13516 tmp_diet=no
13517 if test "$host_os" = linux-dietlibc; then
13518 case $cc_basename in
13519 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13520 esac
13521 fi
13522 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13523 && test "$tmp_diet" = no
13524 then
13525 tmp_addflag=
13526 tmp_sharedflag='-shared'
13527 case $cc_basename,$host_cpu in
13528 pgcc*) # Portland Group C compiler
13529 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'
13530 tmp_addflag=' $pic_flag'
13531 ;;
13532 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13533 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'
13534 tmp_addflag=' $pic_flag -Mnomain' ;;
13535 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13536 tmp_addflag=' -i_dynamic' ;;
13537 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13538 tmp_addflag=' -i_dynamic -nofor_main' ;;
13539 ifc* | ifort*) # Intel Fortran compiler
13540 tmp_addflag=' -nofor_main' ;;
13541 lf95*) # Lahey Fortran 8.1
13542 whole_archive_flag_spec=
13543 tmp_sharedflag='--shared' ;;
13544 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13545 tmp_sharedflag='-qmkshrobj'
13546 tmp_addflag= ;;
13547 esac
13548 case `$CC -V 2>&1 | sed 5q` in
13549 *Sun\ C*) # Sun C 5.9
13550 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'
13551 compiler_needs_object=yes
13552 tmp_sharedflag='-G' ;;
13553 *Sun\ F*) # Sun Fortran 8.3
13554 tmp_sharedflag='-G' ;;
13555 esac
13556 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13557
13558 if test "x$supports_anon_versioning" = xyes; then
13559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13561 echo "local: *; };" >> $output_objdir/$libname.ver~
13562 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13563 fi
13564
13565 case $cc_basename in
13566 xlf*)
13567 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13568 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13569 hardcode_libdir_flag_spec=
13570 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13571 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13572 if test "x$supports_anon_versioning" = xyes; then
13573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13575 echo "local: *; };" >> $output_objdir/$libname.ver~
13576 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13577 fi
13578 ;;
13579 esac
13580 else
13581 ld_shlibs=no
13582 fi
13583 ;;
13584
13585 netbsd*)
13586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13588 wlarc=
13589 else
13590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13592 fi
13593 ;;
13594
13595 solaris*)
13596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13597 ld_shlibs=no
13598 cat <<_LT_EOF 1>&2
13599
13600*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13601*** create shared libraries on Solaris systems. Therefore, libtool
13602*** is disabling shared libraries support. We urge you to upgrade GNU
13603*** binutils to release 2.9.1 or newer. Another option is to modify
13604*** your PATH or compiler configuration so that the native linker is
13605*** used, and then restart.
13606
13607_LT_EOF
13608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13611 else
13612 ld_shlibs=no
13613 fi
13614 ;;
13615
13616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13617 case `$LD -v 2>&1` in
13618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13619 ld_shlibs=no
13620 cat <<_LT_EOF 1>&2
13621
13622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13623*** reliably create shared libraries on SCO systems. Therefore, libtool
13624*** is disabling shared libraries support. We urge you to upgrade GNU
13625*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13626*** your PATH or compiler configuration so that the native linker is
13627*** used, and then restart.
13628
13629_LT_EOF
13630 ;;
13631 *)
13632 # For security reasons, it is highly recommended that you always
13633 # use absolute paths for naming shared libraries, and exclude the
13634 # DT_RUNPATH tag from executables and libraries. But doing so
13635 # requires that you compile everything twice, which is a pain.
13636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13640 else
13641 ld_shlibs=no
13642 fi
13643 ;;
13644 esac
13645 ;;
13646
13647 sunos4*)
13648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13649 wlarc=
13650 hardcode_direct=yes
13651 hardcode_shlibpath_var=no
13652 ;;
13653
13654 *)
13655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658 else
13659 ld_shlibs=no
13660 fi
13661 ;;
13662 esac
13663
13664 if test "$ld_shlibs" = no; then
13665 runpath_var=
13666 hardcode_libdir_flag_spec=
13667 export_dynamic_flag_spec=
13668 whole_archive_flag_spec=
13669 fi
13670 else
13671 # PORTME fill in a description of your system's linker (not GNU ld)
13672 case $host_os in
13673 aix3*)
13674 allow_undefined_flag=unsupported
13675 always_export_symbols=yes
13676 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'
13677 # Note: this linker hardcodes the directories in LIBPATH if there
13678 # are no directories specified by -L.
13679 hardcode_minus_L=yes
13680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13681 # Neither direct hardcoding nor static linking is supported with a
13682 # broken collect2.
13683 hardcode_direct=unsupported
13684 fi
13685 ;;
13686
13687 aix[4-9]*)
13688 if test "$host_cpu" = ia64; then
13689 # On IA64, the linker does run time linking by default, so we don't
13690 # have to do anything special.
13691 aix_use_runtimelinking=no
13692 exp_sym_flag='-Bexport'
13693 no_entry_flag=""
13694 else
13695 # If we're using GNU nm, then we don't want the "-C" option.
13696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13697 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13698 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'
13699 else
13700 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'
13701 fi
13702 aix_use_runtimelinking=no
13703
13704 # Test if we are trying to use run time linking or normal
13705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13706 # need to do runtime linking.
13707 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13708 for ld_flag in $LDFLAGS; do
13709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13710 aix_use_runtimelinking=yes
13711 break
13712 fi
13713 done
13714 ;;
13715 esac
13716
13717 exp_sym_flag='-bexport'
13718 no_entry_flag='-bnoentry'
13719 fi
13720
13721 # When large executables or shared objects are built, AIX ld can
13722 # have problems creating the table of contents. If linking a library
13723 # or program results in "error TOC overflow" add -mminimal-toc to
13724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13726
13727 archive_cmds=''
13728 hardcode_direct=yes
13729 hardcode_direct_absolute=yes
13730 hardcode_libdir_separator=':'
13731 link_all_deplibs=yes
13732 file_list_spec='${wl}-f,'
13733
13734 if test "$GCC" = yes; then
13735 case $host_os in aix4.[012]|aix4.[012].*)
13736 # We only want to do this on AIX 4.2 and lower, the check
13737 # below for broken collect2 doesn't work under 4.3+
13738 collect2name=`${CC} -print-prog-name=collect2`
13739 if test -f "$collect2name" &&
13740 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13741 then
13742 # We have reworked collect2
13743 :
13744 else
13745 # We have old collect2
13746 hardcode_direct=unsupported
13747 # It fails to find uninstalled libraries when the uninstalled
13748 # path is not listed in the libpath. Setting hardcode_minus_L
13749 # to unsupported forces relinking
13750 hardcode_minus_L=yes
13751 hardcode_libdir_flag_spec='-L$libdir'
13752 hardcode_libdir_separator=
13753 fi
13754 ;;
13755 esac
13756 shared_flag='-shared'
13757 if test "$aix_use_runtimelinking" = yes; then
13758 shared_flag="$shared_flag "'${wl}-G'
13759 fi
13760 else
13761 # not using gcc
13762 if test "$host_cpu" = ia64; then
13763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13764 # chokes on -Wl,-G. The following line is correct:
13765 shared_flag='-G'
13766 else
13767 if test "$aix_use_runtimelinking" = yes; then
13768 shared_flag='${wl}-G'
13769 else
13770 shared_flag='${wl}-bM:SRE'
13771 fi
13772 fi
13773 fi
13774
13775 export_dynamic_flag_spec='${wl}-bexpall'
13776 # It seems that -bexpall does not export symbols beginning with
13777 # underscore (_), so it is better to generate a list of symbols to export.
13778 always_export_symbols=yes
13779 if test "$aix_use_runtimelinking" = yes; then
13780 # Warning - without using the other runtime loading flags (-brtl),
13781 # -berok will link without error, but may produce a broken library.
13782 allow_undefined_flag='-berok'
13783 # Determine the default libpath from the value encoded in an
13784 # empty executable.
13785 cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791
13792int
13793main ()
13794{
13795
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800rm -f conftest.$ac_objext conftest$ac_exeext
13801if { (ac_try="$ac_link"
13802case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13807$as_echo "$ac_try_echo") >&5
13808 (eval "$ac_link") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest$ac_exeext && {
13818 test "$cross_compiling" = yes ||
13819 $as_test_x conftest$ac_exeext
13820 }; then
13821
13822lt_aix_libpath_sed='
13823 /Import File Strings/,/^$/ {
13824 /^0/ {
13825 s/^0 *\(.*\)$/\1/
13826 p
13827 }
13828 }'
13829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13830# Check for a 64-bit object if we didn't find anything.
13831if test -z "$aix_libpath"; then
13832 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13833fi
13834else
13835 $as_echo "$as_me: failed program was:" >&5
13836sed 's/^/| /' conftest.$ac_ext >&5
13837
13838
13839fi
13840
13841rm -rf conftest.dSYM
13842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13843 conftest$ac_exeext conftest.$ac_ext
13844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13845
13846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13847 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"
13848 else
13849 if test "$host_cpu" = ia64; then
13850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13851 allow_undefined_flag="-z nodefs"
13852 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"
13853 else
13854 # Determine the default libpath from the value encoded in an
13855 # empty executable.
13856 cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862
13863int
13864main ()
13865{
13866
13867 ;
13868 return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext conftest$ac_exeext
13872if { (ac_try="$ac_link"
13873case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876esac
13877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878$as_echo "$ac_try_echo") >&5
13879 (eval "$ac_link") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } && {
13886 test -z "$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13888 } && test -s conftest$ac_exeext && {
13889 test "$cross_compiling" = yes ||
13890 $as_test_x conftest$ac_exeext
13891 }; then
13892
13893lt_aix_libpath_sed='
13894 /Import File Strings/,/^$/ {
13895 /^0/ {
13896 s/^0 *\(.*\)$/\1/
13897 p
13898 }
13899 }'
13900aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13901# Check for a 64-bit object if we didn't find anything.
13902if test -z "$aix_libpath"; then
13903 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13904fi
13905else
13906 $as_echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909
13910fi
13911
13912rm -rf conftest.dSYM
13913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13914 conftest$ac_exeext conftest.$ac_ext
13915if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13916
13917 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13918 # Warning - without using the other run time loading flags,
13919 # -berok will link without error, but may produce a broken library.
13920 no_undefined_flag=' ${wl}-bernotok'
13921 allow_undefined_flag=' ${wl}-berok'
13922 # Exported symbols can be pulled into shared objects from archives
13923 whole_archive_flag_spec='$convenience'
13924 archive_cmds_need_lc=yes
13925 # This is similar to how AIX traditionally builds its shared libraries.
13926 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'
13927 fi
13928 fi
13929 ;;
13930
13931 amigaos*)
13932 case $host_cpu in
13933 powerpc)
13934 # see comment about AmigaOS4 .so support
13935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13936 archive_expsym_cmds=''
13937 ;;
13938 m68k)
13939 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)'
13940 hardcode_libdir_flag_spec='-L$libdir'
13941 hardcode_minus_L=yes
13942 ;;
13943 esac
13944 ;;
13945
13946 bsdi[45]*)
13947 export_dynamic_flag_spec=-rdynamic
13948 ;;
13949
13950 cygwin* | mingw* | pw32* | cegcc*)
13951 # When not using gcc, we currently assume that we are using
13952 # Microsoft Visual C++.
13953 # hardcode_libdir_flag_spec is actually meaningless, as there is
13954 # no search path for DLLs.
13955 hardcode_libdir_flag_spec=' '
13956 allow_undefined_flag=unsupported
13957 # Tell ltmain to make .lib files, not .a files.
13958 libext=lib
13959 # Tell ltmain to make .dll files, not .so files.
13960 shrext_cmds=".dll"
13961 # FIXME: Setting linknames here is a bad hack.
13962 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13963 # The linker will automatically build a .lib file if we build a DLL.
13964 old_archive_from_new_cmds='true'
13965 # FIXME: Should let the user specify the lib program.
13966 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13967 fix_srcfile_path='`cygpath -w "$srcfile"`'
13968 enable_shared_with_static_runtimes=yes
13969 ;;
13970
13971 darwin* | rhapsody*)
13972
13973
13974 archive_cmds_need_lc=no
13975 hardcode_direct=no
13976 hardcode_automatic=yes
13977 hardcode_shlibpath_var=unsupported
13978 whole_archive_flag_spec=''
13979 link_all_deplibs=yes
13980 allow_undefined_flag="$_lt_dar_allow_undefined"
13981 case $cc_basename in
13982 ifort*) _lt_dar_can_shared=yes ;;
13983 *) _lt_dar_can_shared=$GCC ;;
13984 esac
13985 if test "$_lt_dar_can_shared" = "yes"; then
13986 output_verbose_link_cmd=echo
13987 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13988 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13989 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}"
13990 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}"
13991
13992 else
13993 ld_shlibs=no
13994 fi
13995
13996 ;;
13997
13998 dgux*)
13999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_libdir_flag_spec='-L$libdir'
14001 hardcode_shlibpath_var=no
14002 ;;
14003
14004 freebsd1*)
14005 ld_shlibs=no
14006 ;;
14007
14008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14009 # support. Future versions do this automatically, but an explicit c++rt0.o
14010 # does not break anything, and helps significantly (at the cost of a little
14011 # extra space).
14012 freebsd2.2*)
14013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14014 hardcode_libdir_flag_spec='-R$libdir'
14015 hardcode_direct=yes
14016 hardcode_shlibpath_var=no
14017 ;;
14018
14019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14020 freebsd2*)
14021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14022 hardcode_direct=yes
14023 hardcode_minus_L=yes
14024 hardcode_shlibpath_var=no
14025 ;;
14026
14027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14028 freebsd* | dragonfly*)
14029 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14030 hardcode_libdir_flag_spec='-R$libdir'
14031 hardcode_direct=yes
14032 hardcode_shlibpath_var=no
14033 ;;
14034
14035 hpux9*)
14036 if test "$GCC" = yes; then
14037 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'
14038 else
14039 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'
14040 fi
14041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14042 hardcode_libdir_separator=:
14043 hardcode_direct=yes
14044
14045 # hardcode_minus_L: Not really in the search PATH,
14046 # but as the default location of the library.
14047 hardcode_minus_L=yes
14048 export_dynamic_flag_spec='${wl}-E'
14049 ;;
14050
14051 hpux10*)
14052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14053 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14054 else
14055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14056 fi
14057 if test "$with_gnu_ld" = no; then
14058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14059 hardcode_libdir_flag_spec_ld='+b $libdir'
14060 hardcode_libdir_separator=:
14061 hardcode_direct=yes
14062 hardcode_direct_absolute=yes
14063 export_dynamic_flag_spec='${wl}-E'
14064 # hardcode_minus_L: Not really in the search PATH,
14065 # but as the default location of the library.
14066 hardcode_minus_L=yes
14067 fi
14068 ;;
14069
14070 hpux11*)
14071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14072 case $host_cpu in
14073 hppa*64*)
14074 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075 ;;
14076 ia64*)
14077 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14078 ;;
14079 *)
14080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14081 ;;
14082 esac
14083 else
14084 case $host_cpu in
14085 hppa*64*)
14086 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14087 ;;
14088 ia64*)
14089 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14090 ;;
14091 *)
14092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14093 ;;
14094 esac
14095 fi
14096 if test "$with_gnu_ld" = no; then
14097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14098 hardcode_libdir_separator=:
14099
14100 case $host_cpu in
14101 hppa*64*|ia64*)
14102 hardcode_direct=no
14103 hardcode_shlibpath_var=no
14104 ;;
14105 *)
14106 hardcode_direct=yes
14107 hardcode_direct_absolute=yes
14108 export_dynamic_flag_spec='${wl}-E'
14109
14110 # hardcode_minus_L: Not really in the search PATH,
14111 # but as the default location of the library.
14112 hardcode_minus_L=yes
14113 ;;
14114 esac
14115 fi
14116 ;;
14117
14118 irix5* | irix6* | nonstopux*)
14119 if test "$GCC" = yes; then
14120 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'
14121 # Try to use the -exported_symbol ld option, if it does not
14122 # work, assume that -exports_file does not work either and
14123 # implicitly export all symbols.
14124 save_LDFLAGS="$LDFLAGS"
14125 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14126 cat >conftest.$ac_ext <<_ACEOF
14127int foo(void) {}
14128_ACEOF
14129rm -f conftest.$ac_objext conftest$ac_exeext
14130if { (ac_try="$ac_link"
14131case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134esac
14135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14136$as_echo "$ac_try_echo") >&5
14137 (eval "$ac_link") 2>conftest.er1
14138 ac_status=$?
14139 grep -v '^ *+' conftest.er1 >conftest.err
14140 rm -f conftest.er1
14141 cat conftest.err >&5
14142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } && {
14144 test -z "$ac_c_werror_flag" ||
14145 test ! -s conftest.err
14146 } && test -s conftest$ac_exeext && {
14147 test "$cross_compiling" = yes ||
14148 $as_test_x conftest$ac_exeext
14149 }; then
14150 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'
14151
14152else
14153 $as_echo "$as_me: failed program was:" >&5
14154sed 's/^/| /' conftest.$ac_ext >&5
14155
14156
14157fi
14158
14159rm -rf conftest.dSYM
14160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LDFLAGS="$save_LDFLAGS"
14163 else
14164 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'
14165 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'
14166 fi
14167 archive_cmds_need_lc='no'
14168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14169 hardcode_libdir_separator=:
14170 inherit_rpath=yes
14171 link_all_deplibs=yes
14172 ;;
14173
14174 netbsd*)
14175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14177 else
14178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14179 fi
14180 hardcode_libdir_flag_spec='-R$libdir'
14181 hardcode_direct=yes
14182 hardcode_shlibpath_var=no
14183 ;;
14184
14185 newsos6)
14186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187 hardcode_direct=yes
14188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14189 hardcode_libdir_separator=:
14190 hardcode_shlibpath_var=no
14191 ;;
14192
14193 *nto* | *qnx*)
14194 ;;
14195
14196 openbsd*)
14197 if test -f /usr/libexec/ld.so; then
14198 hardcode_direct=yes
14199 hardcode_shlibpath_var=no
14200 hardcode_direct_absolute=yes
14201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14205 export_dynamic_flag_spec='${wl}-E'
14206 else
14207 case $host_os in
14208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14210 hardcode_libdir_flag_spec='-R$libdir'
14211 ;;
14212 *)
14213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14215 ;;
14216 esac
14217 fi
14218 else
14219 ld_shlibs=no
14220 fi
14221 ;;
14222
14223 os2*)
14224 hardcode_libdir_flag_spec='-L$libdir'
14225 hardcode_minus_L=yes
14226 allow_undefined_flag=unsupported
14227 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'
14228 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14229 ;;
14230
14231 osf3*)
14232 if test "$GCC" = yes; then
14233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14234 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'
14235 else
14236 allow_undefined_flag=' -expect_unresolved \*'
14237 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'
14238 fi
14239 archive_cmds_need_lc='no'
14240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14241 hardcode_libdir_separator=:
14242 ;;
14243
14244 osf4* | osf5*) # as osf3* with the addition of -msym flag
14245 if test "$GCC" = yes; then
14246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14247 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'
14248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14249 else
14250 allow_undefined_flag=' -expect_unresolved \*'
14251 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'
14252 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~
14253 $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'
14254
14255 # Both c and cxx compiler support -rpath directly
14256 hardcode_libdir_flag_spec='-rpath $libdir'
14257 fi
14258 archive_cmds_need_lc='no'
14259 hardcode_libdir_separator=:
14260 ;;
14261
14262 solaris*)
14263 no_undefined_flag=' -z defs'
14264 if test "$GCC" = yes; then
14265 wlarc='${wl}'
14266 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14268 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14269 else
14270 case `$CC -V 2>&1` in
14271 *"Compilers 5.0"*)
14272 wlarc=''
14273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14276 ;;
14277 *)
14278 wlarc='${wl}'
14279 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14281 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14282 ;;
14283 esac
14284 fi
14285 hardcode_libdir_flag_spec='-R$libdir'
14286 hardcode_shlibpath_var=no
14287 case $host_os in
14288 solaris2.[0-5] | solaris2.[0-5].*) ;;
14289 *)
14290 # The compiler driver will combine and reorder linker options,
14291 # but understands `-z linker_flag'. GCC discards it without `$wl',
14292 # but is careful enough not to reorder.
14293 # Supported since Solaris 2.6 (maybe 2.5.1?)
14294 if test "$GCC" = yes; then
14295 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14296 else
14297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14298 fi
14299 ;;
14300 esac
14301 link_all_deplibs=yes
14302 ;;
14303
14304 sunos4*)
14305 if test "x$host_vendor" = xsequent; then
14306 # Use $CC to link under sequent, because it throws in some extra .o
14307 # files that make .init and .fini sections work.
14308 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14309 else
14310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14311 fi
14312 hardcode_libdir_flag_spec='-L$libdir'
14313 hardcode_direct=yes
14314 hardcode_minus_L=yes
14315 hardcode_shlibpath_var=no
14316 ;;
14317
14318 sysv4)
14319 case $host_vendor in
14320 sni)
14321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14322 hardcode_direct=yes # is this really true???
14323 ;;
14324 siemens)
14325 ## LD is ld it makes a PLAMLIB
14326 ## CC just makes a GrossModule.
14327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14328 reload_cmds='$CC -r -o $output$reload_objs'
14329 hardcode_direct=no
14330 ;;
14331 motorola)
14332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14334 ;;
14335 esac
14336 runpath_var='LD_RUN_PATH'
14337 hardcode_shlibpath_var=no
14338 ;;
14339
14340 sysv4.3*)
14341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342 hardcode_shlibpath_var=no
14343 export_dynamic_flag_spec='-Bexport'
14344 ;;
14345
14346 sysv4*MP*)
14347 if test -d /usr/nec; then
14348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349 hardcode_shlibpath_var=no
14350 runpath_var=LD_RUN_PATH
14351 hardcode_runpath_var=yes
14352 ld_shlibs=yes
14353 fi
14354 ;;
14355
14356 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14357 no_undefined_flag='${wl}-z,text'
14358 archive_cmds_need_lc=no
14359 hardcode_shlibpath_var=no
14360 runpath_var='LD_RUN_PATH'
14361
14362 if test "$GCC" = yes; then
14363 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14364 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14365 else
14366 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14368 fi
14369 ;;
14370
14371 sysv5* | sco3.2v5* | sco5v6*)
14372 # Note: We can NOT use -z defs as we might desire, because we do not
14373 # link with -lc, and that would cause any symbols used from libc to
14374 # always be unresolved, which means just about no library would
14375 # ever link correctly. If we're not using GNU ld we use -z text
14376 # though, which does catch some bad symbols but isn't as heavy-handed
14377 # as -z defs.
14378 no_undefined_flag='${wl}-z,text'
14379 allow_undefined_flag='${wl}-z,nodefs'
14380 archive_cmds_need_lc=no
14381 hardcode_shlibpath_var=no
14382 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14383 hardcode_libdir_separator=':'
14384 link_all_deplibs=yes
14385 export_dynamic_flag_spec='${wl}-Bexport'
14386 runpath_var='LD_RUN_PATH'
14387
14388 if test "$GCC" = yes; then
14389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14391 else
14392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14394 fi
14395 ;;
14396
14397 uts4*)
14398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14399 hardcode_libdir_flag_spec='-L$libdir'
14400 hardcode_shlibpath_var=no
14401 ;;
14402
14403 *)
14404 ld_shlibs=no
14405 ;;
14406 esac
14407
14408 if test x$host_vendor = xsni; then
14409 case $host in
14410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14411 export_dynamic_flag_spec='${wl}-Blargedynsym'
14412 ;;
14413 esac
14414 fi
14415 fi
14416
14417{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14418$as_echo "$ld_shlibs" >&6; }
14419test "$ld_shlibs" = no && can_build_shared=no
14420
14421with_gnu_ld=$with_gnu_ld
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437#
14438# Do we need to explicitly link libc?
14439#
14440case "x$archive_cmds_need_lc" in
14441x|xyes)
14442 # Assume -lc should be added
14443 archive_cmds_need_lc=yes
14444
14445 if test "$enable_shared" = yes && test "$GCC" = yes; then
14446 case $archive_cmds in
14447 *'~'*)
14448 # FIXME: we may have to deal with multi-command sequences.
14449 ;;
14450 '$CC '*)
14451 # Test whether the compiler implicitly links with -lc since on some
14452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14453 # to ld, don't add -lc before -lgcc.
14454 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14455$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14456 $RM conftest*
14457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14458
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460 (eval $ac_compile) 2>&5
14461 ac_status=$?
14462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } 2>conftest.err; then
14464 soname=conftest
14465 lib=conftest
14466 libobjs=conftest.$ac_objext
14467 deplibs=
14468 wl=$lt_prog_compiler_wl
14469 pic_flag=$lt_prog_compiler_pic
14470 compiler_flags=-v
14471 linker_flags=-v
14472 verstring=
14473 output_objdir=.
14474 libname=conftest
14475 lt_save_allow_undefined_flag=$allow_undefined_flag
14476 allow_undefined_flag=
14477 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14478 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14479 ac_status=$?
14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }
14482 then
14483 archive_cmds_need_lc=no
14484 else
14485 archive_cmds_need_lc=yes
14486 fi
14487 allow_undefined_flag=$lt_save_allow_undefined_flag
14488 else
14489 cat conftest.err 1>&5
14490 fi
14491 $RM conftest*
14492 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14493$as_echo "$archive_cmds_need_lc" >&6; }
14494 ;;
14495 esac
14496 fi
14497 ;;
14498esac
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14657$as_echo_n "checking dynamic linker characteristics... " >&6; }
14658
14659if test "$GCC" = yes; then
14660 case $host_os in
14661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14662 *) lt_awk_arg="/^libraries:/" ;;
14663 esac
14664 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14665 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14666 # if the path contains ";" then we assume it to be the separator
14667 # otherwise default to the standard path separator (i.e. ":") - it is
14668 # assumed that no part of a normal pathname contains ";" but that should
14669 # okay in the real world where ";" in dirpaths is itself problematic.
14670 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14671 else
14672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14673 fi
14674 # Ok, now we have the path, separated by spaces, we can step through it
14675 # and add multilib dir if necessary.
14676 lt_tmp_lt_search_path_spec=
14677 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14678 for lt_sys_path in $lt_search_path_spec; do
14679 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14681 else
14682 test -d "$lt_sys_path" && \
14683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14684 fi
14685 done
14686 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14687BEGIN {RS=" "; FS="/|\n";} {
14688 lt_foo="";
14689 lt_count=0;
14690 for (lt_i = NF; lt_i > 0; lt_i--) {
14691 if ($lt_i != "" && $lt_i != ".") {
14692 if ($lt_i == "..") {
14693 lt_count++;
14694 } else {
14695 if (lt_count == 0) {
14696 lt_foo="/" $lt_i lt_foo;
14697 } else {
14698 lt_count--;
14699 }
14700 }
14701 }
14702 }
14703 if (lt_foo != "") { lt_freq[lt_foo]++; }
14704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14705}'`
14706 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14707else
14708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14709fi
14710library_names_spec=
14711libname_spec='lib$name'
14712soname_spec=
14713shrext_cmds=".so"
14714postinstall_cmds=
14715postuninstall_cmds=
14716finish_cmds=
14717finish_eval=
14718shlibpath_var=
14719shlibpath_overrides_runpath=unknown
14720version_type=none
14721dynamic_linker="$host_os ld.so"
14722sys_lib_dlsearch_path_spec="/lib /usr/lib"
14723need_lib_prefix=unknown
14724hardcode_into_libs=no
14725
14726# when you set need_version to no, make sure it does not cause -set_version
14727# flags to be left without arguments
14728need_version=unknown
14729
14730case $host_os in
14731aix3*)
14732 version_type=linux
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14734 shlibpath_var=LIBPATH
14735
14736 # AIX 3 has no versioning support, so we append a major version to the name.
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 ;;
14739
14740aix[4-9]*)
14741 version_type=linux
14742 need_lib_prefix=no
14743 need_version=no
14744 hardcode_into_libs=yes
14745 if test "$host_cpu" = ia64; then
14746 # AIX 5 supports IA64
14747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 else
14750 # With GCC up to 2.95.x, collect2 would create an import file
14751 # for dependence libraries. The import file would start with
14752 # the line `#! .'. This would cause the generated library to
14753 # depend on `.', always an invalid library. This was fixed in
14754 # development snapshots of GCC prior to 3.0.
14755 case $host_os in
14756 aix4 | aix4.[01] | aix4.[01].*)
14757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14758 echo ' yes '
14759 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14760 :
14761 else
14762 can_build_shared=no
14763 fi
14764 ;;
14765 esac
14766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14767 # soname into executable. Probably we can add versioning support to
14768 # collect2, so additional links can be useful in future.
14769 if test "$aix_use_runtimelinking" = yes; then
14770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14771 # instead of lib<name>.a to let people know that these are not
14772 # typical AIX shared libraries.
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 else
14775 # We preserve .a as extension for shared libraries through AIX4.2
14776 # and later when we are not doing run time linking.
14777 library_names_spec='${libname}${release}.a $libname.a'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 fi
14780 shlibpath_var=LIBPATH
14781 fi
14782 ;;
14783
14784amigaos*)
14785 case $host_cpu in
14786 powerpc)
14787 # Since July 2007 AmigaOS4 officially supports .so libraries.
14788 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 ;;
14791 m68k)
14792 library_names_spec='$libname.ixlibrary $libname.a'
14793 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14794 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'
14795 ;;
14796 esac
14797 ;;
14798
14799beos*)
14800 library_names_spec='${libname}${shared_ext}'
14801 dynamic_linker="$host_os ld.so"
14802 shlibpath_var=LIBRARY_PATH
14803 ;;
14804
14805bsdi[45]*)
14806 version_type=linux
14807 need_version=no
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14814 # the default ld.so.conf also contains /usr/contrib/lib and
14815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14816 # libtool to hard-code these into programs
14817 ;;
14818
14819cygwin* | mingw* | pw32* | cegcc*)
14820 version_type=windows
14821 shrext_cmds=".dll"
14822 need_version=no
14823 need_lib_prefix=no
14824
14825 case $GCC,$host_os in
14826 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14827 library_names_spec='$libname.dll.a'
14828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14829 postinstall_cmds='base_file=`basename \${file}`~
14830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14831 dldir=$destdir/`dirname \$dlpath`~
14832 test -d \$dldir || mkdir -p \$dldir~
14833 $install_prog $dir/$dlname \$dldir/$dlname~
14834 chmod a+x \$dldir/$dlname~
14835 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14836 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14837 fi'
14838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14839 dlpath=$dir/\$dldll~
14840 $RM \$dlpath'
14841 shlibpath_overrides_runpath=yes
14842
14843 case $host_os in
14844 cygwin*)
14845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14848 ;;
14849 mingw* | cegcc*)
14850 # MinGW DLLs use traditional 'lib' prefix
14851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14852 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14853 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14854 # It is most probably a Windows format PATH printed by
14855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14856 # path with ; separators, and with drive letters. We can handle the
14857 # drive letters (cygwin fileutils understands them), so leave them,
14858 # especially as we might pass files found there to a mingw objdump,
14859 # which wouldn't understand a cygwinified path. Ahh.
14860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14861 else
14862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14863 fi
14864 ;;
14865 pw32*)
14866 # pw32 DLLs use 'pw' prefix rather than 'lib'
14867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14868 ;;
14869 esac
14870 ;;
14871
14872 *)
14873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14874 ;;
14875 esac
14876 dynamic_linker='Win32 ld.exe'
14877 # FIXME: first we should search . and the directory the executable is in
14878 shlibpath_var=PATH
14879 ;;
14880
14881darwin* | rhapsody*)
14882 dynamic_linker="$host_os dyld"
14883 version_type=darwin
14884 need_lib_prefix=no
14885 need_version=no
14886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14887 soname_spec='${libname}${release}${major}$shared_ext'
14888 shlibpath_overrides_runpath=yes
14889 shlibpath_var=DYLD_LIBRARY_PATH
14890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14891
14892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14894 ;;
14895
14896dgux*)
14897 version_type=linux
14898 need_lib_prefix=no
14899 need_version=no
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 shlibpath_var=LD_LIBRARY_PATH
14903 ;;
14904
14905freebsd1*)
14906 dynamic_linker=no
14907 ;;
14908
14909freebsd* | dragonfly*)
14910 # DragonFly does not have aout. When/if they implement a new
14911 # versioning mechanism, adjust this.
14912 if test -x /usr/bin/objformat; then
14913 objformat=`/usr/bin/objformat`
14914 else
14915 case $host_os in
14916 freebsd[123]*) objformat=aout ;;
14917 *) objformat=elf ;;
14918 esac
14919 fi
14920 version_type=freebsd-$objformat
14921 case $version_type in
14922 freebsd-elf*)
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14924 need_version=no
14925 need_lib_prefix=no
14926 ;;
14927 freebsd-*)
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14929 need_version=yes
14930 ;;
14931 esac
14932 shlibpath_var=LD_LIBRARY_PATH
14933 case $host_os in
14934 freebsd2*)
14935 shlibpath_overrides_runpath=yes
14936 ;;
14937 freebsd3.[01]* | freebsdelf3.[01]*)
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14940 ;;
14941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14943 shlibpath_overrides_runpath=no
14944 hardcode_into_libs=yes
14945 ;;
14946 *) # from 4.6 on, and DragonFly
14947 shlibpath_overrides_runpath=yes
14948 hardcode_into_libs=yes
14949 ;;
14950 esac
14951 ;;
14952
14953gnu*)
14954 version_type=linux
14955 need_lib_prefix=no
14956 need_version=no
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 hardcode_into_libs=yes
14961 ;;
14962
14963hpux9* | hpux10* | hpux11*)
14964 # Give a soname corresponding to the major version so that dld.sl refuses to
14965 # link against other versions.
14966 version_type=sunos
14967 need_lib_prefix=no
14968 need_version=no
14969 case $host_cpu in
14970 ia64*)
14971 shrext_cmds='.so'
14972 hardcode_into_libs=yes
14973 dynamic_linker="$host_os dld.so"
14974 shlibpath_var=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 if test "X$HPUX_IA64_MODE" = X32; then
14979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14980 else
14981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14982 fi
14983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14984 ;;
14985 hppa*64*)
14986 shrext_cmds='.sl'
14987 hardcode_into_libs=yes
14988 dynamic_linker="$host_os dld.sl"
14989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14995 ;;
14996 *)
14997 shrext_cmds='.sl'
14998 dynamic_linker="$host_os dld.sl"
14999 shlibpath_var=SHLIB_PATH
15000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 ;;
15004 esac
15005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15006 postinstall_cmds='chmod 555 $lib'
15007 ;;
15008
15009interix[3-9]*)
15010 version_type=linux
15011 need_lib_prefix=no
15012 need_version=no
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018 hardcode_into_libs=yes
15019 ;;
15020
15021irix5* | irix6* | nonstopux*)
15022 case $host_os in
15023 nonstopux*) version_type=nonstopux ;;
15024 *)
15025 if test "$lt_cv_prog_gnu_ld" = yes; then
15026 version_type=linux
15027 else
15028 version_type=irix
15029 fi ;;
15030 esac
15031 need_lib_prefix=no
15032 need_version=no
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15035 case $host_os in
15036 irix5* | nonstopux*)
15037 libsuff= shlibsuff=
15038 ;;
15039 *)
15040 case $LD in # libtool.m4 will add one of these switches to LD
15041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15042 libsuff= shlibsuff= libmagic=32-bit;;
15043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15044 libsuff=32 shlibsuff=N32 libmagic=N32;;
15045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15047 *) libsuff= shlibsuff= libmagic=never-match;;
15048 esac
15049 ;;
15050 esac
15051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15052 shlibpath_overrides_runpath=no
15053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15055 hardcode_into_libs=yes
15056 ;;
15057
15058# No shared lib support for Linux oldld, aout, or coff.
15059linux*oldld* | linux*aout* | linux*coff*)
15060 dynamic_linker=no
15061 ;;
15062
15063# This must be Linux ELF.
15064linux* | k*bsd*-gnu)
15065 version_type=linux
15066 need_lib_prefix=no
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 -n $libdir'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=no
15073 # Some binutils ld are patched to set DT_RUNPATH
15074 save_LDFLAGS=$LDFLAGS
15075 save_libdir=$libdir
15076 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15077 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15078 cat >conftest.$ac_ext <<_ACEOF
15079/* confdefs.h. */
15080_ACEOF
15081cat confdefs.h >>conftest.$ac_ext
15082cat >>conftest.$ac_ext <<_ACEOF
15083/* end confdefs.h. */
15084
15085int
15086main ()
15087{
15088
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext conftest$ac_exeext
15094if { (ac_try="$ac_link"
15095case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098esac
15099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15100$as_echo "$ac_try_echo") >&5
15101 (eval "$ac_link") 2>conftest.er1
15102 ac_status=$?
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
15106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } && {
15108 test -z "$ac_c_werror_flag" ||
15109 test ! -s conftest.err
15110 } && test -s conftest$ac_exeext && {
15111 test "$cross_compiling" = yes ||
15112 $as_test_x conftest$ac_exeext
15113 }; then
15114 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15115 shlibpath_overrides_runpath=yes
15116fi
15117
15118else
15119 $as_echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122
15123fi
15124
15125rm -rf conftest.dSYM
15126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LDFLAGS=$save_LDFLAGS
15129 libdir=$save_libdir
15130
15131 # This implies no fast_install, which is unacceptable.
15132 # Some rework will be needed to allow for fast_install
15133 # before this can be enabled.
15134 hardcode_into_libs=yes
15135
15136 # Add ABI-specific directories to the system library path.
15137 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15138
15139 # Append ld.so.conf contents to the search path
15140 if test -f /etc/ld.so.conf; then
15141 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' ' '`
15142 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15143 fi
15144
15145 # We used to test for /lib/ld.so.1 and disable shared libraries on
15146 # powerpc, because MkLinux only supported shared libraries with the
15147 # GNU dynamic linker. Since this was broken with cross compilers,
15148 # most powerpc-linux boxes support dynamic linking these days and
15149 # people can always --disable-shared, the test was removed, and we
15150 # assume the GNU/Linux dynamic linker is in use.
15151 dynamic_linker='GNU/Linux ld.so'
15152 ;;
15153
15154netbsd*)
15155 version_type=sunos
15156 need_lib_prefix=no
15157 need_version=no
15158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15161 dynamic_linker='NetBSD (a.out) ld.so'
15162 else
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 dynamic_linker='NetBSD ld.elf_so'
15166 fi
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes
15169 hardcode_into_libs=yes
15170 ;;
15171
15172newsos6)
15173 version_type=linux
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 shlibpath_overrides_runpath=yes
15177 ;;
15178
15179*nto* | *qnx*)
15180 version_type=qnx
15181 need_lib_prefix=no
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=no
15187 hardcode_into_libs=yes
15188 dynamic_linker='ldqnx.so'
15189 ;;
15190
15191openbsd*)
15192 version_type=sunos
15193 sys_lib_dlsearch_path_spec="/usr/lib"
15194 need_lib_prefix=no
15195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15196 case $host_os in
15197 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15198 *) need_version=no ;;
15199 esac
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15204 case $host_os in
15205 openbsd2.[89] | openbsd2.[89].*)
15206 shlibpath_overrides_runpath=no
15207 ;;
15208 *)
15209 shlibpath_overrides_runpath=yes
15210 ;;
15211 esac
15212 else
15213 shlibpath_overrides_runpath=yes
15214 fi
15215 ;;
15216
15217os2*)
15218 libname_spec='$name'
15219 shrext_cmds=".dll"
15220 need_lib_prefix=no
15221 library_names_spec='$libname${shared_ext} $libname.a'
15222 dynamic_linker='OS/2 ld.exe'
15223 shlibpath_var=LIBPATH
15224 ;;
15225
15226osf3* | osf4* | osf5*)
15227 version_type=osf
15228 need_lib_prefix=no
15229 need_version=no
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15235 ;;
15236
15237rdos*)
15238 dynamic_linker=no
15239 ;;
15240
15241solaris*)
15242 version_type=linux
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 shlibpath_overrides_runpath=yes
15249 hardcode_into_libs=yes
15250 # ldd complains unless libraries are executable
15251 postinstall_cmds='chmod +x $lib'
15252 ;;
15253
15254sunos4*)
15255 version_type=sunos
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 shlibpath_overrides_runpath=yes
15260 if test "$with_gnu_ld" = yes; then
15261 need_lib_prefix=no
15262 fi
15263 need_version=yes
15264 ;;
15265
15266sysv4 | sysv4.3*)
15267 version_type=linux
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 case $host_vendor in
15272 sni)
15273 shlibpath_overrides_runpath=no
15274 need_lib_prefix=no
15275 runpath_var=LD_RUN_PATH
15276 ;;
15277 siemens)
15278 need_lib_prefix=no
15279 ;;
15280 motorola)
15281 need_lib_prefix=no
15282 need_version=no
15283 shlibpath_overrides_runpath=no
15284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15285 ;;
15286 esac
15287 ;;
15288
15289sysv4*MP*)
15290 if test -d /usr/nec ;then
15291 version_type=linux
15292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15293 soname_spec='$libname${shared_ext}.$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 fi
15296 ;;
15297
15298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15299 version_type=freebsd-elf
15300 need_lib_prefix=no
15301 need_version=no
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 shlibpath_overrides_runpath=yes
15306 hardcode_into_libs=yes
15307 if test "$with_gnu_ld" = yes; then
15308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15309 else
15310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15311 case $host_os in
15312 sco3.2v5*)
15313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15314 ;;
15315 esac
15316 fi
15317 sys_lib_dlsearch_path_spec='/usr/lib'
15318 ;;
15319
15320tpf*)
15321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=no
15328 hardcode_into_libs=yes
15329 ;;
15330
15331uts4*)
15332 version_type=linux
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 ;;
15337
15338*)
15339 dynamic_linker=no
15340 ;;
15341esac
15342{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15343$as_echo "$dynamic_linker" >&6; }
15344test "$dynamic_linker" = no && can_build_shared=no
15345
15346variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15347if test "$GCC" = yes; then
15348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15349fi
15350
15351if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15352 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15353fi
15354if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15355 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15356fi
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15445$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15446hardcode_action=
15447if test -n "$hardcode_libdir_flag_spec" ||
15448 test -n "$runpath_var" ||
15449 test "X$hardcode_automatic" = "Xyes" ; then
15450
15451 # We can hardcode non-existent directories.
15452 if test "$hardcode_direct" != no &&
15453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15454 # have to relink, otherwise we might link with an installed library
15455 # when we should be linking with a yet-to-be-installed one
15456 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15457 test "$hardcode_minus_L" != no; then
15458 # Linking always hardcodes the temporary library directory.
15459 hardcode_action=relink
15460 else
15461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15462 hardcode_action=immediate
15463 fi
15464else
15465 # We cannot hardcode anything, or else we can only hardcode existing
15466 # directories.
15467 hardcode_action=unsupported
15468fi
15469{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
15470$as_echo "$hardcode_action" >&6; }
15471
15472if test "$hardcode_action" = relink ||
15473 test "$inherit_rpath" = yes; then
15474 # Fast installation is not supported
15475 enable_fast_install=no
15476elif test "$shlibpath_overrides_runpath" = yes ||
15477 test "$enable_shared" = no; then
15478 # Fast installation is not necessary
15479 enable_fast_install=needless
15480fi
15481
15482
15483
15484
15485
15486
15487 if test "x$enable_dlopen" != xyes; then
15488 enable_dlopen=unknown
15489 enable_dlopen_self=unknown
15490 enable_dlopen_self_static=unknown
15491else
15492 lt_cv_dlopen=no
15493 lt_cv_dlopen_libs=
15494
15495 case $host_os in
15496 beos*)
15497 lt_cv_dlopen="load_add_on"
15498 lt_cv_dlopen_libs=
15499 lt_cv_dlopen_self=yes
15500 ;;
15501
15502 mingw* | pw32* | cegcc*)
15503 lt_cv_dlopen="LoadLibrary"
15504 lt_cv_dlopen_libs=
15505 ;;
15506
15507 cygwin*)
15508 lt_cv_dlopen="dlopen"
15509 lt_cv_dlopen_libs=
15510 ;;
15511
15512 darwin*)
15513 # if libdl is installed we need to link against it
15514 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15515$as_echo_n "checking for dlopen in -ldl... " >&6; }
15516if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15517 $as_echo_n "(cached) " >&6
15518else
15519 ac_check_lib_save_LIBS=$LIBS
15520LIBS="-ldl $LIBS"
15521cat >conftest.$ac_ext <<_ACEOF
15522/* confdefs.h. */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
15526/* end confdefs.h. */
15527
15528/* Override any GCC internal prototype to avoid an error.
15529 Use char because int might match the return type of a GCC
15530 builtin and then its argument prototype would still apply. */
15531#ifdef __cplusplus
15532extern "C"
15533#endif
15534char dlopen ();
15535int
15536main ()
15537{
15538return dlopen ();
15539 ;
15540 return 0;
15541}
15542_ACEOF
15543rm -f conftest.$ac_objext conftest$ac_exeext
15544if { (ac_try="$ac_link"
15545case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550$as_echo "$ac_try_echo") >&5
15551 (eval "$ac_link") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest$ac_exeext && {
15561 test "$cross_compiling" = yes ||
15562 $as_test_x conftest$ac_exeext
15563 }; then
15564 ac_cv_lib_dl_dlopen=yes
15565else
15566 $as_echo "$as_me: failed program was:" >&5
15567sed 's/^/| /' conftest.$ac_ext >&5
15568
15569 ac_cv_lib_dl_dlopen=no
15570fi
15571
15572rm -rf conftest.dSYM
15573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15574 conftest$ac_exeext conftest.$ac_ext
15575LIBS=$ac_check_lib_save_LIBS
15576fi
15577{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15578$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15579if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15581else
15582
15583 lt_cv_dlopen="dyld"
15584 lt_cv_dlopen_libs=
15585 lt_cv_dlopen_self=yes
15586
15587fi
15588
15589 ;;
15590
15591 *)
15592 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15593$as_echo_n "checking for shl_load... " >&6; }
15594if test "${ac_cv_func_shl_load+set}" = set; then
15595 $as_echo_n "(cached) " >&6
15596else
15597 cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15605#define shl_load innocuous_shl_load
15606
15607/* System header to define __stub macros and hopefully few prototypes,
15608 which can conflict with char shl_load (); below.
15609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15610 <limits.h> exists even on freestanding compilers. */
15611
15612#ifdef __STDC__
15613# include <limits.h>
15614#else
15615# include <assert.h>
15616#endif
15617
15618#undef shl_load
15619
15620/* Override any GCC internal prototype to avoid an error.
15621 Use char because int might match the return type of a GCC
15622 builtin and then its argument prototype would still apply. */
15623#ifdef __cplusplus
15624extern "C"
15625#endif
15626char shl_load ();
15627/* The GNU C library defines this for functions which it implements
15628 to always fail with ENOSYS. Some functions are actually named
15629 something starting with __ and the normal name is an alias. */
15630#if defined __stub_shl_load || defined __stub___shl_load
15631choke me
15632#endif
15633
15634int
15635main ()
15636{
15637return shl_load ();
15638 ;
15639 return 0;
15640}
15641_ACEOF
15642rm -f conftest.$ac_objext conftest$ac_exeext
15643if { (ac_try="$ac_link"
15644case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647esac
15648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649$as_echo "$ac_try_echo") >&5
15650 (eval "$ac_link") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext && {
15660 test "$cross_compiling" = yes ||
15661 $as_test_x conftest$ac_exeext
15662 }; then
15663 ac_cv_func_shl_load=yes
15664else
15665 $as_echo "$as_me: failed program was:" >&5
15666sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 ac_cv_func_shl_load=no
15669fi
15670
15671rm -rf conftest.dSYM
15672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15673 conftest$ac_exeext conftest.$ac_ext
15674fi
15675{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15676$as_echo "$ac_cv_func_shl_load" >&6; }
15677if test "x$ac_cv_func_shl_load" = x""yes; then
15678 lt_cv_dlopen="shl_load"
15679else
15680 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15681$as_echo_n "checking for shl_load in -ldld... " >&6; }
15682if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15684else
15685 ac_check_lib_save_LIBS=$LIBS
15686LIBS="-ldld $LIBS"
15687cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693
15694/* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15697#ifdef __cplusplus
15698extern "C"
15699#endif
15700char shl_load ();
15701int
15702main ()
15703{
15704return shl_load ();
15705 ;
15706 return 0;
15707}
15708_ACEOF
15709rm -f conftest.$ac_objext conftest$ac_exeext
15710if { (ac_try="$ac_link"
15711case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714esac
15715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716$as_echo "$ac_try_echo") >&5
15717 (eval "$ac_link") 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest$ac_exeext && {
15727 test "$cross_compiling" = yes ||
15728 $as_test_x conftest$ac_exeext
15729 }; then
15730 ac_cv_lib_dld_shl_load=yes
15731else
15732 $as_echo "$as_me: failed program was:" >&5
15733sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 ac_cv_lib_dld_shl_load=no
15736fi
15737
15738rm -rf conftest.dSYM
15739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15740 conftest$ac_exeext conftest.$ac_ext
15741LIBS=$ac_check_lib_save_LIBS
15742fi
15743{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15744$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15745if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
15746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15747else
15748 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
15749$as_echo_n "checking for dlopen... " >&6; }
15750if test "${ac_cv_func_dlopen+set}" = set; then
15751 $as_echo_n "(cached) " >&6
15752else
15753 cat >conftest.$ac_ext <<_ACEOF
15754/* confdefs.h. */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */
15759/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761#define dlopen innocuous_dlopen
15762
15763/* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char dlopen (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15767
15768#ifdef __STDC__
15769# include <limits.h>
15770#else
15771# include <assert.h>
15772#endif
15773
15774#undef dlopen
15775
15776/* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15779#ifdef __cplusplus
15780extern "C"
15781#endif
15782char dlopen ();
15783/* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786#if defined __stub_dlopen || defined __stub___dlopen
15787choke me
15788#endif
15789
15790int
15791main ()
15792{
15793return dlopen ();
15794 ;
15795 return 0;
15796}
15797_ACEOF
15798rm -f conftest.$ac_objext conftest$ac_exeext
15799if { (ac_try="$ac_link"
15800case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803esac
15804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15805$as_echo "$ac_try_echo") >&5
15806 (eval "$ac_link") 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } && {
15813 test -z "$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15815 } && test -s conftest$ac_exeext && {
15816 test "$cross_compiling" = yes ||
15817 $as_test_x conftest$ac_exeext
15818 }; then
15819 ac_cv_func_dlopen=yes
15820else
15821 $as_echo "$as_me: failed program was:" >&5
15822sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_cv_func_dlopen=no
15825fi
15826
15827rm -rf conftest.dSYM
15828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15829 conftest$ac_exeext conftest.$ac_ext
15830fi
15831{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15832$as_echo "$ac_cv_func_dlopen" >&6; }
15833if test "x$ac_cv_func_dlopen" = x""yes; then
15834 lt_cv_dlopen="dlopen"
15835else
15836 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15837$as_echo_n "checking for dlopen in -ldl... " >&6; }
15838if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15839 $as_echo_n "(cached) " >&6
15840else
15841 ac_check_lib_save_LIBS=$LIBS
15842LIBS="-ldl $LIBS"
15843cat >conftest.$ac_ext <<_ACEOF
15844/* confdefs.h. */
15845_ACEOF
15846cat confdefs.h >>conftest.$ac_ext
15847cat >>conftest.$ac_ext <<_ACEOF
15848/* end confdefs.h. */
15849
15850/* Override any GCC internal prototype to avoid an error.
15851 Use char because int might match the return type of a GCC
15852 builtin and then its argument prototype would still apply. */
15853#ifdef __cplusplus
15854extern "C"
15855#endif
15856char dlopen ();
15857int
15858main ()
15859{
15860return dlopen ();
15861 ;
15862 return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext conftest$ac_exeext
15866if { (ac_try="$ac_link"
15867case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872$as_echo "$ac_try_echo") >&5
15873 (eval "$ac_link") 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext && {
15883 test "$cross_compiling" = yes ||
15884 $as_test_x conftest$ac_exeext
15885 }; then
15886 ac_cv_lib_dl_dlopen=yes
15887else
15888 $as_echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891 ac_cv_lib_dl_dlopen=no
15892fi
15893
15894rm -rf conftest.dSYM
15895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15896 conftest$ac_exeext conftest.$ac_ext
15897LIBS=$ac_check_lib_save_LIBS
15898fi
15899{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15900$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15901if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15903else
15904 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15905$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15906if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15907 $as_echo_n "(cached) " >&6
15908else
15909 ac_check_lib_save_LIBS=$LIBS
15910LIBS="-lsvld $LIBS"
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917
15918/* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15921#ifdef __cplusplus
15922extern "C"
15923#endif
15924char dlopen ();
15925int
15926main ()
15927{
15928return dlopen ();
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext conftest$ac_exeext
15934if { (ac_try="$ac_link"
15935case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15938esac
15939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15940$as_echo "$ac_try_echo") >&5
15941 (eval "$ac_link") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest$ac_exeext && {
15951 test "$cross_compiling" = yes ||
15952 $as_test_x conftest$ac_exeext
15953 }; then
15954 ac_cv_lib_svld_dlopen=yes
15955else
15956 $as_echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 ac_cv_lib_svld_dlopen=no
15960fi
15961
15962rm -rf conftest.dSYM
15963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15964 conftest$ac_exeext conftest.$ac_ext
15965LIBS=$ac_check_lib_save_LIBS
15966fi
15967{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15968$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15969if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
15970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15971else
15972 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15973$as_echo_n "checking for dld_link in -ldld... " >&6; }
15974if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15975 $as_echo_n "(cached) " >&6
15976else
15977 ac_check_lib_save_LIBS=$LIBS
15978LIBS="-ldld $LIBS"
15979cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985
15986/* Override any GCC internal prototype to avoid an error.
15987 Use char because int might match the return type of a GCC
15988 builtin and then its argument prototype would still apply. */
15989#ifdef __cplusplus
15990extern "C"
15991#endif
15992char dld_link ();
15993int
15994main ()
15995{
15996return dld_link ();
15997 ;
15998 return 0;
15999}
16000_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext
16002if { (ac_try="$ac_link"
16003case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16006esac
16007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16008$as_echo "$ac_try_echo") >&5
16009 (eval "$ac_link") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && {
16016 test -z "$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 } && test -s conftest$ac_exeext && {
16019 test "$cross_compiling" = yes ||
16020 $as_test_x conftest$ac_exeext
16021 }; then
16022 ac_cv_lib_dld_dld_link=yes
16023else
16024 $as_echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 ac_cv_lib_dld_dld_link=no
16028fi
16029
16030rm -rf conftest.dSYM
16031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16032 conftest$ac_exeext conftest.$ac_ext
16033LIBS=$ac_check_lib_save_LIBS
16034fi
16035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16036$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16037if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
16038 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16039fi
16040
16041
16042fi
16043
16044
16045fi
16046
16047
16048fi
16049
16050
16051fi
16052
16053
16054fi
16055
16056 ;;
16057 esac
16058
16059 if test "x$lt_cv_dlopen" != xno; then
16060 enable_dlopen=yes
16061 else
16062 enable_dlopen=no
16063 fi
16064
16065 case $lt_cv_dlopen in
16066 dlopen)
16067 save_CPPFLAGS="$CPPFLAGS"
16068 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16069
16070 save_LDFLAGS="$LDFLAGS"
16071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16072
16073 save_LIBS="$LIBS"
16074 LIBS="$lt_cv_dlopen_libs $LIBS"
16075
16076 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16077$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16078if test "${lt_cv_dlopen_self+set}" = set; then
16079 $as_echo_n "(cached) " >&6
16080else
16081 if test "$cross_compiling" = yes; then :
16082 lt_cv_dlopen_self=cross
16083else
16084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16085 lt_status=$lt_dlunknown
16086 cat > conftest.$ac_ext <<_LT_EOF
cristy2e8b51d2009-10-17 18:26:15 +000016087#line 16087 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016088#include "confdefs.h"
16089
16090#if HAVE_DLFCN_H
16091#include <dlfcn.h>
16092#endif
16093
16094#include <stdio.h>
16095
16096#ifdef RTLD_GLOBAL
16097# define LT_DLGLOBAL RTLD_GLOBAL
16098#else
16099# ifdef DL_GLOBAL
16100# define LT_DLGLOBAL DL_GLOBAL
16101# else
16102# define LT_DLGLOBAL 0
16103# endif
16104#endif
16105
16106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16107 find out it does not work in some platform. */
16108#ifndef LT_DLLAZY_OR_NOW
16109# ifdef RTLD_LAZY
16110# define LT_DLLAZY_OR_NOW RTLD_LAZY
16111# else
16112# ifdef DL_LAZY
16113# define LT_DLLAZY_OR_NOW DL_LAZY
16114# else
16115# ifdef RTLD_NOW
16116# define LT_DLLAZY_OR_NOW RTLD_NOW
16117# else
16118# ifdef DL_NOW
16119# define LT_DLLAZY_OR_NOW DL_NOW
16120# else
16121# define LT_DLLAZY_OR_NOW 0
16122# endif
16123# endif
16124# endif
16125# endif
16126#endif
16127
16128void fnord() { int i=42;}
16129int main ()
16130{
16131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16132 int status = $lt_dlunknown;
16133
16134 if (self)
16135 {
16136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16138 /* dlclose (self); */
16139 }
16140 else
16141 puts (dlerror ());
16142
16143 return status;
16144}
16145_LT_EOF
16146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
16148 ac_status=$?
16149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16151 (./conftest; exit; ) >&5 2>/dev/null
16152 lt_status=$?
16153 case x$lt_status in
16154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16156 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16157 esac
16158 else :
16159 # compilation failed
16160 lt_cv_dlopen_self=no
16161 fi
16162fi
16163rm -fr conftest*
16164
16165
16166fi
16167{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16168$as_echo "$lt_cv_dlopen_self" >&6; }
16169
16170 if test "x$lt_cv_dlopen_self" = xyes; then
16171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16172 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16173$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16174if test "${lt_cv_dlopen_self_static+set}" = set; then
16175 $as_echo_n "(cached) " >&6
16176else
16177 if test "$cross_compiling" = yes; then :
16178 lt_cv_dlopen_self_static=cross
16179else
16180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16181 lt_status=$lt_dlunknown
16182 cat > conftest.$ac_ext <<_LT_EOF
cristy2e8b51d2009-10-17 18:26:15 +000016183#line 16183 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016184#include "confdefs.h"
16185
16186#if HAVE_DLFCN_H
16187#include <dlfcn.h>
16188#endif
16189
16190#include <stdio.h>
16191
16192#ifdef RTLD_GLOBAL
16193# define LT_DLGLOBAL RTLD_GLOBAL
16194#else
16195# ifdef DL_GLOBAL
16196# define LT_DLGLOBAL DL_GLOBAL
16197# else
16198# define LT_DLGLOBAL 0
16199# endif
16200#endif
16201
16202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16203 find out it does not work in some platform. */
16204#ifndef LT_DLLAZY_OR_NOW
16205# ifdef RTLD_LAZY
16206# define LT_DLLAZY_OR_NOW RTLD_LAZY
16207# else
16208# ifdef DL_LAZY
16209# define LT_DLLAZY_OR_NOW DL_LAZY
16210# else
16211# ifdef RTLD_NOW
16212# define LT_DLLAZY_OR_NOW RTLD_NOW
16213# else
16214# ifdef DL_NOW
16215# define LT_DLLAZY_OR_NOW DL_NOW
16216# else
16217# define LT_DLLAZY_OR_NOW 0
16218# endif
16219# endif
16220# endif
16221# endif
16222#endif
16223
16224void fnord() { int i=42;}
16225int main ()
16226{
16227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16228 int status = $lt_dlunknown;
16229
16230 if (self)
16231 {
16232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16233 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16234 /* dlclose (self); */
16235 }
16236 else
16237 puts (dlerror ());
16238
16239 return status;
16240}
16241_LT_EOF
16242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16243 (eval $ac_link) 2>&5
16244 ac_status=$?
16245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16247 (./conftest; exit; ) >&5 2>/dev/null
16248 lt_status=$?
16249 case x$lt_status in
16250 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16251 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16252 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16253 esac
16254 else :
16255 # compilation failed
16256 lt_cv_dlopen_self_static=no
16257 fi
16258fi
16259rm -fr conftest*
16260
16261
16262fi
16263{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16264$as_echo "$lt_cv_dlopen_self_static" >&6; }
16265 fi
16266
16267 CPPFLAGS="$save_CPPFLAGS"
16268 LDFLAGS="$save_LDFLAGS"
16269 LIBS="$save_LIBS"
16270 ;;
16271 esac
16272
16273 case $lt_cv_dlopen_self in
16274 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16275 *) enable_dlopen_self=unknown ;;
16276 esac
16277
16278 case $lt_cv_dlopen_self_static in
16279 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16280 *) enable_dlopen_self_static=unknown ;;
16281 esac
16282fi
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300striplib=
16301old_striplib=
16302{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16303$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16304if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16305 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16306 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16307 { $as_echo "$as_me:$LINENO: result: yes" >&5
16308$as_echo "yes" >&6; }
16309else
16310# FIXME - insert some real tests, host_os isn't really good enough
16311 case $host_os in
16312 darwin*)
16313 if test -n "$STRIP" ; then
16314 striplib="$STRIP -x"
16315 old_striplib="$STRIP -S"
16316 { $as_echo "$as_me:$LINENO: result: yes" >&5
16317$as_echo "yes" >&6; }
16318 else
16319 { $as_echo "$as_me:$LINENO: result: no" >&5
16320$as_echo "no" >&6; }
16321 fi
16322 ;;
16323 *)
16324 { $as_echo "$as_me:$LINENO: result: no" >&5
16325$as_echo "no" >&6; }
16326 ;;
16327 esac
16328fi
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341 # Report which library types will actually be built
16342 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16343$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16344 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16345$as_echo "$can_build_shared" >&6; }
16346
16347 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16348$as_echo_n "checking whether to build shared libraries... " >&6; }
16349 test "$can_build_shared" = "no" && enable_shared=no
16350
16351 # On AIX, shared libraries and static libraries use the same namespace, and
16352 # are all built from PIC.
16353 case $host_os in
16354 aix3*)
16355 test "$enable_shared" = yes && enable_static=no
16356 if test -n "$RANLIB"; then
16357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16358 postinstall_cmds='$RANLIB $lib'
16359 fi
16360 ;;
16361
16362 aix[4-9]*)
16363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16364 test "$enable_shared" = yes && enable_static=no
16365 fi
16366 ;;
16367 esac
16368 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16369$as_echo "$enable_shared" >&6; }
16370
16371 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16372$as_echo_n "checking whether to build static libraries... " >&6; }
16373 # Make sure either enable_shared or enable_static is yes.
16374 test "$enable_shared" = yes || enable_static=yes
16375 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16376$as_echo "$enable_static" >&6; }
16377
16378
16379
16380
16381fi
16382ac_ext=c
16383ac_cpp='$CPP $CPPFLAGS'
16384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16386ac_compiler_gnu=$ac_cv_c_compiler_gnu
16387
16388CC="$lt_save_CC"
16389
16390
16391ac_ext=cpp
16392ac_cpp='$CXXCPP $CPPFLAGS'
16393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16396
16397archive_cmds_need_lc_CXX=no
16398allow_undefined_flag_CXX=
16399always_export_symbols_CXX=no
16400archive_expsym_cmds_CXX=
16401compiler_needs_object_CXX=no
16402export_dynamic_flag_spec_CXX=
16403hardcode_direct_CXX=no
16404hardcode_direct_absolute_CXX=no
16405hardcode_libdir_flag_spec_CXX=
16406hardcode_libdir_flag_spec_ld_CXX=
16407hardcode_libdir_separator_CXX=
16408hardcode_minus_L_CXX=no
16409hardcode_shlibpath_var_CXX=unsupported
16410hardcode_automatic_CXX=no
16411inherit_rpath_CXX=no
16412module_cmds_CXX=
16413module_expsym_cmds_CXX=
16414link_all_deplibs_CXX=unknown
16415old_archive_cmds_CXX=$old_archive_cmds
16416no_undefined_flag_CXX=
16417whole_archive_flag_spec_CXX=
16418enable_shared_with_static_runtimes_CXX=no
16419
16420# Source file extension for C++ test sources.
16421ac_ext=cpp
16422
16423# Object file extension for compiled C++ test sources.
16424objext=o
16425objext_CXX=$objext
16426
16427# No sense in running all these tests if we already determined that
16428# the CXX compiler isn't working. Some variables (like enable_shared)
16429# are currently assumed to apply to all compilers on this platform,
16430# and will be corrupted by setting them based on a non-working compiler.
16431if test "$_lt_caught_CXX_error" != yes; then
16432 # Code to be used in simple compile tests
16433 lt_simple_compile_test_code="int some_variable = 0;"
16434
16435 # Code to be used in simple link tests
16436 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16437
16438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16439
16440
16441
16442
16443
16444
16445# If no C compiler was specified, use CC.
16446LTCC=${LTCC-"$CC"}
16447
16448# If no C compiler flags were specified, use CFLAGS.
16449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16450
16451# Allow CC to be a program name with arguments.
16452compiler=$CC
16453
16454
16455 # save warnings/boilerplate of simple test code
16456 ac_outfile=conftest.$ac_objext
16457echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16458eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16459_lt_compiler_boilerplate=`cat conftest.err`
16460$RM conftest*
16461
16462 ac_outfile=conftest.$ac_objext
16463echo "$lt_simple_link_test_code" >conftest.$ac_ext
16464eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16465_lt_linker_boilerplate=`cat conftest.err`
16466$RM -r conftest*
16467
16468
16469 # Allow CC to be a program name with arguments.
16470 lt_save_CC=$CC
16471 lt_save_LD=$LD
16472 lt_save_GCC=$GCC
16473 GCC=$GXX
16474 lt_save_with_gnu_ld=$with_gnu_ld
16475 lt_save_path_LD=$lt_cv_path_LD
16476 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16477 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16478 else
16479 $as_unset lt_cv_prog_gnu_ld
16480 fi
16481 if test -n "${lt_cv_path_LDCXX+set}"; then
16482 lt_cv_path_LD=$lt_cv_path_LDCXX
16483 else
16484 $as_unset lt_cv_path_LD
16485 fi
16486 test -z "${LDCXX+set}" || LD=$LDCXX
16487 CC=${CXX-"c++"}
16488 compiler=$CC
16489 compiler_CXX=$CC
16490 for cc_temp in $compiler""; do
16491 case $cc_temp in
16492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16494 \-*) ;;
16495 *) break;;
16496 esac
16497done
16498cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16499
16500
16501 if test -n "$compiler"; then
16502 # We don't want -fno-exception when compiling C++ code, so set the
16503 # no_builtin_flag separately
16504 if test "$GXX" = yes; then
16505 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16506 else
16507 lt_prog_compiler_no_builtin_flag_CXX=
16508 fi
16509
16510 if test "$GXX" = yes; then
16511 # Set up default GNU C++ configuration
16512
16513
16514
16515# Check whether --with-gnu-ld was given.
16516if test "${with_gnu_ld+set}" = set; then
16517 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16518else
16519 with_gnu_ld=no
16520fi
16521
16522ac_prog=ld
16523if test "$GCC" = yes; then
16524 # Check if gcc -print-prog-name=ld gives a path.
16525 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16526$as_echo_n "checking for ld used by $CC... " >&6; }
16527 case $host in
16528 *-*-mingw*)
16529 # gcc leaves a trailing carriage return which upsets mingw
16530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16531 *)
16532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16533 esac
16534 case $ac_prog in
16535 # Accept absolute paths.
16536 [\\/]* | ?:[\\/]*)
16537 re_direlt='/[^/][^/]*/\.\./'
16538 # Canonicalize the pathname of ld
16539 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16540 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16541 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16542 done
16543 test -z "$LD" && LD="$ac_prog"
16544 ;;
16545 "")
16546 # If it fails, then pretend we aren't using GCC.
16547 ac_prog=ld
16548 ;;
16549 *)
16550 # If it is relative, then search for the first ld in PATH.
16551 with_gnu_ld=unknown
16552 ;;
16553 esac
16554elif test "$with_gnu_ld" = yes; then
16555 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
16556$as_echo_n "checking for GNU ld... " >&6; }
16557else
16558 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16559$as_echo_n "checking for non-GNU ld... " >&6; }
16560fi
16561if test "${lt_cv_path_LD+set}" = set; then
16562 $as_echo_n "(cached) " >&6
16563else
16564 if test -z "$LD"; then
16565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16566 for ac_dir in $PATH; do
16567 IFS="$lt_save_ifs"
16568 test -z "$ac_dir" && ac_dir=.
16569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16570 lt_cv_path_LD="$ac_dir/$ac_prog"
16571 # Check to see if the program is GNU ld. I'd rather use --version,
16572 # but apparently some variants of GNU ld only accept -v.
16573 # Break only if it was the GNU/non-GNU ld that we prefer.
16574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16575 *GNU* | *'with BFD'*)
16576 test "$with_gnu_ld" != no && break
16577 ;;
16578 *)
16579 test "$with_gnu_ld" != yes && break
16580 ;;
16581 esac
16582 fi
16583 done
16584 IFS="$lt_save_ifs"
16585else
16586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16587fi
16588fi
16589
16590LD="$lt_cv_path_LD"
16591if test -n "$LD"; then
16592 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16593$as_echo "$LD" >&6; }
16594else
16595 { $as_echo "$as_me:$LINENO: result: no" >&5
16596$as_echo "no" >&6; }
16597fi
16598test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16599$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16600 { (exit 1); exit 1; }; }
16601{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16602$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16603if test "${lt_cv_prog_gnu_ld+set}" = set; then
16604 $as_echo_n "(cached) " >&6
16605else
16606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16607case `$LD -v 2>&1 </dev/null` in
16608*GNU* | *'with BFD'*)
16609 lt_cv_prog_gnu_ld=yes
16610 ;;
16611*)
16612 lt_cv_prog_gnu_ld=no
16613 ;;
16614esac
16615fi
16616{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16617$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16618with_gnu_ld=$lt_cv_prog_gnu_ld
16619
16620
16621
16622
16623
16624
16625
16626 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16627 # archiving commands below assume that GNU ld is being used.
16628 if test "$with_gnu_ld" = yes; then
16629 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630 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'
16631
16632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16634
16635 # If archive_cmds runs LD, not CC, wlarc should be empty
16636 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16637 # investigate it a little bit more. (MM)
16638 wlarc='${wl}'
16639
16640 # ancient GNU ld didn't support --whole-archive et. al.
16641 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16642 $GREP 'no-whole-archive' > /dev/null; then
16643 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16644 else
16645 whole_archive_flag_spec_CXX=
16646 fi
16647 else
16648 with_gnu_ld=no
16649 wlarc=
16650
16651 # A generic and very simple default shared library creation
16652 # command for GNU C++ for the case where it uses the native
16653 # linker, instead of GNU ld. If possible, this setting should
16654 # overridden to take advantage of the native linker features on
16655 # the platform it is being used on.
16656 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16657 fi
16658
16659 # Commands to make compiler produce verbose output that lists
16660 # what "hidden" libraries, object files and flags are used when
16661 # linking a shared library.
16662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16663
16664 else
16665 GXX=no
16666 with_gnu_ld=no
16667 wlarc=
16668 fi
16669
16670 # PORTME: fill in a description of your system's C++ link characteristics
16671 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16672$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16673 ld_shlibs_CXX=yes
16674 case $host_os in
16675 aix3*)
16676 # FIXME: insert proper C++ library support
16677 ld_shlibs_CXX=no
16678 ;;
16679 aix[4-9]*)
16680 if test "$host_cpu" = ia64; then
16681 # On IA64, the linker does run time linking by default, so we don't
16682 # have to do anything special.
16683 aix_use_runtimelinking=no
16684 exp_sym_flag='-Bexport'
16685 no_entry_flag=""
16686 else
16687 aix_use_runtimelinking=no
16688
16689 # Test if we are trying to use run time linking or normal
16690 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16691 # need to do runtime linking.
16692 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16693 for ld_flag in $LDFLAGS; do
16694 case $ld_flag in
16695 *-brtl*)
16696 aix_use_runtimelinking=yes
16697 break
16698 ;;
16699 esac
16700 done
16701 ;;
16702 esac
16703
16704 exp_sym_flag='-bexport'
16705 no_entry_flag='-bnoentry'
16706 fi
16707
16708 # When large executables or shared objects are built, AIX ld can
16709 # have problems creating the table of contents. If linking a library
16710 # or program results in "error TOC overflow" add -mminimal-toc to
16711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16713
16714 archive_cmds_CXX=''
16715 hardcode_direct_CXX=yes
16716 hardcode_direct_absolute_CXX=yes
16717 hardcode_libdir_separator_CXX=':'
16718 link_all_deplibs_CXX=yes
16719 file_list_spec_CXX='${wl}-f,'
16720
16721 if test "$GXX" = yes; then
16722 case $host_os in aix4.[012]|aix4.[012].*)
16723 # We only want to do this on AIX 4.2 and lower, the check
16724 # below for broken collect2 doesn't work under 4.3+
16725 collect2name=`${CC} -print-prog-name=collect2`
16726 if test -f "$collect2name" &&
16727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16728 then
16729 # We have reworked collect2
16730 :
16731 else
16732 # We have old collect2
16733 hardcode_direct_CXX=unsupported
16734 # It fails to find uninstalled libraries when the uninstalled
16735 # path is not listed in the libpath. Setting hardcode_minus_L
16736 # to unsupported forces relinking
16737 hardcode_minus_L_CXX=yes
16738 hardcode_libdir_flag_spec_CXX='-L$libdir'
16739 hardcode_libdir_separator_CXX=
16740 fi
16741 esac
16742 shared_flag='-shared'
16743 if test "$aix_use_runtimelinking" = yes; then
16744 shared_flag="$shared_flag "'${wl}-G'
16745 fi
16746 else
16747 # not using gcc
16748 if test "$host_cpu" = ia64; then
16749 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16750 # chokes on -Wl,-G. The following line is correct:
16751 shared_flag='-G'
16752 else
16753 if test "$aix_use_runtimelinking" = yes; then
16754 shared_flag='${wl}-G'
16755 else
16756 shared_flag='${wl}-bM:SRE'
16757 fi
16758 fi
16759 fi
16760
16761 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16762 # It seems that -bexpall does not export symbols beginning with
16763 # underscore (_), so it is better to generate a list of symbols to
16764 # export.
16765 always_export_symbols_CXX=yes
16766 if test "$aix_use_runtimelinking" = yes; then
16767 # Warning - without using the other runtime loading flags (-brtl),
16768 # -berok will link without error, but may produce a broken library.
16769 allow_undefined_flag_CXX='-berok'
16770 # Determine the default libpath from the value encoded in an empty
16771 # executable.
16772 cat >conftest.$ac_ext <<_ACEOF
16773/* confdefs.h. */
16774_ACEOF
16775cat confdefs.h >>conftest.$ac_ext
16776cat >>conftest.$ac_ext <<_ACEOF
16777/* end confdefs.h. */
16778
16779int
16780main ()
16781{
16782
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext conftest$ac_exeext
16788if { (ac_try="$ac_link"
16789case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792esac
16793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16794$as_echo "$ac_try_echo") >&5
16795 (eval "$ac_link") 2>conftest.er1
16796 ac_status=$?
16797 grep -v '^ *+' conftest.er1 >conftest.err
16798 rm -f conftest.er1
16799 cat conftest.err >&5
16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } && {
16802 test -z "$ac_cxx_werror_flag" ||
16803 test ! -s conftest.err
16804 } && test -s conftest$ac_exeext && {
16805 test "$cross_compiling" = yes ||
16806 $as_test_x conftest$ac_exeext
16807 }; then
16808
16809lt_aix_libpath_sed='
16810 /Import File Strings/,/^$/ {
16811 /^0/ {
16812 s/^0 *\(.*\)$/\1/
16813 p
16814 }
16815 }'
16816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16817# Check for a 64-bit object if we didn't find anything.
16818if test -z "$aix_libpath"; then
16819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16820fi
16821else
16822 $as_echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
16825
16826fi
16827
16828rm -rf conftest.dSYM
16829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16832
16833 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16834
16835 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"
16836 else
16837 if test "$host_cpu" = ia64; then
16838 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16839 allow_undefined_flag_CXX="-z nodefs"
16840 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"
16841 else
16842 # Determine the default libpath from the value encoded in an
16843 # empty executable.
16844 cat >conftest.$ac_ext <<_ACEOF
16845/* confdefs.h. */
16846_ACEOF
16847cat confdefs.h >>conftest.$ac_ext
16848cat >>conftest.$ac_ext <<_ACEOF
16849/* end confdefs.h. */
16850
16851int
16852main ()
16853{
16854
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext conftest$ac_exeext
16860if { (ac_try="$ac_link"
16861case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866$as_echo "$ac_try_echo") >&5
16867 (eval "$ac_link") 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } && {
16874 test -z "$ac_cxx_werror_flag" ||
16875 test ! -s conftest.err
16876 } && test -s conftest$ac_exeext && {
16877 test "$cross_compiling" = yes ||
16878 $as_test_x conftest$ac_exeext
16879 }; then
16880
16881lt_aix_libpath_sed='
16882 /Import File Strings/,/^$/ {
16883 /^0/ {
16884 s/^0 *\(.*\)$/\1/
16885 p
16886 }
16887 }'
16888aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16889# Check for a 64-bit object if we didn't find anything.
16890if test -z "$aix_libpath"; then
16891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16892fi
16893else
16894 $as_echo "$as_me: failed program was:" >&5
16895sed 's/^/| /' conftest.$ac_ext >&5
16896
16897
16898fi
16899
16900rm -rf conftest.dSYM
16901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16902 conftest$ac_exeext conftest.$ac_ext
16903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16904
16905 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16906 # Warning - without using the other run time loading flags,
16907 # -berok will link without error, but may produce a broken library.
16908 no_undefined_flag_CXX=' ${wl}-bernotok'
16909 allow_undefined_flag_CXX=' ${wl}-berok'
16910 # Exported symbols can be pulled into shared objects from archives
16911 whole_archive_flag_spec_CXX='$convenience'
16912 archive_cmds_need_lc_CXX=yes
16913 # This is similar to how AIX traditionally builds its shared
16914 # libraries.
16915 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'
16916 fi
16917 fi
16918 ;;
16919
16920 beos*)
16921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16922 allow_undefined_flag_CXX=unsupported
16923 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16924 # support --undefined. This deserves some investigation. FIXME
16925 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16926 else
16927 ld_shlibs_CXX=no
16928 fi
16929 ;;
16930
16931 chorus*)
16932 case $cc_basename in
16933 *)
16934 # FIXME: insert proper C++ library support
16935 ld_shlibs_CXX=no
16936 ;;
16937 esac
16938 ;;
16939
16940 cygwin* | mingw* | pw32* | cegcc*)
16941 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16942 # as there is no search path for DLLs.
16943 hardcode_libdir_flag_spec_CXX='-L$libdir'
16944 allow_undefined_flag_CXX=unsupported
16945 always_export_symbols_CXX=no
16946 enable_shared_with_static_runtimes_CXX=yes
16947
16948 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16949 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'
16950 # If the export-symbols file already is a .def file (1st line
16951 # is EXPORTS), use it as is; otherwise, prepend...
16952 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16953 cp $export_symbols $output_objdir/$soname.def;
16954 else
16955 echo EXPORTS > $output_objdir/$soname.def;
16956 cat $export_symbols >> $output_objdir/$soname.def;
16957 fi~
16958 $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'
16959 else
16960 ld_shlibs_CXX=no
16961 fi
16962 ;;
16963 darwin* | rhapsody*)
16964
16965
16966 archive_cmds_need_lc_CXX=no
16967 hardcode_direct_CXX=no
16968 hardcode_automatic_CXX=yes
16969 hardcode_shlibpath_var_CXX=unsupported
16970 whole_archive_flag_spec_CXX=''
16971 link_all_deplibs_CXX=yes
16972 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16973 case $cc_basename in
16974 ifort*) _lt_dar_can_shared=yes ;;
16975 *) _lt_dar_can_shared=$GCC ;;
16976 esac
16977 if test "$_lt_dar_can_shared" = "yes"; then
16978 output_verbose_link_cmd=echo
16979 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}"
16980 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16981 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}"
16982 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}"
16983 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16984 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}"
16985 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}"
16986 fi
16987
16988 else
16989 ld_shlibs_CXX=no
16990 fi
16991
16992 ;;
16993
16994 dgux*)
16995 case $cc_basename in
16996 ec++*)
16997 # FIXME: insert proper C++ library support
16998 ld_shlibs_CXX=no
16999 ;;
17000 ghcx*)
17001 # Green Hills C++ Compiler
17002 # FIXME: insert proper C++ library support
17003 ld_shlibs_CXX=no
17004 ;;
17005 *)
17006 # FIXME: insert proper C++ library support
17007 ld_shlibs_CXX=no
17008 ;;
17009 esac
17010 ;;
17011
17012 freebsd[12]*)
17013 # C++ shared libraries reported to be fairly broken before
17014 # switch to ELF
17015 ld_shlibs_CXX=no
17016 ;;
17017
17018 freebsd-elf*)
17019 archive_cmds_need_lc_CXX=no
17020 ;;
17021
17022 freebsd* | dragonfly*)
17023 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17024 # conventions
17025 ld_shlibs_CXX=yes
17026 ;;
17027
17028 gnu*)
17029 ;;
17030
17031 hpux9*)
17032 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17033 hardcode_libdir_separator_CXX=:
17034 export_dynamic_flag_spec_CXX='${wl}-E'
17035 hardcode_direct_CXX=yes
17036 hardcode_minus_L_CXX=yes # Not in the search PATH,
17037 # but as the default
17038 # location of the library.
17039
17040 case $cc_basename in
17041 CC*)
17042 # FIXME: insert proper C++ library support
17043 ld_shlibs_CXX=no
17044 ;;
17045 aCC*)
17046 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'
17047 # Commands to make compiler produce verbose output that lists
17048 # what "hidden" libraries, object files and flags are used when
17049 # linking a shared library.
17050 #
17051 # There doesn't appear to be a way to prevent this compiler from
17052 # explicitly linking system object files so we need to strip them
17053 # from the output so that they don't get included in the library
17054 # dependencies.
17055 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'
17056 ;;
17057 *)
17058 if test "$GXX" = yes; then
17059 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'
17060 else
17061 # FIXME: insert proper C++ library support
17062 ld_shlibs_CXX=no
17063 fi
17064 ;;
17065 esac
17066 ;;
17067
17068 hpux10*|hpux11*)
17069 if test $with_gnu_ld = no; then
17070 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17071 hardcode_libdir_separator_CXX=:
17072
17073 case $host_cpu in
17074 hppa*64*|ia64*)
17075 ;;
17076 *)
17077 export_dynamic_flag_spec_CXX='${wl}-E'
17078 ;;
17079 esac
17080 fi
17081 case $host_cpu in
17082 hppa*64*|ia64*)
17083 hardcode_direct_CXX=no
17084 hardcode_shlibpath_var_CXX=no
17085 ;;
17086 *)
17087 hardcode_direct_CXX=yes
17088 hardcode_direct_absolute_CXX=yes
17089 hardcode_minus_L_CXX=yes # Not in the search PATH,
17090 # but as the default
17091 # location of the library.
17092 ;;
17093 esac
17094
17095 case $cc_basename in
17096 CC*)
17097 # FIXME: insert proper C++ library support
17098 ld_shlibs_CXX=no
17099 ;;
17100 aCC*)
17101 case $host_cpu in
17102 hppa*64*)
17103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17104 ;;
17105 ia64*)
17106 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17107 ;;
17108 *)
17109 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17110 ;;
17111 esac
17112 # Commands to make compiler produce verbose output that lists
17113 # what "hidden" libraries, object files and flags are used when
17114 # linking a shared library.
17115 #
17116 # There doesn't appear to be a way to prevent this compiler from
17117 # explicitly linking system object files so we need to strip them
17118 # from the output so that they don't get included in the library
17119 # dependencies.
17120 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'
17121 ;;
17122 *)
17123 if test "$GXX" = yes; then
17124 if test $with_gnu_ld = no; then
17125 case $host_cpu in
17126 hppa*64*)
17127 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17128 ;;
17129 ia64*)
17130 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17131 ;;
17132 *)
17133 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'
17134 ;;
17135 esac
17136 fi
17137 else
17138 # FIXME: insert proper C++ library support
17139 ld_shlibs_CXX=no
17140 fi
17141 ;;
17142 esac
17143 ;;
17144
17145 interix[3-9]*)
17146 hardcode_direct_CXX=no
17147 hardcode_shlibpath_var_CXX=no
17148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17149 export_dynamic_flag_spec_CXX='${wl}-E'
17150 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17151 # Instead, shared libraries are loaded at an image base (0x10000000 by
17152 # default) and relocated if they conflict, which is a slow very memory
17153 # consuming and fragmenting process. To avoid this, we pick a random,
17154 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17155 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17156 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'
17157 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'
17158 ;;
17159 irix5* | irix6*)
17160 case $cc_basename in
17161 CC*)
17162 # SGI C++
17163 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'
17164
17165 # Archives containing C++ object files must be created using
17166 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17167 # necessary to make sure instantiated templates are included
17168 # in the archive.
17169 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17170 ;;
17171 *)
17172 if test "$GXX" = yes; then
17173 if test "$with_gnu_ld" = no; then
17174 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'
17175 else
17176 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'
17177 fi
17178 fi
17179 link_all_deplibs_CXX=yes
17180 ;;
17181 esac
17182 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17183 hardcode_libdir_separator_CXX=:
17184 inherit_rpath_CXX=yes
17185 ;;
17186
17187 linux* | k*bsd*-gnu)
17188 case $cc_basename in
17189 KCC*)
17190 # Kuck and Associates, Inc. (KAI) C++ Compiler
17191
17192 # KCC will only create a shared library if the output file
17193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17194 # to its proper name (with version) after linking.
17195 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'
17196 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'
17197 # Commands to make compiler produce verbose output that lists
17198 # what "hidden" libraries, object files and flags are used when
17199 # linking a shared library.
17200 #
17201 # There doesn't appear to be a way to prevent this compiler from
17202 # explicitly linking system object files so we need to strip them
17203 # from the output so that they don't get included in the library
17204 # dependencies.
17205 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'
17206
17207 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17209
17210 # Archives containing C++ object files must be created using
17211 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17212 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17213 ;;
17214 icpc* | ecpc* )
17215 # Intel C++
17216 with_gnu_ld=yes
17217 # version 8.0 and above of icpc choke on multiply defined symbols
17218 # if we add $predep_objects and $postdep_objects, however 7.1 and
17219 # earlier do not add the objects themselves.
17220 case `$CC -V 2>&1` in
17221 *"Version 7."*)
17222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17223 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'
17224 ;;
17225 *) # Version 8.0 or newer
17226 tmp_idyn=
17227 case $host_cpu in
17228 ia64*) tmp_idyn=' -i_dynamic';;
17229 esac
17230 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17231 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'
17232 ;;
17233 esac
17234 archive_cmds_need_lc_CXX=no
17235 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17236 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17237 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17238 ;;
17239 pgCC* | pgcpp*)
17240 # Portland Group C++ compiler
17241 case `$CC -V` in
17242 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17243 prelink_cmds_CXX='tpldir=Template.dir~
17244 rm -rf $tpldir~
17245 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17246 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17247 old_archive_cmds_CXX='tpldir=Template.dir~
17248 rm -rf $tpldir~
17249 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17250 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17251 $RANLIB $oldlib'
17252 archive_cmds_CXX='tpldir=Template.dir~
17253 rm -rf $tpldir~
17254 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17255 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17256 archive_expsym_cmds_CXX='tpldir=Template.dir~
17257 rm -rf $tpldir~
17258 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17259 $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'
17260 ;;
17261 *) # Version 6 will use weak symbols
17262 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17263 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'
17264 ;;
17265 esac
17266
17267 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17269 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'
17270 ;;
17271 cxx*)
17272 # Compaq C++
17273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17274 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'
17275
17276 runpath_var=LD_RUN_PATH
17277 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17278 hardcode_libdir_separator_CXX=:
17279
17280 # Commands to make compiler produce verbose output that lists
17281 # what "hidden" libraries, object files and flags are used when
17282 # linking a shared library.
17283 #
17284 # There doesn't appear to be a way to prevent this compiler from
17285 # explicitly linking system object files so we need to strip them
17286 # from the output so that they don't get included in the library
17287 # dependencies.
17288 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'
17289 ;;
17290 xl*)
17291 # IBM XL 8.0 on PPC, with GNU ld
17292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17293 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17294 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17295 if test "x$supports_anon_versioning" = xyes; then
17296 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17298 echo "local: *; };" >> $output_objdir/$libname.ver~
17299 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17300 fi
17301 ;;
17302 *)
17303 case `$CC -V 2>&1 | sed 5q` in
17304 *Sun\ C*)
17305 # Sun C++ 5.9
17306 no_undefined_flag_CXX=' -zdefs'
17307 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17308 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'
17309 hardcode_libdir_flag_spec_CXX='-R$libdir'
17310 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'
17311 compiler_needs_object_CXX=yes
17312
17313 # Not sure whether something based on
17314 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17315 # would be better.
17316 output_verbose_link_cmd='echo'
17317
17318 # Archives containing C++ object files must be created using
17319 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17320 # necessary to make sure instantiated templates are included
17321 # in the archive.
17322 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17323 ;;
17324 esac
17325 ;;
17326 esac
17327 ;;
17328
17329 lynxos*)
17330 # FIXME: insert proper C++ library support
17331 ld_shlibs_CXX=no
17332 ;;
17333
17334 m88k*)
17335 # FIXME: insert proper C++ library support
17336 ld_shlibs_CXX=no
17337 ;;
17338
17339 mvs*)
17340 case $cc_basename in
17341 cxx*)
17342 # FIXME: insert proper C++ library support
17343 ld_shlibs_CXX=no
17344 ;;
17345 *)
17346 # FIXME: insert proper C++ library support
17347 ld_shlibs_CXX=no
17348 ;;
17349 esac
17350 ;;
17351
17352 netbsd*)
17353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17354 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17355 wlarc=
17356 hardcode_libdir_flag_spec_CXX='-R$libdir'
17357 hardcode_direct_CXX=yes
17358 hardcode_shlibpath_var_CXX=no
17359 fi
17360 # Workaround some broken pre-1.5 toolchains
17361 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17362 ;;
17363
17364 *nto* | *qnx*)
17365 ld_shlibs_CXX=yes
17366 ;;
17367
17368 openbsd2*)
17369 # C++ shared libraries are fairly broken
17370 ld_shlibs_CXX=no
17371 ;;
17372
17373 openbsd*)
17374 if test -f /usr/libexec/ld.so; then
17375 hardcode_direct_CXX=yes
17376 hardcode_shlibpath_var_CXX=no
17377 hardcode_direct_absolute_CXX=yes
17378 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17381 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17382 export_dynamic_flag_spec_CXX='${wl}-E'
17383 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17384 fi
17385 output_verbose_link_cmd=echo
17386 else
17387 ld_shlibs_CXX=no
17388 fi
17389 ;;
17390
17391 osf3* | osf4* | osf5*)
17392 case $cc_basename in
17393 KCC*)
17394 # Kuck and Associates, Inc. (KAI) C++ Compiler
17395
17396 # KCC will only create a shared library if the output file
17397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17398 # to its proper name (with version) after linking.
17399 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'
17400
17401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17402 hardcode_libdir_separator_CXX=:
17403
17404 # Archives containing C++ object files must be created using
17405 # the KAI C++ compiler.
17406 case $host in
17407 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17408 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17409 esac
17410 ;;
17411 RCC*)
17412 # Rational C++ 2.4.1
17413 # FIXME: insert proper C++ library support
17414 ld_shlibs_CXX=no
17415 ;;
17416 cxx*)
17417 case $host in
17418 osf3*)
17419 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17420 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'
17421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17422 ;;
17423 *)
17424 allow_undefined_flag_CXX=' -expect_unresolved \*'
17425 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'
17426 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17427 echo "-hidden">> $lib.exp~
17428 $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~
17429 $RM $lib.exp'
17430 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17431 ;;
17432 esac
17433
17434 hardcode_libdir_separator_CXX=:
17435
17436 # Commands to make compiler produce verbose output that lists
17437 # what "hidden" libraries, object files and flags are used when
17438 # linking a shared library.
17439 #
17440 # There doesn't appear to be a way to prevent this compiler from
17441 # explicitly linking system object files so we need to strip them
17442 # from the output so that they don't get included in the library
17443 # dependencies.
17444 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'
17445 ;;
17446 *)
17447 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17448 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17449 case $host in
17450 osf3*)
17451 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'
17452 ;;
17453 *)
17454 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'
17455 ;;
17456 esac
17457
17458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17459 hardcode_libdir_separator_CXX=:
17460
17461 # Commands to make compiler produce verbose output that lists
17462 # what "hidden" libraries, object files and flags are used when
17463 # linking a shared library.
17464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17465
17466 else
17467 # FIXME: insert proper C++ library support
17468 ld_shlibs_CXX=no
17469 fi
17470 ;;
17471 esac
17472 ;;
17473
17474 psos*)
17475 # FIXME: insert proper C++ library support
17476 ld_shlibs_CXX=no
17477 ;;
17478
17479 sunos4*)
17480 case $cc_basename in
17481 CC*)
17482 # Sun C++ 4.x
17483 # FIXME: insert proper C++ library support
17484 ld_shlibs_CXX=no
17485 ;;
17486 lcc*)
17487 # Lucid
17488 # FIXME: insert proper C++ library support
17489 ld_shlibs_CXX=no
17490 ;;
17491 *)
17492 # FIXME: insert proper C++ library support
17493 ld_shlibs_CXX=no
17494 ;;
17495 esac
17496 ;;
17497
17498 solaris*)
17499 case $cc_basename in
17500 CC*)
17501 # Sun C++ 4.2, 5.x and Centerline C++
17502 archive_cmds_need_lc_CXX=yes
17503 no_undefined_flag_CXX=' -zdefs'
17504 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17506 $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'
17507
17508 hardcode_libdir_flag_spec_CXX='-R$libdir'
17509 hardcode_shlibpath_var_CXX=no
17510 case $host_os in
17511 solaris2.[0-5] | solaris2.[0-5].*) ;;
17512 *)
17513 # The compiler driver will combine and reorder linker options,
17514 # but understands `-z linker_flag'.
17515 # Supported since Solaris 2.6 (maybe 2.5.1?)
17516 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17517 ;;
17518 esac
17519 link_all_deplibs_CXX=yes
17520
17521 output_verbose_link_cmd='echo'
17522
17523 # Archives containing C++ object files must be created using
17524 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17525 # necessary to make sure instantiated templates are included
17526 # in the archive.
17527 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17528 ;;
17529 gcx*)
17530 # Green Hills C++ Compiler
17531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17532
17533 # The C++ compiler must be used to create the archive.
17534 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17535 ;;
17536 *)
17537 # GNU C++ compiler with Solaris linker
17538 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17539 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17540 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17541 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17542 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17543 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17544
17545 # Commands to make compiler produce verbose output that lists
17546 # what "hidden" libraries, object files and flags are used when
17547 # linking a shared library.
17548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17549 else
17550 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17551 # platform.
17552 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17553 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17554 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17555
17556 # Commands to make compiler produce verbose output that lists
17557 # what "hidden" libraries, object files and flags are used when
17558 # linking a shared library.
17559 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17560 fi
17561
17562 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17563 case $host_os in
17564 solaris2.[0-5] | solaris2.[0-5].*) ;;
17565 *)
17566 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17567 ;;
17568 esac
17569 fi
17570 ;;
17571 esac
17572 ;;
17573
17574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17575 no_undefined_flag_CXX='${wl}-z,text'
17576 archive_cmds_need_lc_CXX=no
17577 hardcode_shlibpath_var_CXX=no
17578 runpath_var='LD_RUN_PATH'
17579
17580 case $cc_basename in
17581 CC*)
17582 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17584 ;;
17585 *)
17586 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17587 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 ;;
17589 esac
17590 ;;
17591
17592 sysv5* | sco3.2v5* | sco5v6*)
17593 # Note: We can NOT use -z defs as we might desire, because we do not
17594 # link with -lc, and that would cause any symbols used from libc to
17595 # always be unresolved, which means just about no library would
17596 # ever link correctly. If we're not using GNU ld we use -z text
17597 # though, which does catch some bad symbols but isn't as heavy-handed
17598 # as -z defs.
17599 no_undefined_flag_CXX='${wl}-z,text'
17600 allow_undefined_flag_CXX='${wl}-z,nodefs'
17601 archive_cmds_need_lc_CXX=no
17602 hardcode_shlibpath_var_CXX=no
17603 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17604 hardcode_libdir_separator_CXX=':'
17605 link_all_deplibs_CXX=yes
17606 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17607 runpath_var='LD_RUN_PATH'
17608
17609 case $cc_basename in
17610 CC*)
17611 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17613 ;;
17614 *)
17615 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17617 ;;
17618 esac
17619 ;;
17620
17621 tandem*)
17622 case $cc_basename in
17623 NCC*)
17624 # NonStop-UX NCC 3.20
17625 # FIXME: insert proper C++ library support
17626 ld_shlibs_CXX=no
17627 ;;
17628 *)
17629 # FIXME: insert proper C++ library support
17630 ld_shlibs_CXX=no
17631 ;;
17632 esac
17633 ;;
17634
17635 vxworks*)
17636 # FIXME: insert proper C++ library support
17637 ld_shlibs_CXX=no
17638 ;;
17639
17640 *)
17641 # FIXME: insert proper C++ library support
17642 ld_shlibs_CXX=no
17643 ;;
17644 esac
17645
17646 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17647$as_echo "$ld_shlibs_CXX" >&6; }
17648 test "$ld_shlibs_CXX" = no && can_build_shared=no
17649
17650 GCC_CXX="$GXX"
17651 LD_CXX="$LD"
17652
17653 ## CAVEAT EMPTOR:
17654 ## There is no encapsulation within the following macros, do not change
17655 ## the running order or otherwise move them around unless you know exactly
17656 ## what you are doing...
17657 # Dependencies to place before and after the object being linked:
17658predep_objects_CXX=
17659postdep_objects_CXX=
17660predeps_CXX=
17661postdeps_CXX=
17662compiler_lib_search_path_CXX=
17663
17664cat > conftest.$ac_ext <<_LT_EOF
17665class Foo
17666{
17667public:
17668 Foo (void) { a = 0; }
17669private:
17670 int a;
17671};
17672_LT_EOF
17673
17674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17675 (eval $ac_compile) 2>&5
17676 ac_status=$?
17677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; then
17679 # Parse the compiler output and extract the necessary
17680 # objects, libraries and library flags.
17681
17682 # Sentinel used to keep track of whether or not we are before
17683 # the conftest object file.
17684 pre_test_object_deps_done=no
17685
17686 for p in `eval "$output_verbose_link_cmd"`; do
17687 case $p in
17688
17689 -L* | -R* | -l*)
17690 # Some compilers place space between "-{L,R}" and the path.
17691 # Remove the space.
17692 if test $p = "-L" ||
17693 test $p = "-R"; then
17694 prev=$p
17695 continue
17696 else
17697 prev=
17698 fi
17699
17700 if test "$pre_test_object_deps_done" = no; then
17701 case $p in
17702 -L* | -R*)
17703 # Internal compiler library paths should come after those
17704 # provided the user. The postdeps already come after the
17705 # user supplied libs so there is no need to process them.
17706 if test -z "$compiler_lib_search_path_CXX"; then
17707 compiler_lib_search_path_CXX="${prev}${p}"
17708 else
17709 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17710 fi
17711 ;;
17712 # The "-l" case would never come before the object being
17713 # linked, so don't bother handling this case.
17714 esac
17715 else
17716 if test -z "$postdeps_CXX"; then
17717 postdeps_CXX="${prev}${p}"
17718 else
17719 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17720 fi
17721 fi
17722 ;;
17723
17724 *.$objext)
17725 # This assumes that the test object file only shows up
17726 # once in the compiler output.
17727 if test "$p" = "conftest.$objext"; then
17728 pre_test_object_deps_done=yes
17729 continue
17730 fi
17731
17732 if test "$pre_test_object_deps_done" = no; then
17733 if test -z "$predep_objects_CXX"; then
17734 predep_objects_CXX="$p"
17735 else
17736 predep_objects_CXX="$predep_objects_CXX $p"
17737 fi
17738 else
17739 if test -z "$postdep_objects_CXX"; then
17740 postdep_objects_CXX="$p"
17741 else
17742 postdep_objects_CXX="$postdep_objects_CXX $p"
17743 fi
17744 fi
17745 ;;
17746
17747 *) ;; # Ignore the rest.
17748
17749 esac
17750 done
17751
17752 # Clean up.
17753 rm -f a.out a.exe
17754else
17755 echo "libtool.m4: error: problem compiling CXX test program"
17756fi
17757
17758$RM -f confest.$objext
17759
17760# PORTME: override above test on systems where it is broken
17761case $host_os in
17762interix[3-9]*)
17763 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17764 # hack all around it, let's just trust "g++" to DTRT.
17765 predep_objects_CXX=
17766 postdep_objects_CXX=
17767 postdeps_CXX=
17768 ;;
17769
17770linux*)
17771 case `$CC -V 2>&1 | sed 5q` in
17772 *Sun\ C*)
17773 # Sun C++ 5.9
17774
17775 # The more standards-conforming stlport4 library is
17776 # incompatible with the Cstd library. Avoid specifying
17777 # it if it's in CXXFLAGS. Ignore libCrun as
17778 # -library=stlport4 depends on it.
17779 case " $CXX $CXXFLAGS " in
17780 *" -library=stlport4 "*)
17781 solaris_use_stlport4=yes
17782 ;;
17783 esac
17784
17785 if test "$solaris_use_stlport4" != yes; then
17786 postdeps_CXX='-library=Cstd -library=Crun'
17787 fi
17788 ;;
17789 esac
17790 ;;
17791
17792solaris*)
17793 case $cc_basename in
17794 CC*)
17795 # The more standards-conforming stlport4 library is
17796 # incompatible with the Cstd library. Avoid specifying
17797 # it if it's in CXXFLAGS. Ignore libCrun as
17798 # -library=stlport4 depends on it.
17799 case " $CXX $CXXFLAGS " in
17800 *" -library=stlport4 "*)
17801 solaris_use_stlport4=yes
17802 ;;
17803 esac
17804
17805 # Adding this requires a known-good setup of shared libraries for
17806 # Sun compiler versions before 5.6, else PIC objects from an old
17807 # archive will be linked into the output, leading to subtle bugs.
17808 if test "$solaris_use_stlport4" != yes; then
17809 postdeps_CXX='-library=Cstd -library=Crun'
17810 fi
17811 ;;
17812 esac
17813 ;;
17814esac
17815
17816
17817case " $postdeps_CXX " in
17818*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17819esac
17820 compiler_lib_search_dirs_CXX=
17821if test -n "${compiler_lib_search_path_CXX}"; then
17822 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17823fi
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855 lt_prog_compiler_wl_CXX=
17856lt_prog_compiler_pic_CXX=
17857lt_prog_compiler_static_CXX=
17858
17859{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17860$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17861
17862 # C++ specific cases for pic, static, wl, etc.
17863 if test "$GXX" = yes; then
17864 lt_prog_compiler_wl_CXX='-Wl,'
17865 lt_prog_compiler_static_CXX='-static'
17866
17867 case $host_os in
17868 aix*)
17869 # All AIX code is PIC.
17870 if test "$host_cpu" = ia64; then
17871 # AIX 5 now supports IA64 processor
17872 lt_prog_compiler_static_CXX='-Bstatic'
17873 fi
17874 ;;
17875
17876 amigaos*)
17877 case $host_cpu in
17878 powerpc)
17879 # see comment about AmigaOS4 .so support
17880 lt_prog_compiler_pic_CXX='-fPIC'
17881 ;;
17882 m68k)
17883 # FIXME: we need at least 68020 code to build shared libraries, but
17884 # adding the `-m68020' flag to GCC prevents building anything better,
17885 # like `-m68040'.
17886 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17887 ;;
17888 esac
17889 ;;
17890
17891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17892 # PIC is the default for these OSes.
17893 ;;
17894 mingw* | cygwin* | os2* | pw32* | cegcc*)
17895 # This hack is so that the source file can tell whether it is being
17896 # built for inclusion in a dll (and should export symbols for example).
17897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17898 # (--disable-auto-import) libraries
17899 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17900 ;;
17901 darwin* | rhapsody*)
17902 # PIC is the default on this platform
17903 # Common symbols not allowed in MH_DYLIB files
17904 lt_prog_compiler_pic_CXX='-fno-common'
17905 ;;
17906 *djgpp*)
17907 # DJGPP does not support shared libraries at all
17908 lt_prog_compiler_pic_CXX=
17909 ;;
17910 interix[3-9]*)
17911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17912 # Instead, we relocate shared libraries at runtime.
17913 ;;
17914 sysv4*MP*)
17915 if test -d /usr/nec; then
17916 lt_prog_compiler_pic_CXX=-Kconform_pic
17917 fi
17918 ;;
17919 hpux*)
17920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17922 # sets the default TLS model and affects inlining.
17923 case $host_cpu in
17924 hppa*64*)
17925 ;;
17926 *)
17927 lt_prog_compiler_pic_CXX='-fPIC'
17928 ;;
17929 esac
17930 ;;
17931 *qnx* | *nto*)
17932 # QNX uses GNU C++, but need to define -shared option too, otherwise
17933 # it will coredump.
17934 lt_prog_compiler_pic_CXX='-fPIC -shared'
17935 ;;
17936 *)
17937 lt_prog_compiler_pic_CXX='-fPIC'
17938 ;;
17939 esac
17940 else
17941 case $host_os in
17942 aix[4-9]*)
17943 # All AIX code is PIC.
17944 if test "$host_cpu" = ia64; then
17945 # AIX 5 now supports IA64 processor
17946 lt_prog_compiler_static_CXX='-Bstatic'
17947 else
17948 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17949 fi
17950 ;;
17951 chorus*)
17952 case $cc_basename in
17953 cxch68*)
17954 # Green Hills C++ Compiler
17955 # _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"
17956 ;;
17957 esac
17958 ;;
17959 dgux*)
17960 case $cc_basename in
17961 ec++*)
17962 lt_prog_compiler_pic_CXX='-KPIC'
17963 ;;
17964 ghcx*)
17965 # Green Hills C++ Compiler
17966 lt_prog_compiler_pic_CXX='-pic'
17967 ;;
17968 *)
17969 ;;
17970 esac
17971 ;;
17972 freebsd* | dragonfly*)
17973 # FreeBSD uses GNU C++
17974 ;;
17975 hpux9* | hpux10* | hpux11*)
17976 case $cc_basename in
17977 CC*)
17978 lt_prog_compiler_wl_CXX='-Wl,'
17979 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17980 if test "$host_cpu" != ia64; then
17981 lt_prog_compiler_pic_CXX='+Z'
17982 fi
17983 ;;
17984 aCC*)
17985 lt_prog_compiler_wl_CXX='-Wl,'
17986 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17987 case $host_cpu in
17988 hppa*64*|ia64*)
17989 # +Z the default
17990 ;;
17991 *)
17992 lt_prog_compiler_pic_CXX='+Z'
17993 ;;
17994 esac
17995 ;;
17996 *)
17997 ;;
17998 esac
17999 ;;
18000 interix*)
18001 # This is c89, which is MS Visual C++ (no shared libs)
18002 # Anyone wants to do a port?
18003 ;;
18004 irix5* | irix6* | nonstopux*)
18005 case $cc_basename in
18006 CC*)
18007 lt_prog_compiler_wl_CXX='-Wl,'
18008 lt_prog_compiler_static_CXX='-non_shared'
18009 # CC pic flag -KPIC is the default.
18010 ;;
18011 *)
18012 ;;
18013 esac
18014 ;;
18015 linux* | k*bsd*-gnu)
18016 case $cc_basename in
18017 KCC*)
18018 # KAI C++ Compiler
18019 lt_prog_compiler_wl_CXX='--backend -Wl,'
18020 lt_prog_compiler_pic_CXX='-fPIC'
18021 ;;
18022 ecpc* )
18023 # old Intel C++ for x86_64 which still supported -KPIC.
18024 lt_prog_compiler_wl_CXX='-Wl,'
18025 lt_prog_compiler_pic_CXX='-KPIC'
18026 lt_prog_compiler_static_CXX='-static'
18027 ;;
18028 icpc* )
18029 # Intel C++, used to be incompatible with GCC.
18030 # ICC 10 doesn't accept -KPIC any more.
18031 lt_prog_compiler_wl_CXX='-Wl,'
18032 lt_prog_compiler_pic_CXX='-fPIC'
18033 lt_prog_compiler_static_CXX='-static'
18034 ;;
18035 pgCC* | pgcpp*)
18036 # Portland Group C++ compiler
18037 lt_prog_compiler_wl_CXX='-Wl,'
18038 lt_prog_compiler_pic_CXX='-fpic'
18039 lt_prog_compiler_static_CXX='-Bstatic'
18040 ;;
18041 cxx*)
18042 # Compaq C++
18043 # Make sure the PIC flag is empty. It appears that all Alpha
18044 # Linux and Compaq Tru64 Unix objects are PIC.
18045 lt_prog_compiler_pic_CXX=
18046 lt_prog_compiler_static_CXX='-non_shared'
18047 ;;
18048 xlc* | xlC*)
18049 # IBM XL 8.0 on PPC
18050 lt_prog_compiler_wl_CXX='-Wl,'
18051 lt_prog_compiler_pic_CXX='-qpic'
18052 lt_prog_compiler_static_CXX='-qstaticlink'
18053 ;;
18054 *)
18055 case `$CC -V 2>&1 | sed 5q` in
18056 *Sun\ C*)
18057 # Sun C++ 5.9
18058 lt_prog_compiler_pic_CXX='-KPIC'
18059 lt_prog_compiler_static_CXX='-Bstatic'
18060 lt_prog_compiler_wl_CXX='-Qoption ld '
18061 ;;
18062 esac
18063 ;;
18064 esac
18065 ;;
18066 lynxos*)
18067 ;;
18068 m88k*)
18069 ;;
18070 mvs*)
18071 case $cc_basename in
18072 cxx*)
18073 lt_prog_compiler_pic_CXX='-W c,exportall'
18074 ;;
18075 *)
18076 ;;
18077 esac
18078 ;;
18079 netbsd*)
18080 ;;
18081 *qnx* | *nto*)
18082 # QNX uses GNU C++, but need to define -shared option too, otherwise
18083 # it will coredump.
18084 lt_prog_compiler_pic_CXX='-fPIC -shared'
18085 ;;
18086 osf3* | osf4* | osf5*)
18087 case $cc_basename in
18088 KCC*)
18089 lt_prog_compiler_wl_CXX='--backend -Wl,'
18090 ;;
18091 RCC*)
18092 # Rational C++ 2.4.1
18093 lt_prog_compiler_pic_CXX='-pic'
18094 ;;
18095 cxx*)
18096 # Digital/Compaq C++
18097 lt_prog_compiler_wl_CXX='-Wl,'
18098 # Make sure the PIC flag is empty. It appears that all Alpha
18099 # Linux and Compaq Tru64 Unix objects are PIC.
18100 lt_prog_compiler_pic_CXX=
18101 lt_prog_compiler_static_CXX='-non_shared'
18102 ;;
18103 *)
18104 ;;
18105 esac
18106 ;;
18107 psos*)
18108 ;;
18109 solaris*)
18110 case $cc_basename in
18111 CC*)
18112 # Sun C++ 4.2, 5.x and Centerline C++
18113 lt_prog_compiler_pic_CXX='-KPIC'
18114 lt_prog_compiler_static_CXX='-Bstatic'
18115 lt_prog_compiler_wl_CXX='-Qoption ld '
18116 ;;
18117 gcx*)
18118 # Green Hills C++ Compiler
18119 lt_prog_compiler_pic_CXX='-PIC'
18120 ;;
18121 *)
18122 ;;
18123 esac
18124 ;;
18125 sunos4*)
18126 case $cc_basename in
18127 CC*)
18128 # Sun C++ 4.x
18129 lt_prog_compiler_pic_CXX='-pic'
18130 lt_prog_compiler_static_CXX='-Bstatic'
18131 ;;
18132 lcc*)
18133 # Lucid
18134 lt_prog_compiler_pic_CXX='-pic'
18135 ;;
18136 *)
18137 ;;
18138 esac
18139 ;;
18140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18141 case $cc_basename in
18142 CC*)
18143 lt_prog_compiler_wl_CXX='-Wl,'
18144 lt_prog_compiler_pic_CXX='-KPIC'
18145 lt_prog_compiler_static_CXX='-Bstatic'
18146 ;;
18147 esac
18148 ;;
18149 tandem*)
18150 case $cc_basename in
18151 NCC*)
18152 # NonStop-UX NCC 3.20
18153 lt_prog_compiler_pic_CXX='-KPIC'
18154 ;;
18155 *)
18156 ;;
18157 esac
18158 ;;
18159 vxworks*)
18160 ;;
18161 *)
18162 lt_prog_compiler_can_build_shared_CXX=no
18163 ;;
18164 esac
18165 fi
18166
18167case $host_os in
18168 # For platforms which do not support PIC, -DPIC is meaningless:
18169 *djgpp*)
18170 lt_prog_compiler_pic_CXX=
18171 ;;
18172 *)
18173 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18174 ;;
18175esac
18176{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18177$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18178
18179
18180
18181#
18182# Check to make sure the PIC flag actually works.
18183#
18184if test -n "$lt_prog_compiler_pic_CXX"; then
18185 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18186$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18187if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18188 $as_echo_n "(cached) " >&6
18189else
18190 lt_cv_prog_compiler_pic_works_CXX=no
18191 ac_outfile=conftest.$ac_objext
18192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18193 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18194 # Insert the option either (1) after the last *FLAGS variable, or
18195 # (2) before a word containing "conftest.", or (3) at the end.
18196 # Note that $ac_compile itself does not contain backslashes and begins
18197 # with a dollar sign (not a hyphen), so the echo should work correctly.
18198 # The option is referenced via a variable to avoid confusing sed.
18199 lt_compile=`echo "$ac_compile" | $SED \
18200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18202 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000018203 (eval echo "\"\$as_me:18203: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018204 (eval "$lt_compile" 2>conftest.err)
18205 ac_status=$?
18206 cat conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000018207 echo "$as_me:18207: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018208 if (exit $ac_status) && test -s "$ac_outfile"; then
18209 # The compiler can only warn and ignore the option if not recognized
18210 # So say no if there are warnings other than the usual output.
18211 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18214 lt_cv_prog_compiler_pic_works_CXX=yes
18215 fi
18216 fi
18217 $RM conftest*
18218
18219fi
18220{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18221$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18222
18223if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18224 case $lt_prog_compiler_pic_CXX in
18225 "" | " "*) ;;
18226 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18227 esac
18228else
18229 lt_prog_compiler_pic_CXX=
18230 lt_prog_compiler_can_build_shared_CXX=no
18231fi
18232
18233fi
18234
18235
18236
18237#
18238# Check to make sure the static flag actually works.
18239#
18240wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18241{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18242$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18243if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
18244 $as_echo_n "(cached) " >&6
18245else
18246 lt_cv_prog_compiler_static_works_CXX=no
18247 save_LDFLAGS="$LDFLAGS"
18248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18251 # The linker can only warn and ignore the option if not recognized
18252 # So say no if there are warnings
18253 if test -s conftest.err; then
18254 # Append any errors to the config.log.
18255 cat conftest.err 1>&5
18256 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18258 if diff conftest.exp conftest.er2 >/dev/null; then
18259 lt_cv_prog_compiler_static_works_CXX=yes
18260 fi
18261 else
18262 lt_cv_prog_compiler_static_works_CXX=yes
18263 fi
18264 fi
18265 $RM -r conftest*
18266 LDFLAGS="$save_LDFLAGS"
18267
18268fi
18269{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18270$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18271
18272if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18273 :
18274else
18275 lt_prog_compiler_static_CXX=
18276fi
18277
18278
18279
18280
18281 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18282$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18283if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18284 $as_echo_n "(cached) " >&6
18285else
18286 lt_cv_prog_compiler_c_o_CXX=no
18287 $RM -r conftest 2>/dev/null
18288 mkdir conftest
18289 cd conftest
18290 mkdir out
18291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18292
18293 lt_compiler_flag="-o out/conftest2.$ac_objext"
18294 # Insert the option either (1) after the last *FLAGS variable, or
18295 # (2) before a word containing "conftest.", or (3) at the end.
18296 # Note that $ac_compile itself does not contain backslashes and begins
18297 # with a dollar sign (not a hyphen), so the echo should work correctly.
18298 lt_compile=`echo "$ac_compile" | $SED \
18299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18301 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000018302 (eval echo "\"\$as_me:18302: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018303 (eval "$lt_compile" 2>out/conftest.err)
18304 ac_status=$?
18305 cat out/conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000018306 echo "$as_me:18306: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18308 then
18309 # The compiler can only warn and ignore the option if not recognized
18310 # So say no if there are warnings
18311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18314 lt_cv_prog_compiler_c_o_CXX=yes
18315 fi
18316 fi
18317 chmod u+w . 2>&5
18318 $RM conftest*
18319 # SGI C++ compiler will create directory out/ii_files/ for
18320 # template instantiation
18321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18322 $RM out/* && rmdir out
18323 cd ..
18324 $RM -r conftest
18325 $RM conftest*
18326
18327fi
18328{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18329$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18330
18331
18332
18333 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18334$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18335if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18336 $as_echo_n "(cached) " >&6
18337else
18338 lt_cv_prog_compiler_c_o_CXX=no
18339 $RM -r conftest 2>/dev/null
18340 mkdir conftest
18341 cd conftest
18342 mkdir out
18343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18344
18345 lt_compiler_flag="-o out/conftest2.$ac_objext"
18346 # Insert the option either (1) after the last *FLAGS variable, or
18347 # (2) before a word containing "conftest.", or (3) at the end.
18348 # Note that $ac_compile itself does not contain backslashes and begins
18349 # with a dollar sign (not a hyphen), so the echo should work correctly.
18350 lt_compile=`echo "$ac_compile" | $SED \
18351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18353 -e 's:$: $lt_compiler_flag:'`
cristy2e8b51d2009-10-17 18:26:15 +000018354 (eval echo "\"\$as_me:18354: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018355 (eval "$lt_compile" 2>out/conftest.err)
18356 ac_status=$?
18357 cat out/conftest.err >&5
cristy2e8b51d2009-10-17 18:26:15 +000018358 echo "$as_me:18358: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18360 then
18361 # The compiler can only warn and ignore the option if not recognized
18362 # So say no if there are warnings
18363 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18366 lt_cv_prog_compiler_c_o_CXX=yes
18367 fi
18368 fi
18369 chmod u+w . 2>&5
18370 $RM conftest*
18371 # SGI C++ compiler will create directory out/ii_files/ for
18372 # template instantiation
18373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18374 $RM out/* && rmdir out
18375 cd ..
18376 $RM -r conftest
18377 $RM conftest*
18378
18379fi
18380{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18381$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18382
18383
18384
18385
18386hard_links="nottested"
18387if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18388 # do not overwrite the value of need_locks provided by the user
18389 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18390$as_echo_n "checking if we can lock with hard links... " >&6; }
18391 hard_links=yes
18392 $RM conftest*
18393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18394 touch conftest.a
18395 ln conftest.a conftest.b 2>&5 || hard_links=no
18396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18397 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18398$as_echo "$hard_links" >&6; }
18399 if test "$hard_links" = no; then
18400 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18401$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18402 need_locks=warn
18403 fi
18404else
18405 need_locks=no
18406fi
18407
18408
18409
18410 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18411$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18412
18413 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18414 case $host_os in
18415 aix[4-9]*)
18416 # If we're using GNU nm, then we don't want the "-C" option.
18417 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18418 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18419 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'
18420 else
18421 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'
18422 fi
18423 ;;
18424 pw32*)
18425 export_symbols_cmds_CXX="$ltdll_cmds"
18426 ;;
18427 cygwin* | mingw* | cegcc*)
18428 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'
18429 ;;
18430 *)
18431 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18432 ;;
18433 esac
18434 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18435
18436{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18437$as_echo "$ld_shlibs_CXX" >&6; }
18438test "$ld_shlibs_CXX" = no && can_build_shared=no
18439
18440with_gnu_ld_CXX=$with_gnu_ld
18441
18442
18443
18444
18445
18446
18447#
18448# Do we need to explicitly link libc?
18449#
18450case "x$archive_cmds_need_lc_CXX" in
18451x|xyes)
18452 # Assume -lc should be added
18453 archive_cmds_need_lc_CXX=yes
18454
18455 if test "$enable_shared" = yes && test "$GCC" = yes; then
18456 case $archive_cmds_CXX in
18457 *'~'*)
18458 # FIXME: we may have to deal with multi-command sequences.
18459 ;;
18460 '$CC '*)
18461 # Test whether the compiler implicitly links with -lc since on some
18462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18463 # to ld, don't add -lc before -lgcc.
18464 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18465$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18466 $RM conftest*
18467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18468
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>&5
18471 ac_status=$?
18472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } 2>conftest.err; then
18474 soname=conftest
18475 lib=conftest
18476 libobjs=conftest.$ac_objext
18477 deplibs=
18478 wl=$lt_prog_compiler_wl_CXX
18479 pic_flag=$lt_prog_compiler_pic_CXX
18480 compiler_flags=-v
18481 linker_flags=-v
18482 verstring=
18483 output_objdir=.
18484 libname=conftest
18485 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18486 allow_undefined_flag_CXX=
18487 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18488 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }
18492 then
18493 archive_cmds_need_lc_CXX=no
18494 else
18495 archive_cmds_need_lc_CXX=yes
18496 fi
18497 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18498 else
18499 cat conftest.err 1>&5
18500 fi
18501 $RM conftest*
18502 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18503$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18504 ;;
18505 esac
18506 fi
18507 ;;
18508esac
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18574$as_echo_n "checking dynamic linker characteristics... " >&6; }
18575
18576library_names_spec=
18577libname_spec='lib$name'
18578soname_spec=
18579shrext_cmds=".so"
18580postinstall_cmds=
18581postuninstall_cmds=
18582finish_cmds=
18583finish_eval=
18584shlibpath_var=
18585shlibpath_overrides_runpath=unknown
18586version_type=none
18587dynamic_linker="$host_os ld.so"
18588sys_lib_dlsearch_path_spec="/lib /usr/lib"
18589need_lib_prefix=unknown
18590hardcode_into_libs=no
18591
18592# when you set need_version to no, make sure it does not cause -set_version
18593# flags to be left without arguments
18594need_version=unknown
18595
18596case $host_os in
18597aix3*)
18598 version_type=linux
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18600 shlibpath_var=LIBPATH
18601
18602 # AIX 3 has no versioning support, so we append a major version to the name.
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 ;;
18605
18606aix[4-9]*)
18607 version_type=linux
18608 need_lib_prefix=no
18609 need_version=no
18610 hardcode_into_libs=yes
18611 if test "$host_cpu" = ia64; then
18612 # AIX 5 supports IA64
18613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 else
18616 # With GCC up to 2.95.x, collect2 would create an import file
18617 # for dependence libraries. The import file would start with
18618 # the line `#! .'. This would cause the generated library to
18619 # depend on `.', always an invalid library. This was fixed in
18620 # development snapshots of GCC prior to 3.0.
18621 case $host_os in
18622 aix4 | aix4.[01] | aix4.[01].*)
18623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18624 echo ' yes '
18625 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18626 :
18627 else
18628 can_build_shared=no
18629 fi
18630 ;;
18631 esac
18632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18633 # soname into executable. Probably we can add versioning support to
18634 # collect2, so additional links can be useful in future.
18635 if test "$aix_use_runtimelinking" = yes; then
18636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18637 # instead of lib<name>.a to let people know that these are not
18638 # typical AIX shared libraries.
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640 else
18641 # We preserve .a as extension for shared libraries through AIX4.2
18642 # and later when we are not doing run time linking.
18643 library_names_spec='${libname}${release}.a $libname.a'
18644 soname_spec='${libname}${release}${shared_ext}$major'
18645 fi
18646 shlibpath_var=LIBPATH
18647 fi
18648 ;;
18649
18650amigaos*)
18651 case $host_cpu in
18652 powerpc)
18653 # Since July 2007 AmigaOS4 officially supports .so libraries.
18654 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656 ;;
18657 m68k)
18658 library_names_spec='$libname.ixlibrary $libname.a'
18659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18660 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'
18661 ;;
18662 esac
18663 ;;
18664
18665beos*)
18666 library_names_spec='${libname}${shared_ext}'
18667 dynamic_linker="$host_os ld.so"
18668 shlibpath_var=LIBRARY_PATH
18669 ;;
18670
18671bsdi[45]*)
18672 version_type=linux
18673 need_version=no
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18680 # the default ld.so.conf also contains /usr/contrib/lib and
18681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18682 # libtool to hard-code these into programs
18683 ;;
18684
18685cygwin* | mingw* | pw32* | cegcc*)
18686 version_type=windows
18687 shrext_cmds=".dll"
18688 need_version=no
18689 need_lib_prefix=no
18690
18691 case $GCC,$host_os in
18692 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18693 library_names_spec='$libname.dll.a'
18694 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18695 postinstall_cmds='base_file=`basename \${file}`~
18696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18697 dldir=$destdir/`dirname \$dlpath`~
18698 test -d \$dldir || mkdir -p \$dldir~
18699 $install_prog $dir/$dlname \$dldir/$dlname~
18700 chmod a+x \$dldir/$dlname~
18701 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18702 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18703 fi'
18704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18705 dlpath=$dir/\$dldll~
18706 $RM \$dlpath'
18707 shlibpath_overrides_runpath=yes
18708
18709 case $host_os in
18710 cygwin*)
18711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18714 ;;
18715 mingw* | cegcc*)
18716 # MinGW DLLs use traditional 'lib' prefix
18717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18718 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18719 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18720 # It is most probably a Windows format PATH printed by
18721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18722 # path with ; separators, and with drive letters. We can handle the
18723 # drive letters (cygwin fileutils understands them), so leave them,
18724 # especially as we might pass files found there to a mingw objdump,
18725 # which wouldn't understand a cygwinified path. Ahh.
18726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18727 else
18728 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18729 fi
18730 ;;
18731 pw32*)
18732 # pw32 DLLs use 'pw' prefix rather than 'lib'
18733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18734 ;;
18735 esac
18736 ;;
18737
18738 *)
18739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18740 ;;
18741 esac
18742 dynamic_linker='Win32 ld.exe'
18743 # FIXME: first we should search . and the directory the executable is in
18744 shlibpath_var=PATH
18745 ;;
18746
18747darwin* | rhapsody*)
18748 dynamic_linker="$host_os dyld"
18749 version_type=darwin
18750 need_lib_prefix=no
18751 need_version=no
18752 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18753 soname_spec='${libname}${release}${major}$shared_ext'
18754 shlibpath_overrides_runpath=yes
18755 shlibpath_var=DYLD_LIBRARY_PATH
18756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18757
18758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18759 ;;
18760
18761dgux*)
18762 version_type=linux
18763 need_lib_prefix=no
18764 need_version=no
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 shlibpath_var=LD_LIBRARY_PATH
18768 ;;
18769
18770freebsd1*)
18771 dynamic_linker=no
18772 ;;
18773
18774freebsd* | dragonfly*)
18775 # DragonFly does not have aout. When/if they implement a new
18776 # versioning mechanism, adjust this.
18777 if test -x /usr/bin/objformat; then
18778 objformat=`/usr/bin/objformat`
18779 else
18780 case $host_os in
18781 freebsd[123]*) objformat=aout ;;
18782 *) objformat=elf ;;
18783 esac
18784 fi
18785 version_type=freebsd-$objformat
18786 case $version_type in
18787 freebsd-elf*)
18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18789 need_version=no
18790 need_lib_prefix=no
18791 ;;
18792 freebsd-*)
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18794 need_version=yes
18795 ;;
18796 esac
18797 shlibpath_var=LD_LIBRARY_PATH
18798 case $host_os in
18799 freebsd2*)
18800 shlibpath_overrides_runpath=yes
18801 ;;
18802 freebsd3.[01]* | freebsdelf3.[01]*)
18803 shlibpath_overrides_runpath=yes
18804 hardcode_into_libs=yes
18805 ;;
18806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18808 shlibpath_overrides_runpath=no
18809 hardcode_into_libs=yes
18810 ;;
18811 *) # from 4.6 on, and DragonFly
18812 shlibpath_overrides_runpath=yes
18813 hardcode_into_libs=yes
18814 ;;
18815 esac
18816 ;;
18817
18818gnu*)
18819 version_type=linux
18820 need_lib_prefix=no
18821 need_version=no
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18823 soname_spec='${libname}${release}${shared_ext}$major'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 hardcode_into_libs=yes
18826 ;;
18827
18828hpux9* | hpux10* | hpux11*)
18829 # Give a soname corresponding to the major version so that dld.sl refuses to
18830 # link against other versions.
18831 version_type=sunos
18832 need_lib_prefix=no
18833 need_version=no
18834 case $host_cpu in
18835 ia64*)
18836 shrext_cmds='.so'
18837 hardcode_into_libs=yes
18838 dynamic_linker="$host_os dld.so"
18839 shlibpath_var=LD_LIBRARY_PATH
18840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18842 soname_spec='${libname}${release}${shared_ext}$major'
18843 if test "X$HPUX_IA64_MODE" = X32; then
18844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18845 else
18846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18847 fi
18848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18849 ;;
18850 hppa*64*)
18851 shrext_cmds='.sl'
18852 hardcode_into_libs=yes
18853 dynamic_linker="$host_os dld.sl"
18854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857 soname_spec='${libname}${release}${shared_ext}$major'
18858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18860 ;;
18861 *)
18862 shrext_cmds='.sl'
18863 dynamic_linker="$host_os dld.sl"
18864 shlibpath_var=SHLIB_PATH
18865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867 soname_spec='${libname}${release}${shared_ext}$major'
18868 ;;
18869 esac
18870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18871 postinstall_cmds='chmod 555 $lib'
18872 ;;
18873
18874interix[3-9]*)
18875 version_type=linux
18876 need_lib_prefix=no
18877 need_version=no
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18879 soname_spec='${libname}${release}${shared_ext}$major'
18880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18881 shlibpath_var=LD_LIBRARY_PATH
18882 shlibpath_overrides_runpath=no
18883 hardcode_into_libs=yes
18884 ;;
18885
18886irix5* | irix6* | nonstopux*)
18887 case $host_os in
18888 nonstopux*) version_type=nonstopux ;;
18889 *)
18890 if test "$lt_cv_prog_gnu_ld" = yes; then
18891 version_type=linux
18892 else
18893 version_type=irix
18894 fi ;;
18895 esac
18896 need_lib_prefix=no
18897 need_version=no
18898 soname_spec='${libname}${release}${shared_ext}$major'
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18900 case $host_os in
18901 irix5* | nonstopux*)
18902 libsuff= shlibsuff=
18903 ;;
18904 *)
18905 case $LD in # libtool.m4 will add one of these switches to LD
18906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18907 libsuff= shlibsuff= libmagic=32-bit;;
18908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18909 libsuff=32 shlibsuff=N32 libmagic=N32;;
18910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18912 *) libsuff= shlibsuff= libmagic=never-match;;
18913 esac
18914 ;;
18915 esac
18916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18917 shlibpath_overrides_runpath=no
18918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18920 hardcode_into_libs=yes
18921 ;;
18922
18923# No shared lib support for Linux oldld, aout, or coff.
18924linux*oldld* | linux*aout* | linux*coff*)
18925 dynamic_linker=no
18926 ;;
18927
18928# This must be Linux ELF.
18929linux* | k*bsd*-gnu)
18930 version_type=linux
18931 need_lib_prefix=no
18932 need_version=no
18933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934 soname_spec='${libname}${release}${shared_ext}$major'
18935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18936 shlibpath_var=LD_LIBRARY_PATH
18937 shlibpath_overrides_runpath=no
18938 # Some binutils ld are patched to set DT_RUNPATH
18939 save_LDFLAGS=$LDFLAGS
18940 save_libdir=$libdir
18941 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18942 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18943 cat >conftest.$ac_ext <<_ACEOF
18944/* confdefs.h. */
18945_ACEOF
18946cat confdefs.h >>conftest.$ac_ext
18947cat >>conftest.$ac_ext <<_ACEOF
18948/* end confdefs.h. */
18949
18950int
18951main ()
18952{
18953
18954 ;
18955 return 0;
18956}
18957_ACEOF
18958rm -f conftest.$ac_objext conftest$ac_exeext
18959if { (ac_try="$ac_link"
18960case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963esac
18964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18965$as_echo "$ac_try_echo") >&5
18966 (eval "$ac_link") 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && {
18973 test -z "$ac_cxx_werror_flag" ||
18974 test ! -s conftest.err
18975 } && test -s conftest$ac_exeext && {
18976 test "$cross_compiling" = yes ||
18977 $as_test_x conftest$ac_exeext
18978 }; then
18979 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
18980 shlibpath_overrides_runpath=yes
18981fi
18982
18983else
18984 $as_echo "$as_me: failed program was:" >&5
18985sed 's/^/| /' conftest.$ac_ext >&5
18986
18987
18988fi
18989
18990rm -rf conftest.dSYM
18991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18992 conftest$ac_exeext conftest.$ac_ext
18993 LDFLAGS=$save_LDFLAGS
18994 libdir=$save_libdir
18995
18996 # This implies no fast_install, which is unacceptable.
18997 # Some rework will be needed to allow for fast_install
18998 # before this can be enabled.
18999 hardcode_into_libs=yes
19000
19001 # Add ABI-specific directories to the system library path.
19002 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19003
19004 # Append ld.so.conf contents to the search path
19005 if test -f /etc/ld.so.conf; then
19006 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' ' '`
19007 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19008 fi
19009
19010 # We used to test for /lib/ld.so.1 and disable shared libraries on
19011 # powerpc, because MkLinux only supported shared libraries with the
19012 # GNU dynamic linker. Since this was broken with cross compilers,
19013 # most powerpc-linux boxes support dynamic linking these days and
19014 # people can always --disable-shared, the test was removed, and we
19015 # assume the GNU/Linux dynamic linker is in use.
19016 dynamic_linker='GNU/Linux ld.so'
19017 ;;
19018
19019netbsd*)
19020 version_type=sunos
19021 need_lib_prefix=no
19022 need_version=no
19023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19026 dynamic_linker='NetBSD (a.out) ld.so'
19027 else
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19029 soname_spec='${libname}${release}${shared_ext}$major'
19030 dynamic_linker='NetBSD ld.elf_so'
19031 fi
19032 shlibpath_var=LD_LIBRARY_PATH
19033 shlibpath_overrides_runpath=yes
19034 hardcode_into_libs=yes
19035 ;;
19036
19037newsos6)
19038 version_type=linux
19039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19040 shlibpath_var=LD_LIBRARY_PATH
19041 shlibpath_overrides_runpath=yes
19042 ;;
19043
19044*nto* | *qnx*)
19045 version_type=qnx
19046 need_lib_prefix=no
19047 need_version=no
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19049 soname_spec='${libname}${release}${shared_ext}$major'
19050 shlibpath_var=LD_LIBRARY_PATH
19051 shlibpath_overrides_runpath=no
19052 hardcode_into_libs=yes
19053 dynamic_linker='ldqnx.so'
19054 ;;
19055
19056openbsd*)
19057 version_type=sunos
19058 sys_lib_dlsearch_path_spec="/usr/lib"
19059 need_lib_prefix=no
19060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19061 case $host_os in
19062 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19063 *) need_version=no ;;
19064 esac
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19067 shlibpath_var=LD_LIBRARY_PATH
19068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19069 case $host_os in
19070 openbsd2.[89] | openbsd2.[89].*)
19071 shlibpath_overrides_runpath=no
19072 ;;
19073 *)
19074 shlibpath_overrides_runpath=yes
19075 ;;
19076 esac
19077 else
19078 shlibpath_overrides_runpath=yes
19079 fi
19080 ;;
19081
19082os2*)
19083 libname_spec='$name'
19084 shrext_cmds=".dll"
19085 need_lib_prefix=no
19086 library_names_spec='$libname${shared_ext} $libname.a'
19087 dynamic_linker='OS/2 ld.exe'
19088 shlibpath_var=LIBPATH
19089 ;;
19090
19091osf3* | osf4* | osf5*)
19092 version_type=osf
19093 need_lib_prefix=no
19094 need_version=no
19095 soname_spec='${libname}${release}${shared_ext}$major'
19096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097 shlibpath_var=LD_LIBRARY_PATH
19098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19100 ;;
19101
19102rdos*)
19103 dynamic_linker=no
19104 ;;
19105
19106solaris*)
19107 version_type=linux
19108 need_lib_prefix=no
19109 need_version=no
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19112 shlibpath_var=LD_LIBRARY_PATH
19113 shlibpath_overrides_runpath=yes
19114 hardcode_into_libs=yes
19115 # ldd complains unless libraries are executable
19116 postinstall_cmds='chmod +x $lib'
19117 ;;
19118
19119sunos4*)
19120 version_type=sunos
19121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19123 shlibpath_var=LD_LIBRARY_PATH
19124 shlibpath_overrides_runpath=yes
19125 if test "$with_gnu_ld" = yes; then
19126 need_lib_prefix=no
19127 fi
19128 need_version=yes
19129 ;;
19130
19131sysv4 | sysv4.3*)
19132 version_type=linux
19133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134 soname_spec='${libname}${release}${shared_ext}$major'
19135 shlibpath_var=LD_LIBRARY_PATH
19136 case $host_vendor in
19137 sni)
19138 shlibpath_overrides_runpath=no
19139 need_lib_prefix=no
19140 runpath_var=LD_RUN_PATH
19141 ;;
19142 siemens)
19143 need_lib_prefix=no
19144 ;;
19145 motorola)
19146 need_lib_prefix=no
19147 need_version=no
19148 shlibpath_overrides_runpath=no
19149 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19150 ;;
19151 esac
19152 ;;
19153
19154sysv4*MP*)
19155 if test -d /usr/nec ;then
19156 version_type=linux
19157 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19158 soname_spec='$libname${shared_ext}.$major'
19159 shlibpath_var=LD_LIBRARY_PATH
19160 fi
19161 ;;
19162
19163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19164 version_type=freebsd-elf
19165 need_lib_prefix=no
19166 need_version=no
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19168 soname_spec='${libname}${release}${shared_ext}$major'
19169 shlibpath_var=LD_LIBRARY_PATH
19170 shlibpath_overrides_runpath=yes
19171 hardcode_into_libs=yes
19172 if test "$with_gnu_ld" = yes; then
19173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19174 else
19175 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19176 case $host_os in
19177 sco3.2v5*)
19178 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19179 ;;
19180 esac
19181 fi
19182 sys_lib_dlsearch_path_spec='/usr/lib'
19183 ;;
19184
19185tpf*)
19186 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19187 version_type=linux
19188 need_lib_prefix=no
19189 need_version=no
19190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19191 shlibpath_var=LD_LIBRARY_PATH
19192 shlibpath_overrides_runpath=no
19193 hardcode_into_libs=yes
19194 ;;
19195
19196uts4*)
19197 version_type=linux
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 shlibpath_var=LD_LIBRARY_PATH
19201 ;;
19202
19203*)
19204 dynamic_linker=no
19205 ;;
19206esac
19207{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19208$as_echo "$dynamic_linker" >&6; }
19209test "$dynamic_linker" = no && can_build_shared=no
19210
19211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19212if test "$GCC" = yes; then
19213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19214fi
19215
19216if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19217 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19218fi
19219if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19220 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19221fi
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19259$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19260hardcode_action_CXX=
19261if test -n "$hardcode_libdir_flag_spec_CXX" ||
19262 test -n "$runpath_var_CXX" ||
19263 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19264
19265 # We can hardcode non-existent directories.
19266 if test "$hardcode_direct_CXX" != no &&
19267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19268 # have to relink, otherwise we might link with an installed library
19269 # when we should be linking with a yet-to-be-installed one
19270 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19271 test "$hardcode_minus_L_CXX" != no; then
19272 # Linking always hardcodes the temporary library directory.
19273 hardcode_action_CXX=relink
19274 else
19275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19276 hardcode_action_CXX=immediate
19277 fi
19278else
19279 # We cannot hardcode anything, or else we can only hardcode existing
19280 # directories.
19281 hardcode_action_CXX=unsupported
19282fi
19283{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19284$as_echo "$hardcode_action_CXX" >&6; }
19285
19286if test "$hardcode_action_CXX" = relink ||
19287 test "$inherit_rpath_CXX" = yes; then
19288 # Fast installation is not supported
19289 enable_fast_install=no
19290elif test "$shlibpath_overrides_runpath" = yes ||
19291 test "$enable_shared" = no; then
19292 # Fast installation is not necessary
19293 enable_fast_install=needless
19294fi
19295
19296
19297
19298
19299
19300
19301
19302 fi # test -n "$compiler"
19303
19304 CC=$lt_save_CC
19305 LDCXX=$LD
19306 LD=$lt_save_LD
19307 GCC=$lt_save_GCC
19308 with_gnu_ld=$lt_save_with_gnu_ld
19309 lt_cv_path_LDCXX=$lt_cv_path_LD
19310 lt_cv_path_LD=$lt_save_path_LD
19311 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19312 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19313fi # test "$_lt_caught_CXX_error" != yes
19314
19315ac_ext=c
19316ac_cpp='$CPP $CPPFLAGS'
19317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19319ac_compiler_gnu=$ac_cv_c_compiler_gnu
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333 ac_config_commands="$ac_config_commands libtool"
19334
19335
19336
19337
19338# Only expand once:
19339
19340
19341
19342
19343
19344# Configure libltdl
19345
19346
19347
19348
19349
19350
19351
19352
19353{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
19354$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19355if test "${libltdl_cv_shlibext+set}" = set; then
19356 $as_echo_n "(cached) " >&6
19357else
19358
19359module=yes
19360eval libltdl_cv_shlibext=$shrext_cmds
19361
19362fi
19363{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19364$as_echo "$libltdl_cv_shlibext" >&6; }
19365if test -n "$libltdl_cv_shlibext"; then
19366
19367cat >>confdefs.h <<_ACEOF
19368#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19369_ACEOF
19370
19371fi
19372
19373{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
19374$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19375if test "${lt_cv_module_path_var+set}" = set; then
19376 $as_echo_n "(cached) " >&6
19377else
19378 lt_cv_module_path_var="$shlibpath_var"
19379fi
19380{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
19381$as_echo "$lt_cv_module_path_var" >&6; }
19382if test -n "$lt_cv_module_path_var"; then
19383
19384cat >>confdefs.h <<_ACEOF
19385#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19386_ACEOF
19387
19388fi
19389
19390{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
19391$as_echo_n "checking for the default library search path... " >&6; }
19392if test "${lt_cv_sys_dlsearch_path+set}" = set; then
19393 $as_echo_n "(cached) " >&6
19394else
19395 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19396fi
19397{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
19398$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19399if test -n "$lt_cv_sys_dlsearch_path"; then
19400 sys_dlsearch_path=
19401 for dir in $lt_cv_sys_dlsearch_path; do
19402 if test -z "$sys_dlsearch_path"; then
19403 sys_dlsearch_path="$dir"
19404 else
19405 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19406 fi
19407 done
19408
19409cat >>confdefs.h <<_ACEOF
19410#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19411_ACEOF
19412
19413fi
19414
19415
19416LT_DLLOADERS=
19417
19418
19419ac_ext=c
19420ac_cpp='$CPP $CPPFLAGS'
19421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423ac_compiler_gnu=$ac_cv_c_compiler_gnu
19424
19425
19426LIBADD_DLOPEN=
19427{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19428$as_echo_n "checking for library containing dlopen... " >&6; }
19429if test "${ac_cv_search_dlopen+set}" = set; then
19430 $as_echo_n "(cached) " >&6
19431else
19432 ac_func_search_save_LIBS=$LIBS
19433cat >conftest.$ac_ext <<_ACEOF
19434/* confdefs.h. */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h. */
19439
19440/* Override any GCC internal prototype to avoid an error.
19441 Use char because int might match the return type of a GCC
19442 builtin and then its argument prototype would still apply. */
19443#ifdef __cplusplus
19444extern "C"
19445#endif
19446char dlopen ();
19447int
19448main ()
19449{
19450return dlopen ();
19451 ;
19452 return 0;
19453}
19454_ACEOF
19455for ac_lib in '' dl; do
19456 if test -z "$ac_lib"; then
19457 ac_res="none required"
19458 else
19459 ac_res=-l$ac_lib
19460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19461 fi
19462 rm -f conftest.$ac_objext conftest$ac_exeext
19463if { (ac_try="$ac_link"
19464case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19469$as_echo "$ac_try_echo") >&5
19470 (eval "$ac_link") 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext && {
19480 test "$cross_compiling" = yes ||
19481 $as_test_x conftest$ac_exeext
19482 }; then
19483 ac_cv_search_dlopen=$ac_res
19484else
19485 $as_echo "$as_me: failed program was:" >&5
19486sed 's/^/| /' conftest.$ac_ext >&5
19487
19488
19489fi
19490
19491rm -rf conftest.dSYM
19492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19493 conftest$ac_exeext
19494 if test "${ac_cv_search_dlopen+set}" = set; then
19495 break
19496fi
19497done
19498if test "${ac_cv_search_dlopen+set}" = set; then
19499 :
19500else
19501 ac_cv_search_dlopen=no
19502fi
19503rm conftest.$ac_ext
19504LIBS=$ac_func_search_save_LIBS
19505fi
19506{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19507$as_echo "$ac_cv_search_dlopen" >&6; }
19508ac_res=$ac_cv_search_dlopen
19509if test "$ac_res" != no; then
19510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19511
19512cat >>confdefs.h <<\_ACEOF
19513#define HAVE_LIBDL 1
19514_ACEOF
19515
19516 if test "$ac_cv_search_dlopen" != "none required" ; then
19517 LIBADD_DLOPEN="-ldl"
19518 fi
19519 libltdl_cv_lib_dl_dlopen="yes"
19520 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19521else
19522 cat >conftest.$ac_ext <<_ACEOF
19523/* confdefs.h. */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h. */
19528#if HAVE_DLFCN_H
19529# include <dlfcn.h>
19530#endif
19531
19532int
19533main ()
19534{
19535dlopen(0, 0);
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext conftest$ac_exeext
19541if { (ac_try="$ac_link"
19542case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545esac
19546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19547$as_echo "$ac_try_echo") >&5
19548 (eval "$ac_link") 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } && {
19555 test -z "$ac_c_werror_flag" ||
19556 test ! -s conftest.err
19557 } && test -s conftest$ac_exeext && {
19558 test "$cross_compiling" = yes ||
19559 $as_test_x conftest$ac_exeext
19560 }; then
19561
19562cat >>confdefs.h <<\_ACEOF
19563#define HAVE_LIBDL 1
19564_ACEOF
19565
19566 libltdl_cv_func_dlopen="yes"
19567 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19568else
19569 $as_echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19573$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19574if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19575 $as_echo_n "(cached) " >&6
19576else
19577 ac_check_lib_save_LIBS=$LIBS
19578LIBS="-lsvld $LIBS"
19579cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585
19586/* Override any GCC internal prototype to avoid an error.
19587 Use char because int might match the return type of a GCC
19588 builtin and then its argument prototype would still apply. */
19589#ifdef __cplusplus
19590extern "C"
19591#endif
19592char dlopen ();
19593int
19594main ()
19595{
19596return dlopen ();
19597 ;
19598 return 0;
19599}
19600_ACEOF
19601rm -f conftest.$ac_objext conftest$ac_exeext
19602if { (ac_try="$ac_link"
19603case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19608$as_echo "$ac_try_echo") >&5
19609 (eval "$ac_link") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest$ac_exeext && {
19619 test "$cross_compiling" = yes ||
19620 $as_test_x conftest$ac_exeext
19621 }; then
19622 ac_cv_lib_svld_dlopen=yes
19623else
19624 $as_echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627 ac_cv_lib_svld_dlopen=no
19628fi
19629
19630rm -rf conftest.dSYM
19631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632 conftest$ac_exeext conftest.$ac_ext
19633LIBS=$ac_check_lib_save_LIBS
19634fi
19635{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19636$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19637if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19638
19639cat >>confdefs.h <<\_ACEOF
19640#define HAVE_LIBDL 1
19641_ACEOF
19642
19643 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19644 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19645fi
19646
19647fi
19648
19649rm -rf conftest.dSYM
19650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19651 conftest$ac_exeext conftest.$ac_ext
19652fi
19653
19654if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19655then
19656 lt_save_LIBS="$LIBS"
19657 LIBS="$LIBS $LIBADD_DLOPEN"
19658
19659for ac_func in dlerror
19660do
19661as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19662{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19663$as_echo_n "checking for $ac_func... " >&6; }
19664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19665 $as_echo_n "(cached) " >&6
19666else
19667 cat >conftest.$ac_ext <<_ACEOF
19668/* confdefs.h. */
19669_ACEOF
19670cat confdefs.h >>conftest.$ac_ext
19671cat >>conftest.$ac_ext <<_ACEOF
19672/* end confdefs.h. */
19673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19675#define $ac_func innocuous_$ac_func
19676
19677/* System header to define __stub macros and hopefully few prototypes,
19678 which can conflict with char $ac_func (); below.
19679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19680 <limits.h> exists even on freestanding compilers. */
19681
19682#ifdef __STDC__
19683# include <limits.h>
19684#else
19685# include <assert.h>
19686#endif
19687
19688#undef $ac_func
19689
19690/* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19693#ifdef __cplusplus
19694extern "C"
19695#endif
19696char $ac_func ();
19697/* The GNU C library defines this for functions which it implements
19698 to always fail with ENOSYS. Some functions are actually named
19699 something starting with __ and the normal name is an alias. */
19700#if defined __stub_$ac_func || defined __stub___$ac_func
19701choke me
19702#endif
19703
19704int
19705main ()
19706{
19707return $ac_func ();
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext conftest$ac_exeext
19713if { (ac_try="$ac_link"
19714case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19719$as_echo "$ac_try_echo") >&5
19720 (eval "$ac_link") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext && {
19730 test "$cross_compiling" = yes ||
19731 $as_test_x conftest$ac_exeext
19732 }; then
19733 eval "$as_ac_var=yes"
19734else
19735 $as_echo "$as_me: failed program was:" >&5
19736sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 eval "$as_ac_var=no"
19739fi
19740
19741rm -rf conftest.dSYM
19742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743 conftest$ac_exeext conftest.$ac_ext
19744fi
19745ac_res=`eval 'as_val=${'$as_ac_var'}
19746 $as_echo "$as_val"'`
19747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19748$as_echo "$ac_res" >&6; }
19749as_val=`eval 'as_val=${'$as_ac_var'}
19750 $as_echo "$as_val"'`
19751 if test "x$as_val" = x""yes; then
19752 cat >>confdefs.h <<_ACEOF
19753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19754_ACEOF
19755
19756fi
19757done
19758
19759 LIBS="$lt_save_LIBS"
19760fi
19761
19762
19763LIBADD_SHL_LOAD=
19764{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19765$as_echo_n "checking for shl_load... " >&6; }
19766if test "${ac_cv_func_shl_load+set}" = set; then
19767 $as_echo_n "(cached) " >&6
19768else
19769 cat >conftest.$ac_ext <<_ACEOF
19770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
19775/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19777#define shl_load innocuous_shl_load
19778
19779/* System header to define __stub macros and hopefully few prototypes,
19780 which can conflict with char shl_load (); below.
19781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19782 <limits.h> exists even on freestanding compilers. */
19783
19784#ifdef __STDC__
19785# include <limits.h>
19786#else
19787# include <assert.h>
19788#endif
19789
19790#undef shl_load
19791
19792/* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795#ifdef __cplusplus
19796extern "C"
19797#endif
19798char shl_load ();
19799/* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802#if defined __stub_shl_load || defined __stub___shl_load
19803choke me
19804#endif
19805
19806int
19807main ()
19808{
19809return shl_load ();
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext conftest$ac_exeext
19815if { (ac_try="$ac_link"
19816case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819esac
19820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19821$as_echo "$ac_try_echo") >&5
19822 (eval "$ac_link") 2>conftest.er1
19823 ac_status=$?
19824 grep -v '^ *+' conftest.er1 >conftest.err
19825 rm -f conftest.er1
19826 cat conftest.err >&5
19827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } && {
19829 test -z "$ac_c_werror_flag" ||
19830 test ! -s conftest.err
19831 } && test -s conftest$ac_exeext && {
19832 test "$cross_compiling" = yes ||
19833 $as_test_x conftest$ac_exeext
19834 }; then
19835 ac_cv_func_shl_load=yes
19836else
19837 $as_echo "$as_me: failed program was:" >&5
19838sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 ac_cv_func_shl_load=no
19841fi
19842
19843rm -rf conftest.dSYM
19844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19845 conftest$ac_exeext conftest.$ac_ext
19846fi
19847{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19848$as_echo "$ac_cv_func_shl_load" >&6; }
19849if test "x$ac_cv_func_shl_load" = x""yes; then
19850
19851cat >>confdefs.h <<\_ACEOF
19852#define HAVE_SHL_LOAD 1
19853_ACEOF
19854
19855 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19856else
19857 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19858$as_echo_n "checking for shl_load in -ldld... " >&6; }
19859if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19860 $as_echo_n "(cached) " >&6
19861else
19862 ac_check_lib_save_LIBS=$LIBS
19863LIBS="-ldld $LIBS"
19864cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h. */
19870
19871/* Override any GCC internal prototype to avoid an error.
19872 Use char because int might match the return type of a GCC
19873 builtin and then its argument prototype would still apply. */
19874#ifdef __cplusplus
19875extern "C"
19876#endif
19877char shl_load ();
19878int
19879main ()
19880{
19881return shl_load ();
19882 ;
19883 return 0;
19884}
19885_ACEOF
19886rm -f conftest.$ac_objext conftest$ac_exeext
19887if { (ac_try="$ac_link"
19888case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891esac
19892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19893$as_echo "$ac_try_echo") >&5
19894 (eval "$ac_link") 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && {
19901 test -z "$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19903 } && test -s conftest$ac_exeext && {
19904 test "$cross_compiling" = yes ||
19905 $as_test_x conftest$ac_exeext
19906 }; then
19907 ac_cv_lib_dld_shl_load=yes
19908else
19909 $as_echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_cv_lib_dld_shl_load=no
19913fi
19914
19915rm -rf conftest.dSYM
19916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19917 conftest$ac_exeext conftest.$ac_ext
19918LIBS=$ac_check_lib_save_LIBS
19919fi
19920{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19921$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19922if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19923
19924cat >>confdefs.h <<\_ACEOF
19925#define HAVE_SHL_LOAD 1
19926_ACEOF
19927
19928 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19929 LIBADD_SHL_LOAD="-ldld"
19930fi
19931
19932fi
19933
19934
19935
19936case $host_os in
19937darwin[1567].*)
19938# We only want this for pre-Mac OS X 10.4.
19939 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19940$as_echo_n "checking for _dyld_func_lookup... " >&6; }
19941if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19942 $as_echo_n "(cached) " >&6
19943else
19944 cat >conftest.$ac_ext <<_ACEOF
19945/* confdefs.h. */
19946_ACEOF
19947cat confdefs.h >>conftest.$ac_ext
19948cat >>conftest.$ac_ext <<_ACEOF
19949/* end confdefs.h. */
19950/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19952#define _dyld_func_lookup innocuous__dyld_func_lookup
19953
19954/* System header to define __stub macros and hopefully few prototypes,
19955 which can conflict with char _dyld_func_lookup (); below.
19956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19957 <limits.h> exists even on freestanding compilers. */
19958
19959#ifdef __STDC__
19960# include <limits.h>
19961#else
19962# include <assert.h>
19963#endif
19964
19965#undef _dyld_func_lookup
19966
19967/* Override any GCC internal prototype to avoid an error.
19968 Use char because int might match the return type of a GCC
19969 builtin and then its argument prototype would still apply. */
19970#ifdef __cplusplus
19971extern "C"
19972#endif
19973char _dyld_func_lookup ();
19974/* The GNU C library defines this for functions which it implements
19975 to always fail with ENOSYS. Some functions are actually named
19976 something starting with __ and the normal name is an alias. */
19977#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
19978choke me
19979#endif
19980
19981int
19982main ()
19983{
19984return _dyld_func_lookup ();
19985 ;
19986 return 0;
19987}
19988_ACEOF
19989rm -f conftest.$ac_objext conftest$ac_exeext
19990if { (ac_try="$ac_link"
19991case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994esac
19995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19996$as_echo "$ac_try_echo") >&5
19997 (eval "$ac_link") 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && {
20004 test -z "$ac_c_werror_flag" ||
20005 test ! -s conftest.err
20006 } && test -s conftest$ac_exeext && {
20007 test "$cross_compiling" = yes ||
20008 $as_test_x conftest$ac_exeext
20009 }; then
20010 ac_cv_func__dyld_func_lookup=yes
20011else
20012 $as_echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_cv_func__dyld_func_lookup=no
20016fi
20017
20018rm -rf conftest.dSYM
20019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020 conftest$ac_exeext conftest.$ac_ext
20021fi
20022{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20023$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
20024if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
20025
20026cat >>confdefs.h <<\_ACEOF
20027#define HAVE_DYLD 1
20028_ACEOF
20029
20030 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20031fi
20032
20033 ;;
20034beos*)
20035 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20036 ;;
20037cygwin* | mingw* | os2* | pw32*)
20038 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
20039$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
20040if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
20041 $as_echo_n "(cached) " >&6
20042else
20043 cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
20049#include <sys/cygwin.h>
20050
20051int
20052main ()
20053{
20054#ifndef cygwin_conv_path
20055 (void) cygwin_conv_path;
20056#endif
20057
20058 ;
20059 return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext
20063if { (ac_try="$ac_compile"
20064case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067esac
20068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20069$as_echo "$ac_try_echo") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest.$ac_objext; then
20080 ac_cv_have_decl_cygwin_conv_path=yes
20081else
20082 $as_echo "$as_me: failed program was:" >&5
20083sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ac_cv_have_decl_cygwin_conv_path=no
20086fi
20087
20088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089fi
20090{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
20091$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
20092if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
20093
20094cat >>confdefs.h <<_ACEOF
20095#define HAVE_DECL_CYGWIN_CONV_PATH 1
20096_ACEOF
20097
20098
20099else
20100 cat >>confdefs.h <<_ACEOF
20101#define HAVE_DECL_CYGWIN_CONV_PATH 0
20102_ACEOF
20103
20104
20105fi
20106
20107
20108 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20109 ;;
20110esac
20111
20112{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20113$as_echo_n "checking for dld_link in -ldld... " >&6; }
20114if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20115 $as_echo_n "(cached) " >&6
20116else
20117 ac_check_lib_save_LIBS=$LIBS
20118LIBS="-ldld $LIBS"
20119cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
20125
20126/* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20129#ifdef __cplusplus
20130extern "C"
20131#endif
20132char dld_link ();
20133int
20134main ()
20135{
20136return dld_link ();
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141rm -f conftest.$ac_objext conftest$ac_exeext
20142if { (ac_try="$ac_link"
20143case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146esac
20147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20148$as_echo "$ac_try_echo") >&5
20149 (eval "$ac_link") 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && {
20156 test -z "$ac_c_werror_flag" ||
20157 test ! -s conftest.err
20158 } && test -s conftest$ac_exeext && {
20159 test "$cross_compiling" = yes ||
20160 $as_test_x conftest$ac_exeext
20161 }; then
20162 ac_cv_lib_dld_dld_link=yes
20163else
20164 $as_echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 ac_cv_lib_dld_dld_link=no
20168fi
20169
20170rm -rf conftest.dSYM
20171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20172 conftest$ac_exeext conftest.$ac_ext
20173LIBS=$ac_check_lib_save_LIBS
20174fi
20175{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20176$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20177if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
20178
20179cat >>confdefs.h <<\_ACEOF
20180#define HAVE_DLD 1
20181_ACEOF
20182
20183 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20184fi
20185
20186
20187
20188
20189LT_DLPREOPEN=
20190if test -n "$LT_DLLOADERS"
20191then
20192 for lt_loader in $LT_DLLOADERS; do
20193 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20194 done
20195
20196cat >>confdefs.h <<\_ACEOF
20197#define HAVE_LIBDLLOADER 1
20198_ACEOF
20199
20200fi
20201
20202
20203LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20204
20205
20206ac_ext=c
20207ac_cpp='$CPP $CPPFLAGS'
20208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20210ac_compiler_gnu=$ac_cv_c_compiler_gnu
20211
20212
20213{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20214$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20215if test "${lt_cv_sys_symbol_underscore+set}" = set; then
20216 $as_echo_n "(cached) " >&6
20217else
20218 lt_cv_sys_symbol_underscore=no
20219 cat > conftest.$ac_ext <<_LT_EOF
20220void nm_test_func(){}
20221int main(){nm_test_func;return 0;}
20222_LT_EOF
20223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>&5
20225 ac_status=$?
20226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; then
20228 # Now try to grab the symbols.
20229 ac_nlist=conftest.nm
20230 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20231 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20232 ac_status=$?
20233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && test -s "$ac_nlist"; then
20235 # See whether the symbols have a leading underscore.
20236 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20237 lt_cv_sys_symbol_underscore=yes
20238 else
20239 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20240 :
20241 else
20242 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20243 fi
20244 fi
20245 else
20246 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20247 fi
20248 else
20249 echo "configure: failed program was:" >&5
20250 cat conftest.c >&5
20251 fi
20252 rm -rf conftest*
20253
20254fi
20255{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
20256$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20257 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20258
20259
20260if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20261 if test x"$libltdl_cv_func_dlopen" = xyes ||
20262 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20263 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20264$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20265if test "${libltdl_cv_need_uscore+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20267else
20268 libltdl_cv_need_uscore=unknown
20269 save_LIBS="$LIBS"
20270 LIBS="$LIBS $LIBADD_DLOPEN"
20271 if test "$cross_compiling" = yes; then :
20272 libltdl_cv_need_uscore=cross
20273else
20274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20275 lt_status=$lt_dlunknown
20276 cat > conftest.$ac_ext <<_LT_EOF
cristy2e8b51d2009-10-17 18:26:15 +000020277#line 20277 "configure"
cristy3ed852e2009-09-05 21:47:34 +000020278#include "confdefs.h"
20279
20280#if HAVE_DLFCN_H
20281#include <dlfcn.h>
20282#endif
20283
20284#include <stdio.h>
20285
20286#ifdef RTLD_GLOBAL
20287# define LT_DLGLOBAL RTLD_GLOBAL
20288#else
20289# ifdef DL_GLOBAL
20290# define LT_DLGLOBAL DL_GLOBAL
20291# else
20292# define LT_DLGLOBAL 0
20293# endif
20294#endif
20295
20296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20297 find out it does not work in some platform. */
20298#ifndef LT_DLLAZY_OR_NOW
20299# ifdef RTLD_LAZY
20300# define LT_DLLAZY_OR_NOW RTLD_LAZY
20301# else
20302# ifdef DL_LAZY
20303# define LT_DLLAZY_OR_NOW DL_LAZY
20304# else
20305# ifdef RTLD_NOW
20306# define LT_DLLAZY_OR_NOW RTLD_NOW
20307# else
20308# ifdef DL_NOW
20309# define LT_DLLAZY_OR_NOW DL_NOW
20310# else
20311# define LT_DLLAZY_OR_NOW 0
20312# endif
20313# endif
20314# endif
20315# endif
20316#endif
20317
20318void fnord() { int i=42;}
20319int main ()
20320{
20321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20322 int status = $lt_dlunknown;
20323
20324 if (self)
20325 {
20326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20328 /* dlclose (self); */
20329 }
20330 else
20331 puts (dlerror ());
20332
20333 return status;
20334}
20335_LT_EOF
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>&5
20338 ac_status=$?
20339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20341 (./conftest; exit; ) >&5 2>/dev/null
20342 lt_status=$?
20343 case x$lt_status in
20344 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20345 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20346 x$lt_dlunknown|x*) ;;
20347 esac
20348 else :
20349 # compilation failed
20350
20351 fi
20352fi
20353rm -fr conftest*
20354
20355 LIBS="$save_LIBS"
20356
20357fi
20358{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20359$as_echo "$libltdl_cv_need_uscore" >&6; }
20360 fi
20361fi
20362
20363if test x"$libltdl_cv_need_uscore" = xyes; then
20364
20365cat >>confdefs.h <<\_ACEOF
20366#define NEED_USCORE 1
20367_ACEOF
20368
20369fi
20370
20371{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20372$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20373if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
20374 $as_echo_n "(cached) " >&6
20375else
20376 # PORTME does your system automatically load deplibs for dlopen?
20377 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20378 # For now, we just catch OSes we know something about -- in the
20379 # future, we'll try test this programmatically.
20380 lt_cv_sys_dlopen_deplibs=unknown
20381 case $host_os in
20382 aix3*|aix4.1.*|aix4.2.*)
20383 # Unknown whether this is true for these versions of AIX, but
20384 # we want this `case' here to explicitly catch those versions.
20385 lt_cv_sys_dlopen_deplibs=unknown
20386 ;;
20387 aix[4-9]*)
20388 lt_cv_sys_dlopen_deplibs=yes
20389 ;;
20390 amigaos*)
20391 case $host_cpu in
20392 powerpc)
20393 lt_cv_sys_dlopen_deplibs=no
20394 ;;
20395 esac
20396 ;;
20397 darwin*)
20398 # Assuming the user has installed a libdl from somewhere, this is true
20399 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20400 lt_cv_sys_dlopen_deplibs=yes
20401 ;;
20402 freebsd* | dragonfly*)
20403 lt_cv_sys_dlopen_deplibs=yes
20404 ;;
20405 gnu* | linux* | k*bsd*-gnu)
20406 # GNU and its variants, using gnu ld.so (Glibc)
20407 lt_cv_sys_dlopen_deplibs=yes
20408 ;;
20409 hpux10*|hpux11*)
20410 lt_cv_sys_dlopen_deplibs=yes
20411 ;;
20412 interix*)
20413 lt_cv_sys_dlopen_deplibs=yes
20414 ;;
20415 irix[12345]*|irix6.[01]*)
20416 # Catch all versions of IRIX before 6.2, and indicate that we don't
20417 # know how it worked for any of those versions.
20418 lt_cv_sys_dlopen_deplibs=unknown
20419 ;;
20420 irix*)
20421 # The case above catches anything before 6.2, and it's known that
20422 # at 6.2 and later dlopen does load deplibs.
20423 lt_cv_sys_dlopen_deplibs=yes
20424 ;;
20425 netbsd*)
20426 lt_cv_sys_dlopen_deplibs=yes
20427 ;;
20428 openbsd*)
20429 lt_cv_sys_dlopen_deplibs=yes
20430 ;;
20431 osf[1234]*)
20432 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20433 # it did *not* use an RPATH in a shared library to find objects the
20434 # library depends on, so we explicitly say `no'.
20435 lt_cv_sys_dlopen_deplibs=no
20436 ;;
20437 osf5.0|osf5.0a|osf5.1)
20438 # dlopen *does* load deplibs and with the right loader patch applied
20439 # it even uses RPATH in a shared library to search for shared objects
20440 # that the library depends on, but there's no easy way to know if that
20441 # patch is installed. Since this is the case, all we can really
20442 # say is unknown -- it depends on the patch being installed. If
20443 # it is, this changes to `yes'. Without it, it would be `no'.
20444 lt_cv_sys_dlopen_deplibs=unknown
20445 ;;
20446 osf*)
20447 # the two cases above should catch all versions of osf <= 5.1. Read
20448 # the comments above for what we know about them.
20449 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20450 # is used to find them so we can finally say `yes'.
20451 lt_cv_sys_dlopen_deplibs=yes
20452 ;;
20453 qnx*)
20454 lt_cv_sys_dlopen_deplibs=yes
20455 ;;
20456 solaris*)
20457 lt_cv_sys_dlopen_deplibs=yes
20458 ;;
20459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20460 libltdl_cv_sys_dlopen_deplibs=yes
20461 ;;
20462 esac
20463
20464fi
20465{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
20466$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20467if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20468
20469cat >>confdefs.h <<\_ACEOF
20470#define LTDL_DLOPEN_DEPLIBS 1
20471_ACEOF
20472
20473fi
20474
20475:
20476
20477
20478for ac_header in argz.h
20479do
20480as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20481{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20482$as_echo_n "checking for $ac_header... " >&6; }
20483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20484 $as_echo_n "(cached) " >&6
20485else
20486 cat >conftest.$ac_ext <<_ACEOF
20487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h. */
20492$ac_includes_default
20493
20494#include <$ac_header>
20495_ACEOF
20496rm -f conftest.$ac_objext
20497if { (ac_try="$ac_compile"
20498case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501esac
20502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20503$as_echo "$ac_try_echo") >&5
20504 (eval "$ac_compile") 2>conftest.er1
20505 ac_status=$?
20506 grep -v '^ *+' conftest.er1 >conftest.err
20507 rm -f conftest.er1
20508 cat conftest.err >&5
20509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && {
20511 test -z "$ac_c_werror_flag" ||
20512 test ! -s conftest.err
20513 } && test -s conftest.$ac_objext; then
20514 eval "$as_ac_Header=yes"
20515else
20516 $as_echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 eval "$as_ac_Header=no"
20520fi
20521
20522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523fi
20524ac_res=`eval 'as_val=${'$as_ac_Header'}
20525 $as_echo "$as_val"'`
20526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20527$as_echo "$ac_res" >&6; }
20528as_val=`eval 'as_val=${'$as_ac_Header'}
20529 $as_echo "$as_val"'`
20530 if test "x$as_val" = x""yes; then
20531 cat >>confdefs.h <<_ACEOF
20532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20533_ACEOF
20534
20535fi
20536
20537done
20538
20539
20540{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
20541$as_echo_n "checking for error_t... " >&6; }
20542if test "${ac_cv_type_error_t+set}" = set; then
20543 $as_echo_n "(cached) " >&6
20544else
20545 ac_cv_type_error_t=no
20546cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552#if defined(HAVE_ARGZ_H)
20553# include <argz.h>
20554#endif
20555
20556int
20557main ()
20558{
20559if (sizeof (error_t))
20560 return 0;
20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext
20566if { (ac_try="$ac_compile"
20567case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570esac
20571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572$as_echo "$ac_try_echo") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h. */
20589#if defined(HAVE_ARGZ_H)
20590# include <argz.h>
20591#endif
20592
20593int
20594main ()
20595{
20596if (sizeof ((error_t)))
20597 return 0;
20598 ;
20599 return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext
20603if { (ac_try="$ac_compile"
20604case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607esac
20608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609$as_echo "$ac_try_echo") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20620 :
20621else
20622 $as_echo "$as_me: failed program was:" >&5
20623sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 ac_cv_type_error_t=yes
20626fi
20627
20628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629else
20630 $as_echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633
20634fi
20635
20636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637fi
20638{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20639$as_echo "$ac_cv_type_error_t" >&6; }
20640if test "x$ac_cv_type_error_t" = x""yes; then
20641
20642cat >>confdefs.h <<_ACEOF
20643#define HAVE_ERROR_T 1
20644_ACEOF
20645
20646
20647else
20648
20649cat >>confdefs.h <<\_ACEOF
20650#define error_t int
20651_ACEOF
20652
20653
20654cat >>confdefs.h <<\_ACEOF
20655#define __error_t_defined 1
20656_ACEOF
20657
20658fi
20659
20660
20661ARGZ_H=
20662
20663
20664
20665
20666
20667
20668
20669for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20670 argz_next argz_stringify
20671do
20672as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20673{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20674$as_echo_n "checking for $ac_func... " >&6; }
20675if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20676 $as_echo_n "(cached) " >&6
20677else
20678 cat >conftest.$ac_ext <<_ACEOF
20679/* confdefs.h. */
20680_ACEOF
20681cat confdefs.h >>conftest.$ac_ext
20682cat >>conftest.$ac_ext <<_ACEOF
20683/* end confdefs.h. */
20684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20686#define $ac_func innocuous_$ac_func
20687
20688/* System header to define __stub macros and hopefully few prototypes,
20689 which can conflict with char $ac_func (); below.
20690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20691 <limits.h> exists even on freestanding compilers. */
20692
20693#ifdef __STDC__
20694# include <limits.h>
20695#else
20696# include <assert.h>
20697#endif
20698
20699#undef $ac_func
20700
20701/* Override any GCC internal prototype to avoid an error.
20702 Use char because int might match the return type of a GCC
20703 builtin and then its argument prototype would still apply. */
20704#ifdef __cplusplus
20705extern "C"
20706#endif
20707char $ac_func ();
20708/* The GNU C library defines this for functions which it implements
20709 to always fail with ENOSYS. Some functions are actually named
20710 something starting with __ and the normal name is an alias. */
20711#if defined __stub_$ac_func || defined __stub___$ac_func
20712choke me
20713#endif
20714
20715int
20716main ()
20717{
20718return $ac_func ();
20719 ;
20720 return 0;
20721}
20722_ACEOF
20723rm -f conftest.$ac_objext conftest$ac_exeext
20724if { (ac_try="$ac_link"
20725case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728esac
20729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20730$as_echo "$ac_try_echo") >&5
20731 (eval "$ac_link") 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } && {
20738 test -z "$ac_c_werror_flag" ||
20739 test ! -s conftest.err
20740 } && test -s conftest$ac_exeext && {
20741 test "$cross_compiling" = yes ||
20742 $as_test_x conftest$ac_exeext
20743 }; then
20744 eval "$as_ac_var=yes"
20745else
20746 $as_echo "$as_me: failed program was:" >&5
20747sed 's/^/| /' conftest.$ac_ext >&5
20748
20749 eval "$as_ac_var=no"
20750fi
20751
20752rm -rf conftest.dSYM
20753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754 conftest$ac_exeext conftest.$ac_ext
20755fi
20756ac_res=`eval 'as_val=${'$as_ac_var'}
20757 $as_echo "$as_val"'`
20758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20759$as_echo "$ac_res" >&6; }
20760as_val=`eval 'as_val=${'$as_ac_var'}
20761 $as_echo "$as_val"'`
20762 if test "x$as_val" = x""yes; then
20763 cat >>confdefs.h <<_ACEOF
20764#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20765_ACEOF
20766
20767else
20768 ARGZ_H=argz.h;
20769
20770 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20771
20772fi
20773done
20774
20775
20776if test -z "$ARGZ_H"; then
20777 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
20778$as_echo_n "checking if argz actually works... " >&6; }
20779if test "${lt_cv_sys_argz_works+set}" = set; then
20780 $as_echo_n "(cached) " >&6
20781else
20782 case $host_os in #(
20783 *cygwin*)
20784 lt_cv_sys_argz_works=no
20785 if test "$cross_compiling" != no; then
20786 lt_cv_sys_argz_works="guessing no"
20787 else
20788 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20789 save_IFS=$IFS
20790 IFS=-.
20791 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20792 IFS=$save_IFS
20793 lt_os_major=${2-0}
20794 lt_os_minor=${3-0}
20795 lt_os_micro=${4-0}
20796 if test "$lt_os_major" -gt 1 \
20797 || { test "$lt_os_major" -eq 1 \
20798 && { test "$lt_os_minor" -gt 5 \
20799 || { test "$lt_os_minor" -eq 5 \
20800 && test "$lt_os_micro" -gt 24; }; }; }; then
20801 lt_cv_sys_argz_works=yes
20802 fi
20803 fi
20804 ;; #(
20805 *) lt_cv_sys_argz_works=yes ;;
20806 esac
20807fi
20808{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
20809$as_echo "$lt_cv_sys_argz_works" >&6; }
20810 if test $lt_cv_sys_argz_works = yes; then
20811
20812cat >>confdefs.h <<\_ACEOF
20813#define HAVE_WORKING_ARGZ 1
20814_ACEOF
20815
20816else
20817 ARGZ_H=argz.h
20818
20819
20820 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20821
20822fi
20823
20824fi
20825
20826
20827
20828
20829{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20830$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20831if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20832 $as_echo_n "(cached) " >&6
20833else
20834 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20835 libltdl_cv_preloaded_symbols=yes
20836 else
20837 libltdl_cv_preloaded_symbols=no
20838 fi
20839
20840fi
20841{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20842$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20843if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20844
20845cat >>confdefs.h <<\_ACEOF
20846#define HAVE_PRELOADED_SYMBOLS 1
20847_ACEOF
20848
20849fi
20850
20851# Set options
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863# Check whether --with-included_ltdl was given.
20864if test "${with_included_ltdl+set}" = set; then
20865 withval=$with_included_ltdl;
20866fi
20867
20868
20869if test "x$with_included_ltdl" != xyes; then
20870 # We are not being forced to use the included libltdl sources, so
20871 # decide whether there is a useful installed version we can use.
20872 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
20873$as_echo_n "checking for ltdl.h... " >&6; }
20874if test "${ac_cv_header_ltdl_h+set}" = set; then
20875 $as_echo_n "(cached) " >&6
20876else
20877 cat >conftest.$ac_ext <<_ACEOF
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
20883$ac_includes_default
20884
20885
20886#include <ltdl.h>
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (ac_try="$ac_compile"
20890case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20893esac
20894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20895$as_echo "$ac_try_echo") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 ac_cv_header_ltdl_h=yes
20907else
20908 $as_echo "$as_me: failed program was:" >&5
20909sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_cv_header_ltdl_h=no
20912fi
20913
20914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915fi
20916{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20917$as_echo "$ac_cv_header_ltdl_h" >&6; }
20918if test "x$ac_cv_header_ltdl_h" = x""yes; then
20919 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
20920$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
20921if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
20922 $as_echo_n "(cached) " >&6
20923else
20924 cat >conftest.$ac_ext <<_ACEOF
20925/* confdefs.h. */
20926_ACEOF
20927cat confdefs.h >>conftest.$ac_ext
20928cat >>conftest.$ac_ext <<_ACEOF
20929/* end confdefs.h. */
20930$ac_includes_default
20931 #include <ltdl.h>
20932
20933int
20934main ()
20935{
20936#ifndef lt_dlinterface_register
20937 (void) lt_dlinterface_register;
20938#endif
20939
20940 ;
20941 return 0;
20942}
20943_ACEOF
20944rm -f conftest.$ac_objext
20945if { (ac_try="$ac_compile"
20946case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949esac
20950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20951$as_echo "$ac_try_echo") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } && {
20959 test -z "$ac_c_werror_flag" ||
20960 test ! -s conftest.err
20961 } && test -s conftest.$ac_objext; then
20962 ac_cv_have_decl_lt_dlinterface_register=yes
20963else
20964 $as_echo "$as_me: failed program was:" >&5
20965sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 ac_cv_have_decl_lt_dlinterface_register=no
20968fi
20969
20970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20971fi
20972{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
20973$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
20974if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
20975 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
20976$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20977if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
20978 $as_echo_n "(cached) " >&6
20979else
20980 ac_check_lib_save_LIBS=$LIBS
20981LIBS="-lltdl $LIBS"
20982cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
20988
20989/* Override any GCC internal prototype to avoid an error.
20990 Use char because int might match the return type of a GCC
20991 builtin and then its argument prototype would still apply. */
20992#ifdef __cplusplus
20993extern "C"
20994#endif
20995char lt_dladvise_preload ();
20996int
20997main ()
20998{
20999return lt_dladvise_preload ();
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext conftest$ac_exeext
21005if { (ac_try="$ac_link"
21006case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009esac
21010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21011$as_echo "$ac_try_echo") >&5
21012 (eval "$ac_link") 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest$ac_exeext && {
21022 test "$cross_compiling" = yes ||
21023 $as_test_x conftest$ac_exeext
21024 }; then
21025 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21026else
21027 $as_echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030 ac_cv_lib_ltdl_lt_dladvise_preload=no
21031fi
21032
21033rm -rf conftest.dSYM
21034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035 conftest$ac_exeext conftest.$ac_ext
21036LIBS=$ac_check_lib_save_LIBS
21037fi
21038{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21039$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21040if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
21041 with_included_ltdl=no
21042else
21043 with_included_ltdl=yes
21044fi
21045
21046else
21047 with_included_ltdl=yes
21048fi
21049
21050else
21051 with_included_ltdl=yes
21052fi
21053
21054
21055fi
21056
21057
21058
21059
21060# Check whether --with-ltdl_include was given.
21061if test "${with_ltdl_include+set}" = set; then
21062 withval=$with_ltdl_include;
21063fi
21064
21065
21066if test -n "$with_ltdl_include"; then
21067 if test -f "$with_ltdl_include/ltdl.h"; then :
21068 else
21069 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
21070$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
21071 { (exit 1); exit 1; }; }
21072 fi
21073else
21074 with_ltdl_include=no
21075fi
21076
21077
21078# Check whether --with-ltdl_lib was given.
21079if test "${with_ltdl_lib+set}" = set; then
21080 withval=$with_ltdl_lib;
21081fi
21082
21083
21084if test -n "$with_ltdl_lib"; then
21085 if test -f "$with_ltdl_lib/libltdl.la"; then :
21086 else
21087 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
21088$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
21089 { (exit 1); exit 1; }; }
21090 fi
21091else
21092 with_ltdl_lib=no
21093fi
21094
21095case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21096 ,yes,no,no,)
21097 case $enable_ltdl_convenience in
21098 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
21099$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
21100 { (exit 1); exit 1; }; } ;;
21101 "") enable_ltdl_convenience=yes
21102 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21103esac
21104LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21105LTDLDEPS=$LIBLTDL
21106LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21107
21108
21109
21110
21111
21112# For backwards non-gettext consistent compatibility...
21113INCLTDL="$LTDLINCL"
21114
21115
21116 ;;
21117 ,no,no,no,)
21118 # If the included ltdl is not to be used, then use the
21119 # preinstalled libltdl we found.
21120
21121cat >>confdefs.h <<\_ACEOF
21122#define HAVE_LTDL 1
21123_ACEOF
21124
21125 LIBLTDL=-lltdl
21126 LTDLDEPS=
21127 LTDLINCL=
21128 ;;
21129 ,no*,no,*)
21130 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
21131$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
21132 { (exit 1); exit 1; }; }
21133 ;;
21134 *) with_included_ltdl=no
21135 LIBLTDL="-L$with_ltdl_lib -lltdl"
21136 LTDLDEPS=
21137 LTDLINCL="-I$with_ltdl_include"
21138 ;;
21139esac
21140INCLTDL="$LTDLINCL"
21141
21142# Report our decision...
21143{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
21144$as_echo_n "checking where to find libltdl headers... " >&6; }
21145{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
21146$as_echo "$LTDLINCL" >&6; }
21147{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
21148$as_echo_n "checking where to find libltdl library... " >&6; }
21149{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
21150$as_echo "$LIBLTDL" >&6; }
21151
21152
21153
21154# Check whether --enable-ltdl-install was given.
21155if test "${enable_ltdl_install+set}" = set; then
21156 enableval=$enable_ltdl_install;
21157fi
21158
21159
21160case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21161 *yes*) ;;
21162 *) enable_ltdl_convenience=yes ;;
21163esac
21164
21165 if test x"${enable_ltdl_install-no}" != xno; then
21166 INSTALL_LTDL_TRUE=
21167 INSTALL_LTDL_FALSE='#'
21168else
21169 INSTALL_LTDL_TRUE='#'
21170 INSTALL_LTDL_FALSE=
21171fi
21172
21173 if test x"${enable_ltdl_convenience-no}" != xno; then
21174 CONVENIENCE_LTDL_TRUE=
21175 CONVENIENCE_LTDL_FALSE='#'
21176else
21177 CONVENIENCE_LTDL_TRUE='#'
21178 CONVENIENCE_LTDL_FALSE=
21179fi
21180
21181
21182
21183
21184
21185
21186
21187# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21188# the user used. This is so that ltdl.h can pick up the parent projects
21189# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21190# definitions required by ltdl.c.
21191# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21202do
21203as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21204{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21205$as_echo_n "checking for $ac_header... " >&6; }
21206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207 $as_echo_n "(cached) " >&6
21208else
21209 cat >conftest.$ac_ext <<_ACEOF
21210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
21215$ac_includes_default
21216
21217#include <$ac_header>
21218_ACEOF
21219rm -f conftest.$ac_objext
21220if { (ac_try="$ac_compile"
21221case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21226$as_echo "$ac_try_echo") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.$ac_objext; then
21237 eval "$as_ac_Header=yes"
21238else
21239 $as_echo "$as_me: failed program was:" >&5
21240sed 's/^/| /' conftest.$ac_ext >&5
21241
21242 eval "$as_ac_Header=no"
21243fi
21244
21245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246fi
21247ac_res=`eval 'as_val=${'$as_ac_Header'}
21248 $as_echo "$as_val"'`
21249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21250$as_echo "$ac_res" >&6; }
21251as_val=`eval 'as_val=${'$as_ac_Header'}
21252 $as_echo "$as_val"'`
21253 if test "x$as_val" = x""yes; then
21254 cat >>confdefs.h <<_ACEOF
21255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21256_ACEOF
21257
21258fi
21259
21260done
21261
21262
21263
21264
21265
21266for ac_func in closedir opendir readdir
21267do
21268as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21269{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21270$as_echo_n "checking for $ac_func... " >&6; }
21271if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21272 $as_echo_n "(cached) " >&6
21273else
21274 cat >conftest.$ac_ext <<_ACEOF
21275/* confdefs.h. */
21276_ACEOF
21277cat confdefs.h >>conftest.$ac_ext
21278cat >>conftest.$ac_ext <<_ACEOF
21279/* end confdefs.h. */
21280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21282#define $ac_func innocuous_$ac_func
21283
21284/* System header to define __stub macros and hopefully few prototypes,
21285 which can conflict with char $ac_func (); below.
21286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21287 <limits.h> exists even on freestanding compilers. */
21288
21289#ifdef __STDC__
21290# include <limits.h>
21291#else
21292# include <assert.h>
21293#endif
21294
21295#undef $ac_func
21296
21297/* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21300#ifdef __cplusplus
21301extern "C"
21302#endif
21303char $ac_func ();
21304/* The GNU C library defines this for functions which it implements
21305 to always fail with ENOSYS. Some functions are actually named
21306 something starting with __ and the normal name is an alias. */
21307#if defined __stub_$ac_func || defined __stub___$ac_func
21308choke me
21309#endif
21310
21311int
21312main ()
21313{
21314return $ac_func ();
21315 ;
21316 return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext conftest$ac_exeext
21320if { (ac_try="$ac_link"
21321case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21324esac
21325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21326$as_echo "$ac_try_echo") >&5
21327 (eval "$ac_link") 2>conftest.er1
21328 ac_status=$?
21329 grep -v '^ *+' conftest.er1 >conftest.err
21330 rm -f conftest.er1
21331 cat conftest.err >&5
21332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } && {
21334 test -z "$ac_c_werror_flag" ||
21335 test ! -s conftest.err
21336 } && test -s conftest$ac_exeext && {
21337 test "$cross_compiling" = yes ||
21338 $as_test_x conftest$ac_exeext
21339 }; then
21340 eval "$as_ac_var=yes"
21341else
21342 $as_echo "$as_me: failed program was:" >&5
21343sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 eval "$as_ac_var=no"
21346fi
21347
21348rm -rf conftest.dSYM
21349rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21350 conftest$ac_exeext conftest.$ac_ext
21351fi
21352ac_res=`eval 'as_val=${'$as_ac_var'}
21353 $as_echo "$as_val"'`
21354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21355$as_echo "$ac_res" >&6; }
21356as_val=`eval 'as_val=${'$as_ac_var'}
21357 $as_echo "$as_val"'`
21358 if test "x$as_val" = x""yes; then
21359 cat >>confdefs.h <<_ACEOF
21360#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21361_ACEOF
21362
21363else
21364
21365
21366 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21367
21368fi
21369done
21370
21371
21372
21373for ac_func in strlcat strlcpy
21374do
21375as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21376{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21377$as_echo_n "checking for $ac_func... " >&6; }
21378if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21379 $as_echo_n "(cached) " >&6
21380else
21381 cat >conftest.$ac_ext <<_ACEOF
21382/* confdefs.h. */
21383_ACEOF
21384cat confdefs.h >>conftest.$ac_ext
21385cat >>conftest.$ac_ext <<_ACEOF
21386/* end confdefs.h. */
21387/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21389#define $ac_func innocuous_$ac_func
21390
21391/* System header to define __stub macros and hopefully few prototypes,
21392 which can conflict with char $ac_func (); below.
21393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21394 <limits.h> exists even on freestanding compilers. */
21395
21396#ifdef __STDC__
21397# include <limits.h>
21398#else
21399# include <assert.h>
21400#endif
21401
21402#undef $ac_func
21403
21404/* Override any GCC internal prototype to avoid an error.
21405 Use char because int might match the return type of a GCC
21406 builtin and then its argument prototype would still apply. */
21407#ifdef __cplusplus
21408extern "C"
21409#endif
21410char $ac_func ();
21411/* The GNU C library defines this for functions which it implements
21412 to always fail with ENOSYS. Some functions are actually named
21413 something starting with __ and the normal name is an alias. */
21414#if defined __stub_$ac_func || defined __stub___$ac_func
21415choke me
21416#endif
21417
21418int
21419main ()
21420{
21421return $ac_func ();
21422 ;
21423 return 0;
21424}
21425_ACEOF
21426rm -f conftest.$ac_objext conftest$ac_exeext
21427if { (ac_try="$ac_link"
21428case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431esac
21432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21433$as_echo "$ac_try_echo") >&5
21434 (eval "$ac_link") 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest$ac_exeext && {
21444 test "$cross_compiling" = yes ||
21445 $as_test_x conftest$ac_exeext
21446 }; then
21447 eval "$as_ac_var=yes"
21448else
21449 $as_echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452 eval "$as_ac_var=no"
21453fi
21454
21455rm -rf conftest.dSYM
21456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21457 conftest$ac_exeext conftest.$ac_ext
21458fi
21459ac_res=`eval 'as_val=${'$as_ac_var'}
21460 $as_echo "$as_val"'`
21461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21462$as_echo "$ac_res" >&6; }
21463as_val=`eval 'as_val=${'$as_ac_var'}
21464 $as_echo "$as_val"'`
21465 if test "x$as_val" = x""yes; then
21466 cat >>confdefs.h <<_ACEOF
21467#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21468_ACEOF
21469
21470else
21471
21472
21473 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21474
21475fi
21476done
21477
21478
21479
21480cat >>confdefs.h <<_ACEOF
21481#define LT_LIBEXT "$libext"
21482_ACEOF
21483
21484
21485name=ltdl
21486LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
21487
21488
21489
21490
21491
21492
21493
21494
21495# Only expand once:
21496
21497
21498
21499# Check to see if building shared libraries
21500libtool_build_shared_libs='no'
21501if test "$enable_shared" = 'yes'; then
21502 libtool_build_shared_libs='yes'
21503fi
21504
21505# Check to see if building static libraries
21506libtool_build_static_libs='no'
21507if test "$enable_static" = 'yes'; then
21508 libtool_build_static_libs='yes'
21509fi
21510
21511# MinGW and Cygwin can't build C++ DLLs which support exceptions.
21512if test "${StaticCplusPlusLibraries}" = 'yes'; then
21513 LTCXXLIBOPTS='--static'
21514
21515fi
21516
21517#
21518# Enable support for building loadable modules
21519#
21520
21521# Check whether --with-modules was given.
21522if test "${with_modules+set}" = set; then
21523 withval=$with_modules; with_modules=$withval
21524else
21525 with_modules=$libtool_build_shared_libs
21526fi
21527
21528
21529# Only allow building loadable modules if we are building shared libraries
21530if test "$with_modules" != 'no' ; then
21531 if test "$libtool_build_shared_libs" = 'no'; then
21532 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21533$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21534 with_modules='no'
21535 fi
21536fi
21537if test "$with_modules" != 'no'; then
21538
21539cat >>confdefs.h <<\_ACEOF
21540#define BUILD_MODULES 1
21541_ACEOF
21542
21543fi
21544 if test "$with_modules" != 'no'; then
21545 WITH_MODULES_TRUE=
21546 WITH_MODULES_FALSE='#'
21547else
21548 WITH_MODULES_TRUE='#'
21549 WITH_MODULES_FALSE=
21550fi
21551
21552
21553# Enable building/use of libltdl if we are building shared libraries regardless
21554# of whether modules are built or not.
21555with_ltdl='no'
21556if test "$libtool_build_shared_libs" != 'no'; then
21557 with_ltdl='yes'
21558fi
21559
21560 if test "$with_ltdl" != 'no'; then
21561 WITH_LTDL_TRUE=
21562 WITH_LTDL_FALSE='#'
21563else
21564 WITH_LTDL_TRUE='#'
21565 WITH_LTDL_FALSE=
21566fi
21567
21568if test "$with_ltdl" != 'no'; then
21569
21570cat >>confdefs.h <<\_ACEOF
21571#define LTDL_DELEGATE 1
21572_ACEOF
21573
21574
21575 # Set DLLDFLAGS
21576 if test X"$enable_shared" = Xyes; then
21577 DLLDFLAGS=-export-dynamic
21578
21579 fi
21580fi
21581
21582# Enable build using delegate libraries built in subdirectories rather than installed
21583# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21584# Check whether --enable-delegate-build was given.
21585if test "${enable_delegate_build+set}" = set; then
21586 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21587else
21588 enable_delegate_build='no'
21589fi
21590
21591
21592# Check whether --enable-deprecated was given.
21593if test "${enable_deprecated+set}" = set; then
21594 enableval=$enable_deprecated; enable_deprecated=$enableval
21595else
21596 enable_deprecated='no'
21597fi
21598
21599
21600if test "$enable_deprecated" = 'yes'; then
21601
21602cat >>confdefs.h <<\_ACEOF
21603#define EXCLUDE_DEPRECATED 1
21604_ACEOF
21605
21606else
21607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21608fi
21609
21610# Build a version of ImageMagick which operates uninstalled.
21611# Used to build distributions located via MAGICK_HOME / executable path
21612# Check whether --enable-installed was given.
21613if test "${enable_installed+set}" = set; then
21614 enableval=$enable_installed; enable_installed=$enableval
21615else
21616 enable_installed='yes'
21617fi
21618
21619
21620if test "$enable_installed" = 'yes'; then
21621
21622cat >>confdefs.h <<\_ACEOF
21623#define INSTALLED_SUPPORT 1
21624_ACEOF
21625
21626else
21627 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21628fi
21629
21630# Permit enciphering and deciphering image pixels.
21631# Check whether --enable-cipher was given.
21632if test "${enable_cipher+set}" = set; then
21633 enableval=$enable_cipher; enable_cipher=$enableval
21634else
21635 enable_cipher='yes'
21636fi
21637
21638
21639if test "$enable_cipher" = 'yes'; then
21640
21641cat >>confdefs.h <<\_ACEOF
21642#define CIPHER_SUPPORT 1
21643_ACEOF
21644
21645fi
21646
21647# Build an embeddable version of ImageMagick.
21648# Check whether --enable-embeddable was given.
21649if test "${enable_embeddable+set}" = set; then
21650 enableval=$enable_embeddable; enable_embeddable=$enableval
21651else
21652 enable_embeddable='no'
21653fi
21654
21655
21656if test "$enable_embeddable" = 'yes'; then
21657
21658cat >>confdefs.h <<\_ACEOF
21659#define EMBEDDABLE_SUPPORT 1
21660_ACEOF
21661
21662fi
21663
21664# Build a high dynamic range version of ImageMagick.
21665# Check whether --enable-hdri was given.
21666if test "${enable_hdri+set}" = set; then
21667 enableval=$enable_hdri; enable_hdri=$enableval
21668else
21669 enable_hdri='no'
21670fi
21671
21672
21673MAGICK_HDRI=""
21674if test "$enable_hdri" = 'yes'; then
21675 MAGICK_HDRI="HDRI"
21676
21677cat >>confdefs.h <<\_ACEOF
21678#define HDRI_SUPPORT 1
21679_ACEOF
21680
21681fi
21682
cristy3ed852e2009-09-05 21:47:34 +000021683# Build a version of ImageMagick with assert statements.
21684# Check whether --enable-assert was given.
21685if test "${enable_assert+set}" = set; then
21686 enableval=$enable_assert; enable_assert=$enableval
21687else
21688 enable_assert='yes'
21689fi
21690
21691
21692if test "$enable_assert" = 'no'; then
21693
21694cat >>confdefs.h <<\_ACEOF
21695#define NDEBUG 1
21696_ACEOF
21697
21698fi
21699
21700# Add configure option --enable-maintainer-mode which enables dependency
21701# checking and generation useful to package maintainers. This is made an
21702# option to avoid confusing end users.
21703
21704{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21705$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21706 # Check whether --enable-maintainer-mode was given.
21707if test "${enable_maintainer_mode+set}" = set; then
21708 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21709else
21710 USE_MAINTAINER_MODE=no
21711fi
21712
21713 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21714$as_echo "$USE_MAINTAINER_MODE" >&6; }
21715 if test $USE_MAINTAINER_MODE = yes; then
21716 MAINTAINER_MODE_TRUE=
21717 MAINTAINER_MODE_FALSE='#'
21718else
21719 MAINTAINER_MODE_TRUE='#'
21720 MAINTAINER_MODE_FALSE=
21721fi
21722
21723 MAINT=$MAINTAINER_MODE_TRUE
21724
21725
21726
21727
21728# Enable ccmalloc memory debugging support
21729# Check whether --enable-ccmalloc was given.
21730if test "${enable_ccmalloc+set}" = set; then
21731 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21732else
21733 enable_ccmalloc='no'
21734fi
21735
21736
21737# Enable Electric Fence memory debugging support
21738# Check whether --enable-efence was given.
21739if test "${enable_efence+set}" = set; then
21740 enableval=$enable_efence; enable_efence=$enableval
21741else
21742 enable_efence='no'
21743fi
21744
21745
21746# Enable prof-based profiling support
21747# Check whether --enable-prof was given.
21748if test "${enable_prof+set}" = set; then
21749 enableval=$enable_prof; enable_prof=$enableval
21750else
21751 enable_prof='no'
21752fi
21753
21754
21755# Enable gprof-based profiling support
21756# Check whether --enable-gprof was given.
21757if test "${enable_gprof+set}" = set; then
21758 enableval=$enable_gprof; enable_gprof=$enableval
21759else
21760 enable_gprof='no'
21761fi
21762
21763
21764# Enable gcov-based profiling support
21765# Check whether --enable-gcov was given.
21766if test "${enable_gcov+set}" = set; then
21767 enableval=$enable_gcov; enable_gcov=$enableval
21768else
21769 enable_gcov='no'
21770fi
21771
21772
21773enable_profiling='no'
21774if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21775 enable_profiling='yes'
21776 if test "$libtool_build_shared_libs" = 'yes'; then
21777 echo "Warning: Can not profile code using shared libraries"
21778 fi
21779fi
21780
21781# Magick API method prefix
21782
21783# Check whether --with-method-prefix was given.
21784if test "${with_method_prefix+set}" = set; then
21785 withval=$with_method_prefix; with_method_prefix=$enableval
21786else
21787 with_method_prefix=''
21788fi
21789
21790
21791if test "$with_method_prefix" != ''; then
21792
21793cat >>confdefs.h <<_ACEOF
21794#define NAMESPACE_PREFIX $with_method_prefix
21795_ACEOF
21796
21797fi
21798
21799# Number of bits in a Quantum
21800
21801# Check whether --with-quantum-depth was given.
21802if test "${with_quantum_depth+set}" = set; then
21803 withval=$with_quantum_depth; with_quantum_depth=$withval
21804else
21805 with_quantum_depth=16
21806fi
21807
21808
21809if test "$with_quantum_depth" != '8'; then
21810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21811fi
21812
21813case "${with_quantum_depth}" in
21814 8 ) ;;
21815 16 ) ;;
21816 32 ) ;;
21817 64 ) ;;
21818 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
21819$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
21820 { (exit 16); exit 16; }; } ;;
21821esac
21822QUANTUM_DEPTH="$with_quantum_depth"
21823
21824cat >>confdefs.h <<_ACEOF
21825#define QUANTUM_DEPTH $QUANTUM_DEPTH
21826_ACEOF
21827
21828
21829# Set pixel cache threshold
21830
21831# Check whether --with-cache was given.
21832if test "${with_cache+set}" = set; then
21833 withval=$with_cache; with_cache=$withval
21834else
21835 with_cache=''
21836fi
21837
21838
21839if test "$with_cache" != ''; then
21840
21841cat >>confdefs.h <<_ACEOF
21842#define PixelCacheThreshold $with_cache
21843_ACEOF
21844
21845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21846fi
21847
21848# Disable/Enable support for full delegate paths
21849
21850# Check whether --with-frozenpaths was given.
21851if test "${with_frozenpaths+set}" = set; then
21852 withval=$with_frozenpaths; with_frozenpaths=$withval
21853else
21854 with_frozenpaths='no'
21855fi
21856
21857
21858# Enable build/install of Magick++
21859
21860# Check whether --with-magick-plus-plus was given.
21861if test "${with_magick_plus_plus+set}" = set; then
21862 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21863else
21864 with_magick_plus_plus='yes'
21865fi
21866
21867
21868# Disable build/install of PerlMagick.
21869
21870# Check whether --with-perl was given.
21871if test "${with_perl+set}" = set; then
21872 withval=$with_perl; with_perl=$withval
21873else
21874 with_perl=$libtool_build_shared_libs
21875fi
21876
21877
21878# Options to pass when configuring PerlMagick
21879
21880# Check whether --with-perl-options was given.
21881if test "${with_perl_options+set}" = set; then
21882 withval=$with_perl_options;
21883fi
21884
21885
21886PERL_MAKE_OPTIONS=$with_perl_options
21887
21888
21889
21890# Enable umem, object-caching memory allocation library.
21891
21892# Check whether --with-umem was given.
21893if test "${with_umem+set}" = set; then
21894 withval=$with_umem; with_umem=$withval
21895else
21896 with_umem='no'
21897fi
21898
21899if test "$with_umem" != 'yes' ; then
21900 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21901fi
21902
21903#
21904# Specify path to shared libstdc++ if not in normal location
21905#
21906
21907# Check whether --with-libstdc was given.
21908if test "${with_libstdc+set}" = set; then
21909 withval=$with_libstdc; with_libstdc=$withval
21910else
21911 with_libstdc=''
21912fi
21913
21914
21915if test "$with_libstdc" != ''; then
21916 if test -d "$with_libstdc"; then
21917 LIBSTDCLDFLAGS="-L$with_libstdc"
21918 fi
21919fi
21920
21921
21922# Does gcc required -traditional?
21923if test $ac_cv_c_compiler_gnu = yes; then
21924 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21925$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21926if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21927 $as_echo_n "(cached) " >&6
21928else
21929 ac_pattern="Autoconf.*'x'"
21930 cat >conftest.$ac_ext <<_ACEOF
21931/* confdefs.h. */
21932_ACEOF
21933cat confdefs.h >>conftest.$ac_ext
21934cat >>conftest.$ac_ext <<_ACEOF
21935/* end confdefs.h. */
21936#include <sgtty.h>
21937Autoconf TIOCGETP
21938_ACEOF
21939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21940 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21941 ac_cv_prog_gcc_traditional=yes
21942else
21943 ac_cv_prog_gcc_traditional=no
21944fi
21945rm -f conftest*
21946
21947
21948 if test $ac_cv_prog_gcc_traditional = no; then
21949 cat >conftest.$ac_ext <<_ACEOF
21950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
21955#include <termio.h>
21956Autoconf TCGETA
21957_ACEOF
21958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21959 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21960 ac_cv_prog_gcc_traditional=yes
21961fi
21962rm -f conftest*
21963
21964 fi
21965fi
21966{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21967$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21968 if test $ac_cv_prog_gcc_traditional = yes; then
21969 CC="$CC -traditional"
21970 fi
21971fi
21972
21973
21974########
21975#
21976# Set defines required to build DLLs and modules using MinGW
21977#
21978########
21979# These options are set for multi-thread DLL module build
21980# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21981# module: _DLL
21982# executable/Magick++: _DLL _MAGICKMOD_
21983MODULE_EXTRA_CPPFLAGS=''
21984LIBRARY_EXTRA_CPPFLAGS=''
21985if test "${native_win32_build}" = 'yes'; then
21986 if test "${libtool_build_shared_libs}" = 'yes'; then
21987 CPPFLAGS="$CPPFLAGS -D_DLL"
21988 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21989 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21990 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21991 if test "$with_modules" = 'yes'; then
21992 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21993 else
21994 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21995 fi
21996 else
21997 CPPFLAGS="$CPPFLAGS -D_LIB"
21998 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21999 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22000 fi
22001 if test "$with_threads" = 'yes'; then
22002 CPPFLAGS="$CPPFLAGS -D_MT"
22003 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22004 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22005 fi
22006fi
22007
22008
22009
22010# Check standard headers
22011{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22012$as_echo_n "checking for ANSI C header files... " >&6; }
22013if test "${ac_cv_header_stdc+set}" = set; then
22014 $as_echo_n "(cached) " >&6
22015else
22016 cat >conftest.$ac_ext <<_ACEOF
22017/* confdefs.h. */
22018_ACEOF
22019cat confdefs.h >>conftest.$ac_ext
22020cat >>conftest.$ac_ext <<_ACEOF
22021/* end confdefs.h. */
22022#include <stdlib.h>
22023#include <stdarg.h>
22024#include <string.h>
22025#include <float.h>
22026
22027int
22028main ()
22029{
22030
22031 ;
22032 return 0;
22033}
22034_ACEOF
22035rm -f conftest.$ac_objext
22036if { (ac_try="$ac_compile"
22037case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22040esac
22041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22042$as_echo "$ac_try_echo") >&5
22043 (eval "$ac_compile") 2>conftest.er1
22044 ac_status=$?
22045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
22048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest.$ac_objext; then
22053 ac_cv_header_stdc=yes
22054else
22055 $as_echo "$as_me: failed program was:" >&5
22056sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 ac_cv_header_stdc=no
22059fi
22060
22061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22062
22063if test $ac_cv_header_stdc = yes; then
22064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22065 cat >conftest.$ac_ext <<_ACEOF
22066/* confdefs.h. */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h. */
22071#include <string.h>
22072
22073_ACEOF
22074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22075 $EGREP "memchr" >/dev/null 2>&1; then
22076 :
22077else
22078 ac_cv_header_stdc=no
22079fi
22080rm -f conftest*
22081
22082fi
22083
22084if test $ac_cv_header_stdc = yes; then
22085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22086 cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h. */
22092#include <stdlib.h>
22093
22094_ACEOF
22095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22096 $EGREP "free" >/dev/null 2>&1; then
22097 :
22098else
22099 ac_cv_header_stdc=no
22100fi
22101rm -f conftest*
22102
22103fi
22104
22105if test $ac_cv_header_stdc = yes; then
22106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22107 if test "$cross_compiling" = yes; then
22108 :
22109else
22110 cat >conftest.$ac_ext <<_ACEOF
22111/* confdefs.h. */
22112_ACEOF
22113cat confdefs.h >>conftest.$ac_ext
22114cat >>conftest.$ac_ext <<_ACEOF
22115/* end confdefs.h. */
22116#include <ctype.h>
22117#include <stdlib.h>
22118#if ((' ' & 0x0FF) == 0x020)
22119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22121#else
22122# define ISLOWER(c) \
22123 (('a' <= (c) && (c) <= 'i') \
22124 || ('j' <= (c) && (c) <= 'r') \
22125 || ('s' <= (c) && (c) <= 'z'))
22126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22127#endif
22128
22129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22130int
22131main ()
22132{
22133 int i;
22134 for (i = 0; i < 256; i++)
22135 if (XOR (islower (i), ISLOWER (i))
22136 || toupper (i) != TOUPPER (i))
22137 return 2;
22138 return 0;
22139}
22140_ACEOF
22141rm -f conftest$ac_exeext
22142if { (ac_try="$ac_link"
22143case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146esac
22147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22148$as_echo "$ac_try_echo") >&5
22149 (eval "$ac_link") 2>&5
22150 ac_status=$?
22151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156esac
22157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158$as_echo "$ac_try_echo") >&5
22159 (eval "$ac_try") 2>&5
22160 ac_status=$?
22161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 :
22164else
22165 $as_echo "$as_me: program exited with status $ac_status" >&5
22166$as_echo "$as_me: failed program was:" >&5
22167sed 's/^/| /' conftest.$ac_ext >&5
22168
22169( exit $ac_status )
22170ac_cv_header_stdc=no
22171fi
22172rm -rf conftest.dSYM
22173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22174fi
22175
22176
22177fi
22178fi
22179{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22180$as_echo "$ac_cv_header_stdc" >&6; }
22181if test $ac_cv_header_stdc = yes; then
22182
22183cat >>confdefs.h <<\_ACEOF
22184#define STDC_HEADERS 1
22185_ACEOF
22186
22187fi
22188
22189if ! test x"$ac_cv_header_stdc" = x"yes"; then
22190 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
22191 header files. Compilation cannot proceed. Please install the ANSI C
22192 headers and rerun this script." >&5
22193$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22194 header files. Compilation cannot proceed. Please install the ANSI C
22195 headers and rerun this script." >&2;};
22196fi
22197
22198
22199
22200
22201
22202ac_header_dirent=no
22203for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22204 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22205{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22206$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22208 $as_echo_n "(cached) " >&6
22209else
22210 cat >conftest.$ac_ext <<_ACEOF
22211/* confdefs.h. */
22212_ACEOF
22213cat confdefs.h >>conftest.$ac_ext
22214cat >>conftest.$ac_ext <<_ACEOF
22215/* end confdefs.h. */
22216#include <sys/types.h>
22217#include <$ac_hdr>
22218
22219int
22220main ()
22221{
22222if ((DIR *) 0)
22223return 0;
22224 ;
22225 return 0;
22226}
22227_ACEOF
22228rm -f conftest.$ac_objext
22229if { (ac_try="$ac_compile"
22230case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22233esac
22234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235$as_echo "$ac_try_echo") >&5
22236 (eval "$ac_compile") 2>conftest.er1
22237 ac_status=$?
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest.$ac_objext; then
22246 eval "$as_ac_Header=yes"
22247else
22248 $as_echo "$as_me: failed program was:" >&5
22249sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 eval "$as_ac_Header=no"
22252fi
22253
22254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255fi
22256ac_res=`eval 'as_val=${'$as_ac_Header'}
22257 $as_echo "$as_val"'`
22258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22259$as_echo "$ac_res" >&6; }
22260as_val=`eval 'as_val=${'$as_ac_Header'}
22261 $as_echo "$as_val"'`
22262 if test "x$as_val" = x""yes; then
22263 cat >>confdefs.h <<_ACEOF
22264#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22265_ACEOF
22266
22267ac_header_dirent=$ac_hdr; break
22268fi
22269
22270done
22271# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22272if test $ac_header_dirent = dirent.h; then
22273 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22274$as_echo_n "checking for library containing opendir... " >&6; }
22275if test "${ac_cv_search_opendir+set}" = set; then
22276 $as_echo_n "(cached) " >&6
22277else
22278 ac_func_search_save_LIBS=$LIBS
22279cat >conftest.$ac_ext <<_ACEOF
22280/* confdefs.h. */
22281_ACEOF
22282cat confdefs.h >>conftest.$ac_ext
22283cat >>conftest.$ac_ext <<_ACEOF
22284/* end confdefs.h. */
22285
22286/* Override any GCC internal prototype to avoid an error.
22287 Use char because int might match the return type of a GCC
22288 builtin and then its argument prototype would still apply. */
22289#ifdef __cplusplus
22290extern "C"
22291#endif
22292char opendir ();
22293int
22294main ()
22295{
22296return opendir ();
22297 ;
22298 return 0;
22299}
22300_ACEOF
22301for ac_lib in '' dir; do
22302 if test -z "$ac_lib"; then
22303 ac_res="none required"
22304 else
22305 ac_res=-l$ac_lib
22306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22307 fi
22308 rm -f conftest.$ac_objext conftest$ac_exeext
22309if { (ac_try="$ac_link"
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_link") 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_exeext && {
22326 test "$cross_compiling" = yes ||
22327 $as_test_x conftest$ac_exeext
22328 }; then
22329 ac_cv_search_opendir=$ac_res
22330else
22331 $as_echo "$as_me: failed program was:" >&5
22332sed 's/^/| /' conftest.$ac_ext >&5
22333
22334
22335fi
22336
22337rm -rf conftest.dSYM
22338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22339 conftest$ac_exeext
22340 if test "${ac_cv_search_opendir+set}" = set; then
22341 break
22342fi
22343done
22344if test "${ac_cv_search_opendir+set}" = set; then
22345 :
22346else
22347 ac_cv_search_opendir=no
22348fi
22349rm conftest.$ac_ext
22350LIBS=$ac_func_search_save_LIBS
22351fi
22352{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22353$as_echo "$ac_cv_search_opendir" >&6; }
22354ac_res=$ac_cv_search_opendir
22355if test "$ac_res" != no; then
22356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22357
22358fi
22359
22360else
22361 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22362$as_echo_n "checking for library containing opendir... " >&6; }
22363if test "${ac_cv_search_opendir+set}" = set; then
22364 $as_echo_n "(cached) " >&6
22365else
22366 ac_func_search_save_LIBS=$LIBS
22367cat >conftest.$ac_ext <<_ACEOF
22368/* confdefs.h. */
22369_ACEOF
22370cat confdefs.h >>conftest.$ac_ext
22371cat >>conftest.$ac_ext <<_ACEOF
22372/* end confdefs.h. */
22373
22374/* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22377#ifdef __cplusplus
22378extern "C"
22379#endif
22380char opendir ();
22381int
22382main ()
22383{
22384return opendir ();
22385 ;
22386 return 0;
22387}
22388_ACEOF
22389for ac_lib in '' x; do
22390 if test -z "$ac_lib"; then
22391 ac_res="none required"
22392 else
22393 ac_res=-l$ac_lib
22394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22395 fi
22396 rm -f conftest.$ac_objext conftest$ac_exeext
22397if { (ac_try="$ac_link"
22398case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401esac
22402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22403$as_echo "$ac_try_echo") >&5
22404 (eval "$ac_link") 2>conftest.er1
22405 ac_status=$?
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
22409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest$ac_exeext && {
22414 test "$cross_compiling" = yes ||
22415 $as_test_x conftest$ac_exeext
22416 }; then
22417 ac_cv_search_opendir=$ac_res
22418else
22419 $as_echo "$as_me: failed program was:" >&5
22420sed 's/^/| /' conftest.$ac_ext >&5
22421
22422
22423fi
22424
22425rm -rf conftest.dSYM
22426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22427 conftest$ac_exeext
22428 if test "${ac_cv_search_opendir+set}" = set; then
22429 break
22430fi
22431done
22432if test "${ac_cv_search_opendir+set}" = set; then
22433 :
22434else
22435 ac_cv_search_opendir=no
22436fi
22437rm conftest.$ac_ext
22438LIBS=$ac_func_search_save_LIBS
22439fi
22440{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22441$as_echo "$ac_cv_search_opendir" >&6; }
22442ac_res=$ac_cv_search_opendir
22443if test "$ac_res" != no; then
22444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22445
22446fi
22447
22448fi
22449
22450
22451# Check additional headers
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477for 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
22478do
22479as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22482$as_echo_n "checking for $ac_header... " >&6; }
22483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22484 $as_echo_n "(cached) " >&6
22485fi
22486ac_res=`eval 'as_val=${'$as_ac_Header'}
22487 $as_echo "$as_val"'`
22488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22489$as_echo "$ac_res" >&6; }
22490else
22491 # Is the header compilable?
22492{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22493$as_echo_n "checking $ac_header usability... " >&6; }
22494cat >conftest.$ac_ext <<_ACEOF
22495/* confdefs.h. */
22496_ACEOF
22497cat confdefs.h >>conftest.$ac_ext
22498cat >>conftest.$ac_ext <<_ACEOF
22499/* end confdefs.h. */
22500$ac_includes_default
22501#include <$ac_header>
22502_ACEOF
22503rm -f conftest.$ac_objext
22504if { (ac_try="$ac_compile"
22505case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22508esac
22509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22510$as_echo "$ac_try_echo") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22512 ac_status=$?
22513 grep -v '^ *+' conftest.er1 >conftest.err
22514 rm -f conftest.er1
22515 cat conftest.err >&5
22516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } && {
22518 test -z "$ac_c_werror_flag" ||
22519 test ! -s conftest.err
22520 } && test -s conftest.$ac_objext; then
22521 ac_header_compiler=yes
22522else
22523 $as_echo "$as_me: failed program was:" >&5
22524sed 's/^/| /' conftest.$ac_ext >&5
22525
22526 ac_header_compiler=no
22527fi
22528
22529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22531$as_echo "$ac_header_compiler" >&6; }
22532
22533# Is the header present?
22534{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22535$as_echo_n "checking $ac_header presence... " >&6; }
22536cat >conftest.$ac_ext <<_ACEOF
22537/* confdefs.h. */
22538_ACEOF
22539cat confdefs.h >>conftest.$ac_ext
22540cat >>conftest.$ac_ext <<_ACEOF
22541/* end confdefs.h. */
22542#include <$ac_header>
22543_ACEOF
22544if { (ac_try="$ac_cpp conftest.$ac_ext"
22545case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548esac
22549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22550$as_echo "$ac_try_echo") >&5
22551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } >/dev/null && {
22558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 }; then
22561 ac_header_preproc=yes
22562else
22563 $as_echo "$as_me: failed program was:" >&5
22564sed 's/^/| /' conftest.$ac_ext >&5
22565
22566 ac_header_preproc=no
22567fi
22568
22569rm -f conftest.err conftest.$ac_ext
22570{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22571$as_echo "$ac_header_preproc" >&6; }
22572
22573# So? What about this header?
22574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22575 yes:no: )
22576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22577$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22579$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22580 ac_header_preproc=yes
22581 ;;
22582 no:yes:* )
22583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22584$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22586$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22588$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22590$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22592$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22594$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22595 ( cat <<\_ASBOX
22596## ----------------------------------------- ##
22597## Report this to http://www.imagemagick.org ##
22598## ----------------------------------------- ##
22599_ASBOX
22600 ) | sed "s/^/$as_me: WARNING: /" >&2
22601 ;;
22602esac
22603{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22604$as_echo_n "checking for $ac_header... " >&6; }
22605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22606 $as_echo_n "(cached) " >&6
22607else
22608 eval "$as_ac_Header=\$ac_header_preproc"
22609fi
22610ac_res=`eval 'as_val=${'$as_ac_Header'}
22611 $as_echo "$as_val"'`
22612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22613$as_echo "$ac_res" >&6; }
22614
22615fi
22616as_val=`eval 'as_val=${'$as_ac_Header'}
22617 $as_echo "$as_val"'`
22618 if test "x$as_val" = x""yes; then
22619 cat >>confdefs.h <<_ACEOF
22620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22621_ACEOF
22622
22623fi
22624
22625done
22626
22627
22628########
22629#
22630# Checks for typedefs, structures, and compiler characteristics.
22631#
22632########
22633
22634{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22635$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22636if test "${ac_cv_header_stdbool_h+set}" = set; then
22637 $as_echo_n "(cached) " >&6
22638else
22639 cat >conftest.$ac_ext <<_ACEOF
22640/* confdefs.h. */
22641_ACEOF
22642cat confdefs.h >>conftest.$ac_ext
22643cat >>conftest.$ac_ext <<_ACEOF
22644/* end confdefs.h. */
22645
22646#include <stdbool.h>
22647#ifndef bool
22648 "error: bool is not defined"
22649#endif
22650#ifndef false
22651 "error: false is not defined"
22652#endif
22653#if false
22654 "error: false is not 0"
22655#endif
22656#ifndef true
22657 "error: true is not defined"
22658#endif
22659#if true != 1
22660 "error: true is not 1"
22661#endif
22662#ifndef __bool_true_false_are_defined
22663 "error: __bool_true_false_are_defined is not defined"
22664#endif
22665
22666 struct s { _Bool s: 1; _Bool t; } s;
22667
22668 char a[true == 1 ? 1 : -1];
22669 char b[false == 0 ? 1 : -1];
22670 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22671 char d[(bool) 0.5 == true ? 1 : -1];
22672 bool e = &s;
22673 char f[(_Bool) 0.0 == false ? 1 : -1];
22674 char g[true];
22675 char h[sizeof (_Bool)];
22676 char i[sizeof s.t];
22677 enum { j = false, k = true, l = false * true, m = true * 256 };
22678 /* The following fails for
22679 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22680 _Bool n[m];
22681 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22682 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22683# if defined __xlc__ || defined __GNUC__
22684 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22685 reported by James Lemley on 2005-10-05; see
22686 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22687 This test is not quite right, since xlc is allowed to
22688 reject this program, as the initializer for xlcbug is
22689 not one of the forms that C requires support for.
22690 However, doing the test right would require a runtime
22691 test, and that would make cross-compilation harder.
22692 Let us hope that IBM fixes the xlc bug, and also adds
22693 support for this kind of constant expression. In the
22694 meantime, this test will reject xlc, which is OK, since
22695 our stdbool.h substitute should suffice. We also test
22696 this with GCC, where it should work, to detect more
22697 quickly whether someone messes up the test in the
22698 future. */
22699 char digs[] = "0123456789";
22700 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22701# endif
22702 /* Catch a bug in an HP-UX C compiler. See
22703 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22704 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22705 */
22706 _Bool q = true;
22707 _Bool *pq = &q;
22708
22709int
22710main ()
22711{
22712
22713 *pq |= q;
22714 *pq |= ! q;
22715 /* Refer to every declared value, to avoid compiler optimizations. */
22716 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22717 + !m + !n + !o + !p + !q + !pq);
22718
22719 ;
22720 return 0;
22721}
22722_ACEOF
22723rm -f conftest.$ac_objext
22724if { (ac_try="$ac_compile"
22725case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22728esac
22729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22730$as_echo "$ac_try_echo") >&5
22731 (eval "$ac_compile") 2>conftest.er1
22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest.$ac_objext; then
22741 ac_cv_header_stdbool_h=yes
22742else
22743 $as_echo "$as_me: failed program was:" >&5
22744sed 's/^/| /' conftest.$ac_ext >&5
22745
22746 ac_cv_header_stdbool_h=no
22747fi
22748
22749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22750fi
22751{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22752$as_echo "$ac_cv_header_stdbool_h" >&6; }
22753{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
22754$as_echo_n "checking for _Bool... " >&6; }
22755if test "${ac_cv_type__Bool+set}" = set; then
22756 $as_echo_n "(cached) " >&6
22757else
22758 ac_cv_type__Bool=no
22759cat >conftest.$ac_ext <<_ACEOF
22760/* confdefs.h. */
22761_ACEOF
22762cat confdefs.h >>conftest.$ac_ext
22763cat >>conftest.$ac_ext <<_ACEOF
22764/* end confdefs.h. */
22765$ac_includes_default
22766int
22767main ()
22768{
22769if (sizeof (_Bool))
22770 return 0;
22771 ;
22772 return 0;
22773}
22774_ACEOF
22775rm -f conftest.$ac_objext
22776if { (ac_try="$ac_compile"
22777case "(($ac_try" in
22778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779 *) ac_try_echo=$ac_try;;
22780esac
22781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22782$as_echo "$ac_try_echo") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22784 ac_status=$?
22785 grep -v '^ *+' conftest.er1 >conftest.err
22786 rm -f conftest.er1
22787 cat conftest.err >&5
22788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.$ac_objext; then
22793 cat >conftest.$ac_ext <<_ACEOF
22794/* confdefs.h. */
22795_ACEOF
22796cat confdefs.h >>conftest.$ac_ext
22797cat >>conftest.$ac_ext <<_ACEOF
22798/* end confdefs.h. */
22799$ac_includes_default
22800int
22801main ()
22802{
22803if (sizeof ((_Bool)))
22804 return 0;
22805 ;
22806 return 0;
22807}
22808_ACEOF
22809rm -f conftest.$ac_objext
22810if { (ac_try="$ac_compile"
22811case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814esac
22815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22816$as_echo "$ac_try_echo") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22818 ac_status=$?
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
22822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22827 :
22828else
22829 $as_echo "$as_me: failed program was:" >&5
22830sed 's/^/| /' conftest.$ac_ext >&5
22831
22832 ac_cv_type__Bool=yes
22833fi
22834
22835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836else
22837 $as_echo "$as_me: failed program was:" >&5
22838sed 's/^/| /' conftest.$ac_ext >&5
22839
22840
22841fi
22842
22843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844fi
22845{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22846$as_echo "$ac_cv_type__Bool" >&6; }
22847if test "x$ac_cv_type__Bool" = x""yes; then
22848
22849cat >>confdefs.h <<_ACEOF
22850#define HAVE__BOOL 1
22851_ACEOF
22852
22853
22854fi
22855
22856if test $ac_cv_header_stdbool_h = yes; then
22857
22858cat >>confdefs.h <<\_ACEOF
22859#define HAVE_STDBOOL_H 1
22860_ACEOF
22861
22862fi
22863
22864{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
22865$as_echo_n "checking for working volatile... " >&6; }
22866if test "${ac_cv_c_volatile+set}" = set; then
22867 $as_echo_n "(cached) " >&6
22868else
22869 cat >conftest.$ac_ext <<_ACEOF
22870/* confdefs.h. */
22871_ACEOF
22872cat confdefs.h >>conftest.$ac_ext
22873cat >>conftest.$ac_ext <<_ACEOF
22874/* end confdefs.h. */
22875
22876int
22877main ()
22878{
22879
22880volatile int x;
22881int * volatile y = (int *) 0;
22882return !x && !y;
22883 ;
22884 return 0;
22885}
22886_ACEOF
22887rm -f conftest.$ac_objext
22888if { (ac_try="$ac_compile"
22889case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22892esac
22893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22894$as_echo "$ac_try_echo") >&5
22895 (eval "$ac_compile") 2>conftest.er1
22896 ac_status=$?
22897 grep -v '^ *+' conftest.er1 >conftest.err
22898 rm -f conftest.er1
22899 cat conftest.err >&5
22900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); } && {
22902 test -z "$ac_c_werror_flag" ||
22903 test ! -s conftest.err
22904 } && test -s conftest.$ac_objext; then
22905 ac_cv_c_volatile=yes
22906else
22907 $as_echo "$as_me: failed program was:" >&5
22908sed 's/^/| /' conftest.$ac_ext >&5
22909
22910 ac_cv_c_volatile=no
22911fi
22912
22913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914fi
22915{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22916$as_echo "$ac_cv_c_volatile" >&6; }
22917if test $ac_cv_c_volatile = no; then
22918
22919cat >>confdefs.h <<\_ACEOF
22920#define volatile /**/
22921_ACEOF
22922
22923fi
22924
22925{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
22926$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22927if test "${ac_cv_c_stringize+set}" = set; then
22928 $as_echo_n "(cached) " >&6
22929else
22930 cat >conftest.$ac_ext <<_ACEOF
22931/* confdefs.h. */
22932_ACEOF
22933cat confdefs.h >>conftest.$ac_ext
22934cat >>conftest.$ac_ext <<_ACEOF
22935/* end confdefs.h. */
22936#define x(y) #y
22937
22938char *s = x(teststring);
22939_ACEOF
22940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22941 $EGREP "#teststring" >/dev/null 2>&1; then
22942 ac_cv_c_stringize=no
22943else
22944 ac_cv_c_stringize=yes
22945fi
22946rm -f conftest*
22947
22948fi
22949{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
22950$as_echo "$ac_cv_c_stringize" >&6; }
22951if test $ac_cv_c_stringize = yes; then
22952
22953cat >>confdefs.h <<\_ACEOF
22954#define HAVE_STRINGIZE 1
22955_ACEOF
22956
22957fi
22958
22959{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22960$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22961if test "${ac_cv_header_stat_broken+set}" = set; then
22962 $as_echo_n "(cached) " >&6
22963else
22964 cat >conftest.$ac_ext <<_ACEOF
22965/* confdefs.h. */
22966_ACEOF
22967cat confdefs.h >>conftest.$ac_ext
22968cat >>conftest.$ac_ext <<_ACEOF
22969/* end confdefs.h. */
22970#include <sys/types.h>
22971#include <sys/stat.h>
22972
22973#if defined S_ISBLK && defined S_IFDIR
22974extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22975#endif
22976
22977#if defined S_ISBLK && defined S_IFCHR
22978extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22979#endif
22980
22981#if defined S_ISLNK && defined S_IFREG
22982extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22983#endif
22984
22985#if defined S_ISSOCK && defined S_IFREG
22986extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22987#endif
22988
22989_ACEOF
22990rm -f conftest.$ac_objext
22991if { (ac_try="$ac_compile"
22992case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22995esac
22996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22997$as_echo "$ac_try_echo") >&5
22998 (eval "$ac_compile") 2>conftest.er1
22999 ac_status=$?
23000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
23003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } && {
23005 test -z "$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23007 } && test -s conftest.$ac_objext; then
23008 ac_cv_header_stat_broken=no
23009else
23010 $as_echo "$as_me: failed program was:" >&5
23011sed 's/^/| /' conftest.$ac_ext >&5
23012
23013 ac_cv_header_stat_broken=yes
23014fi
23015
23016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23017fi
23018{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
23019$as_echo "$ac_cv_header_stat_broken" >&6; }
23020if test $ac_cv_header_stat_broken = yes; then
23021
23022cat >>confdefs.h <<\_ACEOF
23023#define STAT_MACROS_BROKEN 1
23024_ACEOF
23025
23026fi
23027
23028{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23029$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23030if test "${ac_cv_header_time+set}" = set; then
23031 $as_echo_n "(cached) " >&6
23032else
23033 cat >conftest.$ac_ext <<_ACEOF
23034/* confdefs.h. */
23035_ACEOF
23036cat confdefs.h >>conftest.$ac_ext
23037cat >>conftest.$ac_ext <<_ACEOF
23038/* end confdefs.h. */
23039#include <sys/types.h>
23040#include <sys/time.h>
23041#include <time.h>
23042
23043int
23044main ()
23045{
23046if ((struct tm *) 0)
23047return 0;
23048 ;
23049 return 0;
23050}
23051_ACEOF
23052rm -f conftest.$ac_objext
23053if { (ac_try="$ac_compile"
23054case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057esac
23058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059$as_echo "$ac_try_echo") >&5
23060 (eval "$ac_compile") 2>conftest.er1
23061 ac_status=$?
23062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
23065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest.$ac_objext; then
23070 ac_cv_header_time=yes
23071else
23072 $as_echo "$as_me: failed program was:" >&5
23073sed 's/^/| /' conftest.$ac_ext >&5
23074
23075 ac_cv_header_time=no
23076fi
23077
23078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079fi
23080{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23081$as_echo "$ac_cv_header_time" >&6; }
23082if test $ac_cv_header_time = yes; then
23083
23084cat >>confdefs.h <<\_ACEOF
23085#define TIME_WITH_SYS_TIME 1
23086_ACEOF
23087
23088fi
23089
23090{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23091$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23092if test "${ac_cv_struct_tm+set}" = set; then
23093 $as_echo_n "(cached) " >&6
23094else
23095 cat >conftest.$ac_ext <<_ACEOF
23096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
23101#include <sys/types.h>
23102#include <time.h>
23103
23104int
23105main ()
23106{
23107struct tm tm;
23108 int *p = &tm.tm_sec;
23109 return !p;
23110 ;
23111 return 0;
23112}
23113_ACEOF
23114rm -f conftest.$ac_objext
23115if { (ac_try="$ac_compile"
23116case "(($ac_try" in
23117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23118 *) ac_try_echo=$ac_try;;
23119esac
23120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23121$as_echo "$ac_try_echo") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23132 ac_cv_struct_tm=time.h
23133else
23134 $as_echo "$as_me: failed program was:" >&5
23135sed 's/^/| /' conftest.$ac_ext >&5
23136
23137 ac_cv_struct_tm=sys/time.h
23138fi
23139
23140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141fi
23142{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23143$as_echo "$ac_cv_struct_tm" >&6; }
23144if test $ac_cv_struct_tm = sys/time.h; then
23145
23146cat >>confdefs.h <<\_ACEOF
23147#define TM_IN_SYS_TIME 1
23148_ACEOF
23149
23150fi
23151
23152{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
23153$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23154if test "${ac_cv_sys_interpreter+set}" = set; then
23155 $as_echo_n "(cached) " >&6
23156else
23157 echo '#! /bin/cat
23158exit 69
23159' >conftest
23160chmod u+x conftest
23161(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23162if test $? -ne 69; then
23163 ac_cv_sys_interpreter=yes
23164else
23165 ac_cv_sys_interpreter=no
23166fi
23167rm -f conftest
23168fi
23169{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
23170$as_echo "$ac_cv_sys_interpreter" >&6; }
23171interpval=$ac_cv_sys_interpreter
23172
23173
23174# If the C compiler does not fully support the ANSI C qualifier const,
23175# define const to be empty.
23176{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23177$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23178if test "${ac_cv_c_const+set}" = set; then
23179 $as_echo_n "(cached) " >&6
23180else
23181 cat >conftest.$ac_ext <<_ACEOF
23182/* confdefs.h. */
23183_ACEOF
23184cat confdefs.h >>conftest.$ac_ext
23185cat >>conftest.$ac_ext <<_ACEOF
23186/* end confdefs.h. */
23187
23188int
23189main ()
23190{
23191/* FIXME: Include the comments suggested by Paul. */
23192#ifndef __cplusplus
23193 /* Ultrix mips cc rejects this. */
23194 typedef int charset[2];
23195 const charset cs;
23196 /* SunOS 4.1.1 cc rejects this. */
23197 char const *const *pcpcc;
23198 char **ppc;
23199 /* NEC SVR4.0.2 mips cc rejects this. */
23200 struct point {int x, y;};
23201 static struct point const zero = {0,0};
23202 /* AIX XL C 1.02.0.0 rejects this.
23203 It does not let you subtract one const X* pointer from another in
23204 an arm of an if-expression whose if-part is not a constant
23205 expression */
23206 const char *g = "string";
23207 pcpcc = &g + (g ? g-g : 0);
23208 /* HPUX 7.0 cc rejects these. */
23209 ++pcpcc;
23210 ppc = (char**) pcpcc;
23211 pcpcc = (char const *const *) ppc;
23212 { /* SCO 3.2v4 cc rejects this. */
23213 char *t;
23214 char const *s = 0 ? (char *) 0 : (char const *) 0;
23215
23216 *t++ = 0;
23217 if (s) return 0;
23218 }
23219 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23220 int x[] = {25, 17};
23221 const int *foo = &x[0];
23222 ++foo;
23223 }
23224 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23225 typedef const int *iptr;
23226 iptr p = 0;
23227 ++p;
23228 }
23229 { /* AIX XL C 1.02.0.0 rejects this saying
23230 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23231 struct s { int j; const int *ap[3]; };
23232 struct s *b; b->j = 5;
23233 }
23234 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23235 const int foo = 10;
23236 if (!foo) return 0;
23237 }
23238 return !cs[0] && !zero.x;
23239#endif
23240
23241 ;
23242 return 0;
23243}
23244_ACEOF
23245rm -f conftest.$ac_objext
23246if { (ac_try="$ac_compile"
23247case "(($ac_try" in
23248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249 *) ac_try_echo=$ac_try;;
23250esac
23251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23252$as_echo "$ac_try_echo") >&5
23253 (eval "$ac_compile") 2>conftest.er1
23254 ac_status=$?
23255 grep -v '^ *+' conftest.er1 >conftest.err
23256 rm -f conftest.er1
23257 cat conftest.err >&5
23258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } && {
23260 test -z "$ac_c_werror_flag" ||
23261 test ! -s conftest.err
23262 } && test -s conftest.$ac_objext; then
23263 ac_cv_c_const=yes
23264else
23265 $as_echo "$as_me: failed program was:" >&5
23266sed 's/^/| /' conftest.$ac_ext >&5
23267
23268 ac_cv_c_const=no
23269fi
23270
23271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272fi
23273{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23274$as_echo "$ac_cv_c_const" >&6; }
23275if test $ac_cv_c_const = no; then
23276
23277cat >>confdefs.h <<\_ACEOF
23278#define const /**/
23279_ACEOF
23280
23281fi
23282
23283
23284# If the C compiler supports the keyword inline, do nothing. Otherwise
23285# define inline to __inline__ or __inline if it accepts one of those,
23286# otherwise define inline to be empty.
23287{ $as_echo "$as_me:$LINENO: checking for inline" >&5
23288$as_echo_n "checking for inline... " >&6; }
23289if test "${ac_cv_c_inline+set}" = set; then
23290 $as_echo_n "(cached) " >&6
23291else
23292 ac_cv_c_inline=no
23293for ac_kw in inline __inline__ __inline; do
23294 cat >conftest.$ac_ext <<_ACEOF
23295/* confdefs.h. */
23296_ACEOF
23297cat confdefs.h >>conftest.$ac_ext
23298cat >>conftest.$ac_ext <<_ACEOF
23299/* end confdefs.h. */
23300#ifndef __cplusplus
23301typedef int foo_t;
23302static $ac_kw foo_t static_foo () {return 0; }
23303$ac_kw foo_t foo () {return 0; }
23304#endif
23305
23306_ACEOF
23307rm -f conftest.$ac_objext
23308if { (ac_try="$ac_compile"
23309case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23312esac
23313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23314$as_echo "$ac_try_echo") >&5
23315 (eval "$ac_compile") 2>conftest.er1
23316 ac_status=$?
23317 grep -v '^ *+' conftest.er1 >conftest.err
23318 rm -f conftest.er1
23319 cat conftest.err >&5
23320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && {
23322 test -z "$ac_c_werror_flag" ||
23323 test ! -s conftest.err
23324 } && test -s conftest.$ac_objext; then
23325 ac_cv_c_inline=$ac_kw
23326else
23327 $as_echo "$as_me: failed program was:" >&5
23328sed 's/^/| /' conftest.$ac_ext >&5
23329
23330
23331fi
23332
23333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 test "$ac_cv_c_inline" != no && break
23335done
23336
23337fi
23338{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23339$as_echo "$ac_cv_c_inline" >&6; }
23340
23341
23342case $ac_cv_c_inline in
23343 inline | yes) ;;
23344 *)
23345 case $ac_cv_c_inline in
23346 no) ac_val=;;
23347 *) ac_val=$ac_cv_c_inline;;
23348 esac
23349 cat >>confdefs.h <<_ACEOF
23350#ifndef __cplusplus
23351#define inline $ac_val
23352#endif
23353_ACEOF
23354 ;;
23355esac
23356
23357
23358# If the C compiler supports the keyword restrict, do nothing. Otherwise
23359# define restrict to __restrict__ or __restrict if it accepts one of those,
23360# otherwise define restrict to be empty.
23361{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
23362$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23363if test "${ac_cv_c_restrict+set}" = set; then
23364 $as_echo_n "(cached) " >&6
23365else
23366 ac_cv_c_restrict=no
23367 # The order here caters to the fact that C++ does not require restrict.
23368 for ac_kw in __restrict __restrict__ _Restrict restrict; do
23369 cat >conftest.$ac_ext <<_ACEOF
23370/* confdefs.h. */
23371_ACEOF
23372cat confdefs.h >>conftest.$ac_ext
23373cat >>conftest.$ac_ext <<_ACEOF
23374/* end confdefs.h. */
23375typedef int * int_ptr;
23376 int foo (int_ptr $ac_kw ip) {
23377 return ip[0];
23378 }
23379int
23380main ()
23381{
23382int s[1];
23383 int * $ac_kw t = s;
23384 t[0] = 0;
23385 return foo(t)
23386 ;
23387 return 0;
23388}
23389_ACEOF
23390rm -f conftest.$ac_objext
23391if { (ac_try="$ac_compile"
23392case "(($ac_try" in
23393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394 *) ac_try_echo=$ac_try;;
23395esac
23396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23397$as_echo "$ac_try_echo") >&5
23398 (eval "$ac_compile") 2>conftest.er1
23399 ac_status=$?
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
23403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest.$ac_objext; then
23408 ac_cv_c_restrict=$ac_kw
23409else
23410 $as_echo "$as_me: failed program was:" >&5
23411sed 's/^/| /' conftest.$ac_ext >&5
23412
23413
23414fi
23415
23416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 test "$ac_cv_c_restrict" != no && break
23418 done
23419
23420fi
23421{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
23422$as_echo "$ac_cv_c_restrict" >&6; }
23423
23424
23425 case $ac_cv_c_restrict in
23426 restrict) ;;
23427 no) cat >>confdefs.h <<\_ACEOF
23428#define restrict /**/
23429_ACEOF
23430 ;;
23431 *) cat >>confdefs.h <<_ACEOF
23432#define restrict $ac_cv_c_restrict
23433_ACEOF
23434 ;;
23435 esac
23436
23437
23438# If words are stored with the most significant byte first (like
23439# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23440
23441 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23442$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23443if test "${ac_cv_c_bigendian+set}" = set; then
23444 $as_echo_n "(cached) " >&6
23445else
23446 ac_cv_c_bigendian=unknown
23447 # See if we're dealing with a universal compiler.
23448 cat >conftest.$ac_ext <<_ACEOF
23449/* confdefs.h. */
23450_ACEOF
23451cat confdefs.h >>conftest.$ac_ext
23452cat >>conftest.$ac_ext <<_ACEOF
23453/* end confdefs.h. */
23454#ifndef __APPLE_CC__
23455 not a universal capable compiler
23456 #endif
23457 typedef int dummy;
23458
23459_ACEOF
23460rm -f conftest.$ac_objext
23461if { (ac_try="$ac_compile"
23462case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465esac
23466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23467$as_echo "$ac_try_echo") >&5
23468 (eval "$ac_compile") 2>conftest.er1
23469 ac_status=$?
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
23473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && {
23475 test -z "$ac_c_werror_flag" ||
23476 test ! -s conftest.err
23477 } && test -s conftest.$ac_objext; then
23478
23479 # Check for potential -arch flags. It is not universal unless
23480 # there are some -arch flags. Note that *ppc* also matches
23481 # ppc64. This check is also rather less than ideal.
23482 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23483 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23484 esac
23485else
23486 $as_echo "$as_me: failed program was:" >&5
23487sed 's/^/| /' conftest.$ac_ext >&5
23488
23489
23490fi
23491
23492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 if test $ac_cv_c_bigendian = unknown; then
23494 # See if sys/param.h defines the BYTE_ORDER macro.
23495 cat >conftest.$ac_ext <<_ACEOF
23496/* confdefs.h. */
23497_ACEOF
23498cat confdefs.h >>conftest.$ac_ext
23499cat >>conftest.$ac_ext <<_ACEOF
23500/* end confdefs.h. */
23501#include <sys/types.h>
23502 #include <sys/param.h>
23503
23504int
23505main ()
23506{
23507#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23508 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23509 && LITTLE_ENDIAN)
23510 bogus endian macros
23511 #endif
23512
23513 ;
23514 return 0;
23515}
23516_ACEOF
23517rm -f conftest.$ac_objext
23518if { (ac_try="$ac_compile"
23519case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23522esac
23523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23524$as_echo "$ac_try_echo") >&5
23525 (eval "$ac_compile") 2>conftest.er1
23526 ac_status=$?
23527 grep -v '^ *+' conftest.er1 >conftest.err
23528 rm -f conftest.er1
23529 cat conftest.err >&5
23530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } && {
23532 test -z "$ac_c_werror_flag" ||
23533 test ! -s conftest.err
23534 } && test -s conftest.$ac_objext; then
23535 # It does; now see whether it defined to BIG_ENDIAN or not.
23536 cat >conftest.$ac_ext <<_ACEOF
23537/* confdefs.h. */
23538_ACEOF
23539cat confdefs.h >>conftest.$ac_ext
23540cat >>conftest.$ac_ext <<_ACEOF
23541/* end confdefs.h. */
23542#include <sys/types.h>
23543 #include <sys/param.h>
23544
23545int
23546main ()
23547{
23548#if BYTE_ORDER != BIG_ENDIAN
23549 not big endian
23550 #endif
23551
23552 ;
23553 return 0;
23554}
23555_ACEOF
23556rm -f conftest.$ac_objext
23557if { (ac_try="$ac_compile"
23558case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23561esac
23562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23563$as_echo "$ac_try_echo") >&5
23564 (eval "$ac_compile") 2>conftest.er1
23565 ac_status=$?
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
23569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } && {
23571 test -z "$ac_c_werror_flag" ||
23572 test ! -s conftest.err
23573 } && test -s conftest.$ac_objext; then
23574 ac_cv_c_bigendian=yes
23575else
23576 $as_echo "$as_me: failed program was:" >&5
23577sed 's/^/| /' conftest.$ac_ext >&5
23578
23579 ac_cv_c_bigendian=no
23580fi
23581
23582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583else
23584 $as_echo "$as_me: failed program was:" >&5
23585sed 's/^/| /' conftest.$ac_ext >&5
23586
23587
23588fi
23589
23590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 fi
23592 if test $ac_cv_c_bigendian = unknown; then
23593 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23594 cat >conftest.$ac_ext <<_ACEOF
23595/* confdefs.h. */
23596_ACEOF
23597cat confdefs.h >>conftest.$ac_ext
23598cat >>conftest.$ac_ext <<_ACEOF
23599/* end confdefs.h. */
23600#include <limits.h>
23601
23602int
23603main ()
23604{
23605#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23606 bogus endian macros
23607 #endif
23608
23609 ;
23610 return 0;
23611}
23612_ACEOF
23613rm -f conftest.$ac_objext
23614if { (ac_try="$ac_compile"
23615case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618esac
23619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23620$as_echo "$ac_try_echo") >&5
23621 (eval "$ac_compile") 2>conftest.er1
23622 ac_status=$?
23623 grep -v '^ *+' conftest.er1 >conftest.err
23624 rm -f conftest.er1
23625 cat conftest.err >&5
23626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } && {
23628 test -z "$ac_c_werror_flag" ||
23629 test ! -s conftest.err
23630 } && test -s conftest.$ac_objext; then
23631 # It does; now see whether it defined to _BIG_ENDIAN or not.
23632 cat >conftest.$ac_ext <<_ACEOF
23633/* confdefs.h. */
23634_ACEOF
23635cat confdefs.h >>conftest.$ac_ext
23636cat >>conftest.$ac_ext <<_ACEOF
23637/* end confdefs.h. */
23638#include <limits.h>
23639
23640int
23641main ()
23642{
23643#ifndef _BIG_ENDIAN
23644 not big endian
23645 #endif
23646
23647 ;
23648 return 0;
23649}
23650_ACEOF
23651rm -f conftest.$ac_objext
23652if { (ac_try="$ac_compile"
23653case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23656esac
23657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23658$as_echo "$ac_try_echo") >&5
23659 (eval "$ac_compile") 2>conftest.er1
23660 ac_status=$?
23661 grep -v '^ *+' conftest.er1 >conftest.err
23662 rm -f conftest.er1
23663 cat conftest.err >&5
23664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } && {
23666 test -z "$ac_c_werror_flag" ||
23667 test ! -s conftest.err
23668 } && test -s conftest.$ac_objext; then
23669 ac_cv_c_bigendian=yes
23670else
23671 $as_echo "$as_me: failed program was:" >&5
23672sed 's/^/| /' conftest.$ac_ext >&5
23673
23674 ac_cv_c_bigendian=no
23675fi
23676
23677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23678else
23679 $as_echo "$as_me: failed program was:" >&5
23680sed 's/^/| /' conftest.$ac_ext >&5
23681
23682
23683fi
23684
23685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686 fi
23687 if test $ac_cv_c_bigendian = unknown; then
23688 # Compile a test program.
23689 if test "$cross_compiling" = yes; then
23690 # Try to guess by grepping values from an object file.
23691 cat >conftest.$ac_ext <<_ACEOF
23692/* confdefs.h. */
23693_ACEOF
23694cat confdefs.h >>conftest.$ac_ext
23695cat >>conftest.$ac_ext <<_ACEOF
23696/* end confdefs.h. */
23697short int ascii_mm[] =
23698 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23699 short int ascii_ii[] =
23700 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23701 int use_ascii (int i) {
23702 return ascii_mm[i] + ascii_ii[i];
23703 }
23704 short int ebcdic_ii[] =
23705 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23706 short int ebcdic_mm[] =
23707 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23708 int use_ebcdic (int i) {
23709 return ebcdic_mm[i] + ebcdic_ii[i];
23710 }
23711 extern int foo;
23712
23713int
23714main ()
23715{
23716return use_ascii (foo) == use_ebcdic (foo);
23717 ;
23718 return 0;
23719}
23720_ACEOF
23721rm -f conftest.$ac_objext
23722if { (ac_try="$ac_compile"
23723case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23726esac
23727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23728$as_echo "$ac_try_echo") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23730 ac_status=$?
23731 grep -v '^ *+' conftest.er1 >conftest.err
23732 rm -f conftest.er1
23733 cat conftest.err >&5
23734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23739 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23740 ac_cv_c_bigendian=yes
23741 fi
23742 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23743 if test "$ac_cv_c_bigendian" = unknown; then
23744 ac_cv_c_bigendian=no
23745 else
23746 # finding both strings is unlikely to happen, but who knows?
23747 ac_cv_c_bigendian=unknown
23748 fi
23749 fi
23750else
23751 $as_echo "$as_me: failed program was:" >&5
23752sed 's/^/| /' conftest.$ac_ext >&5
23753
23754
23755fi
23756
23757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758else
23759 cat >conftest.$ac_ext <<_ACEOF
23760/* confdefs.h. */
23761_ACEOF
23762cat confdefs.h >>conftest.$ac_ext
23763cat >>conftest.$ac_ext <<_ACEOF
23764/* end confdefs.h. */
23765$ac_includes_default
23766int
23767main ()
23768{
23769
23770 /* Are we little or big endian? From Harbison&Steele. */
23771 union
23772 {
23773 long int l;
23774 char c[sizeof (long int)];
23775 } u;
23776 u.l = 1;
23777 return u.c[sizeof (long int) - 1] == 1;
23778
23779 ;
23780 return 0;
23781}
23782_ACEOF
23783rm -f conftest$ac_exeext
23784if { (ac_try="$ac_link"
23785case "(($ac_try" in
23786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787 *) ac_try_echo=$ac_try;;
23788esac
23789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23790$as_echo "$ac_try_echo") >&5
23791 (eval "$ac_link") 2>&5
23792 ac_status=$?
23793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795 { (case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23798esac
23799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800$as_echo "$ac_try_echo") >&5
23801 (eval "$ac_try") 2>&5
23802 ac_status=$?
23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); }; }; then
23805 ac_cv_c_bigendian=no
23806else
23807 $as_echo "$as_me: program exited with status $ac_status" >&5
23808$as_echo "$as_me: failed program was:" >&5
23809sed 's/^/| /' conftest.$ac_ext >&5
23810
23811( exit $ac_status )
23812ac_cv_c_bigendian=yes
23813fi
23814rm -rf conftest.dSYM
23815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23816fi
23817
23818
23819 fi
23820fi
23821{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23822$as_echo "$ac_cv_c_bigendian" >&6; }
23823 case $ac_cv_c_bigendian in #(
23824 yes)
23825 cat >>confdefs.h <<\_ACEOF
23826#define WORDS_BIGENDIAN 1
23827_ACEOF
23828;; #(
23829 no)
23830 ;; #(
23831 universal)
23832
23833cat >>confdefs.h <<\_ACEOF
23834#define AC_APPLE_UNIVERSAL_BUILD 1
23835_ACEOF
23836
23837 ;; #(
23838 *)
23839 { { $as_echo "$as_me:$LINENO: error: unknown endianness
23840 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23841$as_echo "$as_me: error: unknown endianness
23842 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23843 { (exit 1); exit 1; }; } ;;
23844 esac
23845
23846
23847# Define mode_t to a suitable type, if standard headers do not define it.
23848{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
23849$as_echo_n "checking for mode_t... " >&6; }
23850if test "${ac_cv_type_mode_t+set}" = set; then
23851 $as_echo_n "(cached) " >&6
23852else
23853 ac_cv_type_mode_t=no
23854cat >conftest.$ac_ext <<_ACEOF
23855/* confdefs.h. */
23856_ACEOF
23857cat confdefs.h >>conftest.$ac_ext
23858cat >>conftest.$ac_ext <<_ACEOF
23859/* end confdefs.h. */
23860$ac_includes_default
23861int
23862main ()
23863{
23864if (sizeof (mode_t))
23865 return 0;
23866 ;
23867 return 0;
23868}
23869_ACEOF
23870rm -f conftest.$ac_objext
23871if { (ac_try="$ac_compile"
23872case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23875esac
23876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877$as_echo "$ac_try_echo") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 cat >conftest.$ac_ext <<_ACEOF
23889/* confdefs.h. */
23890_ACEOF
23891cat confdefs.h >>conftest.$ac_ext
23892cat >>conftest.$ac_ext <<_ACEOF
23893/* end confdefs.h. */
23894$ac_includes_default
23895int
23896main ()
23897{
23898if (sizeof ((mode_t)))
23899 return 0;
23900 ;
23901 return 0;
23902}
23903_ACEOF
23904rm -f conftest.$ac_objext
23905if { (ac_try="$ac_compile"
23906case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23909esac
23910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911$as_echo "$ac_try_echo") >&5
23912 (eval "$ac_compile") 2>conftest.er1
23913 ac_status=$?
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
23917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } && {
23919 test -z "$ac_c_werror_flag" ||
23920 test ! -s conftest.err
23921 } && test -s conftest.$ac_objext; then
23922 :
23923else
23924 $as_echo "$as_me: failed program was:" >&5
23925sed 's/^/| /' conftest.$ac_ext >&5
23926
23927 ac_cv_type_mode_t=yes
23928fi
23929
23930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931else
23932 $as_echo "$as_me: failed program was:" >&5
23933sed 's/^/| /' conftest.$ac_ext >&5
23934
23935
23936fi
23937
23938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939fi
23940{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23941$as_echo "$ac_cv_type_mode_t" >&6; }
23942if test "x$ac_cv_type_mode_t" = x""yes; then
23943 :
23944else
23945
23946cat >>confdefs.h <<_ACEOF
23947#define mode_t int
23948_ACEOF
23949
23950fi
23951
23952
23953# Define off_t to a suitable type, if standard headers do not define it.
23954{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
23955$as_echo_n "checking for off_t... " >&6; }
23956if test "${ac_cv_type_off_t+set}" = set; then
23957 $as_echo_n "(cached) " >&6
23958else
23959 ac_cv_type_off_t=no
23960cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
23966$ac_includes_default
23967int
23968main ()
23969{
23970if (sizeof (off_t))
23971 return 0;
23972 ;
23973 return 0;
23974}
23975_ACEOF
23976rm -f conftest.$ac_objext
23977if { (ac_try="$ac_compile"
23978case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23981esac
23982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23983$as_echo "$ac_try_echo") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 cat >conftest.$ac_ext <<_ACEOF
23995/* confdefs.h. */
23996_ACEOF
23997cat confdefs.h >>conftest.$ac_ext
23998cat >>conftest.$ac_ext <<_ACEOF
23999/* end confdefs.h. */
24000$ac_includes_default
24001int
24002main ()
24003{
24004if (sizeof ((off_t)))
24005 return 0;
24006 ;
24007 return 0;
24008}
24009_ACEOF
24010rm -f conftest.$ac_objext
24011if { (ac_try="$ac_compile"
24012case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24015esac
24016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24017$as_echo "$ac_try_echo") >&5
24018 (eval "$ac_compile") 2>conftest.er1
24019 ac_status=$?
24020 grep -v '^ *+' conftest.er1 >conftest.err
24021 rm -f conftest.er1
24022 cat conftest.err >&5
24023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } && {
24025 test -z "$ac_c_werror_flag" ||
24026 test ! -s conftest.err
24027 } && test -s conftest.$ac_objext; then
24028 :
24029else
24030 $as_echo "$as_me: failed program was:" >&5
24031sed 's/^/| /' conftest.$ac_ext >&5
24032
24033 ac_cv_type_off_t=yes
24034fi
24035
24036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037else
24038 $as_echo "$as_me: failed program was:" >&5
24039sed 's/^/| /' conftest.$ac_ext >&5
24040
24041
24042fi
24043
24044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24045fi
24046{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24047$as_echo "$ac_cv_type_off_t" >&6; }
24048if test "x$ac_cv_type_off_t" = x""yes; then
24049 :
24050else
24051
24052cat >>confdefs.h <<_ACEOF
24053#define off_t long int
24054_ACEOF
24055
24056fi
24057
24058
24059# Define pid_t to a suitable type, if standard headers do not define it.
24060{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24061$as_echo_n "checking for pid_t... " >&6; }
24062if test "${ac_cv_type_pid_t+set}" = set; then
24063 $as_echo_n "(cached) " >&6
24064else
24065 ac_cv_type_pid_t=no
24066cat >conftest.$ac_ext <<_ACEOF
24067/* confdefs.h. */
24068_ACEOF
24069cat confdefs.h >>conftest.$ac_ext
24070cat >>conftest.$ac_ext <<_ACEOF
24071/* end confdefs.h. */
24072$ac_includes_default
24073int
24074main ()
24075{
24076if (sizeof (pid_t))
24077 return 0;
24078 ;
24079 return 0;
24080}
24081_ACEOF
24082rm -f conftest.$ac_objext
24083if { (ac_try="$ac_compile"
24084case "(($ac_try" in
24085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24086 *) ac_try_echo=$ac_try;;
24087esac
24088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24089$as_echo "$ac_try_echo") >&5
24090 (eval "$ac_compile") 2>conftest.er1
24091 ac_status=$?
24092 grep -v '^ *+' conftest.er1 >conftest.err
24093 rm -f conftest.er1
24094 cat conftest.err >&5
24095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } && {
24097 test -z "$ac_c_werror_flag" ||
24098 test ! -s conftest.err
24099 } && test -s conftest.$ac_objext; then
24100 cat >conftest.$ac_ext <<_ACEOF
24101/* confdefs.h. */
24102_ACEOF
24103cat confdefs.h >>conftest.$ac_ext
24104cat >>conftest.$ac_ext <<_ACEOF
24105/* end confdefs.h. */
24106$ac_includes_default
24107int
24108main ()
24109{
24110if (sizeof ((pid_t)))
24111 return 0;
24112 ;
24113 return 0;
24114}
24115_ACEOF
24116rm -f conftest.$ac_objext
24117if { (ac_try="$ac_compile"
24118case "(($ac_try" in
24119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120 *) ac_try_echo=$ac_try;;
24121esac
24122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24123$as_echo "$ac_try_echo") >&5
24124 (eval "$ac_compile") 2>conftest.er1
24125 ac_status=$?
24126 grep -v '^ *+' conftest.er1 >conftest.err
24127 rm -f conftest.er1
24128 cat conftest.err >&5
24129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } && {
24131 test -z "$ac_c_werror_flag" ||
24132 test ! -s conftest.err
24133 } && test -s conftest.$ac_objext; then
24134 :
24135else
24136 $as_echo "$as_me: failed program was:" >&5
24137sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 ac_cv_type_pid_t=yes
24140fi
24141
24142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143else
24144 $as_echo "$as_me: failed program was:" >&5
24145sed 's/^/| /' conftest.$ac_ext >&5
24146
24147
24148fi
24149
24150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24151fi
24152{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24153$as_echo "$ac_cv_type_pid_t" >&6; }
24154if test "x$ac_cv_type_pid_t" = x""yes; then
24155 :
24156else
24157
24158cat >>confdefs.h <<_ACEOF
24159#define pid_t int
24160_ACEOF
24161
24162fi
24163
24164
24165# Define size_t to a suitable type, if standard headers do not define it.
24166{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
24167$as_echo_n "checking for size_t... " >&6; }
24168if test "${ac_cv_type_size_t+set}" = set; then
24169 $as_echo_n "(cached) " >&6
24170else
24171 ac_cv_type_size_t=no
24172cat >conftest.$ac_ext <<_ACEOF
24173/* confdefs.h. */
24174_ACEOF
24175cat confdefs.h >>conftest.$ac_ext
24176cat >>conftest.$ac_ext <<_ACEOF
24177/* end confdefs.h. */
24178$ac_includes_default
24179int
24180main ()
24181{
24182if (sizeof (size_t))
24183 return 0;
24184 ;
24185 return 0;
24186}
24187_ACEOF
24188rm -f conftest.$ac_objext
24189if { (ac_try="$ac_compile"
24190case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24193esac
24194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24195$as_echo "$ac_try_echo") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24197 ac_status=$?
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
24201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_c_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 cat >conftest.$ac_ext <<_ACEOF
24207/* confdefs.h. */
24208_ACEOF
24209cat confdefs.h >>conftest.$ac_ext
24210cat >>conftest.$ac_ext <<_ACEOF
24211/* end confdefs.h. */
24212$ac_includes_default
24213int
24214main ()
24215{
24216if (sizeof ((size_t)))
24217 return 0;
24218 ;
24219 return 0;
24220}
24221_ACEOF
24222rm -f conftest.$ac_objext
24223if { (ac_try="$ac_compile"
24224case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24227esac
24228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24229$as_echo "$ac_try_echo") >&5
24230 (eval "$ac_compile") 2>conftest.er1
24231 ac_status=$?
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
24235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } && {
24237 test -z "$ac_c_werror_flag" ||
24238 test ! -s conftest.err
24239 } && test -s conftest.$ac_objext; then
24240 :
24241else
24242 $as_echo "$as_me: failed program was:" >&5
24243sed 's/^/| /' conftest.$ac_ext >&5
24244
24245 ac_cv_type_size_t=yes
24246fi
24247
24248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249else
24250 $as_echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253
24254fi
24255
24256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24257fi
24258{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24259$as_echo "$ac_cv_type_size_t" >&6; }
24260if test "x$ac_cv_type_size_t" = x""yes; then
24261 :
24262else
24263
24264cat >>confdefs.h <<_ACEOF
24265#define size_t unsigned int
24266_ACEOF
24267
24268fi
24269
24270
24271# Define ssize_t to a suitable type, if standard headers do not define it.
24272{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
24273$as_echo_n "checking for ssize_t... " >&6; }
24274if test "${ac_cv_type_ssize_t+set}" = set; then
24275 $as_echo_n "(cached) " >&6
24276else
24277 ac_cv_type_ssize_t=no
24278cat >conftest.$ac_ext <<_ACEOF
24279/* confdefs.h. */
24280_ACEOF
24281cat confdefs.h >>conftest.$ac_ext
24282cat >>conftest.$ac_ext <<_ACEOF
24283/* end confdefs.h. */
24284$ac_includes_default
24285int
24286main ()
24287{
24288if (sizeof (ssize_t))
24289 return 0;
24290 ;
24291 return 0;
24292}
24293_ACEOF
24294rm -f conftest.$ac_objext
24295if { (ac_try="$ac_compile"
24296case "(($ac_try" in
24297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298 *) ac_try_echo=$ac_try;;
24299esac
24300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24301$as_echo "$ac_try_echo") >&5
24302 (eval "$ac_compile") 2>conftest.er1
24303 ac_status=$?
24304 grep -v '^ *+' conftest.er1 >conftest.err
24305 rm -f conftest.er1
24306 cat conftest.err >&5
24307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } && {
24309 test -z "$ac_c_werror_flag" ||
24310 test ! -s conftest.err
24311 } && test -s conftest.$ac_objext; then
24312 cat >conftest.$ac_ext <<_ACEOF
24313/* confdefs.h. */
24314_ACEOF
24315cat confdefs.h >>conftest.$ac_ext
24316cat >>conftest.$ac_ext <<_ACEOF
24317/* end confdefs.h. */
24318$ac_includes_default
24319int
24320main ()
24321{
24322if (sizeof ((ssize_t)))
24323 return 0;
24324 ;
24325 return 0;
24326}
24327_ACEOF
24328rm -f conftest.$ac_objext
24329if { (ac_try="$ac_compile"
24330case "(($ac_try" in
24331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332 *) ac_try_echo=$ac_try;;
24333esac
24334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24335$as_echo "$ac_try_echo") >&5
24336 (eval "$ac_compile") 2>conftest.er1
24337 ac_status=$?
24338 grep -v '^ *+' conftest.er1 >conftest.err
24339 rm -f conftest.er1
24340 cat conftest.err >&5
24341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest.$ac_objext; then
24346 :
24347else
24348 $as_echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351 ac_cv_type_ssize_t=yes
24352fi
24353
24354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24355else
24356 $as_echo "$as_me: failed program was:" >&5
24357sed 's/^/| /' conftest.$ac_ext >&5
24358
24359
24360fi
24361
24362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24363fi
24364{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24365$as_echo "$ac_cv_type_ssize_t" >&6; }
24366if test "x$ac_cv_type_ssize_t" = x""yes; then
24367 :
24368else
24369
24370cat >>confdefs.h <<_ACEOF
24371#define ssize_t int
24372_ACEOF
24373
24374fi
24375
24376
24377# If the C compiler supports a working long double type with more range
24378# or precision than the double type, define HAVE_LONG_DOUBLE.
24379
24380 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
24381$as_echo_n "checking for long double with more range or precision than double... " >&6; }
24382if test "${ac_cv_type_long_double_wider+set}" = set; then
24383 $as_echo_n "(cached) " >&6
24384else
24385 cat >conftest.$ac_ext <<_ACEOF
24386/* confdefs.h. */
24387_ACEOF
24388cat confdefs.h >>conftest.$ac_ext
24389cat >>conftest.$ac_ext <<_ACEOF
24390/* end confdefs.h. */
24391#include <float.h>
24392 long double const a[] =
24393 {
24394 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24395 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24396 };
24397 long double
24398 f (long double x)
24399 {
24400 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24401 + (x ? f (x) : 'c'));
24402 }
24403
24404int
24405main ()
24406{
24407static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24408 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24409 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24410 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24411 && (int) LDBL_EPSILON == 0
24412 )];
24413test_array [0] = 0
24414
24415 ;
24416 return 0;
24417}
24418_ACEOF
24419rm -f conftest.$ac_objext
24420if { (ac_try="$ac_compile"
24421case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24424esac
24425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24426$as_echo "$ac_try_echo") >&5
24427 (eval "$ac_compile") 2>conftest.er1
24428 ac_status=$?
24429 grep -v '^ *+' conftest.er1 >conftest.err
24430 rm -f conftest.er1
24431 cat conftest.err >&5
24432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } && {
24434 test -z "$ac_c_werror_flag" ||
24435 test ! -s conftest.err
24436 } && test -s conftest.$ac_objext; then
24437 ac_cv_type_long_double_wider=yes
24438else
24439 $as_echo "$as_me: failed program was:" >&5
24440sed 's/^/| /' conftest.$ac_ext >&5
24441
24442 ac_cv_type_long_double_wider=no
24443fi
24444
24445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446fi
24447{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
24448$as_echo "$ac_cv_type_long_double_wider" >&6; }
24449 if test $ac_cv_type_long_double_wider = yes; then
24450
24451cat >>confdefs.h <<\_ACEOF
24452#define HAVE_LONG_DOUBLE_WIDER 1
24453_ACEOF
24454
24455 fi
24456
24457
24458# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24459# C compiler predefines it.
24460
24461{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
24462$as_echo_n "checking whether char is unsigned... " >&6; }
24463if test "${ac_cv_c_char_unsigned+set}" = set; then
24464 $as_echo_n "(cached) " >&6
24465else
24466 cat >conftest.$ac_ext <<_ACEOF
24467/* confdefs.h. */
24468_ACEOF
24469cat confdefs.h >>conftest.$ac_ext
24470cat >>conftest.$ac_ext <<_ACEOF
24471/* end confdefs.h. */
24472$ac_includes_default
24473int
24474main ()
24475{
24476static int test_array [1 - 2 * !(((char) -1) < 0)];
24477test_array [0] = 0
24478
24479 ;
24480 return 0;
24481}
24482_ACEOF
24483rm -f conftest.$ac_objext
24484if { (ac_try="$ac_compile"
24485case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24488esac
24489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24490$as_echo "$ac_try_echo") >&5
24491 (eval "$ac_compile") 2>conftest.er1
24492 ac_status=$?
24493 grep -v '^ *+' conftest.er1 >conftest.err
24494 rm -f conftest.er1
24495 cat conftest.err >&5
24496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && {
24498 test -z "$ac_c_werror_flag" ||
24499 test ! -s conftest.err
24500 } && test -s conftest.$ac_objext; then
24501 ac_cv_c_char_unsigned=no
24502else
24503 $as_echo "$as_me: failed program was:" >&5
24504sed 's/^/| /' conftest.$ac_ext >&5
24505
24506 ac_cv_c_char_unsigned=yes
24507fi
24508
24509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510fi
24511{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
24512$as_echo "$ac_cv_c_char_unsigned" >&6; }
24513if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24514 cat >>confdefs.h <<\_ACEOF
24515#define __CHAR_UNSIGNED__ 1
24516_ACEOF
24517
24518fi
24519
24520
24521# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24522# The cast to long int works around a bug in the HP C Compiler
24523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24525# This bug is HP SR number 8606223364.
24526{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
24527$as_echo_n "checking size of signed short... " >&6; }
24528if test "${ac_cv_sizeof_signed_short+set}" = set; then
24529 $as_echo_n "(cached) " >&6
24530else
24531 if test "$cross_compiling" = yes; then
24532 # Depending upon the size, compute the lo and hi bounds.
24533cat >conftest.$ac_ext <<_ACEOF
24534/* confdefs.h. */
24535_ACEOF
24536cat confdefs.h >>conftest.$ac_ext
24537cat >>conftest.$ac_ext <<_ACEOF
24538/* end confdefs.h. */
24539$ac_includes_default
24540int
24541main ()
24542{
24543static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
24544test_array [0] = 0
24545
24546 ;
24547 return 0;
24548}
24549_ACEOF
24550rm -f conftest.$ac_objext
24551if { (ac_try="$ac_compile"
24552case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555esac
24556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557$as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24559 ac_status=$?
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24568 ac_lo=0 ac_mid=0
24569 while :; do
24570 cat >conftest.$ac_ext <<_ACEOF
24571/* confdefs.h. */
24572_ACEOF
24573cat confdefs.h >>conftest.$ac_ext
24574cat >>conftest.$ac_ext <<_ACEOF
24575/* end confdefs.h. */
24576$ac_includes_default
24577int
24578main ()
24579{
24580static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24581test_array [0] = 0
24582
24583 ;
24584 return 0;
24585}
24586_ACEOF
24587rm -f conftest.$ac_objext
24588if { (ac_try="$ac_compile"
24589case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24592esac
24593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24594$as_echo "$ac_try_echo") >&5
24595 (eval "$ac_compile") 2>conftest.er1
24596 ac_status=$?
24597 grep -v '^ *+' conftest.er1 >conftest.err
24598 rm -f conftest.er1
24599 cat conftest.err >&5
24600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } && {
24602 test -z "$ac_c_werror_flag" ||
24603 test ! -s conftest.err
24604 } && test -s conftest.$ac_objext; then
24605 ac_hi=$ac_mid; break
24606else
24607 $as_echo "$as_me: failed program was:" >&5
24608sed 's/^/| /' conftest.$ac_ext >&5
24609
24610 ac_lo=`expr $ac_mid + 1`
24611 if test $ac_lo -le $ac_mid; then
24612 ac_lo= ac_hi=
24613 break
24614 fi
24615 ac_mid=`expr 2 '*' $ac_mid + 1`
24616fi
24617
24618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 done
24620else
24621 $as_echo "$as_me: failed program was:" >&5
24622sed 's/^/| /' conftest.$ac_ext >&5
24623
24624 cat >conftest.$ac_ext <<_ACEOF
24625/* confdefs.h. */
24626_ACEOF
24627cat confdefs.h >>conftest.$ac_ext
24628cat >>conftest.$ac_ext <<_ACEOF
24629/* end confdefs.h. */
24630$ac_includes_default
24631int
24632main ()
24633{
24634static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24635test_array [0] = 0
24636
24637 ;
24638 return 0;
24639}
24640_ACEOF
24641rm -f conftest.$ac_objext
24642if { (ac_try="$ac_compile"
24643case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646esac
24647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24648$as_echo "$ac_try_echo") >&5
24649 (eval "$ac_compile") 2>conftest.er1
24650 ac_status=$?
24651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
24654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } && {
24656 test -z "$ac_c_werror_flag" ||
24657 test ! -s conftest.err
24658 } && test -s conftest.$ac_objext; then
24659 ac_hi=-1 ac_mid=-1
24660 while :; do
24661 cat >conftest.$ac_ext <<_ACEOF
24662/* confdefs.h. */
24663_ACEOF
24664cat confdefs.h >>conftest.$ac_ext
24665cat >>conftest.$ac_ext <<_ACEOF
24666/* end confdefs.h. */
24667$ac_includes_default
24668int
24669main ()
24670{
24671static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24672test_array [0] = 0
24673
24674 ;
24675 return 0;
24676}
24677_ACEOF
24678rm -f conftest.$ac_objext
24679if { (ac_try="$ac_compile"
24680case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683esac
24684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24685$as_echo "$ac_try_echo") >&5
24686 (eval "$ac_compile") 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } && {
24693 test -z "$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24695 } && test -s conftest.$ac_objext; then
24696 ac_lo=$ac_mid; break
24697else
24698 $as_echo "$as_me: failed program was:" >&5
24699sed 's/^/| /' conftest.$ac_ext >&5
24700
24701 ac_hi=`expr '(' $ac_mid ')' - 1`
24702 if test $ac_mid -le $ac_hi; then
24703 ac_lo= ac_hi=
24704 break
24705 fi
24706 ac_mid=`expr 2 '*' $ac_mid`
24707fi
24708
24709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710 done
24711else
24712 $as_echo "$as_me: failed program was:" >&5
24713sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_lo= ac_hi=
24716fi
24717
24718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719fi
24720
24721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722# Binary search between lo and hi bounds.
24723while test "x$ac_lo" != "x$ac_hi"; do
24724 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24725 cat >conftest.$ac_ext <<_ACEOF
24726/* confdefs.h. */
24727_ACEOF
24728cat confdefs.h >>conftest.$ac_ext
24729cat >>conftest.$ac_ext <<_ACEOF
24730/* end confdefs.h. */
24731$ac_includes_default
24732int
24733main ()
24734{
24735static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24736test_array [0] = 0
24737
24738 ;
24739 return 0;
24740}
24741_ACEOF
24742rm -f conftest.$ac_objext
24743if { (ac_try="$ac_compile"
24744case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24747esac
24748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24749$as_echo "$ac_try_echo") >&5
24750 (eval "$ac_compile") 2>conftest.er1
24751 ac_status=$?
24752 grep -v '^ *+' conftest.er1 >conftest.err
24753 rm -f conftest.er1
24754 cat conftest.err >&5
24755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } && {
24757 test -z "$ac_c_werror_flag" ||
24758 test ! -s conftest.err
24759 } && test -s conftest.$ac_objext; then
24760 ac_hi=$ac_mid
24761else
24762 $as_echo "$as_me: failed program was:" >&5
24763sed 's/^/| /' conftest.$ac_ext >&5
24764
24765 ac_lo=`expr '(' $ac_mid ')' + 1`
24766fi
24767
24768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769done
24770case $ac_lo in
24771?*) ac_cv_sizeof_signed_short=$ac_lo;;
24772'') if test "$ac_cv_type_signed_short" = yes; then
24773 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24775{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24776See \`config.log' for more details." >&5
24777$as_echo "$as_me: error: cannot compute sizeof (signed short)
24778See \`config.log' for more details." >&2;}
24779 { (exit 77); exit 77; }; }; }
24780 else
24781 ac_cv_sizeof_signed_short=0
24782 fi ;;
24783esac
24784else
24785 cat >conftest.$ac_ext <<_ACEOF
24786/* confdefs.h. */
24787_ACEOF
24788cat confdefs.h >>conftest.$ac_ext
24789cat >>conftest.$ac_ext <<_ACEOF
24790/* end confdefs.h. */
24791$ac_includes_default
24792static long int longval () { return (long int) (sizeof (signed short)); }
24793static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
24794#include <stdio.h>
24795#include <stdlib.h>
24796int
24797main ()
24798{
24799
24800 FILE *f = fopen ("conftest.val", "w");
24801 if (! f)
24802 return 1;
24803 if (((long int) (sizeof (signed short))) < 0)
24804 {
24805 long int i = longval ();
24806 if (i != ((long int) (sizeof (signed short))))
24807 return 1;
24808 fprintf (f, "%ld", i);
24809 }
24810 else
24811 {
24812 unsigned long int i = ulongval ();
24813 if (i != ((long int) (sizeof (signed short))))
24814 return 1;
24815 fprintf (f, "%lu", i);
24816 }
24817 /* Do not output a trailing newline, as this causes \r\n confusion
24818 on some platforms. */
24819 return ferror (f) || fclose (f) != 0;
24820
24821 ;
24822 return 0;
24823}
24824_ACEOF
24825rm -f conftest$ac_exeext
24826if { (ac_try="$ac_link"
24827case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24830esac
24831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24832$as_echo "$ac_try_echo") >&5
24833 (eval "$ac_link") 2>&5
24834 ac_status=$?
24835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24837 { (case "(($ac_try" in
24838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839 *) ac_try_echo=$ac_try;;
24840esac
24841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24842$as_echo "$ac_try_echo") >&5
24843 (eval "$ac_try") 2>&5
24844 ac_status=$?
24845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; }; then
24847 ac_cv_sizeof_signed_short=`cat conftest.val`
24848else
24849 $as_echo "$as_me: program exited with status $ac_status" >&5
24850$as_echo "$as_me: failed program was:" >&5
24851sed 's/^/| /' conftest.$ac_ext >&5
24852
24853( exit $ac_status )
24854if test "$ac_cv_type_signed_short" = yes; then
24855 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24857{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24858See \`config.log' for more details." >&5
24859$as_echo "$as_me: error: cannot compute sizeof (signed short)
24860See \`config.log' for more details." >&2;}
24861 { (exit 77); exit 77; }; }; }
24862 else
24863 ac_cv_sizeof_signed_short=0
24864 fi
24865fi
24866rm -rf conftest.dSYM
24867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24868fi
24869rm -f conftest.val
24870fi
24871{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
24872$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24873
24874
24875
24876cat >>confdefs.h <<_ACEOF
24877#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24878_ACEOF
24879
24880
24881
24882# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24883# The cast to long int works around a bug in the HP C Compiler
24884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24886# This bug is HP SR number 8606223364.
24887{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
24888$as_echo_n "checking size of unsigned short... " >&6; }
24889if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
24890 $as_echo_n "(cached) " >&6
24891else
24892 if test "$cross_compiling" = yes; then
24893 # Depending upon the size, compute the lo and hi bounds.
24894cat >conftest.$ac_ext <<_ACEOF
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
24905test_array [0] = 0
24906
24907 ;
24908 return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext
24912if { (ac_try="$ac_compile"
24913case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916esac
24917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24918$as_echo "$ac_try_echo") >&5
24919 (eval "$ac_compile") 2>conftest.er1
24920 ac_status=$?
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && {
24926 test -z "$ac_c_werror_flag" ||
24927 test ! -s conftest.err
24928 } && test -s conftest.$ac_objext; then
24929 ac_lo=0 ac_mid=0
24930 while :; do
24931 cat >conftest.$ac_ext <<_ACEOF
24932/* confdefs.h. */
24933_ACEOF
24934cat confdefs.h >>conftest.$ac_ext
24935cat >>conftest.$ac_ext <<_ACEOF
24936/* end confdefs.h. */
24937$ac_includes_default
24938int
24939main ()
24940{
24941static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24942test_array [0] = 0
24943
24944 ;
24945 return 0;
24946}
24947_ACEOF
24948rm -f conftest.$ac_objext
24949if { (ac_try="$ac_compile"
24950case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953esac
24954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24955$as_echo "$ac_try_echo") >&5
24956 (eval "$ac_compile") 2>conftest.er1
24957 ac_status=$?
24958 grep -v '^ *+' conftest.er1 >conftest.err
24959 rm -f conftest.er1
24960 cat conftest.err >&5
24961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } && {
24963 test -z "$ac_c_werror_flag" ||
24964 test ! -s conftest.err
24965 } && test -s conftest.$ac_objext; then
24966 ac_hi=$ac_mid; break
24967else
24968 $as_echo "$as_me: failed program was:" >&5
24969sed 's/^/| /' conftest.$ac_ext >&5
24970
24971 ac_lo=`expr $ac_mid + 1`
24972 if test $ac_lo -le $ac_mid; then
24973 ac_lo= ac_hi=
24974 break
24975 fi
24976 ac_mid=`expr 2 '*' $ac_mid + 1`
24977fi
24978
24979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980 done
24981else
24982 $as_echo "$as_me: failed program was:" >&5
24983sed 's/^/| /' conftest.$ac_ext >&5
24984
24985 cat >conftest.$ac_ext <<_ACEOF
24986/* confdefs.h. */
24987_ACEOF
24988cat confdefs.h >>conftest.$ac_ext
24989cat >>conftest.$ac_ext <<_ACEOF
24990/* end confdefs.h. */
24991$ac_includes_default
24992int
24993main ()
24994{
24995static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
24996test_array [0] = 0
24997
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002rm -f conftest.$ac_objext
25003if { (ac_try="$ac_compile"
25004case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25007esac
25008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25009$as_echo "$ac_try_echo") >&5
25010 (eval "$ac_compile") 2>conftest.er1
25011 ac_status=$?
25012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
25015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } && {
25017 test -z "$ac_c_werror_flag" ||
25018 test ! -s conftest.err
25019 } && test -s conftest.$ac_objext; then
25020 ac_hi=-1 ac_mid=-1
25021 while :; do
25022 cat >conftest.$ac_ext <<_ACEOF
25023/* confdefs.h. */
25024_ACEOF
25025cat confdefs.h >>conftest.$ac_ext
25026cat >>conftest.$ac_ext <<_ACEOF
25027/* end confdefs.h. */
25028$ac_includes_default
25029int
25030main ()
25031{
25032static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
25033test_array [0] = 0
25034
25035 ;
25036 return 0;
25037}
25038_ACEOF
25039rm -f conftest.$ac_objext
25040if { (ac_try="$ac_compile"
25041case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25044esac
25045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25046$as_echo "$ac_try_echo") >&5
25047 (eval "$ac_compile") 2>conftest.er1
25048 ac_status=$?
25049 grep -v '^ *+' conftest.er1 >conftest.err
25050 rm -f conftest.er1
25051 cat conftest.err >&5
25052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest.$ac_objext; then
25057 ac_lo=$ac_mid; break
25058else
25059 $as_echo "$as_me: failed program was:" >&5
25060sed 's/^/| /' conftest.$ac_ext >&5
25061
25062 ac_hi=`expr '(' $ac_mid ')' - 1`
25063 if test $ac_mid -le $ac_hi; then
25064 ac_lo= ac_hi=
25065 break
25066 fi
25067 ac_mid=`expr 2 '*' $ac_mid`
25068fi
25069
25070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 done
25072else
25073 $as_echo "$as_me: failed program was:" >&5
25074sed 's/^/| /' conftest.$ac_ext >&5
25075
25076 ac_lo= ac_hi=
25077fi
25078
25079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25080fi
25081
25082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25083# Binary search between lo and hi bounds.
25084while test "x$ac_lo" != "x$ac_hi"; do
25085 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25086 cat >conftest.$ac_ext <<_ACEOF
25087/* confdefs.h. */
25088_ACEOF
25089cat confdefs.h >>conftest.$ac_ext
25090cat >>conftest.$ac_ext <<_ACEOF
25091/* end confdefs.h. */
25092$ac_includes_default
25093int
25094main ()
25095{
25096static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25097test_array [0] = 0
25098
25099 ;
25100 return 0;
25101}
25102_ACEOF
25103rm -f conftest.$ac_objext
25104if { (ac_try="$ac_compile"
25105case "(($ac_try" in
25106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25107 *) ac_try_echo=$ac_try;;
25108esac
25109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25110$as_echo "$ac_try_echo") >&5
25111 (eval "$ac_compile") 2>conftest.er1
25112 ac_status=$?
25113 grep -v '^ *+' conftest.er1 >conftest.err
25114 rm -f conftest.er1
25115 cat conftest.err >&5
25116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } && {
25118 test -z "$ac_c_werror_flag" ||
25119 test ! -s conftest.err
25120 } && test -s conftest.$ac_objext; then
25121 ac_hi=$ac_mid
25122else
25123 $as_echo "$as_me: failed program was:" >&5
25124sed 's/^/| /' conftest.$ac_ext >&5
25125
25126 ac_lo=`expr '(' $ac_mid ')' + 1`
25127fi
25128
25129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25130done
25131case $ac_lo in
25132?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25133'') if test "$ac_cv_type_unsigned_short" = yes; then
25134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25136{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25137See \`config.log' for more details." >&5
25138$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25139See \`config.log' for more details." >&2;}
25140 { (exit 77); exit 77; }; }; }
25141 else
25142 ac_cv_sizeof_unsigned_short=0
25143 fi ;;
25144esac
25145else
25146 cat >conftest.$ac_ext <<_ACEOF
25147/* confdefs.h. */
25148_ACEOF
25149cat confdefs.h >>conftest.$ac_ext
25150cat >>conftest.$ac_ext <<_ACEOF
25151/* end confdefs.h. */
25152$ac_includes_default
25153static long int longval () { return (long int) (sizeof (unsigned short)); }
25154static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
25155#include <stdio.h>
25156#include <stdlib.h>
25157int
25158main ()
25159{
25160
25161 FILE *f = fopen ("conftest.val", "w");
25162 if (! f)
25163 return 1;
25164 if (((long int) (sizeof (unsigned short))) < 0)
25165 {
25166 long int i = longval ();
25167 if (i != ((long int) (sizeof (unsigned short))))
25168 return 1;
25169 fprintf (f, "%ld", i);
25170 }
25171 else
25172 {
25173 unsigned long int i = ulongval ();
25174 if (i != ((long int) (sizeof (unsigned short))))
25175 return 1;
25176 fprintf (f, "%lu", i);
25177 }
25178 /* Do not output a trailing newline, as this causes \r\n confusion
25179 on some platforms. */
25180 return ferror (f) || fclose (f) != 0;
25181
25182 ;
25183 return 0;
25184}
25185_ACEOF
25186rm -f conftest$ac_exeext
25187if { (ac_try="$ac_link"
25188case "(($ac_try" in
25189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190 *) ac_try_echo=$ac_try;;
25191esac
25192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25193$as_echo "$ac_try_echo") >&5
25194 (eval "$ac_link") 2>&5
25195 ac_status=$?
25196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25198 { (case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201esac
25202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25203$as_echo "$ac_try_echo") >&5
25204 (eval "$ac_try") 2>&5
25205 ac_status=$?
25206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; }; then
25208 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25209else
25210 $as_echo "$as_me: program exited with status $ac_status" >&5
25211$as_echo "$as_me: failed program was:" >&5
25212sed 's/^/| /' conftest.$ac_ext >&5
25213
25214( exit $ac_status )
25215if test "$ac_cv_type_unsigned_short" = yes; then
25216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25218{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25219See \`config.log' for more details." >&5
25220$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25221See \`config.log' for more details." >&2;}
25222 { (exit 77); exit 77; }; }; }
25223 else
25224 ac_cv_sizeof_unsigned_short=0
25225 fi
25226fi
25227rm -rf conftest.dSYM
25228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25229fi
25230rm -f conftest.val
25231fi
25232{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25233$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
25234
25235
25236
25237cat >>confdefs.h <<_ACEOF
25238#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25239_ACEOF
25240
25241
25242
25243# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
25244# The cast to long int works around a bug in the HP C Compiler
25245# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25246# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25247# This bug is HP SR number 8606223364.
25248{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
25249$as_echo_n "checking size of signed int... " >&6; }
25250if test "${ac_cv_sizeof_signed_int+set}" = set; then
25251 $as_echo_n "(cached) " >&6
25252else
25253 if test "$cross_compiling" = yes; then
25254 # Depending upon the size, compute the lo and hi bounds.
25255cat >conftest.$ac_ext <<_ACEOF
25256/* confdefs.h. */
25257_ACEOF
25258cat confdefs.h >>conftest.$ac_ext
25259cat >>conftest.$ac_ext <<_ACEOF
25260/* end confdefs.h. */
25261$ac_includes_default
25262int
25263main ()
25264{
25265static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
25266test_array [0] = 0
25267
25268 ;
25269 return 0;
25270}
25271_ACEOF
25272rm -f conftest.$ac_objext
25273if { (ac_try="$ac_compile"
25274case "(($ac_try" in
25275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276 *) ac_try_echo=$ac_try;;
25277esac
25278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25279$as_echo "$ac_try_echo") >&5
25280 (eval "$ac_compile") 2>conftest.er1
25281 ac_status=$?
25282 grep -v '^ *+' conftest.er1 >conftest.err
25283 rm -f conftest.er1
25284 cat conftest.err >&5
25285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } && {
25287 test -z "$ac_c_werror_flag" ||
25288 test ! -s conftest.err
25289 } && test -s conftest.$ac_objext; then
25290 ac_lo=0 ac_mid=0
25291 while :; do
25292 cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h. */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h. */
25298$ac_includes_default
25299int
25300main ()
25301{
25302static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25303test_array [0] = 0
25304
25305 ;
25306 return 0;
25307}
25308_ACEOF
25309rm -f conftest.$ac_objext
25310if { (ac_try="$ac_compile"
25311case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25314esac
25315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25316$as_echo "$ac_try_echo") >&5
25317 (eval "$ac_compile") 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest.$ac_objext; then
25327 ac_hi=$ac_mid; break
25328else
25329 $as_echo "$as_me: failed program was:" >&5
25330sed 's/^/| /' conftest.$ac_ext >&5
25331
25332 ac_lo=`expr $ac_mid + 1`
25333 if test $ac_lo -le $ac_mid; then
25334 ac_lo= ac_hi=
25335 break
25336 fi
25337 ac_mid=`expr 2 '*' $ac_mid + 1`
25338fi
25339
25340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 done
25342else
25343 $as_echo "$as_me: failed program was:" >&5
25344sed 's/^/| /' conftest.$ac_ext >&5
25345
25346 cat >conftest.$ac_ext <<_ACEOF
25347/* confdefs.h. */
25348_ACEOF
25349cat confdefs.h >>conftest.$ac_ext
25350cat >>conftest.$ac_ext <<_ACEOF
25351/* end confdefs.h. */
25352$ac_includes_default
25353int
25354main ()
25355{
25356static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
25357test_array [0] = 0
25358
25359 ;
25360 return 0;
25361}
25362_ACEOF
25363rm -f conftest.$ac_objext
25364if { (ac_try="$ac_compile"
25365case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25368esac
25369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25370$as_echo "$ac_try_echo") >&5
25371 (eval "$ac_compile") 2>conftest.er1
25372 ac_status=$?
25373 grep -v '^ *+' conftest.er1 >conftest.err
25374 rm -f conftest.er1
25375 cat conftest.err >&5
25376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } && {
25378 test -z "$ac_c_werror_flag" ||
25379 test ! -s conftest.err
25380 } && test -s conftest.$ac_objext; then
25381 ac_hi=-1 ac_mid=-1
25382 while :; do
25383 cat >conftest.$ac_ext <<_ACEOF
25384/* confdefs.h. */
25385_ACEOF
25386cat confdefs.h >>conftest.$ac_ext
25387cat >>conftest.$ac_ext <<_ACEOF
25388/* end confdefs.h. */
25389$ac_includes_default
25390int
25391main ()
25392{
25393static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
25394test_array [0] = 0
25395
25396 ;
25397 return 0;
25398}
25399_ACEOF
25400rm -f conftest.$ac_objext
25401if { (ac_try="$ac_compile"
25402case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25405esac
25406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25407$as_echo "$ac_try_echo") >&5
25408 (eval "$ac_compile") 2>conftest.er1
25409 ac_status=$?
25410 grep -v '^ *+' conftest.er1 >conftest.err
25411 rm -f conftest.er1
25412 cat conftest.err >&5
25413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } && {
25415 test -z "$ac_c_werror_flag" ||
25416 test ! -s conftest.err
25417 } && test -s conftest.$ac_objext; then
25418 ac_lo=$ac_mid; break
25419else
25420 $as_echo "$as_me: failed program was:" >&5
25421sed 's/^/| /' conftest.$ac_ext >&5
25422
25423 ac_hi=`expr '(' $ac_mid ')' - 1`
25424 if test $ac_mid -le $ac_hi; then
25425 ac_lo= ac_hi=
25426 break
25427 fi
25428 ac_mid=`expr 2 '*' $ac_mid`
25429fi
25430
25431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25432 done
25433else
25434 $as_echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 ac_lo= ac_hi=
25438fi
25439
25440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441fi
25442
25443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25444# Binary search between lo and hi bounds.
25445while test "x$ac_lo" != "x$ac_hi"; do
25446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25447 cat >conftest.$ac_ext <<_ACEOF
25448/* confdefs.h. */
25449_ACEOF
25450cat confdefs.h >>conftest.$ac_ext
25451cat >>conftest.$ac_ext <<_ACEOF
25452/* end confdefs.h. */
25453$ac_includes_default
25454int
25455main ()
25456{
25457static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25458test_array [0] = 0
25459
25460 ;
25461 return 0;
25462}
25463_ACEOF
25464rm -f conftest.$ac_objext
25465if { (ac_try="$ac_compile"
25466case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25469esac
25470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25471$as_echo "$ac_try_echo") >&5
25472 (eval "$ac_compile") 2>conftest.er1
25473 ac_status=$?
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
25477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } && {
25479 test -z "$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest.$ac_objext; then
25482 ac_hi=$ac_mid
25483else
25484 $as_echo "$as_me: failed program was:" >&5
25485sed 's/^/| /' conftest.$ac_ext >&5
25486
25487 ac_lo=`expr '(' $ac_mid ')' + 1`
25488fi
25489
25490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491done
25492case $ac_lo in
25493?*) ac_cv_sizeof_signed_int=$ac_lo;;
25494'') if test "$ac_cv_type_signed_int" = yes; then
25495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25497{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25498See \`config.log' for more details." >&5
25499$as_echo "$as_me: error: cannot compute sizeof (signed int)
25500See \`config.log' for more details." >&2;}
25501 { (exit 77); exit 77; }; }; }
25502 else
25503 ac_cv_sizeof_signed_int=0
25504 fi ;;
25505esac
25506else
25507 cat >conftest.$ac_ext <<_ACEOF
25508/* confdefs.h. */
25509_ACEOF
25510cat confdefs.h >>conftest.$ac_ext
25511cat >>conftest.$ac_ext <<_ACEOF
25512/* end confdefs.h. */
25513$ac_includes_default
25514static long int longval () { return (long int) (sizeof (signed int)); }
25515static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
25516#include <stdio.h>
25517#include <stdlib.h>
25518int
25519main ()
25520{
25521
25522 FILE *f = fopen ("conftest.val", "w");
25523 if (! f)
25524 return 1;
25525 if (((long int) (sizeof (signed int))) < 0)
25526 {
25527 long int i = longval ();
25528 if (i != ((long int) (sizeof (signed int))))
25529 return 1;
25530 fprintf (f, "%ld", i);
25531 }
25532 else
25533 {
25534 unsigned long int i = ulongval ();
25535 if (i != ((long int) (sizeof (signed int))))
25536 return 1;
25537 fprintf (f, "%lu", i);
25538 }
25539 /* Do not output a trailing newline, as this causes \r\n confusion
25540 on some platforms. */
25541 return ferror (f) || fclose (f) != 0;
25542
25543 ;
25544 return 0;
25545}
25546_ACEOF
25547rm -f conftest$ac_exeext
25548if { (ac_try="$ac_link"
25549case "(($ac_try" in
25550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551 *) ac_try_echo=$ac_try;;
25552esac
25553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25554$as_echo "$ac_try_echo") >&5
25555 (eval "$ac_link") 2>&5
25556 ac_status=$?
25557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25559 { (case "(($ac_try" in
25560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561 *) ac_try_echo=$ac_try;;
25562esac
25563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25564$as_echo "$ac_try_echo") >&5
25565 (eval "$ac_try") 2>&5
25566 ac_status=$?
25567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); }; }; then
25569 ac_cv_sizeof_signed_int=`cat conftest.val`
25570else
25571 $as_echo "$as_me: program exited with status $ac_status" >&5
25572$as_echo "$as_me: failed program was:" >&5
25573sed 's/^/| /' conftest.$ac_ext >&5
25574
25575( exit $ac_status )
25576if test "$ac_cv_type_signed_int" = yes; then
25577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25579{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25580See \`config.log' for more details." >&5
25581$as_echo "$as_me: error: cannot compute sizeof (signed int)
25582See \`config.log' for more details." >&2;}
25583 { (exit 77); exit 77; }; }; }
25584 else
25585 ac_cv_sizeof_signed_int=0
25586 fi
25587fi
25588rm -rf conftest.dSYM
25589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25590fi
25591rm -f conftest.val
25592fi
25593{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25594$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25595
25596
25597
25598cat >>confdefs.h <<_ACEOF
25599#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25600_ACEOF
25601
25602
25603
25604# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25605# The cast to long int works around a bug in the HP C Compiler
25606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25608# This bug is HP SR number 8606223364.
25609{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25610$as_echo_n "checking size of unsigned int... " >&6; }
25611if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25612 $as_echo_n "(cached) " >&6
25613else
25614 if test "$cross_compiling" = yes; then
25615 # Depending upon the size, compute the lo and hi bounds.
25616cat >conftest.$ac_ext <<_ACEOF
25617/* confdefs.h. */
25618_ACEOF
25619cat confdefs.h >>conftest.$ac_ext
25620cat >>conftest.$ac_ext <<_ACEOF
25621/* end confdefs.h. */
25622$ac_includes_default
25623int
25624main ()
25625{
25626static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25627test_array [0] = 0
25628
25629 ;
25630 return 0;
25631}
25632_ACEOF
25633rm -f conftest.$ac_objext
25634if { (ac_try="$ac_compile"
25635case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25638esac
25639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25640$as_echo "$ac_try_echo") >&5
25641 (eval "$ac_compile") 2>conftest.er1
25642 ac_status=$?
25643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
25646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && {
25648 test -z "$ac_c_werror_flag" ||
25649 test ! -s conftest.err
25650 } && test -s conftest.$ac_objext; then
25651 ac_lo=0 ac_mid=0
25652 while :; do
25653 cat >conftest.$ac_ext <<_ACEOF
25654/* confdefs.h. */
25655_ACEOF
25656cat confdefs.h >>conftest.$ac_ext
25657cat >>conftest.$ac_ext <<_ACEOF
25658/* end confdefs.h. */
25659$ac_includes_default
25660int
25661main ()
25662{
25663static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25664test_array [0] = 0
25665
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670rm -f conftest.$ac_objext
25671if { (ac_try="$ac_compile"
25672case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25675esac
25676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25677$as_echo "$ac_try_echo") >&5
25678 (eval "$ac_compile") 2>conftest.er1
25679 ac_status=$?
25680 grep -v '^ *+' conftest.er1 >conftest.err
25681 rm -f conftest.er1
25682 cat conftest.err >&5
25683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest.$ac_objext; then
25688 ac_hi=$ac_mid; break
25689else
25690 $as_echo "$as_me: failed program was:" >&5
25691sed 's/^/| /' conftest.$ac_ext >&5
25692
25693 ac_lo=`expr $ac_mid + 1`
25694 if test $ac_lo -le $ac_mid; then
25695 ac_lo= ac_hi=
25696 break
25697 fi
25698 ac_mid=`expr 2 '*' $ac_mid + 1`
25699fi
25700
25701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702 done
25703else
25704 $as_echo "$as_me: failed program was:" >&5
25705sed 's/^/| /' conftest.$ac_ext >&5
25706
25707 cat >conftest.$ac_ext <<_ACEOF
25708/* confdefs.h. */
25709_ACEOF
25710cat confdefs.h >>conftest.$ac_ext
25711cat >>conftest.$ac_ext <<_ACEOF
25712/* end confdefs.h. */
25713$ac_includes_default
25714int
25715main ()
25716{
25717static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25718test_array [0] = 0
25719
25720 ;
25721 return 0;
25722}
25723_ACEOF
25724rm -f conftest.$ac_objext
25725if { (ac_try="$ac_compile"
25726case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25729esac
25730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25731$as_echo "$ac_try_echo") >&5
25732 (eval "$ac_compile") 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } && {
25739 test -z "$ac_c_werror_flag" ||
25740 test ! -s conftest.err
25741 } && test -s conftest.$ac_objext; then
25742 ac_hi=-1 ac_mid=-1
25743 while :; do
25744 cat >conftest.$ac_ext <<_ACEOF
25745/* confdefs.h. */
25746_ACEOF
25747cat confdefs.h >>conftest.$ac_ext
25748cat >>conftest.$ac_ext <<_ACEOF
25749/* end confdefs.h. */
25750$ac_includes_default
25751int
25752main ()
25753{
25754static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
25755test_array [0] = 0
25756
25757 ;
25758 return 0;
25759}
25760_ACEOF
25761rm -f conftest.$ac_objext
25762if { (ac_try="$ac_compile"
25763case "(($ac_try" in
25764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25765 *) ac_try_echo=$ac_try;;
25766esac
25767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25768$as_echo "$ac_try_echo") >&5
25769 (eval "$ac_compile") 2>conftest.er1
25770 ac_status=$?
25771 grep -v '^ *+' conftest.er1 >conftest.err
25772 rm -f conftest.er1
25773 cat conftest.err >&5
25774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } && {
25776 test -z "$ac_c_werror_flag" ||
25777 test ! -s conftest.err
25778 } && test -s conftest.$ac_objext; then
25779 ac_lo=$ac_mid; break
25780else
25781 $as_echo "$as_me: failed program was:" >&5
25782sed 's/^/| /' conftest.$ac_ext >&5
25783
25784 ac_hi=`expr '(' $ac_mid ')' - 1`
25785 if test $ac_mid -le $ac_hi; then
25786 ac_lo= ac_hi=
25787 break
25788 fi
25789 ac_mid=`expr 2 '*' $ac_mid`
25790fi
25791
25792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793 done
25794else
25795 $as_echo "$as_me: failed program was:" >&5
25796sed 's/^/| /' conftest.$ac_ext >&5
25797
25798 ac_lo= ac_hi=
25799fi
25800
25801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802fi
25803
25804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805# Binary search between lo and hi bounds.
25806while test "x$ac_lo" != "x$ac_hi"; do
25807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25808 cat >conftest.$ac_ext <<_ACEOF
25809/* confdefs.h. */
25810_ACEOF
25811cat confdefs.h >>conftest.$ac_ext
25812cat >>conftest.$ac_ext <<_ACEOF
25813/* end confdefs.h. */
25814$ac_includes_default
25815int
25816main ()
25817{
25818static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25819test_array [0] = 0
25820
25821 ;
25822 return 0;
25823}
25824_ACEOF
25825rm -f conftest.$ac_objext
25826if { (ac_try="$ac_compile"
25827case "(($ac_try" in
25828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25829 *) ac_try_echo=$ac_try;;
25830esac
25831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25832$as_echo "$ac_try_echo") >&5
25833 (eval "$ac_compile") 2>conftest.er1
25834 ac_status=$?
25835 grep -v '^ *+' conftest.er1 >conftest.err
25836 rm -f conftest.er1
25837 cat conftest.err >&5
25838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest.$ac_objext; then
25843 ac_hi=$ac_mid
25844else
25845 $as_echo "$as_me: failed program was:" >&5
25846sed 's/^/| /' conftest.$ac_ext >&5
25847
25848 ac_lo=`expr '(' $ac_mid ')' + 1`
25849fi
25850
25851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852done
25853case $ac_lo in
25854?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
25855'') if test "$ac_cv_type_unsigned_int" = yes; then
25856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25858{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25859See \`config.log' for more details." >&5
25860$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25861See \`config.log' for more details." >&2;}
25862 { (exit 77); exit 77; }; }; }
25863 else
25864 ac_cv_sizeof_unsigned_int=0
25865 fi ;;
25866esac
25867else
25868 cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874$ac_includes_default
25875static long int longval () { return (long int) (sizeof (unsigned int)); }
25876static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
25877#include <stdio.h>
25878#include <stdlib.h>
25879int
25880main ()
25881{
25882
25883 FILE *f = fopen ("conftest.val", "w");
25884 if (! f)
25885 return 1;
25886 if (((long int) (sizeof (unsigned int))) < 0)
25887 {
25888 long int i = longval ();
25889 if (i != ((long int) (sizeof (unsigned int))))
25890 return 1;
25891 fprintf (f, "%ld", i);
25892 }
25893 else
25894 {
25895 unsigned long int i = ulongval ();
25896 if (i != ((long int) (sizeof (unsigned int))))
25897 return 1;
25898 fprintf (f, "%lu", i);
25899 }
25900 /* Do not output a trailing newline, as this causes \r\n confusion
25901 on some platforms. */
25902 return ferror (f) || fclose (f) != 0;
25903
25904 ;
25905 return 0;
25906}
25907_ACEOF
25908rm -f conftest$ac_exeext
25909if { (ac_try="$ac_link"
25910case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913esac
25914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25915$as_echo "$ac_try_echo") >&5
25916 (eval "$ac_link") 2>&5
25917 ac_status=$?
25918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25920 { (case "(($ac_try" in
25921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922 *) ac_try_echo=$ac_try;;
25923esac
25924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25925$as_echo "$ac_try_echo") >&5
25926 (eval "$ac_try") 2>&5
25927 ac_status=$?
25928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; }; then
25930 ac_cv_sizeof_unsigned_int=`cat conftest.val`
25931else
25932 $as_echo "$as_me: program exited with status $ac_status" >&5
25933$as_echo "$as_me: failed program was:" >&5
25934sed 's/^/| /' conftest.$ac_ext >&5
25935
25936( exit $ac_status )
25937if test "$ac_cv_type_unsigned_int" = yes; then
25938 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25940{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25941See \`config.log' for more details." >&5
25942$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25943See \`config.log' for more details." >&2;}
25944 { (exit 77); exit 77; }; }; }
25945 else
25946 ac_cv_sizeof_unsigned_int=0
25947 fi
25948fi
25949rm -rf conftest.dSYM
25950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25951fi
25952rm -f conftest.val
25953fi
25954{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
25955$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
25956
25957
25958
25959cat >>confdefs.h <<_ACEOF
25960#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25961_ACEOF
25962
25963
25964
25965# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
25966# The cast to long int works around a bug in the HP C Compiler
25967# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25968# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25969# This bug is HP SR number 8606223364.
25970{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
25971$as_echo_n "checking size of signed long... " >&6; }
25972if test "${ac_cv_sizeof_signed_long+set}" = set; then
25973 $as_echo_n "(cached) " >&6
25974else
25975 if test "$cross_compiling" = yes; then
25976 # Depending upon the size, compute the lo and hi bounds.
25977cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h. */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h. */
25983$ac_includes_default
25984int
25985main ()
25986{
25987static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
25988test_array [0] = 0
25989
25990 ;
25991 return 0;
25992}
25993_ACEOF
25994rm -f conftest.$ac_objext
25995if { (ac_try="$ac_compile"
25996case "(($ac_try" in
25997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998 *) ac_try_echo=$ac_try;;
25999esac
26000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26001$as_echo "$ac_try_echo") >&5
26002 (eval "$ac_compile") 2>conftest.er1
26003 ac_status=$?
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
26007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } && {
26009 test -z "$ac_c_werror_flag" ||
26010 test ! -s conftest.err
26011 } && test -s conftest.$ac_objext; then
26012 ac_lo=0 ac_mid=0
26013 while :; do
26014 cat >conftest.$ac_ext <<_ACEOF
26015/* confdefs.h. */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h. */
26020$ac_includes_default
26021int
26022main ()
26023{
26024static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26025test_array [0] = 0
26026
26027 ;
26028 return 0;
26029}
26030_ACEOF
26031rm -f conftest.$ac_objext
26032if { (ac_try="$ac_compile"
26033case "(($ac_try" in
26034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26035 *) ac_try_echo=$ac_try;;
26036esac
26037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26038$as_echo "$ac_try_echo") >&5
26039 (eval "$ac_compile") 2>conftest.er1
26040 ac_status=$?
26041 grep -v '^ *+' conftest.er1 >conftest.err
26042 rm -f conftest.er1
26043 cat conftest.err >&5
26044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } && {
26046 test -z "$ac_c_werror_flag" ||
26047 test ! -s conftest.err
26048 } && test -s conftest.$ac_objext; then
26049 ac_hi=$ac_mid; break
26050else
26051 $as_echo "$as_me: failed program was:" >&5
26052sed 's/^/| /' conftest.$ac_ext >&5
26053
26054 ac_lo=`expr $ac_mid + 1`
26055 if test $ac_lo -le $ac_mid; then
26056 ac_lo= ac_hi=
26057 break
26058 fi
26059 ac_mid=`expr 2 '*' $ac_mid + 1`
26060fi
26061
26062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063 done
26064else
26065 $as_echo "$as_me: failed program was:" >&5
26066sed 's/^/| /' conftest.$ac_ext >&5
26067
26068 cat >conftest.$ac_ext <<_ACEOF
26069/* confdefs.h. */
26070_ACEOF
26071cat confdefs.h >>conftest.$ac_ext
26072cat >>conftest.$ac_ext <<_ACEOF
26073/* end confdefs.h. */
26074$ac_includes_default
26075int
26076main ()
26077{
26078static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
26079test_array [0] = 0
26080
26081 ;
26082 return 0;
26083}
26084_ACEOF
26085rm -f conftest.$ac_objext
26086if { (ac_try="$ac_compile"
26087case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26090esac
26091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26092$as_echo "$ac_try_echo") >&5
26093 (eval "$ac_compile") 2>conftest.er1
26094 ac_status=$?
26095 grep -v '^ *+' conftest.er1 >conftest.err
26096 rm -f conftest.er1
26097 cat conftest.err >&5
26098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && {
26100 test -z "$ac_c_werror_flag" ||
26101 test ! -s conftest.err
26102 } && test -s conftest.$ac_objext; then
26103 ac_hi=-1 ac_mid=-1
26104 while :; do
26105 cat >conftest.$ac_ext <<_ACEOF
26106/* confdefs.h. */
26107_ACEOF
26108cat confdefs.h >>conftest.$ac_ext
26109cat >>conftest.$ac_ext <<_ACEOF
26110/* end confdefs.h. */
26111$ac_includes_default
26112int
26113main ()
26114{
26115static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
26116test_array [0] = 0
26117
26118 ;
26119 return 0;
26120}
26121_ACEOF
26122rm -f conftest.$ac_objext
26123if { (ac_try="$ac_compile"
26124case "(($ac_try" in
26125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126 *) ac_try_echo=$ac_try;;
26127esac
26128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26129$as_echo "$ac_try_echo") >&5
26130 (eval "$ac_compile") 2>conftest.er1
26131 ac_status=$?
26132 grep -v '^ *+' conftest.er1 >conftest.err
26133 rm -f conftest.er1
26134 cat conftest.err >&5
26135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } && {
26137 test -z "$ac_c_werror_flag" ||
26138 test ! -s conftest.err
26139 } && test -s conftest.$ac_objext; then
26140 ac_lo=$ac_mid; break
26141else
26142 $as_echo "$as_me: failed program was:" >&5
26143sed 's/^/| /' conftest.$ac_ext >&5
26144
26145 ac_hi=`expr '(' $ac_mid ')' - 1`
26146 if test $ac_mid -le $ac_hi; then
26147 ac_lo= ac_hi=
26148 break
26149 fi
26150 ac_mid=`expr 2 '*' $ac_mid`
26151fi
26152
26153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26154 done
26155else
26156 $as_echo "$as_me: failed program was:" >&5
26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159 ac_lo= ac_hi=
26160fi
26161
26162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26163fi
26164
26165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26166# Binary search between lo and hi bounds.
26167while test "x$ac_lo" != "x$ac_hi"; do
26168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26169 cat >conftest.$ac_ext <<_ACEOF
26170/* confdefs.h. */
26171_ACEOF
26172cat confdefs.h >>conftest.$ac_ext
26173cat >>conftest.$ac_ext <<_ACEOF
26174/* end confdefs.h. */
26175$ac_includes_default
26176int
26177main ()
26178{
26179static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26180test_array [0] = 0
26181
26182 ;
26183 return 0;
26184}
26185_ACEOF
26186rm -f conftest.$ac_objext
26187if { (ac_try="$ac_compile"
26188case "(($ac_try" in
26189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26190 *) ac_try_echo=$ac_try;;
26191esac
26192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26193$as_echo "$ac_try_echo") >&5
26194 (eval "$ac_compile") 2>conftest.er1
26195 ac_status=$?
26196 grep -v '^ *+' conftest.er1 >conftest.err
26197 rm -f conftest.er1
26198 cat conftest.err >&5
26199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } && {
26201 test -z "$ac_c_werror_flag" ||
26202 test ! -s conftest.err
26203 } && test -s conftest.$ac_objext; then
26204 ac_hi=$ac_mid
26205else
26206 $as_echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 ac_lo=`expr '(' $ac_mid ')' + 1`
26210fi
26211
26212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26213done
26214case $ac_lo in
26215?*) ac_cv_sizeof_signed_long=$ac_lo;;
26216'') if test "$ac_cv_type_signed_long" = yes; then
26217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26219{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26220See \`config.log' for more details." >&5
26221$as_echo "$as_me: error: cannot compute sizeof (signed long)
26222See \`config.log' for more details." >&2;}
26223 { (exit 77); exit 77; }; }; }
26224 else
26225 ac_cv_sizeof_signed_long=0
26226 fi ;;
26227esac
26228else
26229 cat >conftest.$ac_ext <<_ACEOF
26230/* confdefs.h. */
26231_ACEOF
26232cat confdefs.h >>conftest.$ac_ext
26233cat >>conftest.$ac_ext <<_ACEOF
26234/* end confdefs.h. */
26235$ac_includes_default
26236static long int longval () { return (long int) (sizeof (signed long)); }
26237static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
26238#include <stdio.h>
26239#include <stdlib.h>
26240int
26241main ()
26242{
26243
26244 FILE *f = fopen ("conftest.val", "w");
26245 if (! f)
26246 return 1;
26247 if (((long int) (sizeof (signed long))) < 0)
26248 {
26249 long int i = longval ();
26250 if (i != ((long int) (sizeof (signed long))))
26251 return 1;
26252 fprintf (f, "%ld", i);
26253 }
26254 else
26255 {
26256 unsigned long int i = ulongval ();
26257 if (i != ((long int) (sizeof (signed long))))
26258 return 1;
26259 fprintf (f, "%lu", i);
26260 }
26261 /* Do not output a trailing newline, as this causes \r\n confusion
26262 on some platforms. */
26263 return ferror (f) || fclose (f) != 0;
26264
26265 ;
26266 return 0;
26267}
26268_ACEOF
26269rm -f conftest$ac_exeext
26270if { (ac_try="$ac_link"
26271case "(($ac_try" in
26272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273 *) ac_try_echo=$ac_try;;
26274esac
26275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26276$as_echo "$ac_try_echo") >&5
26277 (eval "$ac_link") 2>&5
26278 ac_status=$?
26279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26281 { (case "(($ac_try" in
26282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26283 *) ac_try_echo=$ac_try;;
26284esac
26285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26286$as_echo "$ac_try_echo") >&5
26287 (eval "$ac_try") 2>&5
26288 ac_status=$?
26289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291 ac_cv_sizeof_signed_long=`cat conftest.val`
26292else
26293 $as_echo "$as_me: program exited with status $ac_status" >&5
26294$as_echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297( exit $ac_status )
26298if test "$ac_cv_type_signed_long" = yes; then
26299 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26301{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26302See \`config.log' for more details." >&5
26303$as_echo "$as_me: error: cannot compute sizeof (signed long)
26304See \`config.log' for more details." >&2;}
26305 { (exit 77); exit 77; }; }; }
26306 else
26307 ac_cv_sizeof_signed_long=0
26308 fi
26309fi
26310rm -rf conftest.dSYM
26311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26312fi
26313rm -f conftest.val
26314fi
26315{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
26316$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26317
26318
26319
26320cat >>confdefs.h <<_ACEOF
26321#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26322_ACEOF
26323
26324
26325
26326# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26327# The cast to long int works around a bug in the HP C Compiler
26328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26330# This bug is HP SR number 8606223364.
26331{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
26332$as_echo_n "checking size of unsigned long... " >&6; }
26333if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26334 $as_echo_n "(cached) " >&6
26335else
26336 if test "$cross_compiling" = yes; then
26337 # Depending upon the size, compute the lo and hi bounds.
26338cat >conftest.$ac_ext <<_ACEOF
26339/* confdefs.h. */
26340_ACEOF
26341cat confdefs.h >>conftest.$ac_ext
26342cat >>conftest.$ac_ext <<_ACEOF
26343/* end confdefs.h. */
26344$ac_includes_default
26345int
26346main ()
26347{
26348static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
26349test_array [0] = 0
26350
26351 ;
26352 return 0;
26353}
26354_ACEOF
26355rm -f conftest.$ac_objext
26356if { (ac_try="$ac_compile"
26357case "(($ac_try" in
26358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359 *) ac_try_echo=$ac_try;;
26360esac
26361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26362$as_echo "$ac_try_echo") >&5
26363 (eval "$ac_compile") 2>conftest.er1
26364 ac_status=$?
26365 grep -v '^ *+' conftest.er1 >conftest.err
26366 rm -f conftest.er1
26367 cat conftest.err >&5
26368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } && {
26370 test -z "$ac_c_werror_flag" ||
26371 test ! -s conftest.err
26372 } && test -s conftest.$ac_objext; then
26373 ac_lo=0 ac_mid=0
26374 while :; do
26375 cat >conftest.$ac_ext <<_ACEOF
26376/* confdefs.h. */
26377_ACEOF
26378cat confdefs.h >>conftest.$ac_ext
26379cat >>conftest.$ac_ext <<_ACEOF
26380/* end confdefs.h. */
26381$ac_includes_default
26382int
26383main ()
26384{
26385static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26386test_array [0] = 0
26387
26388 ;
26389 return 0;
26390}
26391_ACEOF
26392rm -f conftest.$ac_objext
26393if { (ac_try="$ac_compile"
26394case "(($ac_try" in
26395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396 *) ac_try_echo=$ac_try;;
26397esac
26398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26399$as_echo "$ac_try_echo") >&5
26400 (eval "$ac_compile") 2>conftest.er1
26401 ac_status=$?
26402 grep -v '^ *+' conftest.er1 >conftest.err
26403 rm -f conftest.er1
26404 cat conftest.err >&5
26405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); } && {
26407 test -z "$ac_c_werror_flag" ||
26408 test ! -s conftest.err
26409 } && test -s conftest.$ac_objext; then
26410 ac_hi=$ac_mid; break
26411else
26412 $as_echo "$as_me: failed program was:" >&5
26413sed 's/^/| /' conftest.$ac_ext >&5
26414
26415 ac_lo=`expr $ac_mid + 1`
26416 if test $ac_lo -le $ac_mid; then
26417 ac_lo= ac_hi=
26418 break
26419 fi
26420 ac_mid=`expr 2 '*' $ac_mid + 1`
26421fi
26422
26423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 done
26425else
26426 $as_echo "$as_me: failed program was:" >&5
26427sed 's/^/| /' conftest.$ac_ext >&5
26428
26429 cat >conftest.$ac_ext <<_ACEOF
26430/* confdefs.h. */
26431_ACEOF
26432cat confdefs.h >>conftest.$ac_ext
26433cat >>conftest.$ac_ext <<_ACEOF
26434/* end confdefs.h. */
26435$ac_includes_default
26436int
26437main ()
26438{
26439static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
26440test_array [0] = 0
26441
26442 ;
26443 return 0;
26444}
26445_ACEOF
26446rm -f conftest.$ac_objext
26447if { (ac_try="$ac_compile"
26448case "(($ac_try" in
26449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450 *) ac_try_echo=$ac_try;;
26451esac
26452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26453$as_echo "$ac_try_echo") >&5
26454 (eval "$ac_compile") 2>conftest.er1
26455 ac_status=$?
26456 grep -v '^ *+' conftest.er1 >conftest.err
26457 rm -f conftest.er1
26458 cat conftest.err >&5
26459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); } && {
26461 test -z "$ac_c_werror_flag" ||
26462 test ! -s conftest.err
26463 } && test -s conftest.$ac_objext; then
26464 ac_hi=-1 ac_mid=-1
26465 while :; do
26466 cat >conftest.$ac_ext <<_ACEOF
26467/* confdefs.h. */
26468_ACEOF
26469cat confdefs.h >>conftest.$ac_ext
26470cat >>conftest.$ac_ext <<_ACEOF
26471/* end confdefs.h. */
26472$ac_includes_default
26473int
26474main ()
26475{
26476static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
26477test_array [0] = 0
26478
26479 ;
26480 return 0;
26481}
26482_ACEOF
26483rm -f conftest.$ac_objext
26484if { (ac_try="$ac_compile"
26485case "(($ac_try" in
26486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487 *) ac_try_echo=$ac_try;;
26488esac
26489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26490$as_echo "$ac_try_echo") >&5
26491 (eval "$ac_compile") 2>conftest.er1
26492 ac_status=$?
26493 grep -v '^ *+' conftest.er1 >conftest.err
26494 rm -f conftest.er1
26495 cat conftest.err >&5
26496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest.$ac_objext; then
26501 ac_lo=$ac_mid; break
26502else
26503 $as_echo "$as_me: failed program was:" >&5
26504sed 's/^/| /' conftest.$ac_ext >&5
26505
26506 ac_hi=`expr '(' $ac_mid ')' - 1`
26507 if test $ac_mid -le $ac_hi; then
26508 ac_lo= ac_hi=
26509 break
26510 fi
26511 ac_mid=`expr 2 '*' $ac_mid`
26512fi
26513
26514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26515 done
26516else
26517 $as_echo "$as_me: failed program was:" >&5
26518sed 's/^/| /' conftest.$ac_ext >&5
26519
26520 ac_lo= ac_hi=
26521fi
26522
26523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524fi
26525
26526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527# Binary search between lo and hi bounds.
26528while test "x$ac_lo" != "x$ac_hi"; do
26529 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26530 cat >conftest.$ac_ext <<_ACEOF
26531/* confdefs.h. */
26532_ACEOF
26533cat confdefs.h >>conftest.$ac_ext
26534cat >>conftest.$ac_ext <<_ACEOF
26535/* end confdefs.h. */
26536$ac_includes_default
26537int
26538main ()
26539{
26540static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26541test_array [0] = 0
26542
26543 ;
26544 return 0;
26545}
26546_ACEOF
26547rm -f conftest.$ac_objext
26548if { (ac_try="$ac_compile"
26549case "(($ac_try" in
26550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551 *) ac_try_echo=$ac_try;;
26552esac
26553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26554$as_echo "$ac_try_echo") >&5
26555 (eval "$ac_compile") 2>conftest.er1
26556 ac_status=$?
26557 grep -v '^ *+' conftest.er1 >conftest.err
26558 rm -f conftest.er1
26559 cat conftest.err >&5
26560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); } && {
26562 test -z "$ac_c_werror_flag" ||
26563 test ! -s conftest.err
26564 } && test -s conftest.$ac_objext; then
26565 ac_hi=$ac_mid
26566else
26567 $as_echo "$as_me: failed program was:" >&5
26568sed 's/^/| /' conftest.$ac_ext >&5
26569
26570 ac_lo=`expr '(' $ac_mid ')' + 1`
26571fi
26572
26573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574done
26575case $ac_lo in
26576?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26577'') if test "$ac_cv_type_unsigned_long" = yes; then
26578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26580{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26581See \`config.log' for more details." >&5
26582$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26583See \`config.log' for more details." >&2;}
26584 { (exit 77); exit 77; }; }; }
26585 else
26586 ac_cv_sizeof_unsigned_long=0
26587 fi ;;
26588esac
26589else
26590 cat >conftest.$ac_ext <<_ACEOF
26591/* confdefs.h. */
26592_ACEOF
26593cat confdefs.h >>conftest.$ac_ext
26594cat >>conftest.$ac_ext <<_ACEOF
26595/* end confdefs.h. */
26596$ac_includes_default
26597static long int longval () { return (long int) (sizeof (unsigned long)); }
26598static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26599#include <stdio.h>
26600#include <stdlib.h>
26601int
26602main ()
26603{
26604
26605 FILE *f = fopen ("conftest.val", "w");
26606 if (! f)
26607 return 1;
26608 if (((long int) (sizeof (unsigned long))) < 0)
26609 {
26610 long int i = longval ();
26611 if (i != ((long int) (sizeof (unsigned long))))
26612 return 1;
26613 fprintf (f, "%ld", i);
26614 }
26615 else
26616 {
26617 unsigned long int i = ulongval ();
26618 if (i != ((long int) (sizeof (unsigned long))))
26619 return 1;
26620 fprintf (f, "%lu", i);
26621 }
26622 /* Do not output a trailing newline, as this causes \r\n confusion
26623 on some platforms. */
26624 return ferror (f) || fclose (f) != 0;
26625
26626 ;
26627 return 0;
26628}
26629_ACEOF
26630rm -f conftest$ac_exeext
26631if { (ac_try="$ac_link"
26632case "(($ac_try" in
26633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26635esac
26636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26637$as_echo "$ac_try_echo") >&5
26638 (eval "$ac_link") 2>&5
26639 ac_status=$?
26640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26642 { (case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26645esac
26646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26647$as_echo "$ac_try_echo") >&5
26648 (eval "$ac_try") 2>&5
26649 ac_status=$?
26650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26653else
26654 $as_echo "$as_me: program exited with status $ac_status" >&5
26655$as_echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658( exit $ac_status )
26659if test "$ac_cv_type_unsigned_long" = yes; then
26660 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26662{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26663See \`config.log' for more details." >&5
26664$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26665See \`config.log' for more details." >&2;}
26666 { (exit 77); exit 77; }; }; }
26667 else
26668 ac_cv_sizeof_unsigned_long=0
26669 fi
26670fi
26671rm -rf conftest.dSYM
26672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26673fi
26674rm -f conftest.val
26675fi
26676{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26677$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26678
26679
26680
26681cat >>confdefs.h <<_ACEOF
26682#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26683_ACEOF
26684
26685
26686
26687# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26688# 'signed long long' is not supported then the value defined is zero.
26689# The cast to long int works around a bug in the HP C Compiler
26690# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26691# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26692# This bug is HP SR number 8606223364.
26693{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26694$as_echo_n "checking size of signed long long... " >&6; }
26695if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26696 $as_echo_n "(cached) " >&6
26697else
26698 if test "$cross_compiling" = yes; then
26699 # Depending upon the size, compute the lo and hi bounds.
26700cat >conftest.$ac_ext <<_ACEOF
26701/* confdefs.h. */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h. */
26706$ac_includes_default
26707int
26708main ()
26709{
26710static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26711test_array [0] = 0
26712
26713 ;
26714 return 0;
26715}
26716_ACEOF
26717rm -f conftest.$ac_objext
26718if { (ac_try="$ac_compile"
26719case "(($ac_try" in
26720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721 *) ac_try_echo=$ac_try;;
26722esac
26723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26724$as_echo "$ac_try_echo") >&5
26725 (eval "$ac_compile") 2>conftest.er1
26726 ac_status=$?
26727 grep -v '^ *+' conftest.er1 >conftest.err
26728 rm -f conftest.er1
26729 cat conftest.err >&5
26730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } && {
26732 test -z "$ac_c_werror_flag" ||
26733 test ! -s conftest.err
26734 } && test -s conftest.$ac_objext; then
26735 ac_lo=0 ac_mid=0
26736 while :; do
26737 cat >conftest.$ac_ext <<_ACEOF
26738/* confdefs.h. */
26739_ACEOF
26740cat confdefs.h >>conftest.$ac_ext
26741cat >>conftest.$ac_ext <<_ACEOF
26742/* end confdefs.h. */
26743$ac_includes_default
26744int
26745main ()
26746{
26747static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26748test_array [0] = 0
26749
26750 ;
26751 return 0;
26752}
26753_ACEOF
26754rm -f conftest.$ac_objext
26755if { (ac_try="$ac_compile"
26756case "(($ac_try" in
26757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758 *) ac_try_echo=$ac_try;;
26759esac
26760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26761$as_echo "$ac_try_echo") >&5
26762 (eval "$ac_compile") 2>conftest.er1
26763 ac_status=$?
26764 grep -v '^ *+' conftest.er1 >conftest.err
26765 rm -f conftest.er1
26766 cat conftest.err >&5
26767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } && {
26769 test -z "$ac_c_werror_flag" ||
26770 test ! -s conftest.err
26771 } && test -s conftest.$ac_objext; then
26772 ac_hi=$ac_mid; break
26773else
26774 $as_echo "$as_me: failed program was:" >&5
26775sed 's/^/| /' conftest.$ac_ext >&5
26776
26777 ac_lo=`expr $ac_mid + 1`
26778 if test $ac_lo -le $ac_mid; then
26779 ac_lo= ac_hi=
26780 break
26781 fi
26782 ac_mid=`expr 2 '*' $ac_mid + 1`
26783fi
26784
26785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 done
26787else
26788 $as_echo "$as_me: failed program was:" >&5
26789sed 's/^/| /' conftest.$ac_ext >&5
26790
26791 cat >conftest.$ac_ext <<_ACEOF
26792/* confdefs.h. */
26793_ACEOF
26794cat confdefs.h >>conftest.$ac_ext
26795cat >>conftest.$ac_ext <<_ACEOF
26796/* end confdefs.h. */
26797$ac_includes_default
26798int
26799main ()
26800{
26801static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
26802test_array [0] = 0
26803
26804 ;
26805 return 0;
26806}
26807_ACEOF
26808rm -f conftest.$ac_objext
26809if { (ac_try="$ac_compile"
26810case "(($ac_try" in
26811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812 *) ac_try_echo=$ac_try;;
26813esac
26814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26815$as_echo "$ac_try_echo") >&5
26816 (eval "$ac_compile") 2>conftest.er1
26817 ac_status=$?
26818 grep -v '^ *+' conftest.er1 >conftest.err
26819 rm -f conftest.er1
26820 cat conftest.err >&5
26821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } && {
26823 test -z "$ac_c_werror_flag" ||
26824 test ! -s conftest.err
26825 } && test -s conftest.$ac_objext; then
26826 ac_hi=-1 ac_mid=-1
26827 while :; do
26828 cat >conftest.$ac_ext <<_ACEOF
26829/* confdefs.h. */
26830_ACEOF
26831cat confdefs.h >>conftest.$ac_ext
26832cat >>conftest.$ac_ext <<_ACEOF
26833/* end confdefs.h. */
26834$ac_includes_default
26835int
26836main ()
26837{
26838static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
26839test_array [0] = 0
26840
26841 ;
26842 return 0;
26843}
26844_ACEOF
26845rm -f conftest.$ac_objext
26846if { (ac_try="$ac_compile"
26847case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26850esac
26851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26852$as_echo "$ac_try_echo") >&5
26853 (eval "$ac_compile") 2>conftest.er1
26854 ac_status=$?
26855 grep -v '^ *+' conftest.er1 >conftest.err
26856 rm -f conftest.er1
26857 cat conftest.err >&5
26858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } && {
26860 test -z "$ac_c_werror_flag" ||
26861 test ! -s conftest.err
26862 } && test -s conftest.$ac_objext; then
26863 ac_lo=$ac_mid; break
26864else
26865 $as_echo "$as_me: failed program was:" >&5
26866sed 's/^/| /' conftest.$ac_ext >&5
26867
26868 ac_hi=`expr '(' $ac_mid ')' - 1`
26869 if test $ac_mid -le $ac_hi; then
26870 ac_lo= ac_hi=
26871 break
26872 fi
26873 ac_mid=`expr 2 '*' $ac_mid`
26874fi
26875
26876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26877 done
26878else
26879 $as_echo "$as_me: failed program was:" >&5
26880sed 's/^/| /' conftest.$ac_ext >&5
26881
26882 ac_lo= ac_hi=
26883fi
26884
26885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886fi
26887
26888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889# Binary search between lo and hi bounds.
26890while test "x$ac_lo" != "x$ac_hi"; do
26891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26892 cat >conftest.$ac_ext <<_ACEOF
26893/* confdefs.h. */
26894_ACEOF
26895cat confdefs.h >>conftest.$ac_ext
26896cat >>conftest.$ac_ext <<_ACEOF
26897/* end confdefs.h. */
26898$ac_includes_default
26899int
26900main ()
26901{
26902static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26903test_array [0] = 0
26904
26905 ;
26906 return 0;
26907}
26908_ACEOF
26909rm -f conftest.$ac_objext
26910if { (ac_try="$ac_compile"
26911case "(($ac_try" in
26912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26913 *) ac_try_echo=$ac_try;;
26914esac
26915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26916$as_echo "$ac_try_echo") >&5
26917 (eval "$ac_compile") 2>conftest.er1
26918 ac_status=$?
26919 grep -v '^ *+' conftest.er1 >conftest.err
26920 rm -f conftest.er1
26921 cat conftest.err >&5
26922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); } && {
26924 test -z "$ac_c_werror_flag" ||
26925 test ! -s conftest.err
26926 } && test -s conftest.$ac_objext; then
26927 ac_hi=$ac_mid
26928else
26929 $as_echo "$as_me: failed program was:" >&5
26930sed 's/^/| /' conftest.$ac_ext >&5
26931
26932 ac_lo=`expr '(' $ac_mid ')' + 1`
26933fi
26934
26935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26936done
26937case $ac_lo in
26938?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
26939'') if test "$ac_cv_type_signed_long_long" = yes; then
26940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26942{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26943See \`config.log' for more details." >&5
26944$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26945See \`config.log' for more details." >&2;}
26946 { (exit 77); exit 77; }; }; }
26947 else
26948 ac_cv_sizeof_signed_long_long=0
26949 fi ;;
26950esac
26951else
26952 cat >conftest.$ac_ext <<_ACEOF
26953/* confdefs.h. */
26954_ACEOF
26955cat confdefs.h >>conftest.$ac_ext
26956cat >>conftest.$ac_ext <<_ACEOF
26957/* end confdefs.h. */
26958$ac_includes_default
26959static long int longval () { return (long int) (sizeof (signed long long)); }
26960static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
26961#include <stdio.h>
26962#include <stdlib.h>
26963int
26964main ()
26965{
26966
26967 FILE *f = fopen ("conftest.val", "w");
26968 if (! f)
26969 return 1;
26970 if (((long int) (sizeof (signed long long))) < 0)
26971 {
26972 long int i = longval ();
26973 if (i != ((long int) (sizeof (signed long long))))
26974 return 1;
26975 fprintf (f, "%ld", i);
26976 }
26977 else
26978 {
26979 unsigned long int i = ulongval ();
26980 if (i != ((long int) (sizeof (signed long long))))
26981 return 1;
26982 fprintf (f, "%lu", i);
26983 }
26984 /* Do not output a trailing newline, as this causes \r\n confusion
26985 on some platforms. */
26986 return ferror (f) || fclose (f) != 0;
26987
26988 ;
26989 return 0;
26990}
26991_ACEOF
26992rm -f conftest$ac_exeext
26993if { (ac_try="$ac_link"
26994case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26997esac
26998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26999$as_echo "$ac_try_echo") >&5
27000 (eval "$ac_link") 2>&5
27001 ac_status=$?
27002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27004 { (case "(($ac_try" in
27005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006 *) ac_try_echo=$ac_try;;
27007esac
27008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27009$as_echo "$ac_try_echo") >&5
27010 (eval "$ac_try") 2>&5
27011 ac_status=$?
27012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; }; then
27014 ac_cv_sizeof_signed_long_long=`cat conftest.val`
27015else
27016 $as_echo "$as_me: program exited with status $ac_status" >&5
27017$as_echo "$as_me: failed program was:" >&5
27018sed 's/^/| /' conftest.$ac_ext >&5
27019
27020( exit $ac_status )
27021if test "$ac_cv_type_signed_long_long" = yes; then
27022 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27024{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27025See \`config.log' for more details." >&5
27026$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27027See \`config.log' for more details." >&2;}
27028 { (exit 77); exit 77; }; }; }
27029 else
27030 ac_cv_sizeof_signed_long_long=0
27031 fi
27032fi
27033rm -rf conftest.dSYM
27034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27035fi
27036rm -f conftest.val
27037fi
27038{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
27039$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
27040
27041
27042
27043cat >>confdefs.h <<_ACEOF
27044#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
27045_ACEOF
27046
27047
27048
27049# Obtain size of a 'unsigned long long' and define as
27050# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27051# supported then the value defined is zero.
27052# The cast to long int works around a bug in the HP C Compiler
27053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27055# This bug is HP SR number 8606223364.
27056{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
27057$as_echo_n "checking size of unsigned long long... " >&6; }
27058if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
27059 $as_echo_n "(cached) " >&6
27060else
27061 if test "$cross_compiling" = yes; then
27062 # Depending upon the size, compute the lo and hi bounds.
27063cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069$ac_includes_default
27070int
27071main ()
27072{
27073static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
27074test_array [0] = 0
27075
27076 ;
27077 return 0;
27078}
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27087$as_echo "$ac_try_echo") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
27098 ac_lo=0 ac_mid=0
27099 while :; do
27100 cat >conftest.$ac_ext <<_ACEOF
27101/* confdefs.h. */
27102_ACEOF
27103cat confdefs.h >>conftest.$ac_ext
27104cat >>conftest.$ac_ext <<_ACEOF
27105/* end confdefs.h. */
27106$ac_includes_default
27107int
27108main ()
27109{
27110static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27111test_array [0] = 0
27112
27113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext
27118if { (ac_try="$ac_compile"
27119case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27124$as_echo "$ac_try_echo") >&5
27125 (eval "$ac_compile") 2>conftest.er1
27126 ac_status=$?
27127 grep -v '^ *+' conftest.er1 >conftest.err
27128 rm -f conftest.er1
27129 cat conftest.err >&5
27130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } && {
27132 test -z "$ac_c_werror_flag" ||
27133 test ! -s conftest.err
27134 } && test -s conftest.$ac_objext; then
27135 ac_hi=$ac_mid; break
27136else
27137 $as_echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 ac_lo=`expr $ac_mid + 1`
27141 if test $ac_lo -le $ac_mid; then
27142 ac_lo= ac_hi=
27143 break
27144 fi
27145 ac_mid=`expr 2 '*' $ac_mid + 1`
27146fi
27147
27148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27149 done
27150else
27151 $as_echo "$as_me: failed program was:" >&5
27152sed 's/^/| /' conftest.$ac_ext >&5
27153
27154 cat >conftest.$ac_ext <<_ACEOF
27155/* confdefs.h. */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h. */
27160$ac_includes_default
27161int
27162main ()
27163{
27164static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
27165test_array [0] = 0
27166
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext
27172if { (ac_try="$ac_compile"
27173case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27176esac
27177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27178$as_echo "$ac_try_echo") >&5
27179 (eval "$ac_compile") 2>conftest.er1
27180 ac_status=$?
27181 grep -v '^ *+' conftest.er1 >conftest.err
27182 rm -f conftest.er1
27183 cat conftest.err >&5
27184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } && {
27186 test -z "$ac_c_werror_flag" ||
27187 test ! -s conftest.err
27188 } && test -s conftest.$ac_objext; then
27189 ac_hi=-1 ac_mid=-1
27190 while :; do
27191 cat >conftest.$ac_ext <<_ACEOF
27192/* confdefs.h. */
27193_ACEOF
27194cat confdefs.h >>conftest.$ac_ext
27195cat >>conftest.$ac_ext <<_ACEOF
27196/* end confdefs.h. */
27197$ac_includes_default
27198int
27199main ()
27200{
27201static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
27202test_array [0] = 0
27203
27204 ;
27205 return 0;
27206}
27207_ACEOF
27208rm -f conftest.$ac_objext
27209if { (ac_try="$ac_compile"
27210case "(($ac_try" in
27211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27212 *) ac_try_echo=$ac_try;;
27213esac
27214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27215$as_echo "$ac_try_echo") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27217 ac_status=$?
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
27221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } && {
27223 test -z "$ac_c_werror_flag" ||
27224 test ! -s conftest.err
27225 } && test -s conftest.$ac_objext; then
27226 ac_lo=$ac_mid; break
27227else
27228 $as_echo "$as_me: failed program was:" >&5
27229sed 's/^/| /' conftest.$ac_ext >&5
27230
27231 ac_hi=`expr '(' $ac_mid ')' - 1`
27232 if test $ac_mid -le $ac_hi; then
27233 ac_lo= ac_hi=
27234 break
27235 fi
27236 ac_mid=`expr 2 '*' $ac_mid`
27237fi
27238
27239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27240 done
27241else
27242 $as_echo "$as_me: failed program was:" >&5
27243sed 's/^/| /' conftest.$ac_ext >&5
27244
27245 ac_lo= ac_hi=
27246fi
27247
27248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27249fi
27250
27251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252# Binary search between lo and hi bounds.
27253while test "x$ac_lo" != "x$ac_hi"; do
27254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27255 cat >conftest.$ac_ext <<_ACEOF
27256/* confdefs.h. */
27257_ACEOF
27258cat confdefs.h >>conftest.$ac_ext
27259cat >>conftest.$ac_ext <<_ACEOF
27260/* end confdefs.h. */
27261$ac_includes_default
27262int
27263main ()
27264{
27265static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27266test_array [0] = 0
27267
27268 ;
27269 return 0;
27270}
27271_ACEOF
27272rm -f conftest.$ac_objext
27273if { (ac_try="$ac_compile"
27274case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277esac
27278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27279$as_echo "$ac_try_echo") >&5
27280 (eval "$ac_compile") 2>conftest.er1
27281 ac_status=$?
27282 grep -v '^ *+' conftest.er1 >conftest.err
27283 rm -f conftest.er1
27284 cat conftest.err >&5
27285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); } && {
27287 test -z "$ac_c_werror_flag" ||
27288 test ! -s conftest.err
27289 } && test -s conftest.$ac_objext; then
27290 ac_hi=$ac_mid
27291else
27292 $as_echo "$as_me: failed program was:" >&5
27293sed 's/^/| /' conftest.$ac_ext >&5
27294
27295 ac_lo=`expr '(' $ac_mid ')' + 1`
27296fi
27297
27298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27299done
27300case $ac_lo in
27301?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27302'') if test "$ac_cv_type_unsigned_long_long" = yes; then
27303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27305{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27306See \`config.log' for more details." >&5
27307$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27308See \`config.log' for more details." >&2;}
27309 { (exit 77); exit 77; }; }; }
27310 else
27311 ac_cv_sizeof_unsigned_long_long=0
27312 fi ;;
27313esac
27314else
27315 cat >conftest.$ac_ext <<_ACEOF
27316/* confdefs.h. */
27317_ACEOF
27318cat confdefs.h >>conftest.$ac_ext
27319cat >>conftest.$ac_ext <<_ACEOF
27320/* end confdefs.h. */
27321$ac_includes_default
27322static long int longval () { return (long int) (sizeof (unsigned long long)); }
27323static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
27324#include <stdio.h>
27325#include <stdlib.h>
27326int
27327main ()
27328{
27329
27330 FILE *f = fopen ("conftest.val", "w");
27331 if (! f)
27332 return 1;
27333 if (((long int) (sizeof (unsigned long long))) < 0)
27334 {
27335 long int i = longval ();
27336 if (i != ((long int) (sizeof (unsigned long long))))
27337 return 1;
27338 fprintf (f, "%ld", i);
27339 }
27340 else
27341 {
27342 unsigned long int i = ulongval ();
27343 if (i != ((long int) (sizeof (unsigned long long))))
27344 return 1;
27345 fprintf (f, "%lu", i);
27346 }
27347 /* Do not output a trailing newline, as this causes \r\n confusion
27348 on some platforms. */
27349 return ferror (f) || fclose (f) != 0;
27350
27351 ;
27352 return 0;
27353}
27354_ACEOF
27355rm -f conftest$ac_exeext
27356if { (ac_try="$ac_link"
27357case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27360esac
27361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27362$as_echo "$ac_try_echo") >&5
27363 (eval "$ac_link") 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27367 { (case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27370esac
27371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27372$as_echo "$ac_try_echo") >&5
27373 (eval "$ac_try") 2>&5
27374 ac_status=$?
27375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; }; then
27377 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27378else
27379 $as_echo "$as_me: program exited with status $ac_status" >&5
27380$as_echo "$as_me: failed program was:" >&5
27381sed 's/^/| /' conftest.$ac_ext >&5
27382
27383( exit $ac_status )
27384if test "$ac_cv_type_unsigned_long_long" = yes; then
27385 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27387{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27388See \`config.log' for more details." >&5
27389$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27390See \`config.log' for more details." >&2;}
27391 { (exit 77); exit 77; }; }; }
27392 else
27393 ac_cv_sizeof_unsigned_long_long=0
27394 fi
27395fi
27396rm -rf conftest.dSYM
27397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27398fi
27399rm -f conftest.val
27400fi
27401{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27402$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27403
27404
27405
27406cat >>confdefs.h <<_ACEOF
27407#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27408_ACEOF
27409
27410
27411
27412# Obtain size of off_t and define as SIZEOF_OFF_T
27413# The cast to long int works around a bug in the HP C Compiler
27414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27416# This bug is HP SR number 8606223364.
27417{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
27418$as_echo_n "checking size of off_t... " >&6; }
27419if test "${ac_cv_sizeof_off_t+set}" = set; then
27420 $as_echo_n "(cached) " >&6
27421else
27422 if test "$cross_compiling" = yes; then
27423 # Depending upon the size, compute the lo and hi bounds.
27424cat >conftest.$ac_ext <<_ACEOF
27425/* confdefs.h. */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h. */
27430$ac_includes_default
27431int
27432main ()
27433{
27434static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27435test_array [0] = 0
27436
27437 ;
27438 return 0;
27439}
27440_ACEOF
27441rm -f conftest.$ac_objext
27442if { (ac_try="$ac_compile"
27443case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27446esac
27447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27448$as_echo "$ac_try_echo") >&5
27449 (eval "$ac_compile") 2>conftest.er1
27450 ac_status=$?
27451 grep -v '^ *+' conftest.er1 >conftest.err
27452 rm -f conftest.er1
27453 cat conftest.err >&5
27454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } && {
27456 test -z "$ac_c_werror_flag" ||
27457 test ! -s conftest.err
27458 } && test -s conftest.$ac_objext; then
27459 ac_lo=0 ac_mid=0
27460 while :; do
27461 cat >conftest.$ac_ext <<_ACEOF
27462/* confdefs.h. */
27463_ACEOF
27464cat confdefs.h >>conftest.$ac_ext
27465cat >>conftest.$ac_ext <<_ACEOF
27466/* end confdefs.h. */
27467$ac_includes_default
27468int
27469main ()
27470{
27471static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27472test_array [0] = 0
27473
27474 ;
27475 return 0;
27476}
27477_ACEOF
27478rm -f conftest.$ac_objext
27479if { (ac_try="$ac_compile"
27480case "(($ac_try" in
27481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482 *) ac_try_echo=$ac_try;;
27483esac
27484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27485$as_echo "$ac_try_echo") >&5
27486 (eval "$ac_compile") 2>conftest.er1
27487 ac_status=$?
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
27491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } && {
27493 test -z "$ac_c_werror_flag" ||
27494 test ! -s conftest.err
27495 } && test -s conftest.$ac_objext; then
27496 ac_hi=$ac_mid; break
27497else
27498 $as_echo "$as_me: failed program was:" >&5
27499sed 's/^/| /' conftest.$ac_ext >&5
27500
27501 ac_lo=`expr $ac_mid + 1`
27502 if test $ac_lo -le $ac_mid; then
27503 ac_lo= ac_hi=
27504 break
27505 fi
27506 ac_mid=`expr 2 '*' $ac_mid + 1`
27507fi
27508
27509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27510 done
27511else
27512 $as_echo "$as_me: failed program was:" >&5
27513sed 's/^/| /' conftest.$ac_ext >&5
27514
27515 cat >conftest.$ac_ext <<_ACEOF
27516/* confdefs.h. */
27517_ACEOF
27518cat confdefs.h >>conftest.$ac_ext
27519cat >>conftest.$ac_ext <<_ACEOF
27520/* end confdefs.h. */
27521$ac_includes_default
27522int
27523main ()
27524{
27525static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27526test_array [0] = 0
27527
27528 ;
27529 return 0;
27530}
27531_ACEOF
27532rm -f conftest.$ac_objext
27533if { (ac_try="$ac_compile"
27534case "(($ac_try" in
27535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536 *) ac_try_echo=$ac_try;;
27537esac
27538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27539$as_echo "$ac_try_echo") >&5
27540 (eval "$ac_compile") 2>conftest.er1
27541 ac_status=$?
27542 grep -v '^ *+' conftest.er1 >conftest.err
27543 rm -f conftest.er1
27544 cat conftest.err >&5
27545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); } && {
27547 test -z "$ac_c_werror_flag" ||
27548 test ! -s conftest.err
27549 } && test -s conftest.$ac_objext; then
27550 ac_hi=-1 ac_mid=-1
27551 while :; do
27552 cat >conftest.$ac_ext <<_ACEOF
27553/* confdefs.h. */
27554_ACEOF
27555cat confdefs.h >>conftest.$ac_ext
27556cat >>conftest.$ac_ext <<_ACEOF
27557/* end confdefs.h. */
27558$ac_includes_default
27559int
27560main ()
27561{
27562static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27563test_array [0] = 0
27564
27565 ;
27566 return 0;
27567}
27568_ACEOF
27569rm -f conftest.$ac_objext
27570if { (ac_try="$ac_compile"
27571case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574esac
27575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27576$as_echo "$ac_try_echo") >&5
27577 (eval "$ac_compile") 2>conftest.er1
27578 ac_status=$?
27579 grep -v '^ *+' conftest.er1 >conftest.err
27580 rm -f conftest.er1
27581 cat conftest.err >&5
27582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); } && {
27584 test -z "$ac_c_werror_flag" ||
27585 test ! -s conftest.err
27586 } && test -s conftest.$ac_objext; then
27587 ac_lo=$ac_mid; break
27588else
27589 $as_echo "$as_me: failed program was:" >&5
27590sed 's/^/| /' conftest.$ac_ext >&5
27591
27592 ac_hi=`expr '(' $ac_mid ')' - 1`
27593 if test $ac_mid -le $ac_hi; then
27594 ac_lo= ac_hi=
27595 break
27596 fi
27597 ac_mid=`expr 2 '*' $ac_mid`
27598fi
27599
27600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601 done
27602else
27603 $as_echo "$as_me: failed program was:" >&5
27604sed 's/^/| /' conftest.$ac_ext >&5
27605
27606 ac_lo= ac_hi=
27607fi
27608
27609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27610fi
27611
27612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27613# Binary search between lo and hi bounds.
27614while test "x$ac_lo" != "x$ac_hi"; do
27615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27616 cat >conftest.$ac_ext <<_ACEOF
27617/* confdefs.h. */
27618_ACEOF
27619cat confdefs.h >>conftest.$ac_ext
27620cat >>conftest.$ac_ext <<_ACEOF
27621/* end confdefs.h. */
27622$ac_includes_default
27623int
27624main ()
27625{
27626static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27627test_array [0] = 0
27628
27629 ;
27630 return 0;
27631}
27632_ACEOF
27633rm -f conftest.$ac_objext
27634if { (ac_try="$ac_compile"
27635case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638esac
27639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27640$as_echo "$ac_try_echo") >&5
27641 (eval "$ac_compile") 2>conftest.er1
27642 ac_status=$?
27643 grep -v '^ *+' conftest.er1 >conftest.err
27644 rm -f conftest.er1
27645 cat conftest.err >&5
27646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } && {
27648 test -z "$ac_c_werror_flag" ||
27649 test ! -s conftest.err
27650 } && test -s conftest.$ac_objext; then
27651 ac_hi=$ac_mid
27652else
27653 $as_echo "$as_me: failed program was:" >&5
27654sed 's/^/| /' conftest.$ac_ext >&5
27655
27656 ac_lo=`expr '(' $ac_mid ')' + 1`
27657fi
27658
27659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27660done
27661case $ac_lo in
27662?*) ac_cv_sizeof_off_t=$ac_lo;;
27663'') if test "$ac_cv_type_off_t" = yes; then
27664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27666{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27667See \`config.log' for more details." >&5
27668$as_echo "$as_me: error: cannot compute sizeof (off_t)
27669See \`config.log' for more details." >&2;}
27670 { (exit 77); exit 77; }; }; }
27671 else
27672 ac_cv_sizeof_off_t=0
27673 fi ;;
27674esac
27675else
27676 cat >conftest.$ac_ext <<_ACEOF
27677/* confdefs.h. */
27678_ACEOF
27679cat confdefs.h >>conftest.$ac_ext
27680cat >>conftest.$ac_ext <<_ACEOF
27681/* end confdefs.h. */
27682$ac_includes_default
27683static long int longval () { return (long int) (sizeof (off_t)); }
27684static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27685#include <stdio.h>
27686#include <stdlib.h>
27687int
27688main ()
27689{
27690
27691 FILE *f = fopen ("conftest.val", "w");
27692 if (! f)
27693 return 1;
27694 if (((long int) (sizeof (off_t))) < 0)
27695 {
27696 long int i = longval ();
27697 if (i != ((long int) (sizeof (off_t))))
27698 return 1;
27699 fprintf (f, "%ld", i);
27700 }
27701 else
27702 {
27703 unsigned long int i = ulongval ();
27704 if (i != ((long int) (sizeof (off_t))))
27705 return 1;
27706 fprintf (f, "%lu", i);
27707 }
27708 /* Do not output a trailing newline, as this causes \r\n confusion
27709 on some platforms. */
27710 return ferror (f) || fclose (f) != 0;
27711
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest$ac_exeext
27717if { (ac_try="$ac_link"
27718case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27721esac
27722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27723$as_echo "$ac_try_echo") >&5
27724 (eval "$ac_link") 2>&5
27725 ac_status=$?
27726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27728 { (case "(($ac_try" in
27729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730 *) ac_try_echo=$ac_try;;
27731esac
27732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27733$as_echo "$ac_try_echo") >&5
27734 (eval "$ac_try") 2>&5
27735 ac_status=$?
27736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 ac_cv_sizeof_off_t=`cat conftest.val`
27739else
27740 $as_echo "$as_me: program exited with status $ac_status" >&5
27741$as_echo "$as_me: failed program was:" >&5
27742sed 's/^/| /' conftest.$ac_ext >&5
27743
27744( exit $ac_status )
27745if test "$ac_cv_type_off_t" = yes; then
27746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27748{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27749See \`config.log' for more details." >&5
27750$as_echo "$as_me: error: cannot compute sizeof (off_t)
27751See \`config.log' for more details." >&2;}
27752 { (exit 77); exit 77; }; }; }
27753 else
27754 ac_cv_sizeof_off_t=0
27755 fi
27756fi
27757rm -rf conftest.dSYM
27758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27759fi
27760rm -f conftest.val
27761fi
27762{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27763$as_echo "$ac_cv_sizeof_off_t" >&6; }
27764
27765
27766
27767cat >>confdefs.h <<_ACEOF
27768#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27769_ACEOF
27770
27771
27772
27773# Obtain size of size_t and define as SIZEOF_SIZE_T
27774# The cast to long int works around a bug in the HP C Compiler
27775# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27776# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27777# This bug is HP SR number 8606223364.
27778{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27779$as_echo_n "checking size of size_t... " >&6; }
27780if test "${ac_cv_sizeof_size_t+set}" = set; then
27781 $as_echo_n "(cached) " >&6
27782else
27783 if test "$cross_compiling" = yes; then
27784 # Depending upon the size, compute the lo and hi bounds.
27785cat >conftest.$ac_ext <<_ACEOF
27786/* confdefs.h. */
27787_ACEOF
27788cat confdefs.h >>conftest.$ac_ext
27789cat >>conftest.$ac_ext <<_ACEOF
27790/* end confdefs.h. */
27791$ac_includes_default
27792int
27793main ()
27794{
27795static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27796test_array [0] = 0
27797
27798 ;
27799 return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext
27803if { (ac_try="$ac_compile"
27804case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807esac
27808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27809$as_echo "$ac_try_echo") >&5
27810 (eval "$ac_compile") 2>conftest.er1
27811 ac_status=$?
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
27815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } && {
27817 test -z "$ac_c_werror_flag" ||
27818 test ! -s conftest.err
27819 } && test -s conftest.$ac_objext; then
27820 ac_lo=0 ac_mid=0
27821 while :; do
27822 cat >conftest.$ac_ext <<_ACEOF
27823/* confdefs.h. */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h. */
27828$ac_includes_default
27829int
27830main ()
27831{
27832static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27833test_array [0] = 0
27834
27835 ;
27836 return 0;
27837}
27838_ACEOF
27839rm -f conftest.$ac_objext
27840if { (ac_try="$ac_compile"
27841case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27844esac
27845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27846$as_echo "$ac_try_echo") >&5
27847 (eval "$ac_compile") 2>conftest.er1
27848 ac_status=$?
27849 grep -v '^ *+' conftest.er1 >conftest.err
27850 rm -f conftest.er1
27851 cat conftest.err >&5
27852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } && {
27854 test -z "$ac_c_werror_flag" ||
27855 test ! -s conftest.err
27856 } && test -s conftest.$ac_objext; then
27857 ac_hi=$ac_mid; break
27858else
27859 $as_echo "$as_me: failed program was:" >&5
27860sed 's/^/| /' conftest.$ac_ext >&5
27861
27862 ac_lo=`expr $ac_mid + 1`
27863 if test $ac_lo -le $ac_mid; then
27864 ac_lo= ac_hi=
27865 break
27866 fi
27867 ac_mid=`expr 2 '*' $ac_mid + 1`
27868fi
27869
27870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27871 done
27872else
27873 $as_echo "$as_me: failed program was:" >&5
27874sed 's/^/| /' conftest.$ac_ext >&5
27875
27876 cat >conftest.$ac_ext <<_ACEOF
27877/* confdefs.h. */
27878_ACEOF
27879cat confdefs.h >>conftest.$ac_ext
27880cat >>conftest.$ac_ext <<_ACEOF
27881/* end confdefs.h. */
27882$ac_includes_default
27883int
27884main ()
27885{
27886static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27887test_array [0] = 0
27888
27889 ;
27890 return 0;
27891}
27892_ACEOF
27893rm -f conftest.$ac_objext
27894if { (ac_try="$ac_compile"
27895case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898esac
27899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27900$as_echo "$ac_try_echo") >&5
27901 (eval "$ac_compile") 2>conftest.er1
27902 ac_status=$?
27903 grep -v '^ *+' conftest.er1 >conftest.err
27904 rm -f conftest.er1
27905 cat conftest.err >&5
27906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); } && {
27908 test -z "$ac_c_werror_flag" ||
27909 test ! -s conftest.err
27910 } && test -s conftest.$ac_objext; then
27911 ac_hi=-1 ac_mid=-1
27912 while :; do
27913 cat >conftest.$ac_ext <<_ACEOF
27914/* confdefs.h. */
27915_ACEOF
27916cat confdefs.h >>conftest.$ac_ext
27917cat >>conftest.$ac_ext <<_ACEOF
27918/* end confdefs.h. */
27919$ac_includes_default
27920int
27921main ()
27922{
27923static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27924test_array [0] = 0
27925
27926 ;
27927 return 0;
27928}
27929_ACEOF
27930rm -f conftest.$ac_objext
27931if { (ac_try="$ac_compile"
27932case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27935esac
27936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27937$as_echo "$ac_try_echo") >&5
27938 (eval "$ac_compile") 2>conftest.er1
27939 ac_status=$?
27940 grep -v '^ *+' conftest.er1 >conftest.err
27941 rm -f conftest.er1
27942 cat conftest.err >&5
27943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } && {
27945 test -z "$ac_c_werror_flag" ||
27946 test ! -s conftest.err
27947 } && test -s conftest.$ac_objext; then
27948 ac_lo=$ac_mid; break
27949else
27950 $as_echo "$as_me: failed program was:" >&5
27951sed 's/^/| /' conftest.$ac_ext >&5
27952
27953 ac_hi=`expr '(' $ac_mid ')' - 1`
27954 if test $ac_mid -le $ac_hi; then
27955 ac_lo= ac_hi=
27956 break
27957 fi
27958 ac_mid=`expr 2 '*' $ac_mid`
27959fi
27960
27961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27962 done
27963else
27964 $as_echo "$as_me: failed program was:" >&5
27965sed 's/^/| /' conftest.$ac_ext >&5
27966
27967 ac_lo= ac_hi=
27968fi
27969
27970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971fi
27972
27973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27974# Binary search between lo and hi bounds.
27975while test "x$ac_lo" != "x$ac_hi"; do
27976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27977 cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983$ac_includes_default
27984int
27985main ()
27986{
27987static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27988test_array [0] = 0
27989
27990 ;
27991 return 0;
27992}
27993_ACEOF
27994rm -f conftest.$ac_objext
27995if { (ac_try="$ac_compile"
27996case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
27999esac
28000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28001$as_echo "$ac_try_echo") >&5
28002 (eval "$ac_compile") 2>conftest.er1
28003 ac_status=$?
28004 grep -v '^ *+' conftest.er1 >conftest.err
28005 rm -f conftest.er1
28006 cat conftest.err >&5
28007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); } && {
28009 test -z "$ac_c_werror_flag" ||
28010 test ! -s conftest.err
28011 } && test -s conftest.$ac_objext; then
28012 ac_hi=$ac_mid
28013else
28014 $as_echo "$as_me: failed program was:" >&5
28015sed 's/^/| /' conftest.$ac_ext >&5
28016
28017 ac_lo=`expr '(' $ac_mid ')' + 1`
28018fi
28019
28020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28021done
28022case $ac_lo in
28023?*) ac_cv_sizeof_size_t=$ac_lo;;
28024'') if test "$ac_cv_type_size_t" = yes; then
28025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28027{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28028See \`config.log' for more details." >&5
28029$as_echo "$as_me: error: cannot compute sizeof (size_t)
28030See \`config.log' for more details." >&2;}
28031 { (exit 77); exit 77; }; }; }
28032 else
28033 ac_cv_sizeof_size_t=0
28034 fi ;;
28035esac
28036else
28037 cat >conftest.$ac_ext <<_ACEOF
28038/* confdefs.h. */
28039_ACEOF
28040cat confdefs.h >>conftest.$ac_ext
28041cat >>conftest.$ac_ext <<_ACEOF
28042/* end confdefs.h. */
28043$ac_includes_default
28044static long int longval () { return (long int) (sizeof (size_t)); }
28045static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
28046#include <stdio.h>
28047#include <stdlib.h>
28048int
28049main ()
28050{
28051
28052 FILE *f = fopen ("conftest.val", "w");
28053 if (! f)
28054 return 1;
28055 if (((long int) (sizeof (size_t))) < 0)
28056 {
28057 long int i = longval ();
28058 if (i != ((long int) (sizeof (size_t))))
28059 return 1;
28060 fprintf (f, "%ld", i);
28061 }
28062 else
28063 {
28064 unsigned long int i = ulongval ();
28065 if (i != ((long int) (sizeof (size_t))))
28066 return 1;
28067 fprintf (f, "%lu", i);
28068 }
28069 /* Do not output a trailing newline, as this causes \r\n confusion
28070 on some platforms. */
28071 return ferror (f) || fclose (f) != 0;
28072
28073 ;
28074 return 0;
28075}
28076_ACEOF
28077rm -f conftest$ac_exeext
28078if { (ac_try="$ac_link"
28079case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082esac
28083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28084$as_echo "$ac_try_echo") >&5
28085 (eval "$ac_link") 2>&5
28086 ac_status=$?
28087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28089 { (case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28092esac
28093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28094$as_echo "$ac_try_echo") >&5
28095 (eval "$ac_try") 2>&5
28096 ac_status=$?
28097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; }; then
28099 ac_cv_sizeof_size_t=`cat conftest.val`
28100else
28101 $as_echo "$as_me: program exited with status $ac_status" >&5
28102$as_echo "$as_me: failed program was:" >&5
28103sed 's/^/| /' conftest.$ac_ext >&5
28104
28105( exit $ac_status )
28106if test "$ac_cv_type_size_t" = yes; then
28107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28109{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28110See \`config.log' for more details." >&5
28111$as_echo "$as_me: error: cannot compute sizeof (size_t)
28112See \`config.log' for more details." >&2;}
28113 { (exit 77); exit 77; }; }; }
28114 else
28115 ac_cv_sizeof_size_t=0
28116 fi
28117fi
28118rm -rf conftest.dSYM
28119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28120fi
28121rm -f conftest.val
28122fi
28123{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28124$as_echo "$ac_cv_sizeof_size_t" >&6; }
28125
28126
28127
28128cat >>confdefs.h <<_ACEOF
28129#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28130_ACEOF
28131
28132
28133
28134# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
28135# The cast to long int works around a bug in the HP C Compiler
28136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28138# This bug is HP SR number 8606223364.
28139{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
28140$as_echo_n "checking size of unsigned int*... " >&6; }
28141if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
28142 $as_echo_n "(cached) " >&6
28143else
28144 if test "$cross_compiling" = yes; then
28145 # Depending upon the size, compute the lo and hi bounds.
28146cat >conftest.$ac_ext <<_ACEOF
28147/* confdefs.h. */
28148_ACEOF
28149cat confdefs.h >>conftest.$ac_ext
28150cat >>conftest.$ac_ext <<_ACEOF
28151/* end confdefs.h. */
28152$ac_includes_default
28153int
28154main ()
28155{
28156static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
28157test_array [0] = 0
28158
28159 ;
28160 return 0;
28161}
28162_ACEOF
28163rm -f conftest.$ac_objext
28164if { (ac_try="$ac_compile"
28165case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28168esac
28169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28170$as_echo "$ac_try_echo") >&5
28171 (eval "$ac_compile") 2>conftest.er1
28172 ac_status=$?
28173 grep -v '^ *+' conftest.er1 >conftest.err
28174 rm -f conftest.er1
28175 cat conftest.err >&5
28176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } && {
28178 test -z "$ac_c_werror_flag" ||
28179 test ! -s conftest.err
28180 } && test -s conftest.$ac_objext; then
28181 ac_lo=0 ac_mid=0
28182 while :; do
28183 cat >conftest.$ac_ext <<_ACEOF
28184/* confdefs.h. */
28185_ACEOF
28186cat confdefs.h >>conftest.$ac_ext
28187cat >>conftest.$ac_ext <<_ACEOF
28188/* end confdefs.h. */
28189$ac_includes_default
28190int
28191main ()
28192{
28193static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28194test_array [0] = 0
28195
28196 ;
28197 return 0;
28198}
28199_ACEOF
28200rm -f conftest.$ac_objext
28201if { (ac_try="$ac_compile"
28202case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28205esac
28206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28207$as_echo "$ac_try_echo") >&5
28208 (eval "$ac_compile") 2>conftest.er1
28209 ac_status=$?
28210 grep -v '^ *+' conftest.er1 >conftest.err
28211 rm -f conftest.er1
28212 cat conftest.err >&5
28213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); } && {
28215 test -z "$ac_c_werror_flag" ||
28216 test ! -s conftest.err
28217 } && test -s conftest.$ac_objext; then
28218 ac_hi=$ac_mid; break
28219else
28220 $as_echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 ac_lo=`expr $ac_mid + 1`
28224 if test $ac_lo -le $ac_mid; then
28225 ac_lo= ac_hi=
28226 break
28227 fi
28228 ac_mid=`expr 2 '*' $ac_mid + 1`
28229fi
28230
28231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 done
28233else
28234 $as_echo "$as_me: failed program was:" >&5
28235sed 's/^/| /' conftest.$ac_ext >&5
28236
28237 cat >conftest.$ac_ext <<_ACEOF
28238/* confdefs.h. */
28239_ACEOF
28240cat confdefs.h >>conftest.$ac_ext
28241cat >>conftest.$ac_ext <<_ACEOF
28242/* end confdefs.h. */
28243$ac_includes_default
28244int
28245main ()
28246{
28247static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
28248test_array [0] = 0
28249
28250 ;
28251 return 0;
28252}
28253_ACEOF
28254rm -f conftest.$ac_objext
28255if { (ac_try="$ac_compile"
28256case "(($ac_try" in
28257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28258 *) ac_try_echo=$ac_try;;
28259esac
28260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28261$as_echo "$ac_try_echo") >&5
28262 (eval "$ac_compile") 2>conftest.er1
28263 ac_status=$?
28264 grep -v '^ *+' conftest.er1 >conftest.err
28265 rm -f conftest.er1
28266 cat conftest.err >&5
28267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); } && {
28269 test -z "$ac_c_werror_flag" ||
28270 test ! -s conftest.err
28271 } && test -s conftest.$ac_objext; then
28272 ac_hi=-1 ac_mid=-1
28273 while :; do
28274 cat >conftest.$ac_ext <<_ACEOF
28275/* confdefs.h. */
28276_ACEOF
28277cat confdefs.h >>conftest.$ac_ext
28278cat >>conftest.$ac_ext <<_ACEOF
28279/* end confdefs.h. */
28280$ac_includes_default
28281int
28282main ()
28283{
28284static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
28285test_array [0] = 0
28286
28287 ;
28288 return 0;
28289}
28290_ACEOF
28291rm -f conftest.$ac_objext
28292if { (ac_try="$ac_compile"
28293case "(($ac_try" in
28294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295 *) ac_try_echo=$ac_try;;
28296esac
28297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28298$as_echo "$ac_try_echo") >&5
28299 (eval "$ac_compile") 2>conftest.er1
28300 ac_status=$?
28301 grep -v '^ *+' conftest.er1 >conftest.err
28302 rm -f conftest.er1
28303 cat conftest.err >&5
28304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } && {
28306 test -z "$ac_c_werror_flag" ||
28307 test ! -s conftest.err
28308 } && test -s conftest.$ac_objext; then
28309 ac_lo=$ac_mid; break
28310else
28311 $as_echo "$as_me: failed program was:" >&5
28312sed 's/^/| /' conftest.$ac_ext >&5
28313
28314 ac_hi=`expr '(' $ac_mid ')' - 1`
28315 if test $ac_mid -le $ac_hi; then
28316 ac_lo= ac_hi=
28317 break
28318 fi
28319 ac_mid=`expr 2 '*' $ac_mid`
28320fi
28321
28322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323 done
28324else
28325 $as_echo "$as_me: failed program was:" >&5
28326sed 's/^/| /' conftest.$ac_ext >&5
28327
28328 ac_lo= ac_hi=
28329fi
28330
28331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28332fi
28333
28334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28335# Binary search between lo and hi bounds.
28336while test "x$ac_lo" != "x$ac_hi"; do
28337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28338 cat >conftest.$ac_ext <<_ACEOF
28339/* confdefs.h. */
28340_ACEOF
28341cat confdefs.h >>conftest.$ac_ext
28342cat >>conftest.$ac_ext <<_ACEOF
28343/* end confdefs.h. */
28344$ac_includes_default
28345int
28346main ()
28347{
28348static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28349test_array [0] = 0
28350
28351 ;
28352 return 0;
28353}
28354_ACEOF
28355rm -f conftest.$ac_objext
28356if { (ac_try="$ac_compile"
28357case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28360esac
28361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28362$as_echo "$ac_try_echo") >&5
28363 (eval "$ac_compile") 2>conftest.er1
28364 ac_status=$?
28365 grep -v '^ *+' conftest.er1 >conftest.err
28366 rm -f conftest.er1
28367 cat conftest.err >&5
28368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } && {
28370 test -z "$ac_c_werror_flag" ||
28371 test ! -s conftest.err
28372 } && test -s conftest.$ac_objext; then
28373 ac_hi=$ac_mid
28374else
28375 $as_echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378 ac_lo=`expr '(' $ac_mid ')' + 1`
28379fi
28380
28381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382done
28383case $ac_lo in
28384?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
28385'') if test "$ac_cv_type_unsigned_intp" = yes; then
28386 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28388{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28389See \`config.log' for more details." >&5
28390$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28391See \`config.log' for more details." >&2;}
28392 { (exit 77); exit 77; }; }; }
28393 else
28394 ac_cv_sizeof_unsigned_intp=0
28395 fi ;;
28396esac
28397else
28398 cat >conftest.$ac_ext <<_ACEOF
28399/* confdefs.h. */
28400_ACEOF
28401cat confdefs.h >>conftest.$ac_ext
28402cat >>conftest.$ac_ext <<_ACEOF
28403/* end confdefs.h. */
28404$ac_includes_default
28405static long int longval () { return (long int) (sizeof (unsigned int*)); }
28406static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
28407#include <stdio.h>
28408#include <stdlib.h>
28409int
28410main ()
28411{
28412
28413 FILE *f = fopen ("conftest.val", "w");
28414 if (! f)
28415 return 1;
28416 if (((long int) (sizeof (unsigned int*))) < 0)
28417 {
28418 long int i = longval ();
28419 if (i != ((long int) (sizeof (unsigned int*))))
28420 return 1;
28421 fprintf (f, "%ld", i);
28422 }
28423 else
28424 {
28425 unsigned long int i = ulongval ();
28426 if (i != ((long int) (sizeof (unsigned int*))))
28427 return 1;
28428 fprintf (f, "%lu", i);
28429 }
28430 /* Do not output a trailing newline, as this causes \r\n confusion
28431 on some platforms. */
28432 return ferror (f) || fclose (f) != 0;
28433
28434 ;
28435 return 0;
28436}
28437_ACEOF
28438rm -f conftest$ac_exeext
28439if { (ac_try="$ac_link"
28440case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443esac
28444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28445$as_echo "$ac_try_echo") >&5
28446 (eval "$ac_link") 2>&5
28447 ac_status=$?
28448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28450 { (case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28453esac
28454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28455$as_echo "$ac_try_echo") >&5
28456 (eval "$ac_try") 2>&5
28457 ac_status=$?
28458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; }; then
28460 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
28461else
28462 $as_echo "$as_me: program exited with status $ac_status" >&5
28463$as_echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
28466( exit $ac_status )
28467if test "$ac_cv_type_unsigned_intp" = yes; then
28468 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28470{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28471See \`config.log' for more details." >&5
28472$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28473See \`config.log' for more details." >&2;}
28474 { (exit 77); exit 77; }; }; }
28475 else
28476 ac_cv_sizeof_unsigned_intp=0
28477 fi
28478fi
28479rm -rf conftest.dSYM
28480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28481fi
28482rm -f conftest.val
28483fi
28484{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
28485$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
28486
28487
28488
28489cat >>confdefs.h <<_ACEOF
28490#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
28491_ACEOF
28492
28493
28494
28495#
28496# Compute sized types for current CPU and compiler options.
28497#
28498
28499{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
28500$as_echo_n "checking for signed 8-bit type... " >&6; }
28501INT8_T='signed char'
28502{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
28503$as_echo "$INT8_T" >&6; }
28504
28505
28506{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
28507$as_echo_n "checking for unsigned 8-bit type... " >&6; }
28508UINT8_T='unsigned char'
28509{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
28510$as_echo "$UINT8_T" >&6; }
28511
28512
28513{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
28514$as_echo_n "checking for signed 16-bit type... " >&6; }
28515INT16_T='signed short'
28516{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
28517$as_echo "$INT16_T" >&6; }
28518
28519
28520{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
28521$as_echo_n "checking for unsigned 16-bit type... " >&6; }
28522UINT16_T='unsigned short'
28523{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
28524$as_echo "$UINT16_T" >&6; }
28525
28526
28527{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
28528$as_echo_n "checking for signed 32-bit type... " >&6; }
28529INT32_T='none'
28530if test $ac_cv_sizeof_signed_int -eq 4; then
28531 INT32_T='signed int'
28532elif test $ac_cv_sizeof_signed_long -eq 4; then
28533 INT32_T='signed long'
28534fi
28535{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
28536$as_echo "$INT32_T" >&6; }
28537
28538
28539{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
28540$as_echo_n "checking for unsigned 32-bit type... " >&6; }
28541UINT32_T='none'
28542if test $ac_cv_sizeof_unsigned_int -eq 4; then
28543 UINT32_T='unsigned int'
28544elif test $ac_cv_sizeof_unsigned_long -eq 4; then
28545 UINT32_T='unsigned long'
28546fi
28547{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
28548$as_echo "$UINT32_T" >&6; }
28549
28550
28551{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
28552$as_echo_n "checking for signed 64-bit type... " >&6; }
28553INT64_T='none'
28554if test $ac_cv_sizeof_signed_long -eq 8; then
28555 INT64_T='signed long'
28556elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28557 INT64_T='signed long long'
28558fi
28559{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28560$as_echo "$INT64_T" >&6; }
28561
28562
28563{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28564$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28565UINT64_T='none'
28566if test $ac_cv_sizeof_unsigned_long -eq 8; then
28567 UINT64_T='unsigned long'
28568elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28569 UINT64_T='unsigned long long'
28570fi
28571{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28572$as_echo "$UINT64_T" >&6; }
28573
28574
28575{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28576$as_echo_n "checking for unsigned maximum type... " >&6; }
28577UINTMAX_T='none'
28578if test "$UINT64_T" != 'none'; then
28579 UINTMAX_T=$UINT64_T
28580elif test "$UINT32_T" != 'none'; then
28581 UINTMAX_T=$UINT32_T
28582fi
28583{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28584$as_echo "$UINTMAX_T" >&6; }
28585
28586
28587{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28588$as_echo_n "checking for pointer difference type... " >&6; }
28589UINTPTR_T='none'
28590if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28591 UINTPTR_T='unsigned long'
28592elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28593 UINTPTR_T='unsigned long long'
28594fi
28595{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28596$as_echo "$UINTPTR_T" >&6; }
28597
28598
28599{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28600$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28601cat >conftest.$ac_ext <<_ACEOF
28602/* confdefs.h. */
28603_ACEOF
28604cat confdefs.h >>conftest.$ac_ext
28605cat >>conftest.$ac_ext <<_ACEOF
28606/* end confdefs.h. */
28607
28608int
28609main ()
28610{
28611{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28612 ;
28613 return 0;
28614}
28615_ACEOF
28616rm -f conftest.$ac_objext
28617if { (ac_try="$ac_compile"
28618case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621esac
28622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28623$as_echo "$ac_try_echo") >&5
28624 (eval "$ac_compile") 2>conftest.er1
28625 ac_status=$?
28626 grep -v '^ *+' conftest.er1 >conftest.err
28627 rm -f conftest.er1
28628 cat conftest.err >&5
28629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } && {
28631 test -z "$ac_c_werror_flag" ||
28632 test ! -s conftest.err
28633 } && test -s conftest.$ac_objext; then
28634 { $as_echo "$as_me:$LINENO: result: yes" >&5
28635$as_echo "yes" >&6; }
28636else
28637 $as_echo "$as_me: failed program was:" >&5
28638sed 's/^/| /' conftest.$ac_ext >&5
28639
28640 { $as_echo "$as_me:$LINENO: result: no" >&5
28641$as_echo "no" >&6; }
28642 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28643$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28644 cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
28650
28651int
28652main ()
28653{
28654{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28655 ;
28656 return 0;
28657}
28658_ACEOF
28659rm -f conftest.$ac_objext
28660if { (ac_try="$ac_compile"
28661case "(($ac_try" in
28662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663 *) ac_try_echo=$ac_try;;
28664esac
28665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28666$as_echo "$ac_try_echo") >&5
28667 (eval "$ac_compile") 2>conftest.er1
28668 ac_status=$?
28669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
28672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } && {
28674 test -z "$ac_c_werror_flag" ||
28675 test ! -s conftest.err
28676 } && test -s conftest.$ac_objext; then
28677 { $as_echo "$as_me:$LINENO: result: yes" >&5
28678$as_echo "yes" >&6; }
28679
28680cat >>confdefs.h <<\_ACEOF
28681#define __func__ __FUNCTION__
28682_ACEOF
28683
28684else
28685 $as_echo "$as_me: failed program was:" >&5
28686sed 's/^/| /' conftest.$ac_ext >&5
28687
28688 { $as_echo "$as_me:$LINENO: result: no" >&5
28689$as_echo "no" >&6; }
28690
28691cat >>confdefs.h <<\_ACEOF
28692#define __func__ __FILE__
28693_ACEOF
28694
28695fi
28696
28697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698fi
28699
28700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28701
28702########
28703#
28704# Check for functions
28705#
28706########
28707
28708
28709for ac_header in stdlib.h unistd.h
28710do
28711as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28714$as_echo_n "checking for $ac_header... " >&6; }
28715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28716 $as_echo_n "(cached) " >&6
28717fi
28718ac_res=`eval 'as_val=${'$as_ac_Header'}
28719 $as_echo "$as_val"'`
28720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28721$as_echo "$ac_res" >&6; }
28722else
28723 # Is the header compilable?
28724{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28725$as_echo_n "checking $ac_header usability... " >&6; }
28726cat >conftest.$ac_ext <<_ACEOF
28727/* confdefs.h. */
28728_ACEOF
28729cat confdefs.h >>conftest.$ac_ext
28730cat >>conftest.$ac_ext <<_ACEOF
28731/* end confdefs.h. */
28732$ac_includes_default
28733#include <$ac_header>
28734_ACEOF
28735rm -f conftest.$ac_objext
28736if { (ac_try="$ac_compile"
28737case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28740esac
28741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28742$as_echo "$ac_try_echo") >&5
28743 (eval "$ac_compile") 2>conftest.er1
28744 ac_status=$?
28745 grep -v '^ *+' conftest.er1 >conftest.err
28746 rm -f conftest.er1
28747 cat conftest.err >&5
28748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } && {
28750 test -z "$ac_c_werror_flag" ||
28751 test ! -s conftest.err
28752 } && test -s conftest.$ac_objext; then
28753 ac_header_compiler=yes
28754else
28755 $as_echo "$as_me: failed program was:" >&5
28756sed 's/^/| /' conftest.$ac_ext >&5
28757
28758 ac_header_compiler=no
28759fi
28760
28761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28762{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28763$as_echo "$ac_header_compiler" >&6; }
28764
28765# Is the header present?
28766{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28767$as_echo_n "checking $ac_header presence... " >&6; }
28768cat >conftest.$ac_ext <<_ACEOF
28769/* confdefs.h. */
28770_ACEOF
28771cat confdefs.h >>conftest.$ac_ext
28772cat >>conftest.$ac_ext <<_ACEOF
28773/* end confdefs.h. */
28774#include <$ac_header>
28775_ACEOF
28776if { (ac_try="$ac_cpp conftest.$ac_ext"
28777case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780esac
28781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28782$as_echo "$ac_try_echo") >&5
28783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28784 ac_status=$?
28785 grep -v '^ *+' conftest.er1 >conftest.err
28786 rm -f conftest.er1
28787 cat conftest.err >&5
28788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } >/dev/null && {
28790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28791 test ! -s conftest.err
28792 }; then
28793 ac_header_preproc=yes
28794else
28795 $as_echo "$as_me: failed program was:" >&5
28796sed 's/^/| /' conftest.$ac_ext >&5
28797
28798 ac_header_preproc=no
28799fi
28800
28801rm -f conftest.err conftest.$ac_ext
28802{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28803$as_echo "$ac_header_preproc" >&6; }
28804
28805# So? What about this header?
28806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28807 yes:no: )
28808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28809$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28811$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28812 ac_header_preproc=yes
28813 ;;
28814 no:yes:* )
28815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28816$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28818$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28820$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28822$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28824$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28826$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28827 ( cat <<\_ASBOX
28828## ----------------------------------------- ##
28829## Report this to http://www.imagemagick.org ##
28830## ----------------------------------------- ##
28831_ASBOX
28832 ) | sed "s/^/$as_me: WARNING: /" >&2
28833 ;;
28834esac
28835{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28836$as_echo_n "checking for $ac_header... " >&6; }
28837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28838 $as_echo_n "(cached) " >&6
28839else
28840 eval "$as_ac_Header=\$ac_header_preproc"
28841fi
28842ac_res=`eval 'as_val=${'$as_ac_Header'}
28843 $as_echo "$as_val"'`
28844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28845$as_echo "$ac_res" >&6; }
28846
28847fi
28848as_val=`eval 'as_val=${'$as_ac_Header'}
28849 $as_echo "$as_val"'`
28850 if test "x$as_val" = x""yes; then
28851 cat >>confdefs.h <<_ACEOF
28852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28853_ACEOF
28854
28855fi
28856
28857done
28858
28859
28860for ac_func in getpagesize
28861do
28862as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28863{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28864$as_echo_n "checking for $ac_func... " >&6; }
28865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28866 $as_echo_n "(cached) " >&6
28867else
28868 cat >conftest.$ac_ext <<_ACEOF
28869/* confdefs.h. */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h. */
28874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28876#define $ac_func innocuous_$ac_func
28877
28878/* System header to define __stub macros and hopefully few prototypes,
28879 which can conflict with char $ac_func (); below.
28880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28881 <limits.h> exists even on freestanding compilers. */
28882
28883#ifdef __STDC__
28884# include <limits.h>
28885#else
28886# include <assert.h>
28887#endif
28888
28889#undef $ac_func
28890
28891/* Override any GCC internal prototype to avoid an error.
28892 Use char because int might match the return type of a GCC
28893 builtin and then its argument prototype would still apply. */
28894#ifdef __cplusplus
28895extern "C"
28896#endif
28897char $ac_func ();
28898/* The GNU C library defines this for functions which it implements
28899 to always fail with ENOSYS. Some functions are actually named
28900 something starting with __ and the normal name is an alias. */
28901#if defined __stub_$ac_func || defined __stub___$ac_func
28902choke me
28903#endif
28904
28905int
28906main ()
28907{
28908return $ac_func ();
28909 ;
28910 return 0;
28911}
28912_ACEOF
28913rm -f conftest.$ac_objext conftest$ac_exeext
28914if { (ac_try="$ac_link"
28915case "(($ac_try" in
28916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28917 *) ac_try_echo=$ac_try;;
28918esac
28919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28920$as_echo "$ac_try_echo") >&5
28921 (eval "$ac_link") 2>conftest.er1
28922 ac_status=$?
28923 grep -v '^ *+' conftest.er1 >conftest.err
28924 rm -f conftest.er1
28925 cat conftest.err >&5
28926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } && {
28928 test -z "$ac_c_werror_flag" ||
28929 test ! -s conftest.err
28930 } && test -s conftest$ac_exeext && {
28931 test "$cross_compiling" = yes ||
28932 $as_test_x conftest$ac_exeext
28933 }; then
28934 eval "$as_ac_var=yes"
28935else
28936 $as_echo "$as_me: failed program was:" >&5
28937sed 's/^/| /' conftest.$ac_ext >&5
28938
28939 eval "$as_ac_var=no"
28940fi
28941
28942rm -rf conftest.dSYM
28943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28944 conftest$ac_exeext conftest.$ac_ext
28945fi
28946ac_res=`eval 'as_val=${'$as_ac_var'}
28947 $as_echo "$as_val"'`
28948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28949$as_echo "$ac_res" >&6; }
28950as_val=`eval 'as_val=${'$as_ac_var'}
28951 $as_echo "$as_val"'`
28952 if test "x$as_val" = x""yes; then
28953 cat >>confdefs.h <<_ACEOF
28954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28955_ACEOF
28956
28957fi
28958done
28959
28960{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
28961$as_echo_n "checking for working mmap file i/o... " >&6; }
28962if test "${magick_cv_func_mmap_fileio+set}" = set; then
28963 $as_echo_n "(cached) " >&6
28964else
28965 if test "$cross_compiling" = yes; then
28966 magick_cv_func_mmap_fileio=no
28967else
28968 cat >conftest.$ac_ext <<_ACEOF
28969/* confdefs.h. */
28970_ACEOF
28971cat confdefs.h >>conftest.$ac_ext
28972cat >>conftest.$ac_ext <<_ACEOF
28973/* end confdefs.h. */
28974$ac_includes_default
28975/* malloc might have been renamed as rpl_malloc. */
28976#undef malloc
28977
28978/*
28979 This test is derived from GNU Autoconf's similar macro.
28980 The purpose of this test is to verify that files may be memory
28981 mapped, and that memory mapping and file I/O are coherent.
28982
28983 The test creates a test file, memory maps the file, updates
28984 the file using the memory map, and then reads the file using
28985 file I/O to verify that the file contains the updates.
28986*/
28987
28988#include <fcntl.h>
28989#include <sys/mman.h>
28990
28991#if !STDC_HEADERS && !HAVE_STDLIB_H
28992char *malloc ();
28993#endif
28994
28995/* This mess was copied from the GNU getpagesize.h. */
28996#if !HAVE_GETPAGESIZE
28997/* Assume that all systems that can run configure have sys/param.h. */
28998# if !HAVE_SYS_PARAM_H
28999# define HAVE_SYS_PARAM_H 1
29000# endif
29001
29002# ifdef _SC_PAGESIZE
29003# define getpagesize() sysconf(_SC_PAGESIZE)
29004# else /* no _SC_PAGESIZE */
29005# if HAVE_SYS_PARAM_H
29006# include <sys/param.h>
29007# ifdef EXEC_PAGESIZE
29008# define getpagesize() EXEC_PAGESIZE
29009# else /* no EXEC_PAGESIZE */
29010# ifdef NBPG
29011# define getpagesize() NBPG * CLSIZE
29012# ifndef CLSIZE
29013# define CLSIZE 1
29014# endif /* no CLSIZE */
29015# else /* no NBPG */
29016# ifdef NBPC
29017# define getpagesize() NBPC
29018# else /* no NBPC */
29019# ifdef PAGESIZE
29020# define getpagesize() PAGESIZE
29021# endif /* PAGESIZE */
29022# endif /* no NBPC */
29023# endif /* no NBPG */
29024# endif /* no EXEC_PAGESIZE */
29025# else /* no HAVE_SYS_PARAM_H */
29026# define getpagesize() 8192 /* punt totally */
29027# endif /* no HAVE_SYS_PARAM_H */
29028# endif /* no _SC_PAGESIZE */
29029
29030#endif /* no HAVE_GETPAGESIZE */
29031
29032int
29033main ()
29034{
29035 char *data, *data2, *data3;
29036 int i, pagesize;
29037 int fd;
29038
29039 pagesize = getpagesize ();
29040
29041 /* First, make a file with some known garbage in it. */
29042 data = (char *) malloc (pagesize);
29043 if (!data)
29044 exit (1);
29045 for (i = 0; i < pagesize; ++i)
29046 *(data + i) = rand ();
29047 umask (0);
29048 fd = creat ("conftest.mmap", 0600);
29049 if (fd < 0)
29050 exit (1);
29051 if (write (fd, data, pagesize) != pagesize)
29052 exit (1);
29053 close (fd);
29054
29055 /* Mmap the file as read/write/shared and verify that we see the
29056 same garbage. */
29057 fd = open ("conftest.mmap", O_RDWR);
29058 if (fd < 0)
29059 exit (1);
29060 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
29061 if (data2 == 0)
29062 exit (1);
29063 for (i = 0; i < pagesize; ++i)
29064 if (*(data + i) != *(data2 + i))
29065 exit (1);
29066
29067 /* Finally, make sure that changes to the mapped area
29068 percolate back to the file as seen by read(). */
29069 for (i = 0; i < pagesize; ++i)
29070 *(data2 + i) = *(data2 + i) + 1;
29071 data3 = (char *) malloc (pagesize);
29072 if (!data3)
29073 exit (1);
29074 if (read (fd, data3, pagesize) != pagesize)
29075 exit (1);
29076 for (i = 0; i < pagesize; ++i)
29077 if (*(data2 + i) != *(data3 + i))
29078 exit (1);
29079 close (fd);
29080 exit (0);
29081}
29082_ACEOF
29083rm -f conftest$ac_exeext
29084if { (ac_try="$ac_link"
29085case "(($ac_try" in
29086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087 *) ac_try_echo=$ac_try;;
29088esac
29089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29090$as_echo "$ac_try_echo") >&5
29091 (eval "$ac_link") 2>&5
29092 ac_status=$?
29093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29095 { (case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29098esac
29099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29100$as_echo "$ac_try_echo") >&5
29101 (eval "$ac_try") 2>&5
29102 ac_status=$?
29103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; }; then
29105 magick_cv_func_mmap_fileio=yes
29106else
29107 $as_echo "$as_me: program exited with status $ac_status" >&5
29108$as_echo "$as_me: failed program was:" >&5
29109sed 's/^/| /' conftest.$ac_ext >&5
29110
29111( exit $ac_status )
29112magick_cv_func_mmap_fileio=no
29113fi
29114rm -rf conftest.dSYM
29115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29116fi
29117
29118
29119fi
29120{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
29121$as_echo "$magick_cv_func_mmap_fileio" >&6; }
29122if test $magick_cv_func_mmap_fileio = yes; then
29123
29124cat >>confdefs.h <<\_ACEOF
29125#define HAVE_MMAP_FILEIO 1
29126_ACEOF
29127
29128fi
29129rm -f conftest.mmap
29130
29131{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29132$as_echo_n "checking whether closedir returns void... " >&6; }
29133if test "${ac_cv_func_closedir_void+set}" = set; then
29134 $as_echo_n "(cached) " >&6
29135else
29136 if test "$cross_compiling" = yes; then
29137 ac_cv_func_closedir_void=yes
29138else
29139 cat >conftest.$ac_ext <<_ACEOF
29140/* confdefs.h. */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h. */
29145$ac_includes_default
29146#include <$ac_header_dirent>
29147#ifndef __cplusplus
29148int closedir ();
29149#endif
29150
29151int
29152main ()
29153{
29154return closedir (opendir (".")) != 0;
29155 ;
29156 return 0;
29157}
29158_ACEOF
29159rm -f conftest$ac_exeext
29160if { (ac_try="$ac_link"
29161case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29164esac
29165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29166$as_echo "$ac_try_echo") >&5
29167 (eval "$ac_link") 2>&5
29168 ac_status=$?
29169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29171 { (case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29174esac
29175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29176$as_echo "$ac_try_echo") >&5
29177 (eval "$ac_try") 2>&5
29178 ac_status=$?
29179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; }; then
29181 ac_cv_func_closedir_void=no
29182else
29183 $as_echo "$as_me: program exited with status $ac_status" >&5
29184$as_echo "$as_me: failed program was:" >&5
29185sed 's/^/| /' conftest.$ac_ext >&5
29186
29187( exit $ac_status )
29188ac_cv_func_closedir_void=yes
29189fi
29190rm -rf conftest.dSYM
29191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29192fi
29193
29194
29195fi
29196{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29197$as_echo "$ac_cv_func_closedir_void" >&6; }
29198if test $ac_cv_func_closedir_void = yes; then
29199
29200cat >>confdefs.h <<\_ACEOF
29201#define CLOSEDIR_VOID 1
29202_ACEOF
29203
29204fi
29205
29206
29207
29208for ac_header in stdlib.h unistd.h
29209do
29210as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29213$as_echo_n "checking for $ac_header... " >&6; }
29214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29215 $as_echo_n "(cached) " >&6
29216fi
29217ac_res=`eval 'as_val=${'$as_ac_Header'}
29218 $as_echo "$as_val"'`
29219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29220$as_echo "$ac_res" >&6; }
29221else
29222 # Is the header compilable?
29223{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29224$as_echo_n "checking $ac_header usability... " >&6; }
29225cat >conftest.$ac_ext <<_ACEOF
29226/* confdefs.h. */
29227_ACEOF
29228cat confdefs.h >>conftest.$ac_ext
29229cat >>conftest.$ac_ext <<_ACEOF
29230/* end confdefs.h. */
29231$ac_includes_default
29232#include <$ac_header>
29233_ACEOF
29234rm -f conftest.$ac_objext
29235if { (ac_try="$ac_compile"
29236case "(($ac_try" in
29237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29238 *) ac_try_echo=$ac_try;;
29239esac
29240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29241$as_echo "$ac_try_echo") >&5
29242 (eval "$ac_compile") 2>conftest.er1
29243 ac_status=$?
29244 grep -v '^ *+' conftest.er1 >conftest.err
29245 rm -f conftest.er1
29246 cat conftest.err >&5
29247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); } && {
29249 test -z "$ac_c_werror_flag" ||
29250 test ! -s conftest.err
29251 } && test -s conftest.$ac_objext; then
29252 ac_header_compiler=yes
29253else
29254 $as_echo "$as_me: failed program was:" >&5
29255sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 ac_header_compiler=no
29258fi
29259
29260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29262$as_echo "$ac_header_compiler" >&6; }
29263
29264# Is the header present?
29265{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29266$as_echo_n "checking $ac_header presence... " >&6; }
29267cat >conftest.$ac_ext <<_ACEOF
29268/* confdefs.h. */
29269_ACEOF
29270cat confdefs.h >>conftest.$ac_ext
29271cat >>conftest.$ac_ext <<_ACEOF
29272/* end confdefs.h. */
29273#include <$ac_header>
29274_ACEOF
29275if { (ac_try="$ac_cpp conftest.$ac_ext"
29276case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29279esac
29280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29281$as_echo "$ac_try_echo") >&5
29282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29283 ac_status=$?
29284 grep -v '^ *+' conftest.er1 >conftest.err
29285 rm -f conftest.er1
29286 cat conftest.err >&5
29287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); } >/dev/null && {
29289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29290 test ! -s conftest.err
29291 }; then
29292 ac_header_preproc=yes
29293else
29294 $as_echo "$as_me: failed program was:" >&5
29295sed 's/^/| /' conftest.$ac_ext >&5
29296
29297 ac_header_preproc=no
29298fi
29299
29300rm -f conftest.err conftest.$ac_ext
29301{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29302$as_echo "$ac_header_preproc" >&6; }
29303
29304# So? What about this header?
29305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29306 yes:no: )
29307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29308$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29310$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29311 ac_header_preproc=yes
29312 ;;
29313 no:yes:* )
29314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29315$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29317$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29319$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29321$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29323$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29325$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29326 ( cat <<\_ASBOX
29327## ----------------------------------------- ##
29328## Report this to http://www.imagemagick.org ##
29329## ----------------------------------------- ##
29330_ASBOX
29331 ) | sed "s/^/$as_me: WARNING: /" >&2
29332 ;;
29333esac
29334{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29335$as_echo_n "checking for $ac_header... " >&6; }
29336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29337 $as_echo_n "(cached) " >&6
29338else
29339 eval "$as_ac_Header=\$ac_header_preproc"
29340fi
29341ac_res=`eval 'as_val=${'$as_ac_Header'}
29342 $as_echo "$as_val"'`
29343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29344$as_echo "$ac_res" >&6; }
29345
29346fi
29347as_val=`eval 'as_val=${'$as_ac_Header'}
29348 $as_echo "$as_val"'`
29349 if test "x$as_val" = x""yes; then
29350 cat >>confdefs.h <<_ACEOF
29351#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29352_ACEOF
29353
29354fi
29355
29356done
29357
29358
29359for ac_func in getpagesize
29360do
29361as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29362{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29363$as_echo_n "checking for $ac_func... " >&6; }
29364if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29365 $as_echo_n "(cached) " >&6
29366else
29367 cat >conftest.$ac_ext <<_ACEOF
29368/* confdefs.h. */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h. */
29373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29375#define $ac_func innocuous_$ac_func
29376
29377/* System header to define __stub macros and hopefully few prototypes,
29378 which can conflict with char $ac_func (); below.
29379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29380 <limits.h> exists even on freestanding compilers. */
29381
29382#ifdef __STDC__
29383# include <limits.h>
29384#else
29385# include <assert.h>
29386#endif
29387
29388#undef $ac_func
29389
29390/* Override any GCC internal prototype to avoid an error.
29391 Use char because int might match the return type of a GCC
29392 builtin and then its argument prototype would still apply. */
29393#ifdef __cplusplus
29394extern "C"
29395#endif
29396char $ac_func ();
29397/* The GNU C library defines this for functions which it implements
29398 to always fail with ENOSYS. Some functions are actually named
29399 something starting with __ and the normal name is an alias. */
29400#if defined __stub_$ac_func || defined __stub___$ac_func
29401choke me
29402#endif
29403
29404int
29405main ()
29406{
29407return $ac_func ();
29408 ;
29409 return 0;
29410}
29411_ACEOF
29412rm -f conftest.$ac_objext conftest$ac_exeext
29413if { (ac_try="$ac_link"
29414case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29417esac
29418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29419$as_echo "$ac_try_echo") >&5
29420 (eval "$ac_link") 2>conftest.er1
29421 ac_status=$?
29422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
29425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } && {
29427 test -z "$ac_c_werror_flag" ||
29428 test ! -s conftest.err
29429 } && test -s conftest$ac_exeext && {
29430 test "$cross_compiling" = yes ||
29431 $as_test_x conftest$ac_exeext
29432 }; then
29433 eval "$as_ac_var=yes"
29434else
29435 $as_echo "$as_me: failed program was:" >&5
29436sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 eval "$as_ac_var=no"
29439fi
29440
29441rm -rf conftest.dSYM
29442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29443 conftest$ac_exeext conftest.$ac_ext
29444fi
29445ac_res=`eval 'as_val=${'$as_ac_var'}
29446 $as_echo "$as_val"'`
29447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29448$as_echo "$ac_res" >&6; }
29449as_val=`eval 'as_val=${'$as_ac_var'}
29450 $as_echo "$as_val"'`
29451 if test "x$as_val" = x""yes; then
29452 cat >>confdefs.h <<_ACEOF
29453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29454_ACEOF
29455
29456fi
29457done
29458
29459{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
29460$as_echo_n "checking for working mmap... " >&6; }
29461if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29462 $as_echo_n "(cached) " >&6
29463else
29464 if test "$cross_compiling" = yes; then
29465 ac_cv_func_mmap_fixed_mapped=no
29466else
29467 cat >conftest.$ac_ext <<_ACEOF
29468/* confdefs.h. */
29469_ACEOF
29470cat confdefs.h >>conftest.$ac_ext
29471cat >>conftest.$ac_ext <<_ACEOF
29472/* end confdefs.h. */
29473$ac_includes_default
29474/* malloc might have been renamed as rpl_malloc. */
29475#undef malloc
29476
29477/* Thanks to Mike Haertel and Jim Avera for this test.
29478 Here is a matrix of mmap possibilities:
29479 mmap private not fixed
29480 mmap private fixed at somewhere currently unmapped
29481 mmap private fixed at somewhere already mapped
29482 mmap shared not fixed
29483 mmap shared fixed at somewhere currently unmapped
29484 mmap shared fixed at somewhere already mapped
29485 For private mappings, we should verify that changes cannot be read()
29486 back from the file, nor mmap's back from the file at a different
29487 address. (There have been systems where private was not correctly
29488 implemented like the infamous i386 svr4.0, and systems where the
29489 VM page cache was not coherent with the file system buffer cache
29490 like early versions of FreeBSD and possibly contemporary NetBSD.)
29491 For shared mappings, we should conversely verify that changes get
29492 propagated back to all the places they're supposed to be.
29493
29494 Grep wants private fixed already mapped.
29495 The main things grep needs to know about mmap are:
29496 * does it exist and is it safe to write into the mmap'd area
29497 * how to use it (BSD variants) */
29498
29499#include <fcntl.h>
29500#include <sys/mman.h>
29501
29502#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
29503char *malloc ();
29504#endif
29505
29506/* This mess was copied from the GNU getpagesize.h. */
29507#ifndef HAVE_GETPAGESIZE
29508/* Assume that all systems that can run configure have sys/param.h. */
29509# ifndef HAVE_SYS_PARAM_H
29510# define HAVE_SYS_PARAM_H 1
29511# endif
29512
29513# ifdef _SC_PAGESIZE
29514# define getpagesize() sysconf(_SC_PAGESIZE)
29515# else /* no _SC_PAGESIZE */
29516# ifdef HAVE_SYS_PARAM_H
29517# include <sys/param.h>
29518# ifdef EXEC_PAGESIZE
29519# define getpagesize() EXEC_PAGESIZE
29520# else /* no EXEC_PAGESIZE */
29521# ifdef NBPG
29522# define getpagesize() NBPG * CLSIZE
29523# ifndef CLSIZE
29524# define CLSIZE 1
29525# endif /* no CLSIZE */
29526# else /* no NBPG */
29527# ifdef NBPC
29528# define getpagesize() NBPC
29529# else /* no NBPC */
29530# ifdef PAGESIZE
29531# define getpagesize() PAGESIZE
29532# endif /* PAGESIZE */
29533# endif /* no NBPC */
29534# endif /* no NBPG */
29535# endif /* no EXEC_PAGESIZE */
29536# else /* no HAVE_SYS_PARAM_H */
29537# define getpagesize() 8192 /* punt totally */
29538# endif /* no HAVE_SYS_PARAM_H */
29539# endif /* no _SC_PAGESIZE */
29540
29541#endif /* no HAVE_GETPAGESIZE */
29542
29543int
29544main ()
29545{
29546 char *data, *data2, *data3;
29547 int i, pagesize;
29548 int fd;
29549
29550 pagesize = getpagesize ();
29551
29552 /* First, make a file with some known garbage in it. */
29553 data = (char *) malloc (pagesize);
29554 if (!data)
29555 return 1;
29556 for (i = 0; i < pagesize; ++i)
29557 *(data + i) = rand ();
29558 umask (0);
29559 fd = creat ("conftest.mmap", 0600);
29560 if (fd < 0)
29561 return 1;
29562 if (write (fd, data, pagesize) != pagesize)
29563 return 1;
29564 close (fd);
29565
29566 /* Next, try to mmap the file at a fixed address which already has
29567 something else allocated at it. If we can, also make sure that
29568 we see the same garbage. */
29569 fd = open ("conftest.mmap", O_RDWR);
29570 if (fd < 0)
29571 return 1;
29572 data2 = (char *) malloc (2 * pagesize);
29573 if (!data2)
29574 return 1;
29575 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29576 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29577 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29578 return 1;
29579 for (i = 0; i < pagesize; ++i)
29580 if (*(data + i) != *(data2 + i))
29581 return 1;
29582
29583 /* Finally, make sure that changes to the mapped area do not
29584 percolate back to the file as seen by read(). (This is a bug on
29585 some variants of i386 svr4.0.) */
29586 for (i = 0; i < pagesize; ++i)
29587 *(data2 + i) = *(data2 + i) + 1;
29588 data3 = (char *) malloc (pagesize);
29589 if (!data3)
29590 return 1;
29591 if (read (fd, data3, pagesize) != pagesize)
29592 return 1;
29593 for (i = 0; i < pagesize; ++i)
29594 if (*(data + i) != *(data3 + i))
29595 return 1;
29596 close (fd);
29597 return 0;
29598}
29599_ACEOF
29600rm -f conftest$ac_exeext
29601if { (ac_try="$ac_link"
29602case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29605esac
29606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29607$as_echo "$ac_try_echo") >&5
29608 (eval "$ac_link") 2>&5
29609 ac_status=$?
29610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29612 { (case "(($ac_try" in
29613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614 *) ac_try_echo=$ac_try;;
29615esac
29616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29617$as_echo "$ac_try_echo") >&5
29618 (eval "$ac_try") 2>&5
29619 ac_status=$?
29620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; }; then
29622 ac_cv_func_mmap_fixed_mapped=yes
29623else
29624 $as_echo "$as_me: program exited with status $ac_status" >&5
29625$as_echo "$as_me: failed program was:" >&5
29626sed 's/^/| /' conftest.$ac_ext >&5
29627
29628( exit $ac_status )
29629ac_cv_func_mmap_fixed_mapped=no
29630fi
29631rm -rf conftest.dSYM
29632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29633fi
29634
29635
29636fi
29637{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29638$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29639if test $ac_cv_func_mmap_fixed_mapped = yes; then
29640
29641cat >>confdefs.h <<\_ACEOF
29642#define HAVE_MMAP 1
29643_ACEOF
29644
29645fi
29646rm -f conftest.mmap
29647
29648
29649for ac_header in vfork.h
29650do
29651as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29654$as_echo_n "checking for $ac_header... " >&6; }
29655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29656 $as_echo_n "(cached) " >&6
29657fi
29658ac_res=`eval 'as_val=${'$as_ac_Header'}
29659 $as_echo "$as_val"'`
29660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29661$as_echo "$ac_res" >&6; }
29662else
29663 # Is the header compilable?
29664{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29665$as_echo_n "checking $ac_header usability... " >&6; }
29666cat >conftest.$ac_ext <<_ACEOF
29667/* confdefs.h. */
29668_ACEOF
29669cat confdefs.h >>conftest.$ac_ext
29670cat >>conftest.$ac_ext <<_ACEOF
29671/* end confdefs.h. */
29672$ac_includes_default
29673#include <$ac_header>
29674_ACEOF
29675rm -f conftest.$ac_objext
29676if { (ac_try="$ac_compile"
29677case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680esac
29681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29682$as_echo "$ac_try_echo") >&5
29683 (eval "$ac_compile") 2>conftest.er1
29684 ac_status=$?
29685 grep -v '^ *+' conftest.er1 >conftest.err
29686 rm -f conftest.er1
29687 cat conftest.err >&5
29688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); } && {
29690 test -z "$ac_c_werror_flag" ||
29691 test ! -s conftest.err
29692 } && test -s conftest.$ac_objext; then
29693 ac_header_compiler=yes
29694else
29695 $as_echo "$as_me: failed program was:" >&5
29696sed 's/^/| /' conftest.$ac_ext >&5
29697
29698 ac_header_compiler=no
29699fi
29700
29701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29702{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29703$as_echo "$ac_header_compiler" >&6; }
29704
29705# Is the header present?
29706{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29707$as_echo_n "checking $ac_header presence... " >&6; }
29708cat >conftest.$ac_ext <<_ACEOF
29709/* confdefs.h. */
29710_ACEOF
29711cat confdefs.h >>conftest.$ac_ext
29712cat >>conftest.$ac_ext <<_ACEOF
29713/* end confdefs.h. */
29714#include <$ac_header>
29715_ACEOF
29716if { (ac_try="$ac_cpp conftest.$ac_ext"
29717case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29720esac
29721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29722$as_echo "$ac_try_echo") >&5
29723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29724 ac_status=$?
29725 grep -v '^ *+' conftest.er1 >conftest.err
29726 rm -f conftest.er1
29727 cat conftest.err >&5
29728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); } >/dev/null && {
29730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29731 test ! -s conftest.err
29732 }; then
29733 ac_header_preproc=yes
29734else
29735 $as_echo "$as_me: failed program was:" >&5
29736sed 's/^/| /' conftest.$ac_ext >&5
29737
29738 ac_header_preproc=no
29739fi
29740
29741rm -f conftest.err conftest.$ac_ext
29742{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29743$as_echo "$ac_header_preproc" >&6; }
29744
29745# So? What about this header?
29746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29747 yes:no: )
29748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29749$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29751$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29752 ac_header_preproc=yes
29753 ;;
29754 no:yes:* )
29755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29756$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29758$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29760$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29762$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29764$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29766$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29767 ( cat <<\_ASBOX
29768## ----------------------------------------- ##
29769## Report this to http://www.imagemagick.org ##
29770## ----------------------------------------- ##
29771_ASBOX
29772 ) | sed "s/^/$as_me: WARNING: /" >&2
29773 ;;
29774esac
29775{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29776$as_echo_n "checking for $ac_header... " >&6; }
29777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29778 $as_echo_n "(cached) " >&6
29779else
29780 eval "$as_ac_Header=\$ac_header_preproc"
29781fi
29782ac_res=`eval 'as_val=${'$as_ac_Header'}
29783 $as_echo "$as_val"'`
29784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29785$as_echo "$ac_res" >&6; }
29786
29787fi
29788as_val=`eval 'as_val=${'$as_ac_Header'}
29789 $as_echo "$as_val"'`
29790 if test "x$as_val" = x""yes; then
29791 cat >>confdefs.h <<_ACEOF
29792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29793_ACEOF
29794
29795fi
29796
29797done
29798
29799
29800
29801for ac_func in fork vfork
29802do
29803as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29804{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29805$as_echo_n "checking for $ac_func... " >&6; }
29806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29807 $as_echo_n "(cached) " >&6
29808else
29809 cat >conftest.$ac_ext <<_ACEOF
29810/* confdefs.h. */
29811_ACEOF
29812cat confdefs.h >>conftest.$ac_ext
29813cat >>conftest.$ac_ext <<_ACEOF
29814/* end confdefs.h. */
29815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29817#define $ac_func innocuous_$ac_func
29818
29819/* System header to define __stub macros and hopefully few prototypes,
29820 which can conflict with char $ac_func (); below.
29821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29822 <limits.h> exists even on freestanding compilers. */
29823
29824#ifdef __STDC__
29825# include <limits.h>
29826#else
29827# include <assert.h>
29828#endif
29829
29830#undef $ac_func
29831
29832/* Override any GCC internal prototype to avoid an error.
29833 Use char because int might match the return type of a GCC
29834 builtin and then its argument prototype would still apply. */
29835#ifdef __cplusplus
29836extern "C"
29837#endif
29838char $ac_func ();
29839/* The GNU C library defines this for functions which it implements
29840 to always fail with ENOSYS. Some functions are actually named
29841 something starting with __ and the normal name is an alias. */
29842#if defined __stub_$ac_func || defined __stub___$ac_func
29843choke me
29844#endif
29845
29846int
29847main ()
29848{
29849return $ac_func ();
29850 ;
29851 return 0;
29852}
29853_ACEOF
29854rm -f conftest.$ac_objext conftest$ac_exeext
29855if { (ac_try="$ac_link"
29856case "(($ac_try" in
29857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858 *) ac_try_echo=$ac_try;;
29859esac
29860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29861$as_echo "$ac_try_echo") >&5
29862 (eval "$ac_link") 2>conftest.er1
29863 ac_status=$?
29864 grep -v '^ *+' conftest.er1 >conftest.err
29865 rm -f conftest.er1
29866 cat conftest.err >&5
29867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } && {
29869 test -z "$ac_c_werror_flag" ||
29870 test ! -s conftest.err
29871 } && test -s conftest$ac_exeext && {
29872 test "$cross_compiling" = yes ||
29873 $as_test_x conftest$ac_exeext
29874 }; then
29875 eval "$as_ac_var=yes"
29876else
29877 $as_echo "$as_me: failed program was:" >&5
29878sed 's/^/| /' conftest.$ac_ext >&5
29879
29880 eval "$as_ac_var=no"
29881fi
29882
29883rm -rf conftest.dSYM
29884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29885 conftest$ac_exeext conftest.$ac_ext
29886fi
29887ac_res=`eval 'as_val=${'$as_ac_var'}
29888 $as_echo "$as_val"'`
29889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29890$as_echo "$ac_res" >&6; }
29891as_val=`eval 'as_val=${'$as_ac_var'}
29892 $as_echo "$as_val"'`
29893 if test "x$as_val" = x""yes; then
29894 cat >>confdefs.h <<_ACEOF
29895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29896_ACEOF
29897
29898fi
29899done
29900
29901if test "x$ac_cv_func_fork" = xyes; then
29902 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
29903$as_echo_n "checking for working fork... " >&6; }
29904if test "${ac_cv_func_fork_works+set}" = set; then
29905 $as_echo_n "(cached) " >&6
29906else
29907 if test "$cross_compiling" = yes; then
29908 ac_cv_func_fork_works=cross
29909else
29910 cat >conftest.$ac_ext <<_ACEOF
29911/* confdefs.h. */
29912_ACEOF
29913cat confdefs.h >>conftest.$ac_ext
29914cat >>conftest.$ac_ext <<_ACEOF
29915/* end confdefs.h. */
29916$ac_includes_default
29917int
29918main ()
29919{
29920
29921 /* By Ruediger Kuhlmann. */
29922 return fork () < 0;
29923
29924 ;
29925 return 0;
29926}
29927_ACEOF
29928rm -f conftest$ac_exeext
29929if { (ac_try="$ac_link"
29930case "(($ac_try" in
29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932 *) ac_try_echo=$ac_try;;
29933esac
29934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29935$as_echo "$ac_try_echo") >&5
29936 (eval "$ac_link") 2>&5
29937 ac_status=$?
29938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29940 { (case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29943esac
29944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29945$as_echo "$ac_try_echo") >&5
29946 (eval "$ac_try") 2>&5
29947 ac_status=$?
29948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 ac_cv_func_fork_works=yes
29951else
29952 $as_echo "$as_me: program exited with status $ac_status" >&5
29953$as_echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956( exit $ac_status )
29957ac_cv_func_fork_works=no
29958fi
29959rm -rf conftest.dSYM
29960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29961fi
29962
29963
29964fi
29965{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29966$as_echo "$ac_cv_func_fork_works" >&6; }
29967
29968else
29969 ac_cv_func_fork_works=$ac_cv_func_fork
29970fi
29971if test "x$ac_cv_func_fork_works" = xcross; then
29972 case $host in
29973 *-*-amigaos* | *-*-msdosdjgpp*)
29974 # Override, as these systems have only a dummy fork() stub
29975 ac_cv_func_fork_works=no
29976 ;;
29977 *)
29978 ac_cv_func_fork_works=yes
29979 ;;
29980 esac
29981 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
29982$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
29983fi
29984ac_cv_func_vfork_works=$ac_cv_func_vfork
29985if test "x$ac_cv_func_vfork" = xyes; then
29986 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
29987$as_echo_n "checking for working vfork... " >&6; }
29988if test "${ac_cv_func_vfork_works+set}" = set; then
29989 $as_echo_n "(cached) " >&6
29990else
29991 if test "$cross_compiling" = yes; then
29992 ac_cv_func_vfork_works=cross
29993else
29994 cat >conftest.$ac_ext <<_ACEOF
29995/* confdefs.h. */
29996_ACEOF
29997cat confdefs.h >>conftest.$ac_ext
29998cat >>conftest.$ac_ext <<_ACEOF
29999/* end confdefs.h. */
30000/* Thanks to Paul Eggert for this test. */
30001$ac_includes_default
30002#include <sys/wait.h>
30003#ifdef HAVE_VFORK_H
30004# include <vfork.h>
30005#endif
30006/* On some sparc systems, changes by the child to local and incoming
30007 argument registers are propagated back to the parent. The compiler
30008 is told about this with #include <vfork.h>, but some compilers
30009 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
30010 static variable whose address is put into a register that is
30011 clobbered by the vfork. */
30012static void
30013#ifdef __cplusplus
30014sparc_address_test (int arg)
30015# else
30016sparc_address_test (arg) int arg;
30017#endif
30018{
30019 static pid_t child;
30020 if (!child) {
30021 child = vfork ();
30022 if (child < 0) {
30023 perror ("vfork");
30024 _exit(2);
30025 }
30026 if (!child) {
30027 arg = getpid();
30028 write(-1, "", 0);
30029 _exit (arg);
30030 }
30031 }
30032}
30033
30034int
30035main ()
30036{
30037 pid_t parent = getpid ();
30038 pid_t child;
30039
30040 sparc_address_test (0);
30041
30042 child = vfork ();
30043
30044 if (child == 0) {
30045 /* Here is another test for sparc vfork register problems. This
30046 test uses lots of local variables, at least as many local
30047 variables as main has allocated so far including compiler
30048 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
30049 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
30050 reuse the register of parent for one of the local variables,
30051 since it will think that parent can't possibly be used any more
30052 in this routine. Assigning to the local variable will thus
30053 munge parent in the parent process. */
30054 pid_t
30055 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30056 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30057 /* Convince the compiler that p..p7 are live; otherwise, it might
30058 use the same hardware register for all 8 local variables. */
30059 if (p != p1 || p != p2 || p != p3 || p != p4
30060 || p != p5 || p != p6 || p != p7)
30061 _exit(1);
30062
30063 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30064 from child file descriptors. If the child closes a descriptor
30065 before it execs or exits, this munges the parent's descriptor
30066 as well. Test for this by closing stdout in the child. */
30067 _exit(close(fileno(stdout)) != 0);
30068 } else {
30069 int status;
30070 struct stat st;
30071
30072 while (wait(&status) != child)
30073 ;
30074 return (
30075 /* Was there some problem with vforking? */
30076 child < 0
30077
30078 /* Did the child fail? (This shouldn't happen.) */
30079 || status
30080
30081 /* Did the vfork/compiler bug occur? */
30082 || parent != getpid()
30083
30084 /* Did the file descriptor bug occur? */
30085 || fstat(fileno(stdout), &st) != 0
30086 );
30087 }
30088}
30089_ACEOF
30090rm -f conftest$ac_exeext
30091if { (ac_try="$ac_link"
30092case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30095esac
30096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30097$as_echo "$ac_try_echo") >&5
30098 (eval "$ac_link") 2>&5
30099 ac_status=$?
30100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30102 { (case "(($ac_try" in
30103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30104 *) ac_try_echo=$ac_try;;
30105esac
30106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30107$as_echo "$ac_try_echo") >&5
30108 (eval "$ac_try") 2>&5
30109 ac_status=$?
30110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; }; then
30112 ac_cv_func_vfork_works=yes
30113else
30114 $as_echo "$as_me: program exited with status $ac_status" >&5
30115$as_echo "$as_me: failed program was:" >&5
30116sed 's/^/| /' conftest.$ac_ext >&5
30117
30118( exit $ac_status )
30119ac_cv_func_vfork_works=no
30120fi
30121rm -rf conftest.dSYM
30122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30123fi
30124
30125
30126fi
30127{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30128$as_echo "$ac_cv_func_vfork_works" >&6; }
30129
30130fi;
30131if test "x$ac_cv_func_fork_works" = xcross; then
30132 ac_cv_func_vfork_works=$ac_cv_func_vfork
30133 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30134$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30135fi
30136
30137if test "x$ac_cv_func_vfork_works" = xyes; then
30138
30139cat >>confdefs.h <<\_ACEOF
30140#define HAVE_WORKING_VFORK 1
30141_ACEOF
30142
30143else
30144
30145cat >>confdefs.h <<\_ACEOF
30146#define vfork fork
30147_ACEOF
30148
30149fi
30150if test "x$ac_cv_func_fork_works" = xyes; then
30151
30152cat >>confdefs.h <<\_ACEOF
30153#define HAVE_WORKING_FORK 1
30154_ACEOF
30155
30156fi
30157
30158{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
30159$as_echo_n "checking for working memcmp... " >&6; }
30160if test "${ac_cv_func_memcmp_working+set}" = set; then
30161 $as_echo_n "(cached) " >&6
30162else
30163 if test "$cross_compiling" = yes; then
30164 ac_cv_func_memcmp_working=no
30165else
30166 cat >conftest.$ac_ext <<_ACEOF
30167/* confdefs.h. */
30168_ACEOF
30169cat confdefs.h >>conftest.$ac_ext
30170cat >>conftest.$ac_ext <<_ACEOF
30171/* end confdefs.h. */
30172$ac_includes_default
30173int
30174main ()
30175{
30176
30177 /* Some versions of memcmp are not 8-bit clean. */
30178 char c0 = '\100', c1 = '\200', c2 = '\201';
30179 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
30180 return 1;
30181
30182 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
30183 or more and with at least one buffer not starting on a 4-byte boundary.
30184 William Lewis provided this test program. */
30185 {
30186 char foo[21];
30187 char bar[21];
30188 int i;
30189 for (i = 0; i < 4; i++)
30190 {
30191 char *a = foo + i;
30192 char *b = bar + i;
30193 strcpy (a, "--------01111111");
30194 strcpy (b, "--------10000000");
30195 if (memcmp (a, b, 16) >= 0)
30196 return 1;
30197 }
30198 return 0;
30199 }
30200
30201 ;
30202 return 0;
30203}
30204_ACEOF
30205rm -f conftest$ac_exeext
30206if { (ac_try="$ac_link"
30207case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30210esac
30211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30212$as_echo "$ac_try_echo") >&5
30213 (eval "$ac_link") 2>&5
30214 ac_status=$?
30215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30217 { (case "(($ac_try" in
30218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219 *) ac_try_echo=$ac_try;;
30220esac
30221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30222$as_echo "$ac_try_echo") >&5
30223 (eval "$ac_try") 2>&5
30224 ac_status=$?
30225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30227 ac_cv_func_memcmp_working=yes
30228else
30229 $as_echo "$as_me: program exited with status $ac_status" >&5
30230$as_echo "$as_me: failed program was:" >&5
30231sed 's/^/| /' conftest.$ac_ext >&5
30232
30233( exit $ac_status )
30234ac_cv_func_memcmp_working=no
30235fi
30236rm -rf conftest.dSYM
30237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30238fi
30239
30240
30241fi
30242{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
30243$as_echo "$ac_cv_func_memcmp_working" >&6; }
30244test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
30245 *" memcmp.$ac_objext "* ) ;;
30246 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
30247 ;;
30248esac
30249
30250
30251
30252
30253for ac_header in sys/select.h sys/socket.h
30254do
30255as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30258$as_echo_n "checking for $ac_header... " >&6; }
30259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30260 $as_echo_n "(cached) " >&6
30261fi
30262ac_res=`eval 'as_val=${'$as_ac_Header'}
30263 $as_echo "$as_val"'`
30264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30265$as_echo "$ac_res" >&6; }
30266else
30267 # Is the header compilable?
30268{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30269$as_echo_n "checking $ac_header usability... " >&6; }
30270cat >conftest.$ac_ext <<_ACEOF
30271/* confdefs.h. */
30272_ACEOF
30273cat confdefs.h >>conftest.$ac_ext
30274cat >>conftest.$ac_ext <<_ACEOF
30275/* end confdefs.h. */
30276$ac_includes_default
30277#include <$ac_header>
30278_ACEOF
30279rm -f conftest.$ac_objext
30280if { (ac_try="$ac_compile"
30281case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284esac
30285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30286$as_echo "$ac_try_echo") >&5
30287 (eval "$ac_compile") 2>conftest.er1
30288 ac_status=$?
30289 grep -v '^ *+' conftest.er1 >conftest.err
30290 rm -f conftest.er1
30291 cat conftest.err >&5
30292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } && {
30294 test -z "$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 } && test -s conftest.$ac_objext; then
30297 ac_header_compiler=yes
30298else
30299 $as_echo "$as_me: failed program was:" >&5
30300sed 's/^/| /' conftest.$ac_ext >&5
30301
30302 ac_header_compiler=no
30303fi
30304
30305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30306{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30307$as_echo "$ac_header_compiler" >&6; }
30308
30309# Is the header present?
30310{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30311$as_echo_n "checking $ac_header presence... " >&6; }
30312cat >conftest.$ac_ext <<_ACEOF
30313/* confdefs.h. */
30314_ACEOF
30315cat confdefs.h >>conftest.$ac_ext
30316cat >>conftest.$ac_ext <<_ACEOF
30317/* end confdefs.h. */
30318#include <$ac_header>
30319_ACEOF
30320if { (ac_try="$ac_cpp conftest.$ac_ext"
30321case "(($ac_try" in
30322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323 *) ac_try_echo=$ac_try;;
30324esac
30325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30326$as_echo "$ac_try_echo") >&5
30327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30328 ac_status=$?
30329 grep -v '^ *+' conftest.er1 >conftest.err
30330 rm -f conftest.er1
30331 cat conftest.err >&5
30332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); } >/dev/null && {
30334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30335 test ! -s conftest.err
30336 }; then
30337 ac_header_preproc=yes
30338else
30339 $as_echo "$as_me: failed program was:" >&5
30340sed 's/^/| /' conftest.$ac_ext >&5
30341
30342 ac_header_preproc=no
30343fi
30344
30345rm -f conftest.err conftest.$ac_ext
30346{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30347$as_echo "$ac_header_preproc" >&6; }
30348
30349# So? What about this header?
30350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30351 yes:no: )
30352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30353$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30355$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30356 ac_header_preproc=yes
30357 ;;
30358 no:yes:* )
30359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30360$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30362$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30364$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30366$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30368$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30370$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30371 ( cat <<\_ASBOX
30372## ----------------------------------------- ##
30373## Report this to http://www.imagemagick.org ##
30374## ----------------------------------------- ##
30375_ASBOX
30376 ) | sed "s/^/$as_me: WARNING: /" >&2
30377 ;;
30378esac
30379{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30380$as_echo_n "checking for $ac_header... " >&6; }
30381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30382 $as_echo_n "(cached) " >&6
30383else
30384 eval "$as_ac_Header=\$ac_header_preproc"
30385fi
30386ac_res=`eval 'as_val=${'$as_ac_Header'}
30387 $as_echo "$as_val"'`
30388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30389$as_echo "$ac_res" >&6; }
30390
30391fi
30392as_val=`eval 'as_val=${'$as_ac_Header'}
30393 $as_echo "$as_val"'`
30394 if test "x$as_val" = x""yes; then
30395 cat >>confdefs.h <<_ACEOF
30396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30397_ACEOF
30398
30399fi
30400
30401done
30402
30403{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
30404$as_echo_n "checking types of arguments for select... " >&6; }
30405if test "${ac_cv_func_select_args+set}" = set; then
30406 $as_echo_n "(cached) " >&6
30407else
30408 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
30409 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
30410 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
30411 cat >conftest.$ac_ext <<_ACEOF
30412/* confdefs.h. */
30413_ACEOF
30414cat confdefs.h >>conftest.$ac_ext
30415cat >>conftest.$ac_ext <<_ACEOF
30416/* end confdefs.h. */
30417$ac_includes_default
30418#ifdef HAVE_SYS_SELECT_H
30419# include <sys/select.h>
30420#endif
30421#ifdef HAVE_SYS_SOCKET_H
30422# include <sys/socket.h>
30423#endif
30424
30425int
30426main ()
30427{
30428extern int select ($ac_arg1,
30429 $ac_arg234, $ac_arg234, $ac_arg234,
30430 $ac_arg5);
30431 ;
30432 return 0;
30433}
30434_ACEOF
30435rm -f conftest.$ac_objext
30436if { (ac_try="$ac_compile"
30437case "(($ac_try" in
30438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30440esac
30441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30442$as_echo "$ac_try_echo") >&5
30443 (eval "$ac_compile") 2>conftest.er1
30444 ac_status=$?
30445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
30448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } && {
30450 test -z "$ac_c_werror_flag" ||
30451 test ! -s conftest.err
30452 } && test -s conftest.$ac_objext; then
30453 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
30454else
30455 $as_echo "$as_me: failed program was:" >&5
30456sed 's/^/| /' conftest.$ac_ext >&5
30457
30458
30459fi
30460
30461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30462 done
30463 done
30464done
30465# Provide a safe default value.
30466: ${ac_cv_func_select_args='int,int *,struct timeval *'}
30467
30468fi
30469{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
30470$as_echo "$ac_cv_func_select_args" >&6; }
30471ac_save_IFS=$IFS; IFS=','
30472set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
30473IFS=$ac_save_IFS
30474shift
30475
30476cat >>confdefs.h <<_ACEOF
30477#define SELECT_TYPE_ARG1 $1
30478_ACEOF
30479
30480
30481cat >>confdefs.h <<_ACEOF
30482#define SELECT_TYPE_ARG234 ($2)
30483_ACEOF
30484
30485
30486cat >>confdefs.h <<_ACEOF
30487#define SELECT_TYPE_ARG5 ($3)
30488_ACEOF
30489
30490rm -f conftest*
30491
30492if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30493 $as_echo_n "(cached) " >&6
30494else
30495 ac_cv_func_setvbuf_reversed=no
30496fi
30497
30498
30499{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30500$as_echo_n "checking return type of signal handlers... " >&6; }
30501if test "${ac_cv_type_signal+set}" = set; then
30502 $as_echo_n "(cached) " >&6
30503else
30504 cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h. */
30510#include <sys/types.h>
30511#include <signal.h>
30512
30513int
30514main ()
30515{
30516return *(signal (0, 0)) (0) == 1;
30517 ;
30518 return 0;
30519}
30520_ACEOF
30521rm -f conftest.$ac_objext
30522if { (ac_try="$ac_compile"
30523case "(($ac_try" in
30524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525 *) ac_try_echo=$ac_try;;
30526esac
30527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30528$as_echo "$ac_try_echo") >&5
30529 (eval "$ac_compile") 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } && {
30536 test -z "$ac_c_werror_flag" ||
30537 test ! -s conftest.err
30538 } && test -s conftest.$ac_objext; then
30539 ac_cv_type_signal=int
30540else
30541 $as_echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
30544 ac_cv_type_signal=void
30545fi
30546
30547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30548fi
30549{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30550$as_echo "$ac_cv_type_signal" >&6; }
30551
30552cat >>confdefs.h <<_ACEOF
30553#define RETSIGTYPE $ac_cv_type_signal
30554_ACEOF
30555
30556
30557{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30558$as_echo_n "checking for working strtod... " >&6; }
30559if test "${ac_cv_func_strtod+set}" = set; then
30560 $as_echo_n "(cached) " >&6
30561else
30562 if test "$cross_compiling" = yes; then
30563 ac_cv_func_strtod=no
30564else
30565 cat >conftest.$ac_ext <<_ACEOF
30566/* confdefs.h. */
30567_ACEOF
30568cat confdefs.h >>conftest.$ac_ext
30569cat >>conftest.$ac_ext <<_ACEOF
30570/* end confdefs.h. */
30571
30572$ac_includes_default
30573#ifndef strtod
30574double strtod ();
30575#endif
30576int
30577main()
30578{
30579 {
30580 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30581 char *string = " +69";
30582 char *term;
30583 double value;
30584 value = strtod (string, &term);
30585 if (value != 69 || term != (string + 4))
30586 return 1;
30587 }
30588
30589 {
30590 /* Under Solaris 2.4, strtod returns the wrong value for the
30591 terminating character under some conditions. */
30592 char *string = "NaN";
30593 char *term;
30594 strtod (string, &term);
30595 if (term != string && *(term - 1) == 0)
30596 return 1;
30597 }
30598 return 0;
30599}
30600
30601_ACEOF
30602rm -f conftest$ac_exeext
30603if { (ac_try="$ac_link"
30604case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607esac
30608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30609$as_echo "$ac_try_echo") >&5
30610 (eval "$ac_link") 2>&5
30611 ac_status=$?
30612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30614 { (case "(($ac_try" in
30615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30616 *) ac_try_echo=$ac_try;;
30617esac
30618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30619$as_echo "$ac_try_echo") >&5
30620 (eval "$ac_try") 2>&5
30621 ac_status=$?
30622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
30624 ac_cv_func_strtod=yes
30625else
30626 $as_echo "$as_me: program exited with status $ac_status" >&5
30627$as_echo "$as_me: failed program was:" >&5
30628sed 's/^/| /' conftest.$ac_ext >&5
30629
30630( exit $ac_status )
30631ac_cv_func_strtod=no
30632fi
30633rm -rf conftest.dSYM
30634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30635fi
30636
30637
30638fi
30639{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30640$as_echo "$ac_cv_func_strtod" >&6; }
30641if test $ac_cv_func_strtod = no; then
30642 case " $LIBOBJS " in
30643 *" strtod.$ac_objext "* ) ;;
30644 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30645 ;;
30646esac
30647
30648{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30649$as_echo_n "checking for pow... " >&6; }
30650if test "${ac_cv_func_pow+set}" = set; then
30651 $as_echo_n "(cached) " >&6
30652else
30653 cat >conftest.$ac_ext <<_ACEOF
30654/* confdefs.h. */
30655_ACEOF
30656cat confdefs.h >>conftest.$ac_ext
30657cat >>conftest.$ac_ext <<_ACEOF
30658/* end confdefs.h. */
30659/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30661#define pow innocuous_pow
30662
30663/* System header to define __stub macros and hopefully few prototypes,
30664 which can conflict with char pow (); below.
30665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30666 <limits.h> exists even on freestanding compilers. */
30667
30668#ifdef __STDC__
30669# include <limits.h>
30670#else
30671# include <assert.h>
30672#endif
30673
30674#undef pow
30675
30676/* Override any GCC internal prototype to avoid an error.
30677 Use char because int might match the return type of a GCC
30678 builtin and then its argument prototype would still apply. */
30679#ifdef __cplusplus
30680extern "C"
30681#endif
30682char pow ();
30683/* The GNU C library defines this for functions which it implements
30684 to always fail with ENOSYS. Some functions are actually named
30685 something starting with __ and the normal name is an alias. */
30686#if defined __stub_pow || defined __stub___pow
30687choke me
30688#endif
30689
30690int
30691main ()
30692{
30693return pow ();
30694 ;
30695 return 0;
30696}
30697_ACEOF
30698rm -f conftest.$ac_objext conftest$ac_exeext
30699if { (ac_try="$ac_link"
30700case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30703esac
30704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30705$as_echo "$ac_try_echo") >&5
30706 (eval "$ac_link") 2>conftest.er1
30707 ac_status=$?
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
30711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } && {
30713 test -z "$ac_c_werror_flag" ||
30714 test ! -s conftest.err
30715 } && test -s conftest$ac_exeext && {
30716 test "$cross_compiling" = yes ||
30717 $as_test_x conftest$ac_exeext
30718 }; then
30719 ac_cv_func_pow=yes
30720else
30721 $as_echo "$as_me: failed program was:" >&5
30722sed 's/^/| /' conftest.$ac_ext >&5
30723
30724 ac_cv_func_pow=no
30725fi
30726
30727rm -rf conftest.dSYM
30728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30729 conftest$ac_exeext conftest.$ac_ext
30730fi
30731{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
30732$as_echo "$ac_cv_func_pow" >&6; }
30733
30734if test $ac_cv_func_pow = no; then
30735 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
30736$as_echo_n "checking for pow in -lm... " >&6; }
30737if test "${ac_cv_lib_m_pow+set}" = set; then
30738 $as_echo_n "(cached) " >&6
30739else
30740 ac_check_lib_save_LIBS=$LIBS
30741LIBS="-lm $LIBS"
30742cat >conftest.$ac_ext <<_ACEOF
30743/* confdefs.h. */
30744_ACEOF
30745cat confdefs.h >>conftest.$ac_ext
30746cat >>conftest.$ac_ext <<_ACEOF
30747/* end confdefs.h. */
30748
30749/* Override any GCC internal prototype to avoid an error.
30750 Use char because int might match the return type of a GCC
30751 builtin and then its argument prototype would still apply. */
30752#ifdef __cplusplus
30753extern "C"
30754#endif
30755char pow ();
30756int
30757main ()
30758{
30759return pow ();
30760 ;
30761 return 0;
30762}
30763_ACEOF
30764rm -f conftest.$ac_objext conftest$ac_exeext
30765if { (ac_try="$ac_link"
30766case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30769esac
30770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30771$as_echo "$ac_try_echo") >&5
30772 (eval "$ac_link") 2>conftest.er1
30773 ac_status=$?
30774 grep -v '^ *+' conftest.er1 >conftest.err
30775 rm -f conftest.er1
30776 cat conftest.err >&5
30777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); } && {
30779 test -z "$ac_c_werror_flag" ||
30780 test ! -s conftest.err
30781 } && test -s conftest$ac_exeext && {
30782 test "$cross_compiling" = yes ||
30783 $as_test_x conftest$ac_exeext
30784 }; then
30785 ac_cv_lib_m_pow=yes
30786else
30787 $as_echo "$as_me: failed program was:" >&5
30788sed 's/^/| /' conftest.$ac_ext >&5
30789
30790 ac_cv_lib_m_pow=no
30791fi
30792
30793rm -rf conftest.dSYM
30794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30795 conftest$ac_exeext conftest.$ac_ext
30796LIBS=$ac_check_lib_save_LIBS
30797fi
30798{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
30799$as_echo "$ac_cv_lib_m_pow" >&6; }
30800if test "x$ac_cv_lib_m_pow" = x""yes; then
30801 POW_LIB=-lm
30802else
30803 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
30804$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
30805fi
30806
30807fi
30808
30809fi
30810
30811
30812for ac_func in vprintf
30813do
30814as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30815{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30816$as_echo_n "checking for $ac_func... " >&6; }
30817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30818 $as_echo_n "(cached) " >&6
30819else
30820 cat >conftest.$ac_ext <<_ACEOF
30821/* confdefs.h. */
30822_ACEOF
30823cat confdefs.h >>conftest.$ac_ext
30824cat >>conftest.$ac_ext <<_ACEOF
30825/* end confdefs.h. */
30826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30828#define $ac_func innocuous_$ac_func
30829
30830/* System header to define __stub macros and hopefully few prototypes,
30831 which can conflict with char $ac_func (); below.
30832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30833 <limits.h> exists even on freestanding compilers. */
30834
30835#ifdef __STDC__
30836# include <limits.h>
30837#else
30838# include <assert.h>
30839#endif
30840
30841#undef $ac_func
30842
30843/* Override any GCC internal prototype to avoid an error.
30844 Use char because int might match the return type of a GCC
30845 builtin and then its argument prototype would still apply. */
30846#ifdef __cplusplus
30847extern "C"
30848#endif
30849char $ac_func ();
30850/* The GNU C library defines this for functions which it implements
30851 to always fail with ENOSYS. Some functions are actually named
30852 something starting with __ and the normal name is an alias. */
30853#if defined __stub_$ac_func || defined __stub___$ac_func
30854choke me
30855#endif
30856
30857int
30858main ()
30859{
30860return $ac_func ();
30861 ;
30862 return 0;
30863}
30864_ACEOF
30865rm -f conftest.$ac_objext conftest$ac_exeext
30866if { (ac_try="$ac_link"
30867case "(($ac_try" in
30868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30869 *) ac_try_echo=$ac_try;;
30870esac
30871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30872$as_echo "$ac_try_echo") >&5
30873 (eval "$ac_link") 2>conftest.er1
30874 ac_status=$?
30875 grep -v '^ *+' conftest.er1 >conftest.err
30876 rm -f conftest.er1
30877 cat conftest.err >&5
30878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } && {
30880 test -z "$ac_c_werror_flag" ||
30881 test ! -s conftest.err
30882 } && test -s conftest$ac_exeext && {
30883 test "$cross_compiling" = yes ||
30884 $as_test_x conftest$ac_exeext
30885 }; then
30886 eval "$as_ac_var=yes"
30887else
30888 $as_echo "$as_me: failed program was:" >&5
30889sed 's/^/| /' conftest.$ac_ext >&5
30890
30891 eval "$as_ac_var=no"
30892fi
30893
30894rm -rf conftest.dSYM
30895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30896 conftest$ac_exeext conftest.$ac_ext
30897fi
30898ac_res=`eval 'as_val=${'$as_ac_var'}
30899 $as_echo "$as_val"'`
30900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30901$as_echo "$ac_res" >&6; }
30902as_val=`eval 'as_val=${'$as_ac_var'}
30903 $as_echo "$as_val"'`
30904 if test "x$as_val" = x""yes; then
30905 cat >>confdefs.h <<_ACEOF
30906#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30907_ACEOF
30908
30909{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
30910$as_echo_n "checking for _doprnt... " >&6; }
30911if test "${ac_cv_func__doprnt+set}" = set; then
30912 $as_echo_n "(cached) " >&6
30913else
30914 cat >conftest.$ac_ext <<_ACEOF
30915/* confdefs.h. */
30916_ACEOF
30917cat confdefs.h >>conftest.$ac_ext
30918cat >>conftest.$ac_ext <<_ACEOF
30919/* end confdefs.h. */
30920/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
30921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30922#define _doprnt innocuous__doprnt
30923
30924/* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char _doprnt (); below.
30926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30927 <limits.h> exists even on freestanding compilers. */
30928
30929#ifdef __STDC__
30930# include <limits.h>
30931#else
30932# include <assert.h>
30933#endif
30934
30935#undef _doprnt
30936
30937/* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
30940#ifdef __cplusplus
30941extern "C"
30942#endif
30943char _doprnt ();
30944/* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
30947#if defined __stub__doprnt || defined __stub____doprnt
30948choke me
30949#endif
30950
30951int
30952main ()
30953{
30954return _doprnt ();
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959rm -f conftest.$ac_objext conftest$ac_exeext
30960if { (ac_try="$ac_link"
30961case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964esac
30965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30966$as_echo "$ac_try_echo") >&5
30967 (eval "$ac_link") 2>conftest.er1
30968 ac_status=$?
30969 grep -v '^ *+' conftest.er1 >conftest.err
30970 rm -f conftest.er1
30971 cat conftest.err >&5
30972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); } && {
30974 test -z "$ac_c_werror_flag" ||
30975 test ! -s conftest.err
30976 } && test -s conftest$ac_exeext && {
30977 test "$cross_compiling" = yes ||
30978 $as_test_x conftest$ac_exeext
30979 }; then
30980 ac_cv_func__doprnt=yes
30981else
30982 $as_echo "$as_me: failed program was:" >&5
30983sed 's/^/| /' conftest.$ac_ext >&5
30984
30985 ac_cv_func__doprnt=no
30986fi
30987
30988rm -rf conftest.dSYM
30989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30990 conftest$ac_exeext conftest.$ac_ext
30991fi
30992{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
30993$as_echo "$ac_cv_func__doprnt" >&6; }
30994if test "x$ac_cv_func__doprnt" = x""yes; then
30995
30996cat >>confdefs.h <<\_ACEOF
30997#define HAVE_DOPRNT 1
30998_ACEOF
30999
31000fi
31001
31002fi
31003done
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
cristye43a45e2009-09-28 14:49:00 +000031082for 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 +000031083do
31084as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31085{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31086$as_echo_n "checking for $ac_func... " >&6; }
31087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31088 $as_echo_n "(cached) " >&6
31089else
31090 cat >conftest.$ac_ext <<_ACEOF
31091/* confdefs.h. */
31092_ACEOF
31093cat confdefs.h >>conftest.$ac_ext
31094cat >>conftest.$ac_ext <<_ACEOF
31095/* end confdefs.h. */
31096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31098#define $ac_func innocuous_$ac_func
31099
31100/* System header to define __stub macros and hopefully few prototypes,
31101 which can conflict with char $ac_func (); below.
31102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31103 <limits.h> exists even on freestanding compilers. */
31104
31105#ifdef __STDC__
31106# include <limits.h>
31107#else
31108# include <assert.h>
31109#endif
31110
31111#undef $ac_func
31112
31113/* Override any GCC internal prototype to avoid an error.
31114 Use char because int might match the return type of a GCC
31115 builtin and then its argument prototype would still apply. */
31116#ifdef __cplusplus
31117extern "C"
31118#endif
31119char $ac_func ();
31120/* The GNU C library defines this for functions which it implements
31121 to always fail with ENOSYS. Some functions are actually named
31122 something starting with __ and the normal name is an alias. */
31123#if defined __stub_$ac_func || defined __stub___$ac_func
31124choke me
31125#endif
31126
31127int
31128main ()
31129{
31130return $ac_func ();
31131 ;
31132 return 0;
31133}
31134_ACEOF
31135rm -f conftest.$ac_objext conftest$ac_exeext
31136if { (ac_try="$ac_link"
31137case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140esac
31141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31142$as_echo "$ac_try_echo") >&5
31143 (eval "$ac_link") 2>conftest.er1
31144 ac_status=$?
31145 grep -v '^ *+' conftest.er1 >conftest.err
31146 rm -f conftest.er1
31147 cat conftest.err >&5
31148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); } && {
31150 test -z "$ac_c_werror_flag" ||
31151 test ! -s conftest.err
31152 } && test -s conftest$ac_exeext && {
31153 test "$cross_compiling" = yes ||
31154 $as_test_x conftest$ac_exeext
31155 }; then
31156 eval "$as_ac_var=yes"
31157else
31158 $as_echo "$as_me: failed program was:" >&5
31159sed 's/^/| /' conftest.$ac_ext >&5
31160
31161 eval "$as_ac_var=no"
31162fi
31163
31164rm -rf conftest.dSYM
31165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31166 conftest$ac_exeext conftest.$ac_ext
31167fi
31168ac_res=`eval 'as_val=${'$as_ac_var'}
31169 $as_echo "$as_val"'`
31170 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31171$as_echo "$ac_res" >&6; }
31172as_val=`eval 'as_val=${'$as_ac_var'}
31173 $as_echo "$as_val"'`
31174 if test "x$as_val" = x""yes; then
31175 cat >>confdefs.h <<_ACEOF
31176#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31177_ACEOF
31178
31179fi
31180done
31181
31182
cristye43a45e2009-09-28 14:49:00 +000031183#
31184# Check for clock_gettime().
31185#
31186{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31187$as_echo_n "checking for library containing clock_gettime... " >&6; }
31188if test "${ac_cv_search_clock_gettime+set}" = set; then
31189 $as_echo_n "(cached) " >&6
31190else
31191 ac_func_search_save_LIBS=$LIBS
31192cat >conftest.$ac_ext <<_ACEOF
31193/* confdefs.h. */
31194_ACEOF
31195cat confdefs.h >>conftest.$ac_ext
31196cat >>conftest.$ac_ext <<_ACEOF
31197/* end confdefs.h. */
31198
31199/* Override any GCC internal prototype to avoid an error.
31200 Use char because int might match the return type of a GCC
31201 builtin and then its argument prototype would still apply. */
31202#ifdef __cplusplus
31203extern "C"
31204#endif
31205char clock_gettime ();
31206int
31207main ()
31208{
31209return clock_gettime ();
31210 ;
31211 return 0;
31212}
31213_ACEOF
31214for ac_lib in '' rt; do
31215 if test -z "$ac_lib"; then
31216 ac_res="none required"
31217 else
31218 ac_res=-l$ac_lib
31219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31220 fi
31221 rm -f conftest.$ac_objext conftest$ac_exeext
31222if { (ac_try="$ac_link"
31223case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31228$as_echo "$ac_try_echo") >&5
31229 (eval "$ac_link") 2>conftest.er1
31230 ac_status=$?
31231 grep -v '^ *+' conftest.er1 >conftest.err
31232 rm -f conftest.er1
31233 cat conftest.err >&5
31234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); } && {
31236 test -z "$ac_c_werror_flag" ||
31237 test ! -s conftest.err
31238 } && test -s conftest$ac_exeext && {
31239 test "$cross_compiling" = yes ||
31240 $as_test_x conftest$ac_exeext
31241 }; then
31242 ac_cv_search_clock_gettime=$ac_res
31243else
31244 $as_echo "$as_me: failed program was:" >&5
31245sed 's/^/| /' conftest.$ac_ext >&5
31246
31247
31248fi
31249
31250rm -rf conftest.dSYM
31251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31252 conftest$ac_exeext
31253 if test "${ac_cv_search_clock_gettime+set}" = set; then
31254 break
31255fi
31256done
31257if test "${ac_cv_search_clock_gettime+set}" = set; then
31258 :
31259else
31260 ac_cv_search_clock_gettime=no
31261fi
31262rm conftest.$ac_ext
31263LIBS=$ac_func_search_save_LIBS
31264fi
31265{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31266$as_echo "$ac_cv_search_clock_gettime" >&6; }
31267ac_res=$ac_cv_search_clock_gettime
31268if test "$ac_res" != no; then
31269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31270
31271
31272cat >>confdefs.h <<\_ACEOF
31273#define HAVE_CLOCK_GETTIME 1
31274_ACEOF
31275
cristyc1c61662009-09-30 14:04:37 +000031276 { $as_echo "$as_me:$LINENO: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000031277$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristyc1c61662009-09-30 14:04:37 +000031278 cat >conftest.$ac_ext <<_ACEOF
cristye43a45e2009-09-28 14:49:00 +000031279/* confdefs.h. */
31280_ACEOF
31281cat confdefs.h >>conftest.$ac_ext
31282cat >>conftest.$ac_ext <<_ACEOF
31283/* end confdefs.h. */
31284#include <time.h>
31285int
31286main ()
31287{
31288clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000031289 ;
31290 return 0;
31291}
31292_ACEOF
31293rm -f conftest.$ac_objext
31294if { (ac_try="$ac_compile"
31295case "(($ac_try" in
31296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297 *) ac_try_echo=$ac_try;;
31298esac
31299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31300$as_echo "$ac_try_echo") >&5
31301 (eval "$ac_compile") 2>conftest.er1
31302 ac_status=$?
31303 grep -v '^ *+' conftest.er1 >conftest.err
31304 rm -f conftest.er1
31305 cat conftest.err >&5
31306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } && {
31308 test -z "$ac_c_werror_flag" ||
31309 test ! -s conftest.err
31310 } && test -s conftest.$ac_objext; then
31311
31312 { $as_echo "$as_me:$LINENO: result: yes" >&5
31313$as_echo "yes" >&6; }
31314
31315cat >>confdefs.h <<\_ACEOF
31316#define HAVE_CLOCK_REALTIME 1
31317_ACEOF
31318
31319
31320else
31321 $as_echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324 { $as_echo "$as_me:$LINENO: result: no" >&5
31325$as_echo "no" >&6; }
31326
31327fi
31328
31329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31330
31331else
31332
31333
31334
31335for ac_func in gettimeofday ftime
31336do
31337as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31338{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31339$as_echo_n "checking for $ac_func... " >&6; }
31340if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31341 $as_echo_n "(cached) " >&6
31342else
31343 cat >conftest.$ac_ext <<_ACEOF
31344/* confdefs.h. */
31345_ACEOF
31346cat confdefs.h >>conftest.$ac_ext
31347cat >>conftest.$ac_ext <<_ACEOF
31348/* end confdefs.h. */
31349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31351#define $ac_func innocuous_$ac_func
31352
31353/* System header to define __stub macros and hopefully few prototypes,
31354 which can conflict with char $ac_func (); below.
31355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31356 <limits.h> exists even on freestanding compilers. */
31357
31358#ifdef __STDC__
31359# include <limits.h>
31360#else
31361# include <assert.h>
31362#endif
31363
31364#undef $ac_func
31365
31366/* Override any GCC internal prototype to avoid an error.
31367 Use char because int might match the return type of a GCC
31368 builtin and then its argument prototype would still apply. */
31369#ifdef __cplusplus
31370extern "C"
31371#endif
31372char $ac_func ();
31373/* The GNU C library defines this for functions which it implements
31374 to always fail with ENOSYS. Some functions are actually named
31375 something starting with __ and the normal name is an alias. */
31376#if defined __stub_$ac_func || defined __stub___$ac_func
31377choke me
31378#endif
31379
31380int
31381main ()
31382{
31383return $ac_func ();
31384 ;
31385 return 0;
31386}
31387_ACEOF
31388rm -f conftest.$ac_objext conftest$ac_exeext
31389if { (ac_try="$ac_link"
31390case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393esac
31394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31395$as_echo "$ac_try_echo") >&5
31396 (eval "$ac_link") 2>conftest.er1
31397 ac_status=$?
31398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
31401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } && {
31403 test -z "$ac_c_werror_flag" ||
31404 test ! -s conftest.err
31405 } && test -s conftest$ac_exeext && {
31406 test "$cross_compiling" = yes ||
31407 $as_test_x conftest$ac_exeext
31408 }; then
31409 eval "$as_ac_var=yes"
31410else
31411 $as_echo "$as_me: failed program was:" >&5
31412sed 's/^/| /' conftest.$ac_ext >&5
31413
31414 eval "$as_ac_var=no"
31415fi
31416
31417rm -rf conftest.dSYM
31418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31419 conftest$ac_exeext conftest.$ac_ext
31420fi
31421ac_res=`eval 'as_val=${'$as_ac_var'}
31422 $as_echo "$as_val"'`
31423 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31424$as_echo "$ac_res" >&6; }
31425as_val=`eval 'as_val=${'$as_ac_var'}
31426 $as_echo "$as_val"'`
31427 if test "x$as_val" = x""yes; then
31428 cat >>confdefs.h <<_ACEOF
31429#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31430_ACEOF
31431 break
31432fi
31433done
31434
31435
31436
31437fi
31438
31439
cristy3ed852e2009-09-05 21:47:34 +000031440########
31441#
31442# Check for function prototypes
31443#
31444########
31445
31446{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
31447$as_echo_n "checking whether pread is declared... " >&6; }
31448if test "${ac_cv_have_decl_pread+set}" = set; then
31449 $as_echo_n "(cached) " >&6
31450else
31451 cat >conftest.$ac_ext <<_ACEOF
31452/* confdefs.h. */
31453_ACEOF
31454cat confdefs.h >>conftest.$ac_ext
31455cat >>conftest.$ac_ext <<_ACEOF
31456/* end confdefs.h. */
31457
31458#include <unistd.h>
31459
31460int
31461main ()
31462{
31463#ifndef pread
31464 (void) pread;
31465#endif
31466
31467 ;
31468 return 0;
31469}
31470_ACEOF
31471rm -f conftest.$ac_objext
31472if { (ac_try="$ac_compile"
31473case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31476esac
31477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31478$as_echo "$ac_try_echo") >&5
31479 (eval "$ac_compile") 2>conftest.er1
31480 ac_status=$?
31481 grep -v '^ *+' conftest.er1 >conftest.err
31482 rm -f conftest.er1
31483 cat conftest.err >&5
31484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); } && {
31486 test -z "$ac_c_werror_flag" ||
31487 test ! -s conftest.err
31488 } && test -s conftest.$ac_objext; then
31489 ac_cv_have_decl_pread=yes
31490else
31491 $as_echo "$as_me: failed program was:" >&5
31492sed 's/^/| /' conftest.$ac_ext >&5
31493
31494 ac_cv_have_decl_pread=no
31495fi
31496
31497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31498fi
31499{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
31500$as_echo "$ac_cv_have_decl_pread" >&6; }
31501if test "x$ac_cv_have_decl_pread" = x""yes; then
31502
31503cat >>confdefs.h <<_ACEOF
31504#define HAVE_DECL_PREAD 1
31505_ACEOF
31506
31507
31508else
31509 cat >>confdefs.h <<_ACEOF
31510#define HAVE_DECL_PREAD 0
31511_ACEOF
31512
31513
31514fi
31515{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
31516$as_echo_n "checking whether pwrite is declared... " >&6; }
31517if test "${ac_cv_have_decl_pwrite+set}" = set; then
31518 $as_echo_n "(cached) " >&6
31519else
31520 cat >conftest.$ac_ext <<_ACEOF
31521/* confdefs.h. */
31522_ACEOF
31523cat confdefs.h >>conftest.$ac_ext
31524cat >>conftest.$ac_ext <<_ACEOF
31525/* end confdefs.h. */
31526
31527#include <unistd.h>
31528
31529int
31530main ()
31531{
31532#ifndef pwrite
31533 (void) pwrite;
31534#endif
31535
31536 ;
31537 return 0;
31538}
31539_ACEOF
31540rm -f conftest.$ac_objext
31541if { (ac_try="$ac_compile"
31542case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31545esac
31546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31547$as_echo "$ac_try_echo") >&5
31548 (eval "$ac_compile") 2>conftest.er1
31549 ac_status=$?
31550 grep -v '^ *+' conftest.er1 >conftest.err
31551 rm -f conftest.er1
31552 cat conftest.err >&5
31553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); } && {
31555 test -z "$ac_c_werror_flag" ||
31556 test ! -s conftest.err
31557 } && test -s conftest.$ac_objext; then
31558 ac_cv_have_decl_pwrite=yes
31559else
31560 $as_echo "$as_me: failed program was:" >&5
31561sed 's/^/| /' conftest.$ac_ext >&5
31562
31563 ac_cv_have_decl_pwrite=no
31564fi
31565
31566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31567fi
31568{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
31569$as_echo "$ac_cv_have_decl_pwrite" >&6; }
31570if test "x$ac_cv_have_decl_pwrite" = x""yes; then
31571
31572cat >>confdefs.h <<_ACEOF
31573#define HAVE_DECL_PWRITE 1
31574_ACEOF
31575
31576
31577else
31578 cat >>confdefs.h <<_ACEOF
31579#define HAVE_DECL_PWRITE 0
31580_ACEOF
31581
31582
31583fi
31584
31585
31586
31587{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
31588$as_echo_n "checking whether strlcpy is declared... " >&6; }
31589if test "${ac_cv_have_decl_strlcpy+set}" = set; then
31590 $as_echo_n "(cached) " >&6
31591else
31592 cat >conftest.$ac_ext <<_ACEOF
31593/* confdefs.h. */
31594_ACEOF
31595cat confdefs.h >>conftest.$ac_ext
31596cat >>conftest.$ac_ext <<_ACEOF
31597/* end confdefs.h. */
31598
31599#include <strings.h>
31600
31601int
31602main ()
31603{
31604#ifndef strlcpy
31605 (void) strlcpy;
31606#endif
31607
31608 ;
31609 return 0;
31610}
31611_ACEOF
31612rm -f conftest.$ac_objext
31613if { (ac_try="$ac_compile"
31614case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617esac
31618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31619$as_echo "$ac_try_echo") >&5
31620 (eval "$ac_compile") 2>conftest.er1
31621 ac_status=$?
31622 grep -v '^ *+' conftest.er1 >conftest.err
31623 rm -f conftest.er1
31624 cat conftest.err >&5
31625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); } && {
31627 test -z "$ac_c_werror_flag" ||
31628 test ! -s conftest.err
31629 } && test -s conftest.$ac_objext; then
31630 ac_cv_have_decl_strlcpy=yes
31631else
31632 $as_echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
31635 ac_cv_have_decl_strlcpy=no
31636fi
31637
31638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31639fi
31640{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
31641$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
31642if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
31643
31644cat >>confdefs.h <<_ACEOF
31645#define HAVE_DECL_STRLCPY 1
31646_ACEOF
31647
31648
31649else
31650 cat >>confdefs.h <<_ACEOF
31651#define HAVE_DECL_STRLCPY 0
31652_ACEOF
31653
31654
31655fi
31656
31657
31658
31659{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
31660$as_echo_n "checking whether vsnprintf is declared... " >&6; }
31661if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
31662 $as_echo_n "(cached) " >&6
31663else
31664 cat >conftest.$ac_ext <<_ACEOF
31665/* confdefs.h. */
31666_ACEOF
31667cat confdefs.h >>conftest.$ac_ext
31668cat >>conftest.$ac_ext <<_ACEOF
31669/* end confdefs.h. */
31670
31671#include <stdio.h>
31672#include <stdarg.h>
31673
31674int
31675main ()
31676{
31677#ifndef vsnprintf
31678 (void) vsnprintf;
31679#endif
31680
31681 ;
31682 return 0;
31683}
31684_ACEOF
31685rm -f conftest.$ac_objext
31686if { (ac_try="$ac_compile"
31687case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31690esac
31691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31692$as_echo "$ac_try_echo") >&5
31693 (eval "$ac_compile") 2>conftest.er1
31694 ac_status=$?
31695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
31698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } && {
31700 test -z "$ac_c_werror_flag" ||
31701 test ! -s conftest.err
31702 } && test -s conftest.$ac_objext; then
31703 ac_cv_have_decl_vsnprintf=yes
31704else
31705 $as_echo "$as_me: failed program was:" >&5
31706sed 's/^/| /' conftest.$ac_ext >&5
31707
31708 ac_cv_have_decl_vsnprintf=no
31709fi
31710
31711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31712fi
31713{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
31714$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
31715if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
31716
31717cat >>confdefs.h <<_ACEOF
31718#define HAVE_DECL_VSNPRINTF 1
31719_ACEOF
31720
31721
31722else
31723 cat >>confdefs.h <<_ACEOF
31724#define HAVE_DECL_VSNPRINTF 0
31725_ACEOF
31726
31727
31728fi
31729
31730
31731
31732########
31733#
31734# C++ Support Tests (For Magick++)
31735#
31736########
31737have_magick_plus_plus='no'
31738if test "$with_magick_plus_plus" = 'yes'; then
31739 OLIBS="$LIBS"
31740 LIBS=''
31741 ac_ext=cpp
31742ac_cpp='$CXXCPP $CPPFLAGS'
31743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31746
31747
31748 # Full set of headers used...
31749 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
31750 # functional iomanip iosfwd iostream iterator list string strstream utility
31751 ac_ext=cpp
31752ac_cpp='$CXXCPP $CPPFLAGS'
31753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31756
31757 ac_ext=cpp
31758ac_cpp='$CXXCPP $CPPFLAGS'
31759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31762if test -z "$CXX"; then
31763 if test -n "$CCC"; then
31764 CXX=$CCC
31765 else
31766 if test -n "$ac_tool_prefix"; then
31767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31768 do
31769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31771{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31772$as_echo_n "checking for $ac_word... " >&6; }
31773if test "${ac_cv_prog_CXX+set}" = set; then
31774 $as_echo_n "(cached) " >&6
31775else
31776 if test -n "$CXX"; then
31777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
31778else
31779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31780for as_dir in $PATH
31781do
31782 IFS=$as_save_IFS
31783 test -z "$as_dir" && as_dir=.
31784 for ac_exec_ext in '' $ac_executable_extensions; do
31785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
31787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31788 break 2
31789 fi
31790done
31791done
31792IFS=$as_save_IFS
31793
31794fi
31795fi
31796CXX=$ac_cv_prog_CXX
31797if test -n "$CXX"; then
31798 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
31799$as_echo "$CXX" >&6; }
31800else
31801 { $as_echo "$as_me:$LINENO: result: no" >&5
31802$as_echo "no" >&6; }
31803fi
31804
31805
31806 test -n "$CXX" && break
31807 done
31808fi
31809if test -z "$CXX"; then
31810 ac_ct_CXX=$CXX
31811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31812do
31813 # Extract the first word of "$ac_prog", so it can be a program name with args.
31814set dummy $ac_prog; ac_word=$2
31815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31816$as_echo_n "checking for $ac_word... " >&6; }
31817if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
31818 $as_echo_n "(cached) " >&6
31819else
31820 if test -n "$ac_ct_CXX"; then
31821 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31822else
31823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31824for as_dir in $PATH
31825do
31826 IFS=$as_save_IFS
31827 test -z "$as_dir" && as_dir=.
31828 for ac_exec_ext in '' $ac_executable_extensions; do
31829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31830 ac_cv_prog_ac_ct_CXX="$ac_prog"
31831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31832 break 2
31833 fi
31834done
31835done
31836IFS=$as_save_IFS
31837
31838fi
31839fi
31840ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
31841if test -n "$ac_ct_CXX"; then
31842 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
31843$as_echo "$ac_ct_CXX" >&6; }
31844else
31845 { $as_echo "$as_me:$LINENO: result: no" >&5
31846$as_echo "no" >&6; }
31847fi
31848
31849
31850 test -n "$ac_ct_CXX" && break
31851done
31852
31853 if test "x$ac_ct_CXX" = x; then
31854 CXX="g++"
31855 else
31856 case $cross_compiling:$ac_tool_warned in
31857yes:)
31858{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31860ac_tool_warned=yes ;;
31861esac
31862 CXX=$ac_ct_CXX
31863 fi
31864fi
31865
31866 fi
31867fi
31868# Provide some information about the compiler.
31869$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
31870set X $ac_compile
31871ac_compiler=$2
31872{ (ac_try="$ac_compiler --version >&5"
31873case "(($ac_try" in
31874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875 *) ac_try_echo=$ac_try;;
31876esac
31877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31878$as_echo "$ac_try_echo") >&5
31879 (eval "$ac_compiler --version >&5") 2>&5
31880 ac_status=$?
31881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); }
31883{ (ac_try="$ac_compiler -v >&5"
31884case "(($ac_try" in
31885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31886 *) ac_try_echo=$ac_try;;
31887esac
31888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31889$as_echo "$ac_try_echo") >&5
31890 (eval "$ac_compiler -v >&5") 2>&5
31891 ac_status=$?
31892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }
31894{ (ac_try="$ac_compiler -V >&5"
31895case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898esac
31899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31900$as_echo "$ac_try_echo") >&5
31901 (eval "$ac_compiler -V >&5") 2>&5
31902 ac_status=$?
31903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }
31905
31906{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
31907$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
31908if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
31909 $as_echo_n "(cached) " >&6
31910else
31911 cat >conftest.$ac_ext <<_ACEOF
31912/* confdefs.h. */
31913_ACEOF
31914cat confdefs.h >>conftest.$ac_ext
31915cat >>conftest.$ac_ext <<_ACEOF
31916/* end confdefs.h. */
31917
31918int
31919main ()
31920{
31921#ifndef __GNUC__
31922 choke me
31923#endif
31924
31925 ;
31926 return 0;
31927}
31928_ACEOF
31929rm -f conftest.$ac_objext
31930if { (ac_try="$ac_compile"
31931case "(($ac_try" in
31932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933 *) ac_try_echo=$ac_try;;
31934esac
31935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31936$as_echo "$ac_try_echo") >&5
31937 (eval "$ac_compile") 2>conftest.er1
31938 ac_status=$?
31939 grep -v '^ *+' conftest.er1 >conftest.err
31940 rm -f conftest.er1
31941 cat conftest.err >&5
31942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); } && {
31944 test -z "$ac_cxx_werror_flag" ||
31945 test ! -s conftest.err
31946 } && test -s conftest.$ac_objext; then
31947 ac_compiler_gnu=yes
31948else
31949 $as_echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952 ac_compiler_gnu=no
31953fi
31954
31955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31956ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
31957
31958fi
31959{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
31960$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
31961if test $ac_compiler_gnu = yes; then
31962 GXX=yes
31963else
31964 GXX=
31965fi
31966ac_test_CXXFLAGS=${CXXFLAGS+set}
31967ac_save_CXXFLAGS=$CXXFLAGS
31968{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
31969$as_echo_n "checking whether $CXX accepts -g... " >&6; }
31970if test "${ac_cv_prog_cxx_g+set}" = set; then
31971 $as_echo_n "(cached) " >&6
31972else
31973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
31974 ac_cxx_werror_flag=yes
31975 ac_cv_prog_cxx_g=no
31976 CXXFLAGS="-g"
31977 cat >conftest.$ac_ext <<_ACEOF
31978/* confdefs.h. */
31979_ACEOF
31980cat confdefs.h >>conftest.$ac_ext
31981cat >>conftest.$ac_ext <<_ACEOF
31982/* end confdefs.h. */
31983
31984int
31985main ()
31986{
31987
31988 ;
31989 return 0;
31990}
31991_ACEOF
31992rm -f conftest.$ac_objext
31993if { (ac_try="$ac_compile"
31994case "(($ac_try" in
31995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996 *) ac_try_echo=$ac_try;;
31997esac
31998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31999$as_echo "$ac_try_echo") >&5
32000 (eval "$ac_compile") 2>conftest.er1
32001 ac_status=$?
32002 grep -v '^ *+' conftest.er1 >conftest.err
32003 rm -f conftest.er1
32004 cat conftest.err >&5
32005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } && {
32007 test -z "$ac_cxx_werror_flag" ||
32008 test ! -s conftest.err
32009 } && test -s conftest.$ac_objext; then
32010 ac_cv_prog_cxx_g=yes
32011else
32012 $as_echo "$as_me: failed program was:" >&5
32013sed 's/^/| /' conftest.$ac_ext >&5
32014
32015 CXXFLAGS=""
32016 cat >conftest.$ac_ext <<_ACEOF
32017/* confdefs.h. */
32018_ACEOF
32019cat confdefs.h >>conftest.$ac_ext
32020cat >>conftest.$ac_ext <<_ACEOF
32021/* end confdefs.h. */
32022
32023int
32024main ()
32025{
32026
32027 ;
32028 return 0;
32029}
32030_ACEOF
32031rm -f conftest.$ac_objext
32032if { (ac_try="$ac_compile"
32033case "(($ac_try" in
32034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32035 *) ac_try_echo=$ac_try;;
32036esac
32037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32038$as_echo "$ac_try_echo") >&5
32039 (eval "$ac_compile") 2>conftest.er1
32040 ac_status=$?
32041 grep -v '^ *+' conftest.er1 >conftest.err
32042 rm -f conftest.er1
32043 cat conftest.err >&5
32044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); } && {
32046 test -z "$ac_cxx_werror_flag" ||
32047 test ! -s conftest.err
32048 } && test -s conftest.$ac_objext; then
32049 :
32050else
32051 $as_echo "$as_me: failed program was:" >&5
32052sed 's/^/| /' conftest.$ac_ext >&5
32053
32054 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32055 CXXFLAGS="-g"
32056 cat >conftest.$ac_ext <<_ACEOF
32057/* confdefs.h. */
32058_ACEOF
32059cat confdefs.h >>conftest.$ac_ext
32060cat >>conftest.$ac_ext <<_ACEOF
32061/* end confdefs.h. */
32062
32063int
32064main ()
32065{
32066
32067 ;
32068 return 0;
32069}
32070_ACEOF
32071rm -f conftest.$ac_objext
32072if { (ac_try="$ac_compile"
32073case "(($ac_try" in
32074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32075 *) ac_try_echo=$ac_try;;
32076esac
32077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32078$as_echo "$ac_try_echo") >&5
32079 (eval "$ac_compile") 2>conftest.er1
32080 ac_status=$?
32081 grep -v '^ *+' conftest.er1 >conftest.err
32082 rm -f conftest.er1
32083 cat conftest.err >&5
32084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); } && {
32086 test -z "$ac_cxx_werror_flag" ||
32087 test ! -s conftest.err
32088 } && test -s conftest.$ac_objext; then
32089 ac_cv_prog_cxx_g=yes
32090else
32091 $as_echo "$as_me: failed program was:" >&5
32092sed 's/^/| /' conftest.$ac_ext >&5
32093
32094
32095fi
32096
32097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32098fi
32099
32100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32101fi
32102
32103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32105fi
32106{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
32107$as_echo "$ac_cv_prog_cxx_g" >&6; }
32108if test "$ac_test_CXXFLAGS" = set; then
32109 CXXFLAGS=$ac_save_CXXFLAGS
32110elif test $ac_cv_prog_cxx_g = yes; then
32111 if test "$GXX" = yes; then
32112 CXXFLAGS="-g -O2"
32113 else
32114 CXXFLAGS="-g"
32115 fi
32116else
32117 if test "$GXX" = yes; then
32118 CXXFLAGS="-O2"
32119 else
32120 CXXFLAGS=
32121 fi
32122fi
32123ac_ext=cpp
32124ac_cpp='$CXXCPP $CPPFLAGS'
32125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32128
32129depcc="$CXX" am_compiler_list=
32130
32131{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32132$as_echo_n "checking dependency style of $depcc... " >&6; }
32133if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
32134 $as_echo_n "(cached) " >&6
32135else
32136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32137 # We make a subdir and do the tests there. Otherwise we can end up
32138 # making bogus files that we don't know about and never remove. For
32139 # instance it was reported that on HP-UX the gcc test will end up
32140 # making a dummy file named `D' -- because `-MD' means `put the output
32141 # in D'.
32142 mkdir conftest.dir
32143 # Copy depcomp to subdir because otherwise we won't find it if we're
32144 # using a relative directory.
32145 cp "$am_depcomp" conftest.dir
32146 cd conftest.dir
32147 # We will build objects and dependencies in a subdirectory because
32148 # it helps to detect inapplicable dependency modes. For instance
32149 # both Tru64's cc and ICC support -MD to output dependencies as a
32150 # side effect of compilation, but ICC will put the dependencies in
32151 # the current directory while Tru64 will put them in the object
32152 # directory.
32153 mkdir sub
32154
32155 am_cv_CXX_dependencies_compiler_type=none
32156 if test "$am_compiler_list" = ""; then
32157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32158 fi
32159 am__universal=false
32160 case " $depcc " in #(
32161 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32162 esac
32163
32164 for depmode in $am_compiler_list; do
32165 # Setup a source with many dependencies, because some compilers
32166 # like to wrap large dependency lists on column 80 (with \), and
32167 # we should not choose a depcomp mode which is confused by this.
32168 #
32169 # We need to recreate these files for each test, as the compiler may
32170 # overwrite some of them when testing with obscure command lines.
32171 # This happens at least with the AIX C compiler.
32172 : > sub/conftest.c
32173 for i in 1 2 3 4 5 6; do
32174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
32176 # Solaris 8's {/usr,}/bin/sh.
32177 touch sub/conftst$i.h
32178 done
32179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32180
32181 # We check with `-c' and `-o' for the sake of the "dashmstdout"
32182 # mode. It turns out that the SunPro C++ compiler does not properly
32183 # handle `-M -o', and we need to detect this. Also, some Intel
32184 # versions had trouble with output in subdirs
32185 am__obj=sub/conftest.${OBJEXT-o}
32186 am__minus_obj="-o $am__obj"
32187 case $depmode in
32188 gcc)
32189 # This depmode causes a compiler race in universal mode.
32190 test "$am__universal" = false || continue
32191 ;;
32192 nosideeffect)
32193 # after this tag, mechanisms are not by side-effect, so they'll
32194 # only be used when explicitly requested
32195 if test "x$enable_dependency_tracking" = xyes; then
32196 continue
32197 else
32198 break
32199 fi
32200 ;;
32201 msvisualcpp | msvcmsys)
32202 # This compiler won't grok `-c -o', but also, the minuso test has
32203 # not run yet. These depmodes are late enough in the game, and
32204 # so weak that their functioning should not be impacted.
32205 am__obj=conftest.${OBJEXT-o}
32206 am__minus_obj=
32207 ;;
32208 none) break ;;
32209 esac
32210 if depmode=$depmode \
32211 source=sub/conftest.c object=$am__obj \
32212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32214 >/dev/null 2>conftest.err &&
32215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32219 # icc doesn't choke on unknown options, it will just issue warnings
32220 # or remarks (even with -Werror). So we grep stderr for any message
32221 # that says an option was ignored or not supported.
32222 # When given -MP, icc 7.0 and 7.1 complain thusly:
32223 # icc: Command line warning: ignoring option '-M'; no argument required
32224 # The diagnosis changed in icc 8.0:
32225 # icc: Command line remark: option '-MP' not supported
32226 if (grep 'ignoring option' conftest.err ||
32227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32228 am_cv_CXX_dependencies_compiler_type=$depmode
32229 break
32230 fi
32231 fi
32232 done
32233
32234 cd ..
32235 rm -rf conftest.dir
32236else
32237 am_cv_CXX_dependencies_compiler_type=none
32238fi
32239
32240fi
32241{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
32242$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32243CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32244
32245 if
32246 test "x$enable_dependency_tracking" != xno \
32247 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32248 am__fastdepCXX_TRUE=
32249 am__fastdepCXX_FALSE='#'
32250else
32251 am__fastdepCXX_TRUE='#'
32252 am__fastdepCXX_FALSE=
32253fi
32254
32255
32256 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
32257$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
32258if test "${ac_cv_cxx_have_bool+set}" = set; then
32259 $as_echo_n "(cached) " >&6
32260else
32261
32262 ac_ext=cpp
32263ac_cpp='$CXXCPP $CPPFLAGS'
32264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32267
32268 cat >conftest.$ac_ext <<_ACEOF
32269/* confdefs.h. */
32270_ACEOF
32271cat confdefs.h >>conftest.$ac_ext
32272cat >>conftest.$ac_ext <<_ACEOF
32273/* end confdefs.h. */
32274
32275int f(int x){return 1;}
32276int f(char x){return 1;}
32277int f(bool x){return 1;}
32278
32279int
32280main ()
32281{
32282bool b = true; return f(b);
32283 ;
32284 return 0;
32285}
32286_ACEOF
32287rm -f conftest.$ac_objext
32288if { (ac_try="$ac_compile"
32289case "(($ac_try" in
32290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291 *) ac_try_echo=$ac_try;;
32292esac
32293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32294$as_echo "$ac_try_echo") >&5
32295 (eval "$ac_compile") 2>conftest.er1
32296 ac_status=$?
32297 grep -v '^ *+' conftest.er1 >conftest.err
32298 rm -f conftest.er1
32299 cat conftest.err >&5
32300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); } && {
32302 test -z "$ac_cxx_werror_flag" ||
32303 test ! -s conftest.err
32304 } && test -s conftest.$ac_objext; then
32305 ac_cv_cxx_have_bool=yes
32306else
32307 $as_echo "$as_me: failed program was:" >&5
32308sed 's/^/| /' conftest.$ac_ext >&5
32309
32310 ac_cv_cxx_have_bool=no
32311fi
32312
32313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32314 ac_ext=cpp
32315ac_cpp='$CXXCPP $CPPFLAGS'
32316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32319
32320
32321fi
32322{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
32323$as_echo "$ac_cv_cxx_have_bool" >&6; }
32324if test "$ac_cv_cxx_have_bool" = yes; then
32325
32326cat >>confdefs.h <<\_ACEOF
32327#define HAVE_BOOL /**/
32328_ACEOF
32329
32330fi
32331
32332 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32333$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
32334if test "${ac_cv_cxx_have_namespaces+set}" = set; then
32335 $as_echo_n "(cached) " >&6
32336else
32337
32338 ac_ext=cpp
32339ac_cpp='$CXXCPP $CPPFLAGS'
32340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32343
32344 cat >conftest.$ac_ext <<_ACEOF
32345/* confdefs.h. */
32346_ACEOF
32347cat confdefs.h >>conftest.$ac_ext
32348cat >>conftest.$ac_ext <<_ACEOF
32349/* end confdefs.h. */
32350namespace Outer { namespace Inner { int i = 0; }}
32351int
32352main ()
32353{
32354using namespace Outer::Inner; return i;
32355 ;
32356 return 0;
32357}
32358_ACEOF
32359rm -f conftest.$ac_objext
32360if { (ac_try="$ac_compile"
32361case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364esac
32365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32366$as_echo "$ac_try_echo") >&5
32367 (eval "$ac_compile") 2>conftest.er1
32368 ac_status=$?
32369 grep -v '^ *+' conftest.er1 >conftest.err
32370 rm -f conftest.er1
32371 cat conftest.err >&5
32372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); } && {
32374 test -z "$ac_cxx_werror_flag" ||
32375 test ! -s conftest.err
32376 } && test -s conftest.$ac_objext; then
32377 ac_cv_cxx_have_namespaces=yes
32378else
32379 $as_echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
32382 ac_cv_cxx_have_namespaces=no
32383fi
32384
32385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386 ac_ext=cpp
32387ac_cpp='$CXXCPP $CPPFLAGS'
32388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32391
32392
32393fi
32394{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
32395$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
32396if test "$ac_cv_cxx_have_namespaces" = yes; then
32397
32398cat >>confdefs.h <<\_ACEOF
32399#define HAVE_NAMESPACES /**/
32400_ACEOF
32401
32402fi
32403
32404 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
32405$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
32406if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
32407 $as_echo_n "(cached) " >&6
32408else
32409
32410 ac_ext=cpp
32411ac_cpp='$CXXCPP $CPPFLAGS'
32412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32415
32416 cat >conftest.$ac_ext <<_ACEOF
32417/* confdefs.h. */
32418_ACEOF
32419cat confdefs.h >>conftest.$ac_ext
32420cat >>conftest.$ac_ext <<_ACEOF
32421/* end confdefs.h. */
32422#include <iostream>
32423 std::istream& is = std::cin;
32424
32425int
32426main ()
32427{
32428return 0;
32429 ;
32430 return 0;
32431}
32432_ACEOF
32433rm -f conftest.$ac_objext
32434if { (ac_try="$ac_compile"
32435case "(($ac_try" in
32436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32437 *) ac_try_echo=$ac_try;;
32438esac
32439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32440$as_echo "$ac_try_echo") >&5
32441 (eval "$ac_compile") 2>conftest.er1
32442 ac_status=$?
32443 grep -v '^ *+' conftest.er1 >conftest.err
32444 rm -f conftest.er1
32445 cat conftest.err >&5
32446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); } && {
32448 test -z "$ac_cxx_werror_flag" ||
32449 test ! -s conftest.err
32450 } && test -s conftest.$ac_objext; then
32451 ac_cv_cxx_have_std_namespace=yes
32452else
32453 $as_echo "$as_me: failed program was:" >&5
32454sed 's/^/| /' conftest.$ac_ext >&5
32455
32456 ac_cv_cxx_have_std_namespace=no
32457fi
32458
32459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32460 ac_ext=cpp
32461ac_cpp='$CXXCPP $CPPFLAGS'
32462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32465
32466
32467fi
32468{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
32469$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
32470if test "$ac_cv_cxx_have_std_namespace" = yes; then
32471
32472cat >>confdefs.h <<\_ACEOF
32473#define HAVE_STD_NAMESPACE /**/
32474_ACEOF
32475
32476fi
32477
32478 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
32479$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
32480if test "${ac_cv_cxx_have_std_libs+set}" = set; then
32481 $as_echo_n "(cached) " >&6
32482else
32483
32484
32485 ac_ext=cpp
32486ac_cpp='$CXXCPP $CPPFLAGS'
32487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32490
32491 cat >conftest.$ac_ext <<_ACEOF
32492/* confdefs.h. */
32493_ACEOF
32494cat confdefs.h >>conftest.$ac_ext
32495cat >>conftest.$ac_ext <<_ACEOF
32496/* end confdefs.h. */
32497#include <iostream>
32498#include <map>
32499#include <iomanip>
32500#include <cmath>
32501#ifdef HAVE_NAMESPACES
32502using namespace std;
32503#endif
32504int
32505main ()
32506{
32507return 0;
32508 ;
32509 return 0;
32510}
32511_ACEOF
32512rm -f conftest.$ac_objext
32513if { (ac_try="$ac_compile"
32514case "(($ac_try" in
32515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516 *) ac_try_echo=$ac_try;;
32517esac
32518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32519$as_echo "$ac_try_echo") >&5
32520 (eval "$ac_compile") 2>conftest.er1
32521 ac_status=$?
32522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
32525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } && {
32527 test -z "$ac_cxx_werror_flag" ||
32528 test ! -s conftest.err
32529 } && test -s conftest.$ac_objext; then
32530 ac_cv_cxx_have_std_libs=yes
32531else
32532 $as_echo "$as_me: failed program was:" >&5
32533sed 's/^/| /' conftest.$ac_ext >&5
32534
32535 ac_cv_cxx_have_std_libs=no
32536fi
32537
32538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32539 ac_ext=cpp
32540ac_cpp='$CXXCPP $CPPFLAGS'
32541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32544
32545
32546fi
32547{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
32548$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
32549if test "$ac_cv_cxx_have_std_libs" = yes; then
32550
32551cat >>confdefs.h <<\_ACEOF
32552#define HAVE_STD_LIBS /**/
32553_ACEOF
32554
32555fi
32556
32557 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
32558$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
32559if test "${ac_cv_cxx_have_lstring+set}" = set; then
32560 $as_echo_n "(cached) " >&6
32561else
32562
32563 ac_ext=cpp
32564ac_cpp='$CXXCPP $CPPFLAGS'
32565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32568
32569 cat >conftest.$ac_ext <<_ACEOF
32570/* confdefs.h. */
32571_ACEOF
32572cat confdefs.h >>conftest.$ac_ext
32573cat >>conftest.$ac_ext <<_ACEOF
32574/* end confdefs.h. */
32575const wchar_t* s=L"wide string";
32576_ACEOF
32577rm -f conftest.$ac_objext
32578if { (ac_try="$ac_compile"
32579case "(($ac_try" in
32580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581 *) ac_try_echo=$ac_try;;
32582esac
32583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32584$as_echo "$ac_try_echo") >&5
32585 (eval "$ac_compile") 2>conftest.er1
32586 ac_status=$?
32587 grep -v '^ *+' conftest.er1 >conftest.err
32588 rm -f conftest.er1
32589 cat conftest.err >&5
32590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } && {
32592 test -z "$ac_cxx_werror_flag" ||
32593 test ! -s conftest.err
32594 } && test -s conftest.$ac_objext; then
32595 ac_cv_cxx_have_lstring=yes
32596else
32597 $as_echo "$as_me: failed program was:" >&5
32598sed 's/^/| /' conftest.$ac_ext >&5
32599
32600 ac_cv_cxx_have_lstring=no
32601fi
32602
32603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 ac_ext=cpp
32605ac_cpp='$CXXCPP $CPPFLAGS'
32606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32609
32610
32611fi
32612{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
32613$as_echo "$ac_cv_cxx_have_lstring" >&6; }
32614if test "$ac_cv_cxx_have_lstring" = yes; then
32615
32616cat >>confdefs.h <<\_ACEOF
32617#define HAVE_LSTRING /**/
32618_ACEOF
32619
32620fi
32621
32622
32623 OPENMP_CXXFLAGS=
32624 # Check whether --enable-openmp was given.
32625if test "${enable_openmp+set}" = set; then
32626 enableval=$enable_openmp;
32627fi
32628
32629 if test "$enable_openmp" != no; then
32630 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
32631$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
32632if test "${ac_cv_prog_cxx_openmp+set}" = set; then
32633 $as_echo_n "(cached) " >&6
32634else
32635 cat >conftest.$ac_ext <<_ACEOF
32636
32637#ifndef _OPENMP
32638 choke me
32639#endif
32640#include <omp.h>
32641int main () { return omp_get_num_threads (); }
32642
32643_ACEOF
32644rm -f conftest.$ac_objext conftest$ac_exeext
32645if { (ac_try="$ac_link"
32646case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649esac
32650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32651$as_echo "$ac_try_echo") >&5
32652 (eval "$ac_link") 2>conftest.er1
32653 ac_status=$?
32654 grep -v '^ *+' conftest.er1 >conftest.err
32655 rm -f conftest.er1
32656 cat conftest.err >&5
32657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } && {
32659 test -z "$ac_cxx_werror_flag" ||
32660 test ! -s conftest.err
32661 } && test -s conftest$ac_exeext && {
32662 test "$cross_compiling" = yes ||
32663 $as_test_x conftest$ac_exeext
32664 }; then
32665 ac_cv_prog_cxx_openmp='none needed'
32666else
32667 $as_echo "$as_me: failed program was:" >&5
32668sed 's/^/| /' conftest.$ac_ext >&5
32669
32670 ac_cv_prog_cxx_openmp='unsupported'
32671 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
32672 ac_save_CXXFLAGS=$CXXFLAGS
32673 CXXFLAGS="$CXXFLAGS $ac_option"
32674 cat >conftest.$ac_ext <<_ACEOF
32675
32676#ifndef _OPENMP
32677 choke me
32678#endif
32679#include <omp.h>
32680int main () { return omp_get_num_threads (); }
32681
32682_ACEOF
32683rm -f conftest.$ac_objext conftest$ac_exeext
32684if { (ac_try="$ac_link"
32685case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32688esac
32689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32690$as_echo "$ac_try_echo") >&5
32691 (eval "$ac_link") 2>conftest.er1
32692 ac_status=$?
32693 grep -v '^ *+' conftest.er1 >conftest.err
32694 rm -f conftest.er1
32695 cat conftest.err >&5
32696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } && {
32698 test -z "$ac_cxx_werror_flag" ||
32699 test ! -s conftest.err
32700 } && test -s conftest$ac_exeext && {
32701 test "$cross_compiling" = yes ||
32702 $as_test_x conftest$ac_exeext
32703 }; then
32704 ac_cv_prog_cxx_openmp=$ac_option
32705else
32706 $as_echo "$as_me: failed program was:" >&5
32707sed 's/^/| /' conftest.$ac_ext >&5
32708
32709
32710fi
32711
32712rm -rf conftest.dSYM
32713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32714 conftest$ac_exeext conftest.$ac_ext
32715 CXXFLAGS=$ac_save_CXXFLAGS
32716 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
32717 break
32718 fi
32719 done
32720fi
32721
32722rm -rf conftest.dSYM
32723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32724 conftest$ac_exeext conftest.$ac_ext
32725fi
32726{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
32727$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
32728 case $ac_cv_prog_cxx_openmp in #(
32729 "none needed" | unsupported)
32730 ;; #(
32731 *)
32732 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
32733 esac
32734 fi
32735
32736
32737 ac_ext=c
32738ac_cpp='$CPP $CPPFLAGS'
32739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32741ac_compiler_gnu=$ac_cv_c_compiler_gnu
32742
32743
32744 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
32745$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
32746 if \
32747 test $ac_cv_cxx_have_bool = 'yes' && \
32748 test $ac_cv_cxx_have_lstring = 'yes' && \
32749 test $ac_cv_cxx_have_namespaces = 'yes' && \
32750 test $ac_cv_cxx_have_std_libs = 'yes' && \
32751 test $ac_cv_cxx_have_std_namespace = 'yes'; then
32752 have_magick_plus_plus='yes'
32753 else
32754 have_magick_plus_plus='no (failed tests)'
32755 fi
32756 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
32757$as_echo "$have_magick_plus_plus" >&6; }
32758 LIBS="$OLIBS"
32759fi
32760 if test "$have_magick_plus_plus" = 'yes'; then
32761 WITH_MAGICK_PLUS_PLUS_TRUE=
32762 WITH_MAGICK_PLUS_PLUS_FALSE='#'
32763else
32764 WITH_MAGICK_PLUS_PLUS_TRUE='#'
32765 WITH_MAGICK_PLUS_PLUS_FALSE=
32766fi
32767
32768
32769# Only check for delegate libraries in subdirectories if requested.
32770if test "$enable_delegate_build" != 'no'; then
32771 # Check for delegate sub-directories and add -I & -L options as required.
32772 # This presumes that delegates are installed as detailed in the ImageMagick
32773 # README. If delegates are installed in a standard location where the
32774 # compiler will automatically find them then these options should not be
32775 # required.
32776
32777 #
32778 # Most delegates have includes in the same directory as the library, but not all...
32779 #
32780 # Includes
32781 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
32782 if test -d "$builddir/$dir"; then
32783 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
32784 else
32785 if test -d "$srcdirfull/$dir"; then
32786 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
32787 fi
32788 fi
32789 done
32790
32791 # Libraries
32792 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
32793 if test -d "$builddir/$dir/.libs"; then
32794 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
32795 else
32796 if test -d "$srcdirfull/$dir/.libs"; then
32797 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
32798 fi
32799 fi
32800 if test -d "$builddir/$dir"; then
32801 LDFLAGS="$LDFLAGS -L$builddir/$dir"
32802 else
32803 if test -d "$srcdirfull/$dir"; then
32804 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
32805 fi
32806 fi
32807 done
32808fi
32809
32810# Assume that delegate headers reside under same directory as ImageMagick
32811# installation prefix.
32812MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
32813
32814#
32815# Find the X11 RGB database
32816#
32817{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
32818$as_echo_n "checking for X11 configure files... " >&6; }
32819if test "${im_cv_x_configure+set}" = set; then
32820 $as_echo_n "(cached) " >&6
32821else
32822 # Look for the header file in a standard set of common directories.
32823# Check X11 before X11Rn because it is often a symlink to the current release.
32824 for ac_dir in \
32825 /lib/usr/lib/X11 \
32826 /usr/X11/lib \
32827 /usr/X11R4/lib \
32828 /usr/X11R5/lib \
32829 /usr/X11R6/lib \
32830 /usr/X11R7/lib \
32831 /usr/X386/lib \
32832 /usr/XFree86/lib/X11 \
32833 /usr/athena/lib \
32834 /usr/lib \
32835 /usr/lib/X11 \
32836 /usr/lib/X11R4 \
32837 /usr/lib/X11R5 \
32838 /usr/lib/X11R6 \
32839 /usr/lib/X11R7 \
32840 /usr/local/X11/lib \
32841 /usr/local/X11R4/lib \
32842 /usr/local/X11R5/lib \
32843 /usr/local/X11R6/lib \
32844 /usr/local/lib \
32845 /usr/local/lib/X11 \
32846 /usr/local/lib/X11R4 \
32847 /usr/local/lib/X11R5 \
32848 /usr/local/lib/X11R6 \
32849 /usr/local/lib/X11R7 \
32850 /usr/local/x11r5/lib \
32851 /usr/lpp/Xamples/lib \
32852 /usr/openwin/lib \
32853 /usr/openwin/share/lib \
32854 /usr/unsupported/lib \
32855 /usr/x386/lib \
32856 ; do
32857 if test -f "$ac_dir/X11/rgb.txt"; then
32858 im_cv_x_configure="$ac_dir/X11/"
32859 break
32860 elif test -f "$ac_dir/rgb.txt"; then
32861 im_cv_x_configure="$ac_dir/"
32862 break
32863 fi
32864
32865 done
32866fi
32867{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
32868$as_echo "$im_cv_x_configure" >&6; }
32869X11_CONFIGURE_PATH="$im_cv_x_configure"
32870case "${build_os}" in
32871 mingw* )
32872 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
32873 ;;
32874esac
32875
32876cat >>confdefs.h <<_ACEOF
32877#define X11_CONFIGURE_PATH "$X11ConfigurePath"
32878_ACEOF
32879
32880
32881#
32882# Find OpenMP library
32883#
32884GOMP_LIBS=''
32885if test "$enable_openmp" != 'no'; then
32886 if test "${GCC}" = "yes"; then
32887 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
32888$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
32889if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
32890 $as_echo_n "(cached) " >&6
32891else
32892 ac_check_lib_save_LIBS=$LIBS
32893LIBS="-lgomp $LIBS"
32894cat >conftest.$ac_ext <<_ACEOF
32895/* confdefs.h. */
32896_ACEOF
32897cat confdefs.h >>conftest.$ac_ext
32898cat >>conftest.$ac_ext <<_ACEOF
32899/* end confdefs.h. */
32900
32901/* Override any GCC internal prototype to avoid an error.
32902 Use char because int might match the return type of a GCC
32903 builtin and then its argument prototype would still apply. */
32904#ifdef __cplusplus
32905extern "C"
32906#endif
32907char GOMP_parallel_start ();
32908int
32909main ()
32910{
32911return GOMP_parallel_start ();
32912 ;
32913 return 0;
32914}
32915_ACEOF
32916rm -f conftest.$ac_objext conftest$ac_exeext
32917if { (ac_try="$ac_link"
32918case "(($ac_try" in
32919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920 *) ac_try_echo=$ac_try;;
32921esac
32922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32923$as_echo "$ac_try_echo") >&5
32924 (eval "$ac_link") 2>conftest.er1
32925 ac_status=$?
32926 grep -v '^ *+' conftest.er1 >conftest.err
32927 rm -f conftest.er1
32928 cat conftest.err >&5
32929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } && {
32931 test -z "$ac_c_werror_flag" ||
32932 test ! -s conftest.err
32933 } && test -s conftest$ac_exeext && {
32934 test "$cross_compiling" = yes ||
32935 $as_test_x conftest$ac_exeext
32936 }; then
32937 ac_cv_lib_gomp_GOMP_parallel_start=yes
32938else
32939 $as_echo "$as_me: failed program was:" >&5
32940sed 's/^/| /' conftest.$ac_ext >&5
32941
32942 ac_cv_lib_gomp_GOMP_parallel_start=no
32943fi
32944
32945rm -rf conftest.dSYM
32946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32947 conftest$ac_exeext conftest.$ac_ext
32948LIBS=$ac_check_lib_save_LIBS
32949fi
32950{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
32951$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
32952if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
32953 GOMP_LIBS="-lgomp"
32954fi
32955 # gcc
32956 else
32957 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
32958$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
32959if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
32960 $as_echo_n "(cached) " >&6
32961else
32962 ac_check_lib_save_LIBS=$LIBS
32963LIBS="-lmtsk $LIBS"
32964cat >conftest.$ac_ext <<_ACEOF
32965/* confdefs.h. */
32966_ACEOF
32967cat confdefs.h >>conftest.$ac_ext
32968cat >>conftest.$ac_ext <<_ACEOF
32969/* end confdefs.h. */
32970
32971/* Override any GCC internal prototype to avoid an error.
32972 Use char because int might match the return type of a GCC
32973 builtin and then its argument prototype would still apply. */
32974#ifdef __cplusplus
32975extern "C"
32976#endif
32977char sunw_mp_register_warn ();
32978int
32979main ()
32980{
32981return sunw_mp_register_warn ();
32982 ;
32983 return 0;
32984}
32985_ACEOF
32986rm -f conftest.$ac_objext conftest$ac_exeext
32987if { (ac_try="$ac_link"
32988case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32991esac
32992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32993$as_echo "$ac_try_echo") >&5
32994 (eval "$ac_link") 2>conftest.er1
32995 ac_status=$?
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
32999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } && {
33001 test -z "$ac_c_werror_flag" ||
33002 test ! -s conftest.err
33003 } && test -s conftest$ac_exeext && {
33004 test "$cross_compiling" = yes ||
33005 $as_test_x conftest$ac_exeext
33006 }; then
33007 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
33008else
33009 $as_echo "$as_me: failed program was:" >&5
33010sed 's/^/| /' conftest.$ac_ext >&5
33011
33012 ac_cv_lib_mtsk_sunw_mp_register_warn=no
33013fi
33014
33015rm -rf conftest.dSYM
33016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33017 conftest$ac_exeext conftest.$ac_ext
33018LIBS=$ac_check_lib_save_LIBS
33019fi
33020{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
33021$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
33022if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
33023 GOMP_LIBS="-lmtsk"
33024fi
33025 # solaris cc
33026 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
33027$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
33028if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
33029 $as_echo_n "(cached) " >&6
33030else
33031 ac_check_lib_save_LIBS=$LIBS
33032LIBS="-lxlsmp $LIBS"
33033cat >conftest.$ac_ext <<_ACEOF
33034/* confdefs.h. */
33035_ACEOF
33036cat confdefs.h >>conftest.$ac_ext
33037cat >>conftest.$ac_ext <<_ACEOF
33038/* end confdefs.h. */
33039
33040/* Override any GCC internal prototype to avoid an error.
33041 Use char because int might match the return type of a GCC
33042 builtin and then its argument prototype would still apply. */
33043#ifdef __cplusplus
33044extern "C"
33045#endif
33046char _xlsmpFlush ();
33047int
33048main ()
33049{
33050return _xlsmpFlush ();
33051 ;
33052 return 0;
33053}
33054_ACEOF
33055rm -f conftest.$ac_objext conftest$ac_exeext
33056if { (ac_try="$ac_link"
33057case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33060esac
33061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33062$as_echo "$ac_try_echo") >&5
33063 (eval "$ac_link") 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } && {
33070 test -z "$ac_c_werror_flag" ||
33071 test ! -s conftest.err
33072 } && test -s conftest$ac_exeext && {
33073 test "$cross_compiling" = yes ||
33074 $as_test_x conftest$ac_exeext
33075 }; then
33076 ac_cv_lib_xlsmp__xlsmpFlush=yes
33077else
33078 $as_echo "$as_me: failed program was:" >&5
33079sed 's/^/| /' conftest.$ac_ext >&5
33080
33081 ac_cv_lib_xlsmp__xlsmpFlush=no
33082fi
33083
33084rm -rf conftest.dSYM
33085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33086 conftest$ac_exeext conftest.$ac_ext
33087LIBS=$ac_check_lib_save_LIBS
33088fi
33089{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
33090$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
33091if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
33092 GOMP_LIBS="-lxlsmp"
33093fi
33094 # AIX xlc
33095 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
33096$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
33097if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
33098 $as_echo_n "(cached) " >&6
33099else
33100 ac_check_lib_save_LIBS=$LIBS
33101LIBS="-lmp $LIBS"
33102cat >conftest.$ac_ext <<_ACEOF
33103/* confdefs.h. */
33104_ACEOF
33105cat confdefs.h >>conftest.$ac_ext
33106cat >>conftest.$ac_ext <<_ACEOF
33107/* end confdefs.h. */
33108
33109/* Override any GCC internal prototype to avoid an error.
33110 Use char because int might match the return type of a GCC
33111 builtin and then its argument prototype would still apply. */
33112#ifdef __cplusplus
33113extern "C"
33114#endif
33115char mp_destroy ();
33116int
33117main ()
33118{
33119return mp_destroy ();
33120 ;
33121 return 0;
33122}
33123_ACEOF
33124rm -f conftest.$ac_objext conftest$ac_exeext
33125if { (ac_try="$ac_link"
33126case "(($ac_try" in
33127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128 *) ac_try_echo=$ac_try;;
33129esac
33130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33131$as_echo "$ac_try_echo") >&5
33132 (eval "$ac_link") 2>conftest.er1
33133 ac_status=$?
33134 grep -v '^ *+' conftest.er1 >conftest.err
33135 rm -f conftest.er1
33136 cat conftest.err >&5
33137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } && {
33139 test -z "$ac_c_werror_flag" ||
33140 test ! -s conftest.err
33141 } && test -s conftest$ac_exeext && {
33142 test "$cross_compiling" = yes ||
33143 $as_test_x conftest$ac_exeext
33144 }; then
33145 ac_cv_lib_mp_mp_destroy=yes
33146else
33147 $as_echo "$as_me: failed program was:" >&5
33148sed 's/^/| /' conftest.$ac_ext >&5
33149
33150 ac_cv_lib_mp_mp_destroy=no
33151fi
33152
33153rm -rf conftest.dSYM
33154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33155 conftest$ac_exeext conftest.$ac_ext
33156LIBS=$ac_check_lib_save_LIBS
33157fi
33158{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
33159$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
33160if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
33161 GOMP_LIBS="-lmp"
33162fi
33163 # SGI IRIX 6.5 MIPSpro C/C++
33164 fi
33165 LIBS="$GOMP_LIBS $LIBS"
33166fi
33167
33168
33169#
33170# Find Posix threads library
33171#
33172THREAD_LIBS=''
33173if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
33174
33175 if test "x$PTHREAD_LIBS" = "x"; then
33176 case "${host_cpu}-${host_os}" in
33177 *-freebsd*)
33178
33179
33180
33181ac_ext=c
33182ac_cpp='$CPP $CPPFLAGS'
33183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33185ac_compiler_gnu=$ac_cv_c_compiler_gnu
33186
33187magick_pthread_lib_ok=no
33188
33189LIB=-lc_r
33190save_LIBS="$LIBS"
33191LIBS="$LIBS $LIB"
33192
33193{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33194$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33195cat >conftest.$ac_ext <<_ACEOF
33196/* confdefs.h. */
33197_ACEOF
33198cat confdefs.h >>conftest.$ac_ext
33199cat >>conftest.$ac_ext <<_ACEOF
33200/* end confdefs.h. */
33201#include <pthread.h>
33202int
33203main ()
33204{
33205 pthread_t th;
33206 pthread_join(th, 0);
33207 pthread_attr_init(0);
33208 pthread_cleanup_push(0, 0);
33209 pthread_create(0,0,0,0);
33210 pthread_cleanup_pop(0);
33211 ;
33212 return 0;
33213}
33214_ACEOF
33215rm -f conftest.$ac_objext conftest$ac_exeext
33216if { (ac_try="$ac_link"
33217case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33220esac
33221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33222$as_echo "$ac_try_echo") >&5
33223 (eval "$ac_link") 2>conftest.er1
33224 ac_status=$?
33225 grep -v '^ *+' conftest.er1 >conftest.err
33226 rm -f conftest.er1
33227 cat conftest.err >&5
33228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); } && {
33230 test -z "$ac_c_werror_flag" ||
33231 test ! -s conftest.err
33232 } && test -s conftest$ac_exeext && {
33233 test "$cross_compiling" = yes ||
33234 $as_test_x conftest$ac_exeext
33235 }; then
33236 magick_pthread_lib_ok=yes
33237else
33238 $as_echo "$as_me: failed program was:" >&5
33239sed 's/^/| /' conftest.$ac_ext >&5
33240
33241
33242fi
33243
33244rm -rf conftest.dSYM
33245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33246 conftest$ac_exeext conftest.$ac_ext
33247
33248{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33249$as_echo "${magick_pthread_lib_ok}" >&6; }
33250if test "$magick_pthread_lib_ok" = yes
33251then
33252 PTHREAD_LIBS=-lc_r
33253 :
33254else
33255
33256 :
33257fi
33258
33259LIBS="$save_LIBS"
33260
33261ac_ext=c
33262ac_cpp='$CPP $CPPFLAGS'
33263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33265ac_compiler_gnu=$ac_cv_c_compiler_gnu
33266
33267 ;;
33268 esac
33269 fi
33270
33271 for lib in pthread pthreads; do
33272 if test "x$PTHREAD_LIBS" = "x"; then
33273
33274
33275
33276ac_ext=c
33277ac_cpp='$CPP $CPPFLAGS'
33278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33280ac_compiler_gnu=$ac_cv_c_compiler_gnu
33281
33282magick_pthread_lib_ok=no
33283
33284LIB=-l$lib
33285save_LIBS="$LIBS"
33286LIBS="$LIBS $LIB"
33287
33288{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33289$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33290cat >conftest.$ac_ext <<_ACEOF
33291/* confdefs.h. */
33292_ACEOF
33293cat confdefs.h >>conftest.$ac_ext
33294cat >>conftest.$ac_ext <<_ACEOF
33295/* end confdefs.h. */
33296#include <pthread.h>
33297int
33298main ()
33299{
33300 pthread_t th;
33301 pthread_join(th, 0);
33302 pthread_attr_init(0);
33303 pthread_cleanup_push(0, 0);
33304 pthread_create(0,0,0,0);
33305 pthread_cleanup_pop(0);
33306 ;
33307 return 0;
33308}
33309_ACEOF
33310rm -f conftest.$ac_objext conftest$ac_exeext
33311if { (ac_try="$ac_link"
33312case "(($ac_try" in
33313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33314 *) ac_try_echo=$ac_try;;
33315esac
33316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33317$as_echo "$ac_try_echo") >&5
33318 (eval "$ac_link") 2>conftest.er1
33319 ac_status=$?
33320 grep -v '^ *+' conftest.er1 >conftest.err
33321 rm -f conftest.er1
33322 cat conftest.err >&5
33323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } && {
33325 test -z "$ac_c_werror_flag" ||
33326 test ! -s conftest.err
33327 } && test -s conftest$ac_exeext && {
33328 test "$cross_compiling" = yes ||
33329 $as_test_x conftest$ac_exeext
33330 }; then
33331 magick_pthread_lib_ok=yes
33332else
33333 $as_echo "$as_me: failed program was:" >&5
33334sed 's/^/| /' conftest.$ac_ext >&5
33335
33336
33337fi
33338
33339rm -rf conftest.dSYM
33340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33341 conftest$ac_exeext conftest.$ac_ext
33342
33343{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33344$as_echo "${magick_pthread_lib_ok}" >&6; }
33345if test "$magick_pthread_lib_ok" = yes
33346then
33347 PTHREAD_LIBS=-l$lib
33348 :
33349else
33350
33351 :
33352fi
33353
33354LIBS="$save_LIBS"
33355
33356ac_ext=c
33357ac_cpp='$CPP $CPPFLAGS'
33358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360ac_compiler_gnu=$ac_cv_c_compiler_gnu
33361
33362
33363 fi
33364 done
33365
33366 THREAD_LIBS="$PTHREAD_LIBS"
33367 LIBS="$LIBS $THREAD_LIBS"
33368fi
33369
33370
33371#
33372# Check for umem.
33373#
33374have_umem='no'
33375UMEM_LIBS=''
33376if test "$with_umem" != 'no'; then
33377 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
33378$as_echo_n "checking for UMEM support ... " >&6; }
33379 { $as_echo "$as_me:$LINENO: result: " >&5
33380$as_echo "" >&6; }
33381 failed=0
33382 passed=0
33383 if test "${ac_cv_header_umem_h+set}" = set; then
33384 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33385$as_echo_n "checking for umem.h... " >&6; }
33386if test "${ac_cv_header_umem_h+set}" = set; then
33387 $as_echo_n "(cached) " >&6
33388fi
33389{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33390$as_echo "$ac_cv_header_umem_h" >&6; }
33391else
33392 # Is the header compilable?
33393{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
33394$as_echo_n "checking umem.h usability... " >&6; }
33395cat >conftest.$ac_ext <<_ACEOF
33396/* confdefs.h. */
33397_ACEOF
33398cat confdefs.h >>conftest.$ac_ext
33399cat >>conftest.$ac_ext <<_ACEOF
33400/* end confdefs.h. */
33401$ac_includes_default
33402#include <umem.h>
33403_ACEOF
33404rm -f conftest.$ac_objext
33405if { (ac_try="$ac_compile"
33406case "(($ac_try" in
33407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33408 *) ac_try_echo=$ac_try;;
33409esac
33410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33411$as_echo "$ac_try_echo") >&5
33412 (eval "$ac_compile") 2>conftest.er1
33413 ac_status=$?
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
33417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } && {
33419 test -z "$ac_c_werror_flag" ||
33420 test ! -s conftest.err
33421 } && test -s conftest.$ac_objext; then
33422 ac_header_compiler=yes
33423else
33424 $as_echo "$as_me: failed program was:" >&5
33425sed 's/^/| /' conftest.$ac_ext >&5
33426
33427 ac_header_compiler=no
33428fi
33429
33430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33431{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33432$as_echo "$ac_header_compiler" >&6; }
33433
33434# Is the header present?
33435{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
33436$as_echo_n "checking umem.h presence... " >&6; }
33437cat >conftest.$ac_ext <<_ACEOF
33438/* confdefs.h. */
33439_ACEOF
33440cat confdefs.h >>conftest.$ac_ext
33441cat >>conftest.$ac_ext <<_ACEOF
33442/* end confdefs.h. */
33443#include <umem.h>
33444_ACEOF
33445if { (ac_try="$ac_cpp conftest.$ac_ext"
33446case "(($ac_try" in
33447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448 *) ac_try_echo=$ac_try;;
33449esac
33450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33451$as_echo "$ac_try_echo") >&5
33452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33453 ac_status=$?
33454 grep -v '^ *+' conftest.er1 >conftest.err
33455 rm -f conftest.er1
33456 cat conftest.err >&5
33457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458 (exit $ac_status); } >/dev/null && {
33459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33460 test ! -s conftest.err
33461 }; then
33462 ac_header_preproc=yes
33463else
33464 $as_echo "$as_me: failed program was:" >&5
33465sed 's/^/| /' conftest.$ac_ext >&5
33466
33467 ac_header_preproc=no
33468fi
33469
33470rm -f conftest.err conftest.$ac_ext
33471{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33472$as_echo "$ac_header_preproc" >&6; }
33473
33474# So? What about this header?
33475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33476 yes:no: )
33477 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
33478$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33479 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
33480$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
33481 ac_header_preproc=yes
33482 ;;
33483 no:yes:* )
33484 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
33485$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
33486 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
33487$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
33488 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
33489$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
33490 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
33491$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
33492 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
33493$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
33494 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
33495$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
33496 ( cat <<\_ASBOX
33497## ----------------------------------------- ##
33498## Report this to http://www.imagemagick.org ##
33499## ----------------------------------------- ##
33500_ASBOX
33501 ) | sed "s/^/$as_me: WARNING: /" >&2
33502 ;;
33503esac
33504{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33505$as_echo_n "checking for umem.h... " >&6; }
33506if test "${ac_cv_header_umem_h+set}" = set; then
33507 $as_echo_n "(cached) " >&6
33508else
33509 ac_cv_header_umem_h=$ac_header_preproc
33510fi
33511{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33512$as_echo "$ac_cv_header_umem_h" >&6; }
33513
33514fi
33515if test "x$ac_cv_header_umem_h" = x""yes; then
33516 passed=`expr $passed + 1`
33517else
33518 failed=`expr $failed + 1`
33519fi
33520
33521
33522 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
33523$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
33524if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
33525 $as_echo_n "(cached) " >&6
33526else
33527 ac_check_lib_save_LIBS=$LIBS
33528LIBS="-lumem $LIBS"
33529cat >conftest.$ac_ext <<_ACEOF
33530/* confdefs.h. */
33531_ACEOF
33532cat confdefs.h >>conftest.$ac_ext
33533cat >>conftest.$ac_ext <<_ACEOF
33534/* end confdefs.h. */
33535
33536/* Override any GCC internal prototype to avoid an error.
33537 Use char because int might match the return type of a GCC
33538 builtin and then its argument prototype would still apply. */
33539#ifdef __cplusplus
33540extern "C"
33541#endif
33542char umem_alloc ();
33543int
33544main ()
33545{
33546return umem_alloc ();
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext conftest$ac_exeext
33552if { (ac_try="$ac_link"
33553case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33558$as_echo "$ac_try_echo") >&5
33559 (eval "$ac_link") 2>conftest.er1
33560 ac_status=$?
33561 grep -v '^ *+' conftest.er1 >conftest.err
33562 rm -f conftest.er1
33563 cat conftest.err >&5
33564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); } && {
33566 test -z "$ac_c_werror_flag" ||
33567 test ! -s conftest.err
33568 } && test -s conftest$ac_exeext && {
33569 test "$cross_compiling" = yes ||
33570 $as_test_x conftest$ac_exeext
33571 }; then
33572 ac_cv_lib_umem_umem_alloc=yes
33573else
33574 $as_echo "$as_me: failed program was:" >&5
33575sed 's/^/| /' conftest.$ac_ext >&5
33576
33577 ac_cv_lib_umem_umem_alloc=no
33578fi
33579
33580rm -rf conftest.dSYM
33581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33582 conftest$ac_exeext conftest.$ac_ext
33583LIBS=$ac_check_lib_save_LIBS
33584fi
33585{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
33586$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
33587if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
33588 passed=`expr $passed + 1`
33589else
33590 failed=`expr $failed + 1`
33591fi
33592
33593 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
33594$as_echo_n "checking for umem_free in -lumem... " >&6; }
33595if test "${ac_cv_lib_umem_umem_free+set}" = set; then
33596 $as_echo_n "(cached) " >&6
33597else
33598 ac_check_lib_save_LIBS=$LIBS
33599LIBS="-lumem $LIBS"
33600cat >conftest.$ac_ext <<_ACEOF
33601/* confdefs.h. */
33602_ACEOF
33603cat confdefs.h >>conftest.$ac_ext
33604cat >>conftest.$ac_ext <<_ACEOF
33605/* end confdefs.h. */
33606
33607/* Override any GCC internal prototype to avoid an error.
33608 Use char because int might match the return type of a GCC
33609 builtin and then its argument prototype would still apply. */
33610#ifdef __cplusplus
33611extern "C"
33612#endif
33613char umem_free ();
33614int
33615main ()
33616{
33617return umem_free ();
33618 ;
33619 return 0;
33620}
33621_ACEOF
33622rm -f conftest.$ac_objext conftest$ac_exeext
33623if { (ac_try="$ac_link"
33624case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33627esac
33628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33629$as_echo "$ac_try_echo") >&5
33630 (eval "$ac_link") 2>conftest.er1
33631 ac_status=$?
33632 grep -v '^ *+' conftest.er1 >conftest.err
33633 rm -f conftest.er1
33634 cat conftest.err >&5
33635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } && {
33637 test -z "$ac_c_werror_flag" ||
33638 test ! -s conftest.err
33639 } && test -s conftest$ac_exeext && {
33640 test "$cross_compiling" = yes ||
33641 $as_test_x conftest$ac_exeext
33642 }; then
33643 ac_cv_lib_umem_umem_free=yes
33644else
33645 $as_echo "$as_me: failed program was:" >&5
33646sed 's/^/| /' conftest.$ac_ext >&5
33647
33648 ac_cv_lib_umem_umem_free=no
33649fi
33650
33651rm -rf conftest.dSYM
33652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33653 conftest$ac_exeext conftest.$ac_ext
33654LIBS=$ac_check_lib_save_LIBS
33655fi
33656{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
33657$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
33658if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
33659 passed=`expr $passed + 1`
33660else
33661 failed=`expr $failed + 1`
33662fi
33663
33664 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
33665$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
33666 if test $passed -gt 0; then
33667 if test $failed -gt 0; then
33668 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33669$as_echo "no -- some components failed test" >&6; }
33670 have_umem='no (failed tests)'
33671 else
33672 UMEM_LIBS='-lumem'
33673 LIBS="$UMEM_LIBS $LIBS"
33674
33675cat >>confdefs.h <<\_ACEOF
33676#define HasUMEM 1
33677_ACEOF
33678
33679 { $as_echo "$as_me:$LINENO: result: yes" >&5
33680$as_echo "yes" >&6; }
33681 have_umem='yes'
33682 fi
33683 else
33684 { $as_echo "$as_me:$LINENO: result: no" >&5
33685$as_echo "no" >&6; }
33686 fi
33687fi
33688 if test "$have_umem" = 'yes'; then
33689 HasUMEM_TRUE=
33690 HasUMEM_FALSE='#'
33691else
33692 HasUMEM_TRUE='#'
33693 HasUMEM_FALSE=
33694fi
33695
33696
33697
33698#
33699# Add support for ccmalloc memory debugging library if requested
33700#
33701have_ccmalloc='no'
33702CCMALLOC_LIBS=''
33703if test "$enable_ccmalloc" = 'yes'; then
33704 # Extract the first word of "ccmalloc", so it can be a program name with args.
33705set dummy ccmalloc; ac_word=$2
33706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33707$as_echo_n "checking for $ac_word... " >&6; }
33708if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
33709 $as_echo_n "(cached) " >&6
33710else
33711 case $CCMALLOCDelegate in
33712 [\\/]* | ?:[\\/]*)
33713 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
33714 ;;
33715 *)
33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33717for as_dir in $PATH
33718do
33719 IFS=$as_save_IFS
33720 test -z "$as_dir" && as_dir=.
33721 for ac_exec_ext in '' $ac_executable_extensions; do
33722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33723 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
33724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33725 break 2
33726 fi
33727done
33728done
33729IFS=$as_save_IFS
33730
33731 ;;
33732esac
33733fi
33734CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
33735if test -n "$CCMALLOCDelegate"; then
33736 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
33737$as_echo "$CCMALLOCDelegate" >&6; }
33738else
33739 { $as_echo "$as_me:$LINENO: result: no" >&5
33740$as_echo "no" >&6; }
33741fi
33742
33743
33744 if test -n "$CCMALLOCDelegate"; then
33745 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
33746 OLIBS="$LIBS"
33747 # Assume that gcc is used with ccmalloc.
33748 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
33749 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
33750$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
33751if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
33752 $as_echo_n "(cached) " >&6
33753else
33754 ac_check_lib_save_LIBS=$LIBS
33755LIBS="-lccmalloc -ldl $LIBS"
33756cat >conftest.$ac_ext <<_ACEOF
33757/* confdefs.h. */
33758_ACEOF
33759cat confdefs.h >>conftest.$ac_ext
33760cat >>conftest.$ac_ext <<_ACEOF
33761/* end confdefs.h. */
33762
33763/* Override any GCC internal prototype to avoid an error.
33764 Use char because int might match the return type of a GCC
33765 builtin and then its argument prototype would still apply. */
33766#ifdef __cplusplus
33767extern "C"
33768#endif
33769char ccmalloc_malloc ();
33770int
33771main ()
33772{
33773return ccmalloc_malloc ();
33774 ;
33775 return 0;
33776}
33777_ACEOF
33778rm -f conftest.$ac_objext conftest$ac_exeext
33779if { (ac_try="$ac_link"
33780case "(($ac_try" in
33781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33782 *) ac_try_echo=$ac_try;;
33783esac
33784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33785$as_echo "$ac_try_echo") >&5
33786 (eval "$ac_link") 2>conftest.er1
33787 ac_status=$?
33788 grep -v '^ *+' conftest.er1 >conftest.err
33789 rm -f conftest.er1
33790 cat conftest.err >&5
33791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } && {
33793 test -z "$ac_c_werror_flag" ||
33794 test ! -s conftest.err
33795 } && test -s conftest$ac_exeext && {
33796 test "$cross_compiling" = yes ||
33797 $as_test_x conftest$ac_exeext
33798 }; then
33799 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
33800else
33801 $as_echo "$as_me: failed program was:" >&5
33802sed 's/^/| /' conftest.$ac_ext >&5
33803
33804 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
33805fi
33806
33807rm -rf conftest.dSYM
33808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33809 conftest$ac_exeext conftest.$ac_ext
33810LIBS=$ac_check_lib_save_LIBS
33811fi
33812{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
33813$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
33814if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
33815 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
33816fi
33817
33818 if test -n "$CCMALLOC_LIBS"; then
33819 LIBS="$OLIBS"
33820 LIBS="$LIBS $CCMALLOC_LIBS"
33821 have_ccmalloc='yes'
33822 else
33823 LIBS="$OLIBS"
33824 fi
33825 fi
33826fi
33827
33828#
33829# Add support for efence memory debugging library if requested
33830#
33831if test "$enable_efence" = 'yes'; then
33832 EFENCE_LIBS='-lefence'
33833 LIBS="$EFENCE_LIBS $LIBS"
33834fi
33835
33836#
33837# Find math library
33838#
33839MATH_LIBS=''
33840{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
33841$as_echo_n "checking for sqrt in -lm... " >&6; }
33842if test "${ac_cv_lib_m_sqrt+set}" = set; then
33843 $as_echo_n "(cached) " >&6
33844else
33845 ac_check_lib_save_LIBS=$LIBS
33846LIBS="-lm $LIBS"
33847cat >conftest.$ac_ext <<_ACEOF
33848/* confdefs.h. */
33849_ACEOF
33850cat confdefs.h >>conftest.$ac_ext
33851cat >>conftest.$ac_ext <<_ACEOF
33852/* end confdefs.h. */
33853
33854/* Override any GCC internal prototype to avoid an error.
33855 Use char because int might match the return type of a GCC
33856 builtin and then its argument prototype would still apply. */
33857#ifdef __cplusplus
33858extern "C"
33859#endif
33860char sqrt ();
33861int
33862main ()
33863{
33864return sqrt ();
33865 ;
33866 return 0;
33867}
33868_ACEOF
33869rm -f conftest.$ac_objext conftest$ac_exeext
33870if { (ac_try="$ac_link"
33871case "(($ac_try" in
33872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33873 *) ac_try_echo=$ac_try;;
33874esac
33875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33876$as_echo "$ac_try_echo") >&5
33877 (eval "$ac_link") 2>conftest.er1
33878 ac_status=$?
33879 grep -v '^ *+' conftest.er1 >conftest.err
33880 rm -f conftest.er1
33881 cat conftest.err >&5
33882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); } && {
33884 test -z "$ac_c_werror_flag" ||
33885 test ! -s conftest.err
33886 } && test -s conftest$ac_exeext && {
33887 test "$cross_compiling" = yes ||
33888 $as_test_x conftest$ac_exeext
33889 }; then
33890 ac_cv_lib_m_sqrt=yes
33891else
33892 $as_echo "$as_me: failed program was:" >&5
33893sed 's/^/| /' conftest.$ac_ext >&5
33894
33895 ac_cv_lib_m_sqrt=no
33896fi
33897
33898rm -rf conftest.dSYM
33899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33900 conftest$ac_exeext conftest.$ac_ext
33901LIBS=$ac_check_lib_save_LIBS
33902fi
33903{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
33904$as_echo "$ac_cv_lib_m_sqrt" >&6; }
33905if test "x$ac_cv_lib_m_sqrt" = x""yes; then
33906 MATH_LIBS="-lm"
33907fi
33908
33909LIBS="$MATH_LIBS $LIBS"
33910
33911
33912
33913#
33914# Check for BZLIB
33915#
33916
33917
33918# Check whether --with-bzlib was given.
33919if test "${with_bzlib+set}" = set; then
33920 withval=$with_bzlib; with_bzlib=$withval
33921else
33922 with_bzlib='yes'
33923fi
33924
33925
33926if test "$with_bzlib" != 'yes'; then
33927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
33928fi
33929
33930have_bzlib='no'
33931if test "$with_bzlib" != 'no'; then
33932 BZLIB_LIBS=''
33933 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
33934$as_echo "-------------------------------------------------------------" >&6; }
33935 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
33936$as_echo_n "checking for BZLIB... " >&6; }
33937 { $as_echo "$as_me:$LINENO: result: " >&5
33938$as_echo "" >&6; }
33939 failed=0
33940 passed=0
33941 found_libbz=0
33942 if test "${ac_cv_header_bzlib_h+set}" = set; then
33943 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33944$as_echo_n "checking for bzlib.h... " >&6; }
33945if test "${ac_cv_header_bzlib_h+set}" = set; then
33946 $as_echo_n "(cached) " >&6
33947fi
33948{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33949$as_echo "$ac_cv_header_bzlib_h" >&6; }
33950else
33951 # Is the header compilable?
33952{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
33953$as_echo_n "checking bzlib.h usability... " >&6; }
33954cat >conftest.$ac_ext <<_ACEOF
33955/* confdefs.h. */
33956_ACEOF
33957cat confdefs.h >>conftest.$ac_ext
33958cat >>conftest.$ac_ext <<_ACEOF
33959/* end confdefs.h. */
33960$ac_includes_default
33961#include <bzlib.h>
33962_ACEOF
33963rm -f conftest.$ac_objext
33964if { (ac_try="$ac_compile"
33965case "(($ac_try" in
33966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967 *) ac_try_echo=$ac_try;;
33968esac
33969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33970$as_echo "$ac_try_echo") >&5
33971 (eval "$ac_compile") 2>conftest.er1
33972 ac_status=$?
33973 grep -v '^ *+' conftest.er1 >conftest.err
33974 rm -f conftest.er1
33975 cat conftest.err >&5
33976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); } && {
33978 test -z "$ac_c_werror_flag" ||
33979 test ! -s conftest.err
33980 } && test -s conftest.$ac_objext; then
33981 ac_header_compiler=yes
33982else
33983 $as_echo "$as_me: failed program was:" >&5
33984sed 's/^/| /' conftest.$ac_ext >&5
33985
33986 ac_header_compiler=no
33987fi
33988
33989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33990{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33991$as_echo "$ac_header_compiler" >&6; }
33992
33993# Is the header present?
33994{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
33995$as_echo_n "checking bzlib.h presence... " >&6; }
33996cat >conftest.$ac_ext <<_ACEOF
33997/* confdefs.h. */
33998_ACEOF
33999cat confdefs.h >>conftest.$ac_ext
34000cat >>conftest.$ac_ext <<_ACEOF
34001/* end confdefs.h. */
34002#include <bzlib.h>
34003_ACEOF
34004if { (ac_try="$ac_cpp conftest.$ac_ext"
34005case "(($ac_try" in
34006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007 *) ac_try_echo=$ac_try;;
34008esac
34009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34010$as_echo "$ac_try_echo") >&5
34011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34012 ac_status=$?
34013 grep -v '^ *+' conftest.er1 >conftest.err
34014 rm -f conftest.er1
34015 cat conftest.err >&5
34016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); } >/dev/null && {
34018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34019 test ! -s conftest.err
34020 }; then
34021 ac_header_preproc=yes
34022else
34023 $as_echo "$as_me: failed program was:" >&5
34024sed 's/^/| /' conftest.$ac_ext >&5
34025
34026 ac_header_preproc=no
34027fi
34028
34029rm -f conftest.err conftest.$ac_ext
34030{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34031$as_echo "$ac_header_preproc" >&6; }
34032
34033# So? What about this header?
34034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34035 yes:no: )
34036 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34037$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34038 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
34039$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
34040 ac_header_preproc=yes
34041 ;;
34042 no:yes:* )
34043 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
34044$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
34045 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
34046$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
34047 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
34048$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
34049 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
34050$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34051 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
34052$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
34053 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
34054$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
34055 ( cat <<\_ASBOX
34056## ----------------------------------------- ##
34057## Report this to http://www.imagemagick.org ##
34058## ----------------------------------------- ##
34059_ASBOX
34060 ) | sed "s/^/$as_me: WARNING: /" >&2
34061 ;;
34062esac
34063{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34064$as_echo_n "checking for bzlib.h... " >&6; }
34065if test "${ac_cv_header_bzlib_h+set}" = set; then
34066 $as_echo_n "(cached) " >&6
34067else
34068 ac_cv_header_bzlib_h=$ac_header_preproc
34069fi
34070{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34071$as_echo "$ac_cv_header_bzlib_h" >&6; }
34072
34073fi
34074if test "x$ac_cv_header_bzlib_h" = x""yes; then
34075 passed=`expr $passed + 1`
34076else
34077 failed=`expr $failed + 1`
34078fi
34079
34080
34081 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
34082$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
34083if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
34084 $as_echo_n "(cached) " >&6
34085else
34086 ac_check_lib_save_LIBS=$LIBS
34087LIBS="-lbz2 $LIBS"
34088cat >conftest.$ac_ext <<_ACEOF
34089/* confdefs.h. */
34090_ACEOF
34091cat confdefs.h >>conftest.$ac_ext
34092cat >>conftest.$ac_ext <<_ACEOF
34093/* end confdefs.h. */
34094
34095/* Override any GCC internal prototype to avoid an error.
34096 Use char because int might match the return type of a GCC
34097 builtin and then its argument prototype would still apply. */
34098#ifdef __cplusplus
34099extern "C"
34100#endif
34101char BZ2_bzDecompress ();
34102int
34103main ()
34104{
34105return BZ2_bzDecompress ();
34106 ;
34107 return 0;
34108}
34109_ACEOF
34110rm -f conftest.$ac_objext conftest$ac_exeext
34111if { (ac_try="$ac_link"
34112case "(($ac_try" in
34113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34114 *) ac_try_echo=$ac_try;;
34115esac
34116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34117$as_echo "$ac_try_echo") >&5
34118 (eval "$ac_link") 2>conftest.er1
34119 ac_status=$?
34120 grep -v '^ *+' conftest.er1 >conftest.err
34121 rm -f conftest.er1
34122 cat conftest.err >&5
34123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); } && {
34125 test -z "$ac_c_werror_flag" ||
34126 test ! -s conftest.err
34127 } && test -s conftest$ac_exeext && {
34128 test "$cross_compiling" = yes ||
34129 $as_test_x conftest$ac_exeext
34130 }; then
34131 ac_cv_lib_bz2_BZ2_bzDecompress=yes
34132else
34133 $as_echo "$as_me: failed program was:" >&5
34134sed 's/^/| /' conftest.$ac_ext >&5
34135
34136 ac_cv_lib_bz2_BZ2_bzDecompress=no
34137fi
34138
34139rm -rf conftest.dSYM
34140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34141 conftest$ac_exeext conftest.$ac_ext
34142LIBS=$ac_check_lib_save_LIBS
34143fi
34144{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
34145$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
34146if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
34147 found_libbz=`expr $found_libbz + 1`
34148fi
34149
34150 if test "$native_win32_build" = 'yes'; then
34151 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
34152$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
34153if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
34154 $as_echo_n "(cached) " >&6
34155else
34156 ac_check_lib_save_LIBS=$LIBS
34157LIBS="-lbz2 $LIBS"
34158cat >conftest.$ac_ext <<_ACEOF
34159/* confdefs.h. */
34160_ACEOF
34161cat confdefs.h >>conftest.$ac_ext
34162cat >>conftest.$ac_ext <<_ACEOF
34163/* end confdefs.h. */
34164
34165/* Override any GCC internal prototype to avoid an error.
34166 Use char because int might match the return type of a GCC
34167 builtin and then its argument prototype would still apply. */
34168#ifdef __cplusplus
34169extern "C"
34170#endif
34171char _imp__BZ2_decompress ();
34172int
34173main ()
34174{
34175return _imp__BZ2_decompress ();
34176 ;
34177 return 0;
34178}
34179_ACEOF
34180rm -f conftest.$ac_objext conftest$ac_exeext
34181if { (ac_try="$ac_link"
34182case "(($ac_try" in
34183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34184 *) ac_try_echo=$ac_try;;
34185esac
34186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34187$as_echo "$ac_try_echo") >&5
34188 (eval "$ac_link") 2>conftest.er1
34189 ac_status=$?
34190 grep -v '^ *+' conftest.er1 >conftest.err
34191 rm -f conftest.er1
34192 cat conftest.err >&5
34193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); } && {
34195 test -z "$ac_c_werror_flag" ||
34196 test ! -s conftest.err
34197 } && test -s conftest$ac_exeext && {
34198 test "$cross_compiling" = yes ||
34199 $as_test_x conftest$ac_exeext
34200 }; then
34201 ac_cv_lib_bz2__imp__BZ2_decompress=yes
34202else
34203 $as_echo "$as_me: failed program was:" >&5
34204sed 's/^/| /' conftest.$ac_ext >&5
34205
34206 ac_cv_lib_bz2__imp__BZ2_decompress=no
34207fi
34208
34209rm -rf conftest.dSYM
34210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34211 conftest$ac_exeext conftest.$ac_ext
34212LIBS=$ac_check_lib_save_LIBS
34213fi
34214{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
34215$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
34216if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
34217 found_libbz=`expr $found_libbz + 1`
34218fi
34219
34220 fi
34221 if test $found_libbz -gt 0; then
34222 passed=`expr $passed + 1`
34223 else
34224 failed=`expr $failed + 1`
34225 fi
34226 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
34227$as_echo_n "checking if BZLIB package is complete... " >&6; }
34228 if test $passed -gt 0; then
34229 if test $failed -gt 0; then
34230 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
34231$as_echo "no -- some components failed test" >&6; }
34232 have_bzlib='no (failed tests)'
34233 else
34234 BZLIB_LIBS='-lbz2'
34235 LIBS="$BZLIB_LIBS $LIBS"
34236
34237cat >>confdefs.h <<\_ACEOF
34238#define BZLIB_DELEGATE 1
34239_ACEOF
34240
34241 { $as_echo "$as_me:$LINENO: result: yes" >&5
34242$as_echo "yes" >&6; }
34243 have_bzlib='yes'
34244 fi
34245 else
34246 { $as_echo "$as_me:$LINENO: result: no" >&5
34247$as_echo "no" >&6; }
34248 fi
34249fi
34250 if test "$have_bzlib" = 'yes'; then
34251 BZLIB_DELEGATE_TRUE=
34252 BZLIB_DELEGATE_FALSE='#'
34253else
34254 BZLIB_DELEGATE_TRUE='#'
34255 BZLIB_DELEGATE_FALSE=
34256fi
34257
34258
34259
34260#
34261# Find the X11 include and library directories.
34262#
34263IPC_LIBS=''
34264X11_LIBS=''
34265XEXT_LIBS=''
34266XT_LIBS=''
cristyc7083c12009-10-14 03:16:55 +000034267{ $as_echo "$as_me:$LINENO: checking for X" >&5
34268$as_echo_n "checking for X... " >&6; }
34269
34270
34271# Check whether --with-x was given.
34272if test "${with_x+set}" = set; then
34273 withval=$with_x;
34274fi
34275
34276# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
34277if test "x$with_x" = xno; then
34278 # The user explicitly disabled X.
34279 have_x=disabled
34280else
34281 case $x_includes,$x_libraries in #(
34282 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
34283$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
34284 { (exit 1); exit 1; }; };; #(
34285 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
34286 $as_echo_n "(cached) " >&6
34287else
34288 # One or both of the vars are not set, and there is no cached value.
34289ac_x_includes=no ac_x_libraries=no
34290rm -f -r conftest.dir
34291if mkdir conftest.dir; then
34292 cd conftest.dir
34293 cat >Imakefile <<'_ACEOF'
34294incroot:
34295 @echo incroot='${INCROOT}'
34296usrlibdir:
34297 @echo usrlibdir='${USRLIBDIR}'
34298libdir:
34299 @echo libdir='${LIBDIR}'
34300_ACEOF
34301 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
34302 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34303 for ac_var in incroot usrlibdir libdir; do
34304 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
34305 done
34306 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
34307 for ac_extension in a so sl dylib la dll; do
34308 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
34309 test -f "$ac_im_libdir/libX11.$ac_extension"; then
34310 ac_im_usrlibdir=$ac_im_libdir; break
34311 fi
34312 done
34313 # Screen out bogus values from the imake configuration. They are
34314 # bogus both because they are the default anyway, and because
34315 # using them would break gcc on systems where it needs fixed includes.
34316 case $ac_im_incroot in
34317 /usr/include) ac_x_includes= ;;
34318 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
34319 esac
34320 case $ac_im_usrlibdir in
34321 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
34322 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
34323 esac
34324 fi
34325 cd ..
34326 rm -f -r conftest.dir
34327fi
34328
34329# Standard set of common directories for X headers.
34330# Check X11 before X11Rn because it is often a symlink to the current release.
34331ac_x_header_dirs='
34332/usr/X11/include
34333/usr/X11R6/include
34334/usr/X11R5/include
34335/usr/X11R4/include
34336
34337/usr/include/X11
34338/usr/include/X11R6
34339/usr/include/X11R5
34340/usr/include/X11R4
34341
34342/usr/local/X11/include
34343/usr/local/X11R6/include
34344/usr/local/X11R5/include
34345/usr/local/X11R4/include
34346
34347/usr/local/include/X11
34348/usr/local/include/X11R6
34349/usr/local/include/X11R5
34350/usr/local/include/X11R4
34351
34352/usr/X386/include
34353/usr/x386/include
34354/usr/XFree86/include/X11
34355
34356/usr/include
34357/usr/local/include
34358/usr/unsupported/include
34359/usr/athena/include
34360/usr/local/x11r5/include
34361/usr/lpp/Xamples/include
34362
34363/usr/openwin/include
34364/usr/openwin/share/include'
34365
34366if test "$ac_x_includes" = no; then
34367 # Guess where to find include files, by looking for Xlib.h.
34368 # First, try using that file with no special directory specified.
34369 cat >conftest.$ac_ext <<_ACEOF
34370/* confdefs.h. */
34371_ACEOF
34372cat confdefs.h >>conftest.$ac_ext
34373cat >>conftest.$ac_ext <<_ACEOF
34374/* end confdefs.h. */
34375#include <X11/Xlib.h>
34376_ACEOF
34377if { (ac_try="$ac_cpp conftest.$ac_ext"
34378case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34381esac
34382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34383$as_echo "$ac_try_echo") >&5
34384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34385 ac_status=$?
34386 grep -v '^ *+' conftest.er1 >conftest.err
34387 rm -f conftest.er1
34388 cat conftest.err >&5
34389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); } >/dev/null && {
34391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34392 test ! -s conftest.err
34393 }; then
34394 # We can compile using X headers with no special include directory.
34395ac_x_includes=
34396else
34397 $as_echo "$as_me: failed program was:" >&5
34398sed 's/^/| /' conftest.$ac_ext >&5
34399
34400 for ac_dir in $ac_x_header_dirs; do
34401 if test -r "$ac_dir/X11/Xlib.h"; then
34402 ac_x_includes=$ac_dir
34403 break
34404 fi
34405done
34406fi
34407
34408rm -f conftest.err conftest.$ac_ext
34409fi # $ac_x_includes = no
34410
34411if test "$ac_x_libraries" = no; then
34412 # Check for the libraries.
34413 # See if we find them without any special options.
34414 # Don't add to $LIBS permanently.
34415 ac_save_LIBS=$LIBS
34416 LIBS="-lX11 $LIBS"
34417 cat >conftest.$ac_ext <<_ACEOF
34418/* confdefs.h. */
34419_ACEOF
34420cat confdefs.h >>conftest.$ac_ext
34421cat >>conftest.$ac_ext <<_ACEOF
34422/* end confdefs.h. */
34423#include <X11/Xlib.h>
34424int
34425main ()
34426{
34427XrmInitialize ()
34428 ;
34429 return 0;
34430}
34431_ACEOF
34432rm -f conftest.$ac_objext conftest$ac_exeext
34433if { (ac_try="$ac_link"
34434case "(($ac_try" in
34435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34436 *) ac_try_echo=$ac_try;;
34437esac
34438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34439$as_echo "$ac_try_echo") >&5
34440 (eval "$ac_link") 2>conftest.er1
34441 ac_status=$?
34442 grep -v '^ *+' conftest.er1 >conftest.err
34443 rm -f conftest.er1
34444 cat conftest.err >&5
34445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); } && {
34447 test -z "$ac_c_werror_flag" ||
34448 test ! -s conftest.err
34449 } && test -s conftest$ac_exeext && {
34450 test "$cross_compiling" = yes ||
34451 $as_test_x conftest$ac_exeext
34452 }; then
34453 LIBS=$ac_save_LIBS
34454# We can link X programs with no special library path.
34455ac_x_libraries=
34456else
34457 $as_echo "$as_me: failed program was:" >&5
34458sed 's/^/| /' conftest.$ac_ext >&5
34459
34460 LIBS=$ac_save_LIBS
34461for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
34462do
34463 # Don't even attempt the hair of trying to link an X program!
34464 for ac_extension in a so sl dylib la dll; do
34465 if test -r "$ac_dir/libX11.$ac_extension"; then
34466 ac_x_libraries=$ac_dir
34467 break 2
34468 fi
34469 done
34470done
34471fi
34472
34473rm -rf conftest.dSYM
34474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34475 conftest$ac_exeext conftest.$ac_ext
34476fi # $ac_x_libraries = no
34477
34478case $ac_x_includes,$ac_x_libraries in #(
34479 no,* | *,no | *\'*)
34480 # Didn't find X, or a directory has "'" in its name.
34481 ac_cv_have_x="have_x=no";; #(
34482 *)
34483 # Record where we found X for the cache.
34484 ac_cv_have_x="have_x=yes\
34485 ac_x_includes='$ac_x_includes'\
34486 ac_x_libraries='$ac_x_libraries'"
34487esac
34488fi
34489;; #(
34490 *) have_x=yes;;
34491 esac
34492 eval "$ac_cv_have_x"
34493fi # $with_x != no
34494
34495if test "$have_x" != yes; then
34496 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
34497$as_echo "$have_x" >&6; }
34498 no_x=yes
34499else
34500 # If each of the values was on the command line, it overrides each guess.
34501 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
34502 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
34503 # Update the cache value to reflect the command line values.
34504 ac_cv_have_x="have_x=yes\
34505 ac_x_includes='$x_includes'\
34506 ac_x_libraries='$x_libraries'"
34507 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
34508$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
34509fi
34510
cristy3ed852e2009-09-05 21:47:34 +000034511if test "$no_x" = yes; then
34512 # Not all programs may use this symbol, but it does not hurt to define it.
34513
34514cat >>confdefs.h <<\_ACEOF
34515#define X_DISPLAY_MISSING 1
34516_ACEOF
34517
34518 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34519else
34520 if test -n "$x_includes"; then
34521 X_CFLAGS="$X_CFLAGS -I$x_includes"
34522 fi
34523
34524 # It would also be nice to do this for all -L options, not just this one.
34525 if test -n "$x_libraries"; then
34526 X_LIBS="$X_LIBS -L$x_libraries"
34527 # For Solaris; some versions of Sun CC require a space after -R and
34528 # others require no space. Words are not sufficient . . . .
34529 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34530$as_echo_n "checking whether -R must be followed by a space... " >&6; }
34531 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34532 ac_xsave_c_werror_flag=$ac_c_werror_flag
34533 ac_c_werror_flag=yes
34534 cat >conftest.$ac_ext <<_ACEOF
34535/* confdefs.h. */
34536_ACEOF
34537cat confdefs.h >>conftest.$ac_ext
34538cat >>conftest.$ac_ext <<_ACEOF
34539/* end confdefs.h. */
34540
34541int
34542main ()
34543{
34544
34545 ;
34546 return 0;
34547}
34548_ACEOF
34549rm -f conftest.$ac_objext conftest$ac_exeext
34550if { (ac_try="$ac_link"
34551case "(($ac_try" in
34552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553 *) ac_try_echo=$ac_try;;
34554esac
34555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34556$as_echo "$ac_try_echo") >&5
34557 (eval "$ac_link") 2>conftest.er1
34558 ac_status=$?
34559 grep -v '^ *+' conftest.er1 >conftest.err
34560 rm -f conftest.er1
34561 cat conftest.err >&5
34562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563 (exit $ac_status); } && {
34564 test -z "$ac_c_werror_flag" ||
34565 test ! -s conftest.err
34566 } && test -s conftest$ac_exeext && {
34567 test "$cross_compiling" = yes ||
34568 $as_test_x conftest$ac_exeext
34569 }; then
34570 { $as_echo "$as_me:$LINENO: result: no" >&5
34571$as_echo "no" >&6; }
34572 X_LIBS="$X_LIBS -R$x_libraries"
34573else
34574 $as_echo "$as_me: failed program was:" >&5
34575sed 's/^/| /' conftest.$ac_ext >&5
34576
34577 LIBS="$ac_xsave_LIBS -R $x_libraries"
34578 cat >conftest.$ac_ext <<_ACEOF
34579/* confdefs.h. */
34580_ACEOF
34581cat confdefs.h >>conftest.$ac_ext
34582cat >>conftest.$ac_ext <<_ACEOF
34583/* end confdefs.h. */
34584
34585int
34586main ()
34587{
34588
34589 ;
34590 return 0;
34591}
34592_ACEOF
34593rm -f conftest.$ac_objext conftest$ac_exeext
34594if { (ac_try="$ac_link"
34595case "(($ac_try" in
34596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597 *) ac_try_echo=$ac_try;;
34598esac
34599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34600$as_echo "$ac_try_echo") >&5
34601 (eval "$ac_link") 2>conftest.er1
34602 ac_status=$?
34603 grep -v '^ *+' conftest.er1 >conftest.err
34604 rm -f conftest.er1
34605 cat conftest.err >&5
34606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } && {
34608 test -z "$ac_c_werror_flag" ||
34609 test ! -s conftest.err
34610 } && test -s conftest$ac_exeext && {
34611 test "$cross_compiling" = yes ||
34612 $as_test_x conftest$ac_exeext
34613 }; then
34614 { $as_echo "$as_me:$LINENO: result: yes" >&5
34615$as_echo "yes" >&6; }
34616 X_LIBS="$X_LIBS -R $x_libraries"
34617else
34618 $as_echo "$as_me: failed program was:" >&5
34619sed 's/^/| /' conftest.$ac_ext >&5
34620
34621 { $as_echo "$as_me:$LINENO: result: neither works" >&5
34622$as_echo "neither works" >&6; }
34623fi
34624
34625rm -rf conftest.dSYM
34626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34627 conftest$ac_exeext conftest.$ac_ext
34628fi
34629
34630rm -rf conftest.dSYM
34631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34632 conftest$ac_exeext conftest.$ac_ext
34633 ac_c_werror_flag=$ac_xsave_c_werror_flag
34634 LIBS=$ac_xsave_LIBS
34635 fi
34636
34637 # Check for system-dependent libraries X programs must link with.
34638 # Do this before checking for the system-independent R6 libraries
34639 # (-lICE), since we may need -lsocket or whatever for X linking.
34640
34641 if test "$ISC" = yes; then
34642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34643 else
34644 # Martyn Johnson says this is needed for Ultrix, if the X
34645 # libraries were built with DECnet support. And Karl Berry says
34646 # the Alpha needs dnet_stub (dnet does not exist).
34647 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34648 cat >conftest.$ac_ext <<_ACEOF
34649/* confdefs.h. */
34650_ACEOF
34651cat confdefs.h >>conftest.$ac_ext
34652cat >>conftest.$ac_ext <<_ACEOF
34653/* end confdefs.h. */
34654
34655/* Override any GCC internal prototype to avoid an error.
34656 Use char because int might match the return type of a GCC
34657 builtin and then its argument prototype would still apply. */
34658#ifdef __cplusplus
34659extern "C"
34660#endif
34661char XOpenDisplay ();
34662int
34663main ()
34664{
34665return XOpenDisplay ();
34666 ;
34667 return 0;
34668}
34669_ACEOF
34670rm -f conftest.$ac_objext conftest$ac_exeext
34671if { (ac_try="$ac_link"
34672case "(($ac_try" in
34673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34674 *) ac_try_echo=$ac_try;;
34675esac
34676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34677$as_echo "$ac_try_echo") >&5
34678 (eval "$ac_link") 2>conftest.er1
34679 ac_status=$?
34680 grep -v '^ *+' conftest.er1 >conftest.err
34681 rm -f conftest.er1
34682 cat conftest.err >&5
34683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); } && {
34685 test -z "$ac_c_werror_flag" ||
34686 test ! -s conftest.err
34687 } && test -s conftest$ac_exeext && {
34688 test "$cross_compiling" = yes ||
34689 $as_test_x conftest$ac_exeext
34690 }; then
34691 :
34692else
34693 $as_echo "$as_me: failed program was:" >&5
34694sed 's/^/| /' conftest.$ac_ext >&5
34695
34696 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34697$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
34698if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34699 $as_echo_n "(cached) " >&6
34700else
34701 ac_check_lib_save_LIBS=$LIBS
34702LIBS="-ldnet $LIBS"
34703cat >conftest.$ac_ext <<_ACEOF
34704/* confdefs.h. */
34705_ACEOF
34706cat confdefs.h >>conftest.$ac_ext
34707cat >>conftest.$ac_ext <<_ACEOF
34708/* end confdefs.h. */
34709
34710/* Override any GCC internal prototype to avoid an error.
34711 Use char because int might match the return type of a GCC
34712 builtin and then its argument prototype would still apply. */
34713#ifdef __cplusplus
34714extern "C"
34715#endif
34716char dnet_ntoa ();
34717int
34718main ()
34719{
34720return dnet_ntoa ();
34721 ;
34722 return 0;
34723}
34724_ACEOF
34725rm -f conftest.$ac_objext conftest$ac_exeext
34726if { (ac_try="$ac_link"
34727case "(($ac_try" in
34728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34729 *) ac_try_echo=$ac_try;;
34730esac
34731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34732$as_echo "$ac_try_echo") >&5
34733 (eval "$ac_link") 2>conftest.er1
34734 ac_status=$?
34735 grep -v '^ *+' conftest.er1 >conftest.err
34736 rm -f conftest.er1
34737 cat conftest.err >&5
34738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); } && {
34740 test -z "$ac_c_werror_flag" ||
34741 test ! -s conftest.err
34742 } && test -s conftest$ac_exeext && {
34743 test "$cross_compiling" = yes ||
34744 $as_test_x conftest$ac_exeext
34745 }; then
34746 ac_cv_lib_dnet_dnet_ntoa=yes
34747else
34748 $as_echo "$as_me: failed program was:" >&5
34749sed 's/^/| /' conftest.$ac_ext >&5
34750
34751 ac_cv_lib_dnet_dnet_ntoa=no
34752fi
34753
34754rm -rf conftest.dSYM
34755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34756 conftest$ac_exeext conftest.$ac_ext
34757LIBS=$ac_check_lib_save_LIBS
34758fi
34759{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34760$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34761if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
34762 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34763fi
34764
34765 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34766 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34767$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
34768if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34769 $as_echo_n "(cached) " >&6
34770else
34771 ac_check_lib_save_LIBS=$LIBS
34772LIBS="-ldnet_stub $LIBS"
34773cat >conftest.$ac_ext <<_ACEOF
34774/* confdefs.h. */
34775_ACEOF
34776cat confdefs.h >>conftest.$ac_ext
34777cat >>conftest.$ac_ext <<_ACEOF
34778/* end confdefs.h. */
34779
34780/* Override any GCC internal prototype to avoid an error.
34781 Use char because int might match the return type of a GCC
34782 builtin and then its argument prototype would still apply. */
34783#ifdef __cplusplus
34784extern "C"
34785#endif
34786char dnet_ntoa ();
34787int
34788main ()
34789{
34790return dnet_ntoa ();
34791 ;
34792 return 0;
34793}
34794_ACEOF
34795rm -f conftest.$ac_objext conftest$ac_exeext
34796if { (ac_try="$ac_link"
34797case "(($ac_try" in
34798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34799 *) ac_try_echo=$ac_try;;
34800esac
34801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34802$as_echo "$ac_try_echo") >&5
34803 (eval "$ac_link") 2>conftest.er1
34804 ac_status=$?
34805 grep -v '^ *+' conftest.er1 >conftest.err
34806 rm -f conftest.er1
34807 cat conftest.err >&5
34808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } && {
34810 test -z "$ac_c_werror_flag" ||
34811 test ! -s conftest.err
34812 } && test -s conftest$ac_exeext && {
34813 test "$cross_compiling" = yes ||
34814 $as_test_x conftest$ac_exeext
34815 }; then
34816 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34817else
34818 $as_echo "$as_me: failed program was:" >&5
34819sed 's/^/| /' conftest.$ac_ext >&5
34820
34821 ac_cv_lib_dnet_stub_dnet_ntoa=no
34822fi
34823
34824rm -rf conftest.dSYM
34825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34826 conftest$ac_exeext conftest.$ac_ext
34827LIBS=$ac_check_lib_save_LIBS
34828fi
34829{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34830$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34831if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34833fi
34834
34835 fi
34836fi
34837
34838rm -rf conftest.dSYM
34839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34840 conftest$ac_exeext conftest.$ac_ext
34841 LIBS="$ac_xsave_LIBS"
34842
34843 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34844 # to get the SysV transport functions.
34845 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34846 # needs -lnsl.
34847 # The nsl library prevents programs from opening the X display
34848 # on Irix 5.2, according to T.E. Dickey.
34849 # The functions gethostbyname, getservbyname, and inet_addr are
34850 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34851 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34852$as_echo_n "checking for gethostbyname... " >&6; }
34853if test "${ac_cv_func_gethostbyname+set}" = set; then
34854 $as_echo_n "(cached) " >&6
34855else
34856 cat >conftest.$ac_ext <<_ACEOF
34857/* confdefs.h. */
34858_ACEOF
34859cat confdefs.h >>conftest.$ac_ext
34860cat >>conftest.$ac_ext <<_ACEOF
34861/* end confdefs.h. */
34862/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34864#define gethostbyname innocuous_gethostbyname
34865
34866/* System header to define __stub macros and hopefully few prototypes,
34867 which can conflict with char gethostbyname (); below.
34868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34869 <limits.h> exists even on freestanding compilers. */
34870
34871#ifdef __STDC__
34872# include <limits.h>
34873#else
34874# include <assert.h>
34875#endif
34876
34877#undef gethostbyname
34878
34879/* Override any GCC internal prototype to avoid an error.
34880 Use char because int might match the return type of a GCC
34881 builtin and then its argument prototype would still apply. */
34882#ifdef __cplusplus
34883extern "C"
34884#endif
34885char gethostbyname ();
34886/* The GNU C library defines this for functions which it implements
34887 to always fail with ENOSYS. Some functions are actually named
34888 something starting with __ and the normal name is an alias. */
34889#if defined __stub_gethostbyname || defined __stub___gethostbyname
34890choke me
34891#endif
34892
34893int
34894main ()
34895{
34896return gethostbyname ();
34897 ;
34898 return 0;
34899}
34900_ACEOF
34901rm -f conftest.$ac_objext conftest$ac_exeext
34902if { (ac_try="$ac_link"
34903case "(($ac_try" in
34904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34905 *) ac_try_echo=$ac_try;;
34906esac
34907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34908$as_echo "$ac_try_echo") >&5
34909 (eval "$ac_link") 2>conftest.er1
34910 ac_status=$?
34911 grep -v '^ *+' conftest.er1 >conftest.err
34912 rm -f conftest.er1
34913 cat conftest.err >&5
34914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915 (exit $ac_status); } && {
34916 test -z "$ac_c_werror_flag" ||
34917 test ! -s conftest.err
34918 } && test -s conftest$ac_exeext && {
34919 test "$cross_compiling" = yes ||
34920 $as_test_x conftest$ac_exeext
34921 }; then
34922 ac_cv_func_gethostbyname=yes
34923else
34924 $as_echo "$as_me: failed program was:" >&5
34925sed 's/^/| /' conftest.$ac_ext >&5
34926
34927 ac_cv_func_gethostbyname=no
34928fi
34929
34930rm -rf conftest.dSYM
34931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34932 conftest$ac_exeext conftest.$ac_ext
34933fi
34934{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34935$as_echo "$ac_cv_func_gethostbyname" >&6; }
34936
34937 if test $ac_cv_func_gethostbyname = no; then
34938 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34939$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34940if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34941 $as_echo_n "(cached) " >&6
34942else
34943 ac_check_lib_save_LIBS=$LIBS
34944LIBS="-lnsl $LIBS"
34945cat >conftest.$ac_ext <<_ACEOF
34946/* confdefs.h. */
34947_ACEOF
34948cat confdefs.h >>conftest.$ac_ext
34949cat >>conftest.$ac_ext <<_ACEOF
34950/* end confdefs.h. */
34951
34952/* Override any GCC internal prototype to avoid an error.
34953 Use char because int might match the return type of a GCC
34954 builtin and then its argument prototype would still apply. */
34955#ifdef __cplusplus
34956extern "C"
34957#endif
34958char gethostbyname ();
34959int
34960main ()
34961{
34962return gethostbyname ();
34963 ;
34964 return 0;
34965}
34966_ACEOF
34967rm -f conftest.$ac_objext conftest$ac_exeext
34968if { (ac_try="$ac_link"
34969case "(($ac_try" in
34970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34971 *) ac_try_echo=$ac_try;;
34972esac
34973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34974$as_echo "$ac_try_echo") >&5
34975 (eval "$ac_link") 2>conftest.er1
34976 ac_status=$?
34977 grep -v '^ *+' conftest.er1 >conftest.err
34978 rm -f conftest.er1
34979 cat conftest.err >&5
34980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); } && {
34982 test -z "$ac_c_werror_flag" ||
34983 test ! -s conftest.err
34984 } && test -s conftest$ac_exeext && {
34985 test "$cross_compiling" = yes ||
34986 $as_test_x conftest$ac_exeext
34987 }; then
34988 ac_cv_lib_nsl_gethostbyname=yes
34989else
34990 $as_echo "$as_me: failed program was:" >&5
34991sed 's/^/| /' conftest.$ac_ext >&5
34992
34993 ac_cv_lib_nsl_gethostbyname=no
34994fi
34995
34996rm -rf conftest.dSYM
34997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34998 conftest$ac_exeext conftest.$ac_ext
34999LIBS=$ac_check_lib_save_LIBS
35000fi
35001{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
35002$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
35003if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
35004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
35005fi
35006
35007 if test $ac_cv_lib_nsl_gethostbyname = no; then
35008 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
35009$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
35010if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
35011 $as_echo_n "(cached) " >&6
35012else
35013 ac_check_lib_save_LIBS=$LIBS
35014LIBS="-lbsd $LIBS"
35015cat >conftest.$ac_ext <<_ACEOF
35016/* confdefs.h. */
35017_ACEOF
35018cat confdefs.h >>conftest.$ac_ext
35019cat >>conftest.$ac_ext <<_ACEOF
35020/* end confdefs.h. */
35021
35022/* Override any GCC internal prototype to avoid an error.
35023 Use char because int might match the return type of a GCC
35024 builtin and then its argument prototype would still apply. */
35025#ifdef __cplusplus
35026extern "C"
35027#endif
35028char gethostbyname ();
35029int
35030main ()
35031{
35032return gethostbyname ();
35033 ;
35034 return 0;
35035}
35036_ACEOF
35037rm -f conftest.$ac_objext conftest$ac_exeext
35038if { (ac_try="$ac_link"
35039case "(($ac_try" in
35040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35041 *) ac_try_echo=$ac_try;;
35042esac
35043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35044$as_echo "$ac_try_echo") >&5
35045 (eval "$ac_link") 2>conftest.er1
35046 ac_status=$?
35047 grep -v '^ *+' conftest.er1 >conftest.err
35048 rm -f conftest.er1
35049 cat conftest.err >&5
35050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } && {
35052 test -z "$ac_c_werror_flag" ||
35053 test ! -s conftest.err
35054 } && test -s conftest$ac_exeext && {
35055 test "$cross_compiling" = yes ||
35056 $as_test_x conftest$ac_exeext
35057 }; then
35058 ac_cv_lib_bsd_gethostbyname=yes
35059else
35060 $as_echo "$as_me: failed program was:" >&5
35061sed 's/^/| /' conftest.$ac_ext >&5
35062
35063 ac_cv_lib_bsd_gethostbyname=no
35064fi
35065
35066rm -rf conftest.dSYM
35067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35068 conftest$ac_exeext conftest.$ac_ext
35069LIBS=$ac_check_lib_save_LIBS
35070fi
35071{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
35072$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
35073if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
35074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
35075fi
35076
35077 fi
35078 fi
35079
35080 # lieder@skyler.mavd.honeywell.com says without -lsocket,
35081 # socket/setsockopt and other routines are undefined under SCO ODT
35082 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
35083 # on later versions), says Simon Leinen: it contains gethostby*
35084 # variants that don't use the name server (or something). -lsocket
35085 # must be given before -lnsl if both are needed. We assume that
35086 # if connect needs -lnsl, so does gethostbyname.
35087 { $as_echo "$as_me:$LINENO: checking for connect" >&5
35088$as_echo_n "checking for connect... " >&6; }
35089if test "${ac_cv_func_connect+set}" = set; then
35090 $as_echo_n "(cached) " >&6
35091else
35092 cat >conftest.$ac_ext <<_ACEOF
35093/* confdefs.h. */
35094_ACEOF
35095cat confdefs.h >>conftest.$ac_ext
35096cat >>conftest.$ac_ext <<_ACEOF
35097/* end confdefs.h. */
35098/* Define connect to an innocuous variant, in case <limits.h> declares connect.
35099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35100#define connect innocuous_connect
35101
35102/* System header to define __stub macros and hopefully few prototypes,
35103 which can conflict with char connect (); below.
35104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35105 <limits.h> exists even on freestanding compilers. */
35106
35107#ifdef __STDC__
35108# include <limits.h>
35109#else
35110# include <assert.h>
35111#endif
35112
35113#undef connect
35114
35115/* Override any GCC internal prototype to avoid an error.
35116 Use char because int might match the return type of a GCC
35117 builtin and then its argument prototype would still apply. */
35118#ifdef __cplusplus
35119extern "C"
35120#endif
35121char connect ();
35122/* The GNU C library defines this for functions which it implements
35123 to always fail with ENOSYS. Some functions are actually named
35124 something starting with __ and the normal name is an alias. */
35125#if defined __stub_connect || defined __stub___connect
35126choke me
35127#endif
35128
35129int
35130main ()
35131{
35132return connect ();
35133 ;
35134 return 0;
35135}
35136_ACEOF
35137rm -f conftest.$ac_objext conftest$ac_exeext
35138if { (ac_try="$ac_link"
35139case "(($ac_try" in
35140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35141 *) ac_try_echo=$ac_try;;
35142esac
35143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35144$as_echo "$ac_try_echo") >&5
35145 (eval "$ac_link") 2>conftest.er1
35146 ac_status=$?
35147 grep -v '^ *+' conftest.er1 >conftest.err
35148 rm -f conftest.er1
35149 cat conftest.err >&5
35150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); } && {
35152 test -z "$ac_c_werror_flag" ||
35153 test ! -s conftest.err
35154 } && test -s conftest$ac_exeext && {
35155 test "$cross_compiling" = yes ||
35156 $as_test_x conftest$ac_exeext
35157 }; then
35158 ac_cv_func_connect=yes
35159else
35160 $as_echo "$as_me: failed program was:" >&5
35161sed 's/^/| /' conftest.$ac_ext >&5
35162
35163 ac_cv_func_connect=no
35164fi
35165
35166rm -rf conftest.dSYM
35167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35168 conftest$ac_exeext conftest.$ac_ext
35169fi
35170{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
35171$as_echo "$ac_cv_func_connect" >&6; }
35172
35173 if test $ac_cv_func_connect = no; then
35174 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
35175$as_echo_n "checking for connect in -lsocket... " >&6; }
35176if test "${ac_cv_lib_socket_connect+set}" = set; then
35177 $as_echo_n "(cached) " >&6
35178else
35179 ac_check_lib_save_LIBS=$LIBS
35180LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
35181cat >conftest.$ac_ext <<_ACEOF
35182/* confdefs.h. */
35183_ACEOF
35184cat confdefs.h >>conftest.$ac_ext
35185cat >>conftest.$ac_ext <<_ACEOF
35186/* end confdefs.h. */
35187
35188/* Override any GCC internal prototype to avoid an error.
35189 Use char because int might match the return type of a GCC
35190 builtin and then its argument prototype would still apply. */
35191#ifdef __cplusplus
35192extern "C"
35193#endif
35194char connect ();
35195int
35196main ()
35197{
35198return connect ();
35199 ;
35200 return 0;
35201}
35202_ACEOF
35203rm -f conftest.$ac_objext conftest$ac_exeext
35204if { (ac_try="$ac_link"
35205case "(($ac_try" in
35206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35207 *) ac_try_echo=$ac_try;;
35208esac
35209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35210$as_echo "$ac_try_echo") >&5
35211 (eval "$ac_link") 2>conftest.er1
35212 ac_status=$?
35213 grep -v '^ *+' conftest.er1 >conftest.err
35214 rm -f conftest.er1
35215 cat conftest.err >&5
35216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); } && {
35218 test -z "$ac_c_werror_flag" ||
35219 test ! -s conftest.err
35220 } && test -s conftest$ac_exeext && {
35221 test "$cross_compiling" = yes ||
35222 $as_test_x conftest$ac_exeext
35223 }; then
35224 ac_cv_lib_socket_connect=yes
35225else
35226 $as_echo "$as_me: failed program was:" >&5
35227sed 's/^/| /' conftest.$ac_ext >&5
35228
35229 ac_cv_lib_socket_connect=no
35230fi
35231
35232rm -rf conftest.dSYM
35233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35234 conftest$ac_exeext conftest.$ac_ext
35235LIBS=$ac_check_lib_save_LIBS
35236fi
35237{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35238$as_echo "$ac_cv_lib_socket_connect" >&6; }
35239if test "x$ac_cv_lib_socket_connect" = x""yes; then
35240 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35241fi
35242
35243 fi
35244
35245 # Guillermo Gomez says -lposix is necessary on A/UX.
35246 { $as_echo "$as_me:$LINENO: checking for remove" >&5
35247$as_echo_n "checking for remove... " >&6; }
35248if test "${ac_cv_func_remove+set}" = set; then
35249 $as_echo_n "(cached) " >&6
35250else
35251 cat >conftest.$ac_ext <<_ACEOF
35252/* confdefs.h. */
35253_ACEOF
35254cat confdefs.h >>conftest.$ac_ext
35255cat >>conftest.$ac_ext <<_ACEOF
35256/* end confdefs.h. */
35257/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35259#define remove innocuous_remove
35260
35261/* System header to define __stub macros and hopefully few prototypes,
35262 which can conflict with char remove (); below.
35263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35264 <limits.h> exists even on freestanding compilers. */
35265
35266#ifdef __STDC__
35267# include <limits.h>
35268#else
35269# include <assert.h>
35270#endif
35271
35272#undef remove
35273
35274/* Override any GCC internal prototype to avoid an error.
35275 Use char because int might match the return type of a GCC
35276 builtin and then its argument prototype would still apply. */
35277#ifdef __cplusplus
35278extern "C"
35279#endif
35280char remove ();
35281/* The GNU C library defines this for functions which it implements
35282 to always fail with ENOSYS. Some functions are actually named
35283 something starting with __ and the normal name is an alias. */
35284#if defined __stub_remove || defined __stub___remove
35285choke me
35286#endif
35287
35288int
35289main ()
35290{
35291return remove ();
35292 ;
35293 return 0;
35294}
35295_ACEOF
35296rm -f conftest.$ac_objext conftest$ac_exeext
35297if { (ac_try="$ac_link"
35298case "(($ac_try" in
35299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35300 *) ac_try_echo=$ac_try;;
35301esac
35302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35303$as_echo "$ac_try_echo") >&5
35304 (eval "$ac_link") 2>conftest.er1
35305 ac_status=$?
35306 grep -v '^ *+' conftest.er1 >conftest.err
35307 rm -f conftest.er1
35308 cat conftest.err >&5
35309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } && {
35311 test -z "$ac_c_werror_flag" ||
35312 test ! -s conftest.err
35313 } && test -s conftest$ac_exeext && {
35314 test "$cross_compiling" = yes ||
35315 $as_test_x conftest$ac_exeext
35316 }; then
35317 ac_cv_func_remove=yes
35318else
35319 $as_echo "$as_me: failed program was:" >&5
35320sed 's/^/| /' conftest.$ac_ext >&5
35321
35322 ac_cv_func_remove=no
35323fi
35324
35325rm -rf conftest.dSYM
35326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35327 conftest$ac_exeext conftest.$ac_ext
35328fi
35329{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35330$as_echo "$ac_cv_func_remove" >&6; }
35331
35332 if test $ac_cv_func_remove = no; then
35333 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35334$as_echo_n "checking for remove in -lposix... " >&6; }
35335if test "${ac_cv_lib_posix_remove+set}" = set; then
35336 $as_echo_n "(cached) " >&6
35337else
35338 ac_check_lib_save_LIBS=$LIBS
35339LIBS="-lposix $LIBS"
35340cat >conftest.$ac_ext <<_ACEOF
35341/* confdefs.h. */
35342_ACEOF
35343cat confdefs.h >>conftest.$ac_ext
35344cat >>conftest.$ac_ext <<_ACEOF
35345/* end confdefs.h. */
35346
35347/* Override any GCC internal prototype to avoid an error.
35348 Use char because int might match the return type of a GCC
35349 builtin and then its argument prototype would still apply. */
35350#ifdef __cplusplus
35351extern "C"
35352#endif
35353char remove ();
35354int
35355main ()
35356{
35357return remove ();
35358 ;
35359 return 0;
35360}
35361_ACEOF
35362rm -f conftest.$ac_objext conftest$ac_exeext
35363if { (ac_try="$ac_link"
35364case "(($ac_try" in
35365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35366 *) ac_try_echo=$ac_try;;
35367esac
35368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35369$as_echo "$ac_try_echo") >&5
35370 (eval "$ac_link") 2>conftest.er1
35371 ac_status=$?
35372 grep -v '^ *+' conftest.er1 >conftest.err
35373 rm -f conftest.er1
35374 cat conftest.err >&5
35375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); } && {
35377 test -z "$ac_c_werror_flag" ||
35378 test ! -s conftest.err
35379 } && test -s conftest$ac_exeext && {
35380 test "$cross_compiling" = yes ||
35381 $as_test_x conftest$ac_exeext
35382 }; then
35383 ac_cv_lib_posix_remove=yes
35384else
35385 $as_echo "$as_me: failed program was:" >&5
35386sed 's/^/| /' conftest.$ac_ext >&5
35387
35388 ac_cv_lib_posix_remove=no
35389fi
35390
35391rm -rf conftest.dSYM
35392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35393 conftest$ac_exeext conftest.$ac_ext
35394LIBS=$ac_check_lib_save_LIBS
35395fi
35396{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35397$as_echo "$ac_cv_lib_posix_remove" >&6; }
35398if test "x$ac_cv_lib_posix_remove" = x""yes; then
35399 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35400fi
35401
35402 fi
35403
35404 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35405 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
35406$as_echo_n "checking for shmat... " >&6; }
35407if test "${ac_cv_func_shmat+set}" = set; then
35408 $as_echo_n "(cached) " >&6
35409else
35410 cat >conftest.$ac_ext <<_ACEOF
35411/* confdefs.h. */
35412_ACEOF
35413cat confdefs.h >>conftest.$ac_ext
35414cat >>conftest.$ac_ext <<_ACEOF
35415/* end confdefs.h. */
35416/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35418#define shmat innocuous_shmat
35419
35420/* System header to define __stub macros and hopefully few prototypes,
35421 which can conflict with char shmat (); below.
35422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35423 <limits.h> exists even on freestanding compilers. */
35424
35425#ifdef __STDC__
35426# include <limits.h>
35427#else
35428# include <assert.h>
35429#endif
35430
35431#undef shmat
35432
35433/* Override any GCC internal prototype to avoid an error.
35434 Use char because int might match the return type of a GCC
35435 builtin and then its argument prototype would still apply. */
35436#ifdef __cplusplus
35437extern "C"
35438#endif
35439char shmat ();
35440/* The GNU C library defines this for functions which it implements
35441 to always fail with ENOSYS. Some functions are actually named
35442 something starting with __ and the normal name is an alias. */
35443#if defined __stub_shmat || defined __stub___shmat
35444choke me
35445#endif
35446
35447int
35448main ()
35449{
35450return shmat ();
35451 ;
35452 return 0;
35453}
35454_ACEOF
35455rm -f conftest.$ac_objext conftest$ac_exeext
35456if { (ac_try="$ac_link"
35457case "(($ac_try" in
35458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35459 *) ac_try_echo=$ac_try;;
35460esac
35461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35462$as_echo "$ac_try_echo") >&5
35463 (eval "$ac_link") 2>conftest.er1
35464 ac_status=$?
35465 grep -v '^ *+' conftest.er1 >conftest.err
35466 rm -f conftest.er1
35467 cat conftest.err >&5
35468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); } && {
35470 test -z "$ac_c_werror_flag" ||
35471 test ! -s conftest.err
35472 } && test -s conftest$ac_exeext && {
35473 test "$cross_compiling" = yes ||
35474 $as_test_x conftest$ac_exeext
35475 }; then
35476 ac_cv_func_shmat=yes
35477else
35478 $as_echo "$as_me: failed program was:" >&5
35479sed 's/^/| /' conftest.$ac_ext >&5
35480
35481 ac_cv_func_shmat=no
35482fi
35483
35484rm -rf conftest.dSYM
35485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35486 conftest$ac_exeext conftest.$ac_ext
35487fi
35488{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35489$as_echo "$ac_cv_func_shmat" >&6; }
35490
35491 if test $ac_cv_func_shmat = no; then
35492 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35493$as_echo_n "checking for shmat in -lipc... " >&6; }
35494if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35495 $as_echo_n "(cached) " >&6
35496else
35497 ac_check_lib_save_LIBS=$LIBS
35498LIBS="-lipc $LIBS"
35499cat >conftest.$ac_ext <<_ACEOF
35500/* confdefs.h. */
35501_ACEOF
35502cat confdefs.h >>conftest.$ac_ext
35503cat >>conftest.$ac_ext <<_ACEOF
35504/* end confdefs.h. */
35505
35506/* Override any GCC internal prototype to avoid an error.
35507 Use char because int might match the return type of a GCC
35508 builtin and then its argument prototype would still apply. */
35509#ifdef __cplusplus
35510extern "C"
35511#endif
35512char shmat ();
35513int
35514main ()
35515{
35516return shmat ();
35517 ;
35518 return 0;
35519}
35520_ACEOF
35521rm -f conftest.$ac_objext conftest$ac_exeext
35522if { (ac_try="$ac_link"
35523case "(($ac_try" in
35524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35525 *) ac_try_echo=$ac_try;;
35526esac
35527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35528$as_echo "$ac_try_echo") >&5
35529 (eval "$ac_link") 2>conftest.er1
35530 ac_status=$?
35531 grep -v '^ *+' conftest.er1 >conftest.err
35532 rm -f conftest.er1
35533 cat conftest.err >&5
35534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); } && {
35536 test -z "$ac_c_werror_flag" ||
35537 test ! -s conftest.err
35538 } && test -s conftest$ac_exeext && {
35539 test "$cross_compiling" = yes ||
35540 $as_test_x conftest$ac_exeext
35541 }; then
35542 ac_cv_lib_ipc_shmat=yes
35543else
35544 $as_echo "$as_me: failed program was:" >&5
35545sed 's/^/| /' conftest.$ac_ext >&5
35546
35547 ac_cv_lib_ipc_shmat=no
35548fi
35549
35550rm -rf conftest.dSYM
35551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35552 conftest$ac_exeext conftest.$ac_ext
35553LIBS=$ac_check_lib_save_LIBS
35554fi
35555{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35556$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
35557if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
35558 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35559fi
35560
35561 fi
35562 fi
35563
35564 # Check for libraries that X11R6 Xt/Xaw programs need.
35565 ac_save_LDFLAGS=$LDFLAGS
35566 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35567 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35568 # check for ICE first), but we must link in the order -lSM -lICE or
35569 # we get undefined symbols. So assume we have SM if we have ICE.
35570 # These have to be linked with before -lX11, unlike the other
35571 # libraries we check for below, so use a different variable.
35572 # John Interrante, Karl Berry
35573 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35574$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
35575if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35576 $as_echo_n "(cached) " >&6
35577else
35578 ac_check_lib_save_LIBS=$LIBS
35579LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35580cat >conftest.$ac_ext <<_ACEOF
35581/* confdefs.h. */
35582_ACEOF
35583cat confdefs.h >>conftest.$ac_ext
35584cat >>conftest.$ac_ext <<_ACEOF
35585/* end confdefs.h. */
35586
35587/* Override any GCC internal prototype to avoid an error.
35588 Use char because int might match the return type of a GCC
35589 builtin and then its argument prototype would still apply. */
35590#ifdef __cplusplus
35591extern "C"
35592#endif
35593char IceConnectionNumber ();
35594int
35595main ()
35596{
35597return IceConnectionNumber ();
35598 ;
35599 return 0;
35600}
35601_ACEOF
35602rm -f conftest.$ac_objext conftest$ac_exeext
35603if { (ac_try="$ac_link"
35604case "(($ac_try" in
35605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35606 *) ac_try_echo=$ac_try;;
35607esac
35608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35609$as_echo "$ac_try_echo") >&5
35610 (eval "$ac_link") 2>conftest.er1
35611 ac_status=$?
35612 grep -v '^ *+' conftest.er1 >conftest.err
35613 rm -f conftest.er1
35614 cat conftest.err >&5
35615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616 (exit $ac_status); } && {
35617 test -z "$ac_c_werror_flag" ||
35618 test ! -s conftest.err
35619 } && test -s conftest$ac_exeext && {
35620 test "$cross_compiling" = yes ||
35621 $as_test_x conftest$ac_exeext
35622 }; then
35623 ac_cv_lib_ICE_IceConnectionNumber=yes
35624else
35625 $as_echo "$as_me: failed program was:" >&5
35626sed 's/^/| /' conftest.$ac_ext >&5
35627
35628 ac_cv_lib_ICE_IceConnectionNumber=no
35629fi
35630
35631rm -rf conftest.dSYM
35632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35633 conftest$ac_exeext conftest.$ac_ext
35634LIBS=$ac_check_lib_save_LIBS
35635fi
35636{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35637$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35638if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
35639 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35640fi
35641
35642 LDFLAGS=$ac_save_LDFLAGS
35643
35644fi
35645
35646if test "$no_x" != 'yes'; then
35647 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35648$as_echo "-------------------------------------------------------------" >&6; }
35649 { $as_echo "$as_me:$LINENO: checking for X11" >&5
35650$as_echo_n "checking for X11... " >&6; }
35651 { $as_echo "$as_me:$LINENO: result: " >&5
35652$as_echo "" >&6; }
35653 LDFLAGS="$LDFLAGS $X_LIBS"
35654 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
35655 LIBS="$X11_LIBS $LIBS"
35656 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
35657
35658
35659cat >>confdefs.h <<\_ACEOF
35660#define X11_DELEGATE 1
35661_ACEOF
35662
35663 #
35664 # Check for X11 shared memory extension
35665 #
35666 # shmctl is required to support the shared memory extension
35667 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
35668$as_echo_n "checking for shmctl... " >&6; }
35669if test "${ac_cv_func_shmctl+set}" = set; then
35670 $as_echo_n "(cached) " >&6
35671else
35672 cat >conftest.$ac_ext <<_ACEOF
35673/* confdefs.h. */
35674_ACEOF
35675cat confdefs.h >>conftest.$ac_ext
35676cat >>conftest.$ac_ext <<_ACEOF
35677/* end confdefs.h. */
35678/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
35679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35680#define shmctl innocuous_shmctl
35681
35682/* System header to define __stub macros and hopefully few prototypes,
35683 which can conflict with char shmctl (); below.
35684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35685 <limits.h> exists even on freestanding compilers. */
35686
35687#ifdef __STDC__
35688# include <limits.h>
35689#else
35690# include <assert.h>
35691#endif
35692
35693#undef shmctl
35694
35695/* Override any GCC internal prototype to avoid an error.
35696 Use char because int might match the return type of a GCC
35697 builtin and then its argument prototype would still apply. */
35698#ifdef __cplusplus
35699extern "C"
35700#endif
35701char shmctl ();
35702/* The GNU C library defines this for functions which it implements
35703 to always fail with ENOSYS. Some functions are actually named
35704 something starting with __ and the normal name is an alias. */
35705#if defined __stub_shmctl || defined __stub___shmctl
35706choke me
35707#endif
35708
35709int
35710main ()
35711{
35712return shmctl ();
35713 ;
35714 return 0;
35715}
35716_ACEOF
35717rm -f conftest.$ac_objext conftest$ac_exeext
35718if { (ac_try="$ac_link"
35719case "(($ac_try" in
35720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35721 *) ac_try_echo=$ac_try;;
35722esac
35723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35724$as_echo "$ac_try_echo") >&5
35725 (eval "$ac_link") 2>conftest.er1
35726 ac_status=$?
35727 grep -v '^ *+' conftest.er1 >conftest.err
35728 rm -f conftest.er1
35729 cat conftest.err >&5
35730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); } && {
35732 test -z "$ac_c_werror_flag" ||
35733 test ! -s conftest.err
35734 } && test -s conftest$ac_exeext && {
35735 test "$cross_compiling" = yes ||
35736 $as_test_x conftest$ac_exeext
35737 }; then
35738 ac_cv_func_shmctl=yes
35739else
35740 $as_echo "$as_me: failed program was:" >&5
35741sed 's/^/| /' conftest.$ac_ext >&5
35742
35743 ac_cv_func_shmctl=no
35744fi
35745
35746rm -rf conftest.dSYM
35747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35748 conftest$ac_exeext conftest.$ac_ext
35749fi
35750{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
35751$as_echo "$ac_cv_func_shmctl" >&6; }
35752if test "x$ac_cv_func_shmctl" = x""yes; then
35753 have_shmctl='yes'
35754fi
35755
35756 if test "$have_shmctl" != 'yes'; then
35757 PERSIST_LIBS=$LIBS
35758 LIBS="$LIBS -lcygipc"
35759 cat >conftest.$ac_ext <<_ACEOF
35760/* confdefs.h. */
35761_ACEOF
35762cat confdefs.h >>conftest.$ac_ext
35763cat >>conftest.$ac_ext <<_ACEOF
35764/* end confdefs.h. */
35765
35766/* Override any GCC internal prototype to avoid an error.
35767 Use char because int might match the return type of a GCC
35768 builtin and then its argument prototype would still apply. */
35769#ifdef __cplusplus
35770extern "C"
35771#endif
35772char shmctl ();
35773int
35774main ()
35775{
35776return shmctl ();
35777 ;
35778 return 0;
35779}
35780_ACEOF
35781rm -f conftest.$ac_objext conftest$ac_exeext
35782if { (ac_try="$ac_link"
35783case "(($ac_try" in
35784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35785 *) ac_try_echo=$ac_try;;
35786esac
35787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35788$as_echo "$ac_try_echo") >&5
35789 (eval "$ac_link") 2>conftest.er1
35790 ac_status=$?
35791 grep -v '^ *+' conftest.er1 >conftest.err
35792 rm -f conftest.er1
35793 cat conftest.err >&5
35794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); } && {
35796 test -z "$ac_c_werror_flag" ||
35797 test ! -s conftest.err
35798 } && test -s conftest$ac_exeext && {
35799 test "$cross_compiling" = yes ||
35800 $as_test_x conftest$ac_exeext
35801 }; then
35802 have_shmctl='yes'; IPC_LIBS='-lcygipc'
35803else
35804 $as_echo "$as_me: failed program was:" >&5
35805sed 's/^/| /' conftest.$ac_ext >&5
35806
35807
35808fi
35809
35810rm -rf conftest.dSYM
35811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35812 conftest$ac_exeext conftest.$ac_ext
35813 LIBS=$PERSIST_LIBS
35814 fi
35815
35816 if test "$have_shmctl" = 'yes'; then
35817 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35818$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35819if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35820 $as_echo_n "(cached) " >&6
35821else
35822 ac_check_lib_save_LIBS=$LIBS
35823LIBS="-lXext $LIBS"
35824cat >conftest.$ac_ext <<_ACEOF
35825/* confdefs.h. */
35826_ACEOF
35827cat confdefs.h >>conftest.$ac_ext
35828cat >>conftest.$ac_ext <<_ACEOF
35829/* end confdefs.h. */
35830
35831/* Override any GCC internal prototype to avoid an error.
35832 Use char because int might match the return type of a GCC
35833 builtin and then its argument prototype would still apply. */
35834#ifdef __cplusplus
35835extern "C"
35836#endif
35837char XShmAttach ();
35838int
35839main ()
35840{
35841return XShmAttach ();
35842 ;
35843 return 0;
35844}
35845_ACEOF
35846rm -f conftest.$ac_objext conftest$ac_exeext
35847if { (ac_try="$ac_link"
35848case "(($ac_try" in
35849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35850 *) ac_try_echo=$ac_try;;
35851esac
35852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35853$as_echo "$ac_try_echo") >&5
35854 (eval "$ac_link") 2>conftest.er1
35855 ac_status=$?
35856 grep -v '^ *+' conftest.er1 >conftest.err
35857 rm -f conftest.er1
35858 cat conftest.err >&5
35859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); } && {
35861 test -z "$ac_c_werror_flag" ||
35862 test ! -s conftest.err
35863 } && test -s conftest$ac_exeext && {
35864 test "$cross_compiling" = yes ||
35865 $as_test_x conftest$ac_exeext
35866 }; then
35867 ac_cv_lib_Xext_XShmAttach=yes
35868else
35869 $as_echo "$as_me: failed program was:" >&5
35870sed 's/^/| /' conftest.$ac_ext >&5
35871
35872 ac_cv_lib_Xext_XShmAttach=no
35873fi
35874
35875rm -rf conftest.dSYM
35876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35877 conftest$ac_exeext conftest.$ac_ext
35878LIBS=$ac_check_lib_save_LIBS
35879fi
35880{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35881$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35882if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35883 XEXT_LIBS='-lXext' ;
35884cat >>confdefs.h <<\_ACEOF
35885#define HAVE_SHARED_MEMORY 1
35886_ACEOF
35887
35888fi
35889
35890 fi
35891
35892 #
35893 # Check for X11 shape extension
35894 #
35895 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35896$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35897if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35898 $as_echo_n "(cached) " >&6
35899else
35900 ac_check_lib_save_LIBS=$LIBS
35901LIBS="-lXext $LIBS"
35902cat >conftest.$ac_ext <<_ACEOF
35903/* confdefs.h. */
35904_ACEOF
35905cat confdefs.h >>conftest.$ac_ext
35906cat >>conftest.$ac_ext <<_ACEOF
35907/* end confdefs.h. */
35908
35909/* Override any GCC internal prototype to avoid an error.
35910 Use char because int might match the return type of a GCC
35911 builtin and then its argument prototype would still apply. */
35912#ifdef __cplusplus
35913extern "C"
35914#endif
35915char XShapeCombineMask ();
35916int
35917main ()
35918{
35919return XShapeCombineMask ();
35920 ;
35921 return 0;
35922}
35923_ACEOF
35924rm -f conftest.$ac_objext conftest$ac_exeext
35925if { (ac_try="$ac_link"
35926case "(($ac_try" in
35927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35928 *) ac_try_echo=$ac_try;;
35929esac
35930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35931$as_echo "$ac_try_echo") >&5
35932 (eval "$ac_link") 2>conftest.er1
35933 ac_status=$?
35934 grep -v '^ *+' conftest.er1 >conftest.err
35935 rm -f conftest.er1
35936 cat conftest.err >&5
35937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } && {
35939 test -z "$ac_c_werror_flag" ||
35940 test ! -s conftest.err
35941 } && test -s conftest$ac_exeext && {
35942 test "$cross_compiling" = yes ||
35943 $as_test_x conftest$ac_exeext
35944 }; then
35945 ac_cv_lib_Xext_XShapeCombineMask=yes
35946else
35947 $as_echo "$as_me: failed program was:" >&5
35948sed 's/^/| /' conftest.$ac_ext >&5
35949
35950 ac_cv_lib_Xext_XShapeCombineMask=no
35951fi
35952
35953rm -rf conftest.dSYM
35954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35955 conftest$ac_exeext conftest.$ac_ext
35956LIBS=$ac_check_lib_save_LIBS
35957fi
35958{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35959$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35960if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35961 XEXT_LIBS='-lXext' ;
35962cat >>confdefs.h <<\_ACEOF
35963#define HAVE_SHAPE 1
35964_ACEOF
35965
35966fi
35967
35968 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35969$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35970if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
35971 $as_echo_n "(cached) " >&6
35972else
35973 ac_check_lib_save_LIBS=$LIBS
35974LIBS="-lXt $LIBS"
35975cat >conftest.$ac_ext <<_ACEOF
35976/* confdefs.h. */
35977_ACEOF
35978cat confdefs.h >>conftest.$ac_ext
35979cat >>conftest.$ac_ext <<_ACEOF
35980/* end confdefs.h. */
35981
35982/* Override any GCC internal prototype to avoid an error.
35983 Use char because int might match the return type of a GCC
35984 builtin and then its argument prototype would still apply. */
35985#ifdef __cplusplus
35986extern "C"
35987#endif
35988char XtSetEventDispatcher ();
35989int
35990main ()
35991{
35992return XtSetEventDispatcher ();
35993 ;
35994 return 0;
35995}
35996_ACEOF
35997rm -f conftest.$ac_objext conftest$ac_exeext
35998if { (ac_try="$ac_link"
35999case "(($ac_try" in
36000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36001 *) ac_try_echo=$ac_try;;
36002esac
36003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36004$as_echo "$ac_try_echo") >&5
36005 (eval "$ac_link") 2>conftest.er1
36006 ac_status=$?
36007 grep -v '^ *+' conftest.er1 >conftest.err
36008 rm -f conftest.er1
36009 cat conftest.err >&5
36010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); } && {
36012 test -z "$ac_c_werror_flag" ||
36013 test ! -s conftest.err
36014 } && test -s conftest$ac_exeext && {
36015 test "$cross_compiling" = yes ||
36016 $as_test_x conftest$ac_exeext
36017 }; then
36018 ac_cv_lib_Xt_XtSetEventDispatcher=yes
36019else
36020 $as_echo "$as_me: failed program was:" >&5
36021sed 's/^/| /' conftest.$ac_ext >&5
36022
36023 ac_cv_lib_Xt_XtSetEventDispatcher=no
36024fi
36025
36026rm -rf conftest.dSYM
36027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36028 conftest$ac_exeext conftest.$ac_ext
36029LIBS=$ac_check_lib_save_LIBS
36030fi
36031{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
36032$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
36033if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
36034 XT_LIBS='-lXt'
36035fi
36036
36037 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
36038fi
36039if test "$no_x" != 'yes'; then
36040 have_x='yes'
36041else
36042 have_x='no'
36043fi
36044 if test "$have_x" = 'yes'; then
36045 X11_DELEGATE_TRUE=
36046 X11_DELEGATE_FALSE='#'
36047else
36048 X11_DELEGATE_TRUE='#'
36049 X11_DELEGATE_FALSE=
36050fi
36051
36052
36053
36054
36055
36056#
36057# Check for ZLIB
36058#
36059
36060# Check whether --with-zlib was given.
36061if test "${with_zlib+set}" = set; then
36062 withval=$with_zlib; with_zlib=$withval
36063else
36064 with_zlib='yes'
36065fi
36066
36067
36068if test "$with_zlib" != 'yes'; then
36069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
36070fi
36071
36072have_zlib='no'
36073ZLIB_LIBS=''
36074if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
36075 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36076$as_echo "-------------------------------------------------------------" >&6; }
36077 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
36078$as_echo_n "checking for ZLIB... " >&6; }
36079 { $as_echo "$as_me:$LINENO: result: " >&5
36080$as_echo "" >&6; }
36081 ZLIB_LIBS=''
36082 failed=0
36083 passed=0
36084 if test "${ac_cv_header_zconf_h+set}" = set; then
36085 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36086$as_echo_n "checking for zconf.h... " >&6; }
36087if test "${ac_cv_header_zconf_h+set}" = set; then
36088 $as_echo_n "(cached) " >&6
36089fi
36090{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36091$as_echo "$ac_cv_header_zconf_h" >&6; }
36092else
36093 # Is the header compilable?
36094{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
36095$as_echo_n "checking zconf.h usability... " >&6; }
36096cat >conftest.$ac_ext <<_ACEOF
36097/* confdefs.h. */
36098_ACEOF
36099cat confdefs.h >>conftest.$ac_ext
36100cat >>conftest.$ac_ext <<_ACEOF
36101/* end confdefs.h. */
36102$ac_includes_default
36103#include <zconf.h>
36104_ACEOF
36105rm -f conftest.$ac_objext
36106if { (ac_try="$ac_compile"
36107case "(($ac_try" in
36108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36109 *) ac_try_echo=$ac_try;;
36110esac
36111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36112$as_echo "$ac_try_echo") >&5
36113 (eval "$ac_compile") 2>conftest.er1
36114 ac_status=$?
36115 grep -v '^ *+' conftest.er1 >conftest.err
36116 rm -f conftest.er1
36117 cat conftest.err >&5
36118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } && {
36120 test -z "$ac_c_werror_flag" ||
36121 test ! -s conftest.err
36122 } && test -s conftest.$ac_objext; then
36123 ac_header_compiler=yes
36124else
36125 $as_echo "$as_me: failed program was:" >&5
36126sed 's/^/| /' conftest.$ac_ext >&5
36127
36128 ac_header_compiler=no
36129fi
36130
36131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36132{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36133$as_echo "$ac_header_compiler" >&6; }
36134
36135# Is the header present?
36136{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
36137$as_echo_n "checking zconf.h presence... " >&6; }
36138cat >conftest.$ac_ext <<_ACEOF
36139/* confdefs.h. */
36140_ACEOF
36141cat confdefs.h >>conftest.$ac_ext
36142cat >>conftest.$ac_ext <<_ACEOF
36143/* end confdefs.h. */
36144#include <zconf.h>
36145_ACEOF
36146if { (ac_try="$ac_cpp conftest.$ac_ext"
36147case "(($ac_try" in
36148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36149 *) ac_try_echo=$ac_try;;
36150esac
36151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36152$as_echo "$ac_try_echo") >&5
36153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36154 ac_status=$?
36155 grep -v '^ *+' conftest.er1 >conftest.err
36156 rm -f conftest.er1
36157 cat conftest.err >&5
36158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); } >/dev/null && {
36160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36161 test ! -s conftest.err
36162 }; then
36163 ac_header_preproc=yes
36164else
36165 $as_echo "$as_me: failed program was:" >&5
36166sed 's/^/| /' conftest.$ac_ext >&5
36167
36168 ac_header_preproc=no
36169fi
36170
36171rm -f conftest.err conftest.$ac_ext
36172{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36173$as_echo "$ac_header_preproc" >&6; }
36174
36175# So? What about this header?
36176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36177 yes:no: )
36178 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
36179$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36180 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
36181$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
36182 ac_header_preproc=yes
36183 ;;
36184 no:yes:* )
36185 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
36186$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
36187 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
36188$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
36189 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
36190$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
36191 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
36192$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
36193 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
36194$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
36195 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
36196$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
36197 ( cat <<\_ASBOX
36198## ----------------------------------------- ##
36199## Report this to http://www.imagemagick.org ##
36200## ----------------------------------------- ##
36201_ASBOX
36202 ) | sed "s/^/$as_me: WARNING: /" >&2
36203 ;;
36204esac
36205{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36206$as_echo_n "checking for zconf.h... " >&6; }
36207if test "${ac_cv_header_zconf_h+set}" = set; then
36208 $as_echo_n "(cached) " >&6
36209else
36210 ac_cv_header_zconf_h=$ac_header_preproc
36211fi
36212{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36213$as_echo "$ac_cv_header_zconf_h" >&6; }
36214
36215fi
36216if test "x$ac_cv_header_zconf_h" = x""yes; then
36217 passed=`expr $passed + 1`
36218else
36219 failed=`expr $failed + 1`
36220fi
36221
36222
36223 if test "${ac_cv_header_zlib_h+set}" = set; then
36224 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36225$as_echo_n "checking for zlib.h... " >&6; }
36226if test "${ac_cv_header_zlib_h+set}" = set; then
36227 $as_echo_n "(cached) " >&6
36228fi
36229{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36230$as_echo "$ac_cv_header_zlib_h" >&6; }
36231else
36232 # Is the header compilable?
36233{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
36234$as_echo_n "checking zlib.h usability... " >&6; }
36235cat >conftest.$ac_ext <<_ACEOF
36236/* confdefs.h. */
36237_ACEOF
36238cat confdefs.h >>conftest.$ac_ext
36239cat >>conftest.$ac_ext <<_ACEOF
36240/* end confdefs.h. */
36241$ac_includes_default
36242#include <zlib.h>
36243_ACEOF
36244rm -f conftest.$ac_objext
36245if { (ac_try="$ac_compile"
36246case "(($ac_try" in
36247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36248 *) ac_try_echo=$ac_try;;
36249esac
36250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36251$as_echo "$ac_try_echo") >&5
36252 (eval "$ac_compile") 2>conftest.er1
36253 ac_status=$?
36254 grep -v '^ *+' conftest.er1 >conftest.err
36255 rm -f conftest.er1
36256 cat conftest.err >&5
36257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); } && {
36259 test -z "$ac_c_werror_flag" ||
36260 test ! -s conftest.err
36261 } && test -s conftest.$ac_objext; then
36262 ac_header_compiler=yes
36263else
36264 $as_echo "$as_me: failed program was:" >&5
36265sed 's/^/| /' conftest.$ac_ext >&5
36266
36267 ac_header_compiler=no
36268fi
36269
36270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36271{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36272$as_echo "$ac_header_compiler" >&6; }
36273
36274# Is the header present?
36275{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
36276$as_echo_n "checking zlib.h presence... " >&6; }
36277cat >conftest.$ac_ext <<_ACEOF
36278/* confdefs.h. */
36279_ACEOF
36280cat confdefs.h >>conftest.$ac_ext
36281cat >>conftest.$ac_ext <<_ACEOF
36282/* end confdefs.h. */
36283#include <zlib.h>
36284_ACEOF
36285if { (ac_try="$ac_cpp conftest.$ac_ext"
36286case "(($ac_try" in
36287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36288 *) ac_try_echo=$ac_try;;
36289esac
36290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36291$as_echo "$ac_try_echo") >&5
36292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36293 ac_status=$?
36294 grep -v '^ *+' conftest.er1 >conftest.err
36295 rm -f conftest.er1
36296 cat conftest.err >&5
36297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); } >/dev/null && {
36299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36300 test ! -s conftest.err
36301 }; then
36302 ac_header_preproc=yes
36303else
36304 $as_echo "$as_me: failed program was:" >&5
36305sed 's/^/| /' conftest.$ac_ext >&5
36306
36307 ac_header_preproc=no
36308fi
36309
36310rm -f conftest.err conftest.$ac_ext
36311{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36312$as_echo "$ac_header_preproc" >&6; }
36313
36314# So? What about this header?
36315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36316 yes:no: )
36317 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36318$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36319 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36320$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36321 ac_header_preproc=yes
36322 ;;
36323 no:yes:* )
36324 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36325$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36326 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36327$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36328 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36329$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36330 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36331$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36332 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36333$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36334 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36335$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36336 ( cat <<\_ASBOX
36337## ----------------------------------------- ##
36338## Report this to http://www.imagemagick.org ##
36339## ----------------------------------------- ##
36340_ASBOX
36341 ) | sed "s/^/$as_me: WARNING: /" >&2
36342 ;;
36343esac
36344{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36345$as_echo_n "checking for zlib.h... " >&6; }
36346if test "${ac_cv_header_zlib_h+set}" = set; then
36347 $as_echo_n "(cached) " >&6
36348else
36349 ac_cv_header_zlib_h=$ac_header_preproc
36350fi
36351{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36352$as_echo "$ac_cv_header_zlib_h" >&6; }
36353
36354fi
36355if test "x$ac_cv_header_zlib_h" = x""yes; then
36356 passed=`expr $passed + 1`
36357else
36358 failed=`expr $failed + 1`
36359fi
36360
36361
36362 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
36363$as_echo_n "checking for compress in -lz... " >&6; }
36364if test "${ac_cv_lib_z_compress+set}" = set; then
36365 $as_echo_n "(cached) " >&6
36366else
36367 ac_check_lib_save_LIBS=$LIBS
36368LIBS="-lz $LIBS"
36369cat >conftest.$ac_ext <<_ACEOF
36370/* confdefs.h. */
36371_ACEOF
36372cat confdefs.h >>conftest.$ac_ext
36373cat >>conftest.$ac_ext <<_ACEOF
36374/* end confdefs.h. */
36375
36376/* Override any GCC internal prototype to avoid an error.
36377 Use char because int might match the return type of a GCC
36378 builtin and then its argument prototype would still apply. */
36379#ifdef __cplusplus
36380extern "C"
36381#endif
36382char compress ();
36383int
36384main ()
36385{
36386return compress ();
36387 ;
36388 return 0;
36389}
36390_ACEOF
36391rm -f conftest.$ac_objext conftest$ac_exeext
36392if { (ac_try="$ac_link"
36393case "(($ac_try" in
36394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395 *) ac_try_echo=$ac_try;;
36396esac
36397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36398$as_echo "$ac_try_echo") >&5
36399 (eval "$ac_link") 2>conftest.er1
36400 ac_status=$?
36401 grep -v '^ *+' conftest.er1 >conftest.err
36402 rm -f conftest.er1
36403 cat conftest.err >&5
36404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } && {
36406 test -z "$ac_c_werror_flag" ||
36407 test ! -s conftest.err
36408 } && test -s conftest$ac_exeext && {
36409 test "$cross_compiling" = yes ||
36410 $as_test_x conftest$ac_exeext
36411 }; then
36412 ac_cv_lib_z_compress=yes
36413else
36414 $as_echo "$as_me: failed program was:" >&5
36415sed 's/^/| /' conftest.$ac_ext >&5
36416
36417 ac_cv_lib_z_compress=no
36418fi
36419
36420rm -rf conftest.dSYM
36421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36422 conftest$ac_exeext conftest.$ac_ext
36423LIBS=$ac_check_lib_save_LIBS
36424fi
36425{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
36426$as_echo "$ac_cv_lib_z_compress" >&6; }
36427if test "x$ac_cv_lib_z_compress" = x""yes; then
36428 passed=`expr $passed + 1`
36429else
36430 failed=`expr $failed + 1`
36431fi
36432
36433 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
36434$as_echo_n "checking for uncompress in -lz... " >&6; }
36435if test "${ac_cv_lib_z_uncompress+set}" = set; then
36436 $as_echo_n "(cached) " >&6
36437else
36438 ac_check_lib_save_LIBS=$LIBS
36439LIBS="-lz $LIBS"
36440cat >conftest.$ac_ext <<_ACEOF
36441/* confdefs.h. */
36442_ACEOF
36443cat confdefs.h >>conftest.$ac_ext
36444cat >>conftest.$ac_ext <<_ACEOF
36445/* end confdefs.h. */
36446
36447/* Override any GCC internal prototype to avoid an error.
36448 Use char because int might match the return type of a GCC
36449 builtin and then its argument prototype would still apply. */
36450#ifdef __cplusplus
36451extern "C"
36452#endif
36453char uncompress ();
36454int
36455main ()
36456{
36457return uncompress ();
36458 ;
36459 return 0;
36460}
36461_ACEOF
36462rm -f conftest.$ac_objext conftest$ac_exeext
36463if { (ac_try="$ac_link"
36464case "(($ac_try" in
36465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36466 *) ac_try_echo=$ac_try;;
36467esac
36468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36469$as_echo "$ac_try_echo") >&5
36470 (eval "$ac_link") 2>conftest.er1
36471 ac_status=$?
36472 grep -v '^ *+' conftest.er1 >conftest.err
36473 rm -f conftest.er1
36474 cat conftest.err >&5
36475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36476 (exit $ac_status); } && {
36477 test -z "$ac_c_werror_flag" ||
36478 test ! -s conftest.err
36479 } && test -s conftest$ac_exeext && {
36480 test "$cross_compiling" = yes ||
36481 $as_test_x conftest$ac_exeext
36482 }; then
36483 ac_cv_lib_z_uncompress=yes
36484else
36485 $as_echo "$as_me: failed program was:" >&5
36486sed 's/^/| /' conftest.$ac_ext >&5
36487
36488 ac_cv_lib_z_uncompress=no
36489fi
36490
36491rm -rf conftest.dSYM
36492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36493 conftest$ac_exeext conftest.$ac_ext
36494LIBS=$ac_check_lib_save_LIBS
36495fi
36496{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
36497$as_echo "$ac_cv_lib_z_uncompress" >&6; }
36498if test "x$ac_cv_lib_z_uncompress" = x""yes; then
36499 passed=`expr $passed + 1`
36500else
36501 failed=`expr $failed + 1`
36502fi
36503
36504 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
36505$as_echo_n "checking for deflate in -lz... " >&6; }
36506if test "${ac_cv_lib_z_deflate+set}" = set; then
36507 $as_echo_n "(cached) " >&6
36508else
36509 ac_check_lib_save_LIBS=$LIBS
36510LIBS="-lz $LIBS"
36511cat >conftest.$ac_ext <<_ACEOF
36512/* confdefs.h. */
36513_ACEOF
36514cat confdefs.h >>conftest.$ac_ext
36515cat >>conftest.$ac_ext <<_ACEOF
36516/* end confdefs.h. */
36517
36518/* Override any GCC internal prototype to avoid an error.
36519 Use char because int might match the return type of a GCC
36520 builtin and then its argument prototype would still apply. */
36521#ifdef __cplusplus
36522extern "C"
36523#endif
36524char deflate ();
36525int
36526main ()
36527{
36528return deflate ();
36529 ;
36530 return 0;
36531}
36532_ACEOF
36533rm -f conftest.$ac_objext conftest$ac_exeext
36534if { (ac_try="$ac_link"
36535case "(($ac_try" in
36536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36537 *) ac_try_echo=$ac_try;;
36538esac
36539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36540$as_echo "$ac_try_echo") >&5
36541 (eval "$ac_link") 2>conftest.er1
36542 ac_status=$?
36543 grep -v '^ *+' conftest.er1 >conftest.err
36544 rm -f conftest.er1
36545 cat conftest.err >&5
36546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } && {
36548 test -z "$ac_c_werror_flag" ||
36549 test ! -s conftest.err
36550 } && test -s conftest$ac_exeext && {
36551 test "$cross_compiling" = yes ||
36552 $as_test_x conftest$ac_exeext
36553 }; then
36554 ac_cv_lib_z_deflate=yes
36555else
36556 $as_echo "$as_me: failed program was:" >&5
36557sed 's/^/| /' conftest.$ac_ext >&5
36558
36559 ac_cv_lib_z_deflate=no
36560fi
36561
36562rm -rf conftest.dSYM
36563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36564 conftest$ac_exeext conftest.$ac_ext
36565LIBS=$ac_check_lib_save_LIBS
36566fi
36567{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
36568$as_echo "$ac_cv_lib_z_deflate" >&6; }
36569if test "x$ac_cv_lib_z_deflate" = x""yes; then
36570 passed=`expr $passed + 1`
36571else
36572 failed=`expr $failed + 1`
36573fi
36574
36575 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
36576$as_echo_n "checking for inflate in -lz... " >&6; }
36577if test "${ac_cv_lib_z_inflate+set}" = set; then
36578 $as_echo_n "(cached) " >&6
36579else
36580 ac_check_lib_save_LIBS=$LIBS
36581LIBS="-lz $LIBS"
36582cat >conftest.$ac_ext <<_ACEOF
36583/* confdefs.h. */
36584_ACEOF
36585cat confdefs.h >>conftest.$ac_ext
36586cat >>conftest.$ac_ext <<_ACEOF
36587/* end confdefs.h. */
36588
36589/* Override any GCC internal prototype to avoid an error.
36590 Use char because int might match the return type of a GCC
36591 builtin and then its argument prototype would still apply. */
36592#ifdef __cplusplus
36593extern "C"
36594#endif
36595char inflate ();
36596int
36597main ()
36598{
36599return inflate ();
36600 ;
36601 return 0;
36602}
36603_ACEOF
36604rm -f conftest.$ac_objext conftest$ac_exeext
36605if { (ac_try="$ac_link"
36606case "(($ac_try" in
36607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36608 *) ac_try_echo=$ac_try;;
36609esac
36610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36611$as_echo "$ac_try_echo") >&5
36612 (eval "$ac_link") 2>conftest.er1
36613 ac_status=$?
36614 grep -v '^ *+' conftest.er1 >conftest.err
36615 rm -f conftest.er1
36616 cat conftest.err >&5
36617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); } && {
36619 test -z "$ac_c_werror_flag" ||
36620 test ! -s conftest.err
36621 } && test -s conftest$ac_exeext && {
36622 test "$cross_compiling" = yes ||
36623 $as_test_x conftest$ac_exeext
36624 }; then
36625 ac_cv_lib_z_inflate=yes
36626else
36627 $as_echo "$as_me: failed program was:" >&5
36628sed 's/^/| /' conftest.$ac_ext >&5
36629
36630 ac_cv_lib_z_inflate=no
36631fi
36632
36633rm -rf conftest.dSYM
36634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36635 conftest$ac_exeext conftest.$ac_ext
36636LIBS=$ac_check_lib_save_LIBS
36637fi
36638{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
36639$as_echo "$ac_cv_lib_z_inflate" >&6; }
36640if test "x$ac_cv_lib_z_inflate" = x""yes; then
36641 passed=`expr $passed + 1`
36642else
36643 failed=`expr $failed + 1`
36644fi
36645
36646 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
36647$as_echo_n "checking for gzseek in -lz... " >&6; }
36648if test "${ac_cv_lib_z_gzseek+set}" = set; then
36649 $as_echo_n "(cached) " >&6
36650else
36651 ac_check_lib_save_LIBS=$LIBS
36652LIBS="-lz $LIBS"
36653cat >conftest.$ac_ext <<_ACEOF
36654/* confdefs.h. */
36655_ACEOF
36656cat confdefs.h >>conftest.$ac_ext
36657cat >>conftest.$ac_ext <<_ACEOF
36658/* end confdefs.h. */
36659
36660/* Override any GCC internal prototype to avoid an error.
36661 Use char because int might match the return type of a GCC
36662 builtin and then its argument prototype would still apply. */
36663#ifdef __cplusplus
36664extern "C"
36665#endif
36666char gzseek ();
36667int
36668main ()
36669{
36670return gzseek ();
36671 ;
36672 return 0;
36673}
36674_ACEOF
36675rm -f conftest.$ac_objext conftest$ac_exeext
36676if { (ac_try="$ac_link"
36677case "(($ac_try" in
36678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36679 *) ac_try_echo=$ac_try;;
36680esac
36681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36682$as_echo "$ac_try_echo") >&5
36683 (eval "$ac_link") 2>conftest.er1
36684 ac_status=$?
36685 grep -v '^ *+' conftest.er1 >conftest.err
36686 rm -f conftest.er1
36687 cat conftest.err >&5
36688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); } && {
36690 test -z "$ac_c_werror_flag" ||
36691 test ! -s conftest.err
36692 } && test -s conftest$ac_exeext && {
36693 test "$cross_compiling" = yes ||
36694 $as_test_x conftest$ac_exeext
36695 }; then
36696 ac_cv_lib_z_gzseek=yes
36697else
36698 $as_echo "$as_me: failed program was:" >&5
36699sed 's/^/| /' conftest.$ac_ext >&5
36700
36701 ac_cv_lib_z_gzseek=no
36702fi
36703
36704rm -rf conftest.dSYM
36705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36706 conftest$ac_exeext conftest.$ac_ext
36707LIBS=$ac_check_lib_save_LIBS
36708fi
36709{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
36710$as_echo "$ac_cv_lib_z_gzseek" >&6; }
36711if test "x$ac_cv_lib_z_gzseek" = x""yes; then
36712 passed=`expr $passed + 1`
36713else
36714 failed=`expr $failed + 1`
36715fi
36716
36717 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
36718$as_echo_n "checking for gztell in -lz... " >&6; }
36719if test "${ac_cv_lib_z_gztell+set}" = set; then
36720 $as_echo_n "(cached) " >&6
36721else
36722 ac_check_lib_save_LIBS=$LIBS
36723LIBS="-lz $LIBS"
36724cat >conftest.$ac_ext <<_ACEOF
36725/* confdefs.h. */
36726_ACEOF
36727cat confdefs.h >>conftest.$ac_ext
36728cat >>conftest.$ac_ext <<_ACEOF
36729/* end confdefs.h. */
36730
36731/* Override any GCC internal prototype to avoid an error.
36732 Use char because int might match the return type of a GCC
36733 builtin and then its argument prototype would still apply. */
36734#ifdef __cplusplus
36735extern "C"
36736#endif
36737char gztell ();
36738int
36739main ()
36740{
36741return gztell ();
36742 ;
36743 return 0;
36744}
36745_ACEOF
36746rm -f conftest.$ac_objext conftest$ac_exeext
36747if { (ac_try="$ac_link"
36748case "(($ac_try" in
36749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36750 *) ac_try_echo=$ac_try;;
36751esac
36752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36753$as_echo "$ac_try_echo") >&5
36754 (eval "$ac_link") 2>conftest.er1
36755 ac_status=$?
36756 grep -v '^ *+' conftest.er1 >conftest.err
36757 rm -f conftest.er1
36758 cat conftest.err >&5
36759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); } && {
36761 test -z "$ac_c_werror_flag" ||
36762 test ! -s conftest.err
36763 } && test -s conftest$ac_exeext && {
36764 test "$cross_compiling" = yes ||
36765 $as_test_x conftest$ac_exeext
36766 }; then
36767 ac_cv_lib_z_gztell=yes
36768else
36769 $as_echo "$as_me: failed program was:" >&5
36770sed 's/^/| /' conftest.$ac_ext >&5
36771
36772 ac_cv_lib_z_gztell=no
36773fi
36774
36775rm -rf conftest.dSYM
36776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36777 conftest$ac_exeext conftest.$ac_ext
36778LIBS=$ac_check_lib_save_LIBS
36779fi
36780{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
36781$as_echo "$ac_cv_lib_z_gztell" >&6; }
36782if test "x$ac_cv_lib_z_gztell" = x""yes; then
36783 passed=`expr $passed + 1`
36784else
36785 failed=`expr $failed + 1`
36786fi
36787
36788 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
36789$as_echo_n "checking if ZLIB package is complete... " >&6; }
36790 if test $passed -gt 0; then
36791 if test $failed -gt 0; then
36792 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36793$as_echo "no -- some components failed test" >&6; }
36794 have_zlib='no (failed tests)'
36795 else
36796 ZLIB_LIBS='-lz'
36797 LIBS="$ZLIB_LIBS $LIBS"
36798
36799cat >>confdefs.h <<\_ACEOF
36800#define ZLIB_DELEGATE 1
36801_ACEOF
36802
36803 { $as_echo "$as_me:$LINENO: result: yes" >&5
36804$as_echo "yes" >&6; }
36805 have_zlib='yes'
36806 fi
36807 else
36808 { $as_echo "$as_me:$LINENO: result: no" >&5
36809$as_echo "no" >&6; }
36810 fi
36811fi
36812 if test "$have_zlib" = 'yes'; then
36813 ZLIB_DELEGATE_TRUE=
36814 ZLIB_DELEGATE_FALSE='#'
36815else
36816 ZLIB_DELEGATE_TRUE='#'
36817 ZLIB_DELEGATE_FALSE=
36818fi
36819
36820
36821
36822#
36823# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36824#
36825LIB_DL=''
36826if test "$enable_profiling" = 'yes'; then
36827 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36828$as_echo_n "checking for dlopen in -ldl... " >&6; }
36829if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36830 $as_echo_n "(cached) " >&6
36831else
36832 ac_check_lib_save_LIBS=$LIBS
36833LIBS="-ldl $LIBS"
36834cat >conftest.$ac_ext <<_ACEOF
36835/* confdefs.h. */
36836_ACEOF
36837cat confdefs.h >>conftest.$ac_ext
36838cat >>conftest.$ac_ext <<_ACEOF
36839/* end confdefs.h. */
36840
36841/* Override any GCC internal prototype to avoid an error.
36842 Use char because int might match the return type of a GCC
36843 builtin and then its argument prototype would still apply. */
36844#ifdef __cplusplus
36845extern "C"
36846#endif
36847char dlopen ();
36848int
36849main ()
36850{
36851return dlopen ();
36852 ;
36853 return 0;
36854}
36855_ACEOF
36856rm -f conftest.$ac_objext conftest$ac_exeext
36857if { (ac_try="$ac_link"
36858case "(($ac_try" in
36859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36860 *) ac_try_echo=$ac_try;;
36861esac
36862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36863$as_echo "$ac_try_echo") >&5
36864 (eval "$ac_link") 2>conftest.er1
36865 ac_status=$?
36866 grep -v '^ *+' conftest.er1 >conftest.err
36867 rm -f conftest.er1
36868 cat conftest.err >&5
36869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } && {
36871 test -z "$ac_c_werror_flag" ||
36872 test ! -s conftest.err
36873 } && test -s conftest$ac_exeext && {
36874 test "$cross_compiling" = yes ||
36875 $as_test_x conftest$ac_exeext
36876 }; then
36877 ac_cv_lib_dl_dlopen=yes
36878else
36879 $as_echo "$as_me: failed program was:" >&5
36880sed 's/^/| /' conftest.$ac_ext >&5
36881
36882 ac_cv_lib_dl_dlopen=no
36883fi
36884
36885rm -rf conftest.dSYM
36886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36887 conftest$ac_exeext conftest.$ac_ext
36888LIBS=$ac_check_lib_save_LIBS
36889fi
36890{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36891$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36892if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36893 LIB_DL='-ldl'
36894fi
36895
36896 LIBS="$LIB_DL $LIBS"
36897fi
36898
36899
36900
36901#
36902# Check for Autotrace delegate library.
36903#
36904
36905# Check whether --with-autotrace was given.
36906if test "${with_autotrace+set}" = set; then
36907 withval=$with_autotrace; with_autotrace=$withval
36908else
36909 with_autotrace='no'
36910fi
36911
36912
36913if test "$with_autotrace" != 'yes'; then
36914 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36915fi
36916
36917have_autotrace='no'
36918AUTOTRACE_CFLAGS=""
36919AUTOTRACE_LIBS=""
36920AUTOTRACE_PKG=""
36921if test "x$with_autotrace" = "xyes"; then
36922 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36923$as_echo "-------------------------------------------------------------" >&6; }
36924
36925pkg_failed=no
36926{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36927$as_echo_n "checking for AUTOTRACE... " >&6; }
36928
36929if test -n "$AUTOTRACE_CFLAGS"; then
36930 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36931 elif test -n "$PKG_CONFIG"; then
36932 if test -n "$PKG_CONFIG" && \
36933 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36934 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36935 ac_status=$?
36936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; then
36938 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36939else
36940 pkg_failed=yes
36941fi
36942 else
36943 pkg_failed=untried
36944fi
36945if test -n "$AUTOTRACE_LIBS"; then
36946 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36947 elif test -n "$PKG_CONFIG"; then
36948 if test -n "$PKG_CONFIG" && \
36949 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36950 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36951 ac_status=$?
36952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); }; then
36954 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36955else
36956 pkg_failed=yes
36957fi
36958 else
36959 pkg_failed=untried
36960fi
36961
36962
36963
36964if test $pkg_failed = yes; then
36965
36966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36967 _pkg_short_errors_supported=yes
36968else
36969 _pkg_short_errors_supported=no
36970fi
36971 if test $_pkg_short_errors_supported = yes; then
36972 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
36973 else
36974 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
36975 fi
36976 # Put the nasty error message in config.log where it belongs
36977 echo "$AUTOTRACE_PKG_ERRORS" >&5
36978
36979 { $as_echo "$as_me:$LINENO: result: no" >&5
36980$as_echo "no" >&6; }
36981 have_autotrace=no
36982elif test $pkg_failed = untried; then
36983 have_autotrace=no
36984else
36985 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
36986 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
36987 { $as_echo "$as_me:$LINENO: result: yes" >&5
36988$as_echo "yes" >&6; }
36989 have_autotrace=yes
36990fi
36991 { $as_echo "$as_me:$LINENO: result: " >&5
36992$as_echo "" >&6; }
36993fi
36994
36995if test "$have_autotrace" = 'yes'; then
36996 failed=0
36997
36998cat >>confdefs.h <<\_ACEOF
36999#define AUTOTRACE_DELEGATE 1
37000_ACEOF
37001
37002 if test "$with_modules" = 'no'; then
37003 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
37004 fi
37005fi
37006
37007 if test "$have_autotrace" = 'yes'; then
37008 AUTOTRACE_DELEGATE_TRUE=
37009 AUTOTRACE_DELEGATE_FALSE='#'
37010else
37011 AUTOTRACE_DELEGATE_TRUE='#'
37012 AUTOTRACE_DELEGATE_FALSE=
37013fi
37014
37015
37016
37017
37018
37019#
37020# Check for Display Postscript delegate library.
37021#
37022
37023# Check whether --with-dps was given.
37024if test "${with_dps+set}" = set; then
37025 withval=$with_dps; with_dps=$withval
37026else
37027 with_dps='yes'
37028fi
37029
37030
37031if test "$with_dps" != 'yes'; then
37032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
37033fi
37034
37035have_dps='no'
37036DPS_LIBS=''
37037if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
37038 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37039$as_echo "-------------------------------------------------------------" >&6; }
37040 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
37041$as_echo_n "checking for DPS... " >&6; }
37042 { $as_echo "$as_me:$LINENO: result: " >&5
37043$as_echo "" >&6; }
37044 failed=0
37045 passed=0
37046 PERSIST_CPPFLAGS="$CPPFLAGS"
37047 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
37048 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37049 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37050$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37051if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37052 $as_echo_n "(cached) " >&6
37053fi
37054{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37055$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37056else
37057 # Is the header compilable?
37058{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
37059$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
37060cat >conftest.$ac_ext <<_ACEOF
37061/* confdefs.h. */
37062_ACEOF
37063cat confdefs.h >>conftest.$ac_ext
37064cat >>conftest.$ac_ext <<_ACEOF
37065/* end confdefs.h. */
37066$ac_includes_default
37067#include <DPS/dpsXclient.h>
37068_ACEOF
37069rm -f conftest.$ac_objext
37070if { (ac_try="$ac_compile"
37071case "(($ac_try" in
37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073 *) ac_try_echo=$ac_try;;
37074esac
37075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37076$as_echo "$ac_try_echo") >&5
37077 (eval "$ac_compile") 2>conftest.er1
37078 ac_status=$?
37079 grep -v '^ *+' conftest.er1 >conftest.err
37080 rm -f conftest.er1
37081 cat conftest.err >&5
37082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); } && {
37084 test -z "$ac_c_werror_flag" ||
37085 test ! -s conftest.err
37086 } && test -s conftest.$ac_objext; then
37087 ac_header_compiler=yes
37088else
37089 $as_echo "$as_me: failed program was:" >&5
37090sed 's/^/| /' conftest.$ac_ext >&5
37091
37092 ac_header_compiler=no
37093fi
37094
37095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37096{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37097$as_echo "$ac_header_compiler" >&6; }
37098
37099# Is the header present?
37100{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
37101$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
37102cat >conftest.$ac_ext <<_ACEOF
37103/* confdefs.h. */
37104_ACEOF
37105cat confdefs.h >>conftest.$ac_ext
37106cat >>conftest.$ac_ext <<_ACEOF
37107/* end confdefs.h. */
37108#include <DPS/dpsXclient.h>
37109_ACEOF
37110if { (ac_try="$ac_cpp conftest.$ac_ext"
37111case "(($ac_try" in
37112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37113 *) ac_try_echo=$ac_try;;
37114esac
37115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37116$as_echo "$ac_try_echo") >&5
37117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37118 ac_status=$?
37119 grep -v '^ *+' conftest.er1 >conftest.err
37120 rm -f conftest.er1
37121 cat conftest.err >&5
37122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); } >/dev/null && {
37124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37125 test ! -s conftest.err
37126 }; then
37127 ac_header_preproc=yes
37128else
37129 $as_echo "$as_me: failed program was:" >&5
37130sed 's/^/| /' conftest.$ac_ext >&5
37131
37132 ac_header_preproc=no
37133fi
37134
37135rm -f conftest.err conftest.$ac_ext
37136{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37137$as_echo "$ac_header_preproc" >&6; }
37138
37139# So? What about this header?
37140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37141 yes:no: )
37142 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
37143$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37144 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
37145$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
37146 ac_header_preproc=yes
37147 ;;
37148 no:yes:* )
37149 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
37150$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
37151 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
37152$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
37153 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
37154$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
37155 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
37156$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
37157 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
37158$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
37159 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
37160$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
37161 ( cat <<\_ASBOX
37162## ----------------------------------------- ##
37163## Report this to http://www.imagemagick.org ##
37164## ----------------------------------------- ##
37165_ASBOX
37166 ) | sed "s/^/$as_me: WARNING: /" >&2
37167 ;;
37168esac
37169{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37170$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37171if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37172 $as_echo_n "(cached) " >&6
37173else
37174 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
37175fi
37176{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37177$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37178
37179fi
37180if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
37181 passed=`expr $passed + 1`
37182else
37183 failed=`expr $failed + 1`
37184fi
37185
37186
37187 # DPS issues:
37188 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
37189 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
37190 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
37191 # ImageMagick itself doesn't use -lXt.
37192 have_libdps='no'
37193 LIBDPS_XT=''
37194 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37195$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37196if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37197 $as_echo_n "(cached) " >&6
37198else
37199 ac_check_lib_save_LIBS=$LIBS
37200LIBS="-ldps $LIBS"
37201cat >conftest.$ac_ext <<_ACEOF
37202/* confdefs.h. */
37203_ACEOF
37204cat confdefs.h >>conftest.$ac_ext
37205cat >>conftest.$ac_ext <<_ACEOF
37206/* end confdefs.h. */
37207
37208/* Override any GCC internal prototype to avoid an error.
37209 Use char because int might match the return type of a GCC
37210 builtin and then its argument prototype would still apply. */
37211#ifdef __cplusplus
37212extern "C"
37213#endif
37214char DPSInitialize ();
37215int
37216main ()
37217{
37218return DPSInitialize ();
37219 ;
37220 return 0;
37221}
37222_ACEOF
37223rm -f conftest.$ac_objext conftest$ac_exeext
37224if { (ac_try="$ac_link"
37225case "(($ac_try" in
37226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37227 *) ac_try_echo=$ac_try;;
37228esac
37229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37230$as_echo "$ac_try_echo") >&5
37231 (eval "$ac_link") 2>conftest.er1
37232 ac_status=$?
37233 grep -v '^ *+' conftest.er1 >conftest.err
37234 rm -f conftest.er1
37235 cat conftest.err >&5
37236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); } && {
37238 test -z "$ac_c_werror_flag" ||
37239 test ! -s conftest.err
37240 } && test -s conftest$ac_exeext && {
37241 test "$cross_compiling" = yes ||
37242 $as_test_x conftest$ac_exeext
37243 }; then
37244 ac_cv_lib_dps_DPSInitialize=yes
37245else
37246 $as_echo "$as_me: failed program was:" >&5
37247sed 's/^/| /' conftest.$ac_ext >&5
37248
37249 ac_cv_lib_dps_DPSInitialize=no
37250fi
37251
37252rm -rf conftest.dSYM
37253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37254 conftest$ac_exeext conftest.$ac_ext
37255LIBS=$ac_check_lib_save_LIBS
37256fi
37257{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37258$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37259if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37260 have_libdps='yes'
37261else
37262 have_libdps='no'
37263fi
37264
37265 if test "$have_libdps" != 'yes'; then
37266 # Unset cache variable so we can try again.
37267 unset ac_cv_lib_dps_DPSInitialize
37268 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37269$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37270if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37271 $as_echo_n "(cached) " >&6
37272else
37273 ac_check_lib_save_LIBS=$LIBS
37274LIBS="-ldps -lXt $LIBS"
37275cat >conftest.$ac_ext <<_ACEOF
37276/* confdefs.h. */
37277_ACEOF
37278cat confdefs.h >>conftest.$ac_ext
37279cat >>conftest.$ac_ext <<_ACEOF
37280/* end confdefs.h. */
37281
37282/* Override any GCC internal prototype to avoid an error.
37283 Use char because int might match the return type of a GCC
37284 builtin and then its argument prototype would still apply. */
37285#ifdef __cplusplus
37286extern "C"
37287#endif
37288char DPSInitialize ();
37289int
37290main ()
37291{
37292return DPSInitialize ();
37293 ;
37294 return 0;
37295}
37296_ACEOF
37297rm -f conftest.$ac_objext conftest$ac_exeext
37298if { (ac_try="$ac_link"
37299case "(($ac_try" in
37300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37301 *) ac_try_echo=$ac_try;;
37302esac
37303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37304$as_echo "$ac_try_echo") >&5
37305 (eval "$ac_link") 2>conftest.er1
37306 ac_status=$?
37307 grep -v '^ *+' conftest.er1 >conftest.err
37308 rm -f conftest.er1
37309 cat conftest.err >&5
37310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); } && {
37312 test -z "$ac_c_werror_flag" ||
37313 test ! -s conftest.err
37314 } && test -s conftest$ac_exeext && {
37315 test "$cross_compiling" = yes ||
37316 $as_test_x conftest$ac_exeext
37317 }; then
37318 ac_cv_lib_dps_DPSInitialize=yes
37319else
37320 $as_echo "$as_me: failed program was:" >&5
37321sed 's/^/| /' conftest.$ac_ext >&5
37322
37323 ac_cv_lib_dps_DPSInitialize=no
37324fi
37325
37326rm -rf conftest.dSYM
37327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37328 conftest$ac_exeext conftest.$ac_ext
37329LIBS=$ac_check_lib_save_LIBS
37330fi
37331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37332$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37333if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37334 have_libdps='yes'
37335else
37336 have_libdps='no'
37337fi
37338
37339 if test "$have_libdps" = 'yes'; then
37340 LIBDPS_XT='-lXt'
37341 fi
37342 fi
37343 if test "$have_libdps" = 'yes'; then
37344 passed=`expr $passed + 1`
37345 else
37346 failed=`expr $failed + 1`
37347 fi
37348 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
37349$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
37350if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
37351 $as_echo_n "(cached) " >&6
37352else
37353 ac_check_lib_save_LIBS=$LIBS
37354LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
37355cat >conftest.$ac_ext <<_ACEOF
37356/* confdefs.h. */
37357_ACEOF
37358cat confdefs.h >>conftest.$ac_ext
37359cat >>conftest.$ac_ext <<_ACEOF
37360/* end confdefs.h. */
37361
37362/* Override any GCC internal prototype to avoid an error.
37363 Use char because int might match the return type of a GCC
37364 builtin and then its argument prototype would still apply. */
37365#ifdef __cplusplus
37366extern "C"
37367#endif
37368char XDPSPixelsPerPoint ();
37369int
37370main ()
37371{
37372return XDPSPixelsPerPoint ();
37373 ;
37374 return 0;
37375}
37376_ACEOF
37377rm -f conftest.$ac_objext conftest$ac_exeext
37378if { (ac_try="$ac_link"
37379case "(($ac_try" in
37380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37381 *) ac_try_echo=$ac_try;;
37382esac
37383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37384$as_echo "$ac_try_echo") >&5
37385 (eval "$ac_link") 2>conftest.er1
37386 ac_status=$?
37387 grep -v '^ *+' conftest.er1 >conftest.err
37388 rm -f conftest.er1
37389 cat conftest.err >&5
37390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } && {
37392 test -z "$ac_c_werror_flag" ||
37393 test ! -s conftest.err
37394 } && test -s conftest$ac_exeext && {
37395 test "$cross_compiling" = yes ||
37396 $as_test_x conftest$ac_exeext
37397 }; then
37398 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
37399else
37400 $as_echo "$as_me: failed program was:" >&5
37401sed 's/^/| /' conftest.$ac_ext >&5
37402
37403 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
37404fi
37405
37406rm -rf conftest.dSYM
37407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37408 conftest$ac_exeext conftest.$ac_ext
37409LIBS=$ac_check_lib_save_LIBS
37410fi
37411{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
37412$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
37413if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
37414 passed=`expr $passed + 1`
37415else
37416 failed=`expr $failed + 1`
37417fi
37418
37419 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
37420$as_echo_n "checking if DPS package is complete... " >&6; }
37421 if test $passed -gt 0; then
37422 if test $failed -gt 0; then
37423 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37424$as_echo "no -- some components failed test" >&6; }
37425 have_dps='no (failed tests)'
37426 CPPFLAGS="$PERSIST_CPPFLAGS"
37427 else
37428 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
37429 LIBS="$DPS_LIBS $LIBS"
37430
37431cat >>confdefs.h <<\_ACEOF
37432#define DPS_DELEGATE 1
37433_ACEOF
37434
37435 { $as_echo "$as_me:$LINENO: result: yes" >&5
37436$as_echo "yes" >&6; }
37437 have_dps='yes'
37438 fi
37439 else
37440 { $as_echo "$as_me:$LINENO: result: no" >&5
37441$as_echo "no" >&6; }
37442 CPPFLAGS=$PERSIST_CPPFLAGS
37443 fi
37444fi
37445 if test "$have_dps" = 'yes'; then
37446 DPS_DELEGATE_TRUE=
37447 DPS_DELEGATE_FALSE='#'
37448else
37449 DPS_DELEGATE_TRUE='#'
37450 DPS_DELEGATE_FALSE=
37451fi
37452
37453
37454
37455
37456#
37457# Check for DJVU delegate library.
37458#
37459
37460# Check whether --with-djvu was given.
37461if test "${with_djvu+set}" = set; then
37462 withval=$with_djvu; with_djvu=$withval
37463else
37464 with_djvu='yes'
37465fi
37466
37467
37468if test "$with_djvu" != 'yes'; then
37469 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
37470fi
37471
37472have_djvu='no'
37473DJVU_LIBS=''
37474if test "$with_djvu" != 'no'; then
37475 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37476$as_echo "-------------------------------------------------------------" >&6; }
37477 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
37478$as_echo_n "checking for DJVU... " >&6; }
37479 { $as_echo "$as_me:$LINENO: result: " >&5
37480$as_echo "" >&6; }
37481 failed=0
37482 passed=0
37483 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37484 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37485$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37486if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37487 $as_echo_n "(cached) " >&6
37488fi
37489{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37490$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37491else
37492 # Is the header compilable?
37493{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
37494$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
37495cat >conftest.$ac_ext <<_ACEOF
37496/* confdefs.h. */
37497_ACEOF
37498cat confdefs.h >>conftest.$ac_ext
37499cat >>conftest.$ac_ext <<_ACEOF
37500/* end confdefs.h. */
37501$ac_includes_default
37502#include <libdjvu/ddjvuapi.h>
37503_ACEOF
37504rm -f conftest.$ac_objext
37505if { (ac_try="$ac_compile"
37506case "(($ac_try" in
37507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37508 *) ac_try_echo=$ac_try;;
37509esac
37510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37511$as_echo "$ac_try_echo") >&5
37512 (eval "$ac_compile") 2>conftest.er1
37513 ac_status=$?
37514 grep -v '^ *+' conftest.er1 >conftest.err
37515 rm -f conftest.er1
37516 cat conftest.err >&5
37517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518 (exit $ac_status); } && {
37519 test -z "$ac_c_werror_flag" ||
37520 test ! -s conftest.err
37521 } && test -s conftest.$ac_objext; then
37522 ac_header_compiler=yes
37523else
37524 $as_echo "$as_me: failed program was:" >&5
37525sed 's/^/| /' conftest.$ac_ext >&5
37526
37527 ac_header_compiler=no
37528fi
37529
37530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37531{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37532$as_echo "$ac_header_compiler" >&6; }
37533
37534# Is the header present?
37535{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
37536$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
37537cat >conftest.$ac_ext <<_ACEOF
37538/* confdefs.h. */
37539_ACEOF
37540cat confdefs.h >>conftest.$ac_ext
37541cat >>conftest.$ac_ext <<_ACEOF
37542/* end confdefs.h. */
37543#include <libdjvu/ddjvuapi.h>
37544_ACEOF
37545if { (ac_try="$ac_cpp conftest.$ac_ext"
37546case "(($ac_try" in
37547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37548 *) ac_try_echo=$ac_try;;
37549esac
37550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37551$as_echo "$ac_try_echo") >&5
37552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37553 ac_status=$?
37554 grep -v '^ *+' conftest.er1 >conftest.err
37555 rm -f conftest.er1
37556 cat conftest.err >&5
37557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); } >/dev/null && {
37559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37560 test ! -s conftest.err
37561 }; then
37562 ac_header_preproc=yes
37563else
37564 $as_echo "$as_me: failed program was:" >&5
37565sed 's/^/| /' conftest.$ac_ext >&5
37566
37567 ac_header_preproc=no
37568fi
37569
37570rm -f conftest.err conftest.$ac_ext
37571{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37572$as_echo "$ac_header_preproc" >&6; }
37573
37574# So? What about this header?
37575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37576 yes:no: )
37577 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
37578$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37579 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
37580$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
37581 ac_header_preproc=yes
37582 ;;
37583 no:yes:* )
37584 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
37585$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
37586 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
37587$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
37588 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
37589$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
37590 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
37591$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
37592 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
37593$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
37594 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
37595$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
37596 ( cat <<\_ASBOX
37597## ----------------------------------------- ##
37598## Report this to http://www.imagemagick.org ##
37599## ----------------------------------------- ##
37600_ASBOX
37601 ) | sed "s/^/$as_me: WARNING: /" >&2
37602 ;;
37603esac
37604{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37605$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37606if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37607 $as_echo_n "(cached) " >&6
37608else
37609 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
37610fi
37611{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37612$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37613
37614fi
37615if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
37616 passed=`expr $passed + 1`
37617else
37618 failed=`expr $failed + 1`
37619fi
37620
37621
37622 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
37623$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
37624if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
37625 $as_echo_n "(cached) " >&6
37626else
37627 ac_check_lib_save_LIBS=$LIBS
37628LIBS="-ldjvulibre $LIBS"
37629cat >conftest.$ac_ext <<_ACEOF
37630/* confdefs.h. */
37631_ACEOF
37632cat confdefs.h >>conftest.$ac_ext
37633cat >>conftest.$ac_ext <<_ACEOF
37634/* end confdefs.h. */
37635
37636/* Override any GCC internal prototype to avoid an error.
37637 Use char because int might match the return type of a GCC
37638 builtin and then its argument prototype would still apply. */
37639#ifdef __cplusplus
37640extern "C"
37641#endif
37642char ddjvu_context_create ();
37643int
37644main ()
37645{
37646return ddjvu_context_create ();
37647 ;
37648 return 0;
37649}
37650_ACEOF
37651rm -f conftest.$ac_objext conftest$ac_exeext
37652if { (ac_try="$ac_link"
37653case "(($ac_try" in
37654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37655 *) ac_try_echo=$ac_try;;
37656esac
37657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37658$as_echo "$ac_try_echo") >&5
37659 (eval "$ac_link") 2>conftest.er1
37660 ac_status=$?
37661 grep -v '^ *+' conftest.er1 >conftest.err
37662 rm -f conftest.er1
37663 cat conftest.err >&5
37664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); } && {
37666 test -z "$ac_c_werror_flag" ||
37667 test ! -s conftest.err
37668 } && test -s conftest$ac_exeext && {
37669 test "$cross_compiling" = yes ||
37670 $as_test_x conftest$ac_exeext
37671 }; then
37672 ac_cv_lib_djvulibre_ddjvu_context_create=yes
37673else
37674 $as_echo "$as_me: failed program was:" >&5
37675sed 's/^/| /' conftest.$ac_ext >&5
37676
37677 ac_cv_lib_djvulibre_ddjvu_context_create=no
37678fi
37679
37680rm -rf conftest.dSYM
37681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37682 conftest$ac_exeext conftest.$ac_ext
37683LIBS=$ac_check_lib_save_LIBS
37684fi
37685{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
37686$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
37687if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
37688 passed=`expr $passed + 1`
37689else
37690 failed=`expr $failed + 1`
37691fi
37692
37693 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
37694$as_echo_n "checking if DJVU package is complete... " >&6; }
37695 if test $passed -gt 0; then
37696 if test $failed -gt 0; then
37697 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37698$as_echo "no -- some components failed test" >&6; }
37699 have_djvu='no (failed tests)'
37700 else
37701 DJVU_LIBS='-ldjvulibre'
37702 LIBS="$DJVU_LIBS $LIBS"
37703
37704cat >>confdefs.h <<\_ACEOF
37705#define DJVU_DELEGATE 1
37706_ACEOF
37707
37708 { $as_echo "$as_me:$LINENO: result: yes" >&5
37709$as_echo "yes" >&6; }
37710 have_djvu='yes'
37711 fi
37712 else
37713 { $as_echo "$as_me:$LINENO: result: no" >&5
37714$as_echo "no" >&6; }
37715 fi
37716fi
37717 if test "$have_djvu" = 'yes'; then
37718 DJVU_DELEGATE_TRUE=
37719 DJVU_DELEGATE_FALSE='#'
37720else
37721 DJVU_DELEGATE_TRUE='#'
37722 DJVU_DELEGATE_FALSE=
37723fi
37724
37725
37726
37727
37728#
37729# Check for FFTW delegate library.
37730#
37731
37732# Check whether --with-fftw was given.
37733if test "${with_fftw+set}" = set; then
37734 withval=$with_fftw; with_fftw=$withval
37735else
37736 with_fftw='yes'
37737fi
37738
37739
37740if test "$with_fftw" != 'yes'; then
37741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
37742fi
37743
37744have_fftw='no'
37745FFTW_LIBS=''
37746if test "$with_fftw" != 'no'; then
37747 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37748$as_echo "-------------------------------------------------------------" >&6; }
37749 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
37750$as_echo_n "checking for FFTW... " >&6; }
37751 { $as_echo "$as_me:$LINENO: result: " >&5
37752$as_echo "" >&6; }
37753 failed=0
37754 passed=0
37755 if test "${ac_cv_header_fftw3_h+set}" = set; then
37756 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37757$as_echo_n "checking for fftw3.h... " >&6; }
37758if test "${ac_cv_header_fftw3_h+set}" = set; then
37759 $as_echo_n "(cached) " >&6
37760fi
37761{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37762$as_echo "$ac_cv_header_fftw3_h" >&6; }
37763else
37764 # Is the header compilable?
37765{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
37766$as_echo_n "checking fftw3.h usability... " >&6; }
37767cat >conftest.$ac_ext <<_ACEOF
37768/* confdefs.h. */
37769_ACEOF
37770cat confdefs.h >>conftest.$ac_ext
37771cat >>conftest.$ac_ext <<_ACEOF
37772/* end confdefs.h. */
37773$ac_includes_default
37774#include <fftw3.h>
37775_ACEOF
37776rm -f conftest.$ac_objext
37777if { (ac_try="$ac_compile"
37778case "(($ac_try" in
37779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37780 *) ac_try_echo=$ac_try;;
37781esac
37782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37783$as_echo "$ac_try_echo") >&5
37784 (eval "$ac_compile") 2>conftest.er1
37785 ac_status=$?
37786 grep -v '^ *+' conftest.er1 >conftest.err
37787 rm -f conftest.er1
37788 cat conftest.err >&5
37789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); } && {
37791 test -z "$ac_c_werror_flag" ||
37792 test ! -s conftest.err
37793 } && test -s conftest.$ac_objext; then
37794 ac_header_compiler=yes
37795else
37796 $as_echo "$as_me: failed program was:" >&5
37797sed 's/^/| /' conftest.$ac_ext >&5
37798
37799 ac_header_compiler=no
37800fi
37801
37802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37804$as_echo "$ac_header_compiler" >&6; }
37805
37806# Is the header present?
37807{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
37808$as_echo_n "checking fftw3.h presence... " >&6; }
37809cat >conftest.$ac_ext <<_ACEOF
37810/* confdefs.h. */
37811_ACEOF
37812cat confdefs.h >>conftest.$ac_ext
37813cat >>conftest.$ac_ext <<_ACEOF
37814/* end confdefs.h. */
37815#include <fftw3.h>
37816_ACEOF
37817if { (ac_try="$ac_cpp conftest.$ac_ext"
37818case "(($ac_try" in
37819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820 *) ac_try_echo=$ac_try;;
37821esac
37822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37823$as_echo "$ac_try_echo") >&5
37824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37825 ac_status=$?
37826 grep -v '^ *+' conftest.er1 >conftest.err
37827 rm -f conftest.er1
37828 cat conftest.err >&5
37829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); } >/dev/null && {
37831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37832 test ! -s conftest.err
37833 }; then
37834 ac_header_preproc=yes
37835else
37836 $as_echo "$as_me: failed program was:" >&5
37837sed 's/^/| /' conftest.$ac_ext >&5
37838
37839 ac_header_preproc=no
37840fi
37841
37842rm -f conftest.err conftest.$ac_ext
37843{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37844$as_echo "$ac_header_preproc" >&6; }
37845
37846# So? What about this header?
37847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37848 yes:no: )
37849 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37850$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37851 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37852$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37853 ac_header_preproc=yes
37854 ;;
37855 no:yes:* )
37856 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37857$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37858 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37859$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37860 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37861$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37862 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37863$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37864 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37865$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37866 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37867$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37868 ( cat <<\_ASBOX
37869## ----------------------------------------- ##
37870## Report this to http://www.imagemagick.org ##
37871## ----------------------------------------- ##
37872_ASBOX
37873 ) | sed "s/^/$as_me: WARNING: /" >&2
37874 ;;
37875esac
37876{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37877$as_echo_n "checking for fftw3.h... " >&6; }
37878if test "${ac_cv_header_fftw3_h+set}" = set; then
37879 $as_echo_n "(cached) " >&6
37880else
37881 ac_cv_header_fftw3_h=$ac_header_preproc
37882fi
37883{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37884$as_echo "$ac_cv_header_fftw3_h" >&6; }
37885
37886fi
37887if test "x$ac_cv_header_fftw3_h" = x""yes; then
37888 passed=`expr $passed + 1`
37889else
37890 failed=`expr $failed + 1`
37891fi
37892
37893
37894 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37895$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37896if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37897 $as_echo_n "(cached) " >&6
37898else
37899 ac_check_lib_save_LIBS=$LIBS
37900LIBS="-lfftw3 $LIBS"
37901cat >conftest.$ac_ext <<_ACEOF
37902/* confdefs.h. */
37903_ACEOF
37904cat confdefs.h >>conftest.$ac_ext
37905cat >>conftest.$ac_ext <<_ACEOF
37906/* end confdefs.h. */
37907
37908/* Override any GCC internal prototype to avoid an error.
37909 Use char because int might match the return type of a GCC
37910 builtin and then its argument prototype would still apply. */
37911#ifdef __cplusplus
37912extern "C"
37913#endif
37914char fftw_execute ();
37915int
37916main ()
37917{
37918return fftw_execute ();
37919 ;
37920 return 0;
37921}
37922_ACEOF
37923rm -f conftest.$ac_objext conftest$ac_exeext
37924if { (ac_try="$ac_link"
37925case "(($ac_try" in
37926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927 *) ac_try_echo=$ac_try;;
37928esac
37929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37930$as_echo "$ac_try_echo") >&5
37931 (eval "$ac_link") 2>conftest.er1
37932 ac_status=$?
37933 grep -v '^ *+' conftest.er1 >conftest.err
37934 rm -f conftest.er1
37935 cat conftest.err >&5
37936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); } && {
37938 test -z "$ac_c_werror_flag" ||
37939 test ! -s conftest.err
37940 } && test -s conftest$ac_exeext && {
37941 test "$cross_compiling" = yes ||
37942 $as_test_x conftest$ac_exeext
37943 }; then
37944 ac_cv_lib_fftw3_fftw_execute=yes
37945else
37946 $as_echo "$as_me: failed program was:" >&5
37947sed 's/^/| /' conftest.$ac_ext >&5
37948
37949 ac_cv_lib_fftw3_fftw_execute=no
37950fi
37951
37952rm -rf conftest.dSYM
37953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37954 conftest$ac_exeext conftest.$ac_ext
37955LIBS=$ac_check_lib_save_LIBS
37956fi
37957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37958$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37959if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37960 passed=`expr $passed + 1`
37961else
37962 failed=`expr $failed + 1`
37963fi
37964
37965 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37966$as_echo_n "checking if FFTW package is complete... " >&6; }
37967 if test $passed -gt 0; then
37968 if test $failed -gt 0; then
37969 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37970$as_echo "no -- some components failed test" >&6; }
37971 have_fftw='no (failed tests)'
37972 else
37973 FFTW_LIBS='-lfftw3'
37974 LIBS="$FFTW_LIBS $LIBS"
37975
37976cat >>confdefs.h <<\_ACEOF
37977#define FFTW_DELEGATE 1
37978_ACEOF
37979
37980 { $as_echo "$as_me:$LINENO: result: yes" >&5
37981$as_echo "yes" >&6; }
37982 have_fftw='yes'
37983 fi
37984 else
37985 { $as_echo "$as_me:$LINENO: result: no" >&5
37986$as_echo "no" >&6; }
37987 fi
37988fi
37989 if test "$have_fftw" = 'yes'; then
37990 FFTW_DELEGATE_TRUE=
37991 FFTW_DELEGATE_FALSE='#'
37992else
37993 FFTW_DELEGATE_TRUE='#'
37994 FFTW_DELEGATE_FALSE=
37995fi
37996
37997
37998
37999
38000#
38001# Check for FlashPIX delegate library.
38002#
38003
38004# Check whether --with-fpx was given.
38005if test "${with_fpx+set}" = set; then
38006 withval=$with_fpx; with_fpx=$withval
38007else
38008 with_fpx='yes'
38009fi
38010
38011
38012if test "$with_fpx" != 'yes'; then
38013 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
38014fi
38015
38016have_fpx='no'
38017FPX_LIBS=''
38018if test "$with_fpx" != 'no'; then
38019 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38020$as_echo "-------------------------------------------------------------" >&6; }
38021 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
38022$as_echo_n "checking for FlashPIX... " >&6; }
38023 { $as_echo "$as_me:$LINENO: result: " >&5
38024$as_echo "" >&6; }
38025 failed=0
38026 passed=0
38027 ac_ext=cpp
38028ac_cpp='$CXXCPP $CPPFLAGS'
38029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38032
38033
38034if test "${ac_cv_header_fpxlib_h+set}" = set; then
38035 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38036$as_echo_n "checking for fpxlib.h... " >&6; }
38037if test "${ac_cv_header_fpxlib_h+set}" = set; then
38038 $as_echo_n "(cached) " >&6
38039fi
38040{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38041$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38042else
38043 # Is the header compilable?
38044{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
38045$as_echo_n "checking fpxlib.h usability... " >&6; }
38046cat >conftest.$ac_ext <<_ACEOF
38047/* confdefs.h. */
38048_ACEOF
38049cat confdefs.h >>conftest.$ac_ext
38050cat >>conftest.$ac_ext <<_ACEOF
38051/* end confdefs.h. */
38052$ac_includes_default
38053#include <fpxlib.h>
38054_ACEOF
38055rm -f conftest.$ac_objext
38056if { (ac_try="$ac_compile"
38057case "(($ac_try" in
38058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38059 *) ac_try_echo=$ac_try;;
38060esac
38061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38062$as_echo "$ac_try_echo") >&5
38063 (eval "$ac_compile") 2>conftest.er1
38064 ac_status=$?
38065 grep -v '^ *+' conftest.er1 >conftest.err
38066 rm -f conftest.er1
38067 cat conftest.err >&5
38068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); } && {
38070 test -z "$ac_cxx_werror_flag" ||
38071 test ! -s conftest.err
38072 } && test -s conftest.$ac_objext; then
38073 ac_header_compiler=yes
38074else
38075 $as_echo "$as_me: failed program was:" >&5
38076sed 's/^/| /' conftest.$ac_ext >&5
38077
38078 ac_header_compiler=no
38079fi
38080
38081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38082{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38083$as_echo "$ac_header_compiler" >&6; }
38084
38085# Is the header present?
38086{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
38087$as_echo_n "checking fpxlib.h presence... " >&6; }
38088cat >conftest.$ac_ext <<_ACEOF
38089/* confdefs.h. */
38090_ACEOF
38091cat confdefs.h >>conftest.$ac_ext
38092cat >>conftest.$ac_ext <<_ACEOF
38093/* end confdefs.h. */
38094#include <fpxlib.h>
38095_ACEOF
38096if { (ac_try="$ac_cpp conftest.$ac_ext"
38097case "(($ac_try" in
38098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38099 *) ac_try_echo=$ac_try;;
38100esac
38101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38102$as_echo "$ac_try_echo") >&5
38103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38104 ac_status=$?
38105 grep -v '^ *+' conftest.er1 >conftest.err
38106 rm -f conftest.er1
38107 cat conftest.err >&5
38108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); } >/dev/null && {
38110 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
38111 test ! -s conftest.err
38112 }; then
38113 ac_header_preproc=yes
38114else
38115 $as_echo "$as_me: failed program was:" >&5
38116sed 's/^/| /' conftest.$ac_ext >&5
38117
38118 ac_header_preproc=no
38119fi
38120
38121rm -f conftest.err conftest.$ac_ext
38122{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38123$as_echo "$ac_header_preproc" >&6; }
38124
38125# So? What about this header?
38126case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38127 yes:no: )
38128 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38129$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38130 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
38131$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
38132 ac_header_preproc=yes
38133 ;;
38134 no:yes:* )
38135 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
38136$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
38137 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
38138$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
38139 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
38140$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
38141 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
38142$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
38143 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
38144$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
38145 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
38146$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
38147 ( cat <<\_ASBOX
38148## ----------------------------------------- ##
38149## Report this to http://www.imagemagick.org ##
38150## ----------------------------------------- ##
38151_ASBOX
38152 ) | sed "s/^/$as_me: WARNING: /" >&2
38153 ;;
38154esac
38155{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38156$as_echo_n "checking for fpxlib.h... " >&6; }
38157if test "${ac_cv_header_fpxlib_h+set}" = set; then
38158 $as_echo_n "(cached) " >&6
38159else
38160 ac_cv_header_fpxlib_h=$ac_header_preproc
38161fi
38162{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38163$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38164
38165fi
38166if test "x$ac_cv_header_fpxlib_h" = x""yes; then
38167 passed=`expr $passed + 1`
38168else
38169 failed=`expr $failed + 1`
38170fi
38171
38172
38173 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
38174$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
38175if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
38176 $as_echo_n "(cached) " >&6
38177else
38178 ac_check_lib_save_LIBS=$LIBS
38179LIBS="-lfpx $LIBS"
38180cat >conftest.$ac_ext <<_ACEOF
38181/* confdefs.h. */
38182_ACEOF
38183cat confdefs.h >>conftest.$ac_ext
38184cat >>conftest.$ac_ext <<_ACEOF
38185/* end confdefs.h. */
38186
38187/* Override any GCC internal prototype to avoid an error.
38188 Use char because int might match the return type of a GCC
38189 builtin and then its argument prototype would still apply. */
38190#ifdef __cplusplus
38191extern "C"
38192#endif
38193char FPX_OpenImageByFilename ();
38194int
38195main ()
38196{
38197return FPX_OpenImageByFilename ();
38198 ;
38199 return 0;
38200}
38201_ACEOF
38202rm -f conftest.$ac_objext conftest$ac_exeext
38203if { (ac_try="$ac_link"
38204case "(($ac_try" in
38205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38206 *) ac_try_echo=$ac_try;;
38207esac
38208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38209$as_echo "$ac_try_echo") >&5
38210 (eval "$ac_link") 2>conftest.er1
38211 ac_status=$?
38212 grep -v '^ *+' conftest.er1 >conftest.err
38213 rm -f conftest.er1
38214 cat conftest.err >&5
38215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); } && {
38217 test -z "$ac_cxx_werror_flag" ||
38218 test ! -s conftest.err
38219 } && test -s conftest$ac_exeext && {
38220 test "$cross_compiling" = yes ||
38221 $as_test_x conftest$ac_exeext
38222 }; then
38223 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
38224else
38225 $as_echo "$as_me: failed program was:" >&5
38226sed 's/^/| /' conftest.$ac_ext >&5
38227
38228 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
38229fi
38230
38231rm -rf conftest.dSYM
38232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38233 conftest$ac_exeext conftest.$ac_ext
38234LIBS=$ac_check_lib_save_LIBS
38235fi
38236{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
38237$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
38238if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
38239 passed=`expr $passed + 1`
38240else
38241 failed=`expr $failed + 1`
38242fi
38243
38244 ac_ext=c
38245ac_cpp='$CPP $CPPFLAGS'
38246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38248ac_compiler_gnu=$ac_cv_c_compiler_gnu
38249
38250 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
38251$as_echo_n "checking if FlashPIX package is complete... " >&6; }
38252 if test $passed -gt 0; then
38253 if test $failed -gt 0; then
38254 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38255$as_echo "no -- some components failed test" >&6; }
38256 have_fpx='no (failed tests)'
38257 else
38258 FPX_LIBS='-lfpx'
38259
38260cat >>confdefs.h <<\_ACEOF
38261#define FPX_DELEGATE 1
38262_ACEOF
38263
38264 { $as_echo "$as_me:$LINENO: result: yes" >&5
38265$as_echo "yes" >&6; }
38266 have_fpx='yes'
38267 PERLMAINCC="$CXX"
38268 fi
38269 else
38270 { $as_echo "$as_me:$LINENO: result: no" >&5
38271$as_echo "no" >&6; }
38272 fi
38273fi
38274 if test "$have_fpx" = 'yes'; then
38275 FPX_DELEGATE_TRUE=
38276 FPX_DELEGATE_FALSE='#'
38277else
38278 FPX_DELEGATE_TRUE='#'
38279 FPX_DELEGATE_FALSE=
38280fi
38281
38282
38283
38284
38285#
38286# Check for fontconfig delegate library.
38287#
38288
38289# Check whether --with-fontconfig was given.
38290if test "${with_fontconfig+set}" = set; then
38291 withval=$with_fontconfig; with_fontconfig=$withval
38292else
38293 with_fontconfig=$have_x
38294fi
38295
38296
38297if test "$with_fontconfig" != 'yes'; then
38298 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
38299fi
38300
38301have_fontconfig='no'
38302FONTCONFIG_CFLAGS=""
38303FONTCONFIG_LIBS=""
38304FONTCONFIG_PKG=""
38305if test "x$with_fontconfig" = "xyes"; then
38306 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38307$as_echo "-------------------------------------------------------------" >&6; }
38308
38309pkg_failed=no
38310{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
38311$as_echo_n "checking for FONTCONFIG... " >&6; }
38312
38313if test -n "$FONTCONFIG_CFLAGS"; then
38314 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
38315 elif test -n "$PKG_CONFIG"; then
38316 if test -n "$PKG_CONFIG" && \
38317 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38318 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38319 ac_status=$?
38320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; then
38322 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
38323else
38324 pkg_failed=yes
38325fi
38326 else
38327 pkg_failed=untried
38328fi
38329if test -n "$FONTCONFIG_LIBS"; then
38330 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
38331 elif test -n "$PKG_CONFIG"; then
38332 if test -n "$PKG_CONFIG" && \
38333 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38334 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38335 ac_status=$?
38336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337 (exit $ac_status); }; then
38338 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
38339else
38340 pkg_failed=yes
38341fi
38342 else
38343 pkg_failed=untried
38344fi
38345
38346
38347
38348if test $pkg_failed = yes; then
38349
38350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38351 _pkg_short_errors_supported=yes
38352else
38353 _pkg_short_errors_supported=no
38354fi
38355 if test $_pkg_short_errors_supported = yes; then
38356 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
38357 else
38358 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
38359 fi
38360 # Put the nasty error message in config.log where it belongs
38361 echo "$FONTCONFIG_PKG_ERRORS" >&5
38362
38363 { $as_echo "$as_me:$LINENO: result: no" >&5
38364$as_echo "no" >&6; }
38365 have_fontconfig=no
38366elif test $pkg_failed = untried; then
38367 have_fontconfig=no
38368else
38369 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
38370 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
38371 { $as_echo "$as_me:$LINENO: result: yes" >&5
38372$as_echo "yes" >&6; }
38373 have_fontconfig=yes
38374fi
38375 { $as_echo "$as_me:$LINENO: result: " >&5
38376$as_echo "" >&6; }
38377fi
38378
38379if test "$have_fontconfig" = 'yes'; then
38380
38381cat >>confdefs.h <<\_ACEOF
38382#define FONTCONFIG_DELEGATE 1
38383_ACEOF
38384
38385 if test "$with_modules" = 'no'; then
38386 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
38387 fi
38388fi
38389
38390 if test "$have_fontconfig" = 'yes'; then
38391 FONTCONFIG_DELEGATE_TRUE=
38392 FONTCONFIG_DELEGATE_FALSE='#'
38393else
38394 FONTCONFIG_DELEGATE_TRUE='#'
38395 FONTCONFIG_DELEGATE_FALSE=
38396fi
38397
38398
38399
38400
38401
38402#
38403# Check for freetype delegate library.
38404#
38405
38406# Check whether --with-freetype was given.
38407if test "${with_freetype+set}" = set; then
38408 withval=$with_freetype; with_freetype=$withval
38409else
38410 with_freetype='yes'
38411fi
38412
38413
38414
38415if test "$with_freetype" != 'yes'; then
38416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
38417fi
38418
38419have_freetype='no'
38420FREETYPE_LIBS=''
38421if test "$with_freetype" != 'no'; then
38422 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38423$as_echo "-------------------------------------------------------------" >&6; }
38424 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
38425$as_echo_n "checking for FreeType 2.0... " >&6; }
38426 { $as_echo "$as_me:$LINENO: result: " >&5
38427$as_echo "" >&6; }
38428 failed=0
38429 passed=0
cristy66291112009-10-03 22:44:36 +000038430 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038431 PERSIST_CPPFLAGS="$CPPFLAGS"
38432 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
38433 :
38434 else
38435 freetype_config=''
38436 for ac_prog in freetype-config
38437do
38438 # Extract the first word of "$ac_prog", so it can be a program name with args.
38439set dummy $ac_prog; ac_word=$2
38440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38441$as_echo_n "checking for $ac_word... " >&6; }
38442if test "${ac_cv_prog_freetype_config+set}" = set; then
38443 $as_echo_n "(cached) " >&6
38444else
38445 if test -n "$freetype_config"; then
38446 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
38447else
38448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38449for as_dir in $PATH
38450do
38451 IFS=$as_save_IFS
38452 test -z "$as_dir" && as_dir=.
38453 for ac_exec_ext in '' $ac_executable_extensions; do
38454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38455 ac_cv_prog_freetype_config="$ac_prog"
38456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38457 break 2
38458 fi
38459done
38460done
38461IFS=$as_save_IFS
38462
38463fi
38464fi
38465freetype_config=$ac_cv_prog_freetype_config
38466if test -n "$freetype_config"; then
38467 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
38468$as_echo "$freetype_config" >&6; }
38469else
38470 { $as_echo "$as_me:$LINENO: result: no" >&5
38471$as_echo "no" >&6; }
38472fi
38473
38474
38475 test -n "$freetype_config" && break
38476done
38477 if test -n "$freetype_config"; then
38478 freetype_cflags=`$freetype_config --cflags`
38479 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000038480 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000038481 CPPFLAGS="$freetype_cflags $CPPFLAGS"
38482 fi
38483 fi
38484
38485 if test "$FREETYPE_LIBS" = ''; then
38486 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
38487$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
38488if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
38489 $as_echo_n "(cached) " >&6
38490else
38491 ac_check_lib_save_LIBS=$LIBS
38492LIBS="-lfreetype $LIBS"
38493cat >conftest.$ac_ext <<_ACEOF
38494/* confdefs.h. */
38495_ACEOF
38496cat confdefs.h >>conftest.$ac_ext
38497cat >>conftest.$ac_ext <<_ACEOF
38498/* end confdefs.h. */
38499
38500/* Override any GCC internal prototype to avoid an error.
38501 Use char because int might match the return type of a GCC
38502 builtin and then its argument prototype would still apply. */
38503#ifdef __cplusplus
38504extern "C"
38505#endif
38506char FT_Init_FreeType ();
38507int
38508main ()
38509{
38510return FT_Init_FreeType ();
38511 ;
38512 return 0;
38513}
38514_ACEOF
38515rm -f conftest.$ac_objext conftest$ac_exeext
38516if { (ac_try="$ac_link"
38517case "(($ac_try" in
38518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38519 *) ac_try_echo=$ac_try;;
38520esac
38521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38522$as_echo "$ac_try_echo") >&5
38523 (eval "$ac_link") 2>conftest.er1
38524 ac_status=$?
38525 grep -v '^ *+' conftest.er1 >conftest.err
38526 rm -f conftest.er1
38527 cat conftest.err >&5
38528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } && {
38530 test -z "$ac_c_werror_flag" ||
38531 test ! -s conftest.err
38532 } && test -s conftest$ac_exeext && {
38533 test "$cross_compiling" = yes ||
38534 $as_test_x conftest$ac_exeext
38535 }; then
38536 ac_cv_lib_freetype_FT_Init_FreeType=yes
38537else
38538 $as_echo "$as_me: failed program was:" >&5
38539sed 's/^/| /' conftest.$ac_ext >&5
38540
38541 ac_cv_lib_freetype_FT_Init_FreeType=no
38542fi
38543
38544rm -rf conftest.dSYM
38545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38546 conftest$ac_exeext conftest.$ac_ext
38547LIBS=$ac_check_lib_save_LIBS
38548fi
38549{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
38550$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
38551if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
38552 FREETYPE_LIBS='-lfreetype'
38553fi
38554
38555 if test "$FREETYPE_LIBS" != ''; then
38556 passed=`expr $passed + 1`
38557 else
38558 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000038559 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038560 fi
38561 fi
38562
38563 if test "${ac_cv_header_ft2build_h+set}" = set; then
38564 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38565$as_echo_n "checking for ft2build.h... " >&6; }
38566if test "${ac_cv_header_ft2build_h+set}" = set; then
38567 $as_echo_n "(cached) " >&6
38568fi
38569{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38570$as_echo "$ac_cv_header_ft2build_h" >&6; }
38571else
38572 # Is the header compilable?
38573{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
38574$as_echo_n "checking ft2build.h usability... " >&6; }
38575cat >conftest.$ac_ext <<_ACEOF
38576/* confdefs.h. */
38577_ACEOF
38578cat confdefs.h >>conftest.$ac_ext
38579cat >>conftest.$ac_ext <<_ACEOF
38580/* end confdefs.h. */
38581$ac_includes_default
38582#include <ft2build.h>
38583_ACEOF
38584rm -f conftest.$ac_objext
38585if { (ac_try="$ac_compile"
38586case "(($ac_try" in
38587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588 *) ac_try_echo=$ac_try;;
38589esac
38590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38591$as_echo "$ac_try_echo") >&5
38592 (eval "$ac_compile") 2>conftest.er1
38593 ac_status=$?
38594 grep -v '^ *+' conftest.er1 >conftest.err
38595 rm -f conftest.er1
38596 cat conftest.err >&5
38597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38598 (exit $ac_status); } && {
38599 test -z "$ac_c_werror_flag" ||
38600 test ! -s conftest.err
38601 } && test -s conftest.$ac_objext; then
38602 ac_header_compiler=yes
38603else
38604 $as_echo "$as_me: failed program was:" >&5
38605sed 's/^/| /' conftest.$ac_ext >&5
38606
38607 ac_header_compiler=no
38608fi
38609
38610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38611{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38612$as_echo "$ac_header_compiler" >&6; }
38613
38614# Is the header present?
38615{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
38616$as_echo_n "checking ft2build.h presence... " >&6; }
38617cat >conftest.$ac_ext <<_ACEOF
38618/* confdefs.h. */
38619_ACEOF
38620cat confdefs.h >>conftest.$ac_ext
38621cat >>conftest.$ac_ext <<_ACEOF
38622/* end confdefs.h. */
38623#include <ft2build.h>
38624_ACEOF
38625if { (ac_try="$ac_cpp conftest.$ac_ext"
38626case "(($ac_try" in
38627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38628 *) ac_try_echo=$ac_try;;
38629esac
38630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38631$as_echo "$ac_try_echo") >&5
38632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38633 ac_status=$?
38634 grep -v '^ *+' conftest.er1 >conftest.err
38635 rm -f conftest.er1
38636 cat conftest.err >&5
38637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); } >/dev/null && {
38639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38640 test ! -s conftest.err
38641 }; then
38642 ac_header_preproc=yes
38643else
38644 $as_echo "$as_me: failed program was:" >&5
38645sed 's/^/| /' conftest.$ac_ext >&5
38646
38647 ac_header_preproc=no
38648fi
38649
38650rm -f conftest.err conftest.$ac_ext
38651{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38652$as_echo "$ac_header_preproc" >&6; }
38653
38654# So? What about this header?
38655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38656 yes:no: )
38657 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
38658$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38659 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
38660$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
38661 ac_header_preproc=yes
38662 ;;
38663 no:yes:* )
38664 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
38665$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
38666 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
38667$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
38668 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
38669$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
38670 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
38671$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
38672 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
38673$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
38674 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
38675$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
38676 ( cat <<\_ASBOX
38677## ----------------------------------------- ##
38678## Report this to http://www.imagemagick.org ##
38679## ----------------------------------------- ##
38680_ASBOX
38681 ) | sed "s/^/$as_me: WARNING: /" >&2
38682 ;;
38683esac
38684{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38685$as_echo_n "checking for ft2build.h... " >&6; }
38686if test "${ac_cv_header_ft2build_h+set}" = set; then
38687 $as_echo_n "(cached) " >&6
38688else
38689 ac_cv_header_ft2build_h=$ac_header_preproc
38690fi
38691{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38692$as_echo "$ac_cv_header_ft2build_h" >&6; }
38693
38694fi
38695if test "x$ac_cv_header_ft2build_h" = x""yes; then
38696 FT2BUILD_H='#include <ft2build.h>'
38697else
38698 ft2build=''
38699fi
38700
38701
38702 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
38703$as_echo_n "checking for freetype/freetype.h... " >&6; }
38704if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
38705 $as_echo_n "(cached) " >&6
38706else
38707 cat >conftest.$ac_ext <<_ACEOF
38708/* confdefs.h. */
38709_ACEOF
38710cat confdefs.h >>conftest.$ac_ext
38711cat >>conftest.$ac_ext <<_ACEOF
38712/* end confdefs.h. */
38713$FT2BUILD_H
38714
38715#include <freetype/freetype.h>
38716_ACEOF
38717rm -f conftest.$ac_objext
38718if { (ac_try="$ac_compile"
38719case "(($ac_try" in
38720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38721 *) ac_try_echo=$ac_try;;
38722esac
38723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38724$as_echo "$ac_try_echo") >&5
38725 (eval "$ac_compile") 2>conftest.er1
38726 ac_status=$?
38727 grep -v '^ *+' conftest.er1 >conftest.err
38728 rm -f conftest.er1
38729 cat conftest.err >&5
38730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); } && {
38732 test -z "$ac_c_werror_flag" ||
38733 test ! -s conftest.err
38734 } && test -s conftest.$ac_objext; then
38735 ac_cv_header_freetype_freetype_h=yes
38736else
38737 $as_echo "$as_me: failed program was:" >&5
38738sed 's/^/| /' conftest.$ac_ext >&5
38739
38740 ac_cv_header_freetype_freetype_h=no
38741fi
38742
38743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38744fi
38745{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
38746$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
38747if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
38748 have_freetype_h='yes'
38749else
38750 have_freetype_h='no'
38751fi
38752
38753
38754 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
38755 passed=`expr $passed + 1`
38756 else
38757 failed=`expr $failed + 1`
38758 CPPFLAGS="$PERSIST_CPPFLAGS"
38759 fi
38760
38761 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
38762$as_echo_n "checking if FreeType package is complete... " >&6; }
38763 if test $passed -gt 0; then
38764 if test $failed -gt 0; then
38765 FREETYPE_LIBS=''
38766 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38767$as_echo "no -- some components failed test" >&6; }
38768 have_freetype='no (failed tests)'
38769 else
38770 LIBS="$FREETYPE_LIBS $LIBS"
38771
38772cat >>confdefs.h <<\_ACEOF
38773#define FREETYPE_DELEGATE 1
38774_ACEOF
38775
38776 if test "$ac_cv_header_ft2build_h" = 'yes'; then
38777
38778cat >>confdefs.h <<\_ACEOF
38779#define HAVE_FT2BUILD_H 1
38780_ACEOF
38781
38782 fi
38783 { $as_echo "$as_me:$LINENO: result: yes" >&5
38784$as_echo "yes" >&6; }
38785 have_freetype='yes'
38786 fi
38787 else
38788 { $as_echo "$as_me:$LINENO: result: no" >&5
38789$as_echo "no" >&6; }
38790 fi
38791fi
38792 if test "$have_freetype" = 'yes'; then
38793 FREETYPE_DELEGATE_TRUE=
38794 FREETYPE_DELEGATE_FALSE='#'
38795else
38796 FREETYPE_DELEGATE_TRUE='#'
38797 FREETYPE_DELEGATE_FALSE=
38798fi
38799
38800
38801
38802
38803
38804#
38805# Check for Ghostscript library or framework.
38806#
38807# Test for iapi.h & test for gsapi_new_instance in -lgs
38808# or -framework Ghostscript
38809
38810
38811# Check whether --with-gslib was given.
38812if test "${with_gslib+set}" = set; then
38813 withval=$with_gslib; with_gslib=$withval
38814else
38815 with_gslib='no'
38816fi
38817
38818
cristyb7931f12009-09-25 10:22:21 +000038819gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000038820if test "$with_gslib" != 'yes'; then
38821 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38822fi
38823
38824have_gslib='no'
38825GS_LIBS=''
38826if test "$with_gslib" != 'no'; then
38827 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38828$as_echo "-------------------------------------------------------------" >&6; }
38829 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38830$as_echo_n "checking for Ghostscript... " >&6; }
38831 { $as_echo "$as_me:$LINENO: result: " >&5
38832$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000038833 framework=0
cristy3ed852e2009-09-05 21:47:34 +000038834 failed=0
38835 passed=0
38836 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38837 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38838$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38839if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38840 $as_echo_n "(cached) " >&6
38841fi
38842{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38843$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38844else
38845 # Is the header compilable?
38846{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38847$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38848cat >conftest.$ac_ext <<_ACEOF
38849/* confdefs.h. */
38850_ACEOF
38851cat confdefs.h >>conftest.$ac_ext
38852cat >>conftest.$ac_ext <<_ACEOF
38853/* end confdefs.h. */
38854$ac_includes_default
38855#include <ghostscript/iapi.h>
38856_ACEOF
38857rm -f conftest.$ac_objext
38858if { (ac_try="$ac_compile"
38859case "(($ac_try" in
38860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38861 *) ac_try_echo=$ac_try;;
38862esac
38863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38864$as_echo "$ac_try_echo") >&5
38865 (eval "$ac_compile") 2>conftest.er1
38866 ac_status=$?
38867 grep -v '^ *+' conftest.er1 >conftest.err
38868 rm -f conftest.er1
38869 cat conftest.err >&5
38870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); } && {
38872 test -z "$ac_c_werror_flag" ||
38873 test ! -s conftest.err
38874 } && test -s conftest.$ac_objext; then
38875 ac_header_compiler=yes
38876else
38877 $as_echo "$as_me: failed program was:" >&5
38878sed 's/^/| /' conftest.$ac_ext >&5
38879
38880 ac_header_compiler=no
38881fi
38882
38883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38884{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38885$as_echo "$ac_header_compiler" >&6; }
38886
38887# Is the header present?
38888{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38889$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38890cat >conftest.$ac_ext <<_ACEOF
38891/* confdefs.h. */
38892_ACEOF
38893cat confdefs.h >>conftest.$ac_ext
38894cat >>conftest.$ac_ext <<_ACEOF
38895/* end confdefs.h. */
38896#include <ghostscript/iapi.h>
38897_ACEOF
38898if { (ac_try="$ac_cpp conftest.$ac_ext"
38899case "(($ac_try" in
38900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38901 *) ac_try_echo=$ac_try;;
38902esac
38903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38904$as_echo "$ac_try_echo") >&5
38905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38906 ac_status=$?
38907 grep -v '^ *+' conftest.er1 >conftest.err
38908 rm -f conftest.er1
38909 cat conftest.err >&5
38910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38911 (exit $ac_status); } >/dev/null && {
38912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38913 test ! -s conftest.err
38914 }; then
38915 ac_header_preproc=yes
38916else
38917 $as_echo "$as_me: failed program was:" >&5
38918sed 's/^/| /' conftest.$ac_ext >&5
38919
38920 ac_header_preproc=no
38921fi
38922
38923rm -f conftest.err conftest.$ac_ext
38924{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38925$as_echo "$ac_header_preproc" >&6; }
38926
38927# So? What about this header?
38928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38929 yes:no: )
38930 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38931$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38932 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38933$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38934 ac_header_preproc=yes
38935 ;;
38936 no:yes:* )
38937 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38938$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38939 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38940$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38941 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38942$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38943 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38944$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38945 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38946$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38947 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38948$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38949 ( cat <<\_ASBOX
38950## ----------------------------------------- ##
38951## Report this to http://www.imagemagick.org ##
38952## ----------------------------------------- ##
38953_ASBOX
38954 ) | sed "s/^/$as_me: WARNING: /" >&2
38955 ;;
38956esac
38957{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38958$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38959if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38960 $as_echo_n "(cached) " >&6
38961else
38962 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38963fi
38964{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38965$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38966
38967fi
38968if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38969 passed=`expr $passed + 1`
38970else
38971 failed=`expr $failed + 1`
38972fi
38973
38974
38975 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38976 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38977$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38978if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38979 $as_echo_n "(cached) " >&6
38980fi
38981{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38982$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38983else
38984 # Is the header compilable?
38985{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
38986$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
38987cat >conftest.$ac_ext <<_ACEOF
38988/* confdefs.h. */
38989_ACEOF
38990cat confdefs.h >>conftest.$ac_ext
38991cat >>conftest.$ac_ext <<_ACEOF
38992/* end confdefs.h. */
38993$ac_includes_default
38994#include <ghostscript/ierrors.h>
38995_ACEOF
38996rm -f conftest.$ac_objext
38997if { (ac_try="$ac_compile"
38998case "(($ac_try" in
38999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39000 *) ac_try_echo=$ac_try;;
39001esac
39002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39003$as_echo "$ac_try_echo") >&5
39004 (eval "$ac_compile") 2>conftest.er1
39005 ac_status=$?
39006 grep -v '^ *+' conftest.er1 >conftest.err
39007 rm -f conftest.er1
39008 cat conftest.err >&5
39009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); } && {
39011 test -z "$ac_c_werror_flag" ||
39012 test ! -s conftest.err
39013 } && test -s conftest.$ac_objext; then
39014 ac_header_compiler=yes
39015else
39016 $as_echo "$as_me: failed program was:" >&5
39017sed 's/^/| /' conftest.$ac_ext >&5
39018
39019 ac_header_compiler=no
39020fi
39021
39022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39023{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39024$as_echo "$ac_header_compiler" >&6; }
39025
39026# Is the header present?
39027{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
39028$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
39029cat >conftest.$ac_ext <<_ACEOF
39030/* confdefs.h. */
39031_ACEOF
39032cat confdefs.h >>conftest.$ac_ext
39033cat >>conftest.$ac_ext <<_ACEOF
39034/* end confdefs.h. */
39035#include <ghostscript/ierrors.h>
39036_ACEOF
39037if { (ac_try="$ac_cpp conftest.$ac_ext"
39038case "(($ac_try" in
39039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39040 *) ac_try_echo=$ac_try;;
39041esac
39042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39043$as_echo "$ac_try_echo") >&5
39044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39045 ac_status=$?
39046 grep -v '^ *+' conftest.er1 >conftest.err
39047 rm -f conftest.er1
39048 cat conftest.err >&5
39049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); } >/dev/null && {
39051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39052 test ! -s conftest.err
39053 }; then
39054 ac_header_preproc=yes
39055else
39056 $as_echo "$as_me: failed program was:" >&5
39057sed 's/^/| /' conftest.$ac_ext >&5
39058
39059 ac_header_preproc=no
39060fi
39061
39062rm -f conftest.err conftest.$ac_ext
39063{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39064$as_echo "$ac_header_preproc" >&6; }
39065
39066# So? What about this header?
39067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39068 yes:no: )
39069 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
39070$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39071 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
39072$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
39073 ac_header_preproc=yes
39074 ;;
39075 no:yes:* )
39076 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
39077$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
39078 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
39079$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
39080 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
39081$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
39082 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
39083$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
39084 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
39085$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
39086 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
39087$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
39088 ( cat <<\_ASBOX
39089## ----------------------------------------- ##
39090## Report this to http://www.imagemagick.org ##
39091## ----------------------------------------- ##
39092_ASBOX
39093 ) | sed "s/^/$as_me: WARNING: /" >&2
39094 ;;
39095esac
39096{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39097$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39098if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39099 $as_echo_n "(cached) " >&6
39100else
39101 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
39102fi
39103{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39104$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39105
39106fi
39107if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
39108 passed=`expr $passed + 1`
39109else
39110 failed=`expr $failed + 1`
39111fi
39112
39113
39114 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
39115$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
39116if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
39117 $as_echo_n "(cached) " >&6
39118else
39119 ac_check_framework_save_LIBS=$LIBS
39120LIBS="-framework Ghostscript $LIBS"
39121cat >conftest.$ac_ext <<_ACEOF
39122/* confdefs.h. */
39123_ACEOF
39124cat confdefs.h >>conftest.$ac_ext
39125cat >>conftest.$ac_ext <<_ACEOF
39126/* end confdefs.h. */
39127
39128/* Override any GCC internal prototype to avoid an error.
39129 Use char because int might match the return type of a GCC
39130 builtin and then its argument prototype would still apply. */
39131#ifdef __cplusplus
39132extern "C"
39133#endif
39134char gsapi_new_instance ();
39135int
39136main ()
39137{
39138return gsapi_new_instance ();
39139 ;
39140 return 0;
39141}
39142_ACEOF
39143rm -f conftest.$ac_objext conftest$ac_exeext
39144if { (ac_try="$ac_link"
39145case "(($ac_try" in
39146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39147 *) ac_try_echo=$ac_try;;
39148esac
39149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39150$as_echo "$ac_try_echo") >&5
39151 (eval "$ac_link") 2>conftest.er1
39152 ac_status=$?
39153 grep -v '^ *+' conftest.er1 >conftest.err
39154 rm -f conftest.er1
39155 cat conftest.err >&5
39156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39157 (exit $ac_status); } && {
39158 test -z "$ac_c_werror_flag" ||
39159 test ! -s conftest.err
39160 } && test -s conftest$ac_exeext && {
39161 test "$cross_compiling" = yes ||
39162 $as_test_x conftest$ac_exeext
39163 }; then
39164 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
39165else
39166 $as_echo "$as_me: failed program was:" >&5
39167sed 's/^/| /' conftest.$ac_ext >&5
39168
39169 ac_cv_framework_Ghostscript_gsapi_new_instance=no
39170fi
39171
39172rm -rf conftest.dSYM
39173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39174 conftest$ac_exeext conftest.$ac_ext
39175LIBS=$ac_check_framework_save_LIBS
39176fi
39177{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
39178$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
39179if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
39180 framework=`expr $framework + 1`
39181else
39182 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
39183$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
39184if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
39185 $as_echo_n "(cached) " >&6
39186else
39187 ac_check_lib_save_LIBS=$LIBS
39188LIBS="-lgs $LIBS"
39189cat >conftest.$ac_ext <<_ACEOF
39190/* confdefs.h. */
39191_ACEOF
39192cat confdefs.h >>conftest.$ac_ext
39193cat >>conftest.$ac_ext <<_ACEOF
39194/* end confdefs.h. */
39195
39196/* Override any GCC internal prototype to avoid an error.
39197 Use char because int might match the return type of a GCC
39198 builtin and then its argument prototype would still apply. */
39199#ifdef __cplusplus
39200extern "C"
39201#endif
39202char gsapi_new_instance ();
39203int
39204main ()
39205{
39206return gsapi_new_instance ();
39207 ;
39208 return 0;
39209}
39210_ACEOF
39211rm -f conftest.$ac_objext conftest$ac_exeext
39212if { (ac_try="$ac_link"
39213case "(($ac_try" in
39214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39215 *) ac_try_echo=$ac_try;;
39216esac
39217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39218$as_echo "$ac_try_echo") >&5
39219 (eval "$ac_link") 2>conftest.er1
39220 ac_status=$?
39221 grep -v '^ *+' conftest.er1 >conftest.err
39222 rm -f conftest.er1
39223 cat conftest.err >&5
39224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); } && {
39226 test -z "$ac_c_werror_flag" ||
39227 test ! -s conftest.err
39228 } && test -s conftest$ac_exeext && {
39229 test "$cross_compiling" = yes ||
39230 $as_test_x conftest$ac_exeext
39231 }; then
39232 ac_cv_lib_gs_gsapi_new_instance=yes
39233else
39234 $as_echo "$as_me: failed program was:" >&5
39235sed 's/^/| /' conftest.$ac_ext >&5
39236
39237 ac_cv_lib_gs_gsapi_new_instance=no
39238fi
39239
39240rm -rf conftest.dSYM
39241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39242 conftest$ac_exeext conftest.$ac_ext
39243LIBS=$ac_check_lib_save_LIBS
39244fi
39245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
39246$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
39247if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
39248 passed=`expr $passed + 1`
39249else
39250 failed=`expr $failed + 1`
39251fi
39252
39253fi
39254
39255 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
39256$as_echo_n "checking if Ghostscript package is complete... " >&6; }
39257 if test $passed -gt 0; then
39258 if test $failed -gt 0; then
39259 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39260$as_echo "no -- some components failed test" >&6; }
39261 have_gslib='no (failed tests)'
39262 else
39263 if test $framework -gt 0; then
39264 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000039265 gslib_framework='yes'
cristy3ed852e2009-09-05 21:47:34 +000039266 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
39267$as_echo "yes, using framework." >&6; }
39268 else
39269 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
39270$as_echo "yes, using library." >&6; }
39271 GS_LIBS='-lgs'
39272 fi
39273 LIBS="$GS_LIBS $LIBS"
39274
39275cat >>confdefs.h <<\_ACEOF
39276#define GS_DELEGATE 1
39277_ACEOF
39278
39279 have_gslib='yes'
39280 fi
39281 else
39282 { $as_echo "$as_me:$LINENO: result: no" >&5
39283$as_echo "no" >&6; }
39284 fi
39285fi
39286 if test "$have_gslib" = 'yes'; then
39287 GS_DELEGATE_TRUE=
39288 GS_DELEGATE_FALSE='#'
39289else
39290 GS_DELEGATE_TRUE='#'
39291 GS_DELEGATE_FALSE=
39292fi
39293
39294
39295
39296# Set default font search path
39297
39298# Check whether --with-fontpath was given.
39299if test "${with_fontpath+set}" = set; then
39300 withval=$with_fontpath; with_fontpath=$withval
39301else
39302 with_fontpath=''
39303fi
39304
39305
39306if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
39307 with_fontpath=''
39308else
39309
39310cat >>confdefs.h <<_ACEOF
39311#define MAGICK_FONT_PATH "$with_fontpath"
39312_ACEOF
39313
39314fi
39315if test "$with_fontpath=" != ''; then
39316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
39317fi
39318
39319# Set Ghostscript font directory
39320
39321# Check whether --with-gs-font-dir was given.
39322if test "${with_gs_font_dir+set}" = set; then
39323 withval=$with_gs_font_dir; with_gs_font_dir=$withval
39324else
39325 with_gs_font_dir='default'
39326fi
39327
39328
39329if test "$with_gs_font_dir" != 'default'; then
39330 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
39331fi
39332
39333
39334#
39335# Check for GVC delegate library.
39336#
39337
39338# Check whether --with-gvc was given.
39339if test "${with_gvc+set}" = set; then
39340 withval=$with_gvc; with_gvc=$withval
39341else
39342 with_gvc='yes'
39343fi
39344
39345
39346if test "$with_gvc" != 'yes'; then
39347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
39348fi
39349
39350GVC_PKG=""
39351if test "x$with_gvc" = "xyes"; then
39352 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39353$as_echo "-------------------------------------------------------------" >&6; }
39354
39355pkg_failed=no
39356{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
39357$as_echo_n "checking for GVC... " >&6; }
39358
39359if test -n "$GVC_CFLAGS"; then
39360 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
39361 elif test -n "$PKG_CONFIG"; then
39362 if test -n "$PKG_CONFIG" && \
39363 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39364 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39365 ac_status=$?
39366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39367 (exit $ac_status); }; then
39368 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
39369else
39370 pkg_failed=yes
39371fi
39372 else
39373 pkg_failed=untried
39374fi
39375if test -n "$GVC_LIBS"; then
39376 pkg_cv_GVC_LIBS="$GVC_LIBS"
39377 elif test -n "$PKG_CONFIG"; then
39378 if test -n "$PKG_CONFIG" && \
39379 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39380 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39381 ac_status=$?
39382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); }; then
39384 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
39385else
39386 pkg_failed=yes
39387fi
39388 else
39389 pkg_failed=untried
39390fi
39391
39392
39393
39394if test $pkg_failed = yes; then
39395
39396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39397 _pkg_short_errors_supported=yes
39398else
39399 _pkg_short_errors_supported=no
39400fi
39401 if test $_pkg_short_errors_supported = yes; then
39402 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
39403 else
39404 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
39405 fi
39406 # Put the nasty error message in config.log where it belongs
39407 echo "$GVC_PKG_ERRORS" >&5
39408
39409 { $as_echo "$as_me:$LINENO: result: no" >&5
39410$as_echo "no" >&6; }
39411 have_gvc=no
39412elif test $pkg_failed = untried; then
39413 have_gvc=no
39414else
39415 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
39416 GVC_LIBS=$pkg_cv_GVC_LIBS
39417 { $as_echo "$as_me:$LINENO: result: yes" >&5
39418$as_echo "yes" >&6; }
39419 have_gvc=yes
39420fi
39421 { $as_echo "$as_me:$LINENO: result: " >&5
39422$as_echo "" >&6; }
39423fi
39424
39425if test "$have_gvc" = 'yes'; then
39426
39427cat >>confdefs.h <<\_ACEOF
39428#define GVC_DELEGATE 1
39429_ACEOF
39430
39431 if test "$with_modules" = 'no'; then
39432 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
39433 fi
39434fi
39435
39436 if test "$have_gvc" = 'yes'; then
39437 GVC_DELEGATE_TRUE=
39438 GVC_DELEGATE_FALSE='#'
39439else
39440 GVC_DELEGATE_TRUE='#'
39441 GVC_DELEGATE_FALSE=
39442fi
39443
39444
39445
39446
39447
39448#
39449# Check for JBIG delegate library.
39450#
39451
39452
39453# Check whether --with-jbig was given.
39454if test "${with_jbig+set}" = set; then
39455 withval=$with_jbig; with_jbig=$withval
39456else
39457 with_jbig='yes'
39458fi
39459
39460
39461have_jbig='no'
39462JBIG_LIBS=''
39463if test "$with_jbig" != 'no'; then
39464 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39465$as_echo "-------------------------------------------------------------" >&6; }
39466 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
39467$as_echo_n "checking for JBIG... " >&6; }
39468 { $as_echo "$as_me:$LINENO: result: " >&5
39469$as_echo "" >&6; }
39470 failed=0
39471 passed=0
39472 if test "${ac_cv_header_jbig_h+set}" = set; then
39473 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39474$as_echo_n "checking for jbig.h... " >&6; }
39475if test "${ac_cv_header_jbig_h+set}" = set; then
39476 $as_echo_n "(cached) " >&6
39477fi
39478{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39479$as_echo "$ac_cv_header_jbig_h" >&6; }
39480else
39481 # Is the header compilable?
39482{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
39483$as_echo_n "checking jbig.h usability... " >&6; }
39484cat >conftest.$ac_ext <<_ACEOF
39485/* confdefs.h. */
39486_ACEOF
39487cat confdefs.h >>conftest.$ac_ext
39488cat >>conftest.$ac_ext <<_ACEOF
39489/* end confdefs.h. */
39490$ac_includes_default
39491#include <jbig.h>
39492_ACEOF
39493rm -f conftest.$ac_objext
39494if { (ac_try="$ac_compile"
39495case "(($ac_try" in
39496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39497 *) ac_try_echo=$ac_try;;
39498esac
39499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39500$as_echo "$ac_try_echo") >&5
39501 (eval "$ac_compile") 2>conftest.er1
39502 ac_status=$?
39503 grep -v '^ *+' conftest.er1 >conftest.err
39504 rm -f conftest.er1
39505 cat conftest.err >&5
39506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507 (exit $ac_status); } && {
39508 test -z "$ac_c_werror_flag" ||
39509 test ! -s conftest.err
39510 } && test -s conftest.$ac_objext; then
39511 ac_header_compiler=yes
39512else
39513 $as_echo "$as_me: failed program was:" >&5
39514sed 's/^/| /' conftest.$ac_ext >&5
39515
39516 ac_header_compiler=no
39517fi
39518
39519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39520{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39521$as_echo "$ac_header_compiler" >&6; }
39522
39523# Is the header present?
39524{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
39525$as_echo_n "checking jbig.h presence... " >&6; }
39526cat >conftest.$ac_ext <<_ACEOF
39527/* confdefs.h. */
39528_ACEOF
39529cat confdefs.h >>conftest.$ac_ext
39530cat >>conftest.$ac_ext <<_ACEOF
39531/* end confdefs.h. */
39532#include <jbig.h>
39533_ACEOF
39534if { (ac_try="$ac_cpp conftest.$ac_ext"
39535case "(($ac_try" in
39536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39537 *) ac_try_echo=$ac_try;;
39538esac
39539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39540$as_echo "$ac_try_echo") >&5
39541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39542 ac_status=$?
39543 grep -v '^ *+' conftest.er1 >conftest.err
39544 rm -f conftest.er1
39545 cat conftest.err >&5
39546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); } >/dev/null && {
39548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39549 test ! -s conftest.err
39550 }; then
39551 ac_header_preproc=yes
39552else
39553 $as_echo "$as_me: failed program was:" >&5
39554sed 's/^/| /' conftest.$ac_ext >&5
39555
39556 ac_header_preproc=no
39557fi
39558
39559rm -f conftest.err conftest.$ac_ext
39560{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39561$as_echo "$ac_header_preproc" >&6; }
39562
39563# So? What about this header?
39564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39565 yes:no: )
39566 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39567$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39568 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
39569$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
39570 ac_header_preproc=yes
39571 ;;
39572 no:yes:* )
39573 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
39574$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
39575 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
39576$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
39577 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
39578$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
39579 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
39580$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39581 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
39582$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
39583 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
39584$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
39585 ( cat <<\_ASBOX
39586## ----------------------------------------- ##
39587## Report this to http://www.imagemagick.org ##
39588## ----------------------------------------- ##
39589_ASBOX
39590 ) | sed "s/^/$as_me: WARNING: /" >&2
39591 ;;
39592esac
39593{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39594$as_echo_n "checking for jbig.h... " >&6; }
39595if test "${ac_cv_header_jbig_h+set}" = set; then
39596 $as_echo_n "(cached) " >&6
39597else
39598 ac_cv_header_jbig_h=$ac_header_preproc
39599fi
39600{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39601$as_echo "$ac_cv_header_jbig_h" >&6; }
39602
39603fi
39604if test "x$ac_cv_header_jbig_h" = x""yes; then
39605 passed=`expr $passed + 1`
39606else
39607 failed=`expr $failed + 1`
39608fi
39609
39610
39611 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
39612$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
39613if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
39614 $as_echo_n "(cached) " >&6
39615else
39616 ac_check_lib_save_LIBS=$LIBS
39617LIBS="-ljbig $LIBS"
39618cat >conftest.$ac_ext <<_ACEOF
39619/* confdefs.h. */
39620_ACEOF
39621cat confdefs.h >>conftest.$ac_ext
39622cat >>conftest.$ac_ext <<_ACEOF
39623/* end confdefs.h. */
39624
39625/* Override any GCC internal prototype to avoid an error.
39626 Use char because int might match the return type of a GCC
39627 builtin and then its argument prototype would still apply. */
39628#ifdef __cplusplus
39629extern "C"
39630#endif
39631char jbg_dec_init ();
39632int
39633main ()
39634{
39635return jbg_dec_init ();
39636 ;
39637 return 0;
39638}
39639_ACEOF
39640rm -f conftest.$ac_objext conftest$ac_exeext
39641if { (ac_try="$ac_link"
39642case "(($ac_try" in
39643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39644 *) ac_try_echo=$ac_try;;
39645esac
39646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39647$as_echo "$ac_try_echo") >&5
39648 (eval "$ac_link") 2>conftest.er1
39649 ac_status=$?
39650 grep -v '^ *+' conftest.er1 >conftest.err
39651 rm -f conftest.er1
39652 cat conftest.err >&5
39653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); } && {
39655 test -z "$ac_c_werror_flag" ||
39656 test ! -s conftest.err
39657 } && test -s conftest$ac_exeext && {
39658 test "$cross_compiling" = yes ||
39659 $as_test_x conftest$ac_exeext
39660 }; then
39661 ac_cv_lib_jbig_jbg_dec_init=yes
39662else
39663 $as_echo "$as_me: failed program was:" >&5
39664sed 's/^/| /' conftest.$ac_ext >&5
39665
39666 ac_cv_lib_jbig_jbg_dec_init=no
39667fi
39668
39669rm -rf conftest.dSYM
39670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39671 conftest$ac_exeext conftest.$ac_ext
39672LIBS=$ac_check_lib_save_LIBS
39673fi
39674{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
39675$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
39676if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
39677 passed=`expr $passed + 1`
39678else
39679 failed=`expr $failed + 1`
39680fi
39681
39682 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
39683$as_echo_n "checking if JBIG package is complete... " >&6; }
39684 if test $passed -gt 0; then
39685 if test $failed -gt 0; then
39686 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39687$as_echo "no -- some components failed test" >&6; }
39688 have_jbig='no (failed tests)'
39689 else
39690 JBIG_LIBS='-ljbig'
39691 LIBS="$JBIG_LIBS $LIBS"
39692
39693cat >>confdefs.h <<\_ACEOF
39694#define JBIG_DELEGATE 1
39695_ACEOF
39696
39697 { $as_echo "$as_me:$LINENO: result: yes" >&5
39698$as_echo "yes" >&6; }
39699 have_jbig='yes'
39700 fi
39701 else
39702 { $as_echo "$as_me:$LINENO: result: no" >&5
39703$as_echo "no" >&6; }
39704 fi
39705fi
39706 if test "$have_jbig" = 'yes'; then
39707 JBIG_DELEGATE_TRUE=
39708 JBIG_DELEGATE_FALSE='#'
39709else
39710 JBIG_DELEGATE_TRUE='#'
39711 JBIG_DELEGATE_FALSE=
39712fi
39713
39714
39715
39716
39717#
39718# Check for JPEG delegate library.
39719#
39720
39721# Check whether --with-jpeg was given.
39722if test "${with_jpeg+set}" = set; then
39723 withval=$with_jpeg; with_jpeg=$withval
39724else
39725 with_jpeg='yes'
39726fi
39727
39728
39729if test "$with_jpeg" != 'yes'; then
39730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
39731fi
39732
39733have_jpeg='no'
39734JPEG_LIBS=''
39735if test "$with_jpeg" != 'no'; then
39736 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39737$as_echo "-------------------------------------------------------------" >&6; }
39738 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
39739$as_echo_n "checking for JPEG... " >&6; }
39740 { $as_echo "$as_me:$LINENO: result: " >&5
39741$as_echo "" >&6; }
39742 failed=0
39743 passed=0
39744 if test "${ac_cv_header_jconfig_h+set}" = set; then
39745 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39746$as_echo_n "checking for jconfig.h... " >&6; }
39747if test "${ac_cv_header_jconfig_h+set}" = set; then
39748 $as_echo_n "(cached) " >&6
39749fi
39750{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39751$as_echo "$ac_cv_header_jconfig_h" >&6; }
39752else
39753 # Is the header compilable?
39754{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
39755$as_echo_n "checking jconfig.h usability... " >&6; }
39756cat >conftest.$ac_ext <<_ACEOF
39757/* confdefs.h. */
39758_ACEOF
39759cat confdefs.h >>conftest.$ac_ext
39760cat >>conftest.$ac_ext <<_ACEOF
39761/* end confdefs.h. */
39762$ac_includes_default
39763#include <jconfig.h>
39764_ACEOF
39765rm -f conftest.$ac_objext
39766if { (ac_try="$ac_compile"
39767case "(($ac_try" in
39768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39769 *) ac_try_echo=$ac_try;;
39770esac
39771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39772$as_echo "$ac_try_echo") >&5
39773 (eval "$ac_compile") 2>conftest.er1
39774 ac_status=$?
39775 grep -v '^ *+' conftest.er1 >conftest.err
39776 rm -f conftest.er1
39777 cat conftest.err >&5
39778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); } && {
39780 test -z "$ac_c_werror_flag" ||
39781 test ! -s conftest.err
39782 } && test -s conftest.$ac_objext; then
39783 ac_header_compiler=yes
39784else
39785 $as_echo "$as_me: failed program was:" >&5
39786sed 's/^/| /' conftest.$ac_ext >&5
39787
39788 ac_header_compiler=no
39789fi
39790
39791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39792{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39793$as_echo "$ac_header_compiler" >&6; }
39794
39795# Is the header present?
39796{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
39797$as_echo_n "checking jconfig.h presence... " >&6; }
39798cat >conftest.$ac_ext <<_ACEOF
39799/* confdefs.h. */
39800_ACEOF
39801cat confdefs.h >>conftest.$ac_ext
39802cat >>conftest.$ac_ext <<_ACEOF
39803/* end confdefs.h. */
39804#include <jconfig.h>
39805_ACEOF
39806if { (ac_try="$ac_cpp conftest.$ac_ext"
39807case "(($ac_try" in
39808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39809 *) ac_try_echo=$ac_try;;
39810esac
39811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39812$as_echo "$ac_try_echo") >&5
39813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39814 ac_status=$?
39815 grep -v '^ *+' conftest.er1 >conftest.err
39816 rm -f conftest.er1
39817 cat conftest.err >&5
39818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819 (exit $ac_status); } >/dev/null && {
39820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39821 test ! -s conftest.err
39822 }; then
39823 ac_header_preproc=yes
39824else
39825 $as_echo "$as_me: failed program was:" >&5
39826sed 's/^/| /' conftest.$ac_ext >&5
39827
39828 ac_header_preproc=no
39829fi
39830
39831rm -f conftest.err conftest.$ac_ext
39832{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39833$as_echo "$ac_header_preproc" >&6; }
39834
39835# So? What about this header?
39836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39837 yes:no: )
39838 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39839$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39840 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39841$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39842 ac_header_preproc=yes
39843 ;;
39844 no:yes:* )
39845 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39846$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39847 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39848$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39849 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39850$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39851 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39852$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39853 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39854$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39855 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39856$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39857 ( cat <<\_ASBOX
39858## ----------------------------------------- ##
39859## Report this to http://www.imagemagick.org ##
39860## ----------------------------------------- ##
39861_ASBOX
39862 ) | sed "s/^/$as_me: WARNING: /" >&2
39863 ;;
39864esac
39865{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39866$as_echo_n "checking for jconfig.h... " >&6; }
39867if test "${ac_cv_header_jconfig_h+set}" = set; then
39868 $as_echo_n "(cached) " >&6
39869else
39870 ac_cv_header_jconfig_h=$ac_header_preproc
39871fi
39872{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39873$as_echo "$ac_cv_header_jconfig_h" >&6; }
39874
39875fi
39876if test "x$ac_cv_header_jconfig_h" = x""yes; then
39877 passed=`expr $passed + 1`
39878else
39879 failed=`expr $failed + 1`
39880fi
39881
39882
39883 if test "${ac_cv_header_jerror_h+set}" = set; then
39884 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39885$as_echo_n "checking for jerror.h... " >&6; }
39886if test "${ac_cv_header_jerror_h+set}" = set; then
39887 $as_echo_n "(cached) " >&6
39888fi
39889{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39890$as_echo "$ac_cv_header_jerror_h" >&6; }
39891else
39892 # Is the header compilable?
39893{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39894$as_echo_n "checking jerror.h usability... " >&6; }
39895cat >conftest.$ac_ext <<_ACEOF
39896/* confdefs.h. */
39897_ACEOF
39898cat confdefs.h >>conftest.$ac_ext
39899cat >>conftest.$ac_ext <<_ACEOF
39900/* end confdefs.h. */
39901$ac_includes_default
39902#include <jerror.h>
39903_ACEOF
39904rm -f conftest.$ac_objext
39905if { (ac_try="$ac_compile"
39906case "(($ac_try" in
39907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39908 *) ac_try_echo=$ac_try;;
39909esac
39910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39911$as_echo "$ac_try_echo") >&5
39912 (eval "$ac_compile") 2>conftest.er1
39913 ac_status=$?
39914 grep -v '^ *+' conftest.er1 >conftest.err
39915 rm -f conftest.er1
39916 cat conftest.err >&5
39917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); } && {
39919 test -z "$ac_c_werror_flag" ||
39920 test ! -s conftest.err
39921 } && test -s conftest.$ac_objext; then
39922 ac_header_compiler=yes
39923else
39924 $as_echo "$as_me: failed program was:" >&5
39925sed 's/^/| /' conftest.$ac_ext >&5
39926
39927 ac_header_compiler=no
39928fi
39929
39930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39931{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39932$as_echo "$ac_header_compiler" >&6; }
39933
39934# Is the header present?
39935{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39936$as_echo_n "checking jerror.h presence... " >&6; }
39937cat >conftest.$ac_ext <<_ACEOF
39938/* confdefs.h. */
39939_ACEOF
39940cat confdefs.h >>conftest.$ac_ext
39941cat >>conftest.$ac_ext <<_ACEOF
39942/* end confdefs.h. */
39943#include <jerror.h>
39944_ACEOF
39945if { (ac_try="$ac_cpp conftest.$ac_ext"
39946case "(($ac_try" in
39947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39948 *) ac_try_echo=$ac_try;;
39949esac
39950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39951$as_echo "$ac_try_echo") >&5
39952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39953 ac_status=$?
39954 grep -v '^ *+' conftest.er1 >conftest.err
39955 rm -f conftest.er1
39956 cat conftest.err >&5
39957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39958 (exit $ac_status); } >/dev/null && {
39959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39960 test ! -s conftest.err
39961 }; then
39962 ac_header_preproc=yes
39963else
39964 $as_echo "$as_me: failed program was:" >&5
39965sed 's/^/| /' conftest.$ac_ext >&5
39966
39967 ac_header_preproc=no
39968fi
39969
39970rm -f conftest.err conftest.$ac_ext
39971{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39972$as_echo "$ac_header_preproc" >&6; }
39973
39974# So? What about this header?
39975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39976 yes:no: )
39977 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
39978$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39979 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
39980$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
39981 ac_header_preproc=yes
39982 ;;
39983 no:yes:* )
39984 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
39985$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
39986 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
39987$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
39988 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
39989$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
39990 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
39991$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
39992 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
39993$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
39994 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
39995$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
39996 ( cat <<\_ASBOX
39997## ----------------------------------------- ##
39998## Report this to http://www.imagemagick.org ##
39999## ----------------------------------------- ##
40000_ASBOX
40001 ) | sed "s/^/$as_me: WARNING: /" >&2
40002 ;;
40003esac
40004{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
40005$as_echo_n "checking for jerror.h... " >&6; }
40006if test "${ac_cv_header_jerror_h+set}" = set; then
40007 $as_echo_n "(cached) " >&6
40008else
40009 ac_cv_header_jerror_h=$ac_header_preproc
40010fi
40011{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
40012$as_echo "$ac_cv_header_jerror_h" >&6; }
40013
40014fi
40015if test "x$ac_cv_header_jerror_h" = x""yes; then
40016 passed=`expr $passed + 1`
40017else
40018 failed=`expr $failed + 1`
40019fi
40020
40021
40022 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40023 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40024$as_echo_n "checking for jmorecfg.h... " >&6; }
40025if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40026 $as_echo_n "(cached) " >&6
40027fi
40028{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40029$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40030else
40031 # Is the header compilable?
40032{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
40033$as_echo_n "checking jmorecfg.h usability... " >&6; }
40034cat >conftest.$ac_ext <<_ACEOF
40035/* confdefs.h. */
40036_ACEOF
40037cat confdefs.h >>conftest.$ac_ext
40038cat >>conftest.$ac_ext <<_ACEOF
40039/* end confdefs.h. */
40040$ac_includes_default
40041#include <jmorecfg.h>
40042_ACEOF
40043rm -f conftest.$ac_objext
40044if { (ac_try="$ac_compile"
40045case "(($ac_try" in
40046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40047 *) ac_try_echo=$ac_try;;
40048esac
40049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40050$as_echo "$ac_try_echo") >&5
40051 (eval "$ac_compile") 2>conftest.er1
40052 ac_status=$?
40053 grep -v '^ *+' conftest.er1 >conftest.err
40054 rm -f conftest.er1
40055 cat conftest.err >&5
40056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); } && {
40058 test -z "$ac_c_werror_flag" ||
40059 test ! -s conftest.err
40060 } && test -s conftest.$ac_objext; then
40061 ac_header_compiler=yes
40062else
40063 $as_echo "$as_me: failed program was:" >&5
40064sed 's/^/| /' conftest.$ac_ext >&5
40065
40066 ac_header_compiler=no
40067fi
40068
40069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40070{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40071$as_echo "$ac_header_compiler" >&6; }
40072
40073# Is the header present?
40074{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
40075$as_echo_n "checking jmorecfg.h presence... " >&6; }
40076cat >conftest.$ac_ext <<_ACEOF
40077/* confdefs.h. */
40078_ACEOF
40079cat confdefs.h >>conftest.$ac_ext
40080cat >>conftest.$ac_ext <<_ACEOF
40081/* end confdefs.h. */
40082#include <jmorecfg.h>
40083_ACEOF
40084if { (ac_try="$ac_cpp conftest.$ac_ext"
40085case "(($ac_try" in
40086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40087 *) ac_try_echo=$ac_try;;
40088esac
40089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40090$as_echo "$ac_try_echo") >&5
40091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40092 ac_status=$?
40093 grep -v '^ *+' conftest.er1 >conftest.err
40094 rm -f conftest.er1
40095 cat conftest.err >&5
40096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097 (exit $ac_status); } >/dev/null && {
40098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40099 test ! -s conftest.err
40100 }; then
40101 ac_header_preproc=yes
40102else
40103 $as_echo "$as_me: failed program was:" >&5
40104sed 's/^/| /' conftest.$ac_ext >&5
40105
40106 ac_header_preproc=no
40107fi
40108
40109rm -f conftest.err conftest.$ac_ext
40110{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40111$as_echo "$ac_header_preproc" >&6; }
40112
40113# So? What about this header?
40114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40115 yes:no: )
40116 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
40117$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40118 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
40119$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
40120 ac_header_preproc=yes
40121 ;;
40122 no:yes:* )
40123 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
40124$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
40125 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
40126$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
40127 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
40128$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
40129 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
40130$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
40131 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
40132$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
40133 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
40134$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
40135 ( cat <<\_ASBOX
40136## ----------------------------------------- ##
40137## Report this to http://www.imagemagick.org ##
40138## ----------------------------------------- ##
40139_ASBOX
40140 ) | sed "s/^/$as_me: WARNING: /" >&2
40141 ;;
40142esac
40143{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40144$as_echo_n "checking for jmorecfg.h... " >&6; }
40145if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40146 $as_echo_n "(cached) " >&6
40147else
40148 ac_cv_header_jmorecfg_h=$ac_header_preproc
40149fi
40150{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40151$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40152
40153fi
40154if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
40155 passed=`expr $passed + 1`
40156else
40157 failed=`expr $failed + 1`
40158fi
40159
40160
40161 if test "${ac_cv_header_jpeglib_h+set}" = set; then
40162 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40163$as_echo_n "checking for jpeglib.h... " >&6; }
40164if test "${ac_cv_header_jpeglib_h+set}" = set; then
40165 $as_echo_n "(cached) " >&6
40166fi
40167{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40168$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40169else
40170 # Is the header compilable?
40171{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
40172$as_echo_n "checking jpeglib.h usability... " >&6; }
40173cat >conftest.$ac_ext <<_ACEOF
40174/* confdefs.h. */
40175_ACEOF
40176cat confdefs.h >>conftest.$ac_ext
40177cat >>conftest.$ac_ext <<_ACEOF
40178/* end confdefs.h. */
40179$ac_includes_default
40180#include <jpeglib.h>
40181_ACEOF
40182rm -f conftest.$ac_objext
40183if { (ac_try="$ac_compile"
40184case "(($ac_try" in
40185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40186 *) ac_try_echo=$ac_try;;
40187esac
40188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40189$as_echo "$ac_try_echo") >&5
40190 (eval "$ac_compile") 2>conftest.er1
40191 ac_status=$?
40192 grep -v '^ *+' conftest.er1 >conftest.err
40193 rm -f conftest.er1
40194 cat conftest.err >&5
40195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); } && {
40197 test -z "$ac_c_werror_flag" ||
40198 test ! -s conftest.err
40199 } && test -s conftest.$ac_objext; then
40200 ac_header_compiler=yes
40201else
40202 $as_echo "$as_me: failed program was:" >&5
40203sed 's/^/| /' conftest.$ac_ext >&5
40204
40205 ac_header_compiler=no
40206fi
40207
40208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40209{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40210$as_echo "$ac_header_compiler" >&6; }
40211
40212# Is the header present?
40213{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
40214$as_echo_n "checking jpeglib.h presence... " >&6; }
40215cat >conftest.$ac_ext <<_ACEOF
40216/* confdefs.h. */
40217_ACEOF
40218cat confdefs.h >>conftest.$ac_ext
40219cat >>conftest.$ac_ext <<_ACEOF
40220/* end confdefs.h. */
40221#include <jpeglib.h>
40222_ACEOF
40223if { (ac_try="$ac_cpp conftest.$ac_ext"
40224case "(($ac_try" in
40225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40226 *) ac_try_echo=$ac_try;;
40227esac
40228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40229$as_echo "$ac_try_echo") >&5
40230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40231 ac_status=$?
40232 grep -v '^ *+' conftest.er1 >conftest.err
40233 rm -f conftest.er1
40234 cat conftest.err >&5
40235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); } >/dev/null && {
40237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40238 test ! -s conftest.err
40239 }; then
40240 ac_header_preproc=yes
40241else
40242 $as_echo "$as_me: failed program was:" >&5
40243sed 's/^/| /' conftest.$ac_ext >&5
40244
40245 ac_header_preproc=no
40246fi
40247
40248rm -f conftest.err conftest.$ac_ext
40249{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40250$as_echo "$ac_header_preproc" >&6; }
40251
40252# So? What about this header?
40253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40254 yes:no: )
40255 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40256$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40257 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
40258$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
40259 ac_header_preproc=yes
40260 ;;
40261 no:yes:* )
40262 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
40263$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
40264 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
40265$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
40266 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
40267$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
40268 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
40269$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40270 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
40271$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
40272 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
40273$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
40274 ( cat <<\_ASBOX
40275## ----------------------------------------- ##
40276## Report this to http://www.imagemagick.org ##
40277## ----------------------------------------- ##
40278_ASBOX
40279 ) | sed "s/^/$as_me: WARNING: /" >&2
40280 ;;
40281esac
40282{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40283$as_echo_n "checking for jpeglib.h... " >&6; }
40284if test "${ac_cv_header_jpeglib_h+set}" = set; then
40285 $as_echo_n "(cached) " >&6
40286else
40287 ac_cv_header_jpeglib_h=$ac_header_preproc
40288fi
40289{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40290$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40291
40292fi
40293if test "x$ac_cv_header_jpeglib_h" = x""yes; then
40294 passed=`expr $passed + 1`
40295else
40296 failed=`expr $failed + 1`
40297fi
40298
40299
40300 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
40301$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40302if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
40303 $as_echo_n "(cached) " >&6
40304else
40305 ac_check_lib_save_LIBS=$LIBS
40306LIBS="-ljpeg $LIBS"
40307cat >conftest.$ac_ext <<_ACEOF
40308/* confdefs.h. */
40309_ACEOF
40310cat confdefs.h >>conftest.$ac_ext
40311cat >>conftest.$ac_ext <<_ACEOF
40312/* end confdefs.h. */
40313
40314/* Override any GCC internal prototype to avoid an error.
40315 Use char because int might match the return type of a GCC
40316 builtin and then its argument prototype would still apply. */
40317#ifdef __cplusplus
40318extern "C"
40319#endif
40320char jpeg_read_header ();
40321int
40322main ()
40323{
40324return jpeg_read_header ();
40325 ;
40326 return 0;
40327}
40328_ACEOF
40329rm -f conftest.$ac_objext conftest$ac_exeext
40330if { (ac_try="$ac_link"
40331case "(($ac_try" in
40332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40333 *) ac_try_echo=$ac_try;;
40334esac
40335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40336$as_echo "$ac_try_echo") >&5
40337 (eval "$ac_link") 2>conftest.er1
40338 ac_status=$?
40339 grep -v '^ *+' conftest.er1 >conftest.err
40340 rm -f conftest.er1
40341 cat conftest.err >&5
40342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); } && {
40344 test -z "$ac_c_werror_flag" ||
40345 test ! -s conftest.err
40346 } && test -s conftest$ac_exeext && {
40347 test "$cross_compiling" = yes ||
40348 $as_test_x conftest$ac_exeext
40349 }; then
40350 ac_cv_lib_jpeg_jpeg_read_header=yes
40351else
40352 $as_echo "$as_me: failed program was:" >&5
40353sed 's/^/| /' conftest.$ac_ext >&5
40354
40355 ac_cv_lib_jpeg_jpeg_read_header=no
40356fi
40357
40358rm -rf conftest.dSYM
40359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40360 conftest$ac_exeext conftest.$ac_ext
40361LIBS=$ac_check_lib_save_LIBS
40362fi
40363{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40364$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40365if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
40366 passed=`expr $passed + 1`
40367else
40368 failed=`expr $failed + 1`
40369fi
40370
40371
40372# Test for compatible JPEG library
40373if test "$ac_cv_jpeg_version_ok" != 'yes'; then
40374{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
40375$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
40376if test "${ac_cv_jpeg_version_ok+set}" = set; then
40377 $as_echo_n "(cached) " >&6
40378else
40379 cat >conftest.$ac_ext <<_ACEOF
40380/* confdefs.h. */
40381_ACEOF
40382cat confdefs.h >>conftest.$ac_ext
40383cat >>conftest.$ac_ext <<_ACEOF
40384/* end confdefs.h. */
40385#include <stdio.h>
40386#include <stdlib.h>
40387#include <jpeglib.h>
40388
40389int
40390main ()
40391{
40392
40393#if JPEG_LIB_VERSION < 62
40394#error IJG JPEG library must be version 6b or newer!
40395#endif
40396return 0;
40397
40398 ;
40399 return 0;
40400}
40401_ACEOF
40402rm -f conftest.$ac_objext
40403if { (ac_try="$ac_compile"
40404case "(($ac_try" in
40405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40406 *) ac_try_echo=$ac_try;;
40407esac
40408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40409$as_echo "$ac_try_echo") >&5
40410 (eval "$ac_compile") 2>conftest.er1
40411 ac_status=$?
40412 grep -v '^ *+' conftest.er1 >conftest.err
40413 rm -f conftest.er1
40414 cat conftest.err >&5
40415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416 (exit $ac_status); } && {
40417 test -z "$ac_c_werror_flag" ||
40418 test ! -s conftest.err
40419 } && test -s conftest.$ac_objext; then
40420 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
40421else
40422 $as_echo "$as_me: failed program was:" >&5
40423sed 's/^/| /' conftest.$ac_ext >&5
40424
40425 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
40426fi
40427
40428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40429fi
40430{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
40431$as_echo "$ac_cv_jpeg_version_ok" >&6; }
40432fi
40433 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
40434$as_echo_n "checking if JPEG package is complete... " >&6; }
40435 if test $passed -gt 0; then
40436 if test $failed -gt 0; then
40437 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40438$as_echo "no -- some components failed test" >&6; }
40439 have_jpeg='no (failed tests)'
40440 else
40441 JPEG_LIBS='-ljpeg'
40442 LIBS="$JPEG_LIBS $LIBS"
40443
40444cat >>confdefs.h <<\_ACEOF
40445#define JPEG_DELEGATE 1
40446_ACEOF
40447
40448 { $as_echo "$as_me:$LINENO: result: yes" >&5
40449$as_echo "yes" >&6; }
40450 have_jpeg='yes'
40451 fi
40452 else
40453 { $as_echo "$as_me:$LINENO: result: no" >&5
40454$as_echo "no" >&6; }
40455 fi
40456fi
40457 if test "$have_jpeg" = 'yes'; then
40458 JPEG_DELEGATE_TRUE=
40459 JPEG_DELEGATE_FALSE='#'
40460else
40461 JPEG_DELEGATE_TRUE='#'
40462 JPEG_DELEGATE_FALSE=
40463fi
40464
40465
40466
40467
40468#
40469# Check for JPEG Version 2 delegate library.
40470#
40471
40472# Check whether --with-jp2 was given.
40473if test "${with_jp2+set}" = set; then
40474 withval=$with_jp2; with_jp2=$withval
40475else
40476 with_jp2='yes'
40477fi
40478
40479
40480if test "$with_jp2" != 'yes'; then
40481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
40482fi
40483
40484have_jp2='no'
40485JP2_LIBS=''
40486if test "$with_jp2" != 'no'; then
40487 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40488$as_echo "-------------------------------------------------------------" >&6; }
40489 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
40490$as_echo_n "checking for JPEG Version 2... " >&6; }
40491 { $as_echo "$as_me:$LINENO: result: " >&5
40492$as_echo "" >&6; }
40493 failed=0
40494 passed=0
40495 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40496 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40497$as_echo_n "checking for jasper/jasper.h... " >&6; }
40498if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40499 $as_echo_n "(cached) " >&6
40500fi
40501{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40502$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40503else
40504 # Is the header compilable?
40505{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
40506$as_echo_n "checking jasper/jasper.h usability... " >&6; }
40507cat >conftest.$ac_ext <<_ACEOF
40508/* confdefs.h. */
40509_ACEOF
40510cat confdefs.h >>conftest.$ac_ext
40511cat >>conftest.$ac_ext <<_ACEOF
40512/* end confdefs.h. */
40513$ac_includes_default
40514#include <jasper/jasper.h>
40515_ACEOF
40516rm -f conftest.$ac_objext
40517if { (ac_try="$ac_compile"
40518case "(($ac_try" in
40519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40520 *) ac_try_echo=$ac_try;;
40521esac
40522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40523$as_echo "$ac_try_echo") >&5
40524 (eval "$ac_compile") 2>conftest.er1
40525 ac_status=$?
40526 grep -v '^ *+' conftest.er1 >conftest.err
40527 rm -f conftest.er1
40528 cat conftest.err >&5
40529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530 (exit $ac_status); } && {
40531 test -z "$ac_c_werror_flag" ||
40532 test ! -s conftest.err
40533 } && test -s conftest.$ac_objext; then
40534 ac_header_compiler=yes
40535else
40536 $as_echo "$as_me: failed program was:" >&5
40537sed 's/^/| /' conftest.$ac_ext >&5
40538
40539 ac_header_compiler=no
40540fi
40541
40542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40543{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40544$as_echo "$ac_header_compiler" >&6; }
40545
40546# Is the header present?
40547{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
40548$as_echo_n "checking jasper/jasper.h presence... " >&6; }
40549cat >conftest.$ac_ext <<_ACEOF
40550/* confdefs.h. */
40551_ACEOF
40552cat confdefs.h >>conftest.$ac_ext
40553cat >>conftest.$ac_ext <<_ACEOF
40554/* end confdefs.h. */
40555#include <jasper/jasper.h>
40556_ACEOF
40557if { (ac_try="$ac_cpp conftest.$ac_ext"
40558case "(($ac_try" in
40559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40560 *) ac_try_echo=$ac_try;;
40561esac
40562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40563$as_echo "$ac_try_echo") >&5
40564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40565 ac_status=$?
40566 grep -v '^ *+' conftest.er1 >conftest.err
40567 rm -f conftest.er1
40568 cat conftest.err >&5
40569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); } >/dev/null && {
40571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40572 test ! -s conftest.err
40573 }; then
40574 ac_header_preproc=yes
40575else
40576 $as_echo "$as_me: failed program was:" >&5
40577sed 's/^/| /' conftest.$ac_ext >&5
40578
40579 ac_header_preproc=no
40580fi
40581
40582rm -f conftest.err conftest.$ac_ext
40583{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40584$as_echo "$ac_header_preproc" >&6; }
40585
40586# So? What about this header?
40587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40588 yes:no: )
40589 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
40590$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40591 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
40592$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
40593 ac_header_preproc=yes
40594 ;;
40595 no:yes:* )
40596 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
40597$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
40598 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
40599$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
40600 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
40601$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
40602 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
40603$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
40604 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
40605$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
40606 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
40607$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
40608 ( cat <<\_ASBOX
40609## ----------------------------------------- ##
40610## Report this to http://www.imagemagick.org ##
40611## ----------------------------------------- ##
40612_ASBOX
40613 ) | sed "s/^/$as_me: WARNING: /" >&2
40614 ;;
40615esac
40616{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40617$as_echo_n "checking for jasper/jasper.h... " >&6; }
40618if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40619 $as_echo_n "(cached) " >&6
40620else
40621 ac_cv_header_jasper_jasper_h=$ac_header_preproc
40622fi
40623{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40624$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40625
40626fi
40627if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
40628 passed=`expr $passed + 1`
40629else
40630 failed=`expr $failed + 1`
40631fi
40632
40633
40634 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
40635$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
40636if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
40637 $as_echo_n "(cached) " >&6
40638else
40639 ac_check_lib_save_LIBS=$LIBS
40640LIBS="-ljasper $LIBS"
40641cat >conftest.$ac_ext <<_ACEOF
40642/* confdefs.h. */
40643_ACEOF
40644cat confdefs.h >>conftest.$ac_ext
40645cat >>conftest.$ac_ext <<_ACEOF
40646/* end confdefs.h. */
40647
40648/* Override any GCC internal prototype to avoid an error.
40649 Use char because int might match the return type of a GCC
40650 builtin and then its argument prototype would still apply. */
40651#ifdef __cplusplus
40652extern "C"
40653#endif
40654char jas_stream_fopen ();
40655int
40656main ()
40657{
40658return jas_stream_fopen ();
40659 ;
40660 return 0;
40661}
40662_ACEOF
40663rm -f conftest.$ac_objext conftest$ac_exeext
40664if { (ac_try="$ac_link"
40665case "(($ac_try" in
40666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40667 *) ac_try_echo=$ac_try;;
40668esac
40669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40670$as_echo "$ac_try_echo") >&5
40671 (eval "$ac_link") 2>conftest.er1
40672 ac_status=$?
40673 grep -v '^ *+' conftest.er1 >conftest.err
40674 rm -f conftest.er1
40675 cat conftest.err >&5
40676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40677 (exit $ac_status); } && {
40678 test -z "$ac_c_werror_flag" ||
40679 test ! -s conftest.err
40680 } && test -s conftest$ac_exeext && {
40681 test "$cross_compiling" = yes ||
40682 $as_test_x conftest$ac_exeext
40683 }; then
40684 ac_cv_lib_jasper_jas_stream_fopen=yes
40685else
40686 $as_echo "$as_me: failed program was:" >&5
40687sed 's/^/| /' conftest.$ac_ext >&5
40688
40689 ac_cv_lib_jasper_jas_stream_fopen=no
40690fi
40691
40692rm -rf conftest.dSYM
40693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40694 conftest$ac_exeext conftest.$ac_ext
40695LIBS=$ac_check_lib_save_LIBS
40696fi
40697{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
40698$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
40699if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
40700 passed=`expr $passed + 1`
40701else
40702 failed=`expr $failed + 1`
40703fi
40704
40705 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
40706$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
40707 if test $passed -gt 0; then
40708 if test $failed -gt 0; then
40709 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40710$as_echo "no -- some components failed test" >&6; }
40711 have_jp2='no (failed tests)'
40712 else
40713 JP2_LIBS='-ljasper'
40714 LIBS="$JP2_LIBS $LIBS"
40715
40716cat >>confdefs.h <<\_ACEOF
40717#define JP2_DELEGATE 1
40718_ACEOF
40719
40720 { $as_echo "$as_me:$LINENO: result: yes" >&5
40721$as_echo "yes" >&6; }
40722 have_jp2='yes'
40723 fi
40724 else
40725 { $as_echo "$as_me:$LINENO: result: no" >&5
40726$as_echo "no" >&6; }
40727 fi
40728fi
40729 if test "$have_jp2" = 'yes'; then
40730 JP2_DELEGATE_TRUE=
40731 JP2_DELEGATE_FALSE='#'
40732else
40733 JP2_DELEGATE_TRUE='#'
40734 JP2_DELEGATE_FALSE=
40735fi
40736
40737
40738
40739
40740#
40741# Check for LCMS delegate library.
40742#
40743
40744# Check whether --with-lcms was given.
40745if test "${with_lcms+set}" = set; then
40746 withval=$with_lcms; with_lcms=$withval
40747else
40748 with_lcms='yes'
40749fi
40750
40751
40752if test "$with_lcms" != 'yes'; then
40753 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
40754fi
40755
40756have_lcms='no'
40757LCMS_LIBS=''
40758if test "$with_lcms" != 'no'; then
40759 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40760$as_echo "-------------------------------------------------------------" >&6; }
40761 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
40762$as_echo_n "checking for LCMS... " >&6; }
40763 { $as_echo "$as_me:$LINENO: result: " >&5
40764$as_echo "" >&6; }
40765 failed=0
40766 passed=0
40767 have_lcms_header='no'
40768 if test "${ac_cv_header_lcms_h+set}" = set; then
40769 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40770$as_echo_n "checking for lcms.h... " >&6; }
40771if test "${ac_cv_header_lcms_h+set}" = set; then
40772 $as_echo_n "(cached) " >&6
40773fi
40774{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40775$as_echo "$ac_cv_header_lcms_h" >&6; }
40776else
40777 # Is the header compilable?
40778{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
40779$as_echo_n "checking lcms.h usability... " >&6; }
40780cat >conftest.$ac_ext <<_ACEOF
40781/* confdefs.h. */
40782_ACEOF
40783cat confdefs.h >>conftest.$ac_ext
40784cat >>conftest.$ac_ext <<_ACEOF
40785/* end confdefs.h. */
40786$ac_includes_default
40787#include <lcms.h>
40788_ACEOF
40789rm -f conftest.$ac_objext
40790if { (ac_try="$ac_compile"
40791case "(($ac_try" in
40792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40793 *) ac_try_echo=$ac_try;;
40794esac
40795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40796$as_echo "$ac_try_echo") >&5
40797 (eval "$ac_compile") 2>conftest.er1
40798 ac_status=$?
40799 grep -v '^ *+' conftest.er1 >conftest.err
40800 rm -f conftest.er1
40801 cat conftest.err >&5
40802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803 (exit $ac_status); } && {
40804 test -z "$ac_c_werror_flag" ||
40805 test ! -s conftest.err
40806 } && test -s conftest.$ac_objext; then
40807 ac_header_compiler=yes
40808else
40809 $as_echo "$as_me: failed program was:" >&5
40810sed 's/^/| /' conftest.$ac_ext >&5
40811
40812 ac_header_compiler=no
40813fi
40814
40815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40816{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40817$as_echo "$ac_header_compiler" >&6; }
40818
40819# Is the header present?
40820{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40821$as_echo_n "checking lcms.h presence... " >&6; }
40822cat >conftest.$ac_ext <<_ACEOF
40823/* confdefs.h. */
40824_ACEOF
40825cat confdefs.h >>conftest.$ac_ext
40826cat >>conftest.$ac_ext <<_ACEOF
40827/* end confdefs.h. */
40828#include <lcms.h>
40829_ACEOF
40830if { (ac_try="$ac_cpp conftest.$ac_ext"
40831case "(($ac_try" in
40832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40833 *) ac_try_echo=$ac_try;;
40834esac
40835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40836$as_echo "$ac_try_echo") >&5
40837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40838 ac_status=$?
40839 grep -v '^ *+' conftest.er1 >conftest.err
40840 rm -f conftest.er1
40841 cat conftest.err >&5
40842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); } >/dev/null && {
40844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40845 test ! -s conftest.err
40846 }; then
40847 ac_header_preproc=yes
40848else
40849 $as_echo "$as_me: failed program was:" >&5
40850sed 's/^/| /' conftest.$ac_ext >&5
40851
40852 ac_header_preproc=no
40853fi
40854
40855rm -f conftest.err conftest.$ac_ext
40856{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40857$as_echo "$ac_header_preproc" >&6; }
40858
40859# So? What about this header?
40860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40861 yes:no: )
40862 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40863$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40864 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40865$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40866 ac_header_preproc=yes
40867 ;;
40868 no:yes:* )
40869 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40870$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40871 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40872$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40873 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40874$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40875 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40876$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40877 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40878$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40879 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40880$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40881 ( cat <<\_ASBOX
40882## ----------------------------------------- ##
40883## Report this to http://www.imagemagick.org ##
40884## ----------------------------------------- ##
40885_ASBOX
40886 ) | sed "s/^/$as_me: WARNING: /" >&2
40887 ;;
40888esac
40889{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40890$as_echo_n "checking for lcms.h... " >&6; }
40891if test "${ac_cv_header_lcms_h+set}" = set; then
40892 $as_echo_n "(cached) " >&6
40893else
40894 ac_cv_header_lcms_h=$ac_header_preproc
40895fi
40896{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40897$as_echo "$ac_cv_header_lcms_h" >&6; }
40898
40899fi
40900if test "x$ac_cv_header_lcms_h" = x""yes; then
40901 have_lcms_header='yes'
40902fi
40903
40904
40905 if test "$have_lcms_header" = 'yes'; then
40906 passed=`expr $passed + 1`
40907
40908cat >>confdefs.h <<\_ACEOF
40909#define HAVE_LCMS_H 1
40910_ACEOF
40911
40912 else
40913 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40914 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40915$as_echo_n "checking for lcms/lcms.h... " >&6; }
40916if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40917 $as_echo_n "(cached) " >&6
40918fi
40919{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40920$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40921else
40922 # Is the header compilable?
40923{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40924$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40925cat >conftest.$ac_ext <<_ACEOF
40926/* confdefs.h. */
40927_ACEOF
40928cat confdefs.h >>conftest.$ac_ext
40929cat >>conftest.$ac_ext <<_ACEOF
40930/* end confdefs.h. */
40931$ac_includes_default
40932#include <lcms/lcms.h>
40933_ACEOF
40934rm -f conftest.$ac_objext
40935if { (ac_try="$ac_compile"
40936case "(($ac_try" in
40937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40938 *) ac_try_echo=$ac_try;;
40939esac
40940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40941$as_echo "$ac_try_echo") >&5
40942 (eval "$ac_compile") 2>conftest.er1
40943 ac_status=$?
40944 grep -v '^ *+' conftest.er1 >conftest.err
40945 rm -f conftest.er1
40946 cat conftest.err >&5
40947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); } && {
40949 test -z "$ac_c_werror_flag" ||
40950 test ! -s conftest.err
40951 } && test -s conftest.$ac_objext; then
40952 ac_header_compiler=yes
40953else
40954 $as_echo "$as_me: failed program was:" >&5
40955sed 's/^/| /' conftest.$ac_ext >&5
40956
40957 ac_header_compiler=no
40958fi
40959
40960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40961{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40962$as_echo "$ac_header_compiler" >&6; }
40963
40964# Is the header present?
40965{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40966$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40967cat >conftest.$ac_ext <<_ACEOF
40968/* confdefs.h. */
40969_ACEOF
40970cat confdefs.h >>conftest.$ac_ext
40971cat >>conftest.$ac_ext <<_ACEOF
40972/* end confdefs.h. */
40973#include <lcms/lcms.h>
40974_ACEOF
40975if { (ac_try="$ac_cpp conftest.$ac_ext"
40976case "(($ac_try" in
40977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40978 *) ac_try_echo=$ac_try;;
40979esac
40980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40981$as_echo "$ac_try_echo") >&5
40982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40983 ac_status=$?
40984 grep -v '^ *+' conftest.er1 >conftest.err
40985 rm -f conftest.er1
40986 cat conftest.err >&5
40987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); } >/dev/null && {
40989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40990 test ! -s conftest.err
40991 }; then
40992 ac_header_preproc=yes
40993else
40994 $as_echo "$as_me: failed program was:" >&5
40995sed 's/^/| /' conftest.$ac_ext >&5
40996
40997 ac_header_preproc=no
40998fi
40999
41000rm -f conftest.err conftest.$ac_ext
41001{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41002$as_echo "$ac_header_preproc" >&6; }
41003
41004# So? What about this header?
41005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41006 yes:no: )
41007 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
41008$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41009 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
41010$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
41011 ac_header_preproc=yes
41012 ;;
41013 no:yes:* )
41014 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
41015$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
41016 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
41017$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
41018 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
41019$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
41020 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
41021$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
41022 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
41023$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
41024 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
41025$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
41026 ( cat <<\_ASBOX
41027## ----------------------------------------- ##
41028## Report this to http://www.imagemagick.org ##
41029## ----------------------------------------- ##
41030_ASBOX
41031 ) | sed "s/^/$as_me: WARNING: /" >&2
41032 ;;
41033esac
41034{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
41035$as_echo_n "checking for lcms/lcms.h... " >&6; }
41036if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
41037 $as_echo_n "(cached) " >&6
41038else
41039 ac_cv_header_lcms_lcms_h=$ac_header_preproc
41040fi
41041{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
41042$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
41043
41044fi
41045if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
41046 have_lcms_header='yes'
41047fi
41048
41049
41050 if test "$have_lcms_header" = 'yes'; then
41051 passed=`expr $passed + 1`
41052
41053cat >>confdefs.h <<\_ACEOF
41054#define HAVE_LCMS_LCMS_H 1
41055_ACEOF
41056
41057 else
41058 failed=`expr $failed + 1`
41059 fi
41060 fi
41061 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
41062$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
41063if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
41064 $as_echo_n "(cached) " >&6
41065else
41066 ac_check_lib_save_LIBS=$LIBS
41067LIBS="-llcms $LIBS"
41068cat >conftest.$ac_ext <<_ACEOF
41069/* confdefs.h. */
41070_ACEOF
41071cat confdefs.h >>conftest.$ac_ext
41072cat >>conftest.$ac_ext <<_ACEOF
41073/* end confdefs.h. */
41074
41075/* Override any GCC internal prototype to avoid an error.
41076 Use char because int might match the return type of a GCC
41077 builtin and then its argument prototype would still apply. */
41078#ifdef __cplusplus
41079extern "C"
41080#endif
41081char cmsOpenProfileFromMem ();
41082int
41083main ()
41084{
41085return cmsOpenProfileFromMem ();
41086 ;
41087 return 0;
41088}
41089_ACEOF
41090rm -f conftest.$ac_objext conftest$ac_exeext
41091if { (ac_try="$ac_link"
41092case "(($ac_try" in
41093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41094 *) ac_try_echo=$ac_try;;
41095esac
41096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41097$as_echo "$ac_try_echo") >&5
41098 (eval "$ac_link") 2>conftest.er1
41099 ac_status=$?
41100 grep -v '^ *+' conftest.er1 >conftest.err
41101 rm -f conftest.er1
41102 cat conftest.err >&5
41103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41104 (exit $ac_status); } && {
41105 test -z "$ac_c_werror_flag" ||
41106 test ! -s conftest.err
41107 } && test -s conftest$ac_exeext && {
41108 test "$cross_compiling" = yes ||
41109 $as_test_x conftest$ac_exeext
41110 }; then
41111 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
41112else
41113 $as_echo "$as_me: failed program was:" >&5
41114sed 's/^/| /' conftest.$ac_ext >&5
41115
41116 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
41117fi
41118
41119rm -rf conftest.dSYM
41120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41121 conftest$ac_exeext conftest.$ac_ext
41122LIBS=$ac_check_lib_save_LIBS
41123fi
41124{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
41125$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
41126if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
41127 passed=`expr $passed + 1`
41128else
41129 failed=`expr $failed + 1`
41130fi
41131
41132 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
41133$as_echo_n "checking if LCMS package is complete... " >&6; }
41134 if test $passed -gt 0; then
41135 if test $failed -gt 0; then
41136 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41137$as_echo "no -- some components failed test" >&6; }
41138 have_lcms='no (failed tests)'
41139 else
41140 LCMS_LIBS='-llcms'
41141 LIBS="$LCMS_LIBS $LIBS"
41142
41143cat >>confdefs.h <<\_ACEOF
41144#define LCMS_DELEGATE 1
41145_ACEOF
41146
41147 { $as_echo "$as_me:$LINENO: result: yes" >&5
41148$as_echo "yes" >&6; }
41149 have_lcms='yes'
41150 fi
41151 else
41152 { $as_echo "$as_me:$LINENO: result: no" >&5
41153$as_echo "no" >&6; }
41154 fi
41155fi
41156 if test "$have_lcms" = 'yes'; then
41157 LCMS_DELEGATE_TRUE=
41158 LCMS_DELEGATE_FALSE='#'
41159else
41160 LCMS_DELEGATE_TRUE='#'
41161 LCMS_DELEGATE_FALSE=
41162fi
41163
41164
41165
41166
41167#
41168# Check for the LQR (Liquid Rescale) delegate library.
41169#
41170
41171# Check whether --with-lqr was given.
41172if test "${with_lqr+set}" = set; then
41173 withval=$with_lqr; with_lqr=$withval
41174else
41175 with_lqr='yes'
41176fi
41177
41178
41179if test "$with_lqr" != 'yes'; then
41180 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
41181fi
41182
41183have_lqr='no'
41184LQR_CFLAGS=""
41185LQR_LIBS=""
41186LQR_PKG=""
41187if test "x$with_lqr" = "xyes"; then
41188 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41189$as_echo "-------------------------------------------------------------" >&6; }
41190
41191pkg_failed=no
41192{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
41193$as_echo_n "checking for LQR... " >&6; }
41194
41195if test -n "$LQR_CFLAGS"; then
41196 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
41197 elif test -n "$PKG_CONFIG"; then
41198 if test -n "$PKG_CONFIG" && \
41199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41200 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41201 ac_status=$?
41202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); }; then
41204 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
41205else
41206 pkg_failed=yes
41207fi
41208 else
41209 pkg_failed=untried
41210fi
41211if test -n "$LQR_LIBS"; then
41212 pkg_cv_LQR_LIBS="$LQR_LIBS"
41213 elif test -n "$PKG_CONFIG"; then
41214 if test -n "$PKG_CONFIG" && \
41215 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41216 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41217 ac_status=$?
41218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 (exit $ac_status); }; then
41220 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
41221else
41222 pkg_failed=yes
41223fi
41224 else
41225 pkg_failed=untried
41226fi
41227
41228
41229
41230if test $pkg_failed = yes; then
41231
41232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41233 _pkg_short_errors_supported=yes
41234else
41235 _pkg_short_errors_supported=no
41236fi
41237 if test $_pkg_short_errors_supported = yes; then
41238 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
41239 else
41240 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
41241 fi
41242 # Put the nasty error message in config.log where it belongs
41243 echo "$LQR_PKG_ERRORS" >&5
41244
41245 { $as_echo "$as_me:$LINENO: result: no" >&5
41246$as_echo "no" >&6; }
41247 have_lqr=no
41248elif test $pkg_failed = untried; then
41249 have_lqr=no
41250else
41251 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
41252 LQR_LIBS=$pkg_cv_LQR_LIBS
41253 { $as_echo "$as_me:$LINENO: result: yes" >&5
41254$as_echo "yes" >&6; }
41255 have_lqr=yes
41256fi
41257 { $as_echo "$as_me:$LINENO: result: " >&5
41258$as_echo "" >&6; }
41259fi
41260
41261if test "$have_lqr" = 'yes'; then
41262
41263cat >>confdefs.h <<\_ACEOF
41264#define LQR_DELEGATE 1
41265_ACEOF
41266
41267 CFLAGS="$LQR_CFLAGS $CFLAGS"
41268fi
41269
41270 if test "$have_lqr" = 'yes'; then
41271 LQR_DELEGATE_TRUE=
41272 LQR_DELEGATE_FALSE='#'
41273else
41274 LQR_DELEGATE_TRUE='#'
41275 LQR_DELEGATE_FALSE=
41276fi
41277
41278
41279
41280
41281
41282#
41283# Check for the OpenEXR delegate library.
41284#
41285
41286# Check whether --with-openexr was given.
41287if test "${with_openexr+set}" = set; then
41288 withval=$with_openexr; with_openexr=$withval
41289else
41290 with_openexr='yes'
41291fi
41292
41293
41294if test "$with_openexr" != 'yes'; then
41295 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
41296fi
41297
41298have_openexr='no'
41299OPENEXR_CFLAGS=""
41300OPENEXR_LIBS=""
41301OPENEXR_PKG=""
41302if test "x$with_openexr" = "xyes"; then
41303 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41304$as_echo "-------------------------------------------------------------" >&6; }
41305
41306pkg_failed=no
41307{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
41308$as_echo_n "checking for OPENEXR... " >&6; }
41309
41310if test -n "$OPENEXR_CFLAGS"; then
41311 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
41312 elif test -n "$PKG_CONFIG"; then
41313 if test -n "$PKG_CONFIG" && \
41314 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41315 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41316 ac_status=$?
41317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41318 (exit $ac_status); }; then
41319 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
41320else
41321 pkg_failed=yes
41322fi
41323 else
41324 pkg_failed=untried
41325fi
41326if test -n "$OPENEXR_LIBS"; then
41327 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
41328 elif test -n "$PKG_CONFIG"; then
41329 if test -n "$PKG_CONFIG" && \
41330 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41331 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41332 ac_status=$?
41333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41334 (exit $ac_status); }; then
41335 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
41336else
41337 pkg_failed=yes
41338fi
41339 else
41340 pkg_failed=untried
41341fi
41342
41343
41344
41345if test $pkg_failed = yes; then
41346
41347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41348 _pkg_short_errors_supported=yes
41349else
41350 _pkg_short_errors_supported=no
41351fi
41352 if test $_pkg_short_errors_supported = yes; then
41353 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
41354 else
41355 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
41356 fi
41357 # Put the nasty error message in config.log where it belongs
41358 echo "$OPENEXR_PKG_ERRORS" >&5
41359
41360 { $as_echo "$as_me:$LINENO: result: no" >&5
41361$as_echo "no" >&6; }
41362 have_openexr=no
41363elif test $pkg_failed = untried; then
41364 have_openexr=no
41365else
41366 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
41367 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
41368 { $as_echo "$as_me:$LINENO: result: yes" >&5
41369$as_echo "yes" >&6; }
41370 have_openexr=yes
41371fi
41372 { $as_echo "$as_me:$LINENO: result: " >&5
41373$as_echo "" >&6; }
41374fi
41375
41376if test "$have_openexr" = 'yes'; then
41377
41378cat >>confdefs.h <<\_ACEOF
41379#define OPENEXR_DELEGATE 1
41380_ACEOF
41381
41382 if test "$with_modules" = 'no'; then
41383 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
41384 fi
41385fi
41386
41387 if test "$have_openexr" = 'yes'; then
41388 OPENEXR_DELEGATE_TRUE=
41389 OPENEXR_DELEGATE_FALSE='#'
41390else
41391 OPENEXR_DELEGATE_TRUE='#'
41392 OPENEXR_DELEGATE_FALSE=
41393fi
41394
41395
41396
41397
41398
41399#
41400# Check for PNG delegate library.
41401#
41402
41403# Check whether --with-png was given.
41404if test "${with_png+set}" = set; then
41405 withval=$with_png; with_png=$withval
41406else
41407 with_png='yes'
41408fi
41409
41410
41411if test "$with_png" != 'yes'; then
41412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
41413fi
41414
41415have_png='no'
41416PNG_LIBS=''
41417if test "$with_png" != 'no'; then
41418 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41419$as_echo "-------------------------------------------------------------" >&6; }
41420 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
41421$as_echo_n "checking for PNG... " >&6; }
41422 { $as_echo "$as_me:$LINENO: result: " >&5
41423$as_echo "" >&6; }
41424 failed=0
41425 passed=0
41426 if test "${ac_cv_header_png_h+set}" = set; then
41427 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
41428$as_echo_n "checking for png.h... " >&6; }
41429if test "${ac_cv_header_png_h+set}" = set; then
41430 $as_echo_n "(cached) " >&6
41431fi
41432{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41433$as_echo "$ac_cv_header_png_h" >&6; }
41434else
41435 # Is the header compilable?
41436{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
41437$as_echo_n "checking png.h usability... " >&6; }
41438cat >conftest.$ac_ext <<_ACEOF
41439/* confdefs.h. */
41440_ACEOF
41441cat confdefs.h >>conftest.$ac_ext
41442cat >>conftest.$ac_ext <<_ACEOF
41443/* end confdefs.h. */
41444$ac_includes_default
41445#include <png.h>
41446_ACEOF
41447rm -f conftest.$ac_objext
41448if { (ac_try="$ac_compile"
41449case "(($ac_try" in
41450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41451 *) ac_try_echo=$ac_try;;
41452esac
41453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41454$as_echo "$ac_try_echo") >&5
41455 (eval "$ac_compile") 2>conftest.er1
41456 ac_status=$?
41457 grep -v '^ *+' conftest.er1 >conftest.err
41458 rm -f conftest.er1
41459 cat conftest.err >&5
41460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); } && {
41462 test -z "$ac_c_werror_flag" ||
41463 test ! -s conftest.err
41464 } && test -s conftest.$ac_objext; then
41465 ac_header_compiler=yes
41466else
41467 $as_echo "$as_me: failed program was:" >&5
41468sed 's/^/| /' conftest.$ac_ext >&5
41469
41470 ac_header_compiler=no
41471fi
41472
41473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41474{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41475$as_echo "$ac_header_compiler" >&6; }
41476
41477# Is the header present?
41478{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
41479$as_echo_n "checking png.h presence... " >&6; }
41480cat >conftest.$ac_ext <<_ACEOF
41481/* confdefs.h. */
41482_ACEOF
41483cat confdefs.h >>conftest.$ac_ext
41484cat >>conftest.$ac_ext <<_ACEOF
41485/* end confdefs.h. */
41486#include <png.h>
41487_ACEOF
41488if { (ac_try="$ac_cpp conftest.$ac_ext"
41489case "(($ac_try" in
41490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41491 *) ac_try_echo=$ac_try;;
41492esac
41493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41494$as_echo "$ac_try_echo") >&5
41495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41496 ac_status=$?
41497 grep -v '^ *+' conftest.er1 >conftest.err
41498 rm -f conftest.er1
41499 cat conftest.err >&5
41500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501 (exit $ac_status); } >/dev/null && {
41502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41503 test ! -s conftest.err
41504 }; then
41505 ac_header_preproc=yes
41506else
41507 $as_echo "$as_me: failed program was:" >&5
41508sed 's/^/| /' conftest.$ac_ext >&5
41509
41510 ac_header_preproc=no
41511fi
41512
41513rm -f conftest.err conftest.$ac_ext
41514{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41515$as_echo "$ac_header_preproc" >&6; }
41516
41517# So? What about this header?
41518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41519 yes:no: )
41520 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
41521$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41522 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
41523$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
41524 ac_header_preproc=yes
41525 ;;
41526 no:yes:* )
41527 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
41528$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
41529 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
41530$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
41531 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
41532$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
41533 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
41534$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
41535 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
41536$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
41537 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
41538$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
41539 ( cat <<\_ASBOX
41540## ----------------------------------------- ##
41541## Report this to http://www.imagemagick.org ##
41542## ----------------------------------------- ##
41543_ASBOX
41544 ) | sed "s/^/$as_me: WARNING: /" >&2
41545 ;;
41546esac
41547{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
41548$as_echo_n "checking for png.h... " >&6; }
41549if test "${ac_cv_header_png_h+set}" = set; then
41550 $as_echo_n "(cached) " >&6
41551else
41552 ac_cv_header_png_h=$ac_header_preproc
41553fi
41554{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41555$as_echo "$ac_cv_header_png_h" >&6; }
41556
41557fi
41558if test "x$ac_cv_header_png_h" = x""yes; then
41559 passed=`expr $passed + 1`
41560else
41561 failed=`expr $failed + 1`
41562fi
41563
41564
41565 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
41566$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
41567if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
41568 $as_echo_n "(cached) " >&6
41569else
41570 ac_check_lib_save_LIBS=$LIBS
41571LIBS="-lpng $LIBS"
41572cat >conftest.$ac_ext <<_ACEOF
41573/* confdefs.h. */
41574_ACEOF
41575cat confdefs.h >>conftest.$ac_ext
41576cat >>conftest.$ac_ext <<_ACEOF
41577/* end confdefs.h. */
41578
41579/* Override any GCC internal prototype to avoid an error.
41580 Use char because int might match the return type of a GCC
41581 builtin and then its argument prototype would still apply. */
41582#ifdef __cplusplus
41583extern "C"
41584#endif
41585char png_get_io_ptr ();
41586int
41587main ()
41588{
41589return png_get_io_ptr ();
41590 ;
41591 return 0;
41592}
41593_ACEOF
41594rm -f conftest.$ac_objext conftest$ac_exeext
41595if { (ac_try="$ac_link"
41596case "(($ac_try" in
41597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41598 *) ac_try_echo=$ac_try;;
41599esac
41600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41601$as_echo "$ac_try_echo") >&5
41602 (eval "$ac_link") 2>conftest.er1
41603 ac_status=$?
41604 grep -v '^ *+' conftest.er1 >conftest.err
41605 rm -f conftest.er1
41606 cat conftest.err >&5
41607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41608 (exit $ac_status); } && {
41609 test -z "$ac_c_werror_flag" ||
41610 test ! -s conftest.err
41611 } && test -s conftest$ac_exeext && {
41612 test "$cross_compiling" = yes ||
41613 $as_test_x conftest$ac_exeext
41614 }; then
41615 ac_cv_lib_png_png_get_io_ptr=yes
41616else
41617 $as_echo "$as_me: failed program was:" >&5
41618sed 's/^/| /' conftest.$ac_ext >&5
41619
41620 ac_cv_lib_png_png_get_io_ptr=no
41621fi
41622
41623rm -rf conftest.dSYM
41624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41625 conftest$ac_exeext conftest.$ac_ext
41626LIBS=$ac_check_lib_save_LIBS
41627fi
41628{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
41629$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
41630if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
41631 passed=`expr $passed + 1`
41632else
41633 failed=`expr $failed + 1`
41634fi
41635
41636 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
41637$as_echo_n "checking if PNG package is complete... " >&6; }
41638 if test $passed -gt 0; then
41639 if test $failed -gt 0; then
41640 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41641$as_echo "no -- some components failed test" >&6; }
41642 have_png='no (failed tests)'
41643 else
41644 PNG_LIBS='-lpng'
41645 LIBS="$PNG_LIBS $LIBS"
41646
41647cat >>confdefs.h <<\_ACEOF
41648#define PNG_DELEGATE 1
41649_ACEOF
41650
41651 { $as_echo "$as_me:$LINENO: result: yes" >&5
41652$as_echo "yes" >&6; }
41653 have_png='yes'
41654 fi
41655 else
41656 { $as_echo "$as_me:$LINENO: result: no" >&5
41657$as_echo "no" >&6; }
41658 fi
41659fi
41660 if test "$have_png" = 'yes'; then
41661 PNG_DELEGATE_TRUE=
41662 PNG_DELEGATE_FALSE='#'
41663else
41664 PNG_DELEGATE_TRUE='#'
41665 PNG_DELEGATE_FALSE=
41666fi
41667
41668
41669
41670
41671#
41672# Check for RSVG delegate library.
41673#
41674
41675# Check whether --with-rsvg was given.
41676if test "${with_rsvg+set}" = set; then
41677 withval=$with_rsvg; with_rsvg=$withval
41678else
41679 with_rsvg=$have_x
41680fi
41681
41682
41683if test "$with_rsvg" != 'yes'; then
41684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
41685fi
41686
41687have_rsvg='no'
41688have_cairo='no'
41689RSVG_CFLAGS=""
41690RSVG_LIBS=""
41691RSVG_PKG=""
41692if test "x$with_rsvg" = "xyes"; then
41693 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41694$as_echo "-------------------------------------------------------------" >&6; }
41695
41696pkg_failed=no
41697{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
41698$as_echo_n "checking for RSVG... " >&6; }
41699
41700if test -n "$RSVG_CFLAGS"; then
41701 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
41702 elif test -n "$PKG_CONFIG"; then
41703 if test -n "$PKG_CONFIG" && \
41704 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41705 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41706 ac_status=$?
41707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708 (exit $ac_status); }; then
41709 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41710else
41711 pkg_failed=yes
41712fi
41713 else
41714 pkg_failed=untried
41715fi
41716if test -n "$RSVG_LIBS"; then
41717 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
41718 elif test -n "$PKG_CONFIG"; then
41719 if test -n "$PKG_CONFIG" && \
41720 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41721 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41722 ac_status=$?
41723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724 (exit $ac_status); }; then
41725 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41726else
41727 pkg_failed=yes
41728fi
41729 else
41730 pkg_failed=untried
41731fi
41732
41733
41734
41735if test $pkg_failed = yes; then
41736
41737if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41738 _pkg_short_errors_supported=yes
41739else
41740 _pkg_short_errors_supported=no
41741fi
41742 if test $_pkg_short_errors_supported = yes; then
41743 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41744 else
41745 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41746 fi
41747 # Put the nasty error message in config.log where it belongs
41748 echo "$RSVG_PKG_ERRORS" >&5
41749
41750 { $as_echo "$as_me:$LINENO: result: no" >&5
41751$as_echo "no" >&6; }
41752 have_rsvg=no
41753elif test $pkg_failed = untried; then
41754 have_rsvg=no
41755else
41756 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
41757 RSVG_LIBS=$pkg_cv_RSVG_LIBS
41758 { $as_echo "$as_me:$LINENO: result: yes" >&5
41759$as_echo "yes" >&6; }
41760 have_rsvg=yes
41761fi
41762 { $as_echo "$as_me:$LINENO: result: " >&5
41763$as_echo "" >&6; }
41764
41765pkg_failed=no
41766{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
41767$as_echo_n "checking for CAIRO_SVG... " >&6; }
41768
41769if test -n "$CAIRO_SVG_CFLAGS"; then
41770 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
41771 elif test -n "$PKG_CONFIG"; then
41772 if test -n "$PKG_CONFIG" && \
41773 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41774 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41775 ac_status=$?
41776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41777 (exit $ac_status); }; then
41778 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
41779else
41780 pkg_failed=yes
41781fi
41782 else
41783 pkg_failed=untried
41784fi
41785if test -n "$CAIRO_SVG_LIBS"; then
41786 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
41787 elif test -n "$PKG_CONFIG"; then
41788 if test -n "$PKG_CONFIG" && \
41789 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41790 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41791 ac_status=$?
41792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; then
41794 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
41795else
41796 pkg_failed=yes
41797fi
41798 else
41799 pkg_failed=untried
41800fi
41801
41802
41803
41804if test $pkg_failed = yes; then
41805
41806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41807 _pkg_short_errors_supported=yes
41808else
41809 _pkg_short_errors_supported=no
41810fi
41811 if test $_pkg_short_errors_supported = yes; then
41812 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41813 else
41814 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41815 fi
41816 # Put the nasty error message in config.log where it belongs
41817 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41818
41819 { $as_echo "$as_me:$LINENO: result: no" >&5
41820$as_echo "no" >&6; }
41821 have_cairo=no
41822elif test $pkg_failed = untried; then
41823 have_cairo=no
41824else
41825 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41826 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41827 { $as_echo "$as_me:$LINENO: result: yes" >&5
41828$as_echo "yes" >&6; }
41829 have_cairo=yes
41830fi
41831 { $as_echo "$as_me:$LINENO: result: " >&5
41832$as_echo "" >&6; }
41833fi
41834
41835if test "$have_rsvg" = 'yes'; then
41836
41837cat >>confdefs.h <<\_ACEOF
41838#define RSVG_DELEGATE 1
41839_ACEOF
41840
41841 if test "$with_modules" = 'no'; then
41842 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41843 fi
41844fi
41845
41846if test "$have_cairo" = 'yes'; then
41847
41848cat >>confdefs.h <<\_ACEOF
41849#define CAIRO_DELEGATE 1
41850_ACEOF
41851
41852 if test "$with_modules" = 'no'; then
41853 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41854 fi
41855fi
41856
41857 if test "$have_rsvg" = 'yes'; then
41858 RSVG_DELEGATE_TRUE=
41859 RSVG_DELEGATE_FALSE='#'
41860else
41861 RSVG_DELEGATE_TRUE='#'
41862 RSVG_DELEGATE_FALSE=
41863fi
41864
41865 if test "$have_cairo" = 'yes'; then
41866 CAIRO_DELEGATE_TRUE=
41867 CAIRO_DELEGATE_FALSE='#'
41868else
41869 CAIRO_DELEGATE_TRUE='#'
41870 CAIRO_DELEGATE_FALSE=
41871fi
41872
41873
41874
41875
41876
41877#
41878# Check for TIFF delegate library.
41879#
41880
41881# Check whether --with-tiff was given.
41882if test "${with_tiff+set}" = set; then
41883 withval=$with_tiff; with_tiff=$withval
41884else
41885 with_tiff='yes'
41886fi
41887
41888
41889if test "$with_tiff" != 'yes'; then
41890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41891fi
41892
41893have_tiff='no'
41894TIFF_LIBS=''
41895if test "$with_tiff" != 'no'; then
41896 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41897$as_echo "-------------------------------------------------------------" >&6; }
41898 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41899$as_echo_n "checking for TIFF... " >&6; }
41900 { $as_echo "$as_me:$LINENO: result: " >&5
41901$as_echo "" >&6; }
41902 failed=0
41903 passed=0
41904 if test "${ac_cv_header_tiff_h+set}" = set; then
41905 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41906$as_echo_n "checking for tiff.h... " >&6; }
41907if test "${ac_cv_header_tiff_h+set}" = set; then
41908 $as_echo_n "(cached) " >&6
41909fi
41910{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41911$as_echo "$ac_cv_header_tiff_h" >&6; }
41912else
41913 # Is the header compilable?
41914{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41915$as_echo_n "checking tiff.h usability... " >&6; }
41916cat >conftest.$ac_ext <<_ACEOF
41917/* confdefs.h. */
41918_ACEOF
41919cat confdefs.h >>conftest.$ac_ext
41920cat >>conftest.$ac_ext <<_ACEOF
41921/* end confdefs.h. */
41922$ac_includes_default
41923#include <tiff.h>
41924_ACEOF
41925rm -f conftest.$ac_objext
41926if { (ac_try="$ac_compile"
41927case "(($ac_try" in
41928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41929 *) ac_try_echo=$ac_try;;
41930esac
41931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41932$as_echo "$ac_try_echo") >&5
41933 (eval "$ac_compile") 2>conftest.er1
41934 ac_status=$?
41935 grep -v '^ *+' conftest.er1 >conftest.err
41936 rm -f conftest.er1
41937 cat conftest.err >&5
41938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41939 (exit $ac_status); } && {
41940 test -z "$ac_c_werror_flag" ||
41941 test ! -s conftest.err
41942 } && test -s conftest.$ac_objext; then
41943 ac_header_compiler=yes
41944else
41945 $as_echo "$as_me: failed program was:" >&5
41946sed 's/^/| /' conftest.$ac_ext >&5
41947
41948 ac_header_compiler=no
41949fi
41950
41951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41952{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41953$as_echo "$ac_header_compiler" >&6; }
41954
41955# Is the header present?
41956{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41957$as_echo_n "checking tiff.h presence... " >&6; }
41958cat >conftest.$ac_ext <<_ACEOF
41959/* confdefs.h. */
41960_ACEOF
41961cat confdefs.h >>conftest.$ac_ext
41962cat >>conftest.$ac_ext <<_ACEOF
41963/* end confdefs.h. */
41964#include <tiff.h>
41965_ACEOF
41966if { (ac_try="$ac_cpp conftest.$ac_ext"
41967case "(($ac_try" in
41968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969 *) ac_try_echo=$ac_try;;
41970esac
41971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41972$as_echo "$ac_try_echo") >&5
41973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41974 ac_status=$?
41975 grep -v '^ *+' conftest.er1 >conftest.err
41976 rm -f conftest.er1
41977 cat conftest.err >&5
41978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979 (exit $ac_status); } >/dev/null && {
41980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41981 test ! -s conftest.err
41982 }; then
41983 ac_header_preproc=yes
41984else
41985 $as_echo "$as_me: failed program was:" >&5
41986sed 's/^/| /' conftest.$ac_ext >&5
41987
41988 ac_header_preproc=no
41989fi
41990
41991rm -f conftest.err conftest.$ac_ext
41992{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41993$as_echo "$ac_header_preproc" >&6; }
41994
41995# So? What about this header?
41996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41997 yes:no: )
41998 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
41999$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42000 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
42001$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
42002 ac_header_preproc=yes
42003 ;;
42004 no:yes:* )
42005 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
42006$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
42007 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
42008$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
42009 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
42010$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
42011 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
42012$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
42013 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
42014$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
42015 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
42016$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
42017 ( cat <<\_ASBOX
42018## ----------------------------------------- ##
42019## Report this to http://www.imagemagick.org ##
42020## ----------------------------------------- ##
42021_ASBOX
42022 ) | sed "s/^/$as_me: WARNING: /" >&2
42023 ;;
42024esac
42025{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
42026$as_echo_n "checking for tiff.h... " >&6; }
42027if test "${ac_cv_header_tiff_h+set}" = set; then
42028 $as_echo_n "(cached) " >&6
42029else
42030 ac_cv_header_tiff_h=$ac_header_preproc
42031fi
42032{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
42033$as_echo "$ac_cv_header_tiff_h" >&6; }
42034
42035fi
42036if test "x$ac_cv_header_tiff_h" = x""yes; then
42037 passed=`expr $passed + 1`
42038else
42039 failed=`expr $failed + 1`
42040fi
42041
42042
42043 if test "${ac_cv_header_tiffio_h+set}" = set; then
42044 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42045$as_echo_n "checking for tiffio.h... " >&6; }
42046if test "${ac_cv_header_tiffio_h+set}" = set; then
42047 $as_echo_n "(cached) " >&6
42048fi
42049{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42050$as_echo "$ac_cv_header_tiffio_h" >&6; }
42051else
42052 # Is the header compilable?
42053{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
42054$as_echo_n "checking tiffio.h usability... " >&6; }
42055cat >conftest.$ac_ext <<_ACEOF
42056/* confdefs.h. */
42057_ACEOF
42058cat confdefs.h >>conftest.$ac_ext
42059cat >>conftest.$ac_ext <<_ACEOF
42060/* end confdefs.h. */
42061$ac_includes_default
42062#include <tiffio.h>
42063_ACEOF
42064rm -f conftest.$ac_objext
42065if { (ac_try="$ac_compile"
42066case "(($ac_try" in
42067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42068 *) ac_try_echo=$ac_try;;
42069esac
42070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42071$as_echo "$ac_try_echo") >&5
42072 (eval "$ac_compile") 2>conftest.er1
42073 ac_status=$?
42074 grep -v '^ *+' conftest.er1 >conftest.err
42075 rm -f conftest.er1
42076 cat conftest.err >&5
42077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42078 (exit $ac_status); } && {
42079 test -z "$ac_c_werror_flag" ||
42080 test ! -s conftest.err
42081 } && test -s conftest.$ac_objext; then
42082 ac_header_compiler=yes
42083else
42084 $as_echo "$as_me: failed program was:" >&5
42085sed 's/^/| /' conftest.$ac_ext >&5
42086
42087 ac_header_compiler=no
42088fi
42089
42090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42091{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42092$as_echo "$ac_header_compiler" >&6; }
42093
42094# Is the header present?
42095{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
42096$as_echo_n "checking tiffio.h presence... " >&6; }
42097cat >conftest.$ac_ext <<_ACEOF
42098/* confdefs.h. */
42099_ACEOF
42100cat confdefs.h >>conftest.$ac_ext
42101cat >>conftest.$ac_ext <<_ACEOF
42102/* end confdefs.h. */
42103#include <tiffio.h>
42104_ACEOF
42105if { (ac_try="$ac_cpp conftest.$ac_ext"
42106case "(($ac_try" in
42107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42108 *) ac_try_echo=$ac_try;;
42109esac
42110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42111$as_echo "$ac_try_echo") >&5
42112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42113 ac_status=$?
42114 grep -v '^ *+' conftest.er1 >conftest.err
42115 rm -f conftest.er1
42116 cat conftest.err >&5
42117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118 (exit $ac_status); } >/dev/null && {
42119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42120 test ! -s conftest.err
42121 }; then
42122 ac_header_preproc=yes
42123else
42124 $as_echo "$as_me: failed program was:" >&5
42125sed 's/^/| /' conftest.$ac_ext >&5
42126
42127 ac_header_preproc=no
42128fi
42129
42130rm -f conftest.err conftest.$ac_ext
42131{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42132$as_echo "$ac_header_preproc" >&6; }
42133
42134# So? What about this header?
42135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42136 yes:no: )
42137 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
42138$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42139 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
42140$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
42141 ac_header_preproc=yes
42142 ;;
42143 no:yes:* )
42144 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
42145$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
42146 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
42147$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
42148 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
42149$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
42150 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
42151$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
42152 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
42153$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
42154 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
42155$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
42156 ( cat <<\_ASBOX
42157## ----------------------------------------- ##
42158## Report this to http://www.imagemagick.org ##
42159## ----------------------------------------- ##
42160_ASBOX
42161 ) | sed "s/^/$as_me: WARNING: /" >&2
42162 ;;
42163esac
42164{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42165$as_echo_n "checking for tiffio.h... " >&6; }
42166if test "${ac_cv_header_tiffio_h+set}" = set; then
42167 $as_echo_n "(cached) " >&6
42168else
42169 ac_cv_header_tiffio_h=$ac_header_preproc
42170fi
42171{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42172$as_echo "$ac_cv_header_tiffio_h" >&6; }
42173
42174fi
42175if test "x$ac_cv_header_tiffio_h" = x""yes; then
42176 passed=`expr $passed + 1`
42177else
42178 failed=`expr $failed + 1`
42179fi
42180
42181
42182 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
42183$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
42184if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
42185 $as_echo_n "(cached) " >&6
42186else
42187 ac_check_lib_save_LIBS=$LIBS
42188LIBS="-ltiff $LIBS"
42189cat >conftest.$ac_ext <<_ACEOF
42190/* confdefs.h. */
42191_ACEOF
42192cat confdefs.h >>conftest.$ac_ext
42193cat >>conftest.$ac_ext <<_ACEOF
42194/* end confdefs.h. */
42195
42196/* Override any GCC internal prototype to avoid an error.
42197 Use char because int might match the return type of a GCC
42198 builtin and then its argument prototype would still apply. */
42199#ifdef __cplusplus
42200extern "C"
42201#endif
42202char TIFFOpen ();
42203int
42204main ()
42205{
42206return TIFFOpen ();
42207 ;
42208 return 0;
42209}
42210_ACEOF
42211rm -f conftest.$ac_objext conftest$ac_exeext
42212if { (ac_try="$ac_link"
42213case "(($ac_try" in
42214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42215 *) ac_try_echo=$ac_try;;
42216esac
42217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42218$as_echo "$ac_try_echo") >&5
42219 (eval "$ac_link") 2>conftest.er1
42220 ac_status=$?
42221 grep -v '^ *+' conftest.er1 >conftest.err
42222 rm -f conftest.er1
42223 cat conftest.err >&5
42224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42225 (exit $ac_status); } && {
42226 test -z "$ac_c_werror_flag" ||
42227 test ! -s conftest.err
42228 } && test -s conftest$ac_exeext && {
42229 test "$cross_compiling" = yes ||
42230 $as_test_x conftest$ac_exeext
42231 }; then
42232 ac_cv_lib_tiff_TIFFOpen=yes
42233else
42234 $as_echo "$as_me: failed program was:" >&5
42235sed 's/^/| /' conftest.$ac_ext >&5
42236
42237 ac_cv_lib_tiff_TIFFOpen=no
42238fi
42239
42240rm -rf conftest.dSYM
42241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42242 conftest$ac_exeext conftest.$ac_ext
42243LIBS=$ac_check_lib_save_LIBS
42244fi
42245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
42246$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
42247if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
42248 passed=`expr $passed + 1`
42249else
42250 failed=`expr $failed + 1`
42251fi
42252
42253 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
42254$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
42255if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
42256 $as_echo_n "(cached) " >&6
42257else
42258 ac_check_lib_save_LIBS=$LIBS
42259LIBS="-ltiff $LIBS"
42260cat >conftest.$ac_ext <<_ACEOF
42261/* confdefs.h. */
42262_ACEOF
42263cat confdefs.h >>conftest.$ac_ext
42264cat >>conftest.$ac_ext <<_ACEOF
42265/* end confdefs.h. */
42266
42267/* Override any GCC internal prototype to avoid an error.
42268 Use char because int might match the return type of a GCC
42269 builtin and then its argument prototype would still apply. */
42270#ifdef __cplusplus
42271extern "C"
42272#endif
42273char TIFFClientOpen ();
42274int
42275main ()
42276{
42277return TIFFClientOpen ();
42278 ;
42279 return 0;
42280}
42281_ACEOF
42282rm -f conftest.$ac_objext conftest$ac_exeext
42283if { (ac_try="$ac_link"
42284case "(($ac_try" in
42285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42286 *) ac_try_echo=$ac_try;;
42287esac
42288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42289$as_echo "$ac_try_echo") >&5
42290 (eval "$ac_link") 2>conftest.er1
42291 ac_status=$?
42292 grep -v '^ *+' conftest.er1 >conftest.err
42293 rm -f conftest.er1
42294 cat conftest.err >&5
42295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); } && {
42297 test -z "$ac_c_werror_flag" ||
42298 test ! -s conftest.err
42299 } && test -s conftest$ac_exeext && {
42300 test "$cross_compiling" = yes ||
42301 $as_test_x conftest$ac_exeext
42302 }; then
42303 ac_cv_lib_tiff_TIFFClientOpen=yes
42304else
42305 $as_echo "$as_me: failed program was:" >&5
42306sed 's/^/| /' conftest.$ac_ext >&5
42307
42308 ac_cv_lib_tiff_TIFFClientOpen=no
42309fi
42310
42311rm -rf conftest.dSYM
42312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42313 conftest$ac_exeext conftest.$ac_ext
42314LIBS=$ac_check_lib_save_LIBS
42315fi
42316{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
42317$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
42318if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
42319 passed=`expr $passed + 1`
42320else
42321 failed=`expr $failed + 1`
42322fi
42323
42324 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
42325$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
42326if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
42327 $as_echo_n "(cached) " >&6
42328else
42329 ac_check_lib_save_LIBS=$LIBS
42330LIBS="-ltiff $LIBS"
42331cat >conftest.$ac_ext <<_ACEOF
42332/* confdefs.h. */
42333_ACEOF
42334cat confdefs.h >>conftest.$ac_ext
42335cat >>conftest.$ac_ext <<_ACEOF
42336/* end confdefs.h. */
42337
42338/* Override any GCC internal prototype to avoid an error.
42339 Use char because int might match the return type of a GCC
42340 builtin and then its argument prototype would still apply. */
42341#ifdef __cplusplus
42342extern "C"
42343#endif
42344char TIFFIsByteSwapped ();
42345int
42346main ()
42347{
42348return TIFFIsByteSwapped ();
42349 ;
42350 return 0;
42351}
42352_ACEOF
42353rm -f conftest.$ac_objext conftest$ac_exeext
42354if { (ac_try="$ac_link"
42355case "(($ac_try" in
42356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42357 *) ac_try_echo=$ac_try;;
42358esac
42359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42360$as_echo "$ac_try_echo") >&5
42361 (eval "$ac_link") 2>conftest.er1
42362 ac_status=$?
42363 grep -v '^ *+' conftest.er1 >conftest.err
42364 rm -f conftest.er1
42365 cat conftest.err >&5
42366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); } && {
42368 test -z "$ac_c_werror_flag" ||
42369 test ! -s conftest.err
42370 } && test -s conftest$ac_exeext && {
42371 test "$cross_compiling" = yes ||
42372 $as_test_x conftest$ac_exeext
42373 }; then
42374 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
42375else
42376 $as_echo "$as_me: failed program was:" >&5
42377sed 's/^/| /' conftest.$ac_ext >&5
42378
42379 ac_cv_lib_tiff_TIFFIsByteSwapped=no
42380fi
42381
42382rm -rf conftest.dSYM
42383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42384 conftest$ac_exeext conftest.$ac_ext
42385LIBS=$ac_check_lib_save_LIBS
42386fi
42387{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
42388$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
42389if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
42390 passed=`expr $passed + 1`
42391else
42392 failed=`expr $failed + 1`
42393fi
42394
42395 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
42396$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
42397if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
42398 $as_echo_n "(cached) " >&6
42399else
42400 ac_check_lib_save_LIBS=$LIBS
42401LIBS="-ltiff $LIBS"
42402cat >conftest.$ac_ext <<_ACEOF
42403/* confdefs.h. */
42404_ACEOF
42405cat confdefs.h >>conftest.$ac_ext
42406cat >>conftest.$ac_ext <<_ACEOF
42407/* end confdefs.h. */
42408
42409/* Override any GCC internal prototype to avoid an error.
42410 Use char because int might match the return type of a GCC
42411 builtin and then its argument prototype would still apply. */
42412#ifdef __cplusplus
42413extern "C"
42414#endif
42415char TIFFReadRGBATile ();
42416int
42417main ()
42418{
42419return TIFFReadRGBATile ();
42420 ;
42421 return 0;
42422}
42423_ACEOF
42424rm -f conftest.$ac_objext conftest$ac_exeext
42425if { (ac_try="$ac_link"
42426case "(($ac_try" in
42427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42428 *) ac_try_echo=$ac_try;;
42429esac
42430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42431$as_echo "$ac_try_echo") >&5
42432 (eval "$ac_link") 2>conftest.er1
42433 ac_status=$?
42434 grep -v '^ *+' conftest.er1 >conftest.err
42435 rm -f conftest.er1
42436 cat conftest.err >&5
42437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); } && {
42439 test -z "$ac_c_werror_flag" ||
42440 test ! -s conftest.err
42441 } && test -s conftest$ac_exeext && {
42442 test "$cross_compiling" = yes ||
42443 $as_test_x conftest$ac_exeext
42444 }; then
42445 ac_cv_lib_tiff_TIFFReadRGBATile=yes
42446else
42447 $as_echo "$as_me: failed program was:" >&5
42448sed 's/^/| /' conftest.$ac_ext >&5
42449
42450 ac_cv_lib_tiff_TIFFReadRGBATile=no
42451fi
42452
42453rm -rf conftest.dSYM
42454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42455 conftest$ac_exeext conftest.$ac_ext
42456LIBS=$ac_check_lib_save_LIBS
42457fi
42458{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
42459$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
42460if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
42461 passed=`expr $passed + 1`
42462else
42463 failed=`expr $failed + 1`
42464fi
42465
42466 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
42467$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
42468if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
42469 $as_echo_n "(cached) " >&6
42470else
42471 ac_check_lib_save_LIBS=$LIBS
42472LIBS="-ltiff $LIBS"
42473cat >conftest.$ac_ext <<_ACEOF
42474/* confdefs.h. */
42475_ACEOF
42476cat confdefs.h >>conftest.$ac_ext
42477cat >>conftest.$ac_ext <<_ACEOF
42478/* end confdefs.h. */
42479
42480/* Override any GCC internal prototype to avoid an error.
42481 Use char because int might match the return type of a GCC
42482 builtin and then its argument prototype would still apply. */
42483#ifdef __cplusplus
42484extern "C"
42485#endif
42486char TIFFReadRGBAStrip ();
42487int
42488main ()
42489{
42490return TIFFReadRGBAStrip ();
42491 ;
42492 return 0;
42493}
42494_ACEOF
42495rm -f conftest.$ac_objext conftest$ac_exeext
42496if { (ac_try="$ac_link"
42497case "(($ac_try" in
42498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42499 *) ac_try_echo=$ac_try;;
42500esac
42501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42502$as_echo "$ac_try_echo") >&5
42503 (eval "$ac_link") 2>conftest.er1
42504 ac_status=$?
42505 grep -v '^ *+' conftest.er1 >conftest.err
42506 rm -f conftest.er1
42507 cat conftest.err >&5
42508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509 (exit $ac_status); } && {
42510 test -z "$ac_c_werror_flag" ||
42511 test ! -s conftest.err
42512 } && test -s conftest$ac_exeext && {
42513 test "$cross_compiling" = yes ||
42514 $as_test_x conftest$ac_exeext
42515 }; then
42516 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
42517else
42518 $as_echo "$as_me: failed program was:" >&5
42519sed 's/^/| /' conftest.$ac_ext >&5
42520
42521 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
42522fi
42523
42524rm -rf conftest.dSYM
42525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42526 conftest$ac_exeext conftest.$ac_ext
42527LIBS=$ac_check_lib_save_LIBS
42528fi
42529{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
42530$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
42531if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
42532 passed=`expr $passed + 1`
42533else
42534 failed=`expr $failed + 1`
42535fi
42536
42537 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
42538$as_echo_n "checking if TIFF package is complete... " >&6; }
42539 if test $passed -gt 0; then
42540 if test $failed -gt 0; then
42541 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42542$as_echo "no -- some components failed test" >&6; }
42543 have_tiff='no (failed tests)'
42544 else
42545 TIFF_LIBS='-ltiff'
42546 LIBS="$TIFF_LIBS $LIBS"
42547
42548cat >>confdefs.h <<\_ACEOF
42549#define TIFF_DELEGATE 1
42550_ACEOF
42551
42552 { $as_echo "$as_me:$LINENO: result: yes" >&5
42553$as_echo "yes" >&6; }
42554 have_tiff='yes'
42555
42556for ac_header in tiffconf.h
42557do
42558as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42561$as_echo_n "checking for $ac_header... " >&6; }
42562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42563 $as_echo_n "(cached) " >&6
42564fi
42565ac_res=`eval 'as_val=${'$as_ac_Header'}
42566 $as_echo "$as_val"'`
42567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42568$as_echo "$ac_res" >&6; }
42569else
42570 # Is the header compilable?
42571{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42572$as_echo_n "checking $ac_header usability... " >&6; }
42573cat >conftest.$ac_ext <<_ACEOF
42574/* confdefs.h. */
42575_ACEOF
42576cat confdefs.h >>conftest.$ac_ext
42577cat >>conftest.$ac_ext <<_ACEOF
42578/* end confdefs.h. */
42579$ac_includes_default
42580#include <$ac_header>
42581_ACEOF
42582rm -f conftest.$ac_objext
42583if { (ac_try="$ac_compile"
42584case "(($ac_try" in
42585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42586 *) ac_try_echo=$ac_try;;
42587esac
42588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42589$as_echo "$ac_try_echo") >&5
42590 (eval "$ac_compile") 2>conftest.er1
42591 ac_status=$?
42592 grep -v '^ *+' conftest.er1 >conftest.err
42593 rm -f conftest.er1
42594 cat conftest.err >&5
42595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596 (exit $ac_status); } && {
42597 test -z "$ac_c_werror_flag" ||
42598 test ! -s conftest.err
42599 } && test -s conftest.$ac_objext; then
42600 ac_header_compiler=yes
42601else
42602 $as_echo "$as_me: failed program was:" >&5
42603sed 's/^/| /' conftest.$ac_ext >&5
42604
42605 ac_header_compiler=no
42606fi
42607
42608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42609{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42610$as_echo "$ac_header_compiler" >&6; }
42611
42612# Is the header present?
42613{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42614$as_echo_n "checking $ac_header presence... " >&6; }
42615cat >conftest.$ac_ext <<_ACEOF
42616/* confdefs.h. */
42617_ACEOF
42618cat confdefs.h >>conftest.$ac_ext
42619cat >>conftest.$ac_ext <<_ACEOF
42620/* end confdefs.h. */
42621#include <$ac_header>
42622_ACEOF
42623if { (ac_try="$ac_cpp conftest.$ac_ext"
42624case "(($ac_try" in
42625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42626 *) ac_try_echo=$ac_try;;
42627esac
42628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42629$as_echo "$ac_try_echo") >&5
42630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42631 ac_status=$?
42632 grep -v '^ *+' conftest.er1 >conftest.err
42633 rm -f conftest.er1
42634 cat conftest.err >&5
42635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42636 (exit $ac_status); } >/dev/null && {
42637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42638 test ! -s conftest.err
42639 }; then
42640 ac_header_preproc=yes
42641else
42642 $as_echo "$as_me: failed program was:" >&5
42643sed 's/^/| /' conftest.$ac_ext >&5
42644
42645 ac_header_preproc=no
42646fi
42647
42648rm -f conftest.err conftest.$ac_ext
42649{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42650$as_echo "$ac_header_preproc" >&6; }
42651
42652# So? What about this header?
42653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42654 yes:no: )
42655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42656$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42658$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42659 ac_header_preproc=yes
42660 ;;
42661 no:yes:* )
42662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42663$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42665$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42667$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42669$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42671$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42673$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42674 ( cat <<\_ASBOX
42675## ----------------------------------------- ##
42676## Report this to http://www.imagemagick.org ##
42677## ----------------------------------------- ##
42678_ASBOX
42679 ) | sed "s/^/$as_me: WARNING: /" >&2
42680 ;;
42681esac
42682{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42683$as_echo_n "checking for $ac_header... " >&6; }
42684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42685 $as_echo_n "(cached) " >&6
42686else
42687 eval "$as_ac_Header=\$ac_header_preproc"
42688fi
42689ac_res=`eval 'as_val=${'$as_ac_Header'}
42690 $as_echo "$as_val"'`
42691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42692$as_echo "$ac_res" >&6; }
42693
42694fi
42695as_val=`eval 'as_val=${'$as_ac_Header'}
42696 $as_echo "$as_val"'`
42697 if test "x$as_val" = x""yes; then
42698 cat >>confdefs.h <<_ACEOF
42699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42700_ACEOF
42701
42702fi
42703
42704done
42705
42706
42707
42708
42709
42710
42711
42712
42713for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
42714 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
42715 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
42716do
42717as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42718{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42719$as_echo_n "checking for $ac_func... " >&6; }
42720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42721 $as_echo_n "(cached) " >&6
42722else
42723 cat >conftest.$ac_ext <<_ACEOF
42724/* confdefs.h. */
42725_ACEOF
42726cat confdefs.h >>conftest.$ac_ext
42727cat >>conftest.$ac_ext <<_ACEOF
42728/* end confdefs.h. */
42729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42731#define $ac_func innocuous_$ac_func
42732
42733/* System header to define __stub macros and hopefully few prototypes,
42734 which can conflict with char $ac_func (); below.
42735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42736 <limits.h> exists even on freestanding compilers. */
42737
42738#ifdef __STDC__
42739# include <limits.h>
42740#else
42741# include <assert.h>
42742#endif
42743
42744#undef $ac_func
42745
42746/* Override any GCC internal prototype to avoid an error.
42747 Use char because int might match the return type of a GCC
42748 builtin and then its argument prototype would still apply. */
42749#ifdef __cplusplus
42750extern "C"
42751#endif
42752char $ac_func ();
42753/* The GNU C library defines this for functions which it implements
42754 to always fail with ENOSYS. Some functions are actually named
42755 something starting with __ and the normal name is an alias. */
42756#if defined __stub_$ac_func || defined __stub___$ac_func
42757choke me
42758#endif
42759
42760int
42761main ()
42762{
42763return $ac_func ();
42764 ;
42765 return 0;
42766}
42767_ACEOF
42768rm -f conftest.$ac_objext conftest$ac_exeext
42769if { (ac_try="$ac_link"
42770case "(($ac_try" in
42771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42772 *) ac_try_echo=$ac_try;;
42773esac
42774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42775$as_echo "$ac_try_echo") >&5
42776 (eval "$ac_link") 2>conftest.er1
42777 ac_status=$?
42778 grep -v '^ *+' conftest.er1 >conftest.err
42779 rm -f conftest.er1
42780 cat conftest.err >&5
42781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782 (exit $ac_status); } && {
42783 test -z "$ac_c_werror_flag" ||
42784 test ! -s conftest.err
42785 } && test -s conftest$ac_exeext && {
42786 test "$cross_compiling" = yes ||
42787 $as_test_x conftest$ac_exeext
42788 }; then
42789 eval "$as_ac_var=yes"
42790else
42791 $as_echo "$as_me: failed program was:" >&5
42792sed 's/^/| /' conftest.$ac_ext >&5
42793
42794 eval "$as_ac_var=no"
42795fi
42796
42797rm -rf conftest.dSYM
42798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42799 conftest$ac_exeext conftest.$ac_ext
42800fi
42801ac_res=`eval 'as_val=${'$as_ac_var'}
42802 $as_echo "$as_val"'`
42803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42804$as_echo "$ac_res" >&6; }
42805as_val=`eval 'as_val=${'$as_ac_var'}
42806 $as_echo "$as_val"'`
42807 if test "x$as_val" = x""yes; then
42808 cat >>confdefs.h <<_ACEOF
42809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42810_ACEOF
42811
42812fi
42813done
42814
42815 fi
42816 else
42817 { $as_echo "$as_me:$LINENO: result: no" >&5
42818$as_echo "no" >&6; }
42819 fi
42820fi
42821 if test "$have_tiff" = 'yes'; then
42822 TIFF_DELEGATE_TRUE=
42823 TIFF_DELEGATE_FALSE='#'
42824else
42825 TIFF_DELEGATE_TRUE='#'
42826 TIFF_DELEGATE_FALSE=
42827fi
42828
42829
42830
42831
42832#
42833# Set Windows font directory.
42834#
42835
42836# Check whether --with-windows-font-dir was given.
42837if test "${with_windows_font_dir+set}" = set; then
42838 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42839else
42840 with_windows_font_dir=''
42841fi
42842
42843if test "$with_windows_font_dir" != '' ; then
42844 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42845fi
42846
42847
42848#
42849# Check for WMF delegate library.
42850#
42851
42852# Check whether --with-wmf was given.
42853if test "${with_wmf+set}" = set; then
42854 withval=$with_wmf; with_wmf=$withval
42855else
42856 with_wmf=$with_modules
42857fi
42858
42859
42860if test "$with_wmf" != 'yes'; then
42861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42862fi
42863
42864have_wmf='no'
42865WMF_LIBS=''
42866WMF_LIBS_DEPS=''
42867OLIBS="$LIBS"
42868if test "$with_wmf" != 'no'; then
42869 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42870$as_echo "-------------------------------------------------------------" >&6; }
42871 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42872$as_echo_n "checking for WMF... " >&6; }
42873 { $as_echo "$as_me:$LINENO: result: " >&5
42874$as_echo "" >&6; }
42875 have_libwmf='no'
42876 have_libwmflite='no'
42877 have_libwmf_ipa_h='no'
42878
42879 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42880$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42881if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42882 $as_echo_n "(cached) " >&6
42883else
42884 cat >conftest.$ac_ext <<_ACEOF
42885/* confdefs.h. */
42886_ACEOF
42887cat confdefs.h >>conftest.$ac_ext
42888cat >>conftest.$ac_ext <<_ACEOF
42889/* end confdefs.h. */
42890$FT2BUILD_H
42891
42892#include <libwmf/ipa.h>
42893_ACEOF
42894rm -f conftest.$ac_objext
42895if { (ac_try="$ac_compile"
42896case "(($ac_try" in
42897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42898 *) ac_try_echo=$ac_try;;
42899esac
42900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42901$as_echo "$ac_try_echo") >&5
42902 (eval "$ac_compile") 2>conftest.er1
42903 ac_status=$?
42904 grep -v '^ *+' conftest.er1 >conftest.err
42905 rm -f conftest.er1
42906 cat conftest.err >&5
42907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); } && {
42909 test -z "$ac_c_werror_flag" ||
42910 test ! -s conftest.err
42911 } && test -s conftest.$ac_objext; then
42912 ac_cv_header_libwmf_ipa_h=yes
42913else
42914 $as_echo "$as_me: failed program was:" >&5
42915sed 's/^/| /' conftest.$ac_ext >&5
42916
42917 ac_cv_header_libwmf_ipa_h=no
42918fi
42919
42920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42921fi
42922{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42923$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42924if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42925 have_libwmf_ipa_h='yes'
42926fi
42927
42928
42929 if test "$have_libwmf_ipa_h" = 'yes'; then
42930 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42931$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42932if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42933 $as_echo_n "(cached) " >&6
42934else
42935 ac_check_lib_save_LIBS=$LIBS
42936LIBS="-lwmflite $LIBS"
42937cat >conftest.$ac_ext <<_ACEOF
42938/* confdefs.h. */
42939_ACEOF
42940cat confdefs.h >>conftest.$ac_ext
42941cat >>conftest.$ac_ext <<_ACEOF
42942/* end confdefs.h. */
42943
42944/* Override any GCC internal prototype to avoid an error.
42945 Use char because int might match the return type of a GCC
42946 builtin and then its argument prototype would still apply. */
42947#ifdef __cplusplus
42948extern "C"
42949#endif
42950char wmf_lite_create ();
42951int
42952main ()
42953{
42954return wmf_lite_create ();
42955 ;
42956 return 0;
42957}
42958_ACEOF
42959rm -f conftest.$ac_objext conftest$ac_exeext
42960if { (ac_try="$ac_link"
42961case "(($ac_try" in
42962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42963 *) ac_try_echo=$ac_try;;
42964esac
42965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42966$as_echo "$ac_try_echo") >&5
42967 (eval "$ac_link") 2>conftest.er1
42968 ac_status=$?
42969 grep -v '^ *+' conftest.er1 >conftest.err
42970 rm -f conftest.er1
42971 cat conftest.err >&5
42972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973 (exit $ac_status); } && {
42974 test -z "$ac_c_werror_flag" ||
42975 test ! -s conftest.err
42976 } && test -s conftest$ac_exeext && {
42977 test "$cross_compiling" = yes ||
42978 $as_test_x conftest$ac_exeext
42979 }; then
42980 ac_cv_lib_wmflite_wmf_lite_create=yes
42981else
42982 $as_echo "$as_me: failed program was:" >&5
42983sed 's/^/| /' conftest.$ac_ext >&5
42984
42985 ac_cv_lib_wmflite_wmf_lite_create=no
42986fi
42987
42988rm -rf conftest.dSYM
42989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42990 conftest$ac_exeext conftest.$ac_ext
42991LIBS=$ac_check_lib_save_LIBS
42992fi
42993{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
42994$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
42995if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
42996 have_libwmflite='yes'
42997fi
42998
42999 if test "$have_libwmflite" = 'yes'; then
43000
43001cat >>confdefs.h <<\_ACEOF
43002#define WMFLITE_DELEGATE 1
43003_ACEOF
43004
43005 WMF_LIBS='-lwmflite'
43006 LIBS="$WMF_LIBS $LIBS"
43007 have_wmf='yes'
43008 else
43009 WMF_LIBS_DEPS=''
43010 WMF_CONFIG_LIBS=`libwmf-config --libs`
43011 for lib in xml2 expat freetype jpeg png z; do
43012 testlib="-l${lib}"
43013 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
43014 done
43015 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
43016$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
43017if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
43018 $as_echo_n "(cached) " >&6
43019else
43020 ac_check_lib_save_LIBS=$LIBS
43021LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
43022cat >conftest.$ac_ext <<_ACEOF
43023/* confdefs.h. */
43024_ACEOF
43025cat confdefs.h >>conftest.$ac_ext
43026cat >>conftest.$ac_ext <<_ACEOF
43027/* end confdefs.h. */
43028
43029/* Override any GCC internal prototype to avoid an error.
43030 Use char because int might match the return type of a GCC
43031 builtin and then its argument prototype would still apply. */
43032#ifdef __cplusplus
43033extern "C"
43034#endif
43035char wmf_api_create ();
43036int
43037main ()
43038{
43039return wmf_api_create ();
43040 ;
43041 return 0;
43042}
43043_ACEOF
43044rm -f conftest.$ac_objext conftest$ac_exeext
43045if { (ac_try="$ac_link"
43046case "(($ac_try" in
43047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43048 *) ac_try_echo=$ac_try;;
43049esac
43050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43051$as_echo "$ac_try_echo") >&5
43052 (eval "$ac_link") 2>conftest.er1
43053 ac_status=$?
43054 grep -v '^ *+' conftest.er1 >conftest.err
43055 rm -f conftest.er1
43056 cat conftest.err >&5
43057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058 (exit $ac_status); } && {
43059 test -z "$ac_c_werror_flag" ||
43060 test ! -s conftest.err
43061 } && test -s conftest$ac_exeext && {
43062 test "$cross_compiling" = yes ||
43063 $as_test_x conftest$ac_exeext
43064 }; then
43065 ac_cv_lib_wmf_wmf_api_create=yes
43066else
43067 $as_echo "$as_me: failed program was:" >&5
43068sed 's/^/| /' conftest.$ac_ext >&5
43069
43070 ac_cv_lib_wmf_wmf_api_create=no
43071fi
43072
43073rm -rf conftest.dSYM
43074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43075 conftest$ac_exeext conftest.$ac_ext
43076LIBS=$ac_check_lib_save_LIBS
43077fi
43078{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
43079$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
43080if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
43081 have_libwmf='yes'
43082fi
43083
43084 if test "$have_libwmf" = 'yes'; then
43085
43086cat >>confdefs.h <<\_ACEOF
43087#define WMF_DELEGATE 1
43088_ACEOF
43089
43090 WMF_LIBS='-lwmf'
43091 LIBS="$WMF_LIBS $LIBS"
43092 have_wmf='yes'
43093 else
43094 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43095$as_echo "no -- some components failed test" >&6; }
43096 have_wmf='no (failed tests)'
43097 have_wmflite='no (failed tests)'
43098 LIBS="$OLIBS"
43099 WMF_LIBS=''
43100 fi
43101 fi
43102 fi
43103 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
43104$as_echo_n "checking if WMF package is complete... " >&6; }
43105 if test "$have_wmf" = 'yes'; then
43106 { $as_echo "$as_me:$LINENO: result: yes" >&5
43107$as_echo "yes" >&6; }
43108 else
43109 { $as_echo "$as_me:$LINENO: result: no" >&5
43110$as_echo "no" >&6; }
43111 fi
43112fi
43113 if test "$have_wmf" = 'yes'; then
43114 WMF_DELEGATE_TRUE=
43115 WMF_DELEGATE_FALSE='#'
43116else
43117 WMF_DELEGATE_TRUE='#'
43118 WMF_DELEGATE_FALSE=
43119fi
43120
43121
43122
43123
43124
43125#
43126# Check for XML delegate library.
43127#
43128
43129# Check whether --with-xml was given.
43130if test "${with_xml+set}" = set; then
43131 withval=$with_xml; with_xml=$withval
43132else
43133 with_xml=$have_x
43134fi
43135
43136
43137if test "$with_xml" != 'yes' ; then
43138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
43139fi
43140
43141have_xml='no'
43142XML_LIBS=''
43143if test "$with_xml" != 'no'; then
43144 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43145$as_echo "-------------------------------------------------------------" >&6; }
43146 { $as_echo "$as_me:$LINENO: checking for XML" >&5
43147$as_echo_n "checking for XML... " >&6; }
43148 { $as_echo "$as_me:$LINENO: result: " >&5
43149$as_echo "" >&6; }
43150 PERSIST_LDFLAGS=$LDFLAGS
43151 PERSIST_CPPFLAGS=$CPPFLAGS
43152 xml2_config=''
43153 for ac_prog in xml2-config
43154do
43155 # Extract the first word of "$ac_prog", so it can be a program name with args.
43156set dummy $ac_prog; ac_word=$2
43157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43158$as_echo_n "checking for $ac_word... " >&6; }
43159if test "${ac_cv_prog_xml2_config+set}" = set; then
43160 $as_echo_n "(cached) " >&6
43161else
43162 if test -n "$xml2_config"; then
43163 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
43164else
43165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43166for as_dir in $PATH
43167do
43168 IFS=$as_save_IFS
43169 test -z "$as_dir" && as_dir=.
43170 for ac_exec_ext in '' $ac_executable_extensions; do
43171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43172 ac_cv_prog_xml2_config="$ac_prog"
43173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43174 break 2
43175 fi
43176done
43177done
43178IFS=$as_save_IFS
43179
43180fi
43181fi
43182xml2_config=$ac_cv_prog_xml2_config
43183if test -n "$xml2_config"; then
43184 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
43185$as_echo "$xml2_config" >&6; }
43186else
43187 { $as_echo "$as_me:$LINENO: result: no" >&5
43188$as_echo "no" >&6; }
43189fi
43190
43191
43192 test -n "$xml2_config" && break
43193done
43194 if test -n "$xml2_config"; then
43195 # Debian installs libxml headers under /usr/include/libxml2/libxml with
43196 # the shared library installed under /usr/lib, whereas the package
43197 # installs itself under $prefix/libxml and $prefix/lib.
43198 xml2_prefix=`xml2-config --prefix`
43199 if test -d "${xml2_prefix}/include/libxml2"; then
43200 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
43201 fi
43202 if test "${xml2_prefix}" != '/usr'; then
43203 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
43204 fi
43205 fi
43206 failed=0
43207 passed=0
43208 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43209 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43210$as_echo_n "checking for libxml/parser.h... " >&6; }
43211if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43212 $as_echo_n "(cached) " >&6
43213fi
43214{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43215$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43216else
43217 # Is the header compilable?
43218{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
43219$as_echo_n "checking libxml/parser.h usability... " >&6; }
43220cat >conftest.$ac_ext <<_ACEOF
43221/* confdefs.h. */
43222_ACEOF
43223cat confdefs.h >>conftest.$ac_ext
43224cat >>conftest.$ac_ext <<_ACEOF
43225/* end confdefs.h. */
43226$ac_includes_default
43227#include <libxml/parser.h>
43228_ACEOF
43229rm -f conftest.$ac_objext
43230if { (ac_try="$ac_compile"
43231case "(($ac_try" in
43232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43233 *) ac_try_echo=$ac_try;;
43234esac
43235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43236$as_echo "$ac_try_echo") >&5
43237 (eval "$ac_compile") 2>conftest.er1
43238 ac_status=$?
43239 grep -v '^ *+' conftest.er1 >conftest.err
43240 rm -f conftest.er1
43241 cat conftest.err >&5
43242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243 (exit $ac_status); } && {
43244 test -z "$ac_c_werror_flag" ||
43245 test ! -s conftest.err
43246 } && test -s conftest.$ac_objext; then
43247 ac_header_compiler=yes
43248else
43249 $as_echo "$as_me: failed program was:" >&5
43250sed 's/^/| /' conftest.$ac_ext >&5
43251
43252 ac_header_compiler=no
43253fi
43254
43255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43257$as_echo "$ac_header_compiler" >&6; }
43258
43259# Is the header present?
43260{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
43261$as_echo_n "checking libxml/parser.h presence... " >&6; }
43262cat >conftest.$ac_ext <<_ACEOF
43263/* confdefs.h. */
43264_ACEOF
43265cat confdefs.h >>conftest.$ac_ext
43266cat >>conftest.$ac_ext <<_ACEOF
43267/* end confdefs.h. */
43268#include <libxml/parser.h>
43269_ACEOF
43270if { (ac_try="$ac_cpp conftest.$ac_ext"
43271case "(($ac_try" in
43272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43273 *) ac_try_echo=$ac_try;;
43274esac
43275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43276$as_echo "$ac_try_echo") >&5
43277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43278 ac_status=$?
43279 grep -v '^ *+' conftest.er1 >conftest.err
43280 rm -f conftest.er1
43281 cat conftest.err >&5
43282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283 (exit $ac_status); } >/dev/null && {
43284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43285 test ! -s conftest.err
43286 }; then
43287 ac_header_preproc=yes
43288else
43289 $as_echo "$as_me: failed program was:" >&5
43290sed 's/^/| /' conftest.$ac_ext >&5
43291
43292 ac_header_preproc=no
43293fi
43294
43295rm -f conftest.err conftest.$ac_ext
43296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43297$as_echo "$ac_header_preproc" >&6; }
43298
43299# So? What about this header?
43300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43301 yes:no: )
43302 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
43303$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43304 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
43305$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
43306 ac_header_preproc=yes
43307 ;;
43308 no:yes:* )
43309 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
43310$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
43311 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
43312$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
43313 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
43314$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
43315 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
43316$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
43317 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
43318$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
43319 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
43320$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
43321 ( cat <<\_ASBOX
43322## ----------------------------------------- ##
43323## Report this to http://www.imagemagick.org ##
43324## ----------------------------------------- ##
43325_ASBOX
43326 ) | sed "s/^/$as_me: WARNING: /" >&2
43327 ;;
43328esac
43329{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43330$as_echo_n "checking for libxml/parser.h... " >&6; }
43331if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43332 $as_echo_n "(cached) " >&6
43333else
43334 ac_cv_header_libxml_parser_h=$ac_header_preproc
43335fi
43336{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43337$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43338
43339fi
43340if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
43341 passed=`expr $passed + 1`
43342else
43343 failed=`expr $failed + 1`
43344fi
43345
43346
43347 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
43348$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
43349if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
43350 $as_echo_n "(cached) " >&6
43351else
43352 ac_check_lib_save_LIBS=$LIBS
43353LIBS="-lxml2 $LIBS"
43354cat >conftest.$ac_ext <<_ACEOF
43355/* confdefs.h. */
43356_ACEOF
43357cat confdefs.h >>conftest.$ac_ext
43358cat >>conftest.$ac_ext <<_ACEOF
43359/* end confdefs.h. */
43360
43361/* Override any GCC internal prototype to avoid an error.
43362 Use char because int might match the return type of a GCC
43363 builtin and then its argument prototype would still apply. */
43364#ifdef __cplusplus
43365extern "C"
43366#endif
43367char xmlParseExternalEntity ();
43368int
43369main ()
43370{
43371return xmlParseExternalEntity ();
43372 ;
43373 return 0;
43374}
43375_ACEOF
43376rm -f conftest.$ac_objext conftest$ac_exeext
43377if { (ac_try="$ac_link"
43378case "(($ac_try" in
43379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43380 *) ac_try_echo=$ac_try;;
43381esac
43382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43383$as_echo "$ac_try_echo") >&5
43384 (eval "$ac_link") 2>conftest.er1
43385 ac_status=$?
43386 grep -v '^ *+' conftest.er1 >conftest.err
43387 rm -f conftest.er1
43388 cat conftest.err >&5
43389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390 (exit $ac_status); } && {
43391 test -z "$ac_c_werror_flag" ||
43392 test ! -s conftest.err
43393 } && test -s conftest$ac_exeext && {
43394 test "$cross_compiling" = yes ||
43395 $as_test_x conftest$ac_exeext
43396 }; then
43397 ac_cv_lib_xml2_xmlParseExternalEntity=yes
43398else
43399 $as_echo "$as_me: failed program was:" >&5
43400sed 's/^/| /' conftest.$ac_ext >&5
43401
43402 ac_cv_lib_xml2_xmlParseExternalEntity=no
43403fi
43404
43405rm -rf conftest.dSYM
43406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43407 conftest$ac_exeext conftest.$ac_ext
43408LIBS=$ac_check_lib_save_LIBS
43409fi
43410{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
43411$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
43412if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
43413 passed=`expr $passed + 1`
43414else
43415 failed=`expr $failed + 1`
43416fi
43417
43418 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
43419$as_echo_n "checking if XML package is complete... " >&6; }
43420 if test $passed -gt 0; then
43421 if test $failed -gt 0; then
43422 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43423$as_echo "no -- some components failed test" >&6; }
43424 have_xml='no (failed tests)'
43425 LDFLAGS="$PERSIST_LDFLAGS"
43426 CPPFLAGS="$PERSIST_CPPFLAGS"
43427 else
43428 XML_LIBS='-lxml2'
43429 LIBS="$XML_LIBS $LIBS"
43430
43431cat >>confdefs.h <<\_ACEOF
43432#define XML_DELEGATE 1
43433_ACEOF
43434
43435 { $as_echo "$as_me:$LINENO: result: yes" >&5
43436$as_echo "yes" >&6; }
43437 have_xml='yes'
43438 fi
43439 else
43440 { $as_echo "$as_me:$LINENO: result: no" >&5
43441$as_echo "no" >&6; }
43442 fi
43443fi
43444 if test "$have_xml" = 'yes'; then
43445 XML_DELEGATE_TRUE=
43446 XML_DELEGATE_FALSE='#'
43447else
43448 XML_DELEGATE_TRUE='#'
43449 XML_DELEGATE_FALSE=
43450fi
43451
43452
43453
43454
43455# Substitute compiler name to build/link PerlMagick
43456#
43457
43458
43459#
43460# Configure install Paths
43461#
43462
43463# Subdirectory under lib to place ImageMagick lib files
43464LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43465
43466cat >>confdefs.h <<_ACEOF
43467#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
43468_ACEOF
43469
43470
43471# Path to ImageMagick bin directory
43472EXECUTABLE_PATH="${BIN_DIR}"
43473DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
43474case "${build_os}" in
43475 mingw* )
43476 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
43477 ;;
43478esac
43479
43480cat >>confdefs.h <<_ACEOF
43481#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
43482_ACEOF
43483
43484
43485
43486# Path to ImageMagick lib
43487LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
43488DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
43489case "${build_os}" in
43490 mingw* )
43491 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
43492 ;;
43493esac
43494
43495cat >>confdefs.h <<_ACEOF
43496#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
43497_ACEOF
43498
43499
43500
43501# Subdirectory under lib to place ImageMagick configuration files
43502CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43503
43504cat >>confdefs.h <<_ACEOF
43505#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
43506_ACEOF
43507
43508CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43509DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43510case "${build_os}" in
43511 mingw* )
43512 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
43513 ;;
43514esac
43515
43516cat >>confdefs.h <<_ACEOF
43517#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
43518_ACEOF
43519
43520
43521
43522#
43523# Subdirectory under lib to place ImageMagick coder module files
43524CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
43525
43526cat >>confdefs.h <<_ACEOF
43527#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
43528_ACEOF
43529
43530CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
43531DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
43532case "${build_os}" in
43533 mingw* )
43534 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
43535 ;;
43536esac
43537
43538cat >>confdefs.h <<_ACEOF
43539#define CODER_PATH "$DEFINE_CODER_PATH"
43540_ACEOF
43541
43542
43543
43544#
43545# Subdirectory under lib to place ImageMagick filter module files
43546FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
43547
43548cat >>confdefs.h <<_ACEOF
43549#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
43550_ACEOF
43551
43552FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
43553DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
43554case "${build_os}" in
43555 mingw* )
43556 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
43557 ;;
43558esac
43559
43560cat >>confdefs.h <<_ACEOF
43561#define FILTER_PATH "$DEFINE_FILTER_PATH"
43562_ACEOF
43563
43564
43565
43566#
43567# Path to ImageMagick documentation files
43568DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43569DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
43570DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
43571case "${build_os}" in
43572 mingw* )
43573 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
43574 ;;
43575esac
43576
43577cat >>confdefs.h <<_ACEOF
43578#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
43579_ACEOF
43580
43581
43582
43583#
43584# Path to ImageMagick share files
43585SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43586SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
43587DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
43588case "${build_os}" in
43589 mingw* )
43590 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
43591 ;;
43592esac
43593
43594cat >>confdefs.h <<_ACEOF
43595#define SHARE_PATH "$DEFINE_SHARE_PATH"
43596_ACEOF
43597
43598
43599
43600# Subdirectory under share to place ImageMagick configuration files
43601SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43602
43603cat >>confdefs.h <<_ACEOF
43604#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
43605_ACEOF
43606
43607SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
43608DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
43609case "${build_os}" in
43610 mingw* )
43611 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
43612 ;;
43613esac
43614
43615cat >>confdefs.h <<_ACEOF
43616#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
43617_ACEOF
43618
43619
43620
43621#
43622# program_transform_name is formed for use in a Makefile, so create a
43623# modified version for use in a shell script.
43624configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
43625
43626# Default delegate definitions
43627{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43628$as_echo "-------------------------------------------------------------" >&6; }
43629{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
43630$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
43631{ $as_echo "$as_me:$LINENO: result: " >&5
43632$as_echo "" >&6; }
43633AutotraceDecodeDelegateDefault='autotrace'
43634AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000043635BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000043636BZIPDelegateDefault='bzip2'
43637BrowseDelegateDefault='xdg-open'
43638CGMDecodeDelegateDefault='ralcgm'
43639CatDelegateDefault='cat'
43640DNGDecodeDelegateDefault='ufraw-batch'
43641GVCDecodeDelegateDefault='dot'
43642DVIDecodeDelegateDefault='dvips'
43643EchoDelegateDefault='echo'
43644EditorDelegateDefault='xterm'
43645FIGDecodeDelegateDefault='fig2dev'
43646ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
43647DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
43648MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
43649GnuplotDecodeDelegateDefault='gnuplot'
43650HDRDecodeDelegateDefault='ra_pfm'
43651HPGLDecodeDelegateDefault='hp2xx'
43652HTMLDecodeDelegateDefault='html2ps'
43653ILBMDecodeDelegateDefault='ilbmtoppm'
43654ILBMEncodeDelegateDefault='ppmtoilbm'
43655LPDelegateDefault='lp'
43656LPRDelegateDefault='lpr'
43657LZWDecodeDelegateDefault='uncompress'
43658LZWEncodeDelegateDefault='compress'
43659LaunchDelegateDefault='gimp'
43660MANDelegateDefault='groff'
43661MPEGDecodeDelegateDefault='ffmpeg'
43662MPEGEncodeDelegateDefault='ffmpeg'
43663MVDelegateDefault='mv'
43664PCLDelegateDefault='pcl6'
43665PGPDecodeDelegateDefault='pgpv'
43666POVDelegateDefault='povray'
43667if test "$native_win32_build" = 'yes'; then
43668 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000043669elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000043670 PSDelegateDefault='gsc'
43671else
43672 PSDelegateDefault='gs'
43673fi
43674RLEEncodeDelegateDefault='rawtorle'
43675RMDelegateDefault='rm'
43676SCANDecodeDelegateDefault='scanimage'
43677TXTDelegateDefault='enscript'
43678WMFDecodeDelegateDefault='wmf2eps'
43679WWWDecodeDelegateDefault='curl'
43680XPSDelegateDefault='gxps'
43681ZipDelegateDefault='gzip'
43682
43683# Search for delegates
43684# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
43685set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
43686{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43687$as_echo_n "checking for $ac_word... " >&6; }
43688if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
43689 $as_echo_n "(cached) " >&6
43690else
43691 case $AutotraceDecodeDelegate in
43692 [\\/]* | ?:[\\/]*)
43693 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
43694 ;;
43695 *)
43696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43697for as_dir in $PATH
43698do
43699 IFS=$as_save_IFS
43700 test -z "$as_dir" && as_dir=.
43701 for ac_exec_ext in '' $ac_executable_extensions; do
43702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43703 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43705 break 2
43706 fi
43707done
43708done
43709IFS=$as_save_IFS
43710
43711 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
43712 ;;
43713esac
43714fi
43715AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
43716if test -n "$AutotraceDecodeDelegate"; then
43717 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
43718$as_echo "$AutotraceDecodeDelegate" >&6; }
43719else
43720 { $as_echo "$as_me:$LINENO: result: no" >&5
43721$as_echo "no" >&6; }
43722fi
43723
43724
43725# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
43726set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
43727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43728$as_echo_n "checking for $ac_word... " >&6; }
43729if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
43730 $as_echo_n "(cached) " >&6
43731else
43732 case $AVIDecodeDelegate in
43733 [\\/]* | ?:[\\/]*)
43734 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
43735 ;;
43736 *)
43737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43738for as_dir in $PATH
43739do
43740 IFS=$as_save_IFS
43741 test -z "$as_dir" && as_dir=.
43742 for ac_exec_ext in '' $ac_executable_extensions; do
43743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43744 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43746 break 2
43747 fi
43748done
43749done
43750IFS=$as_save_IFS
43751
43752 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
43753 ;;
43754esac
43755fi
43756AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
43757if test -n "$AVIDecodeDelegate"; then
43758 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
43759$as_echo "$AVIDecodeDelegate" >&6; }
43760else
43761 { $as_echo "$as_me:$LINENO: result: no" >&5
43762$as_echo "no" >&6; }
43763fi
43764
43765
43766# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
43767set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
43768{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43769$as_echo_n "checking for $ac_word... " >&6; }
43770if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
43771 $as_echo_n "(cached) " >&6
43772else
43773 case $BlenderDecodeDelegate in
43774 [\\/]* | ?:[\\/]*)
43775 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
43776 ;;
43777 *)
43778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43779for as_dir in $PATH
43780do
43781 IFS=$as_save_IFS
43782 test -z "$as_dir" && as_dir=.
43783 for ac_exec_ext in '' $ac_executable_extensions; do
43784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43785 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43787 break 2
43788 fi
43789done
43790done
43791IFS=$as_save_IFS
43792
43793 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
43794 ;;
43795esac
43796fi
43797BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
43798if test -n "$BlenderDecodeDelegate"; then
43799 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
43800$as_echo "$BlenderDecodeDelegate" >&6; }
43801else
43802 { $as_echo "$as_me:$LINENO: result: no" >&5
43803$as_echo "no" >&6; }
43804fi
43805
43806
43807# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
43808set dummy "$BZIPDelegateDefault"; ac_word=$2
43809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43810$as_echo_n "checking for $ac_word... " >&6; }
43811if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43812 $as_echo_n "(cached) " >&6
43813else
43814 case $BZIPDelegate in
43815 [\\/]* | ?:[\\/]*)
43816 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43817 ;;
43818 *)
43819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43820for as_dir in $PATH
43821do
43822 IFS=$as_save_IFS
43823 test -z "$as_dir" && as_dir=.
43824 for ac_exec_ext in '' $ac_executable_extensions; do
43825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43826 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43828 break 2
43829 fi
43830done
43831done
43832IFS=$as_save_IFS
43833
43834 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43835 ;;
43836esac
43837fi
43838BZIPDelegate=$ac_cv_path_BZIPDelegate
43839if test -n "$BZIPDelegate"; then
43840 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43841$as_echo "$BZIPDelegate" >&6; }
43842else
43843 { $as_echo "$as_me:$LINENO: result: no" >&5
43844$as_echo "no" >&6; }
43845fi
43846
43847
43848# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43849set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43850{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43851$as_echo_n "checking for $ac_word... " >&6; }
43852if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43853 $as_echo_n "(cached) " >&6
43854else
43855 case $BrowseDelegate in
43856 [\\/]* | ?:[\\/]*)
43857 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43858 ;;
43859 *)
43860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43861for as_dir in $PATH
43862do
43863 IFS=$as_save_IFS
43864 test -z "$as_dir" && as_dir=.
43865 for ac_exec_ext in '' $ac_executable_extensions; do
43866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43867 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43869 break 2
43870 fi
43871done
43872done
43873IFS=$as_save_IFS
43874
43875 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43876 ;;
43877esac
43878fi
43879BrowseDelegate=$ac_cv_path_BrowseDelegate
43880if test -n "$BrowseDelegate"; then
43881 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43882$as_echo "$BrowseDelegate" >&6; }
43883else
43884 { $as_echo "$as_me:$LINENO: result: no" >&5
43885$as_echo "no" >&6; }
43886fi
43887
43888
43889# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43890set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43891{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43892$as_echo_n "checking for $ac_word... " >&6; }
43893if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43894 $as_echo_n "(cached) " >&6
43895else
43896 case $CGMDecodeDelegate in
43897 [\\/]* | ?:[\\/]*)
43898 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43899 ;;
43900 *)
43901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43902for as_dir in $PATH
43903do
43904 IFS=$as_save_IFS
43905 test -z "$as_dir" && as_dir=.
43906 for ac_exec_ext in '' $ac_executable_extensions; do
43907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43908 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43910 break 2
43911 fi
43912done
43913done
43914IFS=$as_save_IFS
43915
43916 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43917 ;;
43918esac
43919fi
43920CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43921if test -n "$CGMDecodeDelegate"; then
43922 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43923$as_echo "$CGMDecodeDelegate" >&6; }
43924else
43925 { $as_echo "$as_me:$LINENO: result: no" >&5
43926$as_echo "no" >&6; }
43927fi
43928
43929
43930# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43931set dummy "$CatDelegateDefault"; ac_word=$2
43932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43933$as_echo_n "checking for $ac_word... " >&6; }
43934if test "${ac_cv_path_CatDelegate+set}" = set; then
43935 $as_echo_n "(cached) " >&6
43936else
43937 case $CatDelegate in
43938 [\\/]* | ?:[\\/]*)
43939 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43940 ;;
43941 *)
43942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43943for as_dir in $PATH
43944do
43945 IFS=$as_save_IFS
43946 test -z "$as_dir" && as_dir=.
43947 for ac_exec_ext in '' $ac_executable_extensions; do
43948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43949 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43951 break 2
43952 fi
43953done
43954done
43955IFS=$as_save_IFS
43956
43957 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43958 ;;
43959esac
43960fi
43961CatDelegate=$ac_cv_path_CatDelegate
43962if test -n "$CatDelegate"; then
43963 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43964$as_echo "$CatDelegate" >&6; }
43965else
43966 { $as_echo "$as_me:$LINENO: result: no" >&5
43967$as_echo "no" >&6; }
43968fi
43969
43970
43971# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
43972set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
43973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43974$as_echo_n "checking for $ac_word... " >&6; }
43975if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
43976 $as_echo_n "(cached) " >&6
43977else
43978 case $DNGDecodeDelegate in
43979 [\\/]* | ?:[\\/]*)
43980 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
43981 ;;
43982 *)
43983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43984for as_dir in $PATH
43985do
43986 IFS=$as_save_IFS
43987 test -z "$as_dir" && as_dir=.
43988 for ac_exec_ext in '' $ac_executable_extensions; do
43989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43990 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43992 break 2
43993 fi
43994done
43995done
43996IFS=$as_save_IFS
43997
43998 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
43999 ;;
44000esac
44001fi
44002DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
44003if test -n "$DNGDecodeDelegate"; then
44004 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
44005$as_echo "$DNGDecodeDelegate" >&6; }
44006else
44007 { $as_echo "$as_me:$LINENO: result: no" >&5
44008$as_echo "no" >&6; }
44009fi
44010
44011
44012# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
44013set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
44014{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44015$as_echo_n "checking for $ac_word... " >&6; }
44016if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
44017 $as_echo_n "(cached) " >&6
44018else
44019 case $GVCDecodeDelegate in
44020 [\\/]* | ?:[\\/]*)
44021 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
44022 ;;
44023 *)
44024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44025for as_dir in $PATH
44026do
44027 IFS=$as_save_IFS
44028 test -z "$as_dir" && as_dir=.
44029 for ac_exec_ext in '' $ac_executable_extensions; do
44030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44031 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44033 break 2
44034 fi
44035done
44036done
44037IFS=$as_save_IFS
44038
44039 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
44040 ;;
44041esac
44042fi
44043GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
44044if test -n "$GVCDecodeDelegate"; then
44045 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
44046$as_echo "$GVCDecodeDelegate" >&6; }
44047else
44048 { $as_echo "$as_me:$LINENO: result: no" >&5
44049$as_echo "no" >&6; }
44050fi
44051
44052
44053# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
44054set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
44055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44056$as_echo_n "checking for $ac_word... " >&6; }
44057if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
44058 $as_echo_n "(cached) " >&6
44059else
44060 case $DVIDecodeDelegate in
44061 [\\/]* | ?:[\\/]*)
44062 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
44063 ;;
44064 *)
44065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44066for as_dir in $PATH
44067do
44068 IFS=$as_save_IFS
44069 test -z "$as_dir" && as_dir=.
44070 for ac_exec_ext in '' $ac_executable_extensions; do
44071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44072 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44074 break 2
44075 fi
44076done
44077done
44078IFS=$as_save_IFS
44079
44080 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
44081 ;;
44082esac
44083fi
44084DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
44085if test -n "$DVIDecodeDelegate"; then
44086 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
44087$as_echo "$DVIDecodeDelegate" >&6; }
44088else
44089 { $as_echo "$as_me:$LINENO: result: no" >&5
44090$as_echo "no" >&6; }
44091fi
44092
44093
44094# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
44095set dummy "$EchoDelegateDefault"; ac_word=$2
44096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44097$as_echo_n "checking for $ac_word... " >&6; }
44098if test "${ac_cv_path_EchoDelegate+set}" = set; then
44099 $as_echo_n "(cached) " >&6
44100else
44101 case $EchoDelegate in
44102 [\\/]* | ?:[\\/]*)
44103 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
44104 ;;
44105 *)
44106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44107for as_dir in $PATH
44108do
44109 IFS=$as_save_IFS
44110 test -z "$as_dir" && as_dir=.
44111 for ac_exec_ext in '' $ac_executable_extensions; do
44112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44113 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
44114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44115 break 2
44116 fi
44117done
44118done
44119IFS=$as_save_IFS
44120
44121 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
44122 ;;
44123esac
44124fi
44125EchoDelegate=$ac_cv_path_EchoDelegate
44126if test -n "$EchoDelegate"; then
44127 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
44128$as_echo "$EchoDelegate" >&6; }
44129else
44130 { $as_echo "$as_me:$LINENO: result: no" >&5
44131$as_echo "no" >&6; }
44132fi
44133
44134
44135# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
44136set dummy "$EditorDelegateDefault"; ac_word=$2
44137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44138$as_echo_n "checking for $ac_word... " >&6; }
44139if test "${ac_cv_path_EditorDelegate+set}" = set; then
44140 $as_echo_n "(cached) " >&6
44141else
44142 case $EditorDelegate in
44143 [\\/]* | ?:[\\/]*)
44144 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
44145 ;;
44146 *)
44147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44148for as_dir in $PATH
44149do
44150 IFS=$as_save_IFS
44151 test -z "$as_dir" && as_dir=.
44152 for ac_exec_ext in '' $ac_executable_extensions; do
44153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44154 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
44155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44156 break 2
44157 fi
44158done
44159done
44160IFS=$as_save_IFS
44161
44162 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
44163 ;;
44164esac
44165fi
44166EditorDelegate=$ac_cv_path_EditorDelegate
44167if test -n "$EditorDelegate"; then
44168 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
44169$as_echo "$EditorDelegate" >&6; }
44170else
44171 { $as_echo "$as_me:$LINENO: result: no" >&5
44172$as_echo "no" >&6; }
44173fi
44174
44175
44176# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
44177set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
44178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44179$as_echo_n "checking for $ac_word... " >&6; }
44180if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
44181 $as_echo_n "(cached) " >&6
44182else
44183 case $FIGDecodeDelegate in
44184 [\\/]* | ?:[\\/]*)
44185 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
44186 ;;
44187 *)
44188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44189for as_dir in $PATH
44190do
44191 IFS=$as_save_IFS
44192 test -z "$as_dir" && as_dir=.
44193 for ac_exec_ext in '' $ac_executable_extensions; do
44194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44195 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44197 break 2
44198 fi
44199done
44200done
44201IFS=$as_save_IFS
44202
44203 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
44204 ;;
44205esac
44206fi
44207FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
44208if test -n "$FIGDecodeDelegate"; then
44209 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
44210$as_echo "$FIGDecodeDelegate" >&6; }
44211else
44212 { $as_echo "$as_me:$LINENO: result: no" >&5
44213$as_echo "no" >&6; }
44214fi
44215
44216
44217# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
44218set dummy "$ConvertDelegateDefault"; ac_word=$2
44219{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44220$as_echo_n "checking for $ac_word... " >&6; }
44221if test "${ac_cv_path_ConvertDelegate+set}" = set; then
44222 $as_echo_n "(cached) " >&6
44223else
44224 case $ConvertDelegate in
44225 [\\/]* | ?:[\\/]*)
44226 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
44227 ;;
44228 *)
44229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44230for as_dir in $PATH
44231do
44232 IFS=$as_save_IFS
44233 test -z "$as_dir" && as_dir=.
44234 for ac_exec_ext in '' $ac_executable_extensions; do
44235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44236 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
44237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44238 break 2
44239 fi
44240done
44241done
44242IFS=$as_save_IFS
44243
44244 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
44245 ;;
44246esac
44247fi
44248ConvertDelegate=$ac_cv_path_ConvertDelegate
44249if test -n "$ConvertDelegate"; then
44250 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
44251$as_echo "$ConvertDelegate" >&6; }
44252else
44253 { $as_echo "$as_me:$LINENO: result: no" >&5
44254$as_echo "no" >&6; }
44255fi
44256
44257
44258# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
44259set dummy "$DisplayDelegateDefault"; ac_word=$2
44260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44261$as_echo_n "checking for $ac_word... " >&6; }
44262if test "${ac_cv_path_DisplayDelegate+set}" = set; then
44263 $as_echo_n "(cached) " >&6
44264else
44265 case $DisplayDelegate in
44266 [\\/]* | ?:[\\/]*)
44267 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
44268 ;;
44269 *)
44270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44271for as_dir in $PATH
44272do
44273 IFS=$as_save_IFS
44274 test -z "$as_dir" && as_dir=.
44275 for ac_exec_ext in '' $ac_executable_extensions; do
44276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44277 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
44278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44279 break 2
44280 fi
44281done
44282done
44283IFS=$as_save_IFS
44284
44285 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
44286 ;;
44287esac
44288fi
44289DisplayDelegate=$ac_cv_path_DisplayDelegate
44290if test -n "$DisplayDelegate"; then
44291 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
44292$as_echo "$DisplayDelegate" >&6; }
44293else
44294 { $as_echo "$as_me:$LINENO: result: no" >&5
44295$as_echo "no" >&6; }
44296fi
44297
44298
44299# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
44300set dummy "$MogrifyDelegateDefault"; ac_word=$2
44301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44302$as_echo_n "checking for $ac_word... " >&6; }
44303if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
44304 $as_echo_n "(cached) " >&6
44305else
44306 case $MogrifyDelegate in
44307 [\\/]* | ?:[\\/]*)
44308 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
44309 ;;
44310 *)
44311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44312for as_dir in $PATH
44313do
44314 IFS=$as_save_IFS
44315 test -z "$as_dir" && as_dir=.
44316 for ac_exec_ext in '' $ac_executable_extensions; do
44317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44318 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
44319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44320 break 2
44321 fi
44322done
44323done
44324IFS=$as_save_IFS
44325
44326 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
44327 ;;
44328esac
44329fi
44330MogrifyDelegate=$ac_cv_path_MogrifyDelegate
44331if test -n "$MogrifyDelegate"; then
44332 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
44333$as_echo "$MogrifyDelegate" >&6; }
44334else
44335 { $as_echo "$as_me:$LINENO: result: no" >&5
44336$as_echo "no" >&6; }
44337fi
44338
44339
44340# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
44341set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
44342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44343$as_echo_n "checking for $ac_word... " >&6; }
44344if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
44345 $as_echo_n "(cached) " >&6
44346else
44347 case $GnuplotDecodeDelegate in
44348 [\\/]* | ?:[\\/]*)
44349 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
44350 ;;
44351 *)
44352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44353for as_dir in $PATH
44354do
44355 IFS=$as_save_IFS
44356 test -z "$as_dir" && as_dir=.
44357 for ac_exec_ext in '' $ac_executable_extensions; do
44358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44359 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44361 break 2
44362 fi
44363done
44364done
44365IFS=$as_save_IFS
44366
44367 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
44368 ;;
44369esac
44370fi
44371GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
44372if test -n "$GnuplotDecodeDelegate"; then
44373 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
44374$as_echo "$GnuplotDecodeDelegate" >&6; }
44375else
44376 { $as_echo "$as_me:$LINENO: result: no" >&5
44377$as_echo "no" >&6; }
44378fi
44379
44380
44381# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
44382set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
44383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44384$as_echo_n "checking for $ac_word... " >&6; }
44385if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
44386 $as_echo_n "(cached) " >&6
44387else
44388 case $HDRDecodeDelegate in
44389 [\\/]* | ?:[\\/]*)
44390 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
44391 ;;
44392 *)
44393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44394for as_dir in $PATH
44395do
44396 IFS=$as_save_IFS
44397 test -z "$as_dir" && as_dir=.
44398 for ac_exec_ext in '' $ac_executable_extensions; do
44399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44400 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44402 break 2
44403 fi
44404done
44405done
44406IFS=$as_save_IFS
44407
44408 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
44409 ;;
44410esac
44411fi
44412HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
44413if test -n "$HDRDecodeDelegate"; then
44414 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
44415$as_echo "$HDRDecodeDelegate" >&6; }
44416else
44417 { $as_echo "$as_me:$LINENO: result: no" >&5
44418$as_echo "no" >&6; }
44419fi
44420
44421
44422# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
44423set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
44424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44425$as_echo_n "checking for $ac_word... " >&6; }
44426if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
44427 $as_echo_n "(cached) " >&6
44428else
44429 case $HPGLDecodeDelegate in
44430 [\\/]* | ?:[\\/]*)
44431 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
44432 ;;
44433 *)
44434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44435for as_dir in $PATH
44436do
44437 IFS=$as_save_IFS
44438 test -z "$as_dir" && as_dir=.
44439 for ac_exec_ext in '' $ac_executable_extensions; do
44440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44441 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44443 break 2
44444 fi
44445done
44446done
44447IFS=$as_save_IFS
44448
44449 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
44450 ;;
44451esac
44452fi
44453HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
44454if test -n "$HPGLDecodeDelegate"; then
44455 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
44456$as_echo "$HPGLDecodeDelegate" >&6; }
44457else
44458 { $as_echo "$as_me:$LINENO: result: no" >&5
44459$as_echo "no" >&6; }
44460fi
44461
44462
44463# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
44464set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
44465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44466$as_echo_n "checking for $ac_word... " >&6; }
44467if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
44468 $as_echo_n "(cached) " >&6
44469else
44470 case $HTMLDecodeDelegate in
44471 [\\/]* | ?:[\\/]*)
44472 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
44473 ;;
44474 *)
44475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44476for as_dir in $PATH
44477do
44478 IFS=$as_save_IFS
44479 test -z "$as_dir" && as_dir=.
44480 for ac_exec_ext in '' $ac_executable_extensions; do
44481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44482 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44484 break 2
44485 fi
44486done
44487done
44488IFS=$as_save_IFS
44489
44490 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
44491 ;;
44492esac
44493fi
44494HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
44495if test -n "$HTMLDecodeDelegate"; then
44496 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
44497$as_echo "$HTMLDecodeDelegate" >&6; }
44498else
44499 { $as_echo "$as_me:$LINENO: result: no" >&5
44500$as_echo "no" >&6; }
44501fi
44502
44503
44504# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
44505set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
44506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44507$as_echo_n "checking for $ac_word... " >&6; }
44508if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
44509 $as_echo_n "(cached) " >&6
44510else
44511 case $ILBMDecodeDelegate in
44512 [\\/]* | ?:[\\/]*)
44513 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
44514 ;;
44515 *)
44516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44517for as_dir in $PATH
44518do
44519 IFS=$as_save_IFS
44520 test -z "$as_dir" && as_dir=.
44521 for ac_exec_ext in '' $ac_executable_extensions; do
44522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44523 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44525 break 2
44526 fi
44527done
44528done
44529IFS=$as_save_IFS
44530
44531 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
44532 ;;
44533esac
44534fi
44535ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
44536if test -n "$ILBMDecodeDelegate"; then
44537 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
44538$as_echo "$ILBMDecodeDelegate" >&6; }
44539else
44540 { $as_echo "$as_me:$LINENO: result: no" >&5
44541$as_echo "no" >&6; }
44542fi
44543
44544
44545# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
44546set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
44547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44548$as_echo_n "checking for $ac_word... " >&6; }
44549if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
44550 $as_echo_n "(cached) " >&6
44551else
44552 case $ILBMEncodeDelegate in
44553 [\\/]* | ?:[\\/]*)
44554 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
44555 ;;
44556 *)
44557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44558for as_dir in $PATH
44559do
44560 IFS=$as_save_IFS
44561 test -z "$as_dir" && as_dir=.
44562 for ac_exec_ext in '' $ac_executable_extensions; do
44563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44564 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44566 break 2
44567 fi
44568done
44569done
44570IFS=$as_save_IFS
44571
44572 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
44573 ;;
44574esac
44575fi
44576ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
44577if test -n "$ILBMEncodeDelegate"; then
44578 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
44579$as_echo "$ILBMEncodeDelegate" >&6; }
44580else
44581 { $as_echo "$as_me:$LINENO: result: no" >&5
44582$as_echo "no" >&6; }
44583fi
44584
44585
44586# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
44587set dummy "$LPDelegateDefault"; ac_word=$2
44588{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44589$as_echo_n "checking for $ac_word... " >&6; }
44590if test "${ac_cv_path_LPDelegate+set}" = set; then
44591 $as_echo_n "(cached) " >&6
44592else
44593 case $LPDelegate in
44594 [\\/]* | ?:[\\/]*)
44595 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
44596 ;;
44597 *)
44598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44599for as_dir in $PATH
44600do
44601 IFS=$as_save_IFS
44602 test -z "$as_dir" && as_dir=.
44603 for ac_exec_ext in '' $ac_executable_extensions; do
44604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44605 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
44606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44607 break 2
44608 fi
44609done
44610done
44611IFS=$as_save_IFS
44612
44613 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
44614 ;;
44615esac
44616fi
44617LPDelegate=$ac_cv_path_LPDelegate
44618if test -n "$LPDelegate"; then
44619 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
44620$as_echo "$LPDelegate" >&6; }
44621else
44622 { $as_echo "$as_me:$LINENO: result: no" >&5
44623$as_echo "no" >&6; }
44624fi
44625
44626
44627# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
44628set dummy "$LPRDelegateDefault"; ac_word=$2
44629{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44630$as_echo_n "checking for $ac_word... " >&6; }
44631if test "${ac_cv_path_LPRDelegate+set}" = set; then
44632 $as_echo_n "(cached) " >&6
44633else
44634 case $LPRDelegate in
44635 [\\/]* | ?:[\\/]*)
44636 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
44637 ;;
44638 *)
44639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44640for as_dir in $PATH
44641do
44642 IFS=$as_save_IFS
44643 test -z "$as_dir" && as_dir=.
44644 for ac_exec_ext in '' $ac_executable_extensions; do
44645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44646 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
44647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44648 break 2
44649 fi
44650done
44651done
44652IFS=$as_save_IFS
44653
44654 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
44655 ;;
44656esac
44657fi
44658LPRDelegate=$ac_cv_path_LPRDelegate
44659if test -n "$LPRDelegate"; then
44660 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
44661$as_echo "$LPRDelegate" >&6; }
44662else
44663 { $as_echo "$as_me:$LINENO: result: no" >&5
44664$as_echo "no" >&6; }
44665fi
44666
44667
44668# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
44669set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
44670{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44671$as_echo_n "checking for $ac_word... " >&6; }
44672if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
44673 $as_echo_n "(cached) " >&6
44674else
44675 case $LZWDecodeDelegate in
44676 [\\/]* | ?:[\\/]*)
44677 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
44678 ;;
44679 *)
44680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44681for as_dir in $PATH
44682do
44683 IFS=$as_save_IFS
44684 test -z "$as_dir" && as_dir=.
44685 for ac_exec_ext in '' $ac_executable_extensions; do
44686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44687 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44689 break 2
44690 fi
44691done
44692done
44693IFS=$as_save_IFS
44694
44695 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
44696 ;;
44697esac
44698fi
44699LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
44700if test -n "$LZWDecodeDelegate"; then
44701 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
44702$as_echo "$LZWDecodeDelegate" >&6; }
44703else
44704 { $as_echo "$as_me:$LINENO: result: no" >&5
44705$as_echo "no" >&6; }
44706fi
44707
44708
44709# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
44710set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
44711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44712$as_echo_n "checking for $ac_word... " >&6; }
44713if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
44714 $as_echo_n "(cached) " >&6
44715else
44716 case $LZWEncodeDelegate in
44717 [\\/]* | ?:[\\/]*)
44718 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
44719 ;;
44720 *)
44721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44722for as_dir in $PATH
44723do
44724 IFS=$as_save_IFS
44725 test -z "$as_dir" && as_dir=.
44726 for ac_exec_ext in '' $ac_executable_extensions; do
44727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44728 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44730 break 2
44731 fi
44732done
44733done
44734IFS=$as_save_IFS
44735
44736 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
44737 ;;
44738esac
44739fi
44740LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
44741if test -n "$LZWEncodeDelegate"; then
44742 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
44743$as_echo "$LZWEncodeDelegate" >&6; }
44744else
44745 { $as_echo "$as_me:$LINENO: result: no" >&5
44746$as_echo "no" >&6; }
44747fi
44748
44749
44750# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
44751set dummy "$LaunchDelegateDefault"; ac_word=$2
44752{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44753$as_echo_n "checking for $ac_word... " >&6; }
44754if test "${ac_cv_path_LaunchDelegate+set}" = set; then
44755 $as_echo_n "(cached) " >&6
44756else
44757 case $LaunchDelegate in
44758 [\\/]* | ?:[\\/]*)
44759 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
44760 ;;
44761 *)
44762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44763for as_dir in $PATH
44764do
44765 IFS=$as_save_IFS
44766 test -z "$as_dir" && as_dir=.
44767 for ac_exec_ext in '' $ac_executable_extensions; do
44768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44769 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
44770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44771 break 2
44772 fi
44773done
44774done
44775IFS=$as_save_IFS
44776
44777 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
44778 ;;
44779esac
44780fi
44781LaunchDelegate=$ac_cv_path_LaunchDelegate
44782if test -n "$LaunchDelegate"; then
44783 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
44784$as_echo "$LaunchDelegate" >&6; }
44785else
44786 { $as_echo "$as_me:$LINENO: result: no" >&5
44787$as_echo "no" >&6; }
44788fi
44789
44790
44791# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
44792set dummy "$MANDelegateDefault"; ac_word=$2
44793{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44794$as_echo_n "checking for $ac_word... " >&6; }
44795if test "${ac_cv_path_MANDelegate+set}" = set; then
44796 $as_echo_n "(cached) " >&6
44797else
44798 case $MANDelegate in
44799 [\\/]* | ?:[\\/]*)
44800 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
44801 ;;
44802 *)
44803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44804for as_dir in $PATH
44805do
44806 IFS=$as_save_IFS
44807 test -z "$as_dir" && as_dir=.
44808 for ac_exec_ext in '' $ac_executable_extensions; do
44809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44810 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44812 break 2
44813 fi
44814done
44815done
44816IFS=$as_save_IFS
44817
44818 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44819 ;;
44820esac
44821fi
44822MANDelegate=$ac_cv_path_MANDelegate
44823if test -n "$MANDelegate"; then
44824 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44825$as_echo "$MANDelegate" >&6; }
44826else
44827 { $as_echo "$as_me:$LINENO: result: no" >&5
44828$as_echo "no" >&6; }
44829fi
44830
44831
44832# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44833set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44835$as_echo_n "checking for $ac_word... " >&6; }
44836if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44837 $as_echo_n "(cached) " >&6
44838else
44839 case $MPEGDecodeDelegate in
44840 [\\/]* | ?:[\\/]*)
44841 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44842 ;;
44843 *)
44844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44845for as_dir in $PATH
44846do
44847 IFS=$as_save_IFS
44848 test -z "$as_dir" && as_dir=.
44849 for ac_exec_ext in '' $ac_executable_extensions; do
44850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44851 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44853 break 2
44854 fi
44855done
44856done
44857IFS=$as_save_IFS
44858
44859 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44860 ;;
44861esac
44862fi
44863MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44864if test -n "$MPEGDecodeDelegate"; then
44865 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44866$as_echo "$MPEGDecodeDelegate" >&6; }
44867else
44868 { $as_echo "$as_me:$LINENO: result: no" >&5
44869$as_echo "no" >&6; }
44870fi
44871
44872
44873# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44874set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44876$as_echo_n "checking for $ac_word... " >&6; }
44877if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44878 $as_echo_n "(cached) " >&6
44879else
44880 case $MPEGEncodeDelegate in
44881 [\\/]* | ?:[\\/]*)
44882 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44883 ;;
44884 *)
44885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44886for as_dir in $PATH
44887do
44888 IFS=$as_save_IFS
44889 test -z "$as_dir" && as_dir=.
44890 for ac_exec_ext in '' $ac_executable_extensions; do
44891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44892 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44894 break 2
44895 fi
44896done
44897done
44898IFS=$as_save_IFS
44899
44900 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44901 ;;
44902esac
44903fi
44904MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44905if test -n "$MPEGEncodeDelegate"; then
44906 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44907$as_echo "$MPEGEncodeDelegate" >&6; }
44908else
44909 { $as_echo "$as_me:$LINENO: result: no" >&5
44910$as_echo "no" >&6; }
44911fi
44912
44913
44914# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44915set dummy "$MVDelegateDefault"; ac_word=$2
44916{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44917$as_echo_n "checking for $ac_word... " >&6; }
44918if test "${ac_cv_path_MVDelegate+set}" = set; then
44919 $as_echo_n "(cached) " >&6
44920else
44921 case $MVDelegate in
44922 [\\/]* | ?:[\\/]*)
44923 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44924 ;;
44925 *)
44926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44927for as_dir in $PATH
44928do
44929 IFS=$as_save_IFS
44930 test -z "$as_dir" && as_dir=.
44931 for ac_exec_ext in '' $ac_executable_extensions; do
44932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44933 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44935 break 2
44936 fi
44937done
44938done
44939IFS=$as_save_IFS
44940
44941 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44942 ;;
44943esac
44944fi
44945MVDelegate=$ac_cv_path_MVDelegate
44946if test -n "$MVDelegate"; then
44947 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44948$as_echo "$MVDelegate" >&6; }
44949else
44950 { $as_echo "$as_me:$LINENO: result: no" >&5
44951$as_echo "no" >&6; }
44952fi
44953
44954
44955# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44956set dummy "$PCLDelegateDefault"; ac_word=$2
44957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44958$as_echo_n "checking for $ac_word... " >&6; }
44959if test "${ac_cv_path_PCLDelegate+set}" = set; then
44960 $as_echo_n "(cached) " >&6
44961else
44962 case $PCLDelegate in
44963 [\\/]* | ?:[\\/]*)
44964 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44965 ;;
44966 *)
44967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44968for as_dir in $PATH
44969do
44970 IFS=$as_save_IFS
44971 test -z "$as_dir" && as_dir=.
44972 for ac_exec_ext in '' $ac_executable_extensions; do
44973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44974 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
44975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44976 break 2
44977 fi
44978done
44979done
44980IFS=$as_save_IFS
44981
44982 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
44983 ;;
44984esac
44985fi
44986PCLDelegate=$ac_cv_path_PCLDelegate
44987if test -n "$PCLDelegate"; then
44988 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
44989$as_echo "$PCLDelegate" >&6; }
44990else
44991 { $as_echo "$as_me:$LINENO: result: no" >&5
44992$as_echo "no" >&6; }
44993fi
44994
44995
44996# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
44997set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
44998{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44999$as_echo_n "checking for $ac_word... " >&6; }
45000if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
45001 $as_echo_n "(cached) " >&6
45002else
45003 case $PGPDecodeDelegate in
45004 [\\/]* | ?:[\\/]*)
45005 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
45006 ;;
45007 *)
45008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45009for as_dir in $PATH
45010do
45011 IFS=$as_save_IFS
45012 test -z "$as_dir" && as_dir=.
45013 for ac_exec_ext in '' $ac_executable_extensions; do
45014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45015 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45017 break 2
45018 fi
45019done
45020done
45021IFS=$as_save_IFS
45022
45023 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
45024 ;;
45025esac
45026fi
45027PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
45028if test -n "$PGPDecodeDelegate"; then
45029 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
45030$as_echo "$PGPDecodeDelegate" >&6; }
45031else
45032 { $as_echo "$as_me:$LINENO: result: no" >&5
45033$as_echo "no" >&6; }
45034fi
45035
45036
45037# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
45038set dummy "$POVDelegateDefault"; ac_word=$2
45039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45040$as_echo_n "checking for $ac_word... " >&6; }
45041if test "${ac_cv_path_POVDelegate+set}" = set; then
45042 $as_echo_n "(cached) " >&6
45043else
45044 case $POVDelegate in
45045 [\\/]* | ?:[\\/]*)
45046 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
45047 ;;
45048 *)
45049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45050for as_dir in $PATH
45051do
45052 IFS=$as_save_IFS
45053 test -z "$as_dir" && as_dir=.
45054 for ac_exec_ext in '' $ac_executable_extensions; do
45055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45056 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
45057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45058 break 2
45059 fi
45060done
45061done
45062IFS=$as_save_IFS
45063
45064 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
45065 ;;
45066esac
45067fi
45068POVDelegate=$ac_cv_path_POVDelegate
45069if test -n "$POVDelegate"; then
45070 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
45071$as_echo "$POVDelegate" >&6; }
45072else
45073 { $as_echo "$as_me:$LINENO: result: no" >&5
45074$as_echo "no" >&6; }
45075fi
45076
45077
45078for ac_prog in gsx gsc "$PSDelegateDefault"
45079do
45080 # Extract the first word of "$ac_prog", so it can be a program name with args.
45081set dummy $ac_prog; ac_word=$2
45082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45083$as_echo_n "checking for $ac_word... " >&6; }
45084if test "${ac_cv_path_PSDelegate+set}" = set; then
45085 $as_echo_n "(cached) " >&6
45086else
45087 case $PSDelegate in
45088 [\\/]* | ?:[\\/]*)
45089 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
45090 ;;
45091 *)
45092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45093for as_dir in $PATH
45094do
45095 IFS=$as_save_IFS
45096 test -z "$as_dir" && as_dir=.
45097 for ac_exec_ext in '' $ac_executable_extensions; do
45098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45099 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
45100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45101 break 2
45102 fi
45103done
45104done
45105IFS=$as_save_IFS
45106
45107 ;;
45108esac
45109fi
45110PSDelegate=$ac_cv_path_PSDelegate
45111if test -n "$PSDelegate"; then
45112 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
45113$as_echo "$PSDelegate" >&6; }
45114else
45115 { $as_echo "$as_me:$LINENO: result: no" >&5
45116$as_echo "no" >&6; }
45117fi
45118
45119
45120 test -n "$PSDelegate" && break
45121done
45122test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
45123
45124# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
45125set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
45126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45127$as_echo_n "checking for $ac_word... " >&6; }
45128if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
45129 $as_echo_n "(cached) " >&6
45130else
45131 case $RLEEncodeDelegate in
45132 [\\/]* | ?:[\\/]*)
45133 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
45134 ;;
45135 *)
45136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45137for as_dir in $PATH
45138do
45139 IFS=$as_save_IFS
45140 test -z "$as_dir" && as_dir=.
45141 for ac_exec_ext in '' $ac_executable_extensions; do
45142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45143 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45145 break 2
45146 fi
45147done
45148done
45149IFS=$as_save_IFS
45150
45151 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
45152 ;;
45153esac
45154fi
45155RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
45156if test -n "$RLEEncodeDelegate"; then
45157 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
45158$as_echo "$RLEEncodeDelegate" >&6; }
45159else
45160 { $as_echo "$as_me:$LINENO: result: no" >&5
45161$as_echo "no" >&6; }
45162fi
45163
45164
45165# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
45166set dummy "$RMDelegateDefault"; ac_word=$2
45167{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45168$as_echo_n "checking for $ac_word... " >&6; }
45169if test "${ac_cv_path_RMDelegate+set}" = set; then
45170 $as_echo_n "(cached) " >&6
45171else
45172 case $RMDelegate in
45173 [\\/]* | ?:[\\/]*)
45174 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
45175 ;;
45176 *)
45177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45178for as_dir in $PATH
45179do
45180 IFS=$as_save_IFS
45181 test -z "$as_dir" && as_dir=.
45182 for ac_exec_ext in '' $ac_executable_extensions; do
45183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45184 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
45185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45186 break 2
45187 fi
45188done
45189done
45190IFS=$as_save_IFS
45191
45192 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
45193 ;;
45194esac
45195fi
45196RMDelegate=$ac_cv_path_RMDelegate
45197if test -n "$RMDelegate"; then
45198 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
45199$as_echo "$RMDelegate" >&6; }
45200else
45201 { $as_echo "$as_me:$LINENO: result: no" >&5
45202$as_echo "no" >&6; }
45203fi
45204
45205
45206# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
45207set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
45208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45209$as_echo_n "checking for $ac_word... " >&6; }
45210if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
45211 $as_echo_n "(cached) " >&6
45212else
45213 case $SCANDecodeDelegate in
45214 [\\/]* | ?:[\\/]*)
45215 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
45216 ;;
45217 *)
45218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45219for as_dir in $PATH
45220do
45221 IFS=$as_save_IFS
45222 test -z "$as_dir" && as_dir=.
45223 for ac_exec_ext in '' $ac_executable_extensions; do
45224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45225 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45227 break 2
45228 fi
45229done
45230done
45231IFS=$as_save_IFS
45232
45233 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
45234 ;;
45235esac
45236fi
45237SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
45238if test -n "$SCANDecodeDelegate"; then
45239 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
45240$as_echo "$SCANDecodeDelegate" >&6; }
45241else
45242 { $as_echo "$as_me:$LINENO: result: no" >&5
45243$as_echo "no" >&6; }
45244fi
45245
45246
45247# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
45248set dummy "$TXTDelegateDefault"; ac_word=$2
45249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45250$as_echo_n "checking for $ac_word... " >&6; }
45251if test "${ac_cv_path_TXTDelegate+set}" = set; then
45252 $as_echo_n "(cached) " >&6
45253else
45254 case $TXTDelegate in
45255 [\\/]* | ?:[\\/]*)
45256 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
45257 ;;
45258 *)
45259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45260for as_dir in $PATH
45261do
45262 IFS=$as_save_IFS
45263 test -z "$as_dir" && as_dir=.
45264 for ac_exec_ext in '' $ac_executable_extensions; do
45265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45266 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
45267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45268 break 2
45269 fi
45270done
45271done
45272IFS=$as_save_IFS
45273
45274 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
45275 ;;
45276esac
45277fi
45278TXTDelegate=$ac_cv_path_TXTDelegate
45279if test -n "$TXTDelegate"; then
45280 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
45281$as_echo "$TXTDelegate" >&6; }
45282else
45283 { $as_echo "$as_me:$LINENO: result: no" >&5
45284$as_echo "no" >&6; }
45285fi
45286
45287
45288# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
45289set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
45290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45291$as_echo_n "checking for $ac_word... " >&6; }
45292if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
45293 $as_echo_n "(cached) " >&6
45294else
45295 case $WMFDecodeDelegate in
45296 [\\/]* | ?:[\\/]*)
45297 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
45298 ;;
45299 *)
45300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45301for as_dir in $PATH
45302do
45303 IFS=$as_save_IFS
45304 test -z "$as_dir" && as_dir=.
45305 for ac_exec_ext in '' $ac_executable_extensions; do
45306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45307 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45309 break 2
45310 fi
45311done
45312done
45313IFS=$as_save_IFS
45314
45315 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
45316 ;;
45317esac
45318fi
45319WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
45320if test -n "$WMFDecodeDelegate"; then
45321 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
45322$as_echo "$WMFDecodeDelegate" >&6; }
45323else
45324 { $as_echo "$as_me:$LINENO: result: no" >&5
45325$as_echo "no" >&6; }
45326fi
45327
45328
45329# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
45330set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
45331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45332$as_echo_n "checking for $ac_word... " >&6; }
45333if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
45334 $as_echo_n "(cached) " >&6
45335else
45336 case $WWWDecodeDelegate in
45337 [\\/]* | ?:[\\/]*)
45338 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
45339 ;;
45340 *)
45341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45342for as_dir in $PATH
45343do
45344 IFS=$as_save_IFS
45345 test -z "$as_dir" && as_dir=.
45346 for ac_exec_ext in '' $ac_executable_extensions; do
45347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45348 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45350 break 2
45351 fi
45352done
45353done
45354IFS=$as_save_IFS
45355
45356 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
45357 ;;
45358esac
45359fi
45360WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
45361if test -n "$WWWDecodeDelegate"; then
45362 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
45363$as_echo "$WWWDecodeDelegate" >&6; }
45364else
45365 { $as_echo "$as_me:$LINENO: result: no" >&5
45366$as_echo "no" >&6; }
45367fi
45368
45369
45370# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
45371set dummy "$XPSDelegateDefault"; ac_word=$2
45372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45373$as_echo_n "checking for $ac_word... " >&6; }
45374if test "${ac_cv_path_XPSDelegate+set}" = set; then
45375 $as_echo_n "(cached) " >&6
45376else
45377 case $XPSDelegate in
45378 [\\/]* | ?:[\\/]*)
45379 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
45380 ;;
45381 *)
45382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45383for as_dir in $PATH
45384do
45385 IFS=$as_save_IFS
45386 test -z "$as_dir" && as_dir=.
45387 for ac_exec_ext in '' $ac_executable_extensions; do
45388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45389 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
45390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45391 break 2
45392 fi
45393done
45394done
45395IFS=$as_save_IFS
45396
45397 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
45398 ;;
45399esac
45400fi
45401XPSDelegate=$ac_cv_path_XPSDelegate
45402if test -n "$XPSDelegate"; then
45403 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
45404$as_echo "$XPSDelegate" >&6; }
45405else
45406 { $as_echo "$as_me:$LINENO: result: no" >&5
45407$as_echo "no" >&6; }
45408fi
45409
45410
45411# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
45412set dummy "$ZipDelegateDefault"; ac_word=$2
45413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45414$as_echo_n "checking for $ac_word... " >&6; }
45415if test "${ac_cv_path_ZipDelegate+set}" = set; then
45416 $as_echo_n "(cached) " >&6
45417else
45418 case $ZipDelegate in
45419 [\\/]* | ?:[\\/]*)
45420 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
45421 ;;
45422 *)
45423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45424for as_dir in $PATH
45425do
45426 IFS=$as_save_IFS
45427 test -z "$as_dir" && as_dir=.
45428 for ac_exec_ext in '' $ac_executable_extensions; do
45429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45430 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
45431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45432 break 2
45433 fi
45434done
45435done
45436IFS=$as_save_IFS
45437
45438 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
45439 ;;
45440esac
45441fi
45442ZipDelegate=$ac_cv_path_ZipDelegate
45443if test -n "$ZipDelegate"; then
45444 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
45445$as_echo "$ZipDelegate" >&6; }
45446else
45447 { $as_echo "$as_me:$LINENO: result: no" >&5
45448$as_echo "no" >&6; }
45449fi
45450
45451
45452
45453# Prefer lpr to lp; lp needs options tacked on.
45454if test "$LPRDelegate" != no; then
45455 PrintDelegate="$LPRDelegate"
45456else
45457 PrintDelegate="$LPDelegate -c -s"
45458fi
45459
45460
45461# Installed ImageMagick utiltity paths
45462ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
45463DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
45464MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
45465
45466# Set delegate booleans
45467have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
45468have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
45469have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
45470have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
45471have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
45472have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
45473have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
45474have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
45475have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
45476have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
45477have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
45478
45479#
45480# Test for font directories
45481#
45482type_include_files=''
45483
45484# Windows
45485windows_font_dir=''
45486if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
45487 windows_font_dir="${with_windows_font_dir}/"
45488fi
45489if test -n "$windows_font_dir"; then
45490 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
45491 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
45492 fi
45493 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
45494 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
45495 fi
45496 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
45497 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
45498 fi
45499fi
45500if test -n "$windows_font_dir"; then
45501 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
45502fi
45503
45504
45505# Ghostscript
45506{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
45507$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
45508ghostscript_font_dir=''
45509if test "${with_gs_font_dir}" != 'default'; then
45510 ghostscript_font_dir="${with_gs_font_dir}/"
45511else
45512 if test "${native_win32_build}" = 'yes'; then
45513 # Native Windows Build
45514 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
45515 if test -f "${font_dir}a010013l.pfb"; then
45516 ghostscript_font_dir="$font_dir"
45517 break 1
45518 fi
45519 done
45520 if test "${PSDelegate}" != 'gswin32c'; then
45521 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
45522 fi
45523 else
45524 # Linux / Mac OS X / Unix Build
45525 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
45526 if test -f "${font_dir}a010013l.pfb"; then
45527 ghostscript_font_dir="${font_dir}"
45528 break 1
45529 fi
45530 done
45531 if test "${ghostscript_font_dir}x" = 'x'; then
45532 if test "$PSDelegate" != 'gs'; then
45533 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
45534 fi
45535 fi
45536 fi
45537fi
45538if test "${ghostscript_font_dir}x" != 'x'; then
45539 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
45540 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
45541$as_echo "$ghostscript_font_dir" >&6; }
45542else
45543 { $as_echo "$as_me:$LINENO: result: not found!" >&5
45544$as_echo "not found!" >&6; };
45545fi
45546
45547case "${build_os}" in
45548 mingw* )
45549 PSDelegate=`$WinPathScript "$PSDelegate" 1`
45550 ;;
45551esac
45552
45553
45554
45555#
45556# Handle case where user doesn't want frozen paths
45557#
45558if test "$with_frozenpaths" != 'yes'; then
45559 # Re-set delegate definitions to default (no paths)
45560 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
45561 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
45562 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
45563 BZIPDelegate="$BZIPDelegateDefault"
45564 BrowseDelegate="$BrowseDelegateDefault"
45565 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
45566 CatDelegate="$CatDelegateDefault"
45567 ConvertDelegate="$ConvertDelegateDefault"
45568 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
45569 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
45570 EchoDelegate="$EchoDelegateDefault"
45571 EditorDelegate="$EditorDelegateDefault"
45572 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
45573 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
45574 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
45575 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
45576 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
45577 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
45578 LPDelegate="$LPDelegateDefault"
45579 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
45580 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
45581 LaunchDelegate="$LaunchDelegateDefault"
45582 MANDelegate="$MANDelegateDefault"
45583 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
45584 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
45585 MVDelegate="$MVDelegateDefault"
45586 MogrifyDelegate="$MogrifyDelegateDefault"
45587 PCLDelegate="$PCLDelegateDefault"
45588 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
45589 POVDelegate="$POVDelegateDefault"
45590 PSDelegate="$PSDelegateDefault"
45591 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
45592 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
45593 RMDelegate="$RMDelegateDefault"
45594 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
45595 ShowImageDelegate="$ShowImageDelegateDefault"
45596 TXTDelegate="$TXTDelegateDefault"
45597 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
45598 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
45599 XPSDelegate="$XPSDelegateDefault"
45600 ZipDelegate="$ZipDelegateDefault"
45601fi
45602
45603# Delegate substitutions
45604
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
45616
45617
45618
45619
45620
45621
45622
45623
45624
45625
45626
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646#
45647# RPM support.
45648#
45649RPM=''
45650for ac_prog in gnutar gtar tar
45651do
45652 # Extract the first word of "$ac_prog", so it can be a program name with args.
45653set dummy $ac_prog; ac_word=$2
45654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45655$as_echo_n "checking for $ac_word... " >&6; }
45656if test "${ac_cv_prog_TAR+set}" = set; then
45657 $as_echo_n "(cached) " >&6
45658else
45659 if test -n "$TAR"; then
45660 ac_cv_prog_TAR="$TAR" # Let the user override the test.
45661else
45662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45663for as_dir in $PATH
45664do
45665 IFS=$as_save_IFS
45666 test -z "$as_dir" && as_dir=.
45667 for ac_exec_ext in '' $ac_executable_extensions; do
45668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45669 ac_cv_prog_TAR="$ac_prog"
45670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45671 break 2
45672 fi
45673done
45674done
45675IFS=$as_save_IFS
45676
45677fi
45678fi
45679TAR=$ac_cv_prog_TAR
45680if test -n "$TAR"; then
45681 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
45682$as_echo "$TAR" >&6; }
45683else
45684 { $as_echo "$as_me:$LINENO: result: no" >&5
45685$as_echo "no" >&6; }
45686fi
45687
45688
45689 test -n "$TAR" && break
45690done
45691
45692for ac_prog in perl
45693do
45694 # Extract the first word of "$ac_prog", so it can be a program name with args.
45695set dummy $ac_prog; ac_word=$2
45696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45697$as_echo_n "checking for $ac_word... " >&6; }
45698if test "${ac_cv_prog_PERL+set}" = set; then
45699 $as_echo_n "(cached) " >&6
45700else
45701 if test -n "$PERL"; then
45702 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45703else
45704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45705for as_dir in $PATH
45706do
45707 IFS=$as_save_IFS
45708 test -z "$as_dir" && as_dir=.
45709 for ac_exec_ext in '' $ac_executable_extensions; do
45710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45711 ac_cv_prog_PERL="$ac_prog"
45712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45713 break 2
45714 fi
45715done
45716done
45717IFS=$as_save_IFS
45718
45719fi
45720fi
45721PERL=$ac_cv_prog_PERL
45722if test -n "$PERL"; then
45723 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45724$as_echo "$PERL" >&6; }
45725else
45726 { $as_echo "$as_me:$LINENO: result: no" >&5
45727$as_echo "no" >&6; }
45728fi
45729
45730
45731 test -n "$PERL" && break
45732done
45733
45734for ac_prog in rpmbuild rpm
45735do
45736 # Extract the first word of "$ac_prog", so it can be a program name with args.
45737set dummy $ac_prog; ac_word=$2
45738{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45739$as_echo_n "checking for $ac_word... " >&6; }
45740if test "${ac_cv_prog_RPM+set}" = set; then
45741 $as_echo_n "(cached) " >&6
45742else
45743 if test -n "$RPM"; then
45744 ac_cv_prog_RPM="$RPM" # Let the user override the test.
45745else
45746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45747for as_dir in $PATH
45748do
45749 IFS=$as_save_IFS
45750 test -z "$as_dir" && as_dir=.
45751 for ac_exec_ext in '' $ac_executable_extensions; do
45752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45753 ac_cv_prog_RPM="$ac_prog"
45754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45755 break 2
45756 fi
45757done
45758done
45759IFS=$as_save_IFS
45760
45761fi
45762fi
45763RPM=$ac_cv_prog_RPM
45764if test -n "$RPM"; then
45765 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
45766$as_echo "$RPM" >&6; }
45767else
45768 { $as_echo "$as_me:$LINENO: result: no" >&5
45769$as_echo "no" >&6; }
45770fi
45771
45772
45773 test -n "$RPM" && break
45774done
45775
45776
45777ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
45778
45779
45780AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
45781
45782
45783AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
45784
45785
45786AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
45787
45788
45789 if test "x$RPM" != "x" ; then
45790 RPM_DELEGATE_TRUE=
45791 RPM_DELEGATE_FALSE='#'
45792else
45793 RPM_DELEGATE_TRUE='#'
45794 RPM_DELEGATE_FALSE=
45795fi
45796
45797
45798#
45799# 7ZIP support (http://p7zip.sourceforge.net/)
45800#
45801P7ZIP=''
45802for ac_prog in 7za
45803do
45804 # Extract the first word of "$ac_prog", so it can be a program name with args.
45805set dummy $ac_prog; ac_word=$2
45806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45807$as_echo_n "checking for $ac_word... " >&6; }
45808if test "${ac_cv_prog_P7ZIP+set}" = set; then
45809 $as_echo_n "(cached) " >&6
45810else
45811 if test -n "$P7ZIP"; then
45812 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45813else
45814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45815for as_dir in $PATH
45816do
45817 IFS=$as_save_IFS
45818 test -z "$as_dir" && as_dir=.
45819 for ac_exec_ext in '' $ac_executable_extensions; do
45820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45821 ac_cv_prog_P7ZIP="$ac_prog"
45822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45823 break 2
45824 fi
45825done
45826done
45827IFS=$as_save_IFS
45828
45829fi
45830fi
45831P7ZIP=$ac_cv_prog_P7ZIP
45832if test -n "$P7ZIP"; then
45833 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45834$as_echo "$P7ZIP" >&6; }
45835else
45836 { $as_echo "$as_me:$LINENO: result: no" >&5
45837$as_echo "no" >&6; }
45838fi
45839
45840
45841 test -n "$P7ZIP" && break
45842done
45843
45844
45845 if test "x$P7ZIP" != "x" ; then
45846 P7ZIP_DELEGATE_TRUE=
45847 P7ZIP_DELEGATE_FALSE='#'
45848else
45849 P7ZIP_DELEGATE_TRUE='#'
45850 P7ZIP_DELEGATE_FALSE=
45851fi
45852
45853
45854#
45855# ZIP support (http://www.info-zip.org/Zip.html)
45856#
45857ZIP=''
45858for ac_prog in zip
45859do
45860 # Extract the first word of "$ac_prog", so it can be a program name with args.
45861set dummy $ac_prog; ac_word=$2
45862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45863$as_echo_n "checking for $ac_word... " >&6; }
45864if test "${ac_cv_prog_ZIP+set}" = set; then
45865 $as_echo_n "(cached) " >&6
45866else
45867 if test -n "$ZIP"; then
45868 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45869else
45870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45871for as_dir in $PATH
45872do
45873 IFS=$as_save_IFS
45874 test -z "$as_dir" && as_dir=.
45875 for ac_exec_ext in '' $ac_executable_extensions; do
45876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45877 ac_cv_prog_ZIP="$ac_prog"
45878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45879 break 2
45880 fi
45881done
45882done
45883IFS=$as_save_IFS
45884
45885fi
45886fi
45887ZIP=$ac_cv_prog_ZIP
45888if test -n "$ZIP"; then
45889 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45890$as_echo "$ZIP" >&6; }
45891else
45892 { $as_echo "$as_me:$LINENO: result: no" >&5
45893$as_echo "no" >&6; }
45894fi
45895
45896
45897 test -n "$ZIP" && break
45898done
45899
45900
45901 if test "x$ZIP" != "x" ; then
45902 ZIP_DELEGATE_TRUE=
45903 ZIP_DELEGATE_FALSE='#'
45904else
45905 ZIP_DELEGATE_TRUE='#'
45906 ZIP_DELEGATE_FALSE=
45907fi
45908
45909
45910#
45911# GhostPCL related configuration.
45912#
45913PCLColorDevice=ppmraw
45914PCLCMYKDevice=bmpsep8
45915PCLMonoDevice=pbmraw
45916if test -z "$PCLVersion"; then
45917 PCLVersion='unknown'
45918fi
45919if test $have_pcl = 'yes'; then
45920 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45921$as_echo "-------------------------------------------------------------" >&6; }
45922 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45923$as_echo_n "checking for PCL... " >&6; }
45924 { $as_echo "$as_me:$LINENO: result: " >&5
45925$as_echo "" >&6; }
45926 # PCLColorDevice
45927 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45928$as_echo_n "checking for pcl color device... " >&6; }
45929 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45930 :
45931 else
45932 PCLColorDevice=ppmraw
45933 fi
45934 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45935$as_echo "$PCLColorDevice" >&6; }
45936
45937 # PCLCMYKDevice
45938 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45939$as_echo_n "checking for pcl CMYK device... " >&6; }
45940 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45941 :
45942 else
45943 PCLCMYKDevice=$PCLColorDevice
45944 fi
45945 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45946$as_echo "$PCLCMYKDevice" >&6; }
45947
45948 # PCLMonoDevice
45949 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45950$as_echo_n "checking for pcl mono device... " >&6; }
45951 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45952 :
45953 else
45954 PCLMonoDevice=$PCLColorDevice
45955 fi
45956 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45957$as_echo "$PCLMonoDevice" >&6; }
45958fi
45959
45960
45961
45962
45963
45964
45965#
45966# GhostXPS related configuration.
45967#
45968XPSColorDevice=ppmraw
45969XPSCMYKDevice=bmpsep8
45970XPSMonoDevice=pbmraw
45971if test -z "$XPSVersion"; then
45972 XPSVersion='unknown'
45973fi
45974if test $have_xps = 'yes'; then
45975 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45976$as_echo "-------------------------------------------------------------" >&6; }
45977 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
45978$as_echo_n "checking for XPS... " >&6; }
45979 { $as_echo "$as_me:$LINENO: result: " >&5
45980$as_echo "" >&6; }
45981 # XPSColorDevice
45982 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
45983$as_echo_n "checking for xps color device... " >&6; }
45984 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45985 :
45986 else
45987 XPSColorDevice=ppmraw
45988 fi
45989 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
45990$as_echo "$XPSColorDevice" >&6; }
45991
45992 # XPSCMYKDevice
45993 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
45994$as_echo_n "checking for xps CMYK device... " >&6; }
45995 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45996 :
45997 else
45998 XPSCMYKDevice=$XPSColorDevice
45999 fi
46000 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
46001$as_echo "$XPSCMYKDevice" >&6; }
46002
46003 # XPSMonoDevice
46004 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
46005$as_echo_n "checking for xps mono device... " >&6; }
46006 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46007 :
46008 else
46009 XPSMonoDevice=$XPSColorDevice
46010 fi
46011 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
46012$as_echo "$XPSMonoDevice" >&6; }
46013fi
46014
46015
46016
46017
46018
46019
46020#
46021# Ghostscript related configuration.
46022#
46023if test "$have_png" = 'yes'; then
46024 GSAlphaDevice=pngalpha
46025else
46026 GSAlphaDevice=pnmraw
46027fi
46028GSColorDevice=pnmraw
46029GSCMYKDevice=pam
46030GSMonoDevice=pbmraw
46031GSPDFDevice=pdfwrite
46032GSPSDevice=pswrite
46033GSEPSDevice=epswrite
46034GSVersion='unknown'
46035if test $have_gs = 'yes'; then
46036 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46037$as_echo "-------------------------------------------------------------" >&6; }
46038 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
46039$as_echo_n "checking for Ghostscript... " >&6; }
46040 { $as_echo "$as_me:$LINENO: result: " >&5
46041$as_echo "" >&6; }
46042 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
46043$as_echo_n "checking for Ghostscript version... " >&6; }
46044 if GSVersion=`$PSDelegate --version`; then
46045 :
46046 else
46047 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
46048 fi
46049 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
46050$as_echo "$GSVersion" >&6; }
46051
46052 # GSAlphaDevice
46053 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
46054$as_echo_n "checking for gs alpha device... " >&6; }
46055 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46056 :
46057 else
46058 GSAlphaDevice=pnmraw
46059 fi
46060 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
46061$as_echo "$GSAlphaDevice" >&6; }
46062
46063 # GSColorDevice
46064 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
46065$as_echo_n "checking for gs color device... " >&6; }
46066 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46067 :
46068 else
46069 GSColorDevice=pnmraw
46070 fi
46071 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
46072$as_echo "$GSColorDevice" >&6; }
46073
46074 # GSCMYKDevice
46075 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
46076$as_echo_n "checking for gs CMYK device... " >&6; }
46077 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46078 :
46079 else
46080 GSCMYKDevice=bmpsep8
46081 fi
46082 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
46083$as_echo "$GSCMYKDevice" >&6; }
46084
46085 # GSMonoDevice
46086 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
46087$as_echo_n "checking for gs mono device... " >&6; }
46088 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46089 :
46090 else
46091 GSMonoDevice=$GSColorDevice
46092 fi
46093 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
46094$as_echo "$GSMonoDevice" >&6; }
46095
46096 # GSPDFDevice
46097 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
46098$as_echo_n "checking for gs PDF writing device... " >&6; }
46099 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46100 :
46101 else
46102 GSPDFDevice=nodevice
46103 fi
46104 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
46105$as_echo "$GSPDFDevice" >&6; }
46106
46107 # GSPSDevice
46108 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
46109$as_echo_n "checking for gs PS writing device... " >&6; }
46110 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46111 :
46112 else
46113 GSPSDevice=nodevice
46114 fi
46115 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
46116$as_echo "$GSPSDevice" >&6; }
46117
46118 # GSEPSDevice
46119 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
46120$as_echo_n "checking for gs EPS writing device... " >&6; }
46121 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46122 :
46123 else
46124 GSEPSDevice=nodevice
46125 fi
46126 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
46127$as_echo "$GSEPSDevice" >&6; }
46128fi
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138
46139#
46140# PerlMagick-related configuration
46141#
46142
46143# Look for PERL if PerlMagick requested
46144# If name/path of desired PERL interpreter is specified, look for that one first
46145have_perl='no'
46146if test "$with_perl" != 'no'; then
46147 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46148$as_echo "-------------------------------------------------------------" >&6; }
46149 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
46150$as_echo_n "checking for Perl... " >&6; }
46151 { $as_echo "$as_me:$LINENO: result: " >&5
46152$as_echo "" >&6; }
46153 if test "$with_perl" != 'yes'; then
46154 { $as_echo "$as_me:$LINENO: checking for perl" >&5
46155$as_echo_n "checking for perl... " >&6; }
46156if test "${ac_cv_path_PERL+set}" = set; then
46157 $as_echo_n "(cached) " >&6
46158else
46159 ac_cv_path_PERL="$with_perl"
46160fi
46161{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
46162$as_echo "$ac_cv_path_PERL" >&6; };
46163 PERL=$ac_cv_path_PERL
46164 have_perl="$ac_cv_path_PERL"
46165 else
46166 for ac_prog in perl perl5
46167do
46168 # Extract the first word of "$ac_prog", so it can be a program name with args.
46169set dummy $ac_prog; ac_word=$2
46170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46171$as_echo_n "checking for $ac_word... " >&6; }
46172if test "${ac_cv_path_PERL+set}" = set; then
46173 $as_echo_n "(cached) " >&6
46174else
46175 case $PERL in
46176 [\\/]* | ?:[\\/]*)
46177 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
46178 ;;
46179 *)
46180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46181for as_dir in $PATH
46182do
46183 IFS=$as_save_IFS
46184 test -z "$as_dir" && as_dir=.
46185 for ac_exec_ext in '' $ac_executable_extensions; do
46186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46187 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
46188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46189 break 2
46190 fi
46191done
46192done
46193IFS=$as_save_IFS
46194
46195 ;;
46196esac
46197fi
46198PERL=$ac_cv_path_PERL
46199if test -n "$PERL"; then
46200 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46201$as_echo "$PERL" >&6; }
46202else
46203 { $as_echo "$as_me:$LINENO: result: no" >&5
46204$as_echo "no" >&6; }
46205fi
46206
46207
46208 test -n "$PERL" && break
46209done
46210 if test "$ac_cv_path_PERL"; then
46211 have_perl="$ac_cv_path_PERL"
46212 fi
46213 fi
46214fi
46215
46216with_perl_static='no'
46217with_perl_dynamic='no'
46218if test "$have_perl" != 'no'; then
46219 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
46220 with_perl_static='yes'
46221 fi
46222 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
46223 with_perl_dynamic='yes'
46224 fi
46225 # Is PERL's MakeMaker new enough to support DESTDIR?
46226 # Make sure we have perl
46227if test -z "$PERL"; then
46228# Extract the first word of "perl", so it can be a program name with args.
46229set dummy perl; ac_word=$2
46230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46231$as_echo_n "checking for $ac_word... " >&6; }
46232if test "${ac_cv_prog_PERL+set}" = set; then
46233 $as_echo_n "(cached) " >&6
46234else
46235 if test -n "$PERL"; then
46236 ac_cv_prog_PERL="$PERL" # Let the user override the test.
46237else
46238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46239for as_dir in $PATH
46240do
46241 IFS=$as_save_IFS
46242 test -z "$as_dir" && as_dir=.
46243 for ac_exec_ext in '' $ac_executable_extensions; do
46244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46245 ac_cv_prog_PERL="perl"
46246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46247 break 2
46248 fi
46249done
46250done
46251IFS=$as_save_IFS
46252
46253fi
46254fi
46255PERL=$ac_cv_prog_PERL
46256if test -n "$PERL"; then
46257 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46258$as_echo "$PERL" >&6; }
46259else
46260 { $as_echo "$as_me:$LINENO: result: no" >&5
46261$as_echo "no" >&6; }
46262fi
46263
46264
46265fi
46266
46267# Check if version of Perl is sufficient
46268ac_perl_version="5.8.1"
46269
46270if test "x$PERL" != "x"; then
46271 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
46272$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
46273 # NB: It would be nice to log the error if there is one, but we cannot rely
46274 # on autoconf internals
46275 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
46276 if test $? -ne 0; then
46277 { $as_echo "$as_me:$LINENO: result: no" >&5
46278$as_echo "no" >&6; };
46279 PERL_SUPPORTS_DESTDIR='no'
46280 else
46281 { $as_echo "$as_me:$LINENO: result: ok" >&5
46282$as_echo "ok" >&6; };
46283 PERL_SUPPORTS_DESTDIR='yes'
46284 fi
46285else
46286 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
46287$as_echo "$as_me: WARNING: could not find perl" >&2;}
46288fi
46289
46290fi
46291 if test "$have_perl" != 'no'; then
46292 WITH_PERL_TRUE=
46293 WITH_PERL_FALSE='#'
46294else
46295 WITH_PERL_TRUE='#'
46296 WITH_PERL_FALSE=
46297fi
46298
46299 if test $with_perl_static = 'yes'; then
46300 WITH_PERL_STATIC_TRUE=
46301 WITH_PERL_STATIC_FALSE='#'
46302else
46303 WITH_PERL_STATIC_TRUE='#'
46304 WITH_PERL_STATIC_FALSE=
46305fi
46306
46307 if test $with_perl_dynamic = 'yes'; then
46308 WITH_PERL_DYNAMIC_TRUE=
46309 WITH_PERL_DYNAMIC_FALSE='#'
46310else
46311 WITH_PERL_DYNAMIC_TRUE='#'
46312 WITH_PERL_DYNAMIC_FALSE=
46313fi
46314
46315
46316
46317# Determine path to pick up MagickCore library from for use with building PerlMagick
46318MAGICKCORE_PATH="${LIB_DIR}"
46319if test $with_perl_static = 'yes'; then
46320 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
46321 libtool_objdir=$objdir
46322
46323 # Linker search path to library, followed by -lMagickCore
46324 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
46325fi
46326
46327
46328# Create a simple string containing format names for all delegate libraries
46329DELEGATES=''
46330if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
46331if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
46332if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
46333if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
46334if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
46335if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
46336if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
46337if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
46338if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
46339if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
46340if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
46341if test "$have_jpeg" = 'yes'; then
46342 DELEGATES="$DELEGATES jpeg";
46343 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
46344fi
46345if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
46346if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
46347if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
46348if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
46349if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
46350if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
46351if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
46352if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
46353if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
46354if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
46355if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
46356if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
46357
46358
46359
46360#
46361# Handle special compiler flags
46362#
46363
46364# Add '-p' if prof source profiling support enabled
46365if test "$enable_prof" = 'yes'; then
46366 CFLAGS="-p $CFLAGS"
46367 CXXFLAGS="-p $CXXFLAGS"
46368 LDFLAGS="-p $LDFLAGS"
46369fi
46370
46371# Add '-pg' if gprof source profiling support enabled
46372if test "$enable_gprof" = 'yes'; then
46373 CFLAGS="-pg $CFLAGS"
46374 CXXFLAGS="-pg $CXXFLAGS"
46375 LDFLAGS="-pg $LDFLAGS"
46376fi
46377
46378# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
46379# This is a gcc-specific feature
46380if test "$enable_gcov" = 'yes'; then
46381
46382{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
46383$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
46384if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
46385 $as_echo_n "(cached) " >&6
46386else
46387 ac_check_lib_save_LIBS=$LIBS
46388LIBS="-lgcov $LIBS"
46389cat >conftest.$ac_ext <<_ACEOF
46390/* confdefs.h. */
46391_ACEOF
46392cat confdefs.h >>conftest.$ac_ext
46393cat >>conftest.$ac_ext <<_ACEOF
46394/* end confdefs.h. */
46395
46396/* Override any GCC internal prototype to avoid an error.
46397 Use char because int might match the return type of a GCC
46398 builtin and then its argument prototype would still apply. */
46399#ifdef __cplusplus
46400extern "C"
46401#endif
46402char _gcov_init ();
46403int
46404main ()
46405{
46406return _gcov_init ();
46407 ;
46408 return 0;
46409}
46410_ACEOF
46411rm -f conftest.$ac_objext conftest$ac_exeext
46412if { (ac_try="$ac_link"
46413case "(($ac_try" in
46414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46415 *) ac_try_echo=$ac_try;;
46416esac
46417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46418$as_echo "$ac_try_echo") >&5
46419 (eval "$ac_link") 2>conftest.er1
46420 ac_status=$?
46421 grep -v '^ *+' conftest.er1 >conftest.err
46422 rm -f conftest.er1
46423 cat conftest.err >&5
46424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46425 (exit $ac_status); } && {
46426 test -z "$ac_c_werror_flag" ||
46427 test ! -s conftest.err
46428 } && test -s conftest$ac_exeext && {
46429 test "$cross_compiling" = yes ||
46430 $as_test_x conftest$ac_exeext
46431 }; then
46432 ac_cv_lib_gcov__gcov_init=yes
46433else
46434 $as_echo "$as_me: failed program was:" >&5
46435sed 's/^/| /' conftest.$ac_ext >&5
46436
46437 ac_cv_lib_gcov__gcov_init=no
46438fi
46439
46440rm -rf conftest.dSYM
46441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46442 conftest$ac_exeext conftest.$ac_ext
46443LIBS=$ac_check_lib_save_LIBS
46444fi
46445{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
46446$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
46447if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
46448 cat >>confdefs.h <<_ACEOF
46449#define HAVE_LIBGCOV 1
46450_ACEOF
46451
46452 LIBS="-lgcov $LIBS"
46453
46454fi
46455
46456
46457{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
46458$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
46459if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
46460 $as_echo_n "(cached) " >&6
46461else
46462 ac_check_lib_save_LIBS=$LIBS
46463LIBS="-lgcov $LIBS"
46464cat >conftest.$ac_ext <<_ACEOF
46465/* confdefs.h. */
46466_ACEOF
46467cat confdefs.h >>conftest.$ac_ext
46468cat >>conftest.$ac_ext <<_ACEOF
46469/* end confdefs.h. */
46470
46471/* Override any GCC internal prototype to avoid an error.
46472 Use char because int might match the return type of a GCC
46473 builtin and then its argument prototype would still apply. */
46474#ifdef __cplusplus
46475extern "C"
46476#endif
46477char __gcov_init ();
46478int
46479main ()
46480{
46481return __gcov_init ();
46482 ;
46483 return 0;
46484}
46485_ACEOF
46486rm -f conftest.$ac_objext conftest$ac_exeext
46487if { (ac_try="$ac_link"
46488case "(($ac_try" in
46489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46490 *) ac_try_echo=$ac_try;;
46491esac
46492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46493$as_echo "$ac_try_echo") >&5
46494 (eval "$ac_link") 2>conftest.er1
46495 ac_status=$?
46496 grep -v '^ *+' conftest.er1 >conftest.err
46497 rm -f conftest.er1
46498 cat conftest.err >&5
46499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46500 (exit $ac_status); } && {
46501 test -z "$ac_c_werror_flag" ||
46502 test ! -s conftest.err
46503 } && test -s conftest$ac_exeext && {
46504 test "$cross_compiling" = yes ||
46505 $as_test_x conftest$ac_exeext
46506 }; then
46507 ac_cv_lib_gcov___gcov_init=yes
46508else
46509 $as_echo "$as_me: failed program was:" >&5
46510sed 's/^/| /' conftest.$ac_ext >&5
46511
46512 ac_cv_lib_gcov___gcov_init=no
46513fi
46514
46515rm -rf conftest.dSYM
46516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46517 conftest$ac_exeext conftest.$ac_ext
46518LIBS=$ac_check_lib_save_LIBS
46519fi
46520{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
46521$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
46522if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
46523 cat >>confdefs.h <<_ACEOF
46524#define HAVE_LIBGCOV 1
46525_ACEOF
46526
46527 LIBS="-lgcov $LIBS"
46528
46529fi
46530
46531 case "$target_os" in
46532 darwin*)
46533 OSX_GCOV_LDFLAG="-Wl,-single_module"
46534 ;;
46535 *)
46536 OSX_GCOV_LDFLAG=""
46537 ;;
46538 esac
46539
46540 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
46541 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
46542 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
46543fi
46544
46545#
46546# Build library dependency list for libMagickCore
46547#
46548
46549MAGICK_LIBLTDL='' # Libltdl for build
46550MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
46551MAGICK_LTDLDEPS='' # extra libltdl dependencies
46552if test "$with_ltdl" != 'no'
46553then
46554 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
46555 MAGICK_API_LIBLTDL='-lltdl'
46556 fi
46557 MAGICK_LIBLTDL=${LIBLTDL}
46558 MAGICK_LTDLDEPS=${LTDLDEPS}
46559fi
46560
46561
46562
46563if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000046564 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 $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000046565else
cristy2e8b51d2009-10-17 18:26:15 +000046566 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 $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000046567fi
46568
46569
46570#
46571# Remove extraneous spaces from output variables (asthetic)
46572#
46573X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
46574X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
46575X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
46576X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
46577
46578CC=`echo $CC | sed -e 's/ */ /g'`
46579CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
46580CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
46581CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
46582DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
46583DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
46584LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
46585TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46586MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
46587#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46588
46589# Pass only user-provided LIBS as "global" libraries
46590LIBS=$USER_LIBS
46591
46592#AC_SUBST(CPPFLAGS)
46593
46594#AC_SUBST(LDFLAGS)
46595#AC_SUBST(X_PRE_LIBS)
46596#AC_SUBST(X_LIBS)
46597#AC_SUBST(X_EXTRA_LIBS)
46598
46599MAGICK_CFLAGS=$CFLAGS
46600MAGICK_CXXFLAGS="$CXXFLAGS"
46601MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
46602MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
46603MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
46604MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
46605
46606
46607
46608
46609
46610
46611
46612
46613# Set configured scripts to executable.
46614ac_config_commands="$ac_config_commands default"
46615
46616ac_config_commands="$ac_config_commands MagickCore-config.in"
46617
46618ac_config_commands="$ac_config_commands Magick-config.in"
46619
46620ac_config_commands="$ac_config_commands MagickWand-config.in"
46621
46622ac_config_commands="$ac_config_commands Wand-config.in"
46623
46624ac_config_commands="$ac_config_commands Magick++-config.in"
46625
46626ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
46627
46628
46629{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46630$as_echo "-------------------------------------------------------------" >&6; }
46631{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
46632$as_echo "Update ImageMagick configuration" >&6; }
46633cat >confcache <<\_ACEOF
46634# This file is a shell script that caches the results of configure
46635# tests run on this system so they can be shared between configure
46636# scripts and configure runs, see configure's option --config-cache.
46637# It is not useful on other systems. If it contains results you don't
46638# want to keep, you may remove or edit it.
46639#
46640# config.status only pays attention to the cache file if you give it
46641# the --recheck option to rerun configure.
46642#
46643# `ac_cv_env_foo' variables (set or unset) will be overridden when
46644# loading this file, other *unset* `ac_cv_foo' will be assigned the
46645# following values.
46646
46647_ACEOF
46648
46649# The following way of writing the cache mishandles newlines in values,
46650# but we know of no workaround that is simple, portable, and efficient.
46651# So, we kill variables containing newlines.
46652# Ultrix sh set writes to stderr and can't be redirected directly,
46653# and sets the high bit in the cache file unless we assign to the vars.
46654(
46655 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46656 eval ac_val=\$$ac_var
46657 case $ac_val in #(
46658 *${as_nl}*)
46659 case $ac_var in #(
46660 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46661$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46662 esac
46663 case $ac_var in #(
46664 _ | IFS | as_nl) ;; #(
46665 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46666 *) $as_unset $ac_var ;;
46667 esac ;;
46668 esac
46669 done
46670
46671 (set) 2>&1 |
46672 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46673 *${as_nl}ac_space=\ *)
46674 # `set' does not quote correctly, so add quotes (double-quote
46675 # substitution turns \\\\ into \\, and sed turns \\ into \).
46676 sed -n \
46677 "s/'/'\\\\''/g;
46678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46679 ;; #(
46680 *)
46681 # `set' quotes correctly as required by POSIX, so do not add quotes.
46682 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46683 ;;
46684 esac |
46685 sort
46686) |
46687 sed '
46688 /^ac_cv_env_/b end
46689 t clear
46690 :clear
46691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46692 t end
46693 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46694 :end' >>confcache
46695if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46696 if test -w "$cache_file"; then
46697 test "x$cache_file" != "x/dev/null" &&
46698 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46699$as_echo "$as_me: updating cache $cache_file" >&6;}
46700 cat confcache >$cache_file
46701 else
46702 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46703$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46704 fi
46705fi
46706rm -f confcache
46707
46708test "x$prefix" = xNONE && prefix=$ac_default_prefix
46709# Let make expand exec_prefix.
46710test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46711
46712DEFS=-DHAVE_CONFIG_H
46713
46714ac_libobjs=
46715ac_ltlibobjs=
46716for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46717 # 1. Remove the extension, and $U if already installed.
46718 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46719 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46721 # will be set to the directory where LIBOBJS objects are built.
46722 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46723 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46724done
46725LIBOBJS=$ac_libobjs
46726
46727LTLIBOBJS=$ac_ltlibobjs
46728
46729
46730 if test -n "$EXEEXT"; then
46731 am__EXEEXT_TRUE=
46732 am__EXEEXT_FALSE='#'
46733else
46734 am__EXEEXT_TRUE='#'
46735 am__EXEEXT_FALSE=
46736fi
46737
46738if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46739 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46740Usually this means the macro was only invoked conditionally." >&5
46741$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
46742Usually this means the macro was only invoked conditionally." >&2;}
46743 { (exit 1); exit 1; }; }
46744fi
46745if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46746 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46747Usually this means the macro was only invoked conditionally." >&5
46748$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46749Usually this means the macro was only invoked conditionally." >&2;}
46750 { (exit 1); exit 1; }; }
46751fi
46752if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46753 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46754Usually this means the macro was only invoked conditionally." >&5
46755$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46756Usually this means the macro was only invoked conditionally." >&2;}
46757 { (exit 1); exit 1; }; }
46758fi
46759if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
46760 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46761Usually this means the macro was only invoked conditionally." >&5
46762$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46763Usually this means the macro was only invoked conditionally." >&2;}
46764 { (exit 1); exit 1; }; }
46765fi
46766if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
46767 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46768Usually this means the macro was only invoked conditionally." >&5
46769$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46770Usually this means the macro was only invoked conditionally." >&2;}
46771 { (exit 1); exit 1; }; }
46772fi
46773if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
46774 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
46775Usually this means the macro was only invoked conditionally." >&5
46776$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
46777Usually this means the macro was only invoked conditionally." >&2;}
46778 { (exit 1); exit 1; }; }
46779fi
46780if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
46781 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
46782Usually this means the macro was only invoked conditionally." >&5
46783$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
46784Usually this means the macro was only invoked conditionally." >&2;}
46785 { (exit 1); exit 1; }; }
46786fi
46787if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46788 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46789Usually this means the macro was only invoked conditionally." >&5
46790$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46791Usually this means the macro was only invoked conditionally." >&2;}
46792 { (exit 1); exit 1; }; }
46793fi
46794if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
46795 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
46796Usually this means the macro was only invoked conditionally." >&5
46797$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
46798Usually this means the macro was only invoked conditionally." >&2;}
46799 { (exit 1); exit 1; }; }
46800fi
46801if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
46802 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46803Usually this means the macro was only invoked conditionally." >&5
46804$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46805Usually this means the macro was only invoked conditionally." >&2;}
46806 { (exit 1); exit 1; }; }
46807fi
46808LT_CONFIG_H=config/config.h
46809
46810 _ltdl_libobjs=
46811 _ltdl_ltlibobjs=
46812 if test -n "$_LT_LIBOBJS"; then
46813 # Remove the extension.
46814 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46815 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46816 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46817 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46818 done
46819 fi
46820 ltdl_LIBOBJS=$_ltdl_libobjs
46821
46822 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46823
46824
46825if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46826 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46827Usually this means the macro was only invoked conditionally." >&5
46828$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46829Usually this means the macro was only invoked conditionally." >&2;}
46830 { (exit 1); exit 1; }; }
46831fi
46832if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46833 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46834Usually this means the macro was only invoked conditionally." >&5
46835$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46836Usually this means the macro was only invoked conditionally." >&2;}
46837 { (exit 1); exit 1; }; }
46838fi
46839if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46840 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46841Usually this means the macro was only invoked conditionally." >&5
46842$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46843Usually this means the macro was only invoked conditionally." >&2;}
46844 { (exit 1); exit 1; }; }
46845fi
46846
46847if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46848 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46849Usually this means the macro was only invoked conditionally." >&5
46850$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46851Usually this means the macro was only invoked conditionally." >&2;}
46852 { (exit 1); exit 1; }; }
46853fi
46854if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46855 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46856Usually this means the macro was only invoked conditionally." >&5
46857$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46858Usually this means the macro was only invoked conditionally." >&2;}
46859 { (exit 1); exit 1; }; }
46860fi
46861if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46862 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46863Usually this means the macro was only invoked conditionally." >&5
46864$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46865Usually this means the macro was only invoked conditionally." >&2;}
46866 { (exit 1); exit 1; }; }
46867fi
46868if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46869 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46870Usually this means the macro was only invoked conditionally." >&5
46871$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46872Usually this means the macro was only invoked conditionally." >&2;}
46873 { (exit 1); exit 1; }; }
46874fi
46875if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46876 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46877Usually this means the macro was only invoked conditionally." >&5
46878$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46879Usually this means the macro was only invoked conditionally." >&2;}
46880 { (exit 1); exit 1; }; }
46881fi
46882if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46883 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46884Usually this means the macro was only invoked conditionally." >&5
46885$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46886Usually this means the macro was only invoked conditionally." >&2;}
46887 { (exit 1); exit 1; }; }
46888fi
46889if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46890 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46891Usually this means the macro was only invoked conditionally." >&5
46892$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46893Usually this means the macro was only invoked conditionally." >&2;}
46894 { (exit 1); exit 1; }; }
46895fi
46896if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46897 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46898Usually this means the macro was only invoked conditionally." >&5
46899$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46900Usually this means the macro was only invoked conditionally." >&2;}
46901 { (exit 1); exit 1; }; }
46902fi
46903if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46904 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46905Usually this means the macro was only invoked conditionally." >&5
46906$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46907Usually this means the macro was only invoked conditionally." >&2;}
46908 { (exit 1); exit 1; }; }
46909fi
46910if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46911 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46912Usually this means the macro was only invoked conditionally." >&5
46913$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46914Usually this means the macro was only invoked conditionally." >&2;}
46915 { (exit 1); exit 1; }; }
46916fi
46917if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46918 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46919Usually this means the macro was only invoked conditionally." >&5
46920$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46921Usually this means the macro was only invoked conditionally." >&2;}
46922 { (exit 1); exit 1; }; }
46923fi
46924if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46925 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46926Usually this means the macro was only invoked conditionally." >&5
46927$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46928Usually this means the macro was only invoked conditionally." >&2;}
46929 { (exit 1); exit 1; }; }
46930fi
46931if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46932 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46933Usually this means the macro was only invoked conditionally." >&5
46934$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46935Usually this means the macro was only invoked conditionally." >&2;}
46936 { (exit 1); exit 1; }; }
46937fi
46938if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46939 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46940Usually this means the macro was only invoked conditionally." >&5
46941$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46942Usually this means the macro was only invoked conditionally." >&2;}
46943 { (exit 1); exit 1; }; }
46944fi
46945if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46946 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46947Usually this means the macro was only invoked conditionally." >&5
46948$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46949Usually this means the macro was only invoked conditionally." >&2;}
46950 { (exit 1); exit 1; }; }
46951fi
46952if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46953 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46954Usually this means the macro was only invoked conditionally." >&5
46955$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46956Usually this means the macro was only invoked conditionally." >&2;}
46957 { (exit 1); exit 1; }; }
46958fi
46959if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46960 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46961Usually this means the macro was only invoked conditionally." >&5
46962$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46963Usually this means the macro was only invoked conditionally." >&2;}
46964 { (exit 1); exit 1; }; }
46965fi
46966if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46967 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46968Usually this means the macro was only invoked conditionally." >&5
46969$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46970Usually this means the macro was only invoked conditionally." >&2;}
46971 { (exit 1); exit 1; }; }
46972fi
46973if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
46974 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
46975Usually this means the macro was only invoked conditionally." >&5
46976$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
46977Usually this means the macro was only invoked conditionally." >&2;}
46978 { (exit 1); exit 1; }; }
46979fi
46980if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
46981 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
46982Usually this means the macro was only invoked conditionally." >&5
46983$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
46984Usually this means the macro was only invoked conditionally." >&2;}
46985 { (exit 1); exit 1; }; }
46986fi
46987if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
46988 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46989Usually this means the macro was only invoked conditionally." >&5
46990$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46991Usually this means the macro was only invoked conditionally." >&2;}
46992 { (exit 1); exit 1; }; }
46993fi
46994if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
46995 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
46996Usually this means the macro was only invoked conditionally." >&5
46997$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
46998Usually this means the macro was only invoked conditionally." >&2;}
46999 { (exit 1); exit 1; }; }
47000fi
47001if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
47002 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
47003Usually this means the macro was only invoked conditionally." >&5
47004$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
47005Usually this means the macro was only invoked conditionally." >&2;}
47006 { (exit 1); exit 1; }; }
47007fi
47008if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
47009 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
47010Usually this means the macro was only invoked conditionally." >&5
47011$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
47012Usually this means the macro was only invoked conditionally." >&2;}
47013 { (exit 1); exit 1; }; }
47014fi
47015if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
47016 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
47017Usually this means the macro was only invoked conditionally." >&5
47018$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
47019Usually this means the macro was only invoked conditionally." >&2;}
47020 { (exit 1); exit 1; }; }
47021fi
47022if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
47023 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
47024Usually this means the macro was only invoked conditionally." >&5
47025$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
47026Usually this means the macro was only invoked conditionally." >&2;}
47027 { (exit 1); exit 1; }; }
47028fi
47029if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
47030 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
47031Usually this means the macro was only invoked conditionally." >&5
47032$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
47033Usually this means the macro was only invoked conditionally." >&2;}
47034 { (exit 1); exit 1; }; }
47035fi
47036if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
47037 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
47038Usually this means the macro was only invoked conditionally." >&5
47039$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
47040Usually this means the macro was only invoked conditionally." >&2;}
47041 { (exit 1); exit 1; }; }
47042fi
47043if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
47044 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47045Usually this means the macro was only invoked conditionally." >&5
47046$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47047Usually this means the macro was only invoked conditionally." >&2;}
47048 { (exit 1); exit 1; }; }
47049fi
47050if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
47051 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
47052Usually this means the macro was only invoked conditionally." >&5
47053$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
47054Usually this means the macro was only invoked conditionally." >&2;}
47055 { (exit 1); exit 1; }; }
47056fi
47057if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
47058 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
47059Usually this means the macro was only invoked conditionally." >&5
47060$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
47061Usually this means the macro was only invoked conditionally." >&2;}
47062 { (exit 1); exit 1; }; }
47063fi
47064if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
47065 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
47066Usually this means the macro was only invoked conditionally." >&5
47067$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
47068Usually this means the macro was only invoked conditionally." >&2;}
47069 { (exit 1); exit 1; }; }
47070fi
47071if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
47072 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47073Usually this means the macro was only invoked conditionally." >&5
47074$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47075Usually this means the macro was only invoked conditionally." >&2;}
47076 { (exit 1); exit 1; }; }
47077fi
47078
47079: ${CONFIG_STATUS=./config.status}
47080ac_write_fail=0
47081ac_clean_files_save=$ac_clean_files
47082ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47083{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47084$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47085cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47086#! $SHELL
47087# Generated by $as_me.
47088# Run this file to recreate the current configuration.
47089# Compiler output produced by configure, useful for debugging
47090# configure, is in config.log if it exists.
47091
47092debug=false
47093ac_cs_recheck=false
47094ac_cs_silent=false
47095SHELL=\${CONFIG_SHELL-$SHELL}
47096_ACEOF
47097
47098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47099## --------------------- ##
47100## M4sh Initialization. ##
47101## --------------------- ##
47102
47103# Be more Bourne compatible
47104DUALCASE=1; export DUALCASE # for MKS sh
47105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47106 emulate sh
47107 NULLCMD=:
47108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47109 # is contrary to our usage. Disable this feature.
47110 alias -g '${1+"$@"}'='"$@"'
47111 setopt NO_GLOB_SUBST
47112else
47113 case `(set -o) 2>/dev/null` in
47114 *posix*) set -o posix ;;
47115esac
47116
47117fi
47118
47119
47120
47121
47122# PATH needs CR
47123# Avoid depending upon Character Ranges.
47124as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47125as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47126as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47127as_cr_digits='0123456789'
47128as_cr_alnum=$as_cr_Letters$as_cr_digits
47129
47130as_nl='
47131'
47132export as_nl
47133# Printing a long string crashes Solaris 7 /usr/bin/printf.
47134as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47137if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47138 as_echo='printf %s\n'
47139 as_echo_n='printf %s'
47140else
47141 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47142 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47143 as_echo_n='/usr/ucb/echo -n'
47144 else
47145 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47146 as_echo_n_body='eval
47147 arg=$1;
47148 case $arg in
47149 *"$as_nl"*)
47150 expr "X$arg" : "X\\(.*\\)$as_nl";
47151 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47152 esac;
47153 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47154 '
47155 export as_echo_n_body
47156 as_echo_n='sh -c $as_echo_n_body as_echo'
47157 fi
47158 export as_echo_body
47159 as_echo='sh -c $as_echo_body as_echo'
47160fi
47161
47162# The user is always right.
47163if test "${PATH_SEPARATOR+set}" != set; then
47164 PATH_SEPARATOR=:
47165 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47166 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47167 PATH_SEPARATOR=';'
47168 }
47169fi
47170
47171# Support unset when possible.
47172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47173 as_unset=unset
47174else
47175 as_unset=false
47176fi
47177
47178
47179# IFS
47180# We need space, tab and new line, in precisely that order. Quoting is
47181# there to prevent editors from complaining about space-tab.
47182# (If _AS_PATH_WALK were called with IFS unset, it would disable word
47183# splitting by setting IFS to empty value.)
47184IFS=" "" $as_nl"
47185
47186# Find who we are. Look in the path if we contain no directory separator.
47187case $0 in
47188 *[\\/]* ) as_myself=$0 ;;
47189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47190for as_dir in $PATH
47191do
47192 IFS=$as_save_IFS
47193 test -z "$as_dir" && as_dir=.
47194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47195done
47196IFS=$as_save_IFS
47197
47198 ;;
47199esac
47200# We did not find ourselves, most probably we were run as `sh COMMAND'
47201# in which case we are not to be found in the path.
47202if test "x$as_myself" = x; then
47203 as_myself=$0
47204fi
47205if test ! -f "$as_myself"; then
47206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47207 { (exit 1); exit 1; }
47208fi
47209
47210# Work around bugs in pre-3.0 UWIN ksh.
47211for as_var in ENV MAIL MAILPATH
47212do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47213done
47214PS1='$ '
47215PS2='> '
47216PS4='+ '
47217
47218# NLS nuisances.
47219LC_ALL=C
47220export LC_ALL
47221LANGUAGE=C
47222export LANGUAGE
47223
47224# Required to use basename.
47225if expr a : '\(a\)' >/dev/null 2>&1 &&
47226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47227 as_expr=expr
47228else
47229 as_expr=false
47230fi
47231
47232if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47233 as_basename=basename
47234else
47235 as_basename=false
47236fi
47237
47238
47239# Name of the executable.
47240as_me=`$as_basename -- "$0" ||
47241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47242 X"$0" : 'X\(//\)$' \| \
47243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47244$as_echo X/"$0" |
47245 sed '/^.*\/\([^/][^/]*\)\/*$/{
47246 s//\1/
47247 q
47248 }
47249 /^X\/\(\/\/\)$/{
47250 s//\1/
47251 q
47252 }
47253 /^X\/\(\/\).*/{
47254 s//\1/
47255 q
47256 }
47257 s/.*/./; q'`
47258
47259# CDPATH.
47260$as_unset CDPATH
47261
47262
47263
47264 as_lineno_1=$LINENO
47265 as_lineno_2=$LINENO
47266 test "x$as_lineno_1" != "x$as_lineno_2" &&
47267 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47268
47269 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47270 # uniformly replaced by the line number. The first 'sed' inserts a
47271 # line-number line after each line using $LINENO; the second 'sed'
47272 # does the real work. The second script uses 'N' to pair each
47273 # line-number line with the line containing $LINENO, and appends
47274 # trailing '-' during substitution so that $LINENO is not a special
47275 # case at line end.
47276 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47277 # scripts with optimization help from Paolo Bonzini. Blame Lee
47278 # E. McMahon (1931-1989) for sed's syntax. :-)
47279 sed -n '
47280 p
47281 /[$]LINENO/=
47282 ' <$as_myself |
47283 sed '
47284 s/[$]LINENO.*/&-/
47285 t lineno
47286 b
47287 :lineno
47288 N
47289 :loop
47290 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47291 t loop
47292 s/-\n.*//
47293 ' >$as_me.lineno &&
47294 chmod +x "$as_me.lineno" ||
47295 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47296 { (exit 1); exit 1; }; }
47297
47298 # Don't try to exec as it changes $[0], causing all sort of problems
47299 # (the dirname of $[0] is not the place where we might find the
47300 # original and so on. Autoconf is especially sensitive to this).
47301 . "./$as_me.lineno"
47302 # Exit status is that of the last command.
47303 exit
47304}
47305
47306
47307if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47308 as_dirname=dirname
47309else
47310 as_dirname=false
47311fi
47312
47313ECHO_C= ECHO_N= ECHO_T=
47314case `echo -n x` in
47315-n*)
47316 case `echo 'x\c'` in
47317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47318 *) ECHO_C='\c';;
47319 esac;;
47320*)
47321 ECHO_N='-n';;
47322esac
47323if expr a : '\(a\)' >/dev/null 2>&1 &&
47324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47325 as_expr=expr
47326else
47327 as_expr=false
47328fi
47329
47330rm -f conf$$ conf$$.exe conf$$.file
47331if test -d conf$$.dir; then
47332 rm -f conf$$.dir/conf$$.file
47333else
47334 rm -f conf$$.dir
47335 mkdir conf$$.dir 2>/dev/null
47336fi
47337if (echo >conf$$.file) 2>/dev/null; then
47338 if ln -s conf$$.file conf$$ 2>/dev/null; then
47339 as_ln_s='ln -s'
47340 # ... but there are two gotchas:
47341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47343 # In both cases, we have to default to `cp -p'.
47344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47345 as_ln_s='cp -p'
47346 elif ln conf$$.file conf$$ 2>/dev/null; then
47347 as_ln_s=ln
47348 else
47349 as_ln_s='cp -p'
47350 fi
47351else
47352 as_ln_s='cp -p'
47353fi
47354rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47355rmdir conf$$.dir 2>/dev/null
47356
47357if mkdir -p . 2>/dev/null; then
47358 as_mkdir_p=:
47359else
47360 test -d ./-p && rmdir ./-p
47361 as_mkdir_p=false
47362fi
47363
47364if test -x / >/dev/null 2>&1; then
47365 as_test_x='test -x'
47366else
47367 if ls -dL / >/dev/null 2>&1; then
47368 as_ls_L_option=L
47369 else
47370 as_ls_L_option=
47371 fi
47372 as_test_x='
47373 eval sh -c '\''
47374 if test -d "$1"; then
47375 test -d "$1/.";
47376 else
47377 case $1 in
47378 -*)set "./$1";;
47379 esac;
47380 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47381 ???[sx]*):;;*)false;;esac;fi
47382 '\'' sh
47383 '
47384fi
47385as_executable_p=$as_test_x
47386
47387# Sed expression to map a string onto a valid CPP name.
47388as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47389
47390# Sed expression to map a string onto a valid variable name.
47391as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47392
47393
47394exec 6>&1
47395
47396# Save the log message, to keep $[0] and so on meaningful, and to
47397# report actual input values of CONFIG_FILES etc. instead of their
47398# values after options handling.
47399ac_log="
cristyd934d102009-10-10 12:55:13 +000047400This file was extended by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +000047401generated by GNU Autoconf 2.63. Invocation command line was
47402
47403 CONFIG_FILES = $CONFIG_FILES
47404 CONFIG_HEADERS = $CONFIG_HEADERS
47405 CONFIG_LINKS = $CONFIG_LINKS
47406 CONFIG_COMMANDS = $CONFIG_COMMANDS
47407 $ $0 $@
47408
47409on `(hostname || uname -n) 2>/dev/null | sed 1q`
47410"
47411
47412_ACEOF
47413
47414case $ac_config_files in *"
47415"*) set x $ac_config_files; shift; ac_config_files=$*;;
47416esac
47417
47418case $ac_config_headers in *"
47419"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47420esac
47421
47422
47423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47424# Files that config.status was made for.
47425config_files="$ac_config_files"
47426config_headers="$ac_config_headers"
47427config_commands="$ac_config_commands"
47428
47429_ACEOF
47430
47431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47432ac_cs_usage="\
47433\`$as_me' instantiates files from templates according to the
47434current configuration.
47435
47436Usage: $0 [OPTION]... [FILE]...
47437
47438 -h, --help print this help, then exit
47439 -V, --version print version number and configuration settings, then exit
47440 -q, --quiet, --silent
47441 do not print progress messages
47442 -d, --debug don't remove temporary files
47443 --recheck update $as_me by reconfiguring in the same conditions
47444 --file=FILE[:TEMPLATE]
47445 instantiate the configuration file FILE
47446 --header=FILE[:TEMPLATE]
47447 instantiate the configuration header FILE
47448
47449Configuration files:
47450$config_files
47451
47452Configuration headers:
47453$config_headers
47454
47455Configuration commands:
47456$config_commands
47457
47458Report bugs to <bug-autoconf@gnu.org>."
47459
47460_ACEOF
47461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47462ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000047463ImageMagick config.status 6.5.7
cristy3ed852e2009-09-05 21:47:34 +000047464configured by $0, generated by GNU Autoconf 2.63,
47465 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47466
47467Copyright (C) 2008 Free Software Foundation, Inc.
47468This config.status script is free software; the Free Software Foundation
47469gives unlimited permission to copy, distribute and modify it."
47470
47471ac_pwd='$ac_pwd'
47472srcdir='$srcdir'
47473INSTALL='$INSTALL'
47474MKDIR_P='$MKDIR_P'
47475AWK='$AWK'
47476test -n "\$AWK" || AWK=awk
47477_ACEOF
47478
47479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47480# The default lists apply if the user does not specify any file.
47481ac_need_defaults=:
47482while test $# != 0
47483do
47484 case $1 in
47485 --*=*)
47486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47488 ac_shift=:
47489 ;;
47490 *)
47491 ac_option=$1
47492 ac_optarg=$2
47493 ac_shift=shift
47494 ;;
47495 esac
47496
47497 case $ac_option in
47498 # Handling of the options.
47499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47500 ac_cs_recheck=: ;;
47501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47502 $as_echo "$ac_cs_version"; exit ;;
47503 --debug | --debu | --deb | --de | --d | -d )
47504 debug=: ;;
47505 --file | --fil | --fi | --f )
47506 $ac_shift
47507 case $ac_optarg in
47508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47509 esac
47510 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
47511 ac_need_defaults=false;;
47512 --header | --heade | --head | --hea )
47513 $ac_shift
47514 case $ac_optarg in
47515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47516 esac
47517 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
47518 ac_need_defaults=false;;
47519 --he | --h)
47520 # Conflict between --help and --header
47521 { $as_echo "$as_me: error: ambiguous option: $1
47522Try \`$0 --help' for more information." >&2
47523 { (exit 1); exit 1; }; };;
47524 --help | --hel | -h )
47525 $as_echo "$ac_cs_usage"; exit ;;
47526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47528 ac_cs_silent=: ;;
47529
47530 # This is an error.
47531 -*) { $as_echo "$as_me: error: unrecognized option: $1
47532Try \`$0 --help' for more information." >&2
47533 { (exit 1); exit 1; }; } ;;
47534
47535 *) ac_config_targets="$ac_config_targets $1"
47536 ac_need_defaults=false ;;
47537
47538 esac
47539 shift
47540done
47541
47542ac_configure_extra_args=
47543
47544if $ac_cs_silent; then
47545 exec 6>/dev/null
47546 ac_configure_extra_args="$ac_configure_extra_args --silent"
47547fi
47548
47549_ACEOF
47550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47551if \$ac_cs_recheck; then
47552 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47553 shift
47554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47555 CONFIG_SHELL='$SHELL'
47556 export CONFIG_SHELL
47557 exec "\$@"
47558fi
47559
47560_ACEOF
47561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47562exec 5>>config.log
47563{
47564 echo
47565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47566## Running $as_me. ##
47567_ASBOX
47568 $as_echo "$ac_log"
47569} >&5
47570
47571_ACEOF
47572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47573#
47574# INIT-COMMANDS
47575#
47576PACKAGE="$PACKAGE"
47577AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47578
47579
47580# The HP-UX ksh and POSIX shell print the target directory to stdout
47581# if CDPATH is set.
47582(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47583
47584sed_quote_subst='$sed_quote_subst'
47585double_quote_subst='$double_quote_subst'
47586delay_variable_subst='$delay_variable_subst'
47587SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
47588Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
47589GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
47590EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
47591FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
47592LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
47593macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
47594macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
47595AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
47596DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47597OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
47598enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
47599enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
47600pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
47601enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
47602host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
47603host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
47604host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
47605build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
47606build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
47607build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
47608NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
47609LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
47610max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
47611ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
47612exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
47613lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
47614lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
47615lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
47616reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
47617reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47618deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
47619file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
47620AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
47621AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47622STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
47623RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
47624old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47625old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47626old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47627CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
47628CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47629compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
47630GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
47631lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
47632lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
47633lt_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"`'
47634lt_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"`'
47635objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
47636SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
47637ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
47638MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
47639lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
47640lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
47641lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
47642lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
47643lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
47644need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
47645DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
47646NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
47647LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
47648OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47649OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
47650libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
47651shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47652extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47653archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
47654enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
47655export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47656whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47657compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
47658old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47659old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47660archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47661archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47662module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47663module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47664with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
47665allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47666no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47667hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47668hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
47669hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
47670hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
47671hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
47672hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
47673hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47674hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
47675inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
47676link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
47677fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
47678always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
47679export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47680exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47681include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47682prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47683file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
47684variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
47685need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
47686need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
47687version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
47688runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47689shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47690shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
47691libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47692library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
47693soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47694postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47695postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47696finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47697finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
47698hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
47699sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47700sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47701hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
47702enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
47703enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
47704enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
47705old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
47706striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
47707compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
47708predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47709postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47710predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
47711postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
47712compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
47713LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47714old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47715compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47716GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47717lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47718lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47719lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47720lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47721lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47722archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47723enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47724export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47725whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47726compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47727old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47728old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47729archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47730archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47731module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47732module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47733with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47734allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47735no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47736hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47737hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47738hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47739hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47740hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47741hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47742hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47743hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47744inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47745link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47746fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47747always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47748export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47749exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47750include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47751prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47752file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47753hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47754compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47755predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47756postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47757predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47758postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47759compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47760
47761LTCC='$LTCC'
47762LTCFLAGS='$LTCFLAGS'
47763compiler='$compiler_DEFAULT'
47764
47765# Quote evaled strings.
47766for var in SED \
47767GREP \
47768EGREP \
47769FGREP \
47770LD \
47771NM \
47772LN_S \
47773lt_SP2NL \
47774lt_NL2SP \
47775reload_flag \
47776deplibs_check_method \
47777file_magic_cmd \
47778AR \
47779AR_FLAGS \
47780STRIP \
47781RANLIB \
47782CC \
47783CFLAGS \
47784compiler \
47785lt_cv_sys_global_symbol_pipe \
47786lt_cv_sys_global_symbol_to_cdecl \
47787lt_cv_sys_global_symbol_to_c_name_address \
47788lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47789SHELL \
47790ECHO \
47791lt_prog_compiler_no_builtin_flag \
47792lt_prog_compiler_wl \
47793lt_prog_compiler_pic \
47794lt_prog_compiler_static \
47795lt_cv_prog_compiler_c_o \
47796need_locks \
47797DSYMUTIL \
47798NMEDIT \
47799LIPO \
47800OTOOL \
47801OTOOL64 \
47802shrext_cmds \
47803export_dynamic_flag_spec \
47804whole_archive_flag_spec \
47805compiler_needs_object \
47806with_gnu_ld \
47807allow_undefined_flag \
47808no_undefined_flag \
47809hardcode_libdir_flag_spec \
47810hardcode_libdir_flag_spec_ld \
47811hardcode_libdir_separator \
47812fix_srcfile_path \
47813exclude_expsyms \
47814include_expsyms \
47815file_list_spec \
47816variables_saved_for_relink \
47817libname_spec \
47818library_names_spec \
47819soname_spec \
47820finish_eval \
47821old_striplib \
47822striplib \
47823compiler_lib_search_dirs \
47824predep_objects \
47825postdep_objects \
47826predeps \
47827postdeps \
47828compiler_lib_search_path \
47829LD_CXX \
47830compiler_CXX \
47831lt_prog_compiler_no_builtin_flag_CXX \
47832lt_prog_compiler_wl_CXX \
47833lt_prog_compiler_pic_CXX \
47834lt_prog_compiler_static_CXX \
47835lt_cv_prog_compiler_c_o_CXX \
47836export_dynamic_flag_spec_CXX \
47837whole_archive_flag_spec_CXX \
47838compiler_needs_object_CXX \
47839with_gnu_ld_CXX \
47840allow_undefined_flag_CXX \
47841no_undefined_flag_CXX \
47842hardcode_libdir_flag_spec_CXX \
47843hardcode_libdir_flag_spec_ld_CXX \
47844hardcode_libdir_separator_CXX \
47845fix_srcfile_path_CXX \
47846exclude_expsyms_CXX \
47847include_expsyms_CXX \
47848file_list_spec_CXX \
47849compiler_lib_search_dirs_CXX \
47850predep_objects_CXX \
47851postdep_objects_CXX \
47852predeps_CXX \
47853postdeps_CXX \
47854compiler_lib_search_path_CXX; do
47855 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47856 *[\\\\\\\`\\"\\\$]*)
47857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47858 ;;
47859 *)
47860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47861 ;;
47862 esac
47863done
47864
47865# Double-quote double-evaled strings.
47866for var in reload_cmds \
47867old_postinstall_cmds \
47868old_postuninstall_cmds \
47869old_archive_cmds \
47870extract_expsyms_cmds \
47871old_archive_from_new_cmds \
47872old_archive_from_expsyms_cmds \
47873archive_cmds \
47874archive_expsym_cmds \
47875module_cmds \
47876module_expsym_cmds \
47877export_symbols_cmds \
47878prelink_cmds \
47879postinstall_cmds \
47880postuninstall_cmds \
47881finish_cmds \
47882sys_lib_search_path_spec \
47883sys_lib_dlsearch_path_spec \
47884old_archive_cmds_CXX \
47885old_archive_from_new_cmds_CXX \
47886old_archive_from_expsyms_cmds_CXX \
47887archive_cmds_CXX \
47888archive_expsym_cmds_CXX \
47889module_cmds_CXX \
47890module_expsym_cmds_CXX \
47891export_symbols_cmds_CXX \
47892prelink_cmds_CXX; do
47893 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47894 *[\\\\\\\`\\"\\\$]*)
47895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47896 ;;
47897 *)
47898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47899 ;;
47900 esac
47901done
47902
47903# Fix-up fallback echo if it was mangled by the above quoting rules.
47904case \$lt_ECHO in
47905*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47906 ;;
47907esac
47908
47909ac_aux_dir='$ac_aux_dir'
47910xsi_shell='$xsi_shell'
47911lt_shell_append='$lt_shell_append'
47912
47913# See if we are running on zsh, and set the options which allow our
47914# commands through without removal of \ escapes INIT.
47915if test -n "\${ZSH_VERSION+set}" ; then
47916 setopt NO_GLOB_SUBST
47917fi
47918
47919
47920 PACKAGE='$PACKAGE'
47921 VERSION='$VERSION'
47922 TIMESTAMP='$TIMESTAMP'
47923 RM='$RM'
47924 ofile='$ofile'
47925
47926
47927
47928
47929
47930
47931_ACEOF
47932
47933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47934
47935# Handling of arguments.
47936for ac_config_target in $ac_config_targets
47937do
47938 case $ac_config_target in
47939 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47940 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47941 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47942 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47943 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47944 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47945 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47946 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47947 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47948 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47949 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47950 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47951 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47952 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47953 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47954 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47955 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47956 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47957 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47958 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47959 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47960 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47961 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47962 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47963 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47964 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47965 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47966 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47967 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47968 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47969 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47970 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
47971 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
47972 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
47973 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
47974 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
47975 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
47976 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
47977 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
47978 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
47979 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47980 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47981 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47982 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
47983 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
47984 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
47985 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
47986 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
47987 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
47988
47989 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47990$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47991 { (exit 1); exit 1; }; };;
47992 esac
47993done
47994
47995
47996# If the user did not use the arguments to specify the items to instantiate,
47997# then the envvar interface is used. Set only those that are not.
47998# We use the long form for the default assignment because of an extremely
47999# bizarre bug on SunOS 4.1.3.
48000if $ac_need_defaults; then
48001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48004fi
48005
48006# Have a temporary directory for convenience. Make it in the build tree
48007# simply because there is no reason against having it here, and in addition,
48008# creating and moving files from /tmp can sometimes cause problems.
48009# Hook for its removal unless debugging.
48010# Note that there is a small window in which the directory will not be cleaned:
48011# after its creation but before its name has been assigned to `$tmp'.
48012$debug ||
48013{
48014 tmp=
48015 trap 'exit_status=$?
48016 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48017' 0
48018 trap '{ (exit 1); exit 1; }' 1 2 13 15
48019}
48020# Create a (secure) tmp directory for tmp files.
48021
48022{
48023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48024 test -n "$tmp" && test -d "$tmp"
48025} ||
48026{
48027 tmp=./conf$$-$RANDOM
48028 (umask 077 && mkdir "$tmp")
48029} ||
48030{
48031 $as_echo "$as_me: cannot create a temporary directory in ." >&2
48032 { (exit 1); exit 1; }
48033}
48034
48035# Set up the scripts for CONFIG_FILES section.
48036# No need to generate them if there are no CONFIG_FILES.
48037# This happens for instance with `./config.status config.h'.
48038if test -n "$CONFIG_FILES"; then
48039
48040
48041ac_cr=' '
48042ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48043if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48044 ac_cs_awk_cr='\\r'
48045else
48046 ac_cs_awk_cr=$ac_cr
48047fi
48048
48049echo 'BEGIN {' >"$tmp/subs1.awk" &&
48050_ACEOF
48051
48052
48053{
48054 echo "cat >conf$$subs.awk <<_ACEOF" &&
48055 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48056 echo "_ACEOF"
48057} >conf$$subs.sh ||
48058 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48059$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48060 { (exit 1); exit 1; }; }
48061ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48062ac_delim='%!_!# '
48063for ac_last_try in false false false false false :; do
48064 . ./conf$$subs.sh ||
48065 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48066$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48067 { (exit 1); exit 1; }; }
48068
48069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48070 if test $ac_delim_n = $ac_delim_num; then
48071 break
48072 elif $ac_last_try; then
48073 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48074$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48075 { (exit 1); exit 1; }; }
48076 else
48077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48078 fi
48079done
48080rm -f conf$$subs.sh
48081
48082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48083cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48084_ACEOF
48085sed -n '
48086h
48087s/^/S["/; s/!.*/"]=/
48088p
48089g
48090s/^[^!]*!//
48091:repl
48092t repl
48093s/'"$ac_delim"'$//
48094t delim
48095:nl
48096h
48097s/\(.\{148\}\).*/\1/
48098t more1
48099s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48100p
48101n
48102b repl
48103:more1
48104s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48105p
48106g
48107s/.\{148\}//
48108t nl
48109:delim
48110h
48111s/\(.\{148\}\).*/\1/
48112t more2
48113s/["\\]/\\&/g; s/^/"/; s/$/"/
48114p
48115b
48116:more2
48117s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48118p
48119g
48120s/.\{148\}//
48121t delim
48122' <conf$$subs.awk | sed '
48123/^[^""]/{
48124 N
48125 s/\n//
48126}
48127' >>$CONFIG_STATUS || ac_write_fail=1
48128rm -f conf$$subs.awk
48129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48130_ACAWK
48131cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48132 for (key in S) S_is_set[key] = 1
48133 FS = ""
48134
48135}
48136{
48137 line = $ 0
48138 nfields = split(line, field, "@")
48139 substed = 0
48140 len = length(field[1])
48141 for (i = 2; i < nfields; i++) {
48142 key = field[i]
48143 keylen = length(key)
48144 if (S_is_set[key]) {
48145 value = S[key]
48146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48147 len += length(value) + length(field[++i])
48148 substed = 1
48149 } else
48150 len += 1 + keylen
48151 }
48152
48153 print line
48154}
48155
48156_ACAWK
48157_ACEOF
48158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48159if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48161else
48162 cat
48163fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48164 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48165$as_echo "$as_me: error: could not setup config files machinery" >&2;}
48166 { (exit 1); exit 1; }; }
48167_ACEOF
48168
48169# VPATH may cause trouble with some makes, so we remove $(srcdir),
48170# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48171# trailing colons and then remove the whole line if VPATH becomes empty
48172# (actually we leave an empty line to preserve line numbers).
48173if test "x$srcdir" = x.; then
48174 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48175s/:*\$(srcdir):*/:/
48176s/:*\${srcdir}:*/:/
48177s/:*@srcdir@:*/:/
48178s/^\([^=]*=[ ]*\):*/\1/
48179s/:*$//
48180s/^[^=]*=[ ]*$//
48181}'
48182fi
48183
48184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48185fi # test -n "$CONFIG_FILES"
48186
48187# Set up the scripts for CONFIG_HEADERS section.
48188# No need to generate them if there are no CONFIG_HEADERS.
48189# This happens for instance with `./config.status Makefile'.
48190if test -n "$CONFIG_HEADERS"; then
48191cat >"$tmp/defines.awk" <<\_ACAWK ||
48192BEGIN {
48193_ACEOF
48194
48195# Transform confdefs.h into an awk script `defines.awk', embedded as
48196# here-document in config.status, that substitutes the proper values into
48197# config.h.in to produce config.h.
48198
48199# Create a delimiter string that does not exist in confdefs.h, to ease
48200# handling of long lines.
48201ac_delim='%!_!# '
48202for ac_last_try in false false :; do
48203 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48204 if test -z "$ac_t"; then
48205 break
48206 elif $ac_last_try; then
48207 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
48208$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
48209 { (exit 1); exit 1; }; }
48210 else
48211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48212 fi
48213done
48214
48215# For the awk script, D is an array of macro values keyed by name,
48216# likewise P contains macro parameters if any. Preserve backslash
48217# newline sequences.
48218
48219ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48220sed -n '
48221s/.\{148\}/&'"$ac_delim"'/g
48222t rset
48223:rset
48224s/^[ ]*#[ ]*define[ ][ ]*/ /
48225t def
48226d
48227:def
48228s/\\$//
48229t bsnl
48230s/["\\]/\\&/g
48231s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48232D["\1"]=" \3"/p
48233s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48234d
48235:bsnl
48236s/["\\]/\\&/g
48237s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48238D["\1"]=" \3\\\\\\n"\\/p
48239t cont
48240s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48241t cont
48242d
48243:cont
48244n
48245s/.\{148\}/&'"$ac_delim"'/g
48246t clear
48247:clear
48248s/\\$//
48249t bsnlc
48250s/["\\]/\\&/g; s/^/"/; s/$/"/p
48251d
48252:bsnlc
48253s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48254b cont
48255' <confdefs.h | sed '
48256s/'"$ac_delim"'/"\\\
48257"/g' >>$CONFIG_STATUS || ac_write_fail=1
48258
48259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48260 for (key in D) D_is_set[key] = 1
48261 FS = ""
48262}
48263/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48264 line = \$ 0
48265 split(line, arg, " ")
48266 if (arg[1] == "#") {
48267 defundef = arg[2]
48268 mac1 = arg[3]
48269 } else {
48270 defundef = substr(arg[1], 2)
48271 mac1 = arg[2]
48272 }
48273 split(mac1, mac2, "(") #)
48274 macro = mac2[1]
48275 prefix = substr(line, 1, index(line, defundef) - 1)
48276 if (D_is_set[macro]) {
48277 # Preserve the white space surrounding the "#".
48278 print prefix "define", macro P[macro] D[macro]
48279 next
48280 } else {
48281 # Replace #undef with comments. This is necessary, for example,
48282 # in the case of _POSIX_SOURCE, which is predefined and required
48283 # on some systems where configure will not decide to define it.
48284 if (defundef == "undef") {
48285 print "/*", prefix defundef, macro, "*/"
48286 next
48287 }
48288 }
48289}
48290{ print }
48291_ACAWK
48292_ACEOF
48293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48294 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48295$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48296 { (exit 1); exit 1; }; }
48297fi # test -n "$CONFIG_HEADERS"
48298
48299
48300eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48301shift
48302for ac_tag
48303do
48304 case $ac_tag in
48305 :[FHLC]) ac_mode=$ac_tag; continue;;
48306 esac
48307 case $ac_mode$ac_tag in
48308 :[FHL]*:*);;
48309 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48310$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48311 { (exit 1); exit 1; }; };;
48312 :[FH]-) ac_tag=-:-;;
48313 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48314 esac
48315 ac_save_IFS=$IFS
48316 IFS=:
48317 set x $ac_tag
48318 IFS=$ac_save_IFS
48319 shift
48320 ac_file=$1
48321 shift
48322
48323 case $ac_mode in
48324 :L) ac_source=$1;;
48325 :[FH])
48326 ac_file_inputs=
48327 for ac_f
48328 do
48329 case $ac_f in
48330 -) ac_f="$tmp/stdin";;
48331 *) # Look for the file first in the build tree, then in the source tree
48332 # (if the path is not absolute). The absolute path cannot be DOS-style,
48333 # because $ac_f cannot contain `:'.
48334 test -f "$ac_f" ||
48335 case $ac_f in
48336 [\\/$]*) false;;
48337 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48338 esac ||
48339 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48340$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48341 { (exit 1); exit 1; }; };;
48342 esac
48343 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48344 ac_file_inputs="$ac_file_inputs '$ac_f'"
48345 done
48346
48347 # Let's still pretend it is `configure' which instantiates (i.e., don't
48348 # use $as_me), people would be surprised to read:
48349 # /* config.h. Generated by config.status. */
48350 configure_input='Generated from '`
48351 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48352 `' by configure.'
48353 if test x"$ac_file" != x-; then
48354 configure_input="$ac_file. $configure_input"
48355 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
48356$as_echo "$as_me: creating $ac_file" >&6;}
48357 fi
48358 # Neutralize special characters interpreted by sed in replacement strings.
48359 case $configure_input in #(
48360 *\&* | *\|* | *\\* )
48361 ac_sed_conf_input=`$as_echo "$configure_input" |
48362 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48363 *) ac_sed_conf_input=$configure_input;;
48364 esac
48365
48366 case $ac_tag in
48367 *:-:* | *:-) cat >"$tmp/stdin" \
48368 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48369$as_echo "$as_me: error: could not create $ac_file" >&2;}
48370 { (exit 1); exit 1; }; } ;;
48371 esac
48372 ;;
48373 esac
48374
48375 ac_dir=`$as_dirname -- "$ac_file" ||
48376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48377 X"$ac_file" : 'X\(//\)[^/]' \| \
48378 X"$ac_file" : 'X\(//\)$' \| \
48379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48380$as_echo X"$ac_file" |
48381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48382 s//\1/
48383 q
48384 }
48385 /^X\(\/\/\)[^/].*/{
48386 s//\1/
48387 q
48388 }
48389 /^X\(\/\/\)$/{
48390 s//\1/
48391 q
48392 }
48393 /^X\(\/\).*/{
48394 s//\1/
48395 q
48396 }
48397 s/.*/./; q'`
48398 { as_dir="$ac_dir"
48399 case $as_dir in #(
48400 -*) as_dir=./$as_dir;;
48401 esac
48402 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48403 as_dirs=
48404 while :; do
48405 case $as_dir in #(
48406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48407 *) as_qdir=$as_dir;;
48408 esac
48409 as_dirs="'$as_qdir' $as_dirs"
48410 as_dir=`$as_dirname -- "$as_dir" ||
48411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48412 X"$as_dir" : 'X\(//\)[^/]' \| \
48413 X"$as_dir" : 'X\(//\)$' \| \
48414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48415$as_echo X"$as_dir" |
48416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48417 s//\1/
48418 q
48419 }
48420 /^X\(\/\/\)[^/].*/{
48421 s//\1/
48422 q
48423 }
48424 /^X\(\/\/\)$/{
48425 s//\1/
48426 q
48427 }
48428 /^X\(\/\).*/{
48429 s//\1/
48430 q
48431 }
48432 s/.*/./; q'`
48433 test -d "$as_dir" && break
48434 done
48435 test -z "$as_dirs" || eval "mkdir $as_dirs"
48436 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48437$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48438 { (exit 1); exit 1; }; }; }
48439 ac_builddir=.
48440
48441case "$ac_dir" in
48442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48443*)
48444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48445 # A ".." for each directory in $ac_dir_suffix.
48446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48447 case $ac_top_builddir_sub in
48448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48450 esac ;;
48451esac
48452ac_abs_top_builddir=$ac_pwd
48453ac_abs_builddir=$ac_pwd$ac_dir_suffix
48454# for backward compatibility:
48455ac_top_builddir=$ac_top_build_prefix
48456
48457case $srcdir in
48458 .) # We are building in place.
48459 ac_srcdir=.
48460 ac_top_srcdir=$ac_top_builddir_sub
48461 ac_abs_top_srcdir=$ac_pwd ;;
48462 [\\/]* | ?:[\\/]* ) # Absolute name.
48463 ac_srcdir=$srcdir$ac_dir_suffix;
48464 ac_top_srcdir=$srcdir
48465 ac_abs_top_srcdir=$srcdir ;;
48466 *) # Relative name.
48467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48468 ac_top_srcdir=$ac_top_build_prefix$srcdir
48469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48470esac
48471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48472
48473
48474 case $ac_mode in
48475 :F)
48476 #
48477 # CONFIG_FILE
48478 #
48479
48480 case $INSTALL in
48481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48483 esac
48484 ac_MKDIR_P=$MKDIR_P
48485 case $MKDIR_P in
48486 [\\/$]* | ?:[\\/]* ) ;;
48487 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48488 esac
48489_ACEOF
48490
48491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48492# If the template does not know about datarootdir, expand it.
48493# FIXME: This hack should be removed a few years after 2.60.
48494ac_datarootdir_hack=; ac_datarootdir_seen=
48495
48496ac_sed_dataroot='
48497/datarootdir/ {
48498 p
48499 q
48500}
48501/@datadir@/p
48502/@docdir@/p
48503/@infodir@/p
48504/@localedir@/p
48505/@mandir@/p
48506'
48507case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48508*datarootdir*) ac_datarootdir_seen=yes;;
48509*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48510 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48511$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48512_ACEOF
48513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48514 ac_datarootdir_hack='
48515 s&@datadir@&$datadir&g
48516 s&@docdir@&$docdir&g
48517 s&@infodir@&$infodir&g
48518 s&@localedir@&$localedir&g
48519 s&@mandir@&$mandir&g
48520 s&\\\${datarootdir}&$datarootdir&g' ;;
48521esac
48522_ACEOF
48523
48524# Neutralize VPATH when `$srcdir' = `.'.
48525# Shell code in configure.ac might set extrasub.
48526# FIXME: do we really want to maintain this feature?
48527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48528ac_sed_extra="$ac_vpsub
48529$extrasub
48530_ACEOF
48531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48532:t
48533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48534s|@configure_input@|$ac_sed_conf_input|;t t
48535s&@top_builddir@&$ac_top_builddir_sub&;t t
48536s&@top_build_prefix@&$ac_top_build_prefix&;t t
48537s&@srcdir@&$ac_srcdir&;t t
48538s&@abs_srcdir@&$ac_abs_srcdir&;t t
48539s&@top_srcdir@&$ac_top_srcdir&;t t
48540s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48541s&@builddir@&$ac_builddir&;t t
48542s&@abs_builddir@&$ac_abs_builddir&;t t
48543s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48544s&@INSTALL@&$ac_INSTALL&;t t
48545s&@MKDIR_P@&$ac_MKDIR_P&;t t
48546$ac_datarootdir_hack
48547"
48548eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
48549 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48550$as_echo "$as_me: error: could not create $ac_file" >&2;}
48551 { (exit 1); exit 1; }; }
48552
48553test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48554 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
48555 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
48556 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48557which seems to be undefined. Please make sure it is defined." >&5
48558$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48559which seems to be undefined. Please make sure it is defined." >&2;}
48560
48561 rm -f "$tmp/stdin"
48562 case $ac_file in
48563 -) cat "$tmp/out" && rm -f "$tmp/out";;
48564 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
48565 esac \
48566 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48567$as_echo "$as_me: error: could not create $ac_file" >&2;}
48568 { (exit 1); exit 1; }; }
48569 ;;
48570 :H)
48571 #
48572 # CONFIG_HEADER
48573 #
48574 if test x"$ac_file" != x-; then
48575 {
48576 $as_echo "/* $configure_input */" \
48577 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
48578 } >"$tmp/config.h" \
48579 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48580$as_echo "$as_me: error: could not create $ac_file" >&2;}
48581 { (exit 1); exit 1; }; }
48582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
48583 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48584$as_echo "$as_me: $ac_file is unchanged" >&6;}
48585 else
48586 rm -f "$ac_file"
48587 mv "$tmp/config.h" "$ac_file" \
48588 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48589$as_echo "$as_me: error: could not create $ac_file" >&2;}
48590 { (exit 1); exit 1; }; }
48591 fi
48592 else
48593 $as_echo "/* $configure_input */" \
48594 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
48595 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
48596$as_echo "$as_me: error: could not create -" >&2;}
48597 { (exit 1); exit 1; }; }
48598 fi
48599# Compute "$ac_file"'s index in $config_headers.
48600_am_arg="$ac_file"
48601_am_stamp_count=1
48602for _am_header in $config_headers :; do
48603 case $_am_header in
48604 $_am_arg | $_am_arg:* )
48605 break ;;
48606 * )
48607 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48608 esac
48609done
48610echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48611$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48612 X"$_am_arg" : 'X\(//\)[^/]' \| \
48613 X"$_am_arg" : 'X\(//\)$' \| \
48614 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48615$as_echo X"$_am_arg" |
48616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48617 s//\1/
48618 q
48619 }
48620 /^X\(\/\/\)[^/].*/{
48621 s//\1/
48622 q
48623 }
48624 /^X\(\/\/\)$/{
48625 s//\1/
48626 q
48627 }
48628 /^X\(\/\).*/{
48629 s//\1/
48630 q
48631 }
48632 s/.*/./; q'`/stamp-h$_am_stamp_count
48633 ;;
48634
48635 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
48636$as_echo "$as_me: executing $ac_file commands" >&6;}
48637 ;;
48638 esac
48639
48640
48641 case $ac_file$ac_mode in
48642 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
48643ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
48644ac_prefix_conf_PKG=`echo MagickCore`
48645ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
48646ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
48647ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
48648if test ".$ac_prefix_conf_INP" = "."; then
48649 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
48650 case "$ac_file" in
48651 *.h) ac_prefix_conf_INP=$ac_file ;;
48652 *)
48653 esac
48654 test ".$ac_prefix_conf_INP" != "." && break
48655 done
48656fi
48657if test ".$ac_prefix_conf_INP" = "."; then
48658 case "$ac_prefix_conf_OUT" in
48659 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
48660 ;;
48661 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
48662 ;;
48663 *) ac_prefix_conf_INP=config.h
48664 ;;
48665 esac
48666fi
48667if test -z "$ac_prefix_conf_PKG" ; then
48668 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
48669$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
48670 { (exit 1); exit 1; }; }
48671else
48672 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
48673 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
48674 fi fi
48675 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
48676$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
48677 if test -f $ac_prefix_conf_INP ; then
48678 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
48679 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
48680 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
48681 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
48682 echo "#endif/" >>conftest.prefix
48683 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
48684 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
48685 echo "#endif/" >> conftest.prefix
48686 # now executing _script on _DEF input to create _OUT output file
48687 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
48688 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
48689 echo ' ' >>$tmp/pconfig.h
48690 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
48691
48692 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
48693 echo ' ' >>$tmp/pconfig.h
48694 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
48695 echo "#endif" >>$tmp/pconfig.h
48696 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
48697 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
48698$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
48699 else
48700 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
48701$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48702 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
48703 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
48704 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
48705$as_echo X"$ac_prefix_conf_OUT" |
48706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48707 s//\1/
48708 q
48709 }
48710 /^X\(\/\/\)[^/].*/{
48711 s//\1/
48712 q
48713 }
48714 /^X\(\/\/\)$/{
48715 s//\1/
48716 q
48717 }
48718 /^X\(\/\).*/{
48719 s//\1/
48720 q
48721 }
48722 s/.*/./; q'`
48723 { as_dir="$ac_dir"
48724 case $as_dir in #(
48725 -*) as_dir=./$as_dir;;
48726 esac
48727 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48728 as_dirs=
48729 while :; do
48730 case $as_dir in #(
48731 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48732 *) as_qdir=$as_dir;;
48733 esac
48734 as_dirs="'$as_qdir' $as_dirs"
48735 as_dir=`$as_dirname -- "$as_dir" ||
48736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48737 X"$as_dir" : 'X\(//\)[^/]' \| \
48738 X"$as_dir" : 'X\(//\)$' \| \
48739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48740$as_echo X"$as_dir" |
48741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48742 s//\1/
48743 q
48744 }
48745 /^X\(\/\/\)[^/].*/{
48746 s//\1/
48747 q
48748 }
48749 /^X\(\/\/\)$/{
48750 s//\1/
48751 q
48752 }
48753 /^X\(\/\).*/{
48754 s//\1/
48755 q
48756 }
48757 s/.*/./; q'`
48758 test -d "$as_dir" && break
48759 done
48760 test -z "$as_dirs" || eval "mkdir $as_dirs"
48761 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48762$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48763 { (exit 1); exit 1; }; }; }
48764 rm -f "$ac_prefix_conf_OUT"
48765 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
48766 fi
48767 cp conftest.prefix _configs.sed
48768 else
48769 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
48770$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
48771 { (exit 1); exit 1; }; }
48772 fi
48773 rm -f conftest.*
48774fi
48775 ;;
48776 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48777 # Autoconf 2.62 quotes --file arguments for eval, but not when files
48778 # are listed without --file. Let's play safe and only enable the eval
48779 # if we detect the quoting.
48780 case $CONFIG_FILES in
48781 *\'*) eval set x "$CONFIG_FILES" ;;
48782 *) set x $CONFIG_FILES ;;
48783 esac
48784 shift
48785 for mf
48786 do
48787 # Strip MF so we end up with the name of the file.
48788 mf=`echo "$mf" | sed -e 's/:.*$//'`
48789 # Check whether this is an Automake generated Makefile or not.
48790 # We used to match only the files named `Makefile.in', but
48791 # some people rename them; so instead we look at the file content.
48792 # Grep'ing the first line is not enough: some people post-process
48793 # each Makefile.in and add a new line on top of each file to say so.
48794 # Grep'ing the whole file is not good either: AIX grep has a line
48795 # limit of 2048, but all sed's we know have understand at least 4000.
48796 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
48797 dirpart=`$as_dirname -- "$mf" ||
48798$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48799 X"$mf" : 'X\(//\)[^/]' \| \
48800 X"$mf" : 'X\(//\)$' \| \
48801 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
48802$as_echo X"$mf" |
48803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48804 s//\1/
48805 q
48806 }
48807 /^X\(\/\/\)[^/].*/{
48808 s//\1/
48809 q
48810 }
48811 /^X\(\/\/\)$/{
48812 s//\1/
48813 q
48814 }
48815 /^X\(\/\).*/{
48816 s//\1/
48817 q
48818 }
48819 s/.*/./; q'`
48820 else
48821 continue
48822 fi
48823 # Extract the definition of DEPDIR, am__include, and am__quote
48824 # from the Makefile without running `make'.
48825 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48826 test -z "$DEPDIR" && continue
48827 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48828 test -z "am__include" && continue
48829 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48830 # When using ansi2knr, U may be empty or an underscore; expand it
48831 U=`sed -n 's/^U = //p' < "$mf"`
48832 # Find all dependency output files, they are included files with
48833 # $(DEPDIR) in their names. We invoke sed twice because it is the
48834 # simplest approach to changing $(DEPDIR) to its actual value in the
48835 # expansion.
48836 for file in `sed -n "
48837 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48838 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48839 # Make sure the directory exists.
48840 test -f "$dirpart/$file" && continue
48841 fdir=`$as_dirname -- "$file" ||
48842$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48843 X"$file" : 'X\(//\)[^/]' \| \
48844 X"$file" : 'X\(//\)$' \| \
48845 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48846$as_echo X"$file" |
48847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48848 s//\1/
48849 q
48850 }
48851 /^X\(\/\/\)[^/].*/{
48852 s//\1/
48853 q
48854 }
48855 /^X\(\/\/\)$/{
48856 s//\1/
48857 q
48858 }
48859 /^X\(\/\).*/{
48860 s//\1/
48861 q
48862 }
48863 s/.*/./; q'`
48864 { as_dir=$dirpart/$fdir
48865 case $as_dir in #(
48866 -*) as_dir=./$as_dir;;
48867 esac
48868 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48869 as_dirs=
48870 while :; do
48871 case $as_dir in #(
48872 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48873 *) as_qdir=$as_dir;;
48874 esac
48875 as_dirs="'$as_qdir' $as_dirs"
48876 as_dir=`$as_dirname -- "$as_dir" ||
48877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48878 X"$as_dir" : 'X\(//\)[^/]' \| \
48879 X"$as_dir" : 'X\(//\)$' \| \
48880 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48881$as_echo X"$as_dir" |
48882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48883 s//\1/
48884 q
48885 }
48886 /^X\(\/\/\)[^/].*/{
48887 s//\1/
48888 q
48889 }
48890 /^X\(\/\/\)$/{
48891 s//\1/
48892 q
48893 }
48894 /^X\(\/\).*/{
48895 s//\1/
48896 q
48897 }
48898 s/.*/./; q'`
48899 test -d "$as_dir" && break
48900 done
48901 test -z "$as_dirs" || eval "mkdir $as_dirs"
48902 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48903$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48904 { (exit 1); exit 1; }; }; }
48905 # echo "creating $dirpart/$file"
48906 echo '# dummy' > "$dirpart/$file"
48907 done
48908 done
48909}
48910 ;;
48911 "libtool":C)
48912
48913 # See if we are running on zsh, and set the options which allow our
48914 # commands through without removal of \ escapes.
48915 if test -n "${ZSH_VERSION+set}" ; then
48916 setopt NO_GLOB_SUBST
48917 fi
48918
48919 cfgfile="${ofile}T"
48920 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48921 $RM "$cfgfile"
48922
48923 cat <<_LT_EOF >> "$cfgfile"
48924#! $SHELL
48925
48926# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48927# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48928# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48929# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48930#
48931# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48932# 2006, 2007, 2008 Free Software Foundation, Inc.
48933# Written by Gordon Matzigkeit, 1996
48934#
48935# This file is part of GNU Libtool.
48936#
48937# GNU Libtool is free software; you can redistribute it and/or
48938# modify it under the terms of the GNU General Public License as
48939# published by the Free Software Foundation; either version 2 of
48940# the License, or (at your option) any later version.
48941#
48942# As a special exception to the GNU General Public License,
48943# if you distribute this file as part of a program or library that
48944# is built using GNU Libtool, you may include this file under the
48945# same distribution terms that you use for the rest of that program.
48946#
48947# GNU Libtool is distributed in the hope that it will be useful,
48948# but WITHOUT ANY WARRANTY; without even the implied warranty of
48949# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48950# GNU General Public License for more details.
48951#
48952# You should have received a copy of the GNU General Public License
48953# along with GNU Libtool; see the file COPYING. If not, a copy
48954# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48955# obtained by writing to the Free Software Foundation, Inc.,
48956# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48957
48958
48959# The names of the tagged configurations supported by this script.
48960available_tags="CXX "
48961
48962# ### BEGIN LIBTOOL CONFIG
48963
48964# A sed program that does not truncate output.
48965SED=$lt_SED
48966
48967# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48968Xsed="\$SED -e 1s/^X//"
48969
48970# A grep program that handles long lines.
48971GREP=$lt_GREP
48972
48973# An ERE matcher.
48974EGREP=$lt_EGREP
48975
48976# A literal string matcher.
48977FGREP=$lt_FGREP
48978
48979# Which release of libtool.m4 was used?
48980macro_version=$macro_version
48981macro_revision=$macro_revision
48982
48983# Assembler program.
48984AS=$AS
48985
48986# DLL creation program.
48987DLLTOOL=$DLLTOOL
48988
48989# Object dumper program.
48990OBJDUMP=$OBJDUMP
48991
48992# Whether or not to build shared libraries.
48993build_libtool_libs=$enable_shared
48994
48995# Whether or not to build static libraries.
48996build_old_libs=$enable_static
48997
48998# What type of objects to build.
48999pic_mode=$pic_mode
49000
49001# Whether or not to optimize for fast installation.
49002fast_install=$enable_fast_install
49003
49004# The host system.
49005host_alias=$host_alias
49006host=$host
49007host_os=$host_os
49008
49009# The build system.
49010build_alias=$build_alias
49011build=$build
49012build_os=$build_os
49013
49014# A BSD- or MS-compatible name lister.
49015NM=$lt_NM
49016
49017# Whether we need soft or hard links.
49018LN_S=$lt_LN_S
49019
49020# What is the maximum length of a command?
49021max_cmd_len=$max_cmd_len
49022
49023# Object file suffix (normally "o").
49024objext=$ac_objext
49025
49026# Executable file suffix (normally "").
49027exeext=$exeext
49028
49029# whether the shell understands "unset".
49030lt_unset=$lt_unset
49031
49032# turn spaces into newlines.
49033SP2NL=$lt_lt_SP2NL
49034
49035# turn newlines into spaces.
49036NL2SP=$lt_lt_NL2SP
49037
49038# How to create reloadable object files.
49039reload_flag=$lt_reload_flag
49040reload_cmds=$lt_reload_cmds
49041
49042# Method to check whether dependent libraries are shared objects.
49043deplibs_check_method=$lt_deplibs_check_method
49044
49045# Command to use when deplibs_check_method == "file_magic".
49046file_magic_cmd=$lt_file_magic_cmd
49047
49048# The archiver.
49049AR=$lt_AR
49050AR_FLAGS=$lt_AR_FLAGS
49051
49052# A symbol stripping program.
49053STRIP=$lt_STRIP
49054
49055# Commands used to install an old-style archive.
49056RANLIB=$lt_RANLIB
49057old_postinstall_cmds=$lt_old_postinstall_cmds
49058old_postuninstall_cmds=$lt_old_postuninstall_cmds
49059
49060# A C compiler.
49061LTCC=$lt_CC
49062
49063# LTCC compiler flags.
49064LTCFLAGS=$lt_CFLAGS
49065
49066# Take the output of nm and produce a listing of raw symbols and C names.
49067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49068
49069# Transform the output of nm in a proper C declaration.
49070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49071
49072# Transform the output of nm in a C name address pair.
49073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49074
49075# Transform the output of nm in a C name address pair when lib prefix is needed.
49076global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49077
49078# The name of the directory that contains temporary libtool files.
49079objdir=$objdir
49080
49081# Shell to use when invoking shell scripts.
49082SHELL=$lt_SHELL
49083
49084# An echo program that does not interpret backslashes.
49085ECHO=$lt_ECHO
49086
49087# Used to examine libraries when file_magic_cmd begins with "file".
49088MAGIC_CMD=$MAGIC_CMD
49089
49090# Must we lock files when doing compilation?
49091need_locks=$lt_need_locks
49092
49093# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49094DSYMUTIL=$lt_DSYMUTIL
49095
49096# Tool to change global to local symbols on Mac OS X.
49097NMEDIT=$lt_NMEDIT
49098
49099# Tool to manipulate fat objects and archives on Mac OS X.
49100LIPO=$lt_LIPO
49101
49102# ldd/readelf like tool for Mach-O binaries on Mac OS X.
49103OTOOL=$lt_OTOOL
49104
49105# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49106OTOOL64=$lt_OTOOL64
49107
49108# Old archive suffix (normally "a").
49109libext=$libext
49110
49111# Shared library suffix (normally ".so").
49112shrext_cmds=$lt_shrext_cmds
49113
49114# The commands to extract the exported symbol list from a shared archive.
49115extract_expsyms_cmds=$lt_extract_expsyms_cmds
49116
49117# Variables whose values should be saved in libtool wrapper scripts and
49118# restored at link time.
49119variables_saved_for_relink=$lt_variables_saved_for_relink
49120
49121# Do we need the "lib" prefix for modules?
49122need_lib_prefix=$need_lib_prefix
49123
49124# Do we need a version for libraries?
49125need_version=$need_version
49126
49127# Library versioning type.
49128version_type=$version_type
49129
49130# Shared library runtime path variable.
49131runpath_var=$runpath_var
49132
49133# Shared library path variable.
49134shlibpath_var=$shlibpath_var
49135
49136# Is shlibpath searched before the hard-coded library search path?
49137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49138
49139# Format of library name prefix.
49140libname_spec=$lt_libname_spec
49141
49142# List of archive names. First name is the real one, the rest are links.
49143# The last name is the one that the linker finds with -lNAME
49144library_names_spec=$lt_library_names_spec
49145
49146# The coded name of the library, if different from the real name.
49147soname_spec=$lt_soname_spec
49148
49149# Command to use after installation of a shared archive.
49150postinstall_cmds=$lt_postinstall_cmds
49151
49152# Command to use after uninstallation of a shared archive.
49153postuninstall_cmds=$lt_postuninstall_cmds
49154
49155# Commands used to finish a libtool library installation in a directory.
49156finish_cmds=$lt_finish_cmds
49157
49158# As "finish_cmds", except a single script fragment to be evaled but
49159# not shown.
49160finish_eval=$lt_finish_eval
49161
49162# Whether we should hardcode library paths into libraries.
49163hardcode_into_libs=$hardcode_into_libs
49164
49165# Compile-time system search path for libraries.
49166sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49167
49168# Run-time system search path for libraries.
49169sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49170
49171# Whether dlopen is supported.
49172dlopen_support=$enable_dlopen
49173
49174# Whether dlopen of programs is supported.
49175dlopen_self=$enable_dlopen_self
49176
49177# Whether dlopen of statically linked programs is supported.
49178dlopen_self_static=$enable_dlopen_self_static
49179
49180# Commands to strip libraries.
49181old_striplib=$lt_old_striplib
49182striplib=$lt_striplib
49183
49184
49185# The linker used to build libraries.
49186LD=$lt_LD
49187
49188# Commands used to build an old-style archive.
49189old_archive_cmds=$lt_old_archive_cmds
49190
49191# A language specific compiler.
49192CC=$lt_compiler
49193
49194# Is the compiler the GNU compiler?
49195with_gcc=$GCC
49196
49197# Compiler flag to turn off builtin functions.
49198no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49199
49200# How to pass a linker flag through the compiler.
49201wl=$lt_lt_prog_compiler_wl
49202
49203# Additional compiler flags for building library objects.
49204pic_flag=$lt_lt_prog_compiler_pic
49205
49206# Compiler flag to prevent dynamic linking.
49207link_static_flag=$lt_lt_prog_compiler_static
49208
49209# Does compiler simultaneously support -c and -o options?
49210compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49211
49212# Whether or not to add -lc for building shared libraries.
49213build_libtool_need_lc=$archive_cmds_need_lc
49214
49215# Whether or not to disallow shared libs when runtime libs are static.
49216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49217
49218# Compiler flag to allow reflexive dlopens.
49219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49220
49221# Compiler flag to generate shared objects directly from archives.
49222whole_archive_flag_spec=$lt_whole_archive_flag_spec
49223
49224# Whether the compiler copes with passing no objects directly.
49225compiler_needs_object=$lt_compiler_needs_object
49226
49227# Create an old-style archive from a shared archive.
49228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49229
49230# Create a temporary old-style archive to link instead of a shared archive.
49231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49232
49233# Commands used to build a shared archive.
49234archive_cmds=$lt_archive_cmds
49235archive_expsym_cmds=$lt_archive_expsym_cmds
49236
49237# Commands used to build a loadable module if different from building
49238# a shared archive.
49239module_cmds=$lt_module_cmds
49240module_expsym_cmds=$lt_module_expsym_cmds
49241
49242# Whether we are building with GNU ld or not.
49243with_gnu_ld=$lt_with_gnu_ld
49244
49245# Flag that allows shared libraries with undefined symbols to be built.
49246allow_undefined_flag=$lt_allow_undefined_flag
49247
49248# Flag that enforces no undefined symbols.
49249no_undefined_flag=$lt_no_undefined_flag
49250
49251# Flag to hardcode \$libdir into a binary during linking.
49252# This must work even if \$libdir does not exist
49253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49254
49255# If ld is used when linking, flag to hardcode \$libdir into a binary
49256# during linking. This must work even if \$libdir does not exist.
49257hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49258
49259# Whether we need a single "-rpath" flag with a separated argument.
49260hardcode_libdir_separator=$lt_hardcode_libdir_separator
49261
49262# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49263# DIR into the resulting binary.
49264hardcode_direct=$hardcode_direct
49265
49266# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49267# DIR into the resulting binary and the resulting library dependency is
49268# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49269# library is relocated.
49270hardcode_direct_absolute=$hardcode_direct_absolute
49271
49272# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49273# into the resulting binary.
49274hardcode_minus_L=$hardcode_minus_L
49275
49276# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49277# into the resulting binary.
49278hardcode_shlibpath_var=$hardcode_shlibpath_var
49279
49280# Set to "yes" if building a shared library automatically hardcodes DIR
49281# into the library and all subsequent libraries and executables linked
49282# against it.
49283hardcode_automatic=$hardcode_automatic
49284
49285# Set to yes if linker adds runtime paths of dependent libraries
49286# to runtime path list.
49287inherit_rpath=$inherit_rpath
49288
49289# Whether libtool must link a program against all its dependency libraries.
49290link_all_deplibs=$link_all_deplibs
49291
49292# Fix the shell variable \$srcfile for the compiler.
49293fix_srcfile_path=$lt_fix_srcfile_path
49294
49295# Set to "yes" if exported symbols are required.
49296always_export_symbols=$always_export_symbols
49297
49298# The commands to list exported symbols.
49299export_symbols_cmds=$lt_export_symbols_cmds
49300
49301# Symbols that should not be listed in the preloaded symbols.
49302exclude_expsyms=$lt_exclude_expsyms
49303
49304# Symbols that must always be exported.
49305include_expsyms=$lt_include_expsyms
49306
49307# Commands necessary for linking programs (against libraries) with templates.
49308prelink_cmds=$lt_prelink_cmds
49309
49310# Specify filename containing input files.
49311file_list_spec=$lt_file_list_spec
49312
49313# How to hardcode a shared library path into an executable.
49314hardcode_action=$hardcode_action
49315
49316# The directories searched by this compiler when creating a shared library.
49317compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49318
49319# Dependencies to place before and after the objects being linked to
49320# create a shared library.
49321predep_objects=$lt_predep_objects
49322postdep_objects=$lt_postdep_objects
49323predeps=$lt_predeps
49324postdeps=$lt_postdeps
49325
49326# The library search path used internally by the compiler when linking
49327# a shared library.
49328compiler_lib_search_path=$lt_compiler_lib_search_path
49329
49330# ### END LIBTOOL CONFIG
49331
49332_LT_EOF
49333
49334 case $host_os in
49335 aix3*)
49336 cat <<\_LT_EOF >> "$cfgfile"
49337# AIX sometimes has problems with the GCC collect2 program. For some
49338# reason, if we set the COLLECT_NAMES environment variable, the problems
49339# vanish in a puff of smoke.
49340if test "X${COLLECT_NAMES+set}" != Xset; then
49341 COLLECT_NAMES=
49342 export COLLECT_NAMES
49343fi
49344_LT_EOF
49345 ;;
49346 esac
49347
49348
49349ltmain="$ac_aux_dir/ltmain.sh"
49350
49351
49352 # We use sed instead of cat because bash on DJGPP gets confused if
49353 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49354 # text mode, it properly converts lines to CR/LF. This bash problem
49355 # is reportedly fixed, but why not run on old versions too?
49356 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49357 || (rm -f "$cfgfile"; exit 1)
49358
49359 case $xsi_shell in
49360 yes)
49361 cat << \_LT_EOF >> "$cfgfile"
49362
49363# func_dirname file append nondir_replacement
49364# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49365# otherwise set result to NONDIR_REPLACEMENT.
49366func_dirname ()
49367{
49368 case ${1} in
49369 */*) func_dirname_result="${1%/*}${2}" ;;
49370 * ) func_dirname_result="${3}" ;;
49371 esac
49372}
49373
49374# func_basename file
49375func_basename ()
49376{
49377 func_basename_result="${1##*/}"
49378}
49379
49380# func_dirname_and_basename file append nondir_replacement
49381# perform func_basename and func_dirname in a single function
49382# call:
49383# dirname: Compute the dirname of FILE. If nonempty,
49384# add APPEND to the result, otherwise set result
49385# to NONDIR_REPLACEMENT.
49386# value returned in "$func_dirname_result"
49387# basename: Compute filename of FILE.
49388# value retuned in "$func_basename_result"
49389# Implementation must be kept synchronized with func_dirname
49390# and func_basename. For efficiency, we do not delegate to
49391# those functions but instead duplicate the functionality here.
49392func_dirname_and_basename ()
49393{
49394 case ${1} in
49395 */*) func_dirname_result="${1%/*}${2}" ;;
49396 * ) func_dirname_result="${3}" ;;
49397 esac
49398 func_basename_result="${1##*/}"
49399}
49400
49401# func_stripname prefix suffix name
49402# strip PREFIX and SUFFIX off of NAME.
49403# PREFIX and SUFFIX must not contain globbing or regex special
49404# characters, hashes, percent signs, but SUFFIX may contain a leading
49405# dot (in which case that matches only a dot).
49406func_stripname ()
49407{
49408 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49409 # positional parameters, so assign one to ordinary parameter first.
49410 func_stripname_result=${3}
49411 func_stripname_result=${func_stripname_result#"${1}"}
49412 func_stripname_result=${func_stripname_result%"${2}"}
49413}
49414
49415# func_opt_split
49416func_opt_split ()
49417{
49418 func_opt_split_opt=${1%%=*}
49419 func_opt_split_arg=${1#*=}
49420}
49421
49422# func_lo2o object
49423func_lo2o ()
49424{
49425 case ${1} in
49426 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49427 *) func_lo2o_result=${1} ;;
49428 esac
49429}
49430
49431# func_xform libobj-or-source
49432func_xform ()
49433{
49434 func_xform_result=${1%.*}.lo
49435}
49436
49437# func_arith arithmetic-term...
49438func_arith ()
49439{
49440 func_arith_result=$(( $* ))
49441}
49442
49443# func_len string
49444# STRING may not start with a hyphen.
49445func_len ()
49446{
49447 func_len_result=${#1}
49448}
49449
49450_LT_EOF
49451 ;;
49452 *) # Bourne compatible functions.
49453 cat << \_LT_EOF >> "$cfgfile"
49454
49455# func_dirname file append nondir_replacement
49456# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49457# otherwise set result to NONDIR_REPLACEMENT.
49458func_dirname ()
49459{
49460 # Extract subdirectory from the argument.
49461 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49462 if test "X$func_dirname_result" = "X${1}"; then
49463 func_dirname_result="${3}"
49464 else
49465 func_dirname_result="$func_dirname_result${2}"
49466 fi
49467}
49468
49469# func_basename file
49470func_basename ()
49471{
49472 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49473}
49474
49475
49476# func_stripname prefix suffix name
49477# strip PREFIX and SUFFIX off of NAME.
49478# PREFIX and SUFFIX must not contain globbing or regex special
49479# characters, hashes, percent signs, but SUFFIX may contain a leading
49480# dot (in which case that matches only a dot).
49481# func_strip_suffix prefix name
49482func_stripname ()
49483{
49484 case ${2} in
49485 .*) func_stripname_result=`$ECHO "X${3}" \
49486 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49487 *) func_stripname_result=`$ECHO "X${3}" \
49488 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49489 esac
49490}
49491
49492# sed scripts:
49493my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49494my_sed_long_arg='1s/^-[^=]*=//'
49495
49496# func_opt_split
49497func_opt_split ()
49498{
49499 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49500 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49501}
49502
49503# func_lo2o object
49504func_lo2o ()
49505{
49506 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49507}
49508
49509# func_xform libobj-or-source
49510func_xform ()
49511{
49512 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49513}
49514
49515# func_arith arithmetic-term...
49516func_arith ()
49517{
49518 func_arith_result=`expr "$@"`
49519}
49520
49521# func_len string
49522# STRING may not start with a hyphen.
49523func_len ()
49524{
49525 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
49526}
49527
49528_LT_EOF
49529esac
49530
49531case $lt_shell_append in
49532 yes)
49533 cat << \_LT_EOF >> "$cfgfile"
49534
49535# func_append var value
49536# Append VALUE to the end of shell variable VAR.
49537func_append ()
49538{
49539 eval "$1+=\$2"
49540}
49541_LT_EOF
49542 ;;
49543 *)
49544 cat << \_LT_EOF >> "$cfgfile"
49545
49546# func_append var value
49547# Append VALUE to the end of shell variable VAR.
49548func_append ()
49549{
49550 eval "$1=\$$1\$2"
49551}
49552
49553_LT_EOF
49554 ;;
49555 esac
49556
49557
49558 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
49559 || (rm -f "$cfgfile"; exit 1)
49560
49561 mv -f "$cfgfile" "$ofile" ||
49562 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49563 chmod +x "$ofile"
49564
49565
49566 cat <<_LT_EOF >> "$ofile"
49567
49568# ### BEGIN LIBTOOL TAG CONFIG: CXX
49569
49570# The linker used to build libraries.
49571LD=$lt_LD_CXX
49572
49573# Commands used to build an old-style archive.
49574old_archive_cmds=$lt_old_archive_cmds_CXX
49575
49576# A language specific compiler.
49577CC=$lt_compiler_CXX
49578
49579# Is the compiler the GNU compiler?
49580with_gcc=$GCC_CXX
49581
49582# Compiler flag to turn off builtin functions.
49583no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
49584
49585# How to pass a linker flag through the compiler.
49586wl=$lt_lt_prog_compiler_wl_CXX
49587
49588# Additional compiler flags for building library objects.
49589pic_flag=$lt_lt_prog_compiler_pic_CXX
49590
49591# Compiler flag to prevent dynamic linking.
49592link_static_flag=$lt_lt_prog_compiler_static_CXX
49593
49594# Does compiler simultaneously support -c and -o options?
49595compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
49596
49597# Whether or not to add -lc for building shared libraries.
49598build_libtool_need_lc=$archive_cmds_need_lc_CXX
49599
49600# Whether or not to disallow shared libs when runtime libs are static.
49601allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
49602
49603# Compiler flag to allow reflexive dlopens.
49604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
49605
49606# Compiler flag to generate shared objects directly from archives.
49607whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
49608
49609# Whether the compiler copes with passing no objects directly.
49610compiler_needs_object=$lt_compiler_needs_object_CXX
49611
49612# Create an old-style archive from a shared archive.
49613old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
49614
49615# Create a temporary old-style archive to link instead of a shared archive.
49616old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
49617
49618# Commands used to build a shared archive.
49619archive_cmds=$lt_archive_cmds_CXX
49620archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
49621
49622# Commands used to build a loadable module if different from building
49623# a shared archive.
49624module_cmds=$lt_module_cmds_CXX
49625module_expsym_cmds=$lt_module_expsym_cmds_CXX
49626
49627# Whether we are building with GNU ld or not.
49628with_gnu_ld=$lt_with_gnu_ld_CXX
49629
49630# Flag that allows shared libraries with undefined symbols to be built.
49631allow_undefined_flag=$lt_allow_undefined_flag_CXX
49632
49633# Flag that enforces no undefined symbols.
49634no_undefined_flag=$lt_no_undefined_flag_CXX
49635
49636# Flag to hardcode \$libdir into a binary during linking.
49637# This must work even if \$libdir does not exist
49638hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
49639
49640# If ld is used when linking, flag to hardcode \$libdir into a binary
49641# during linking. This must work even if \$libdir does not exist.
49642hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
49643
49644# Whether we need a single "-rpath" flag with a separated argument.
49645hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
49646
49647# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49648# DIR into the resulting binary.
49649hardcode_direct=$hardcode_direct_CXX
49650
49651# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49652# DIR into the resulting binary and the resulting library dependency is
49653# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49654# library is relocated.
49655hardcode_direct_absolute=$hardcode_direct_absolute_CXX
49656
49657# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49658# into the resulting binary.
49659hardcode_minus_L=$hardcode_minus_L_CXX
49660
49661# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49662# into the resulting binary.
49663hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
49664
49665# Set to "yes" if building a shared library automatically hardcodes DIR
49666# into the library and all subsequent libraries and executables linked
49667# against it.
49668hardcode_automatic=$hardcode_automatic_CXX
49669
49670# Set to yes if linker adds runtime paths of dependent libraries
49671# to runtime path list.
49672inherit_rpath=$inherit_rpath_CXX
49673
49674# Whether libtool must link a program against all its dependency libraries.
49675link_all_deplibs=$link_all_deplibs_CXX
49676
49677# Fix the shell variable \$srcfile for the compiler.
49678fix_srcfile_path=$lt_fix_srcfile_path_CXX
49679
49680# Set to "yes" if exported symbols are required.
49681always_export_symbols=$always_export_symbols_CXX
49682
49683# The commands to list exported symbols.
49684export_symbols_cmds=$lt_export_symbols_cmds_CXX
49685
49686# Symbols that should not be listed in the preloaded symbols.
49687exclude_expsyms=$lt_exclude_expsyms_CXX
49688
49689# Symbols that must always be exported.
49690include_expsyms=$lt_include_expsyms_CXX
49691
49692# Commands necessary for linking programs (against libraries) with templates.
49693prelink_cmds=$lt_prelink_cmds_CXX
49694
49695# Specify filename containing input files.
49696file_list_spec=$lt_file_list_spec_CXX
49697
49698# How to hardcode a shared library path into an executable.
49699hardcode_action=$hardcode_action_CXX
49700
49701# The directories searched by this compiler when creating a shared library.
49702compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
49703
49704# Dependencies to place before and after the objects being linked to
49705# create a shared library.
49706predep_objects=$lt_predep_objects_CXX
49707postdep_objects=$lt_postdep_objects_CXX
49708predeps=$lt_predeps_CXX
49709postdeps=$lt_postdeps_CXX
49710
49711# The library search path used internally by the compiler when linking
49712# a shared library.
49713compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
49714
49715# ### END LIBTOOL TAG CONFIG: CXX
49716_LT_EOF
49717
49718 ;;
49719 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
49720 "Magick-config.in":C) chmod +x magick/Magick-config ;;
49721 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
49722 "Wand-config.in":C) chmod +x wand/Wand-config ;;
49723 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
49724 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
49725
49726 esac
49727done # for ac_tag
49728
49729
49730{ (exit 0); exit 0; }
49731_ACEOF
49732chmod +x $CONFIG_STATUS
49733ac_clean_files=$ac_clean_files_save
49734
49735test $ac_write_fail = 0 ||
49736 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49737$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49738 { (exit 1); exit 1; }; }
49739
49740
49741# configure is writing to config.log, and then calls config.status.
49742# config.status does its own redirection, appending to config.log.
49743# Unfortunately, on DOS this fails, as config.log is still kept open
49744# by configure, so config.status won't be able to write to it; its
49745# output is simply discarded. So we exec the FD to /dev/null,
49746# effectively closing config.log, so it can be properly (re)opened and
49747# appended to by config.status. When coming back to configure, we
49748# need to make the FD available again.
49749if test "$no_create" != yes; then
49750 ac_cs_success=:
49751 ac_config_status_args=
49752 test "$silent" = yes &&
49753 ac_config_status_args="$ac_config_status_args --quiet"
49754 exec 5>/dev/null
49755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49756 exec 5>>config.log
49757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49758 # would make configure fail if this is the last instruction.
49759 $ac_cs_success || { (exit 1); exit 1; }
49760fi
49761if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49762 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49763$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49764fi
49765
49766
49767rm -f magick-version
49768
49769result_ghostscript_font_dir='none'
49770if test "${ghostscript_font_dir}x" != 'x'; then
49771 result_ghostscript_font_dir=$ghostscript_font_dir
49772fi
49773
49774result_windows_font_dir='none'
49775if test "${windows_font_dir}x" != 'x'; then
49776 result_windows_font_dir=${windows_font_dir}
49777fi
49778
49779{ $as_echo "$as_me:$LINENO: result:
49780ImageMagick is configured as follows. Please verify that this configuration
49781matches your expectations.
49782
49783Host system type: $host
49784Build system type: $build
49785
49786 Option Value
49787-------------------------------------------------------------------------------
49788Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49789Static libraries --enable-static=$enable_static $libtool_build_static_libs
49790Module support --with-modules=$with_modules $with_modules
49791GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49792Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49793High Dynamic Range Imagery
49794 --enable-hdri=$enable_hdri $enable_hdri
49795
49796Delegate Configuration:
49797BZLIB --with-bzlib=$with_bzlib $have_bzlib
49798Autotrace --with-autotrace=$with_autotrace $have_autotrace
49799DJVU --with-djvu=$with_djvu $have_djvu
49800DPS --with-dps=$with_dps $have_dps
49801FFTW --with-fftw=$with_fftw $have_fftw
49802FlashPIX --with-fpx=$with_fpx $have_fpx
49803FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49804FreeType --with-freetype=$with_freetype $have_freetype
49805GhostPCL None $PCLDelegate ($PCLVersion)
49806GhostXPS None $XPSDelegate ($XPSVersion)
49807Ghostscript None $PSDelegate ($GSVersion)
49808Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49809Ghostscript lib --with-gslib=$with_gslib $have_gslib
49810Graphviz --with-gvc=$with_gvc $have_gvc
49811JBIG --with-jbig=$with_jbig $have_jbig
49812JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49813JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49814LCMS --with-lcms=$with_lcms $have_lcms
49815LQR --with-lqr=$with_lqr $have_lqr
49816Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49817OpenEXR --with-openexr=$with_openexr $have_openexr
49818PERL --with-perl=$with_perl $have_perl
49819PNG --with-png=$with_png $have_png
49820RSVG --with-rsvg=$with_rsvg $have_rsvg
49821TIFF --with-tiff=$with_tiff $have_tiff
49822Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49823WMF --with-wmf=$with_wmf $have_wmf
49824X11 --with-x=$with_x $have_x
49825XML --with-xml=$with_xml $have_xml
49826ZLIB --with-zlib=$with_zlib $have_zlib
49827
49828X11 Configuration:
49829 X_CFLAGS = $X_CFLAGS
49830 X_PRE_LIBS = $X_PRE_LIBS
49831 X_LIBS = $X_LIBS
49832 X_EXTRA_LIBS = $X_EXTRA_LIBS
49833
49834Options used to compile and link:
49835 PREFIX = $PREFIX_DIR
49836 EXEC-PREFIX = $EXEC_PREFIX_DIR
49837 VERSION = $PACKAGE_VERSION
49838 CC = $CC
49839 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000049840 CPPFLAGS = $MAGICK_CPPFLAGS
49841 PCFLAGS = $MAGICK_PCFLAGS
49842 DEFS = $DEFS
49843 LDFLAGS = $LDFLAGS
49844 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49845 LIBS = $MAGICK_LIBS
49846 CXX = $CXX
49847 CXXFLAGS = $CXXFLAGS
49848" >&5
49849$as_echo "
49850ImageMagick is configured as follows. Please verify that this configuration
49851matches your expectations.
49852
49853Host system type: $host
49854Build system type: $build
49855
49856 Option Value
49857-------------------------------------------------------------------------------
49858Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49859Static libraries --enable-static=$enable_static $libtool_build_static_libs
49860Module support --with-modules=$with_modules $with_modules
49861GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49862Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49863High Dynamic Range Imagery
49864 --enable-hdri=$enable_hdri $enable_hdri
49865
49866Delegate Configuration:
49867BZLIB --with-bzlib=$with_bzlib $have_bzlib
49868Autotrace --with-autotrace=$with_autotrace $have_autotrace
49869DJVU --with-djvu=$with_djvu $have_djvu
49870DPS --with-dps=$with_dps $have_dps
49871FFTW --with-fftw=$with_fftw $have_fftw
49872FlashPIX --with-fpx=$with_fpx $have_fpx
49873FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49874FreeType --with-freetype=$with_freetype $have_freetype
49875GhostPCL None $PCLDelegate ($PCLVersion)
49876GhostXPS None $XPSDelegate ($XPSVersion)
49877Ghostscript None $PSDelegate ($GSVersion)
49878Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49879Ghostscript lib --with-gslib=$with_gslib $have_gslib
49880Graphviz --with-gvc=$with_gvc $have_gvc
49881JBIG --with-jbig=$with_jbig $have_jbig
49882JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49883JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49884LCMS --with-lcms=$with_lcms $have_lcms
49885LQR --with-lqr=$with_lqr $have_lqr
49886Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49887OpenEXR --with-openexr=$with_openexr $have_openexr
49888PERL --with-perl=$with_perl $have_perl
49889PNG --with-png=$with_png $have_png
49890RSVG --with-rsvg=$with_rsvg $have_rsvg
49891TIFF --with-tiff=$with_tiff $have_tiff
49892Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49893WMF --with-wmf=$with_wmf $have_wmf
49894X11 --with-x=$with_x $have_x
49895XML --with-xml=$with_xml $have_xml
49896ZLIB --with-zlib=$with_zlib $have_zlib
49897
49898X11 Configuration:
49899 X_CFLAGS = $X_CFLAGS
49900 X_PRE_LIBS = $X_PRE_LIBS
49901 X_LIBS = $X_LIBS
49902 X_EXTRA_LIBS = $X_EXTRA_LIBS
49903
49904Options used to compile and link:
49905 PREFIX = $PREFIX_DIR
49906 EXEC-PREFIX = $EXEC_PREFIX_DIR
49907 VERSION = $PACKAGE_VERSION
49908 CC = $CC
49909 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000049910 CPPFLAGS = $MAGICK_CPPFLAGS
49911 PCFLAGS = $MAGICK_PCFLAGS
49912 DEFS = $DEFS
49913 LDFLAGS = $LDFLAGS
49914 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49915 LIBS = $MAGICK_LIBS
49916 CXX = $CXX
49917 CXXFLAGS = $CXXFLAGS
49918" >&6; }