blob: 5074a50ec7e3eee66dfb0d363dcb8c85f85e70a4 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyf6fcb5d2010-09-24 01:19:13 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristyf6fcb5d2010-09-24 01:19:13 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristyd0bd44a2010-09-24 12:38:11 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
cristyf6fcb5d2010-09-24 01:19:13 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +0000366# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000367as_fn_error ()
368{
cristyf6fcb5d2010-09-24 01:19:13 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +0000373 fi
cristyf6fcb5d2010-09-24 01:19:13 +0000374 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristyd0bd44a2010-09-24 12:38:11 +0000531
cristycd4c5312009-11-22 01:19:08 +0000532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000534
535# Name of the host.
cristyf6fcb5d2010-09-24 01:19:13 +0000536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIBOBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000551
552# Identity of this package.
553PACKAGE_NAME='ImageMagick'
554PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000555PACKAGE_VERSION='6.6.4'
556PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000557PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000558PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000559
560ac_unique_file="magick/MagickCore.h"
561ac_config_libobj_dir=ltdl
562# Factoring default headers for most tests.
563ac_includes_default="\
564#include <stdio.h>
565#ifdef HAVE_SYS_TYPES_H
566# include <sys/types.h>
567#endif
568#ifdef HAVE_SYS_STAT_H
569# include <sys/stat.h>
570#endif
571#ifdef STDC_HEADERS
572# include <stdlib.h>
573# include <stddef.h>
574#else
575# ifdef HAVE_STDLIB_H
576# include <stdlib.h>
577# endif
578#endif
579#ifdef HAVE_STRING_H
580# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581# include <memory.h>
582# endif
583# include <string.h>
584#endif
585#ifdef HAVE_STRINGS_H
586# include <strings.h>
587#endif
588#ifdef HAVE_INTTYPES_H
589# include <inttypes.h>
590#endif
591#ifdef HAVE_STDINT_H
592# include <stdint.h>
593#endif
594#ifdef HAVE_UNISTD_H
595# include <unistd.h>
596#endif"
597
cristycd4c5312009-11-22 01:19:08 +0000598ac_header_list=
nicolas6237c462010-10-05 06:11:49 +0000599ac_subst_vars='LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000600MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000601MAGICK_LIBS
602MAGICK_LDFLAGS
603MAGICK_PCFLAGS
604MAGICK_CPPFLAGS
605MAGICK_CXXFLAGS
606MAGICK_CFLAGS
607MAGICK_DEP_LIBS
608MAGICK_LTDLDEPS
609MAGICK_LIBLTDL
610OSX_GCOV_LDFLAG
611DELEGATES
612MAGICKCORE_PATH
613PERL_SUPPORTS_DESTDIR
cristy3ed852e2009-09-05 21:47:34 +0000614GSVersion
615GSPSDevice
616GSPDFDevice
617GSMonoDevice
618GSEPSDevice
619GSColorDevice
620GSCMYKDevice
621GSAlphaDevice
622XPSVersion
623XPSCMYKDevice
624XPSColorDevice
625XPSMonoDevice
626PCLVersion
627PCLCMYKDevice
628PCLColorDevice
629PCLMonoDevice
cristy3ed852e2009-09-05 21:47:34 +0000630ZIP
cristy3ed852e2009-09-05 21:47:34 +0000631P7ZIP
cristy3ed852e2009-09-05 21:47:34 +0000632RPM
633PERL
634TAR
635ShowImageDelegate
636type_include_files
637ghostscript_font_dir
638windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000639dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000640PrintDelegate
641ZipDelegate
642XPSDelegate
643WWWDecodeDelegate
644WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000645UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000646TXTDelegate
647SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000648RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000649RMDelegate
650RLEEncodeDelegate
651PSDelegate
652POVDelegate
653PGPDecodeDelegate
654PCLDelegate
655MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000656MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000657MPEGEncodeDelegate
658MPEGDecodeDelegate
659MANDelegate
660LaunchDelegate
661LZWEncodeDelegate
662LZWDecodeDelegate
663LPRDelegate
664LPDelegate
665ILBMEncodeDelegate
666ILBMDecodeDelegate
667HTMLDecodeDelegate
668HPGLDecodeDelegate
669HDRDecodeDelegate
670GnuplotDecodeDelegate
671MogrifyDelegate
672DisplayDelegate
673ConvertDelegate
674FIGDecodeDelegate
675EditorDelegate
676EchoDelegate
677DVIDecodeDelegate
678GVCDecodeDelegate
679DNGDecodeDelegate
680CatDelegate
681CGMDecodeDelegate
682BrowseDelegate
683BZIPDelegate
684BlenderDecodeDelegate
685AVIDecodeDelegate
686AutotraceDecodeDelegate
687SHARE_CONFIGURE_PATH
688SHARE_PATH
689DOCUMENTATION_PATH
690FILTER_PATH
691CODER_PATH
692CONFIGURE_PATH
693LIBRARY_PATH
694EXECUTABLE_PATH
695PERLMAINCC
696XML_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000697xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000698WMF_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000699TIFF_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000700RSVG_LIBS
701RSVG_CFLAGS
702PNG_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000703OPENEXR_LIBS
704OPENEXR_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000705LQR_LIBS
706LQR_CFLAGS
707LCMS_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000708JP2_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000709JPEG_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000710JBIG_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000711GVC_LIBS
712GVC_CFLAGS
713GS_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000714FREETYPE_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000715freetype_config
cristy3ed852e2009-09-05 21:47:34 +0000716FONTCONFIG_LIBS
717FONTCONFIG_CFLAGS
718FPX_LIBS
nicolas6237c462010-10-05 06:11:49 +0000719CXXCPP
cristy3ed852e2009-09-05 21:47:34 +0000720FFTW_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000721DJVU_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000722DPS_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000723AUTOTRACE_LIBS
724AUTOTRACE_CFLAGS
725LIB_DL
726ZLIB_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000727XEXT_LIBS
728X11_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000729X_EXTRA_LIBS
730X_LIBS
731X_PRE_LIBS
732X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000733XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000734BZLIB_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000735CCMALLOCDelegate
736UMEM_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000737THREAD_LIBS
738GOMP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000739OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000740MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000741POW_LIB
742LIBOBJS
743UINTPTR_T
744UINTMAX_T
745UINT64_T
746INT64_T
747UINT32_T
748INT32_T
749UINT16_T
750INT16_T
751UINT8_T
752INT8_T
753LIBRARY_EXTRA_CPPFLAGS
754MODULE_EXTRA_CPPFLAGS
755LIBSTDCLDFLAGS
756PERL_MAKE_OPTIONS
757QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +0000758MAGICK_HDRI
759DLLDFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000760LIBTOOL_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000761LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000762CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000763OPENMP_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000764WinPathScript
cristy3ed852e2009-09-05 21:47:34 +0000765GDI32_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000766LN_S
nicolas6237c462010-10-05 06:11:49 +0000767SET_MAKE
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +0000771LD
cristy95646052009-11-28 23:05:30 +0000772ac_ct_CXX
773CXXFLAGS
774CXX
cristya0b81c32010-01-22 02:54:33 +0000775EGREP
776GREP
777CPP
cristy3ed852e2009-09-05 21:47:34 +0000778OBJEXT
779EXEEXT
780ac_ct_CC
781CPPFLAGS
782LDFLAGS
783CFLAGS
784CC
785DIRSEP
786MAGICK_FILTER_MODULE_PATH
787MAGICK_CONFIGURE_BUILD_PATH
788MAGICK_CONFIGURE_SRC_PATH
789MAGICK_CODER_MODULE_PATH
790MAN_DIR
791INFO_DIR
792PERSISTINCLUDE_DIR
793INCLUDE_DIR
794LIB_DIR
795LOCALSTATE_DIR
796SHAREDSTATE_DIR
797SYSCONF_DIR
798DATA_DIR
799LIBEXEC_DIR
800SBIN_DIR
801BIN_DIR
802EXEC_PREFIX_DIR
803PREFIX_DIR
804CONFIG_STATUS_DEPENDENCIES
805MAGICK_LIB_VERSION_NUMBER
806MAGICK_LIB_VERSION_TEXT
807MAGICK_LIB_VERSION
cristy15a88782010-01-31 23:24:49 +0000808PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000809PACKAGE_RELEASE_DATE
810PACKAGE_LIB_VERSION_NUMBER
811PACKAGE_LIB_VERSION
812PACKAGE_CHANGE_DATE
813PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000814MAGICK_LIBRARY_VERSION_INFO
815MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000816MAGICK_LIBRARY_AGE
817MAGICK_LIBRARY_REVISION
818MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000819MAGICK_TARGET_OS
820MAGICK_TARGET_VENDOR
821MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000822target_os
823target_vendor
824target_cpu
825target
826host_os
827host_vendor
828host_cpu
829host
830build_os
831build_vendor
832build_cpu
833build
834CONFIGURE_ARGS
835DISTCHECK_CONFIG_FLAGS
836target_alias
837host_alias
838build_alias
839LIBS
840ECHO_T
841ECHO_N
842ECHO_C
843DEFS
844mandir
845localedir
846libdir
847psdir
848pdfdir
849dvidir
850htmldir
851infodir
852docdir
853oldincludedir
854includedir
855localstatedir
856sharedstatedir
857sysconfdir
858datadir
859datarootdir
860libexecdir
861sbindir
862bindir
863program_transform_name
864prefix
865exec_prefix
cristy8b350f62009-11-15 23:12:43 +0000866PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +0000867PACKAGE_BUGREPORT
868PACKAGE_STRING
869PACKAGE_VERSION
870PACKAGE_TARNAME
871PACKAGE_NAME
872PATH_SEPARATOR
873SHELL'
874ac_subst_files=''
875ac_user_opts='
876enable_option_checking
cristy3ed852e2009-09-05 21:47:34 +0000877enable_bounds_checking
878enable_osx_universal_binary
879with_threads
880enable_openmp
881enable_largefile
cristy3ed852e2009-09-05 21:47:34 +0000882with_modules
883enable_delegate_build
884enable_deprecated
885enable_installed
886enable_cipher
887enable_embeddable
888enable_hdri
cristy3ed852e2009-09-05 21:47:34 +0000889enable_assert
cristy3ed852e2009-09-05 21:47:34 +0000890enable_ccmalloc
891enable_efence
892enable_prof
893enable_gprof
894enable_gcov
895with_method_prefix
896with_quantum_depth
897with_cache
898with_frozenpaths
899with_magick_plus_plus
900with_perl
901with_perl_options
902with_umem
903with_libstdc
904with_bzlib
cristyc7083c12009-10-14 03:16:55 +0000905with_x
cristy3ed852e2009-09-05 21:47:34 +0000906with_zlib
907with_autotrace
908with_dps
909with_djvu
cristy430a7312010-01-21 20:44:04 +0000910with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000911with_fftw
912with_fpx
913with_fontconfig
914with_freetype
915with_gslib
916with_fontpath
917with_gs_font_dir
918with_gvc
919with_jbig
920with_jpeg
921with_jp2
922with_lcms
cristy71203402010-06-18 13:12:03 +0000923with_lcms2
cristy3ed852e2009-09-05 21:47:34 +0000924with_lqr
925with_openexr
926with_png
927with_rsvg
928with_tiff
929with_windows_font_dir
930with_wmf
931with_xml
932'
933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939LIBS
940CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +0000941CPP
cristy3ed852e2009-09-05 21:47:34 +0000942CXX
943CXXFLAGS
944CCC
cristyc7083c12009-10-14 03:16:55 +0000945XMKMF
nicolas6237c462010-10-05 06:11:49 +0000946CXXCPP'
cristy3ed852e2009-09-05 21:47:34 +0000947
948
949# Initialize some variables set by options.
950ac_init_help=
951ac_init_version=false
952ac_unrecognized_opts=
953ac_unrecognized_sep=
954# The variables have the same names as the options, with
955# dashes changed to underlines.
956cache_file=/dev/null
957exec_prefix=NONE
958no_create=
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
967verbose=
968x_includes=NONE
969x_libraries=NONE
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
976# (The list follows the same order as the GNU Coding Standards.)
977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
996
997ac_prev=
998ac_dashdash=
999for ac_option
1000do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1006 fi
1007
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1043
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001055 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1076
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001081 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"enable_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001285 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyf6fcb5d2010-09-24 01:19:13 +00001301 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
cristyf6fcb5d2010-09-24 01:19:13 +00001331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyf6fcb5d2010-09-24 01:19:13 +00001340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001341 esac
cristy3ed852e2009-09-05 21:47:34 +00001342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00001358 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001359fi
1360
1361if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00001364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1367fi
1368
1369# Check all directory arguments for consistency.
1370for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1374do
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
cristyf6fcb5d2010-09-24 01:19:13 +00001387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001388done
1389
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
cristyf6fcb5d2010-09-24 01:19:13 +00001401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
cristy3ed852e2009-09-05 21:47:34 +00001403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406fi
1407
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
1412
1413
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyf6fcb5d2010-09-24 01:19:13 +00001417 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyf6fcb5d2010-09-24 01:19:13 +00001419 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001420
1421
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyf6fcb5d2010-09-24 01:19:13 +00001458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001459fi
1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461ac_abs_confdir=`(
cristyf6fcb5d2010-09-24 01:19:13 +00001462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001463 pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
1480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001488\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
cristyf6fcb5d2010-09-24 01:19:13 +00001502 -q, --quiet, --silent do not print \`checking...' messages
cristy3ed852e2009-09-05 21:47:34 +00001503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
1508Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541_ACEOF
1542
1543 cat <<\_ACEOF
1544
cristy3ed852e2009-09-05 21:47:34 +00001545X features:
1546 --x-includes=DIR X include files are in DIR
1547 --x-libraries=DIR X library files are in DIR
1548
1549System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 --target=TARGET configure for building compilers for TARGET [HOST]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001558 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001559 esac
1560 cat <<\_ACEOF
1561
1562Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy3ed852e2009-09-05 21:47:34 +00001566 --bounds-checking enable run-time bounds-checking
1567 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001568 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001569 --disable-openmp do not use OpenMP
1570 --disable-largefile omit support for large files
cristy3ed852e2009-09-05 21:47:34 +00001571 --enable-delegate-build look for delegate libraries in build directory
1572 --disable-deprecated exclude deprecated methods in MagickCore and
1573 MagickWand API's
1574 --disable-installed Formally install ImageMagick under PREFIX
1575 --disable-cipher disable enciphering and deciphering image pixels
1576 --enable-embeddable enable self-contained, embeddable,
1577 zero-configuration ImageMagick
1578 --enable-hdri accurately represent the wide range of intensity
1579 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001580 --disable-assert disable assert() statements in build
cristy3ed852e2009-09-05 21:47:34 +00001581 --enable-ccmalloc enable 'ccmalloc' memory debug support
1582 --enable-efence enable 'efence' memory debug support
1583 --enable-prof enable 'prof' profiling support
1584 --enable-gprof enable 'gprof' profiling support
1585 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001586 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001587
1588Optional Packages:
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy3ed852e2009-09-05 21:47:34 +00001591 --without-threads disable threads support
cristy3ed852e2009-09-05 21:47:34 +00001592 --with-modules enable building dynamically loadable modules
1593 --with-method-prefix=PREFIX
1594 prefix MagickCore API methods
1595 --with-quantum-depth=DEPTH
1596 number of bits in a pixel quantum (default 16)
1597 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1598 memory)
1599 --with-frozenpaths freeze delegate paths
1600 --without-magick-plus-plus
1601 disable build/install of Magick++
1602 --with-perl enable build/install of PerlMagick
1603 --with-perl-options=OPTIONS
1604 options to pass on command-line when generating
1605 PerlMagick's build file
1606 --with-umem enable umem memory allocation library support
1607 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1608 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001609 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001610 --without-zlib disable ZLIB support
1611 --with-autotrace enable autotrace support
1612 --without-dps disable Display Postscript support
1613 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001614 --with-dejavu-font-dir=DIR
1615 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001616 --without-fftw disable FFTW support
1617 --without-fpx disable FlashPIX support
1618 --without-fontconfig disable fontconfig support
1619 --without-freetype disable Freetype support
1620 --without-gslib enable Ghostscript library support
1621 --with-fontpath=DIR prepend to default font search path
1622 --with-gs-font-dir=DIR Ghostscript font directory
1623 --without-gvc disable GVC support
1624 --without-jbig disable JBIG support
1625 --without-jpeg disable JPEG support
1626 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001627 --without-lcms disable lcms (v1.1X) support
1628 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001629 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001630 --without-openexr disable OpenEXR support
1631 --without-png disable PNG support
1632 --without-rsvg disable RSVG support
1633 --without-tiff disable TIFF support
1634 --with-windows-font-dir=DIR
1635 directory containing MS-Windows fonts
1636 --without-wmf disable WMF support
1637 --without-xml disable XML support
1638
1639Some influential environment variables:
1640 CC C compiler command
1641 CFLAGS C compiler flags
1642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1643 nonstandard directory <lib dir>
1644 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001645 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001646 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001647 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001648 CXX C++ compiler command
1649 CXXFLAGS C++ compiler flags
cristyc7083c12009-10-14 03:16:55 +00001650 XMKMF Path to xmkmf, Makefile generator for X Window System
nicolas6237c462010-10-05 06:11:49 +00001651 CXXCPP C++ preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001652
1653Use these variables to override the choices made by `configure' or to help
1654it to find libraries and programs with nonstandard names/locations.
1655
1656Report bugs to <http://www.imagemagick.org>.
1657_ACEOF
1658ac_status=$?
1659fi
1660
1661if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 continue
1667 ac_builddir=.
1668
1669case "$ac_dir" in
1670.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671*)
1672 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 esac ;;
1679esac
1680ac_abs_top_builddir=$ac_pwd
1681ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682# for backward compatibility:
1683ac_top_builddir=$ac_top_build_prefix
1684
1685case $srcdir in
1686 .) # We are building in place.
1687 ac_srcdir=.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1694 *) # Relative name.
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698esac
1699ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1707 echo &&
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1709 else
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711 fi || ac_status=$?
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1713 done
1714fi
1715
1716test -n "$ac_init_help" && exit $ac_status
1717if $ac_init_version; then
1718 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001719ImageMagick configure 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +00001720generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00001721
cristyf6fcb5d2010-09-24 01:19:13 +00001722Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001723This configure script is free software; the Free Software Foundation
1724gives unlimited permission to copy, distribute and modify it.
1725_ACEOF
1726 exit
1727fi
cristy8b350f62009-11-15 23:12:43 +00001728
1729## ------------------------ ##
1730## Autoconf initialization. ##
1731## ------------------------ ##
1732
1733# ac_fn_c_try_compile LINENO
1734# --------------------------
1735# Try to compile conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_c_try_compile ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1741case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765fi
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00001767 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00001768
1769} # ac_fn_c_try_compile
1770
cristy95646052009-11-28 23:05:30 +00001771# ac_fn_c_try_cpp LINENO
1772# ----------------------
1773# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_cpp ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_cpp conftest.$ac_ext"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } >/dev/null && {
1793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 }; then :
1796 ac_retval=0
1797else
1798 $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802fi
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_cpp
1807
cristy8b350f62009-11-15 23:12:43 +00001808# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1809# -------------------------------------------------------
1810# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1811# the include files in INCLUDES and setting the cache variable VAR
1812# accordingly.
1813ac_fn_c_check_header_mongrel ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00001816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00001817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00001819if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00001820 $as_echo_n "(cached) " >&6
1821fi
1822eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825else
1826 # Is the header compilable?
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1828$as_echo_n "checking $2 usability... " >&6; }
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831$4
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_header_compiler=yes
1836else
1837 ac_header_compiler=no
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1841$as_echo "$ac_header_compiler" >&6; }
1842
1843# Is the header present?
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1845$as_echo_n "checking $2 presence... " >&6; }
1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848#include <$2>
1849_ACEOF
1850if ac_fn_c_try_cpp "$LINENO"; then :
1851 ac_header_preproc=yes
1852else
1853 ac_header_preproc=no
1854fi
1855rm -f conftest.err conftest.$ac_ext
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1857$as_echo "$ac_header_preproc" >&6; }
1858
1859# So? What about this header?
1860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1861 yes:no: )
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1863$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 ;;
1867 no:yes:* )
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1869$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1871$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1873$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1875$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00001878( cat <<\_ASBOX
1879## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00001880## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00001881## ----------------------------------------- ##
1882_ASBOX
cristy8b350f62009-11-15 23:12:43 +00001883 ) | sed "s/^/$as_me: WARNING: /" >&2
1884 ;;
1885esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00001888if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00001889 $as_echo_n "(cached) " >&6
1890else
1891 eval "$3=\$ac_header_compiler"
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896fi
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898
1899} # ac_fn_c_check_header_mongrel
1900
1901# ac_fn_c_try_run LINENO
1902# ----------------------
1903# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904# that executables *can* be run.
1905ac_fn_c_try_run ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1909case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1916 ac_status=$?
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1929 ac_retval=0
1930else
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=$ac_status
1936fi
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00001939 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00001940
1941} # ac_fn_c_try_run
1942
1943# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944# -------------------------------------------------------
1945# Tests whether HEADER exists and can be compiled using the include files in
1946# INCLUDES, setting the cache variable VAR accordingly.
1947ac_fn_c_check_header_compile ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00001952if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00001953 $as_echo_n "(cached) " >&6
1954else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958#include <$2>
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$3=yes"
1962else
1963 eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972} # ac_fn_c_check_header_compile
1973
cristya0b81c32010-01-22 02:54:33 +00001974# ac_fn_cxx_try_compile LINENO
1975# ----------------------------
1976# Try to compile conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_cxx_try_compile ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1982case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_cxx_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2000 ac_retval=0
2001else
2002 $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=1
2006fi
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008 as_fn_set_status $ac_retval
2009
2010} # ac_fn_cxx_try_compile
2011
cristy8b350f62009-11-15 23:12:43 +00002012# ac_fn_c_try_link LINENO
2013# -----------------------
2014# Try to link conftest.$ac_ext, and return whether this succeeded.
2015ac_fn_c_try_link ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext conftest$ac_exeext
2019 if { { ac_try="$ac_link"
2020case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023esac
2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025$as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2032 fi
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_c_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest$ac_exeext && {
2038 test "$cross_compiling" = yes ||
2039 $as_test_x conftest$ac_exeext
2040 }; then :
2041 ac_retval=0
2042else
2043 $as_echo "$as_me: failed program was:" >&5
2044sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 ac_retval=1
2047fi
2048 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2049 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2050 # interfere with the next link command; also delete a directory that is
2051 # left behind by Apple's compiler. We do this before executing the actions.
2052 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002054 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002055
2056} # ac_fn_c_try_link
2057
cristy8b350f62009-11-15 23:12:43 +00002058# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059# -------------------------------------------
2060# Tests whether TYPE exists after having included INCLUDES, setting cache
2061# variable VAR accordingly.
2062ac_fn_c_check_type ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002067if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002068 $as_echo_n "(cached) " >&6
2069else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073$4
2074int
2075main ()
2076{
2077if (sizeof ($2))
2078 return 0;
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090if (sizeof (($2)))
2091 return 0;
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097
2098else
2099 eval "$3=yes"
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109
2110} # ac_fn_c_check_type
2111
cristy92703d82010-04-26 00:18:18 +00002112# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2113# ----------------------------------------------------
2114# Tries to find if the field MEMBER exists in type AGGR, after including
2115# INCLUDES, setting cache variable VAR accordingly.
2116ac_fn_c_check_member ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2120$as_echo_n "checking for $2.$3... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002121if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy92703d82010-04-26 00:18:18 +00002122 $as_echo_n "(cached) " >&6
2123else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$5
2127int
2128main ()
2129{
2130static $2 ac_aggr;
2131if (ac_aggr.$3)
2132return 0;
2133 ;
2134 return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138 eval "$4=yes"
2139else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$5
2143int
2144main ()
2145{
2146static $2 ac_aggr;
2147if (sizeof ac_aggr.$3)
2148return 0;
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$4=yes"
2155else
2156 eval "$4=no"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$4
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166
2167} # ac_fn_c_check_member
2168
nicolas6237c462010-10-05 06:11:49 +00002169# ac_fn_c_check_decl LINENO SYMBOL VAR
2170# ------------------------------------
2171# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2172ac_fn_c_check_decl ()
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2176$as_echo_n "checking whether $2 is declared... " >&6; }
2177if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2179else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183int
2184main ()
2185{
2186#ifndef $2
2187 (void) $2;
2188#endif
2189
2190 ;
2191 return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195 eval "$3=yes"
2196else
2197 eval "$3=no"
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201eval ac_res=\$$3
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205
2206} # ac_fn_c_check_decl
2207
cristy8b350f62009-11-15 23:12:43 +00002208# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2209# --------------------------------------------
2210# Tries to find the compile-time value of EXPR in a program that includes
2211# INCLUDES, setting VAR accordingly. Returns whether the value could be
2212# computed
2213ac_fn_c_compute_int ()
2214{
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if test "$cross_compiling" = yes; then
2217 # Depending upon the size, compute the lo and hi bounds.
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) >= 0)];
2225test_array [0] = 0
2226
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232 ac_lo=0 ac_mid=0
2233 while :; do
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236$4
2237int
2238main ()
2239{
2240static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2241test_array [0] = 0
2242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 ac_hi=$ac_mid; break
2249else
2250 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2251 if test $ac_lo -le $ac_mid; then
2252 ac_lo= ac_hi=
2253 break
2254 fi
2255 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2256fi
2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 done
2259else
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h. */
2262$4
2263int
2264main ()
2265{
2266static int test_array [1 - 2 * !(($2) < 0)];
2267test_array [0] = 0
2268
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273if ac_fn_c_try_compile "$LINENO"; then :
2274 ac_hi=-1 ac_mid=-1
2275 while :; do
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$4
2279int
2280main ()
2281{
2282static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2283test_array [0] = 0
2284
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289if ac_fn_c_try_compile "$LINENO"; then :
2290 ac_lo=$ac_mid; break
2291else
2292 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2293 if test $ac_mid -le $ac_hi; then
2294 ac_lo= ac_hi=
2295 break
2296 fi
2297 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 done
2301else
2302 ac_lo= ac_hi=
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307# Binary search between lo and hi bounds.
2308while test "x$ac_lo" != "x$ac_hi"; do
2309 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313int
2314main ()
2315{
2316static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2317test_array [0] = 0
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_hi=$ac_mid
2325else
2326 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2327fi
2328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329done
2330case $ac_lo in #((
2331?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2332'') ac_retval=1 ;;
2333esac
2334 else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336/* end confdefs.h. */
2337$4
2338static long int longval () { return $2; }
2339static unsigned long int ulongval () { return $2; }
2340#include <stdio.h>
2341#include <stdlib.h>
2342int
2343main ()
2344{
2345
2346 FILE *f = fopen ("conftest.val", "w");
2347 if (! f)
2348 return 1;
2349 if (($2) < 0)
2350 {
2351 long int i = longval ();
2352 if (i != ($2))
2353 return 1;
2354 fprintf (f, "%ld", i);
2355 }
2356 else
2357 {
2358 unsigned long int i = ulongval ();
2359 if (i != ($2))
2360 return 1;
2361 fprintf (f, "%lu", i);
2362 }
2363 /* Do not output a trailing newline, as this causes \r\n confusion
2364 on some platforms. */
2365 return ferror (f) || fclose (f) != 0;
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371if ac_fn_c_try_run "$LINENO"; then :
2372 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2373else
2374 ac_retval=1
2375fi
2376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2377 conftest.$ac_objext conftest.beam conftest.$ac_ext
2378rm -f conftest.val
2379
2380 fi
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002382 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002383
2384} # ac_fn_c_compute_int
2385
nicolas6237c462010-10-05 06:11:49 +00002386# ac_fn_c_check_func LINENO FUNC VAR
2387# ----------------------------------
2388# Tests whether FUNC exists, setting the cache variable VAR accordingly
2389ac_fn_c_check_func ()
2390{
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2393$as_echo_n "checking for $2... " >&6; }
2394if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2395 $as_echo_n "(cached) " >&6
2396else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398/* end confdefs.h. */
2399/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2401#define $2 innocuous_$2
2402
2403/* System header to define __stub macros and hopefully few prototypes,
2404 which can conflict with char $2 (); below.
2405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2406 <limits.h> exists even on freestanding compilers. */
2407
2408#ifdef __STDC__
2409# include <limits.h>
2410#else
2411# include <assert.h>
2412#endif
2413
2414#undef $2
2415
2416/* Override any GCC internal prototype to avoid an error.
2417 Use char because int might match the return type of a GCC
2418 builtin and then its argument prototype would still apply. */
2419#ifdef __cplusplus
2420extern "C"
2421#endif
2422char $2 ();
2423/* The GNU C library defines this for functions which it implements
2424 to always fail with ENOSYS. Some functions are actually named
2425 something starting with __ and the normal name is an alias. */
2426#if defined __stub_$2 || defined __stub___$2
2427choke me
2428#endif
2429
2430int
2431main ()
2432{
2433return $2 ();
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438if ac_fn_c_try_link "$LINENO"; then :
2439 eval "$3=yes"
2440else
2441 eval "$3=no"
2442fi
2443rm -f core conftest.err conftest.$ac_objext \
2444 conftest$ac_exeext conftest.$ac_ext
2445fi
2446eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448$as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450
2451} # ac_fn_c_check_func
2452
2453# ac_fn_cxx_try_link LINENO
2454# -------------------------
2455# Try to link conftest.$ac_ext, and return whether this succeeded.
2456ac_fn_cxx_try_link ()
2457{
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { { ac_try="$ac_link"
2461case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464esac
2465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466$as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2473 fi
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2481 }; then :
2482 ac_retval=0
2483else
2484 $as_echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_retval=1
2488fi
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 as_fn_set_status $ac_retval
2496
2497} # ac_fn_cxx_try_link
2498
2499# ac_fn_cxx_try_cpp LINENO
2500# ------------------------
2501# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2502ac_fn_cxx_try_cpp ()
2503{
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 if { { ac_try="$ac_cpp conftest.$ac_ext"
2506case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511$as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2513 ac_status=$?
2514 if test -s conftest.err; then
2515 grep -v '^ *+' conftest.err >conftest.er1
2516 cat conftest.er1 >&5
2517 mv -f conftest.er1 conftest.err
2518 fi
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } >/dev/null && {
2521 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2522 test ! -s conftest.err
2523 }; then :
2524 ac_retval=0
2525else
2526 $as_echo "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 ac_retval=1
2530fi
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532 as_fn_set_status $ac_retval
2533
2534} # ac_fn_cxx_try_cpp
2535
cristy8b350f62009-11-15 23:12:43 +00002536# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2537# ---------------------------------------------------------
2538# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2539# the include files in INCLUDES and setting the cache variable VAR
2540# accordingly.
2541ac_fn_cxx_check_header_mongrel ()
2542{
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyf6fcb5d2010-09-24 01:19:13 +00002544 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002547if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002548 $as_echo_n "(cached) " >&6
2549fi
2550eval ac_res=\$$3
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552$as_echo "$ac_res" >&6; }
2553else
2554 # Is the header compilable?
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2556$as_echo_n "checking $2 usability... " >&6; }
2557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558/* end confdefs.h. */
2559$4
2560#include <$2>
2561_ACEOF
2562if ac_fn_cxx_try_compile "$LINENO"; then :
2563 ac_header_compiler=yes
2564else
2565 ac_header_compiler=no
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2569$as_echo "$ac_header_compiler" >&6; }
2570
2571# Is the header present?
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2573$as_echo_n "checking $2 presence... " >&6; }
2574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575/* end confdefs.h. */
2576#include <$2>
2577_ACEOF
2578if ac_fn_cxx_try_cpp "$LINENO"; then :
2579 ac_header_preproc=yes
2580else
2581 ac_header_preproc=no
2582fi
2583rm -f conftest.err conftest.$ac_ext
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2585$as_echo "$ac_header_preproc" >&6; }
2586
2587# So? What about this header?
2588case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2589 yes:no: )
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2591$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2593$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2594 ;;
2595 no:yes:* )
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2597$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2599$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2601$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2603$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2605$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00002606( cat <<\_ASBOX
2607## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002608## Report this to http://www.imagemagick.org ##
cristyf6fcb5d2010-09-24 01:19:13 +00002609## ----------------------------------------- ##
2610_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002611 ) | sed "s/^/$as_me: WARNING: /" >&2
2612 ;;
2613esac
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615$as_echo_n "checking for $2... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00002616if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002617 $as_echo_n "(cached) " >&6
2618else
2619 eval "$3=\$ac_header_compiler"
2620fi
2621eval ac_res=\$$3
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623$as_echo "$ac_res" >&6; }
2624fi
2625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2626
2627} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002628cat >config.log <<_ACEOF
2629This file contains any messages produced by compilers while
2630running configure, to aid debugging if configure makes a mistake.
2631
cristy56225732010-09-04 23:44:25 +00002632It was created by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +00002633generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002634
2635 $ $0 $@
2636
2637_ACEOF
2638exec 5>>config.log
2639{
2640cat <<_ASUNAME
2641## --------- ##
2642## Platform. ##
2643## --------- ##
2644
2645hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2646uname -m = `(uname -m) 2>/dev/null || echo unknown`
2647uname -r = `(uname -r) 2>/dev/null || echo unknown`
2648uname -s = `(uname -s) 2>/dev/null || echo unknown`
2649uname -v = `(uname -v) 2>/dev/null || echo unknown`
2650
2651/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2652/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2653
2654/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2655/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2656/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2657/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2658/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2659/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2660/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2661
2662_ASUNAME
2663
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002669 $as_echo "PATH: $as_dir"
2670 done
cristy3ed852e2009-09-05 21:47:34 +00002671IFS=$as_save_IFS
2672
2673} >&5
2674
2675cat >&5 <<_ACEOF
2676
2677
2678## ----------- ##
2679## Core tests. ##
2680## ----------- ##
2681
2682_ACEOF
2683
2684
2685# Keep a trace of the command line.
2686# Strip out --no-create and --no-recursion so they do not pile up.
2687# Strip out --silent because we don't want to record it for future runs.
2688# Also quote any args containing shell meta-characters.
2689# Make two passes to allow for proper duplicate-argument suppression.
2690ac_configure_args=
2691ac_configure_args0=
2692ac_configure_args1=
2693ac_must_keep_next=false
2694for ac_pass in 1 2
2695do
2696 for ac_arg
2697 do
2698 case $ac_arg in
2699 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2701 | -silent | --silent | --silen | --sile | --sil)
2702 continue ;;
2703 *\'*)
2704 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 esac
2706 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002707 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002708 2)
cristy8b350f62009-11-15 23:12:43 +00002709 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002710 if test $ac_must_keep_next = true; then
2711 ac_must_keep_next=false # Got value, back to normal.
2712 else
2713 case $ac_arg in
2714 *=* | --config-cache | -C | -disable-* | --disable-* \
2715 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2716 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2717 | -with-* | --with-* | -without-* | --without-* | --x)
2718 case "$ac_configure_args0 " in
2719 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2720 esac
2721 ;;
2722 -* ) ac_must_keep_next=true ;;
2723 esac
2724 fi
cristy8b350f62009-11-15 23:12:43 +00002725 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002726 ;;
2727 esac
2728 done
2729done
cristy8b350f62009-11-15 23:12:43 +00002730{ ac_configure_args0=; unset ac_configure_args0;}
2731{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002732
2733# When interrupted or exit'd, cleanup temporary files, and complete
2734# config.log. We remove comments because anyway the quotes in there
2735# would cause problems or look ugly.
2736# WARNING: Use '\'' to represent an apostrophe within the trap.
2737# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2738trap 'exit_status=$?
2739 # Save into config.log some information that might help in debugging.
2740 {
2741 echo
2742
cristyf6fcb5d2010-09-24 01:19:13 +00002743 cat <<\_ASBOX
2744## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00002745## Cache variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00002746## ---------------- ##
2747_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00002748 echo
2749 # The following way of writing the cache mishandles newlines in values,
2750(
2751 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2752 eval ac_val=\$$ac_var
2753 case $ac_val in #(
2754 *${as_nl}*)
2755 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00002756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00002757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2758 esac
2759 case $ac_var in #(
2760 _ | IFS | as_nl) ;; #(
2761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00002762 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00002763 esac ;;
2764 esac
2765 done
2766 (set) 2>&1 |
2767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2768 *${as_nl}ac_space=\ *)
2769 sed -n \
2770 "s/'\''/'\''\\\\'\'''\''/g;
2771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2772 ;; #(
2773 *)
2774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2775 ;;
2776 esac |
2777 sort
2778)
2779 echo
2780
cristyf6fcb5d2010-09-24 01:19:13 +00002781 cat <<\_ASBOX
2782## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00002783## Output variables. ##
cristyf6fcb5d2010-09-24 01:19:13 +00002784## ----------------- ##
2785_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00002786 echo
2787 for ac_var in $ac_subst_vars
2788 do
2789 eval ac_val=\$$ac_var
2790 case $ac_val in
2791 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 esac
2793 $as_echo "$ac_var='\''$ac_val'\''"
2794 done | sort
2795 echo
2796
2797 if test -n "$ac_subst_files"; then
cristyf6fcb5d2010-09-24 01:19:13 +00002798 cat <<\_ASBOX
2799## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00002800## File substitutions. ##
cristyf6fcb5d2010-09-24 01:19:13 +00002801## ------------------- ##
2802_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00002803 echo
2804 for ac_var in $ac_subst_files
2805 do
2806 eval ac_val=\$$ac_var
2807 case $ac_val in
2808 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2809 esac
2810 $as_echo "$ac_var='\''$ac_val'\''"
2811 done | sort
2812 echo
2813 fi
2814
2815 if test -s confdefs.h; then
cristyf6fcb5d2010-09-24 01:19:13 +00002816 cat <<\_ASBOX
2817## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00002818## confdefs.h. ##
cristyf6fcb5d2010-09-24 01:19:13 +00002819## ----------- ##
2820_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00002821 echo
2822 cat confdefs.h
2823 echo
2824 fi
2825 test "$ac_signal" != 0 &&
2826 $as_echo "$as_me: caught signal $ac_signal"
2827 $as_echo "$as_me: exit $exit_status"
2828 } >&5
2829 rm -f core *.core core.conftest.* &&
2830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2831 exit $exit_status
2832' 0
2833for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00002834 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00002835done
2836ac_signal=0
2837
2838# confdefs.h avoids OS command line length limits that DEFS can exceed.
2839rm -f -r conftest* confdefs.h
2840
cristy8b350f62009-11-15 23:12:43 +00002841$as_echo "/* confdefs.h */" > confdefs.h
2842
cristy3ed852e2009-09-05 21:47:34 +00002843# Predefined preprocessor variables.
2844
2845cat >>confdefs.h <<_ACEOF
2846#define PACKAGE_NAME "$PACKAGE_NAME"
2847_ACEOF
2848
cristy3ed852e2009-09-05 21:47:34 +00002849cat >>confdefs.h <<_ACEOF
2850#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2851_ACEOF
2852
cristy3ed852e2009-09-05 21:47:34 +00002853cat >>confdefs.h <<_ACEOF
2854#define PACKAGE_VERSION "$PACKAGE_VERSION"
2855_ACEOF
2856
cristy3ed852e2009-09-05 21:47:34 +00002857cat >>confdefs.h <<_ACEOF
2858#define PACKAGE_STRING "$PACKAGE_STRING"
2859_ACEOF
2860
cristy3ed852e2009-09-05 21:47:34 +00002861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2863_ACEOF
2864
cristy8b350f62009-11-15 23:12:43 +00002865cat >>confdefs.h <<_ACEOF
2866#define PACKAGE_URL "$PACKAGE_URL"
2867_ACEOF
2868
cristy3ed852e2009-09-05 21:47:34 +00002869
2870# Let the site file select an alternate cache file if it wants to.
2871# Prefer an explicitly selected file to automatically selected ones.
2872ac_site_file1=NONE
2873ac_site_file2=NONE
2874if test -n "$CONFIG_SITE"; then
cristyf6fcb5d2010-09-24 01:19:13 +00002875 ac_site_file1=$CONFIG_SITE
cristy3ed852e2009-09-05 21:47:34 +00002876elif test "x$prefix" != xNONE; then
2877 ac_site_file1=$prefix/share/config.site
2878 ac_site_file2=$prefix/etc/config.site
2879else
2880 ac_site_file1=$ac_default_prefix/share/config.site
2881 ac_site_file2=$ac_default_prefix/etc/config.site
2882fi
2883for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2884do
2885 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00002886 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00002887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00002888$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2889 sed 's/^/| /' "$ac_site_file" >&5
cristyf6fcb5d2010-09-24 01:19:13 +00002890 . "$ac_site_file"
cristy3ed852e2009-09-05 21:47:34 +00002891 fi
2892done
2893
2894if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00002895 # Some versions of bash will fail to source /dev/null (special files
2896 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2897 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00002898 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00002899$as_echo "$as_me: loading cache $cache_file" >&6;}
2900 case $cache_file in
2901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2902 *) . "./$cache_file";;
2903 esac
2904 fi
2905else
cristy8b350f62009-11-15 23:12:43 +00002906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00002907$as_echo "$as_me: creating cache $cache_file" >&6;}
2908 >$cache_file
2909fi
2910
cristycd4c5312009-11-22 01:19:08 +00002911as_fn_append ac_header_list " stdlib.h"
2912as_fn_append ac_header_list " unistd.h"
2913as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00002914# Check that the precious variables saved in the cache have kept the same
2915# value.
2916ac_cache_corrupted=false
2917for ac_var in $ac_precious_vars; do
2918 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2919 eval ac_new_set=\$ac_env_${ac_var}_set
2920 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2921 eval ac_new_val=\$ac_env_${ac_var}_value
2922 case $ac_old_set,$ac_new_set in
2923 set,)
cristy8b350f62009-11-15 23:12:43 +00002924 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00002925$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2926 ac_cache_corrupted=: ;;
2927 ,set)
cristy8b350f62009-11-15 23:12:43 +00002928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00002929$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2930 ac_cache_corrupted=: ;;
2931 ,);;
2932 *)
2933 if test "x$ac_old_val" != "x$ac_new_val"; then
2934 # differences in whitespace do not lead to failure.
2935 ac_old_val_w=`echo x $ac_old_val`
2936 ac_new_val_w=`echo x $ac_new_val`
2937 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00002938 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00002939$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2940 ac_cache_corrupted=:
2941 else
cristy8b350f62009-11-15 23:12:43 +00002942 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00002943$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2944 eval $ac_var=\$ac_old_val
2945 fi
cristy8b350f62009-11-15 23:12:43 +00002946 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00002947$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00002948 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00002949$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2950 fi;;
2951 esac
2952 # Pass precious variables to config.status.
2953 if test "$ac_new_set" = set; then
2954 case $ac_new_val in
2955 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2956 *) ac_arg=$ac_var=$ac_new_val ;;
2957 esac
2958 case " $ac_configure_args " in
2959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00002960 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002961 esac
2962 fi
2963done
2964if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00002965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00002966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00002967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00002968$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00002969 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00002970fi
cristy8b350f62009-11-15 23:12:43 +00002971## -------------------- ##
2972## Main body of script. ##
2973## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00002974
2975ac_ext=c
2976ac_cpp='$CPP $CPPFLAGS'
2977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982
2983ac_aux_dir=
2984for ac_dir in config "$srcdir"/config; do
cristyf6fcb5d2010-09-24 01:19:13 +00002985 for ac_t in install-sh install.sh shtool; do
2986 if test -f "$ac_dir/$ac_t"; then
2987 ac_aux_dir=$ac_dir
2988 ac_install_sh="$ac_aux_dir/$ac_t -c"
2989 break 2
2990 fi
2991 done
cristy3ed852e2009-09-05 21:47:34 +00002992done
2993if test -z "$ac_aux_dir"; then
cristyf6fcb5d2010-09-24 01:19:13 +00002994 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00002995fi
2996
2997# These three variables are undocumented and unsupported,
2998# and are intended to be withdrawn in a future Autoconf release.
2999# They can cause serious problems if a builder's source tree is in a directory
3000# whose full name contains unusual characters.
3001ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3002ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3003ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3004
3005
3006
3007
3008ac_config_headers="$ac_config_headers config/config.h"
3009
nicolas6237c462010-10-05 06:11:49 +00003010AX_PREFIX_CONFIG_H(magick/magick-config.h,MagickCore)
cristy430a7312010-01-21 20:44:04 +00003011ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml 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"
cristy3ed852e2009-09-05 21:47:34 +00003012
3013
3014#
3015# Save initial user-tunable values
3016#
3017USER_LIBS=$LIBS
3018for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3019 eval isset=\${$var+set}
3020 if test "$isset" = 'set'; then
3021 eval val=$`echo $var`
3022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3023 fi
3024done
3025
3026
3027CONFIGURE_ARGS="$0 ${ac_configure_args}"
3028
3029
3030# Source file containing package/library versioning information.
3031. ${srcdir}/version.sh
3032
cristy15a88782010-01-31 23:24:49 +00003033echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003034# Make sure we can run config.sub.
3035$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyf6fcb5d2010-09-24 01:19:13 +00003036 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003037
cristy8b350f62009-11-15 23:12:43 +00003038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003039$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003040if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003041 $as_echo_n "(cached) " >&6
3042else
3043 ac_build_alias=$build_alias
3044test "x$ac_build_alias" = x &&
3045 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3046test "x$ac_build_alias" = x &&
cristyf6fcb5d2010-09-24 01:19:13 +00003047 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003048ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003049 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003050
3051fi
cristy8b350f62009-11-15 23:12:43 +00003052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003053$as_echo "$ac_cv_build" >&6; }
3054case $ac_cv_build in
3055*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003056*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003057esac
3058build=$ac_cv_build
3059ac_save_IFS=$IFS; IFS='-'
3060set x $ac_cv_build
3061shift
3062build_cpu=$1
3063build_vendor=$2
3064shift; shift
3065# Remember, the first character of IFS is used to create $*,
3066# except with old shells:
3067build_os=$*
3068IFS=$ac_save_IFS
3069case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3070
3071
cristy8b350f62009-11-15 23:12:43 +00003072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003073$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003074if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003075 $as_echo_n "(cached) " >&6
3076else
3077 if test "x$host_alias" = x; then
3078 ac_cv_host=$ac_cv_build
3079else
3080 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003081 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003082fi
3083
3084fi
cristy8b350f62009-11-15 23:12:43 +00003085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003086$as_echo "$ac_cv_host" >&6; }
3087case $ac_cv_host in
3088*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003089*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003090esac
3091host=$ac_cv_host
3092ac_save_IFS=$IFS; IFS='-'
3093set x $ac_cv_host
3094shift
3095host_cpu=$1
3096host_vendor=$2
3097shift; shift
3098# Remember, the first character of IFS is used to create $*,
3099# except with old shells:
3100host_os=$*
3101IFS=$ac_save_IFS
3102case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3103
3104
cristy8b350f62009-11-15 23:12:43 +00003105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003106$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003107if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003108 $as_echo_n "(cached) " >&6
3109else
3110 if test "x$target_alias" = x; then
3111 ac_cv_target=$ac_cv_host
3112else
3113 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyf6fcb5d2010-09-24 01:19:13 +00003114 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003115fi
3116
3117fi
cristy8b350f62009-11-15 23:12:43 +00003118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003119$as_echo "$ac_cv_target" >&6; }
3120case $ac_cv_target in
3121*-*-*) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00003122*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003123esac
3124target=$ac_cv_target
3125ac_save_IFS=$IFS; IFS='-'
3126set x $ac_cv_target
3127shift
3128target_cpu=$1
3129target_vendor=$2
3130shift; shift
3131# Remember, the first character of IFS is used to create $*,
3132# except with old shells:
3133target_os=$*
3134IFS=$ac_save_IFS
3135case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3136
3137
3138# The aliases save the names the user supplied, while $host etc.
3139# will get canonicalized.
3140test -n "$target_alias" &&
3141 test "$program_prefix$program_suffix$program_transform_name" = \
3142 NONENONEs,x,x, &&
3143 program_prefix=${target_alias}-
3144
cristy837d6dc2010-02-27 01:16:57 +00003145
3146
3147
3148
cristy3225a072010-04-17 01:47:28 +00003149MAGICK_TARGET_CPU=$target_cpu
3150
3151
3152MAGICK_TARGET_VENDOR=$target_vendor
3153
3154
3155MAGICK_TARGET_OS=$target_os
3156
3157
cristy3ed852e2009-09-05 21:47:34 +00003158# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003159MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3160
3161MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3162
cristy3ed852e2009-09-05 21:47:34 +00003163
3164
3165# Ensure that make can run correctly
nicolas6237c462010-10-05 06:11:49 +00003166AM_SANITY_CHECK
cristy3ed852e2009-09-05 21:47:34 +00003167
nicolas6237c462010-10-05 06:11:49 +00003168AM_INIT_AUTOMAKE($PACKAGE_NAME,"${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}", ' ')
cristy3ed852e2009-09-05 21:47:34 +00003169
3170# Enable support for silent build rules
nicolas6237c462010-10-05 06:11:49 +00003171AM_SILENT_RULES(yes)
cristy3ed852e2009-09-05 21:47:34 +00003172
3173MAGICK_LIB_VERSION="0x"
3174if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3175 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3176fi
3177MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3178if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3179 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3180fi
3181MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3182if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3183 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3184fi
3185MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3186
3187
3188# Definition used to define MagickLibVersionText in version.h
3189MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3190
3191
3192# Definition used to define MagickLibVersionNumber in version.h
3193MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3194
3195
3196# Regenerate config.status if ChangeLog or version.sh is updated.
3197CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3198
3199
3200PERLMAINCC=$CC
3201
3202MAGICK_CFLAGS=''
3203MAGICK_CPPFLAGS=$CPPFLAGS_USER
3204MAGICK_PCFLAGS=$CPPFLAGS_USER
3205MAGICK_LDFLAGS=''
3206MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003207MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003208
3209#
3210# Evaluate shell variable equivalents to Makefile directory variables
3211#
3212if test "x$prefix" = xNONE; then
3213 prefix=$ac_default_prefix
3214fi
3215# Let make expand exec_prefix.
3216if test "x$exec_prefix" = xNONE; then
3217 exec_prefix='${prefix}'
3218fi
3219
3220#
3221eval "eval PREFIX_DIR=${prefix}"
3222
3223eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3224
3225eval "eval BIN_DIR=$bindir"
3226
3227eval "eval SBIN_DIR=$sbindir"
3228
3229eval "eval LIBEXEC_DIR=$libexecdir"
3230
3231eval "eval DATA_DIR=$datadir"
3232
3233eval "eval SYSCONF_DIR=$sysconfdir"
3234
3235eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3236
3237eval "eval LOCALSTATE_DIR=$localstatedir"
3238
3239eval "eval LIB_DIR=$libdir"
3240
3241eval "eval INCLUDE_DIR=$includedir"
3242
3243eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3244
3245eval "eval INFO_DIR=$infodir"
3246
3247eval "eval MAN_DIR=$mandir"
3248
3249
3250# Get full paths to source and build directories
3251srcdirfull="`cd $srcdir && pwd`"
3252builddir="`pwd`"
3253
3254#
3255# Compute variables useful for running uninstalled software.
3256#
3257MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3258MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3259MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3260MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3261DIRSEP=':'
3262case "${build_os}" in
3263 mingw* )
3264 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3265 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3266 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3267 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3268 DIRSEP=';'
3269 ;;
3270esac
3271case "${host_os}" in
3272 mingw* )
3273 DIRSEP=';'
3274 ;;
3275esac
3276
3277
3278
3279
3280
3281
cristya0b81c32010-01-22 02:54:33 +00003282
3283#
3284# Enable OS features.
3285#
cristy3ed852e2009-09-05 21:47:34 +00003286ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003295$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003296if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003297 $as_echo_n "(cached) " >&6
3298else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00003310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003311 break 2
3312 fi
3313done
cristy8b350f62009-11-15 23:12:43 +00003314 done
cristy3ed852e2009-09-05 21:47:34 +00003315IFS=$as_save_IFS
3316
3317fi
3318fi
3319CC=$ac_cv_prog_CC
3320if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00003321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003322$as_echo "$CC" >&6; }
3323else
cristy8b350f62009-11-15 23:12:43 +00003324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003325$as_echo "no" >&6; }
3326fi
3327
3328
3329fi
3330if test -z "$ac_cv_prog_CC"; then
3331 ac_ct_CC=$CC
3332 # Extract the first word of "gcc", so it can be a program name with args.
3333set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003335$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003336if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003337 $as_echo_n "(cached) " >&6
3338else
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00003350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003351 break 2
3352 fi
3353done
cristy8b350f62009-11-15 23:12:43 +00003354 done
cristy3ed852e2009-09-05 21:47:34 +00003355IFS=$as_save_IFS
3356
3357fi
3358fi
3359ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$ac_ct_CC" >&6; }
3363else
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "no" >&6; }
3366fi
3367
3368 if test "x$ac_ct_CC" = x; then
3369 CC=""
3370 else
3371 case $cross_compiling:$ac_tool_warned in
3372yes:)
cristy8b350f62009-11-15 23:12:43 +00003373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3375ac_tool_warned=yes ;;
3376esac
3377 CC=$ac_ct_CC
3378 fi
3379else
3380 CC="$ac_cv_prog_CC"
3381fi
3382
3383if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3386set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003389if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003390 $as_echo_n "(cached) " >&6
3391else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00003403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404 break 2
3405 fi
3406done
cristy8b350f62009-11-15 23:12:43 +00003407 done
cristy3ed852e2009-09-05 21:47:34 +00003408IFS=$as_save_IFS
3409
3410fi
3411fi
3412CC=$ac_cv_prog_CC
3413if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$CC" >&6; }
3416else
cristy8b350f62009-11-15 23:12:43 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "no" >&6; }
3419fi
3420
3421
3422 fi
3423fi
3424if test -z "$CC"; then
3425 # Extract the first word of "cc", so it can be a program name with args.
3426set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003429if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003430 $as_echo_n "(cached) " >&6
3431else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435 ac_prog_rejected=no
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3444 ac_prog_rejected=yes
3445 continue
3446 fi
3447 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00003448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449 break 2
3450 fi
3451done
cristy8b350f62009-11-15 23:12:43 +00003452 done
cristy3ed852e2009-09-05 21:47:34 +00003453IFS=$as_save_IFS
3454
3455if test $ac_prog_rejected = yes; then
3456 # We found a bogon in the path, so make sure we never use it.
3457 set dummy $ac_cv_prog_CC
3458 shift
3459 if test $# != 0; then
3460 # We chose a different compiler from the bogus one.
3461 # However, it has the same basename, so the bogon will be chosen
3462 # first if we set CC to just the basename; use the full file name.
3463 shift
3464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3465 fi
3466fi
3467fi
3468fi
3469CC=$ac_cv_prog_CC
3470if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00003471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003472$as_echo "$CC" >&6; }
3473else
cristy8b350f62009-11-15 23:12:43 +00003474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003475$as_echo "no" >&6; }
3476fi
3477
3478
3479fi
3480if test -z "$CC"; then
3481 if test -n "$ac_tool_prefix"; then
3482 for ac_prog in cl.exe
3483 do
3484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003487$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003488if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003489 $as_echo_n "(cached) " >&6
3490else
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493else
3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495for as_dir in $PATH
3496do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003503 break 2
3504 fi
3505done
cristy8b350f62009-11-15 23:12:43 +00003506 done
cristy3ed852e2009-09-05 21:47:34 +00003507IFS=$as_save_IFS
3508
3509fi
3510fi
3511CC=$ac_cv_prog_CC
3512if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00003513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$CC" >&6; }
3515else
cristy8b350f62009-11-15 23:12:43 +00003516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003517$as_echo "no" >&6; }
3518fi
3519
3520
3521 test -n "$CC" && break
3522 done
3523fi
3524if test -z "$CC"; then
3525 ac_ct_CC=$CC
3526 for ac_prog in cl.exe
3527do
3528 # Extract the first word of "$ac_prog", so it can be a program name with args.
3529set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003531$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003533 $as_echo_n "(cached) " >&6
3534else
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547 break 2
3548 fi
3549done
cristy8b350f62009-11-15 23:12:43 +00003550 done
cristy3ed852e2009-09-05 21:47:34 +00003551IFS=$as_save_IFS
3552
3553fi
3554fi
3555ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00003557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00003558$as_echo "$ac_ct_CC" >&6; }
3559else
cristy8b350f62009-11-15 23:12:43 +00003560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003561$as_echo "no" >&6; }
3562fi
3563
3564
3565 test -n "$ac_ct_CC" && break
3566done
3567
3568 if test "x$ac_ct_CC" = x; then
3569 CC=""
3570 else
3571 case $cross_compiling:$ac_tool_warned in
3572yes:)
cristy8b350f62009-11-15 23:12:43 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575ac_tool_warned=yes ;;
3576esac
3577 CC=$ac_ct_CC
3578 fi
3579fi
3580
3581fi
3582
3583
cristy8b350f62009-11-15 23:12:43 +00003584test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003586as_fn_error "no acceptable C compiler found in \$PATH
3587See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003588
3589# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00003590$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00003591set X $ac_compile
3592ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00003593for ac_option in --version -v -V -qversion; do
3594 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00003595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
cristy8b350f62009-11-15 23:12:43 +00003599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600$as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00003602 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00003603 if test -s conftest.err; then
3604 sed '10a\
3605... rest of stderr output deleted ...
3606 10q' conftest.err >conftest.er1
3607 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00003608 fi
cristycd4c5312009-11-22 01:19:08 +00003609 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00003610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }
3612done
cristy3ed852e2009-09-05 21:47:34 +00003613
cristy8b350f62009-11-15 23:12:43 +00003614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003615/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00003616
cristy3ed852e2009-09-05 21:47:34 +00003617int
3618main ()
3619{
3620
3621 ;
3622 return 0;
3623}
3624_ACEOF
3625ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00003626ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00003627# Try to create an executable without -o first, disregard a.out.
3628# It will help us diagnose broken compilers, and finding out an intuition
3629# of exeext.
cristycd4c5312009-11-22 01:19:08 +00003630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3631$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00003632ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3633
3634# The possible output files:
3635ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3636
3637ac_rmfiles=
3638for ac_file in $ac_files
3639do
3640 case $ac_file in
3641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3643 esac
3644done
3645rm -f $ac_rmfiles
3646
cristy8b350f62009-11-15 23:12:43 +00003647if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00003648case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651esac
cristy8b350f62009-11-15 23:12:43 +00003652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00003654 (eval "$ac_link_default") 2>&5
3655 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00003656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3659# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3660# in a Makefile. We should not override ac_cv_exeext if it was cached,
3661# so that the user can short-circuit this test for compilers unknown to
3662# Autoconf.
3663for ac_file in $ac_files ''
3664do
3665 test -f "$ac_file" || continue
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3668 ;;
3669 [ab].out )
3670 # We found the default executable, but exeext='' is most
3671 # certainly right.
3672 break;;
3673 *.* )
cristy8b350f62009-11-15 23:12:43 +00003674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00003675 then :; else
3676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3677 fi
3678 # We set ac_cv_exeext here because the later test for it is not
3679 # safe: cross compilers may not add the suffix if given an `-o'
3680 # argument, so we may need to know it at that point already.
3681 # Even if this section looks crufty: it has the advantage of
3682 # actually working.
3683 break;;
3684 * )
3685 break;;
3686 esac
3687done
3688test "$ac_cv_exeext" = no && ac_cv_exeext=
3689
3690else
3691 ac_file=''
3692fi
cristy8b350f62009-11-15 23:12:43 +00003693if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00003694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695$as_echo "no" >&6; }
3696$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697sed 's/^/| /' conftest.$ac_ext >&5
3698
cristy8b350f62009-11-15 23:12:43 +00003699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003701{ as_fn_set_status 77
3702as_fn_error "C compiler cannot create executables
3703See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00003704else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3706$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00003707fi
cristycd4c5312009-11-22 01:19:08 +00003708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3709$as_echo_n "checking for C compiler default output file name... " >&6; }
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3711$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00003712ac_exeext=$ac_cv_exeext
3713
cristycd4c5312009-11-22 01:19:08 +00003714rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00003715ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00003716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00003717$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003718if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00003719case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
cristy8b350f62009-11-15 23:12:43 +00003723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00003725 (eval "$ac_link") 2>&5
3726 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00003727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3730# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3731# work properly (i.e., refer to `conftest.exe'), while it won't with
3732# `rm'.
3733for ac_file in conftest.exe conftest conftest.*; do
3734 test -f "$ac_file" || continue
3735 case $ac_file in
3736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3738 break;;
3739 * ) break;;
3740 esac
3741done
3742else
cristy8b350f62009-11-15 23:12:43 +00003743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003745as_fn_error "cannot compute suffix of executables: cannot compile and link
3746See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003747fi
cristycd4c5312009-11-22 01:19:08 +00003748rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00003749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003750$as_echo "$ac_cv_exeext" >&6; }
3751
3752rm -f conftest.$ac_ext
3753EXEEXT=$ac_cv_exeext
3754ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00003755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h. */
3757#include <stdio.h>
3758int
3759main ()
3760{
3761FILE *f = fopen ("conftest.out", "w");
3762 return ferror (f) || fclose (f) != 0;
3763
3764 ;
3765 return 0;
3766}
3767_ACEOF
3768ac_clean_files="$ac_clean_files conftest.out"
3769# Check that the compiler produces executables we can run. If not, either
3770# the compiler is broken, or we cross compile.
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3772$as_echo_n "checking whether we are cross compiling... " >&6; }
3773if test "$cross_compiling" != yes; then
3774 { { ac_try="$ac_link"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780$as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }
3785 if { ac_try='./conftest$ac_cv_exeext'
3786 { { case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_try") 2>&5
3793 ac_status=$?
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }; }; then
3796 cross_compiling=no
3797 else
3798 if test "$cross_compiling" = maybe; then
3799 cross_compiling=yes
3800 else
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003803as_fn_error "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00003804If you meant to cross compile, use \`--host'.
cristyf6fcb5d2010-09-24 01:19:13 +00003805See \`config.log' for more details." "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00003806 fi
3807 fi
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3810$as_echo "$cross_compiling" >&6; }
3811
3812rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3813ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00003814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00003815$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003816if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003817 $as_echo_n "(cached) " >&6
3818else
cristy8b350f62009-11-15 23:12:43 +00003819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003820/* end confdefs.h. */
3821
3822int
3823main ()
3824{
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00003831if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00003832case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835esac
cristy8b350f62009-11-15 23:12:43 +00003836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00003838 (eval "$ac_compile") 2>&5
3839 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00003840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003842 for ac_file in conftest.o conftest.obj conftest.*; do
3843 test -f "$ac_file" || continue;
3844 case $ac_file in
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3847 break;;
3848 esac
3849done
3850else
3851 $as_echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
cristy8b350f62009-11-15 23:12:43 +00003854{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00003856as_fn_error "cannot compute suffix of object files: cannot compile
3857See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003858fi
cristy3ed852e2009-09-05 21:47:34 +00003859rm -f conftest.$ac_cv_objext conftest.$ac_ext
3860fi
cristy8b350f62009-11-15 23:12:43 +00003861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003862$as_echo "$ac_cv_objext" >&6; }
3863OBJEXT=$ac_cv_objext
3864ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00003865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00003866$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003867if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003868 $as_echo_n "(cached) " >&6
3869else
cristy8b350f62009-11-15 23:12:43 +00003870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003871/* end confdefs.h. */
3872
3873int
3874main ()
3875{
3876#ifndef __GNUC__
3877 choke me
3878#endif
3879
3880 ;
3881 return 0;
3882}
3883_ACEOF
cristy8b350f62009-11-15 23:12:43 +00003884if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00003885 ac_compiler_gnu=yes
3886else
cristy8b350f62009-11-15 23:12:43 +00003887 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00003888fi
cristy3ed852e2009-09-05 21:47:34 +00003889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891
3892fi
cristy8b350f62009-11-15 23:12:43 +00003893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00003894$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3895if test $ac_compiler_gnu = yes; then
3896 GCC=yes
3897else
3898 GCC=
3899fi
3900ac_test_CFLAGS=${CFLAGS+set}
3901ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00003902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00003903$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003904if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003905 $as_echo_n "(cached) " >&6
3906else
3907 ac_save_c_werror_flag=$ac_c_werror_flag
3908 ac_c_werror_flag=yes
3909 ac_cv_prog_cc_g=no
3910 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00003911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003912/* end confdefs.h. */
3913
3914int
3915main ()
3916{
3917
3918 ;
3919 return 0;
3920}
3921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00003922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00003923 ac_cv_prog_cc_g=yes
3924else
cristy8b350f62009-11-15 23:12:43 +00003925 CFLAGS=""
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003927/* end confdefs.h. */
3928
3929int
3930main ()
3931{
3932
3933 ;
3934 return 0;
3935}
3936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00003937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00003938
cristy8b350f62009-11-15 23:12:43 +00003939else
3940 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00003941 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00003942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003943/* end confdefs.h. */
3944
3945int
3946main ()
3947{
3948
3949 ;
3950 return 0;
3951}
3952_ACEOF
cristy8b350f62009-11-15 23:12:43 +00003953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00003954 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00003955fi
cristy3ed852e2009-09-05 21:47:34 +00003956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957fi
cristy3ed852e2009-09-05 21:47:34 +00003958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959fi
cristy3ed852e2009-09-05 21:47:34 +00003960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_c_werror_flag=$ac_save_c_werror_flag
3962fi
cristy8b350f62009-11-15 23:12:43 +00003963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00003964$as_echo "$ac_cv_prog_cc_g" >&6; }
3965if test "$ac_test_CFLAGS" = set; then
3966 CFLAGS=$ac_save_CFLAGS
3967elif test $ac_cv_prog_cc_g = yes; then
3968 if test "$GCC" = yes; then
3969 CFLAGS="-g -O2"
3970 else
3971 CFLAGS="-g"
3972 fi
3973else
3974 if test "$GCC" = yes; then
3975 CFLAGS="-O2"
3976 else
3977 CFLAGS=
3978 fi
3979fi
cristy8b350f62009-11-15 23:12:43 +00003980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00003981$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003982if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003983 $as_echo_n "(cached) " >&6
3984else
3985 ac_cv_prog_cc_c89=no
3986ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00003987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00003988/* end confdefs.h. */
3989#include <stdarg.h>
3990#include <stdio.h>
3991#include <sys/types.h>
3992#include <sys/stat.h>
3993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3994struct buf { int x; };
3995FILE * (*rcsopen) (struct buf *, struct stat *, int);
3996static char *e (p, i)
3997 char **p;
3998 int i;
3999{
4000 return p[i];
4001}
4002static char *f (char * (*g) (char **, int), char **p, ...)
4003{
4004 char *s;
4005 va_list v;
4006 va_start (v,p);
4007 s = g (p, va_arg (v,int));
4008 va_end (v);
4009 return s;
4010}
4011
4012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4013 function prototypes and stuff, but not '\xHH' hex character constants.
4014 These don't provoke an error unfortunately, instead are silently treated
4015 as 'x'. The following induces an error, until -std is added to get
4016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4017 array size at least. It's necessary to write '\x00'==0 to get something
4018 that's true only with -std. */
4019int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4020
4021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4022 inside strings and character constants. */
4023#define FOO(x) 'x'
4024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4025
4026int test (int i, double x);
4027struct s1 {int (*f) (int a);};
4028struct s2 {int (*f) (double a);};
4029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4030int argc;
4031char **argv;
4032int
4033main ()
4034{
4035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4042do
4043 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004044 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004045 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004046fi
cristy3ed852e2009-09-05 21:47:34 +00004047rm -f core conftest.err conftest.$ac_objext
4048 test "x$ac_cv_prog_cc_c89" != "xno" && break
4049done
4050rm -f conftest.$ac_ext
4051CC=$ac_save_CC
4052
4053fi
4054# AC_CACHE_VAL
4055case "x$ac_cv_prog_cc_c89" in
4056 x)
cristy8b350f62009-11-15 23:12:43 +00004057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004058$as_echo "none needed" >&6; } ;;
4059 xno)
cristy8b350f62009-11-15 23:12:43 +00004060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004061$as_echo "unsupported" >&6; } ;;
4062 *)
4063 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4066esac
cristy8b350f62009-11-15 23:12:43 +00004067if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004068
cristy8b350f62009-11-15 23:12:43 +00004069fi
cristy3ed852e2009-09-05 21:47:34 +00004070
4071ac_ext=c
4072ac_cpp='$CPP $CPPFLAGS'
4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004076
cristy3ed852e2009-09-05 21:47:34 +00004077
cristya0b81c32010-01-22 02:54:33 +00004078ac_ext=c
4079ac_cpp='$CPP $CPPFLAGS'
4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4084$as_echo_n "checking how to run the C preprocessor... " >&6; }
4085# On Suns, sometimes $CPP names a directory.
4086if test -n "$CPP" && test -d "$CPP"; then
4087 CPP=
4088fi
4089if test -z "$CPP"; then
4090 if test "${ac_cv_prog_CPP+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4092else
4093 # Double quotes because CPP needs to be expanded
4094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4095 do
4096 ac_preproc_ok=false
4097for ac_c_preproc_warn_flag in '' yes
4098do
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h. */
4107#ifdef __STDC__
4108# include <limits.h>
4109#else
4110# include <assert.h>
4111#endif
4112 Syntax error
4113_ACEOF
4114if ac_fn_c_try_cpp "$LINENO"; then :
4115
4116else
4117 # Broken: fails on valid input.
4118continue
4119fi
4120rm -f conftest.err conftest.$ac_ext
4121
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h. */
4126#include <ac_nonexistent.h>
4127_ACEOF
4128if ac_fn_c_try_cpp "$LINENO"; then :
4129 # Broken: success on invalid input.
4130continue
4131else
4132 # Passes both tests.
4133ac_preproc_ok=:
4134break
4135fi
4136rm -f conftest.err conftest.$ac_ext
4137
4138done
4139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140rm -f conftest.err conftest.$ac_ext
4141if $ac_preproc_ok; then :
4142 break
4143fi
4144
4145 done
4146 ac_cv_prog_CPP=$CPP
4147
4148fi
4149 CPP=$ac_cv_prog_CPP
4150else
4151 ac_cv_prog_CPP=$CPP
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4154$as_echo "$CPP" >&6; }
4155ac_preproc_ok=false
4156for ac_c_preproc_warn_flag in '' yes
4157do
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h. */
4166#ifdef __STDC__
4167# include <limits.h>
4168#else
4169# include <assert.h>
4170#endif
4171 Syntax error
4172_ACEOF
4173if ac_fn_c_try_cpp "$LINENO"; then :
4174
4175else
4176 # Broken: fails on valid input.
4177continue
4178fi
4179rm -f conftest.err conftest.$ac_ext
4180
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h. */
4185#include <ac_nonexistent.h>
4186_ACEOF
4187if ac_fn_c_try_cpp "$LINENO"; then :
4188 # Broken: success on invalid input.
4189continue
4190else
4191 # Passes both tests.
4192ac_preproc_ok=:
4193break
4194fi
4195rm -f conftest.err conftest.$ac_ext
4196
4197done
4198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199rm -f conftest.err conftest.$ac_ext
4200if $ac_preproc_ok; then :
4201
4202else
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004205as_fn_error "C preprocessor \"$CPP\" fails sanity check
4206See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00004207fi
4208
4209ac_ext=c
4210ac_cpp='$CPP $CPPFLAGS'
4211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218if test "${ac_cv_path_GREP+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220else
4221 if test -z "$GREP"; then
4222 ac_path_GREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in grep ggrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4232 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4233# Check for GNU ac_path_GREP and select it if it is found.
4234 # Check for GNU $ac_path_GREP
4235case `"$ac_path_GREP" --version 2>&1` in
4236*GNU*)
4237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4238*)
4239 ac_count=0
4240 $as_echo_n 0123456789 >"conftest.in"
4241 while :
4242 do
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'GREP' >> "conftest.nl"
4247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 as_fn_arith $ac_count + 1 && ac_count=$as_val
4250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_GREP="$ac_path_GREP"
4253 ac_path_GREP_max=$ac_count
4254 fi
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4257 done
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259esac
4260
4261 $ac_path_GREP_found && break 3
4262 done
4263 done
4264 done
4265IFS=$as_save_IFS
4266 if test -z "$ac_cv_path_GREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00004267 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00004268 fi
4269else
4270 ac_cv_path_GREP=$GREP
4271fi
4272
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275$as_echo "$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280$as_echo_n "checking for egrep... " >&6; }
4281if test "${ac_cv_path_EGREP+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283else
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4286 else
4287 if test -z "$EGREP"; then
4288 ac_path_EGREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in egrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4299# Check for GNU ac_path_EGREP and select it if it is found.
4300 # Check for GNU $ac_path_EGREP
4301case `"$ac_path_EGREP" --version 2>&1` in
4302*GNU*)
4303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4304*)
4305 ac_count=0
4306 $as_echo_n 0123456789 >"conftest.in"
4307 while :
4308 do
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'EGREP' >> "conftest.nl"
4313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 as_fn_arith $ac_count + 1 && ac_count=$as_val
4316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_EGREP="$ac_path_EGREP"
4319 ac_path_EGREP_max=$ac_count
4320 fi
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4323 done
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325esac
4326
4327 $ac_path_EGREP_found && break 3
4328 done
4329 done
4330 done
4331IFS=$as_save_IFS
4332 if test -z "$ac_cv_path_EGREP"; then
cristyf6fcb5d2010-09-24 01:19:13 +00004333 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00004334 fi
4335else
4336 ac_cv_path_EGREP=$EGREP
4337fi
4338
4339 fi
4340fi
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342$as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4344
4345
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4347$as_echo_n "checking for ANSI C header files... " >&6; }
4348if test "${ac_cv_header_stdc+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350else
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h. */
4353#include <stdlib.h>
4354#include <stdarg.h>
4355#include <string.h>
4356#include <float.h>
4357
4358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
4365_ACEOF
4366if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_header_stdc=yes
4368else
4369 ac_cv_header_stdc=no
4370fi
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372
4373if test $ac_cv_header_stdc = yes; then
4374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h. */
4377#include <string.h>
4378
4379_ACEOF
4380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "memchr" >/dev/null 2>&1; then :
4382
4383else
4384 ac_cv_header_stdc=no
4385fi
4386rm -f conftest*
4387
4388fi
4389
4390if test $ac_cv_header_stdc = yes; then
4391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
4394#include <stdlib.h>
4395
4396_ACEOF
4397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "free" >/dev/null 2>&1; then :
4399
4400else
4401 ac_cv_header_stdc=no
4402fi
4403rm -f conftest*
4404
4405fi
4406
4407if test $ac_cv_header_stdc = yes; then
4408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409 if test "$cross_compiling" = yes; then :
4410 :
4411else
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h. */
4414#include <ctype.h>
4415#include <stdlib.h>
4416#if ((' ' & 0x0FF) == 0x020)
4417# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4418# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4419#else
4420# define ISLOWER(c) \
4421 (('a' <= (c) && (c) <= 'i') \
4422 || ('j' <= (c) && (c) <= 'r') \
4423 || ('s' <= (c) && (c) <= 'z'))
4424# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4425#endif
4426
4427#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4428int
4429main ()
4430{
4431 int i;
4432 for (i = 0; i < 256; i++)
4433 if (XOR (islower (i), ISLOWER (i))
4434 || toupper (i) != TOUPPER (i))
4435 return 2;
4436 return 0;
4437}
4438_ACEOF
4439if ac_fn_c_try_run "$LINENO"; then :
4440
4441else
4442 ac_cv_header_stdc=no
4443fi
4444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4445 conftest.$ac_objext conftest.beam conftest.$ac_ext
4446fi
4447
4448fi
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4451$as_echo "$ac_cv_header_stdc" >&6; }
4452if test $ac_cv_header_stdc = yes; then
4453
4454$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4455
4456fi
4457
4458# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4459for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4460 inttypes.h stdint.h unistd.h
4461do :
4462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4463ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4464"
cristyf6fcb5d2010-09-24 01:19:13 +00004465eval as_val=\$$as_ac_Header
4466 if test "x$as_val" = x""yes; then :
cristya0b81c32010-01-22 02:54:33 +00004467 cat >>confdefs.h <<_ACEOF
4468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4469_ACEOF
4470
4471fi
4472
4473done
4474
4475
4476
4477 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4478if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4479 MINIX=yes
4480else
4481 MINIX=
4482fi
4483
4484
4485 if test "$MINIX" = yes; then
4486
4487$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4488
4489
4490$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4491
4492
4493$as_echo "#define _MINIX 1" >>confdefs.h
4494
4495 fi
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4499$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4500if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502else
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
4505
4506# define __EXTENSIONS__ 1
4507 $ac_includes_default
4508int
4509main ()
4510{
4511
4512 ;
4513 return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_cv_safe_to_define___extensions__=yes
4518else
4519 ac_cv_safe_to_define___extensions__=no
4520fi
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4524$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4525 test $ac_cv_safe_to_define___extensions__ = yes &&
4526 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4527
4528 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4529
4530 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4531
4532 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4533
4534 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4535
4536
4537
4538# Check for programs
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}gcc; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if test "${ac_cv_prog_CC+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566done
4567 done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575$as_echo "$CC" >&6; }
4576else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_prog_CC"; then
4584 ac_ct_CC=$CC
4585 # Extract the first word of "gcc", so it can be a program name with args.
4586set dummy gcc; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$ac_ct_CC"; then
4593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_CC="gcc"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606done
4607 done
4608IFS=$as_save_IFS
4609
4610fi
4611fi
4612ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613if test -n "$ac_ct_CC"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4615$as_echo "$ac_ct_CC" >&6; }
4616else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618$as_echo "no" >&6; }
4619fi
4620
4621 if test "x$ac_ct_CC" = x; then
4622 CC=""
4623 else
4624 case $cross_compiling:$ac_tool_warned in
4625yes:)
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628ac_tool_warned=yes ;;
4629esac
4630 CC=$ac_ct_CC
4631 fi
4632else
4633 CC="$ac_cv_prog_CC"
4634fi
4635
4636if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4639set dummy ${ac_tool_prefix}cc; ac_word=$2
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641$as_echo_n "checking for $ac_word... " >&6; }
4642if test "${ac_cv_prog_CC+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644else
4645 if test -n "$CC"; then
4646 ac_cv_prog_CC="$CC" # Let the user override the test.
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_CC="${ac_tool_prefix}cc"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659done
4660 done
4661IFS=$as_save_IFS
4662
4663fi
4664fi
4665CC=$ac_cv_prog_CC
4666if test -n "$CC"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4668$as_echo "$CC" >&6; }
4669else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671$as_echo "no" >&6; }
4672fi
4673
4674
4675 fi
4676fi
4677if test -z "$CC"; then
4678 # Extract the first word of "cc", so it can be a program name with args.
4679set dummy cc; ac_word=$2
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681$as_echo_n "checking for $ac_word... " >&6; }
4682if test "${ac_cv_prog_CC+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684else
4685 if test -n "$CC"; then
4686 ac_cv_prog_CC="$CC" # Let the user override the test.
4687else
4688 ac_prog_rejected=no
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4697 ac_prog_rejected=yes
4698 continue
4699 fi
4700 ac_cv_prog_CC="cc"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704done
4705 done
4706IFS=$as_save_IFS
4707
4708if test $ac_prog_rejected = yes; then
4709 # We found a bogon in the path, so make sure we never use it.
4710 set dummy $ac_cv_prog_CC
4711 shift
4712 if test $# != 0; then
4713 # We chose a different compiler from the bogus one.
4714 # However, it has the same basename, so the bogon will be chosen
4715 # first if we set CC to just the basename; use the full file name.
4716 shift
4717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4718 fi
4719fi
4720fi
4721fi
4722CC=$ac_cv_prog_CC
4723if test -n "$CC"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725$as_echo "$CC" >&6; }
4726else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728$as_echo "no" >&6; }
4729fi
4730
4731
4732fi
4733if test -z "$CC"; then
4734 if test -n "$ac_tool_prefix"; then
4735 for ac_prog in cl.exe
4736 do
4737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if test "${ac_cv_prog_CC+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759 done
4760IFS=$as_save_IFS
4761
4762fi
4763fi
4764CC=$ac_cv_prog_CC
4765if test -n "$CC"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4767$as_echo "$CC" >&6; }
4768else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770$as_echo "no" >&6; }
4771fi
4772
4773
4774 test -n "$CC" && break
4775 done
4776fi
4777if test -z "$CC"; then
4778 ac_ct_CC=$CC
4779 for ac_prog in cl.exe
4780do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782set dummy $ac_prog; ac_word=$2
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784$as_echo_n "checking for $ac_word... " >&6; }
4785if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787else
4788 if test -n "$ac_ct_CC"; then
4789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_ac_ct_CC="$ac_prog"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802done
4803 done
4804IFS=$as_save_IFS
4805
4806fi
4807fi
4808ac_ct_CC=$ac_cv_prog_ac_ct_CC
4809if test -n "$ac_ct_CC"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4811$as_echo "$ac_ct_CC" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818 test -n "$ac_ct_CC" && break
4819done
4820
4821 if test "x$ac_ct_CC" = x; then
4822 CC=""
4823 else
4824 case $cross_compiling:$ac_tool_warned in
4825yes:)
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828ac_tool_warned=yes ;;
4829esac
4830 CC=$ac_ct_CC
4831 fi
4832fi
4833
4834fi
4835
4836
4837test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00004839as_fn_error "no acceptable C compiler found in \$PATH
4840See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00004841
4842# Provide some information about the compiler.
4843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4844set X $ac_compile
4845ac_compiler=$2
4846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855 ac_status=$?
4856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 fi
4862 rm -f conftest.er1 conftest.err
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4868$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4869if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878#ifndef __GNUC__
4879 choke me
4880#endif
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887 ac_compiler_gnu=yes
4888else
4889 ac_compiler_gnu=no
4890fi
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892ac_cv_c_compiler_gnu=$ac_compiler_gnu
4893
4894fi
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4896$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4897if test $ac_compiler_gnu = yes; then
4898 GCC=yes
4899else
4900 GCC=
4901fi
4902ac_test_CFLAGS=${CFLAGS+set}
4903ac_save_CFLAGS=$CFLAGS
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4905$as_echo_n "checking whether $CC accepts -g... " >&6; }
4906if test "${ac_cv_prog_cc_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 ac_save_c_werror_flag=$ac_c_werror_flag
4910 ac_c_werror_flag=yes
4911 ac_cv_prog_cc_g=no
4912 CFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h. */
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_cv_prog_cc_g=yes
4926else
4927 CFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h. */
4930
4931int
4932main ()
4933{
4934
4935 ;
4936 return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940
4941else
4942 ac_c_werror_flag=$ac_save_c_werror_flag
4943 CFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
4946
4947int
4948main ()
4949{
4950
4951 ;
4952 return 0;
4953}
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_g=yes
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_c_werror_flag=$ac_save_c_werror_flag
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4966$as_echo "$ac_cv_prog_cc_g" >&6; }
4967if test "$ac_test_CFLAGS" = set; then
4968 CFLAGS=$ac_save_CFLAGS
4969elif test $ac_cv_prog_cc_g = yes; then
4970 if test "$GCC" = yes; then
4971 CFLAGS="-g -O2"
4972 else
4973 CFLAGS="-g"
4974 fi
4975else
4976 if test "$GCC" = yes; then
4977 CFLAGS="-O2"
4978 else
4979 CFLAGS=
4980 fi
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4983$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4984if test "${ac_cv_prog_cc_c89+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986else
4987 ac_cv_prog_cc_c89=no
4988ac_save_CC=$CC
4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h. */
4991#include <stdarg.h>
4992#include <stdio.h>
4993#include <sys/types.h>
4994#include <sys/stat.h>
4995/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4996struct buf { int x; };
4997FILE * (*rcsopen) (struct buf *, struct stat *, int);
4998static char *e (p, i)
4999 char **p;
5000 int i;
5001{
5002 return p[i];
5003}
5004static char *f (char * (*g) (char **, int), char **p, ...)
5005{
5006 char *s;
5007 va_list v;
5008 va_start (v,p);
5009 s = g (p, va_arg (v,int));
5010 va_end (v);
5011 return s;
5012}
5013
5014/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5015 function prototypes and stuff, but not '\xHH' hex character constants.
5016 These don't provoke an error unfortunately, instead are silently treated
5017 as 'x'. The following induces an error, until -std is added to get
5018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5019 array size at least. It's necessary to write '\x00'==0 to get something
5020 that's true only with -std. */
5021int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5022
5023/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5024 inside strings and character constants. */
5025#define FOO(x) 'x'
5026int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5027
5028int test (int i, double x);
5029struct s1 {int (*f) (int a);};
5030struct s2 {int (*f) (double a);};
5031int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5032int argc;
5033char **argv;
5034int
5035main ()
5036{
5037return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5038 ;
5039 return 0;
5040}
5041_ACEOF
5042for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5044do
5045 CC="$ac_save_CC $ac_arg"
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 ac_cv_prog_cc_c89=$ac_arg
5048fi
5049rm -f core conftest.err conftest.$ac_objext
5050 test "x$ac_cv_prog_cc_c89" != "xno" && break
5051done
5052rm -f conftest.$ac_ext
5053CC=$ac_save_CC
5054
5055fi
5056# AC_CACHE_VAL
5057case "x$ac_cv_prog_cc_c89" in
5058 x)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5060$as_echo "none needed" >&6; } ;;
5061 xno)
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5063$as_echo "unsupported" >&6; } ;;
5064 *)
5065 CC="$CC $ac_cv_prog_cc_c89"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5067$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5068esac
5069if test "x$ac_cv_prog_cc_c89" != xno; then :
5070
5071fi
5072
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078
cristy95646052009-11-28 23:05:30 +00005079ac_ext=cpp
5080ac_cpp='$CXXCPP $CPPFLAGS'
5081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5084if test -z "$CXX"; then
5085 if test -n "$CCC"; then
5086 CXX=$CCC
5087 else
5088 if test -n "$ac_tool_prefix"; then
5089 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5090 do
5091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094$as_echo_n "checking for $ac_word... " >&6; }
5095if test "${ac_cv_prog_CXX+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097else
5098 if test -n "$CXX"; then
5099 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112done
5113 done
5114IFS=$as_save_IFS
5115
5116fi
5117fi
5118CXX=$ac_cv_prog_CXX
5119if test -n "$CXX"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5121$as_echo "$CXX" >&6; }
5122else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124$as_echo "no" >&6; }
5125fi
5126
5127
5128 test -n "$CXX" && break
5129 done
5130fi
5131if test -z "$CXX"; then
5132 ac_ct_CXX=$CXX
5133 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5134do
5135 # Extract the first word of "$ac_prog", so it can be a program name with args.
5136set dummy $ac_prog; ac_word=$2
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138$as_echo_n "checking for $ac_word... " >&6; }
5139if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141else
5142 if test -n "$ac_ct_CXX"; then
5143 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_CXX="$ac_prog"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5155 fi
5156done
5157 done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5163if test -n "$ac_ct_CXX"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5165$as_echo "$ac_ct_CXX" >&6; }
5166else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172 test -n "$ac_ct_CXX" && break
5173done
5174
5175 if test "x$ac_ct_CXX" = x; then
5176 CXX="g++"
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179yes:)
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182ac_tool_warned=yes ;;
5183esac
5184 CXX=$ac_ct_CXX
5185 fi
5186fi
5187
5188 fi
5189fi
5190# Provide some information about the compiler.
5191$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5192set X $ac_compile
5193ac_compiler=$2
5194for ac_option in --version -v -V -qversion; do
5195 { { ac_try="$ac_compiler $ac_option >&5"
5196case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199esac
5200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5201$as_echo "$ac_try_echo"; } >&5
5202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5203 ac_status=$?
5204 if test -s conftest.err; then
5205 sed '10a\
5206... rest of stderr output deleted ...
5207 10q' conftest.err >conftest.er1
5208 cat conftest.er1 >&5
5209 fi
5210 rm -f conftest.er1 conftest.err
5211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5212 test $ac_status = 0; }
5213done
5214
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5216$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5217if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219else
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222
5223int
5224main ()
5225{
5226#ifndef __GNUC__
5227 choke me
5228#endif
5229
5230 ;
5231 return 0;
5232}
5233_ACEOF
5234if ac_fn_cxx_try_compile "$LINENO"; then :
5235 ac_compiler_gnu=yes
5236else
5237 ac_compiler_gnu=no
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5241
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5244$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5245if test $ac_compiler_gnu = yes; then
5246 GXX=yes
5247else
5248 GXX=
5249fi
5250ac_test_CXXFLAGS=${CXXFLAGS+set}
5251ac_save_CXXFLAGS=$CXXFLAGS
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5253$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5254if test "${ac_cv_prog_cxx_g+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256else
5257 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5258 ac_cxx_werror_flag=yes
5259 ac_cv_prog_cxx_g=no
5260 CXXFLAGS="-g"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h. */
5263
5264int
5265main ()
5266{
5267
5268 ;
5269 return 0;
5270}
5271_ACEOF
5272if ac_fn_cxx_try_compile "$LINENO"; then :
5273 ac_cv_prog_cxx_g=yes
5274else
5275 CXXFLAGS=""
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h. */
5278
5279int
5280main ()
5281{
5282
5283 ;
5284 return 0;
5285}
5286_ACEOF
5287if ac_fn_cxx_try_compile "$LINENO"; then :
5288
5289else
5290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5291 CXXFLAGS="-g"
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h. */
5294
5295int
5296main ()
5297{
5298
5299 ;
5300 return 0;
5301}
5302_ACEOF
5303if ac_fn_cxx_try_compile "$LINENO"; then :
5304 ac_cv_prog_cxx_g=yes
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307fi
5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5314$as_echo "$ac_cv_prog_cxx_g" >&6; }
5315if test "$ac_test_CXXFLAGS" = set; then
5316 CXXFLAGS=$ac_save_CXXFLAGS
5317elif test $ac_cv_prog_cxx_g = yes; then
5318 if test "$GXX" = yes; then
5319 CXXFLAGS="-g -O2"
5320 else
5321 CXXFLAGS="-g"
5322 fi
5323else
5324 if test "$GXX" = yes; then
5325 CXXFLAGS="-O2"
5326 else
5327 CXXFLAGS=
5328 fi
5329fi
5330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335
cristy8b350f62009-11-15 23:12:43 +00005336 case $ac_cv_prog_cc_stdc in #(
5337 no) :
5338 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5339 *) :
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005341$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005342if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005343 $as_echo_n "(cached) " >&6
5344else
5345 ac_cv_prog_cc_c99=no
5346ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005348/* end confdefs.h. */
5349#include <stdarg.h>
5350#include <stdbool.h>
5351#include <stdlib.h>
5352#include <wchar.h>
5353#include <stdio.h>
5354
5355// Check varargs macros. These examples are taken from C99 6.10.3.5.
5356#define debug(...) fprintf (stderr, __VA_ARGS__)
5357#define showlist(...) puts (#__VA_ARGS__)
5358#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5359static void
5360test_varargs_macros (void)
5361{
5362 int x = 1234;
5363 int y = 5678;
5364 debug ("Flag");
5365 debug ("X = %d\n", x);
5366 showlist (The first, second, and third items.);
5367 report (x>y, "x is %d but y is %d", x, y);
5368}
5369
5370// Check long long types.
5371#define BIG64 18446744073709551615ull
5372#define BIG32 4294967295ul
5373#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5374#if !BIG_OK
5375 your preprocessor is broken;
5376#endif
5377#if BIG_OK
5378#else
5379 your preprocessor is broken;
5380#endif
5381static long long int bignum = -9223372036854775807LL;
5382static unsigned long long int ubignum = BIG64;
5383
5384struct incomplete_array
5385{
5386 int datasize;
5387 double data[];
5388};
5389
5390struct named_init {
5391 int number;
5392 const wchar_t *name;
5393 double average;
5394};
5395
5396typedef const char *ccp;
5397
5398static inline int
5399test_restrict (ccp restrict text)
5400{
5401 // See if C++-style comments work.
5402 // Iterate through items via the restricted pointer.
5403 // Also check for declarations in for loops.
5404 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5405 continue;
5406 return 0;
5407}
5408
5409// Check varargs and va_copy.
5410static void
5411test_varargs (const char *format, ...)
5412{
5413 va_list args;
5414 va_start (args, format);
5415 va_list args_copy;
5416 va_copy (args_copy, args);
5417
5418 const char *str;
5419 int number;
5420 float fnumber;
5421
5422 while (*format)
5423 {
5424 switch (*format++)
5425 {
5426 case 's': // string
5427 str = va_arg (args_copy, const char *);
5428 break;
5429 case 'd': // int
5430 number = va_arg (args_copy, int);
5431 break;
5432 case 'f': // float
5433 fnumber = va_arg (args_copy, double);
5434 break;
5435 default:
5436 break;
5437 }
5438 }
5439 va_end (args_copy);
5440 va_end (args);
5441}
5442
5443int
5444main ()
5445{
5446
5447 // Check bool.
5448 _Bool success = false;
5449
5450 // Check restrict.
5451 if (test_restrict ("String literal") == 0)
5452 success = true;
5453 char *restrict newvar = "Another string";
5454
5455 // Check varargs.
5456 test_varargs ("s, d' f .", "string", 65, 34.234);
5457 test_varargs_macros ();
5458
5459 // Check flexible array members.
5460 struct incomplete_array *ia =
5461 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5462 ia->datasize = 10;
5463 for (int i = 0; i < ia->datasize; ++i)
5464 ia->data[i] = i * 1.234;
5465
5466 // Check named initializers.
5467 struct named_init ni = {
5468 .number = 34,
5469 .name = L"Test wide string",
5470 .average = 543.34343,
5471 };
5472
5473 ni.number = 58;
5474
5475 int dynamic_array[ni.number];
5476 dynamic_array[ni.number - 1] = 543;
5477
5478 // work around unused variable warnings
5479 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5480 || dynamic_array[ni.number - 1] != 543);
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5487do
5488 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005489 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005490 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005491fi
cristy3ed852e2009-09-05 21:47:34 +00005492rm -f core conftest.err conftest.$ac_objext
5493 test "x$ac_cv_prog_cc_c99" != "xno" && break
5494done
5495rm -f conftest.$ac_ext
5496CC=$ac_save_CC
5497
5498fi
5499# AC_CACHE_VAL
5500case "x$ac_cv_prog_cc_c99" in
5501 x)
cristy8b350f62009-11-15 23:12:43 +00005502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005503$as_echo "none needed" >&6; } ;;
5504 xno)
cristy8b350f62009-11-15 23:12:43 +00005505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005506$as_echo "unsupported" >&6; } ;;
5507 *)
5508 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005510$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5511esac
cristy8b350f62009-11-15 23:12:43 +00005512if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5514else
cristy8b350f62009-11-15 23:12:43 +00005515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005516$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005517if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005518 $as_echo_n "(cached) " >&6
5519else
5520 ac_cv_prog_cc_c89=no
5521ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005523/* end confdefs.h. */
5524#include <stdarg.h>
5525#include <stdio.h>
5526#include <sys/types.h>
5527#include <sys/stat.h>
5528/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5529struct buf { int x; };
5530FILE * (*rcsopen) (struct buf *, struct stat *, int);
5531static char *e (p, i)
5532 char **p;
5533 int i;
5534{
5535 return p[i];
5536}
5537static char *f (char * (*g) (char **, int), char **p, ...)
5538{
5539 char *s;
5540 va_list v;
5541 va_start (v,p);
5542 s = g (p, va_arg (v,int));
5543 va_end (v);
5544 return s;
5545}
5546
5547/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5548 function prototypes and stuff, but not '\xHH' hex character constants.
5549 These don't provoke an error unfortunately, instead are silently treated
5550 as 'x'. The following induces an error, until -std is added to get
5551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5552 array size at least. It's necessary to write '\x00'==0 to get something
5553 that's true only with -std. */
5554int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5555
5556/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5557 inside strings and character constants. */
5558#define FOO(x) 'x'
5559int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5560
5561int test (int i, double x);
5562struct s1 {int (*f) (int a);};
5563struct s2 {int (*f) (double a);};
5564int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5565int argc;
5566char **argv;
5567int
5568main ()
5569{
5570return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5577do
5578 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005579 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005580 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005581fi
cristy3ed852e2009-09-05 21:47:34 +00005582rm -f core conftest.err conftest.$ac_objext
5583 test "x$ac_cv_prog_cc_c89" != "xno" && break
5584done
5585rm -f conftest.$ac_ext
5586CC=$ac_save_CC
5587
5588fi
5589# AC_CACHE_VAL
5590case "x$ac_cv_prog_cc_c89" in
5591 x)
cristy8b350f62009-11-15 23:12:43 +00005592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005593$as_echo "none needed" >&6; } ;;
5594 xno)
cristy8b350f62009-11-15 23:12:43 +00005595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005596$as_echo "unsupported" >&6; } ;;
5597 *)
5598 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005600$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5601esac
cristy8b350f62009-11-15 23:12:43 +00005602if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005603 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5604else
5605 ac_cv_prog_cc_stdc=no
5606fi
5607
cristy3ed852e2009-09-05 21:47:34 +00005608fi
cristy3ed852e2009-09-05 21:47:34 +00005609 ;;
5610esac
cristy8b350f62009-11-15 23:12:43 +00005611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005612$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005613 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005614 $as_echo_n "(cached) " >&6
5615fi
5616
cristy8b350f62009-11-15 23:12:43 +00005617 case $ac_cv_prog_cc_stdc in #(
5618 no) :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5620$as_echo "unsupported" >&6; } ;; #(
5621 '') :
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5623$as_echo "none needed" >&6; } ;; #(
5624 *) :
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005626$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5627esac
5628
cristy3ed852e2009-09-05 21:47:34 +00005629ac_ext=c
5630ac_cpp='$CPP $CPPFLAGS'
5631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005635$as_echo_n "checking how to run the C preprocessor... " >&6; }
5636# On Suns, sometimes $CPP names a directory.
5637if test -n "$CPP" && test -d "$CPP"; then
5638 CPP=
5639fi
5640if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005641 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005642 $as_echo_n "(cached) " >&6
5643else
5644 # Double quotes because CPP needs to be expanded
5645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5646 do
5647 ac_preproc_ok=false
5648for ac_c_preproc_warn_flag in '' yes
5649do
5650 # Use a header file that comes with gcc, so configuring glibc
5651 # with a fresh cross-compiler works.
5652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653 # <limits.h> exists even on freestanding compilers.
5654 # On the NeXT, cc -E runs the code through the compiler's parser,
5655 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005657/* end confdefs.h. */
5658#ifdef __STDC__
5659# include <limits.h>
5660#else
5661# include <assert.h>
5662#endif
5663 Syntax error
5664_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005665if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005666
cristy8b350f62009-11-15 23:12:43 +00005667else
cristy3ed852e2009-09-05 21:47:34 +00005668 # Broken: fails on valid input.
5669continue
5670fi
cristy3ed852e2009-09-05 21:47:34 +00005671rm -f conftest.err conftest.$ac_ext
5672
5673 # OK, works on sane cases. Now check whether nonexistent headers
5674 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005676/* end confdefs.h. */
5677#include <ac_nonexistent.h>
5678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005679if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005680 # Broken: success on invalid input.
5681continue
5682else
cristy3ed852e2009-09-05 21:47:34 +00005683 # Passes both tests.
5684ac_preproc_ok=:
5685break
5686fi
cristy3ed852e2009-09-05 21:47:34 +00005687rm -f conftest.err conftest.$ac_ext
5688
5689done
5690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5691rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005692if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005693 break
5694fi
5695
5696 done
5697 ac_cv_prog_CPP=$CPP
5698
5699fi
5700 CPP=$ac_cv_prog_CPP
5701else
5702 ac_cv_prog_CPP=$CPP
5703fi
cristy8b350f62009-11-15 23:12:43 +00005704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005705$as_echo "$CPP" >&6; }
5706ac_preproc_ok=false
5707for ac_c_preproc_warn_flag in '' yes
5708do
5709 # Use a header file that comes with gcc, so configuring glibc
5710 # with a fresh cross-compiler works.
5711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5712 # <limits.h> exists even on freestanding compilers.
5713 # On the NeXT, cc -E runs the code through the compiler's parser,
5714 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005716/* end confdefs.h. */
5717#ifdef __STDC__
5718# include <limits.h>
5719#else
5720# include <assert.h>
5721#endif
5722 Syntax error
5723_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005724if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005725
cristy8b350f62009-11-15 23:12:43 +00005726else
cristy3ed852e2009-09-05 21:47:34 +00005727 # Broken: fails on valid input.
5728continue
5729fi
cristy3ed852e2009-09-05 21:47:34 +00005730rm -f conftest.err conftest.$ac_ext
5731
5732 # OK, works on sane cases. Now check whether nonexistent headers
5733 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005735/* end confdefs.h. */
5736#include <ac_nonexistent.h>
5737_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005738if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005739 # Broken: success on invalid input.
5740continue
5741else
cristy3ed852e2009-09-05 21:47:34 +00005742 # Passes both tests.
5743ac_preproc_ok=:
5744break
5745fi
cristy3ed852e2009-09-05 21:47:34 +00005746rm -f conftest.err conftest.$ac_ext
5747
5748done
5749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005751if $ac_preproc_ok; then :
5752
cristy3ed852e2009-09-05 21:47:34 +00005753else
cristy8b350f62009-11-15 23:12:43 +00005754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00005756as_fn_error "C preprocessor \"$CPP\" fails sanity check
5757See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005758fi
5759
5760ac_ext=c
5761ac_cpp='$CPP $CPPFLAGS'
5762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765
nicolas6237c462010-10-05 06:11:49 +00005766AC_PROG_LD
cristy3ed852e2009-09-05 21:47:34 +00005767
cristy837d6dc2010-02-27 01:16:57 +00005768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5769$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5770if test "${ac_cv_prog_cc_c99+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772else
5773 ac_cv_prog_cc_c99=no
5774ac_save_CC=$CC
5775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h. */
5777#include <stdarg.h>
5778#include <stdbool.h>
5779#include <stdlib.h>
5780#include <wchar.h>
5781#include <stdio.h>
5782
5783// Check varargs macros. These examples are taken from C99 6.10.3.5.
5784#define debug(...) fprintf (stderr, __VA_ARGS__)
5785#define showlist(...) puts (#__VA_ARGS__)
5786#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5787static void
5788test_varargs_macros (void)
5789{
5790 int x = 1234;
5791 int y = 5678;
5792 debug ("Flag");
5793 debug ("X = %d\n", x);
5794 showlist (The first, second, and third items.);
5795 report (x>y, "x is %d but y is %d", x, y);
5796}
5797
5798// Check long long types.
5799#define BIG64 18446744073709551615ull
5800#define BIG32 4294967295ul
5801#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5802#if !BIG_OK
5803 your preprocessor is broken;
5804#endif
5805#if BIG_OK
5806#else
5807 your preprocessor is broken;
5808#endif
5809static long long int bignum = -9223372036854775807LL;
5810static unsigned long long int ubignum = BIG64;
5811
5812struct incomplete_array
5813{
5814 int datasize;
5815 double data[];
5816};
5817
5818struct named_init {
5819 int number;
5820 const wchar_t *name;
5821 double average;
5822};
5823
5824typedef const char *ccp;
5825
5826static inline int
5827test_restrict (ccp restrict text)
5828{
5829 // See if C++-style comments work.
5830 // Iterate through items via the restricted pointer.
5831 // Also check for declarations in for loops.
5832 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5833 continue;
5834 return 0;
5835}
5836
5837// Check varargs and va_copy.
5838static void
5839test_varargs (const char *format, ...)
5840{
5841 va_list args;
5842 va_start (args, format);
5843 va_list args_copy;
5844 va_copy (args_copy, args);
5845
5846 const char *str;
5847 int number;
5848 float fnumber;
5849
5850 while (*format)
5851 {
5852 switch (*format++)
5853 {
5854 case 's': // string
5855 str = va_arg (args_copy, const char *);
5856 break;
5857 case 'd': // int
5858 number = va_arg (args_copy, int);
5859 break;
5860 case 'f': // float
5861 fnumber = va_arg (args_copy, double);
5862 break;
5863 default:
5864 break;
5865 }
5866 }
5867 va_end (args_copy);
5868 va_end (args);
5869}
5870
5871int
5872main ()
5873{
5874
5875 // Check bool.
5876 _Bool success = false;
5877
5878 // Check restrict.
5879 if (test_restrict ("String literal") == 0)
5880 success = true;
5881 char *restrict newvar = "Another string";
5882
5883 // Check varargs.
5884 test_varargs ("s, d' f .", "string", 65, 34.234);
5885 test_varargs_macros ();
5886
5887 // Check flexible array members.
5888 struct incomplete_array *ia =
5889 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5890 ia->datasize = 10;
5891 for (int i = 0; i < ia->datasize; ++i)
5892 ia->data[i] = i * 1.234;
5893
5894 // Check named initializers.
5895 struct named_init ni = {
5896 .number = 34,
5897 .name = L"Test wide string",
5898 .average = 543.34343,
5899 };
5900
5901 ni.number = 58;
5902
5903 int dynamic_array[ni.number];
5904 dynamic_array[ni.number - 1] = 543;
5905
5906 // work around unused variable warnings
5907 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5908 || dynamic_array[ni.number - 1] != 543);
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5915do
5916 CC="$ac_save_CC $ac_arg"
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918 ac_cv_prog_cc_c99=$ac_arg
5919fi
5920rm -f core conftest.err conftest.$ac_objext
5921 test "x$ac_cv_prog_cc_c99" != "xno" && break
5922done
5923rm -f conftest.$ac_ext
5924CC=$ac_save_CC
5925
5926fi
5927# AC_CACHE_VAL
5928case "x$ac_cv_prog_cc_c99" in
5929 x)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5931$as_echo "none needed" >&6; } ;;
5932 xno)
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5934$as_echo "unsupported" >&6; } ;;
5935 *)
5936 CC="$CC $ac_cv_prog_cc_c99"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5938$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5939esac
5940if test "x$ac_cv_prog_cc_c99" != xno; then :
5941
5942fi
5943
5944
nicolas6237c462010-10-05 06:11:49 +00005945AM_PROG_CC_C_O
5946AX_CFLAGS_WARN_ALL
5947# Find a good install program. We prefer a C program (faster),
5948# so one script is as good as another. But avoid the broken or
5949# incompatible versions:
5950# SysV /etc/install, /usr/sbin/install
5951# SunOS /usr/etc/install
5952# IRIX /sbin/install
5953# AIX /bin/install
5954# AmigaOS /C/install, which installs bootblocks on floppy discs
5955# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5956# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5957# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5958# OS/2's system install, which has a completely different semantic
5959# ./install, which can be erroneously created by make from ./install.sh.
5960# Reject install programs that cannot install multiple files.
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5962$as_echo_n "checking for a BSD-compatible install... " >&6; }
5963if test -z "$INSTALL"; then
5964if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005965 $as_echo_n "(cached) " >&6
5966else
nicolas6237c462010-10-05 06:11:49 +00005967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 # Account for people who put trailing slashes in PATH elements.
5973case $as_dir/ in #((
5974 ./ | .// | /[cC]/* | \
5975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5977 /usr/ucb/* ) ;;
5978 *)
5979 # OSF1 and SCO ODT 3.0 have their own names for install.
5980 # Don't use installbsd from OSF since it installs stuff as root
5981 # by default.
5982 for ac_prog in ginstall scoinst install; do
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5985 if test $ac_prog = install &&
5986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5987 # AIX install. It has an incompatible calling convention.
5988 :
5989 elif test $ac_prog = install &&
5990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5991 # program-specific install script used by HP pwplus--don't use.
5992 :
5993 else
5994 rm -rf conftest.one conftest.two conftest.dir
5995 echo one > conftest.one
5996 echo two > conftest.two
5997 mkdir conftest.dir
5998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5999 test -s conftest.one && test -s conftest.two &&
6000 test -s conftest.dir/conftest.one &&
6001 test -s conftest.dir/conftest.two
6002 then
6003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6004 break 3
6005 fi
6006 fi
6007 fi
6008 done
6009 done
6010 ;;
6011esac
cristy3ed852e2009-09-05 21:47:34 +00006012
nicolas6237c462010-10-05 06:11:49 +00006013 done
6014IFS=$as_save_IFS
cristy3ed852e2009-09-05 21:47:34 +00006015
nicolas6237c462010-10-05 06:11:49 +00006016rm -rf conftest.one conftest.two conftest.dir
6017
6018fi
6019 if test "${ac_cv_path_install+set}" = set; then
6020 INSTALL=$ac_cv_path_install
6021 else
6022 # As a last resort, use the slow shell script. Don't cache a
6023 # value for INSTALL within a source directory, because that will
6024 # break other packages using the cache if that directory is
6025 # removed, or if the value is a relative name.
6026 INSTALL=$ac_install_sh
cristy3ed852e2009-09-05 21:47:34 +00006027 fi
cristy3ed852e2009-09-05 21:47:34 +00006028fi
nicolas6237c462010-10-05 06:11:49 +00006029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6030$as_echo "$INSTALL" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00006031
nicolas6237c462010-10-05 06:11:49 +00006032# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6033# It thinks the first close brace ends the variable substitution.
6034test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
cristy3ed852e2009-09-05 21:47:34 +00006035
nicolas6237c462010-10-05 06:11:49 +00006036test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cristy3ed852e2009-09-05 21:47:34 +00006037
nicolas6237c462010-10-05 06:11:49 +00006038test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
cristya0b81c32010-01-22 02:54:33 +00006039
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6042set x ${MAKE-make}
6043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyf6fcb5d2010-09-24 01:19:13 +00006044if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristya0b81c32010-01-22 02:54:33 +00006045 $as_echo_n "(cached) " >&6
6046else
6047 cat >conftest.make <<\_ACEOF
6048SHELL = /bin/sh
6049all:
6050 @echo '@@@%%%=$(MAKE)=@@@%%%'
6051_ACEOF
cristyf6fcb5d2010-09-24 01:19:13 +00006052# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00006053case `${MAKE-make} -f conftest.make 2>/dev/null` in
6054 *@@@%%%=?*=@@@%%%*)
6055 eval ac_cv_prog_make_${ac_make}_set=yes;;
6056 *)
6057 eval ac_cv_prog_make_${ac_make}_set=no;;
6058esac
6059rm -f conftest.make
6060fi
6061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6063$as_echo "yes" >&6; }
6064 SET_MAKE=
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068 SET_MAKE="MAKE=${MAKE-make}"
6069fi
6070
cristy8b350f62009-11-15 23:12:43 +00006071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006072$as_echo_n "checking whether ln -s works... " >&6; }
6073LN_S=$as_ln_s
6074if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006076$as_echo "yes" >&6; }
6077else
cristy8b350f62009-11-15 23:12:43 +00006078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006079$as_echo "no, using $LN_S" >&6; }
6080fi
6081
nicolas6237c462010-10-05 06:11:49 +00006082AM_WITH_DMALLOC
6083AX_C___ATTRIBUTE__
6084PKG_PROG_PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +00006085
6086#
cristy3ed852e2009-09-05 21:47:34 +00006087# Enable run-time checking.
6088#
6089# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006090if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006091 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6092else
6093 enable_bounds_checking='no'
6094fi
6095
6096
6097if test "$enable_bounds_checking" = yes; then
6098
cristy8b350f62009-11-15 23:12:43 +00006099$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006100
6101fi
6102
6103#
6104# Tests for Windows
6105#
6106
6107
nicolas6237c462010-10-05 06:11:49 +00006108AX_LANG_COMPILER_MS
cristy3ed852e2009-09-05 21:47:34 +00006109
6110GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00006111native_win32_build='no'
6112cygwin_build='no'
6113case "${host_os}" in
6114 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00006115 cygwin_build='yes'
6116 GDI32_LIBS='-lgdi32'
6117 ;;
6118 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00006119 native_win32_build='yes'
6120 GDI32_LIBS='-lgdi32'
6121 ;;
6122esac
6123if test "${GDI32_LIBS}x" != 'x'; then
6124
cristy8b350f62009-11-15 23:12:43 +00006125$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006126
6127fi
6128
nicolas6237c462010-10-05 06:11:49 +00006129AM_CONDITIONAL(WINGDI32_DELEGATE, test "${GDI32_LIBS}x" != 'x' )
6130AM_CONDITIONAL(WIN32_NATIVE_BUILD, test "${native_win32_build}" = 'yes' )
6131AM_CONDITIONAL(CYGWIN_BUILD, test "${cygwin_build}" = 'yes' )
6132AM_CONDITIONAL(USING_CL, test "x${CC}" = 'xcl.exe' )
cristy3ed852e2009-09-05 21:47:34 +00006133
6134WinPathScript="${srcdirfull}/winpath.sh"
6135
6136
6137#
6138# Compiler flags tweaks
6139#
6140if test "${GCC}" != "yes"; then
6141 case "${host}" in
6142 *-*-hpux* )
6143 # aCC: HP ANSI C++ B3910B A.03.34
6144 CFLAGS="${CFLAGS} -Wp,-H30000"
6145 if test -n "${CXXFLAGS}"; then
6146 CXXFLAGS='-AA'
6147 else
6148 CXXFLAGS="${CXXFLAGS} -AA"
6149 fi
6150 ;;
6151 *-dec-osf5.* )
6152 # Compaq alphaev68-dec-osf5.1 compiler
6153 if test -n "${CXXFLAGS}"; then
6154 CXXFLAGS='-std strict_ansi -noimplicit_include'
6155 else
6156 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
6157 fi
6158 esac
6159fi
6160
6161# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00006162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006163$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006164if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006165 $as_echo_n "(cached) " >&6
6166else
6167
6168im_cv_ld_lazyload='none'
6169case "${host}" in
6170 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
6171 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
6172 im_cv_ld_lazyload='-Wl,-zlazyload'
6173 fi
6174 ;;
6175esac
6176
6177fi
cristy8b350f62009-11-15 23:12:43 +00006178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00006179$as_echo "$im_cv_ld_lazyload" >&6; }
6180if test "${im_cv_ld_lazyload}" != 'none' ; then
6181 if test -z "${LDFLAGS}" ; then
6182 LDFLAGS="${im_cv_ld_lazyload}"
6183 else
6184 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
6185 fi
6186fi
6187
6188case "$host" in
6189*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00006190 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00006191if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006192 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
6193else
6194 build_osxuniversal=no
6195fi
6196
6197
6198 if test "${build_osxuniversal}" != no ; then
6199 if test "$enable_dependency_tracking" != no ; then
cristyf6fcb5d2010-09-24 01:19:13 +00006200 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00006201Please re-run configure with these options:
6202 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00006203 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006204 fi
6205 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6206 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6207 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6208 fi
6209 ;;
6210esac
6211
6212# Enable support for threads
6213
6214# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00006215if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006216 withval=$with_threads; with_threads=$withval
6217else
6218 with_threads='yes'
6219fi
6220
6221
6222have_threads=no
6223if test "$with_threads" != 'no'; then
nicolas6237c462010-10-05 06:11:49 +00006224 AX_PTHREAD()
cristy7acf8fb2010-09-23 19:58:53 +00006225 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00006226 have_threads=yes
6227 DEF_THREAD="$PTHREAD_CFLAGS"
6228 CFLAGS="$CFLAGS $DEF_THREAD"
6229 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
6230 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00006231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00006232$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
6233 CC="$PTHREAD_CC"
6234 fi
cristyb9de14a2010-09-23 16:02:17 +00006235 if test "$CXX" != "$PTHREAD_CXX"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
6237$as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
6238 CXX="$PTHREAD_CXX"
6239 fi
cristy55bf91c2010-09-24 00:29:41 +00006240
6241$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
6242
cristy3ed852e2009-09-05 21:47:34 +00006243 fi
6244fi
6245
6246# Enable support for OpenMP
6247if test "$have_threads" != 'yes'; then
6248 ac_cv_prog_c_openmp=unsupported
6249fi
6250
6251 OPENMP_CFLAGS=
6252 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00006253if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006254 enableval=$enable_openmp;
6255fi
6256
6257 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00006258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006259$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006260if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006261 $as_echo_n "(cached) " >&6
6262else
cristy8b350f62009-11-15 23:12:43 +00006263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00006265
6266#ifndef _OPENMP
6267 choke me
6268#endif
6269#include <omp.h>
6270int main () { return omp_get_num_threads (); }
6271
6272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006273if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006274 ac_cv_prog_c_openmp='none needed'
6275else
cristy8b350f62009-11-15 23:12:43 +00006276 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00006277 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
6278 ac_save_CFLAGS=$CFLAGS
6279 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00006280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00006282
6283#ifndef _OPENMP
6284 choke me
6285#endif
6286#include <omp.h>
6287int main () { return omp_get_num_threads (); }
6288
6289_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006291 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00006292fi
cristy8b350f62009-11-15 23:12:43 +00006293rm -f core conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006295 CFLAGS=$ac_save_CFLAGS
6296 if test "$ac_cv_prog_c_openmp" != unsupported; then
6297 break
6298 fi
6299 done
6300fi
cristy8b350f62009-11-15 23:12:43 +00006301rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006303fi
cristy8b350f62009-11-15 23:12:43 +00006304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00006305$as_echo "$ac_cv_prog_c_openmp" >&6; }
6306 case $ac_cv_prog_c_openmp in #(
6307 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00006308 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00006309 *)
cristy8b350f62009-11-15 23:12:43 +00006310 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00006311 esac
6312 fi
6313
6314
6315CFLAGS="$OPENMP_CFLAGS $CFLAGS"
6316MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
6317
cristy391f1ce2010-09-09 17:23:28 +00006318if test "$enable_openmp" != no; then
6319 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
6320 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
6321 fi
6322fi
cristy3ed852e2009-09-05 21:47:34 +00006323
cristy736173a2009-09-20 21:18:22 +00006324# Enable support for OpenCL
nicolas6237c462010-10-05 06:11:49 +00006325AX_OPENCL(C)
cristyc7083c12009-10-14 03:16:55 +00006326CFLAGS="$CL_CFLAGS $CFLAGS"
6327LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00006328
cristy391f1ce2010-09-09 17:23:28 +00006329if test "$enable_opencl" != no; then
6330 if test "_OPENCL" = '1'; then
6331 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
6332 fi
cristyfd9dcd42010-08-08 18:07:02 +00006333fi
cristy2e8b51d2009-10-17 18:26:15 +00006334
cristy3ed852e2009-09-05 21:47:34 +00006335########
6336#
6337# Check for large file support
6338#
6339########
6340# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00006341if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006342 enableval=$enable_largefile;
6343fi
6344
6345if test "$enable_largefile" != no; then
6346
cristy8b350f62009-11-15 23:12:43 +00006347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006348$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006349if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006350 $as_echo_n "(cached) " >&6
6351else
6352 ac_cv_sys_largefile_CC=no
6353 if test "$GCC" != yes; then
6354 ac_save_CC=$CC
6355 while :; do
6356 # IRIX 6.2 and later do not support large files by default,
6357 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00006358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006359/* end confdefs.h. */
6360#include <sys/types.h>
6361 /* Check that off_t can represent 2**63 - 1 correctly.
6362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6363 since some C++ compilers masquerading as C compilers
6364 incorrectly reject 9223372036854775807. */
6365#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6367 && LARGE_OFF_T % 2147483647 == 1)
6368 ? 1 : -1];
6369int
6370main ()
6371{
6372
6373 ;
6374 return 0;
6375}
6376_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006377 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006378 break
cristy3ed852e2009-09-05 21:47:34 +00006379fi
cristy3ed852e2009-09-05 21:47:34 +00006380rm -f core conftest.err conftest.$ac_objext
6381 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00006382 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006383 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00006384fi
cristy3ed852e2009-09-05 21:47:34 +00006385rm -f core conftest.err conftest.$ac_objext
6386 break
6387 done
6388 CC=$ac_save_CC
6389 rm -f conftest.$ac_ext
6390 fi
6391fi
cristy8b350f62009-11-15 23:12:43 +00006392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006393$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6394 if test "$ac_cv_sys_largefile_CC" != no; then
6395 CC=$CC$ac_cv_sys_largefile_CC
6396 fi
6397
cristy8b350f62009-11-15 23:12:43 +00006398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006399$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006400if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006401 $as_echo_n "(cached) " >&6
6402else
6403 while :; do
cristy8b350f62009-11-15 23:12:43 +00006404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006405/* end confdefs.h. */
6406#include <sys/types.h>
6407 /* Check that off_t can represent 2**63 - 1 correctly.
6408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6409 since some C++ compilers masquerading as C compilers
6410 incorrectly reject 9223372036854775807. */
6411#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6413 && LARGE_OFF_T % 2147483647 == 1)
6414 ? 1 : -1];
6415int
6416main ()
6417{
6418
6419 ;
6420 return 0;
6421}
6422_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006423if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006424 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00006425fi
cristy3ed852e2009-09-05 21:47:34 +00006426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006428/* end confdefs.h. */
6429#define _FILE_OFFSET_BITS 64
6430#include <sys/types.h>
6431 /* Check that off_t can represent 2**63 - 1 correctly.
6432 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6433 since some C++ compilers masquerading as C compilers
6434 incorrectly reject 9223372036854775807. */
6435#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6436 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6437 && LARGE_OFF_T % 2147483647 == 1)
6438 ? 1 : -1];
6439int
6440main ()
6441{
6442
6443 ;
6444 return 0;
6445}
6446_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006447if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006448 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00006449fi
cristy3ed852e2009-09-05 21:47:34 +00006450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 ac_cv_sys_file_offset_bits=unknown
6452 break
6453done
6454fi
cristy8b350f62009-11-15 23:12:43 +00006455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00006456$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6457case $ac_cv_sys_file_offset_bits in #(
6458 no | unknown) ;;
6459 *)
6460cat >>confdefs.h <<_ACEOF
6461#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6462_ACEOF
6463;;
6464esac
6465rm -rf conftest*
6466 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00006467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006468$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006469if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006470 $as_echo_n "(cached) " >&6
6471else
6472 while :; do
cristy8b350f62009-11-15 23:12:43 +00006473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006474/* end confdefs.h. */
6475#include <sys/types.h>
6476 /* Check that off_t can represent 2**63 - 1 correctly.
6477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6478 since some C++ compilers masquerading as C compilers
6479 incorrectly reject 9223372036854775807. */
6480#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6482 && LARGE_OFF_T % 2147483647 == 1)
6483 ? 1 : -1];
6484int
6485main ()
6486{
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006492if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006493 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00006494fi
cristy3ed852e2009-09-05 21:47:34 +00006495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006497/* end confdefs.h. */
6498#define _LARGE_FILES 1
6499#include <sys/types.h>
6500 /* Check that off_t can represent 2**63 - 1 correctly.
6501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6502 since some C++ compilers masquerading as C compilers
6503 incorrectly reject 9223372036854775807. */
6504#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6506 && LARGE_OFF_T % 2147483647 == 1)
6507 ? 1 : -1];
6508int
6509main ()
6510{
6511
6512 ;
6513 return 0;
6514}
6515_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006516if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006517 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00006518fi
cristy3ed852e2009-09-05 21:47:34 +00006519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 ac_cv_sys_large_files=unknown
6521 break
6522done
6523fi
cristy8b350f62009-11-15 23:12:43 +00006524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006525$as_echo "$ac_cv_sys_large_files" >&6; }
6526case $ac_cv_sys_large_files in #(
6527 no | unknown) ;;
6528 *)
6529cat >>confdefs.h <<_ACEOF
6530#define _LARGE_FILES $ac_cv_sys_large_files
6531_ACEOF
6532;;
6533esac
6534rm -rf conftest*
6535 fi
6536fi
6537
cristy8b350f62009-11-15 23:12:43 +00006538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006539$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006540if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006541 $as_echo_n "(cached) " >&6
6542else
6543 while :; do
cristy8b350f62009-11-15 23:12:43 +00006544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006545/* end confdefs.h. */
6546#include <sys/types.h> /* for off_t */
6547 #include <stdio.h>
6548int
6549main ()
6550{
6551int (*fp) (FILE *, off_t, int) = fseeko;
6552 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6553 ;
6554 return 0;
6555}
6556_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006557if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006558 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00006559fi
cristy8b350f62009-11-15 23:12:43 +00006560rm -f core conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006563/* end confdefs.h. */
6564#define _LARGEFILE_SOURCE 1
6565#include <sys/types.h> /* for off_t */
6566 #include <stdio.h>
6567int
6568main ()
6569{
6570int (*fp) (FILE *, off_t, int) = fseeko;
6571 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6572 ;
6573 return 0;
6574}
6575_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006576if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006577 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00006578fi
cristy8b350f62009-11-15 23:12:43 +00006579rm -f core conftest.err conftest.$ac_objext \
6580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006581 ac_cv_sys_largefile_source=unknown
6582 break
6583done
6584fi
cristy8b350f62009-11-15 23:12:43 +00006585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00006586$as_echo "$ac_cv_sys_largefile_source" >&6; }
6587case $ac_cv_sys_largefile_source in #(
6588 no | unknown) ;;
6589 *)
6590cat >>confdefs.h <<_ACEOF
6591#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6592_ACEOF
6593;;
6594esac
6595rm -rf conftest*
6596
6597# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6598# in glibc 2.1.3, but that breaks too many other things.
6599# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6600if test $ac_cv_sys_largefile_source != unknown; then
6601
cristy8b350f62009-11-15 23:12:43 +00006602$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006603
6604fi
6605
6606LFS_CPPFLAGS=''
6607if test "$enable_largefile" != no; then
6608 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
6609 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
6610 else
cristy8b350f62009-11-15 23:12:43 +00006611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00006612$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006613 if test "$cross_compiling" = yes; then :
6614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00006616as_fn_error "cannot run test program while cross compiling
6617See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006618else
cristy8b350f62009-11-15 23:12:43 +00006619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00006621#include <unistd.h>
6622 main () {
6623 exit(!(sizeof(off_t) == 8));
6624 }
6625_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006626if ac_fn_c_try_run "$LINENO"; then :
6627 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006628
cristy8b350f62009-11-15 23:12:43 +00006629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006630$as_echo "yes" >&6; }
6631else
cristy8b350f62009-11-15 23:12:43 +00006632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006633$as_echo "no" >&6; }
6634fi
cristy8b350f62009-11-15 23:12:43 +00006635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6636 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006637fi
6638
cristy3ed852e2009-09-05 21:47:34 +00006639 fi
6640 if test "$ac_cv_sys_large_files" != 'no'; then
6641 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
6642 fi
6643 if test "$ac_cv_sys_largefile_source" != 'no'; then
6644 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
6645 fi
6646fi
6647
6648
6649#
6650# Configure libtool & libltdl
6651#
6652# Configure libtool
nicolas6237c462010-10-05 06:11:49 +00006653AC_LIBTOOL_DLOPEN
6654LT_INIT(win32-dll)
6655LT_LANG(C++)
cristy3ed852e2009-09-05 21:47:34 +00006656
6657
6658# Configure libltdl
nicolas6237c462010-10-05 06:11:49 +00006659LT_CONFIG_LTDL_DIR(ltdl)
6660LTDL_INIT(convenience nonrecursive)
cristy3ed852e2009-09-05 21:47:34 +00006661
6662# Check to see if building shared libraries
6663libtool_build_shared_libs='no'
6664if test "$enable_shared" = 'yes'; then
6665 libtool_build_shared_libs='yes'
6666fi
6667
6668# Check to see if building static libraries
6669libtool_build_static_libs='no'
6670if test "$enable_static" = 'yes'; then
6671 libtool_build_static_libs='yes'
6672fi
6673
nicolas6237c462010-10-05 06:11:49 +00006674AM_CONDITIONAL(WITH_SHARED_LIBS, test "${libtool_build_shared_libs}" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +00006675#
6676# Enable support for building loadable modules
6677#
6678
6679# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +00006680if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006681 withval=$with_modules; with_modules=$withval
6682else
cristy5a1cefd2010-01-06 20:42:35 +00006683 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +00006684fi
6685
6686
6687# Only allow building loadable modules if we are building shared libraries
6688if test "$with_modules" != 'no' ; then
6689 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +00006690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +00006691$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
6692 with_modules='no'
6693 fi
6694fi
6695if test "$with_modules" != 'no'; then
6696
cristy8b350f62009-11-15 23:12:43 +00006697$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006698
6699fi
nicolas6237c462010-10-05 06:11:49 +00006700AM_CONDITIONAL(WITH_MODULES, test "$with_modules" != 'no')
cristy3ed852e2009-09-05 21:47:34 +00006701
6702# Enable building/use of libltdl if we are building shared libraries regardless
6703# of whether modules are built or not.
6704with_ltdl='no'
6705if test "$libtool_build_shared_libs" != 'no'; then
6706 with_ltdl='yes'
6707fi
6708
nicolas6237c462010-10-05 06:11:49 +00006709AM_CONDITIONAL(WITH_LTDL, test "$with_ltdl" != 'no')
cristy3ed852e2009-09-05 21:47:34 +00006710if test "$with_ltdl" != 'no'; then
6711
cristy8b350f62009-11-15 23:12:43 +00006712$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006713
6714
6715 # Set DLLDFLAGS
6716 if test X"$enable_shared" = Xyes; then
6717 DLLDFLAGS=-export-dynamic
6718
6719 fi
6720fi
6721
6722# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +00006723# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +00006724# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +00006725if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006726 enableval=$enable_delegate_build; enable_delegate_build=$enableval
6727else
6728 enable_delegate_build='no'
6729fi
6730
6731
6732# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +00006733if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006734 enableval=$enable_deprecated; enable_deprecated=$enableval
6735else
6736 enable_deprecated='no'
6737fi
6738
6739
6740if test "$enable_deprecated" = 'yes'; then
6741
cristy8b350f62009-11-15 23:12:43 +00006742$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006743
6744else
6745 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
6746fi
6747
6748# Build a version of ImageMagick which operates uninstalled.
6749# Used to build distributions located via MAGICK_HOME / executable path
6750# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +00006751if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006752 enableval=$enable_installed; enable_installed=$enableval
6753else
6754 enable_installed='yes'
6755fi
6756
6757
6758if test "$enable_installed" = 'yes'; then
6759
cristy8b350f62009-11-15 23:12:43 +00006760$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006761
6762else
6763 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
6764fi
6765
6766# Permit enciphering and deciphering image pixels.
6767# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +00006768if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006769 enableval=$enable_cipher; enable_cipher=$enableval
6770else
6771 enable_cipher='yes'
6772fi
6773
6774
6775if test "$enable_cipher" = 'yes'; then
6776
cristy8b350f62009-11-15 23:12:43 +00006777$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006778
6779fi
6780
6781# Build an embeddable version of ImageMagick.
6782# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +00006783if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 enableval=$enable_embeddable; enable_embeddable=$enableval
6785else
6786 enable_embeddable='no'
6787fi
6788
6789
6790if test "$enable_embeddable" = 'yes'; then
6791
cristy8b350f62009-11-15 23:12:43 +00006792$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006793
6794fi
6795
6796# Build a high dynamic range version of ImageMagick.
6797# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +00006798if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006799 enableval=$enable_hdri; enable_hdri=$enableval
6800else
6801 enable_hdri='no'
6802fi
6803
6804
6805MAGICK_HDRI=""
6806if test "$enable_hdri" = 'yes'; then
6807 MAGICK_HDRI="HDRI"
6808
cristy8b350f62009-11-15 23:12:43 +00006809$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006810
cristyfd9dcd42010-08-08 18:07:02 +00006811 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +00006812fi
6813
cristy3ed852e2009-09-05 21:47:34 +00006814# Build a version of ImageMagick with assert statements.
6815# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +00006816if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006817 enableval=$enable_assert; enable_assert=$enableval
6818else
6819 enable_assert='yes'
6820fi
6821
6822
6823if test "$enable_assert" = 'no'; then
6824
cristy8b350f62009-11-15 23:12:43 +00006825$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006826
6827fi
6828
6829# Add configure option --enable-maintainer-mode which enables dependency
6830# checking and generation useful to package maintainers. This is made an
6831# option to avoid confusing end users.
nicolas6237c462010-10-05 06:11:49 +00006832AM_MAINTAINER_MODE
cristy3ed852e2009-09-05 21:47:34 +00006833
6834
6835# Enable ccmalloc memory debugging support
6836# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006837if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006838 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
6839else
6840 enable_ccmalloc='no'
6841fi
6842
6843
6844# Enable Electric Fence memory debugging support
6845# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +00006846if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006847 enableval=$enable_efence; enable_efence=$enableval
6848else
6849 enable_efence='no'
6850fi
6851
6852
6853# Enable prof-based profiling support
6854# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +00006855if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006856 enableval=$enable_prof; enable_prof=$enableval
6857else
6858 enable_prof='no'
6859fi
6860
6861
6862# Enable gprof-based profiling support
6863# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +00006864if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006865 enableval=$enable_gprof; enable_gprof=$enableval
6866else
6867 enable_gprof='no'
6868fi
6869
6870
6871# Enable gcov-based profiling support
6872# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +00006873if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006874 enableval=$enable_gcov; enable_gcov=$enableval
6875else
6876 enable_gcov='no'
6877fi
6878
6879
6880enable_profiling='no'
6881if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
6882 enable_profiling='yes'
6883 if test "$libtool_build_shared_libs" = 'yes'; then
6884 echo "Warning: Can not profile code using shared libraries"
6885 fi
6886fi
6887
6888# Magick API method prefix
6889
6890# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +00006891if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006892 withval=$with_method_prefix; with_method_prefix=$enableval
6893else
6894 with_method_prefix=''
6895fi
6896
6897
6898if test "$with_method_prefix" != ''; then
6899
6900cat >>confdefs.h <<_ACEOF
6901#define NAMESPACE_PREFIX $with_method_prefix
6902_ACEOF
6903
6904fi
6905
6906# Number of bits in a Quantum
6907
6908# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +00006909if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006910 withval=$with_quantum_depth; with_quantum_depth=$withval
6911else
6912 with_quantum_depth=16
6913fi
6914
6915
6916if test "$with_quantum_depth" != '8'; then
6917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
6918fi
6919
6920case "${with_quantum_depth}" in
6921 8 ) ;;
6922 16 ) ;;
6923 32 ) ;;
6924 64 ) ;;
cristyf6fcb5d2010-09-24 01:19:13 +00006925 * ) { as_fn_set_status 16
6926as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +00006927esac
cristycdae12a2010-09-19 02:24:31 +00006928if test "$enable_hdri" = 'yes'; then
6929 with_quantum_depth=16
6930fi
cristy3ed852e2009-09-05 21:47:34 +00006931QUANTUM_DEPTH="$with_quantum_depth"
6932
6933cat >>confdefs.h <<_ACEOF
6934#define QUANTUM_DEPTH $QUANTUM_DEPTH
6935_ACEOF
6936
6937
6938# Set pixel cache threshold
6939
6940# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +00006941if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006942 withval=$with_cache; with_cache=$withval
6943else
6944 with_cache=''
6945fi
6946
6947
6948if test "$with_cache" != ''; then
6949
6950cat >>confdefs.h <<_ACEOF
6951#define PixelCacheThreshold $with_cache
6952_ACEOF
6953
6954 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
6955fi
6956
6957# Disable/Enable support for full delegate paths
6958
6959# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +00006960if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006961 withval=$with_frozenpaths; with_frozenpaths=$withval
6962else
6963 with_frozenpaths='no'
6964fi
6965
6966
6967# Enable build/install of Magick++
6968
6969# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +00006970if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006971 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
6972else
6973 with_magick_plus_plus='yes'
6974fi
6975
6976
6977# Disable build/install of PerlMagick.
6978
6979# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +00006980if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006981 withval=$with_perl; with_perl=$withval
6982else
cristyb5f4e2f2010-04-25 00:49:11 +00006983 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +00006984fi
6985
6986
6987# Options to pass when configuring PerlMagick
6988
6989# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +00006990if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +00006991 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +00006992fi
6993
6994
cristy3ed852e2009-09-05 21:47:34 +00006995
6996# Enable umem, object-caching memory allocation library.
6997
6998# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +00006999if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007000 withval=$with_umem; with_umem=$withval
7001else
7002 with_umem='no'
7003fi
7004
7005if test "$with_umem" != 'yes' ; then
7006 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
7007fi
7008
7009#
7010# Specify path to shared libstdc++ if not in normal location
7011#
7012
7013# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +00007014if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007015 withval=$with_libstdc; with_libstdc=$withval
7016else
7017 with_libstdc=''
7018fi
7019
7020
7021if test "$with_libstdc" != ''; then
7022 if test -d "$with_libstdc"; then
7023 LIBSTDCLDFLAGS="-L$with_libstdc"
7024 fi
7025fi
7026
7027
7028# Does gcc required -traditional?
7029if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +00007030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007032if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007033 $as_echo_n "(cached) " >&6
7034else
7035 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +00007036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007037/* end confdefs.h. */
7038#include <sgtty.h>
7039Autoconf TIOCGETP
7040_ACEOF
7041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00007042 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +00007043 ac_cv_prog_gcc_traditional=yes
7044else
7045 ac_cv_prog_gcc_traditional=no
7046fi
7047rm -f conftest*
7048
7049
7050 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +00007051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007052/* end confdefs.h. */
7053#include <termio.h>
7054Autoconf TCGETA
7055_ACEOF
7056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00007057 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +00007058 ac_cv_prog_gcc_traditional=yes
7059fi
7060rm -f conftest*
7061
7062 fi
7063fi
cristy8b350f62009-11-15 23:12:43 +00007064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +00007065$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7066 if test $ac_cv_prog_gcc_traditional = yes; then
7067 CC="$CC -traditional"
7068 fi
7069fi
7070
7071
7072########
7073#
7074# Set defines required to build DLLs and modules using MinGW
7075#
7076########
7077# These options are set for multi-thread DLL module build
7078# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
7079# module: _DLL
7080# executable/Magick++: _DLL _MAGICKMOD_
7081MODULE_EXTRA_CPPFLAGS=''
7082LIBRARY_EXTRA_CPPFLAGS=''
7083if test "${native_win32_build}" = 'yes'; then
7084 if test "${libtool_build_shared_libs}" = 'yes'; then
7085 CPPFLAGS="$CPPFLAGS -D_DLL"
7086 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
7087 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
7088 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
7089 if test "$with_modules" = 'yes'; then
7090 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
7091 else
7092 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
7093 fi
7094 else
7095 CPPFLAGS="$CPPFLAGS -D_LIB"
7096 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
7097 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
7098 fi
7099 if test "$with_threads" = 'yes'; then
7100 CPPFLAGS="$CPPFLAGS -D_MT"
7101 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
7102 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
7103 fi
7104fi
7105
7106
7107
7108# Check standard headers
cristy8b350f62009-11-15 23:12:43 +00007109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007110$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007111if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007112 $as_echo_n "(cached) " >&6
7113else
cristy8b350f62009-11-15 23:12:43 +00007114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007115/* end confdefs.h. */
7116#include <stdlib.h>
7117#include <stdarg.h>
7118#include <string.h>
7119#include <float.h>
7120
7121int
7122main ()
7123{
7124
7125 ;
7126 return 0;
7127}
7128_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007130 ac_cv_header_stdc=yes
7131else
cristy8b350f62009-11-15 23:12:43 +00007132 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00007133fi
cristy3ed852e2009-09-05 21:47:34 +00007134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135
7136if test $ac_cv_header_stdc = yes; then
7137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00007138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007139/* end confdefs.h. */
7140#include <string.h>
7141
7142_ACEOF
7143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00007144 $EGREP "memchr" >/dev/null 2>&1; then :
7145
cristy3ed852e2009-09-05 21:47:34 +00007146else
7147 ac_cv_header_stdc=no
7148fi
7149rm -f conftest*
7150
7151fi
7152
7153if test $ac_cv_header_stdc = yes; then
7154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00007155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007156/* end confdefs.h. */
7157#include <stdlib.h>
7158
7159_ACEOF
7160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00007161 $EGREP "free" >/dev/null 2>&1; then :
7162
cristy3ed852e2009-09-05 21:47:34 +00007163else
7164 ac_cv_header_stdc=no
7165fi
7166rm -f conftest*
7167
7168fi
7169
7170if test $ac_cv_header_stdc = yes; then
7171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00007172 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 :
7174else
cristy8b350f62009-11-15 23:12:43 +00007175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007176/* end confdefs.h. */
7177#include <ctype.h>
7178#include <stdlib.h>
7179#if ((' ' & 0x0FF) == 0x020)
7180# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7181# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7182#else
7183# define ISLOWER(c) \
7184 (('a' <= (c) && (c) <= 'i') \
7185 || ('j' <= (c) && (c) <= 'r') \
7186 || ('s' <= (c) && (c) <= 'z'))
7187# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7188#endif
7189
7190#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7191int
7192main ()
7193{
7194 int i;
7195 for (i = 0; i < 256; i++)
7196 if (XOR (islower (i), ISLOWER (i))
7197 || toupper (i) != TOUPPER (i))
7198 return 2;
7199 return 0;
7200}
7201_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007202if ac_fn_c_try_run "$LINENO"; then :
7203
cristy3ed852e2009-09-05 21:47:34 +00007204else
cristy8b350f62009-11-15 23:12:43 +00007205 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00007206fi
cristy8b350f62009-11-15 23:12:43 +00007207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7208 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007209fi
7210
cristy3ed852e2009-09-05 21:47:34 +00007211fi
7212fi
cristy8b350f62009-11-15 23:12:43 +00007213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007214$as_echo "$ac_cv_header_stdc" >&6; }
7215if test $ac_cv_header_stdc = yes; then
7216
cristy8b350f62009-11-15 23:12:43 +00007217$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007218
7219fi
7220
7221if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +00007222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
cristy3ed852e2009-09-05 21:47:34 +00007223 header files. Compilation cannot proceed. Please install the ANSI C
7224 headers and rerun this script." >&5
7225$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
7226 header files. Compilation cannot proceed. Please install the ANSI C
7227 headers and rerun this script." >&2;};
7228fi
cristya0b81c32010-01-22 02:54:33 +00007229
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
7231$as_echo_n "checking whether to enable assertions... " >&6; }
7232 # Check whether --enable-assert was given.
7233if test "${enable_assert+set}" = set; then :
7234 enableval=$enable_assert; ac_enable_assert=$enableval
7235 if test "x$enableval" = xno; then :
7236
7237$as_echo "#define NDEBUG 1" >>confdefs.h
7238
7239elif test "x$enableval" != xyes; then :
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
7241$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
7242 ac_enable_assert=yes
7243fi
7244else
7245 ac_enable_assert=yes
7246fi
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
7249$as_echo "$ac_enable_assert" >&6; }
7250
cristy3ed852e2009-09-05 21:47:34 +00007251ac_header_dirent=no
7252for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7253 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +00007254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +00007255$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00007256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007257 $as_echo_n "(cached) " >&6
7258else
cristy8b350f62009-11-15 23:12:43 +00007259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007260/* end confdefs.h. */
7261#include <sys/types.h>
7262#include <$ac_hdr>
7263
7264int
7265main ()
7266{
7267if ((DIR *) 0)
7268return 0;
7269 ;
7270 return 0;
7271}
7272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007273if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007274 eval "$as_ac_Header=yes"
7275else
cristy8b350f62009-11-15 23:12:43 +00007276 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +00007277fi
cristy3ed852e2009-09-05 21:47:34 +00007278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279fi
cristy8b350f62009-11-15 23:12:43 +00007280eval ac_res=\$$as_ac_Header
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +00007282$as_echo "$ac_res" >&6; }
cristyf6fcb5d2010-09-24 01:19:13 +00007283eval as_val=\$$as_ac_Header
7284 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00007285 cat >>confdefs.h <<_ACEOF
7286#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7287_ACEOF
7288
7289ac_header_dirent=$ac_hdr; break
7290fi
7291
7292done
7293# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7294if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +00007295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +00007296$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007297if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007298 $as_echo_n "(cached) " >&6
7299else
7300 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +00007301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007302/* end confdefs.h. */
7303
7304/* Override any GCC internal prototype to avoid an error.
7305 Use char because int might match the return type of a GCC
7306 builtin and then its argument prototype would still apply. */
7307#ifdef __cplusplus
7308extern "C"
7309#endif
7310char opendir ();
7311int
7312main ()
7313{
7314return opendir ();
7315 ;
7316 return 0;
7317}
7318_ACEOF
7319for ac_lib in '' dir; do
7320 if test -z "$ac_lib"; then
7321 ac_res="none required"
7322 else
7323 ac_res=-l$ac_lib
7324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7325 fi
cristy8b350f62009-11-15 23:12:43 +00007326 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007327 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +00007328fi
cristy8b350f62009-11-15 23:12:43 +00007329rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext
7331 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007332 break
7333fi
7334done
cristy8b350f62009-11-15 23:12:43 +00007335if test "${ac_cv_search_opendir+set}" = set; then :
7336
cristy3ed852e2009-09-05 21:47:34 +00007337else
7338 ac_cv_search_opendir=no
7339fi
7340rm conftest.$ac_ext
7341LIBS=$ac_func_search_save_LIBS
7342fi
cristy8b350f62009-11-15 23:12:43 +00007343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +00007344$as_echo "$ac_cv_search_opendir" >&6; }
7345ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +00007346if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +00007347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7348
7349fi
7350
7351else
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007354if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007355 $as_echo_n "(cached) " >&6
7356else
7357 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +00007358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007359/* end confdefs.h. */
7360
7361/* Override any GCC internal prototype to avoid an error.
7362 Use char because int might match the return type of a GCC
7363 builtin and then its argument prototype would still apply. */
7364#ifdef __cplusplus
7365extern "C"
7366#endif
7367char opendir ();
7368int
7369main ()
7370{
7371return opendir ();
7372 ;
7373 return 0;
7374}
7375_ACEOF
7376for ac_lib in '' x; do
7377 if test -z "$ac_lib"; then
7378 ac_res="none required"
7379 else
7380 ac_res=-l$ac_lib
7381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7382 fi
cristy8b350f62009-11-15 23:12:43 +00007383 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007384 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +00007385fi
cristy8b350f62009-11-15 23:12:43 +00007386rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext
7388 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007389 break
7390fi
7391done
cristy8b350f62009-11-15 23:12:43 +00007392if test "${ac_cv_search_opendir+set}" = set; then :
7393
cristy3ed852e2009-09-05 21:47:34 +00007394else
7395 ac_cv_search_opendir=no
7396fi
7397rm conftest.$ac_ext
7398LIBS=$ac_func_search_save_LIBS
7399fi
cristy8b350f62009-11-15 23:12:43 +00007400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +00007401$as_echo "$ac_cv_search_opendir" >&6; }
7402ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +00007403if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +00007404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7405
7406fi
7407
7408fi
7409
7410
7411# Check additional headers
cristya0b81c32010-01-22 02:54:33 +00007412for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +00007413do :
7414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7415ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +00007416eval as_val=\$$as_ac_Header
7417 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00007418 cat >>confdefs.h <<_ACEOF
7419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7420_ACEOF
7421
7422fi
7423
7424done
7425
7426
7427########
7428#
7429# Checks for typedefs, structures, and compiler characteristics.
7430#
7431########
7432
cristy8b350f62009-11-15 23:12:43 +00007433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007434$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007435if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007436 $as_echo_n "(cached) " >&6
7437else
cristy8b350f62009-11-15 23:12:43 +00007438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007439/* end confdefs.h. */
7440
7441#include <stdbool.h>
7442#ifndef bool
7443 "error: bool is not defined"
7444#endif
7445#ifndef false
7446 "error: false is not defined"
7447#endif
7448#if false
7449 "error: false is not 0"
7450#endif
7451#ifndef true
7452 "error: true is not defined"
7453#endif
7454#if true != 1
7455 "error: true is not 1"
7456#endif
7457#ifndef __bool_true_false_are_defined
7458 "error: __bool_true_false_are_defined is not defined"
7459#endif
7460
7461 struct s { _Bool s: 1; _Bool t; } s;
7462
7463 char a[true == 1 ? 1 : -1];
7464 char b[false == 0 ? 1 : -1];
7465 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7466 char d[(bool) 0.5 == true ? 1 : -1];
7467 bool e = &s;
7468 char f[(_Bool) 0.0 == false ? 1 : -1];
7469 char g[true];
7470 char h[sizeof (_Bool)];
7471 char i[sizeof s.t];
7472 enum { j = false, k = true, l = false * true, m = true * 256 };
7473 /* The following fails for
7474 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7475 _Bool n[m];
7476 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7477 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7478# if defined __xlc__ || defined __GNUC__
7479 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7480 reported by James Lemley on 2005-10-05; see
7481 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7482 This test is not quite right, since xlc is allowed to
7483 reject this program, as the initializer for xlcbug is
7484 not one of the forms that C requires support for.
7485 However, doing the test right would require a runtime
7486 test, and that would make cross-compilation harder.
7487 Let us hope that IBM fixes the xlc bug, and also adds
7488 support for this kind of constant expression. In the
7489 meantime, this test will reject xlc, which is OK, since
7490 our stdbool.h substitute should suffice. We also test
7491 this with GCC, where it should work, to detect more
7492 quickly whether someone messes up the test in the
7493 future. */
7494 char digs[] = "0123456789";
7495 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7496# endif
7497 /* Catch a bug in an HP-UX C compiler. See
7498 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7499 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7500 */
7501 _Bool q = true;
7502 _Bool *pq = &q;
7503
7504int
7505main ()
7506{
7507
7508 *pq |= q;
7509 *pq |= ! q;
7510 /* Refer to every declared value, to avoid compiler optimizations. */
7511 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7512 + !m + !n + !o + !p + !q + !pq);
7513
7514 ;
7515 return 0;
7516}
7517_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007518if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007519 ac_cv_header_stdbool_h=yes
7520else
cristy8b350f62009-11-15 23:12:43 +00007521 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +00007522fi
cristy3ed852e2009-09-05 21:47:34 +00007523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524fi
cristy8b350f62009-11-15 23:12:43 +00007525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +00007526$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007527ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7528if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00007529
7530cat >>confdefs.h <<_ACEOF
7531#define HAVE__BOOL 1
7532_ACEOF
7533
7534
7535fi
7536
7537if test $ac_cv_header_stdbool_h = yes; then
7538
cristy8b350f62009-11-15 23:12:43 +00007539$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007540
7541fi
7542
cristy8b350f62009-11-15 23:12:43 +00007543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +00007544$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007545if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007546 $as_echo_n "(cached) " >&6
7547else
cristy8b350f62009-11-15 23:12:43 +00007548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007549/* end confdefs.h. */
7550
7551int
7552main ()
7553{
7554
7555volatile int x;
7556int * volatile y = (int *) 0;
7557return !x && !y;
7558 ;
7559 return 0;
7560}
7561_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007562if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007563 ac_cv_c_volatile=yes
7564else
cristy8b350f62009-11-15 23:12:43 +00007565 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +00007566fi
cristy3ed852e2009-09-05 21:47:34 +00007567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568fi
cristy8b350f62009-11-15 23:12:43 +00007569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +00007570$as_echo "$ac_cv_c_volatile" >&6; }
7571if test $ac_cv_c_volatile = no; then
7572
cristy8b350f62009-11-15 23:12:43 +00007573$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007574
7575fi
7576
cristy8b350f62009-11-15 23:12:43 +00007577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +00007578$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007579if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007580 $as_echo_n "(cached) " >&6
7581else
cristy8b350f62009-11-15 23:12:43 +00007582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007583/* end confdefs.h. */
7584#define x(y) #y
7585
7586char *s = x(teststring);
7587_ACEOF
7588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00007589 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +00007590 ac_cv_c_stringize=no
7591else
7592 ac_cv_c_stringize=yes
7593fi
7594rm -f conftest*
7595
7596fi
cristy8b350f62009-11-15 23:12:43 +00007597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +00007598$as_echo "$ac_cv_c_stringize" >&6; }
7599if test $ac_cv_c_stringize = yes; then
7600
cristy8b350f62009-11-15 23:12:43 +00007601$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007602
7603fi
7604
cristy8b350f62009-11-15 23:12:43 +00007605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +00007606$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007607if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007608 $as_echo_n "(cached) " >&6
7609else
cristy8b350f62009-11-15 23:12:43 +00007610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007611/* end confdefs.h. */
7612#include <sys/types.h>
7613#include <sys/stat.h>
7614
7615#if defined S_ISBLK && defined S_IFDIR
7616extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7617#endif
7618
7619#if defined S_ISBLK && defined S_IFCHR
7620extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7621#endif
7622
7623#if defined S_ISLNK && defined S_IFREG
7624extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7625#endif
7626
7627#if defined S_ISSOCK && defined S_IFREG
7628extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7629#endif
7630
7631_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007632if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007633 ac_cv_header_stat_broken=no
7634else
cristy8b350f62009-11-15 23:12:43 +00007635 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +00007636fi
cristy3ed852e2009-09-05 21:47:34 +00007637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi
cristy8b350f62009-11-15 23:12:43 +00007639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "$ac_cv_header_stat_broken" >&6; }
7641if test $ac_cv_header_stat_broken = yes; then
7642
cristy8b350f62009-11-15 23:12:43 +00007643$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007644
7645fi
7646
cristy8b350f62009-11-15 23:12:43 +00007647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +00007648$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007649if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007650 $as_echo_n "(cached) " >&6
7651else
cristy8b350f62009-11-15 23:12:43 +00007652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007653/* end confdefs.h. */
7654#include <sys/types.h>
7655#include <sys/time.h>
7656#include <time.h>
7657
7658int
7659main ()
7660{
7661if ((struct tm *) 0)
7662return 0;
7663 ;
7664 return 0;
7665}
7666_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007667if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007668 ac_cv_header_time=yes
7669else
cristy8b350f62009-11-15 23:12:43 +00007670 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +00007671fi
cristy3ed852e2009-09-05 21:47:34 +00007672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673fi
cristy8b350f62009-11-15 23:12:43 +00007674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +00007675$as_echo "$ac_cv_header_time" >&6; }
7676if test $ac_cv_header_time = yes; then
7677
cristy8b350f62009-11-15 23:12:43 +00007678$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007679
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007684if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007685 $as_echo_n "(cached) " >&6
7686else
cristy8b350f62009-11-15 23:12:43 +00007687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007688/* end confdefs.h. */
7689#include <sys/types.h>
7690#include <time.h>
7691
7692int
7693main ()
7694{
7695struct tm tm;
7696 int *p = &tm.tm_sec;
7697 return !p;
7698 ;
7699 return 0;
7700}
7701_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007702if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007703 ac_cv_struct_tm=time.h
7704else
cristy8b350f62009-11-15 23:12:43 +00007705 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +00007706fi
cristy3ed852e2009-09-05 21:47:34 +00007707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708fi
cristy8b350f62009-11-15 23:12:43 +00007709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +00007710$as_echo "$ac_cv_struct_tm" >&6; }
7711if test $ac_cv_struct_tm = sys/time.h; then
7712
cristy8b350f62009-11-15 23:12:43 +00007713$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007714
7715fi
7716
cristy92703d82010-04-26 00:18:18 +00007717ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7718#include <$ac_cv_struct_tm>
7719
7720"
7721if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
7722
7723cat >>confdefs.h <<_ACEOF
7724#define HAVE_STRUCT_TM_TM_ZONE 1
7725_ACEOF
7726
7727
7728fi
7729
7730if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7731
7732$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7733
7734else
7735 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7736"
7737if test "x$ac_cv_have_decl_tzname" = x""yes; then :
7738 ac_have_decl=1
7739else
7740 ac_have_decl=0
7741fi
7742
7743cat >>confdefs.h <<_ACEOF
7744#define HAVE_DECL_TZNAME $ac_have_decl
7745_ACEOF
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7748$as_echo_n "checking for tzname... " >&6; }
7749if test "${ac_cv_var_tzname+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h. */
7754#include <time.h>
7755#if !HAVE_DECL_TZNAME
7756extern char *tzname[];
7757#endif
7758
7759int
7760main ()
7761{
7762return tzname[0][0];
7763 ;
7764 return 0;
7765}
7766_ACEOF
7767if ac_fn_c_try_link "$LINENO"; then :
7768 ac_cv_var_tzname=yes
7769else
7770 ac_cv_var_tzname=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7776$as_echo "$ac_cv_var_tzname" >&6; }
7777 if test $ac_cv_var_tzname = yes; then
7778
7779$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7780
7781 fi
7782fi
7783
cristy8b350f62009-11-15 23:12:43 +00007784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +00007785$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007786if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007787 $as_echo_n "(cached) " >&6
7788else
7789 echo '#! /bin/cat
7790exit 69
7791' >conftest
7792chmod u+x conftest
7793(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
7794if test $? -ne 69; then
7795 ac_cv_sys_interpreter=yes
7796else
7797 ac_cv_sys_interpreter=no
7798fi
7799rm -f conftest
7800fi
cristy8b350f62009-11-15 23:12:43 +00007801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +00007802$as_echo "$ac_cv_sys_interpreter" >&6; }
7803interpval=$ac_cv_sys_interpreter
7804
7805
cristy3ed852e2009-09-05 21:47:34 +00007806# If the C compiler supports the keyword inline, do nothing. Otherwise
7807# define inline to __inline__ or __inline if it accepts one of those,
7808# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +00007809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +00007810$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007811if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007812 $as_echo_n "(cached) " >&6
7813else
7814 ac_cv_c_inline=no
7815for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +00007816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007817/* end confdefs.h. */
7818#ifndef __cplusplus
7819typedef int foo_t;
7820static $ac_kw foo_t static_foo () {return 0; }
7821$ac_kw foo_t foo () {return 0; }
7822#endif
7823
7824_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007825if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007826 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +00007827fi
cristy3ed852e2009-09-05 21:47:34 +00007828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 test "$ac_cv_c_inline" != no && break
7830done
7831
7832fi
cristy8b350f62009-11-15 23:12:43 +00007833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +00007834$as_echo "$ac_cv_c_inline" >&6; }
7835
cristy3ed852e2009-09-05 21:47:34 +00007836case $ac_cv_c_inline in
7837 inline | yes) ;;
7838 *)
7839 case $ac_cv_c_inline in
7840 no) ac_val=;;
7841 *) ac_val=$ac_cv_c_inline;;
7842 esac
7843 cat >>confdefs.h <<_ACEOF
7844#ifndef __cplusplus
7845#define inline $ac_val
7846#endif
7847_ACEOF
7848 ;;
7849esac
7850
7851
7852# If the C compiler supports the keyword restrict, do nothing. Otherwise
7853# define restrict to __restrict__ or __restrict if it accepts one of those,
7854# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +00007855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +00007856$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007857if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007858 $as_echo_n "(cached) " >&6
7859else
7860 ac_cv_c_restrict=no
7861 # The order here caters to the fact that C++ does not require restrict.
7862 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +00007863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007864/* end confdefs.h. */
7865typedef int * int_ptr;
7866 int foo (int_ptr $ac_kw ip) {
7867 return ip[0];
7868 }
7869int
7870main ()
7871{
7872int s[1];
7873 int * $ac_kw t = s;
7874 t[0] = 0;
7875 return foo(t)
7876 ;
7877 return 0;
7878}
7879_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007880if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007881 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +00007882fi
cristy3ed852e2009-09-05 21:47:34 +00007883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 test "$ac_cv_c_restrict" != no && break
7885 done
7886
7887fi
cristy8b350f62009-11-15 23:12:43 +00007888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +00007889$as_echo "$ac_cv_c_restrict" >&6; }
7890
cristy3ed852e2009-09-05 21:47:34 +00007891 case $ac_cv_c_restrict in
7892 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +00007893 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007894 ;;
7895 *) cat >>confdefs.h <<_ACEOF
7896#define restrict $ac_cv_c_restrict
7897_ACEOF
7898 ;;
7899 esac
7900
7901
7902# If words are stored with the most significant byte first (like
7903# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +00007904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +00007905$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007906if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007907 $as_echo_n "(cached) " >&6
7908else
7909 ac_cv_c_bigendian=unknown
7910 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +00007911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007912/* end confdefs.h. */
7913#ifndef __APPLE_CC__
7914 not a universal capable compiler
7915 #endif
7916 typedef int dummy;
7917
7918_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007919if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007920
7921 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +00007922 # there are at least two -arch flags with different values.
7923 ac_arch=
7924 ac_prev=
7925 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7926 if test -n "$ac_prev"; then
7927 case $ac_word in
7928 i?86 | x86_64 | ppc | ppc64)
7929 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7930 ac_arch=$ac_word
7931 else
7932 ac_cv_c_bigendian=universal
7933 break
7934 fi
7935 ;;
7936 esac
7937 ac_prev=
7938 elif test "x$ac_word" = "x-arch"; then
7939 ac_prev=arch
7940 fi
7941 done
cristy3ed852e2009-09-05 21:47:34 +00007942fi
cristy3ed852e2009-09-05 21:47:34 +00007943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 if test $ac_cv_c_bigendian = unknown; then
7945 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +00007946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007947/* end confdefs.h. */
7948#include <sys/types.h>
7949 #include <sys/param.h>
7950
7951int
7952main ()
7953{
7954#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7955 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7956 && LITTLE_ENDIAN)
7957 bogus endian macros
7958 #endif
7959
7960 ;
7961 return 0;
7962}
7963_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007965 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +00007966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007967/* end confdefs.h. */
7968#include <sys/types.h>
7969 #include <sys/param.h>
7970
7971int
7972main ()
7973{
7974#if BYTE_ORDER != BIG_ENDIAN
7975 not big endian
7976 #endif
7977
7978 ;
7979 return 0;
7980}
7981_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007982if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007983 ac_cv_c_bigendian=yes
7984else
cristy8b350f62009-11-15 23:12:43 +00007985 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +00007986fi
cristy3ed852e2009-09-05 21:47:34 +00007987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007988fi
cristy3ed852e2009-09-05 21:47:34 +00007989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 if test $ac_cv_c_bigendian = unknown; then
7992 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +00007993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007994/* end confdefs.h. */
7995#include <limits.h>
7996
7997int
7998main ()
7999{
8000#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8001 bogus endian macros
8002 #endif
8003
8004 ;
8005 return 0;
8006}
8007_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008008if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008009 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +00008010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008011/* end confdefs.h. */
8012#include <limits.h>
8013
8014int
8015main ()
8016{
8017#ifndef _BIG_ENDIAN
8018 not big endian
8019 #endif
8020
8021 ;
8022 return 0;
8023}
8024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008026 ac_cv_c_bigendian=yes
8027else
cristy8b350f62009-11-15 23:12:43 +00008028 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +00008029fi
cristy3ed852e2009-09-05 21:47:34 +00008030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008031fi
cristy3ed852e2009-09-05 21:47:34 +00008032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 fi
8034 if test $ac_cv_c_bigendian = unknown; then
8035 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +00008036 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008037 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +00008038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008039/* end confdefs.h. */
8040short int ascii_mm[] =
8041 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8042 short int ascii_ii[] =
8043 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8044 int use_ascii (int i) {
8045 return ascii_mm[i] + ascii_ii[i];
8046 }
8047 short int ebcdic_ii[] =
8048 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8049 short int ebcdic_mm[] =
8050 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8051 int use_ebcdic (int i) {
8052 return ebcdic_mm[i] + ebcdic_ii[i];
8053 }
8054 extern int foo;
8055
8056int
8057main ()
8058{
8059return use_ascii (foo) == use_ebcdic (foo);
8060 ;
8061 return 0;
8062}
8063_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008064if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008065 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8066 ac_cv_c_bigendian=yes
8067 fi
8068 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8069 if test "$ac_cv_c_bigendian" = unknown; then
8070 ac_cv_c_bigendian=no
8071 else
8072 # finding both strings is unlikely to happen, but who knows?
8073 ac_cv_c_bigendian=unknown
8074 fi
8075 fi
cristy3ed852e2009-09-05 21:47:34 +00008076fi
cristy3ed852e2009-09-05 21:47:34 +00008077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078else
cristy8b350f62009-11-15 23:12:43 +00008079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008080/* end confdefs.h. */
8081$ac_includes_default
8082int
8083main ()
8084{
8085
8086 /* Are we little or big endian? From Harbison&Steele. */
8087 union
8088 {
8089 long int l;
8090 char c[sizeof (long int)];
8091 } u;
8092 u.l = 1;
8093 return u.c[sizeof (long int) - 1] == 1;
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008099if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008100 ac_cv_c_bigendian=no
8101else
cristy8b350f62009-11-15 23:12:43 +00008102 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +00008103fi
cristy8b350f62009-11-15 23:12:43 +00008104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8105 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008106fi
8107
cristy3ed852e2009-09-05 21:47:34 +00008108 fi
8109fi
cristy8b350f62009-11-15 23:12:43 +00008110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +00008111$as_echo "$ac_cv_c_bigendian" >&6; }
8112 case $ac_cv_c_bigendian in #(
8113 yes)
cristy8b350f62009-11-15 23:12:43 +00008114 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008115;; #(
8116 no)
8117 ;; #(
8118 universal)
8119
cristy8b350f62009-11-15 23:12:43 +00008120$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008121
8122 ;; #(
8123 *)
cristyf6fcb5d2010-09-24 01:19:13 +00008124 as_fn_error "unknown endianness
cristy8b350f62009-11-15 23:12:43 +00008125 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +00008126 esac
8127
8128
8129# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +00008130ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8131if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008132
cristy3ed852e2009-09-05 21:47:34 +00008133else
8134
8135cat >>confdefs.h <<_ACEOF
8136#define mode_t int
8137_ACEOF
8138
8139fi
8140
8141
8142# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +00008143ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8144if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008145
cristy3ed852e2009-09-05 21:47:34 +00008146else
8147
8148cat >>confdefs.h <<_ACEOF
8149#define off_t long int
8150_ACEOF
8151
8152fi
8153
8154
8155# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +00008156ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8157if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008158
cristy3ed852e2009-09-05 21:47:34 +00008159else
8160
8161cat >>confdefs.h <<_ACEOF
8162#define pid_t int
8163_ACEOF
8164
8165fi
8166
8167
8168# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +00008169ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8170if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008171
cristy3ed852e2009-09-05 21:47:34 +00008172else
8173
8174cat >>confdefs.h <<_ACEOF
8175#define size_t unsigned int
8176_ACEOF
8177
8178fi
8179
8180
8181# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +00008182ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8183if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008184
cristy3ed852e2009-09-05 21:47:34 +00008185else
8186
8187cat >>confdefs.h <<_ACEOF
8188#define ssize_t int
8189_ACEOF
8190
8191fi
8192
8193
8194# If the C compiler supports a working long double type with more range
8195# or precision than the double type, define HAVE_LONG_DOUBLE.
8196
cristy8b350f62009-11-15 23:12:43 +00008197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
cristy3ed852e2009-09-05 21:47:34 +00008198$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008199if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008200 $as_echo_n "(cached) " >&6
8201else
cristy8b350f62009-11-15 23:12:43 +00008202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008203/* end confdefs.h. */
8204#include <float.h>
8205 long double const a[] =
8206 {
8207 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
8208 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
8209 };
8210 long double
8211 f (long double x)
8212 {
8213 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
8214 + (x ? f (x) : 'c'));
8215 }
8216
8217int
8218main ()
8219{
8220static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
8221 + (DBL_MANT_DIG < LDBL_MANT_DIG)
8222 - (LDBL_MAX_EXP < DBL_MAX_EXP)
8223 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
8224 && (int) LDBL_EPSILON == 0
8225 )];
8226test_array [0] = 0
8227
8228 ;
8229 return 0;
8230}
8231_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008232if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008233 ac_cv_type_long_double_wider=yes
8234else
cristy8b350f62009-11-15 23:12:43 +00008235 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +00008236fi
cristy3ed852e2009-09-05 21:47:34 +00008237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238fi
cristy8b350f62009-11-15 23:12:43 +00008239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +00008240$as_echo "$ac_cv_type_long_double_wider" >&6; }
8241 if test $ac_cv_type_long_double_wider = yes; then
8242
cristy8b350f62009-11-15 23:12:43 +00008243$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008244
8245 fi
8246
8247
8248# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
8249# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +00008250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +00008251$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008252if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008253 $as_echo_n "(cached) " >&6
8254else
cristy8b350f62009-11-15 23:12:43 +00008255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008256/* end confdefs.h. */
8257$ac_includes_default
8258int
8259main ()
8260{
8261static int test_array [1 - 2 * !(((char) -1) < 0)];
8262test_array [0] = 0
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008269 ac_cv_c_char_unsigned=no
8270else
cristy8b350f62009-11-15 23:12:43 +00008271 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +00008272fi
cristy3ed852e2009-09-05 21:47:34 +00008273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274fi
cristy8b350f62009-11-15 23:12:43 +00008275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +00008276$as_echo "$ac_cv_c_char_unsigned" >&6; }
8277if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +00008278 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008279
8280fi
8281
8282
8283# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
8284# The cast to long int works around a bug in the HP C Compiler
8285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8287# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +00008289$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008290if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008291 $as_echo_n "(cached) " >&6
8292else
cristy8b350f62009-11-15 23:12:43 +00008293 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008294
cristy3ed852e2009-09-05 21:47:34 +00008295else
cristy8b350f62009-11-15 23:12:43 +00008296 if test "$ac_cv_type_signed_short" = yes; then
8297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008299{ as_fn_set_status 77
8300as_fn_error "cannot compute sizeof (signed short)
8301See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008302 else
8303 ac_cv_sizeof_signed_short=0
8304 fi
8305fi
cristy8b350f62009-11-15 23:12:43 +00008306
cristy3ed852e2009-09-05 21:47:34 +00008307fi
cristy8b350f62009-11-15 23:12:43 +00008308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +00008309$as_echo "$ac_cv_sizeof_signed_short" >&6; }
8310
8311
8312
8313cat >>confdefs.h <<_ACEOF
8314#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
8315_ACEOF
8316
8317
8318
8319# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
8320# The cast to long int works around a bug in the HP C Compiler
8321# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8322# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8323# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008326if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008327 $as_echo_n "(cached) " >&6
8328else
cristy8b350f62009-11-15 23:12:43 +00008329 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008330
cristy3ed852e2009-09-05 21:47:34 +00008331else
cristy8b350f62009-11-15 23:12:43 +00008332 if test "$ac_cv_type_unsigned_short" = yes; then
8333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008335{ as_fn_set_status 77
8336as_fn_error "cannot compute sizeof (unsigned short)
8337See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008338 else
8339 ac_cv_sizeof_unsigned_short=0
8340 fi
8341fi
cristy8b350f62009-11-15 23:12:43 +00008342
cristy3ed852e2009-09-05 21:47:34 +00008343fi
cristy8b350f62009-11-15 23:12:43 +00008344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +00008345$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
8346
8347
8348
8349cat >>confdefs.h <<_ACEOF
8350#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
8351_ACEOF
8352
8353
8354
8355# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
8356# The cast to long int works around a bug in the HP C Compiler
8357# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8358# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8359# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +00008361$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008362if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008363 $as_echo_n "(cached) " >&6
8364else
cristy8b350f62009-11-15 23:12:43 +00008365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008366
cristy3ed852e2009-09-05 21:47:34 +00008367else
cristy8b350f62009-11-15 23:12:43 +00008368 if test "$ac_cv_type_signed_int" = yes; then
8369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008371{ as_fn_set_status 77
8372as_fn_error "cannot compute sizeof (signed int)
8373See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008374 else
8375 ac_cv_sizeof_signed_int=0
8376 fi
8377fi
cristy8b350f62009-11-15 23:12:43 +00008378
cristy3ed852e2009-09-05 21:47:34 +00008379fi
cristy8b350f62009-11-15 23:12:43 +00008380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +00008381$as_echo "$ac_cv_sizeof_signed_int" >&6; }
8382
8383
8384
8385cat >>confdefs.h <<_ACEOF
8386#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
8387_ACEOF
8388
8389
8390
8391# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
8392# The cast to long int works around a bug in the HP C Compiler
8393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8395# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +00008397$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008398if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008399 $as_echo_n "(cached) " >&6
8400else
cristy8b350f62009-11-15 23:12:43 +00008401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008402
cristy3ed852e2009-09-05 21:47:34 +00008403else
cristy8b350f62009-11-15 23:12:43 +00008404 if test "$ac_cv_type_unsigned_int" = yes; then
8405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008407{ as_fn_set_status 77
8408as_fn_error "cannot compute sizeof (unsigned int)
8409See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008410 else
8411 ac_cv_sizeof_unsigned_int=0
8412 fi
8413fi
cristy8b350f62009-11-15 23:12:43 +00008414
cristy3ed852e2009-09-05 21:47:34 +00008415fi
cristy8b350f62009-11-15 23:12:43 +00008416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +00008417$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
8418
8419
8420
8421cat >>confdefs.h <<_ACEOF
8422#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8423_ACEOF
8424
8425
8426
8427# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
8428# The cast to long int works around a bug in the HP C Compiler
8429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8431# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008433$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008434if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008435 $as_echo_n "(cached) " >&6
8436else
cristy8b350f62009-11-15 23:12:43 +00008437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008438
cristy3ed852e2009-09-05 21:47:34 +00008439else
cristy8b350f62009-11-15 23:12:43 +00008440 if test "$ac_cv_type_signed_long" = yes; then
8441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008443{ as_fn_set_status 77
8444as_fn_error "cannot compute sizeof (signed long)
8445See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008446 else
8447 ac_cv_sizeof_signed_long=0
8448 fi
8449fi
cristy8b350f62009-11-15 23:12:43 +00008450
cristy3ed852e2009-09-05 21:47:34 +00008451fi
cristy8b350f62009-11-15 23:12:43 +00008452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008453$as_echo "$ac_cv_sizeof_signed_long" >&6; }
8454
8455
8456
8457cat >>confdefs.h <<_ACEOF
8458#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
8459_ACEOF
8460
8461
8462
8463# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
8464# The cast to long int works around a bug in the HP C Compiler
8465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8467# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008469$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008470if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008471 $as_echo_n "(cached) " >&6
8472else
cristy8b350f62009-11-15 23:12:43 +00008473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008474
cristy3ed852e2009-09-05 21:47:34 +00008475else
cristy8b350f62009-11-15 23:12:43 +00008476 if test "$ac_cv_type_unsigned_long" = yes; then
8477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008479{ as_fn_set_status 77
8480as_fn_error "cannot compute sizeof (unsigned long)
8481See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008482 else
8483 ac_cv_sizeof_unsigned_long=0
8484 fi
8485fi
cristy8b350f62009-11-15 23:12:43 +00008486
cristy3ed852e2009-09-05 21:47:34 +00008487fi
cristy8b350f62009-11-15 23:12:43 +00008488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008489$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8490
8491
8492
8493cat >>confdefs.h <<_ACEOF
8494#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8495_ACEOF
8496
8497
8498
8499# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
8500# 'signed long long' is not supported then the value defined is zero.
8501# The cast to long int works around a bug in the HP C Compiler
8502# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8503# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8504# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008506$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008507if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008508 $as_echo_n "(cached) " >&6
8509else
cristy8b350f62009-11-15 23:12:43 +00008510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008511
cristy3ed852e2009-09-05 21:47:34 +00008512else
cristy8b350f62009-11-15 23:12:43 +00008513 if test "$ac_cv_type_signed_long_long" = yes; then
8514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008516{ as_fn_set_status 77
8517as_fn_error "cannot compute sizeof (signed long long)
8518See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008519 else
8520 ac_cv_sizeof_signed_long_long=0
8521 fi
8522fi
cristy8b350f62009-11-15 23:12:43 +00008523
cristy3ed852e2009-09-05 21:47:34 +00008524fi
cristy8b350f62009-11-15 23:12:43 +00008525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008526$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
8527
8528
8529
8530cat >>confdefs.h <<_ACEOF
8531#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8532_ACEOF
8533
8534
8535
8536# Obtain size of a 'unsigned long long' and define as
8537# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
8538# supported then the value defined is zero.
8539# The cast to long int works around a bug in the HP C Compiler
8540# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8541# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8542# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008544$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008545if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008546 $as_echo_n "(cached) " >&6
8547else
cristy8b350f62009-11-15 23:12:43 +00008548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008549
cristy3ed852e2009-09-05 21:47:34 +00008550else
cristy8b350f62009-11-15 23:12:43 +00008551 if test "$ac_cv_type_unsigned_long_long" = yes; then
8552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008554{ as_fn_set_status 77
8555as_fn_error "cannot compute sizeof (unsigned long long)
8556See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008557 else
8558 ac_cv_sizeof_unsigned_long_long=0
8559 fi
8560fi
cristy8b350f62009-11-15 23:12:43 +00008561
cristy3ed852e2009-09-05 21:47:34 +00008562fi
cristy8b350f62009-11-15 23:12:43 +00008563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +00008564$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8565
8566
8567
8568cat >>confdefs.h <<_ACEOF
8569#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8570_ACEOF
8571
8572
8573
8574# Obtain size of off_t and define as SIZEOF_OFF_T
8575# The cast to long int works around a bug in the HP C Compiler
8576# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8577# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8578# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +00008580$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008581if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008582 $as_echo_n "(cached) " >&6
8583else
cristy8b350f62009-11-15 23:12:43 +00008584 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008585
cristy3ed852e2009-09-05 21:47:34 +00008586else
cristy8b350f62009-11-15 23:12:43 +00008587 if test "$ac_cv_type_off_t" = yes; then
8588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008590{ as_fn_set_status 77
8591as_fn_error "cannot compute sizeof (off_t)
8592See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008593 else
8594 ac_cv_sizeof_off_t=0
8595 fi
8596fi
cristy8b350f62009-11-15 23:12:43 +00008597
cristy3ed852e2009-09-05 21:47:34 +00008598fi
cristy8b350f62009-11-15 23:12:43 +00008599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +00008600$as_echo "$ac_cv_sizeof_off_t" >&6; }
8601
8602
8603
8604cat >>confdefs.h <<_ACEOF
8605#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8606_ACEOF
8607
8608
8609
8610# Obtain size of size_t and define as SIZEOF_SIZE_T
8611# The cast to long int works around a bug in the HP C Compiler
8612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8614# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +00008616$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008617if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008618 $as_echo_n "(cached) " >&6
8619else
cristy8b350f62009-11-15 23:12:43 +00008620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008621
cristy3ed852e2009-09-05 21:47:34 +00008622else
cristy8b350f62009-11-15 23:12:43 +00008623 if test "$ac_cv_type_size_t" = yes; then
8624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008626{ as_fn_set_status 77
8627as_fn_error "cannot compute sizeof (size_t)
8628See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008629 else
8630 ac_cv_sizeof_size_t=0
8631 fi
8632fi
cristy8b350f62009-11-15 23:12:43 +00008633
cristy3ed852e2009-09-05 21:47:34 +00008634fi
cristy8b350f62009-11-15 23:12:43 +00008635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +00008636$as_echo "$ac_cv_sizeof_size_t" >&6; }
8637
8638
8639
8640cat >>confdefs.h <<_ACEOF
8641#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8642_ACEOF
8643
8644
8645
cristy330e9352010-06-01 18:42:49 +00008646# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
8647# The cast to long int works around a bug in the HP C Compiler
8648# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8649# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8650# This bug is HP SR number 8606223364.
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
8652$as_echo_n "checking size of ssize_t... " >&6; }
8653if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655else
8656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
8657
8658else
8659 if test "$ac_cv_type_ssize_t" = yes; then
8660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008662{ as_fn_set_status 77
8663as_fn_error "cannot compute sizeof (ssize_t)
8664See \`config.log' for more details." "$LINENO" 5; }; }
cristy330e9352010-06-01 18:42:49 +00008665 else
8666 ac_cv_sizeof_ssize_t=0
8667 fi
8668fi
8669
8670fi
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
8672$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
8673
8674
8675
8676cat >>confdefs.h <<_ACEOF
8677#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
8678_ACEOF
8679
8680
8681
cristy3ed852e2009-09-05 21:47:34 +00008682# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
8683# The cast to long int works around a bug in the HP C Compiler
8684# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8685# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8686# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +00008687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +00008688$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008689if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008690 $as_echo_n "(cached) " >&6
8691else
cristy8b350f62009-11-15 23:12:43 +00008692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +00008693
cristy3ed852e2009-09-05 21:47:34 +00008694else
cristy8b350f62009-11-15 23:12:43 +00008695 if test "$ac_cv_type_unsigned_intp" = yes; then
8696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyf6fcb5d2010-09-24 01:19:13 +00008698{ as_fn_set_status 77
8699as_fn_error "cannot compute sizeof (unsigned int*)
8700See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +00008701 else
8702 ac_cv_sizeof_unsigned_intp=0
8703 fi
8704fi
cristy8b350f62009-11-15 23:12:43 +00008705
cristy3ed852e2009-09-05 21:47:34 +00008706fi
cristy8b350f62009-11-15 23:12:43 +00008707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008708$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
8709
8710
8711
8712cat >>confdefs.h <<_ACEOF
8713#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
8714_ACEOF
8715
8716
8717
8718#
8719# Compute sized types for current CPU and compiler options.
8720#
8721
cristy8b350f62009-11-15 23:12:43 +00008722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008723$as_echo_n "checking for signed 8-bit type... " >&6; }
8724INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +00008725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008726$as_echo "$INT8_T" >&6; }
8727
8728
cristy8b350f62009-11-15 23:12:43 +00008729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008730$as_echo_n "checking for unsigned 8-bit type... " >&6; }
8731UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +00008732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008733$as_echo "$UINT8_T" >&6; }
8734
8735
cristy8b350f62009-11-15 23:12:43 +00008736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008737$as_echo_n "checking for signed 16-bit type... " >&6; }
8738INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +00008739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008740$as_echo "$INT16_T" >&6; }
8741
8742
cristy8b350f62009-11-15 23:12:43 +00008743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008744$as_echo_n "checking for unsigned 16-bit type... " >&6; }
8745UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +00008746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008747$as_echo "$UINT16_T" >&6; }
8748
8749
cristy8b350f62009-11-15 23:12:43 +00008750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008751$as_echo_n "checking for signed 32-bit type... " >&6; }
8752INT32_T='none'
8753if test $ac_cv_sizeof_signed_int -eq 4; then
8754 INT32_T='signed int'
8755elif test $ac_cv_sizeof_signed_long -eq 4; then
8756 INT32_T='signed long'
8757fi
cristy8b350f62009-11-15 23:12:43 +00008758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008759$as_echo "$INT32_T" >&6; }
8760
8761
cristy8b350f62009-11-15 23:12:43 +00008762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008763$as_echo_n "checking for unsigned 32-bit type... " >&6; }
8764UINT32_T='none'
8765if test $ac_cv_sizeof_unsigned_int -eq 4; then
8766 UINT32_T='unsigned int'
8767elif test $ac_cv_sizeof_unsigned_long -eq 4; then
8768 UINT32_T='unsigned long'
8769fi
cristy8b350f62009-11-15 23:12:43 +00008770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008771$as_echo "$UINT32_T" >&6; }
8772
8773
cristy8b350f62009-11-15 23:12:43 +00008774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008775$as_echo_n "checking for signed 64-bit type... " >&6; }
8776INT64_T='none'
8777if test $ac_cv_sizeof_signed_long -eq 8; then
8778 INT64_T='signed long'
8779elif test $ac_cv_sizeof_signed_long_long -eq 8; then
8780 INT64_T='signed long long'
8781fi
cristy8b350f62009-11-15 23:12:43 +00008782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008783$as_echo "$INT64_T" >&6; }
8784
8785
cristy8b350f62009-11-15 23:12:43 +00008786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008787$as_echo_n "checking for unsigned 64-bit type... " >&6; }
8788UINT64_T='none'
8789if test $ac_cv_sizeof_unsigned_long -eq 8; then
8790 UINT64_T='unsigned long'
8791elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
8792 UINT64_T='unsigned long long'
8793fi
cristy8b350f62009-11-15 23:12:43 +00008794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008795$as_echo "$UINT64_T" >&6; }
8796
8797
cristy8b350f62009-11-15 23:12:43 +00008798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008799$as_echo_n "checking for unsigned maximum type... " >&6; }
8800UINTMAX_T='none'
8801if test "$UINT64_T" != 'none'; then
8802 UINTMAX_T=$UINT64_T
8803elif test "$UINT32_T" != 'none'; then
8804 UINTMAX_T=$UINT32_T
8805fi
cristy8b350f62009-11-15 23:12:43 +00008806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008807$as_echo "$UINTMAX_T" >&6; }
8808
8809
cristy8b350f62009-11-15 23:12:43 +00008810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +00008811$as_echo_n "checking for pointer difference type... " >&6; }
8812UINTPTR_T='none'
8813if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
8814 UINTPTR_T='unsigned long'
8815elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
8816 UINTPTR_T='unsigned long long'
8817fi
cristy8b350f62009-11-15 23:12:43 +00008818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +00008819$as_echo "$UINTPTR_T" >&6; }
8820
8821
cristy8b350f62009-11-15 23:12:43 +00008822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +00008823$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008825/* end confdefs.h. */
8826
8827int
8828main ()
8829{
8830{ const char *func = __func__; return(func != 0 ? 0 : 1); }
8831 ;
8832 return 0;
8833}
8834_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008835if ac_fn_c_try_compile "$LINENO"; then :
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008837$as_echo "yes" >&6; }
8838else
cristy8b350f62009-11-15 23:12:43 +00008839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008840$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +00008841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +00008842$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008844/* end confdefs.h. */
8845
8846int
8847main ()
8848{
8849{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
8850 ;
8851 return 0;
8852}
8853_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008854if ac_fn_c_try_compile "$LINENO"; then :
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008856$as_echo "yes" >&6; }
8857
cristy8b350f62009-11-15 23:12:43 +00008858$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008859
8860else
cristy8b350f62009-11-15 23:12:43 +00008861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008862$as_echo "no" >&6; }
8863
cristy8b350f62009-11-15 23:12:43 +00008864$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008865
8866fi
cristy3ed852e2009-09-05 21:47:34 +00008867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
cristy3ed852e2009-09-05 21:47:34 +00008869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870
8871########
8872#
8873# Check for functions
8874#
8875########
nicolas6237c462010-10-05 06:11:49 +00008876MAGICK_FUNC_MMAP_FILEIO
cristy8b350f62009-11-15 23:12:43 +00008877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +00008878$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008879if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008880 $as_echo_n "(cached) " >&6
8881else
cristy8b350f62009-11-15 23:12:43 +00008882 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008883 ac_cv_func_closedir_void=yes
8884else
cristy8b350f62009-11-15 23:12:43 +00008885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008886/* end confdefs.h. */
8887$ac_includes_default
8888#include <$ac_header_dirent>
8889#ifndef __cplusplus
8890int closedir ();
8891#endif
8892
8893int
8894main ()
8895{
8896return closedir (opendir (".")) != 0;
8897 ;
8898 return 0;
8899}
8900_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008901if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008902 ac_cv_func_closedir_void=no
8903else
cristy8b350f62009-11-15 23:12:43 +00008904 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +00008905fi
cristy8b350f62009-11-15 23:12:43 +00008906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8907 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008908fi
8909
cristy3ed852e2009-09-05 21:47:34 +00008910fi
cristy8b350f62009-11-15 23:12:43 +00008911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +00008912$as_echo "$ac_cv_func_closedir_void" >&6; }
8913if test $ac_cv_func_closedir_void = yes; then
8914
cristy8b350f62009-11-15 23:12:43 +00008915$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008916
8917fi
8918
cristycd4c5312009-11-22 01:19:08 +00008919
8920
8921
8922 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +00008923do :
8924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +00008925ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8926"
cristyf6fcb5d2010-09-24 01:19:13 +00008927eval as_val=\$$as_ac_Header
8928 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008929 cat >>confdefs.h <<_ACEOF
8930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8931_ACEOF
8932
8933fi
8934
8935done
8936
cristycd4c5312009-11-22 01:19:08 +00008937
8938
8939
8940
8941
8942
8943
cristy3ed852e2009-09-05 21:47:34 +00008944for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +00008945do :
8946 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8947if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008948 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008949#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +00008950_ACEOF
8951
8952fi
8953done
8954
cristy8b350f62009-11-15 23:12:43 +00008955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +00008956$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008957if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008958 $as_echo_n "(cached) " >&6
8959else
cristy8b350f62009-11-15 23:12:43 +00008960 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00008961 ac_cv_func_mmap_fixed_mapped=no
8962else
cristy8b350f62009-11-15 23:12:43 +00008963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008964/* end confdefs.h. */
8965$ac_includes_default
8966/* malloc might have been renamed as rpl_malloc. */
8967#undef malloc
8968
8969/* Thanks to Mike Haertel and Jim Avera for this test.
8970 Here is a matrix of mmap possibilities:
8971 mmap private not fixed
8972 mmap private fixed at somewhere currently unmapped
8973 mmap private fixed at somewhere already mapped
8974 mmap shared not fixed
8975 mmap shared fixed at somewhere currently unmapped
8976 mmap shared fixed at somewhere already mapped
8977 For private mappings, we should verify that changes cannot be read()
8978 back from the file, nor mmap's back from the file at a different
8979 address. (There have been systems where private was not correctly
8980 implemented like the infamous i386 svr4.0, and systems where the
8981 VM page cache was not coherent with the file system buffer cache
8982 like early versions of FreeBSD and possibly contemporary NetBSD.)
8983 For shared mappings, we should conversely verify that changes get
8984 propagated back to all the places they're supposed to be.
8985
8986 Grep wants private fixed already mapped.
8987 The main things grep needs to know about mmap are:
8988 * does it exist and is it safe to write into the mmap'd area
8989 * how to use it (BSD variants) */
8990
8991#include <fcntl.h>
8992#include <sys/mman.h>
8993
8994#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8995char *malloc ();
8996#endif
8997
8998/* This mess was copied from the GNU getpagesize.h. */
8999#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +00009000# ifdef _SC_PAGESIZE
9001# define getpagesize() sysconf(_SC_PAGESIZE)
9002# else /* no _SC_PAGESIZE */
9003# ifdef HAVE_SYS_PARAM_H
9004# include <sys/param.h>
9005# ifdef EXEC_PAGESIZE
9006# define getpagesize() EXEC_PAGESIZE
9007# else /* no EXEC_PAGESIZE */
9008# ifdef NBPG
9009# define getpagesize() NBPG * CLSIZE
9010# ifndef CLSIZE
9011# define CLSIZE 1
9012# endif /* no CLSIZE */
9013# else /* no NBPG */
9014# ifdef NBPC
9015# define getpagesize() NBPC
9016# else /* no NBPC */
9017# ifdef PAGESIZE
9018# define getpagesize() PAGESIZE
9019# endif /* PAGESIZE */
9020# endif /* no NBPC */
9021# endif /* no NBPG */
9022# endif /* no EXEC_PAGESIZE */
9023# else /* no HAVE_SYS_PARAM_H */
9024# define getpagesize() 8192 /* punt totally */
9025# endif /* no HAVE_SYS_PARAM_H */
9026# endif /* no _SC_PAGESIZE */
9027
9028#endif /* no HAVE_GETPAGESIZE */
9029
9030int
9031main ()
9032{
9033 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +00009034 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +00009035 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +00009036 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +00009037
9038 pagesize = getpagesize ();
9039
9040 /* First, make a file with some known garbage in it. */
9041 data = (char *) malloc (pagesize);
9042 if (!data)
9043 return 1;
9044 for (i = 0; i < pagesize; ++i)
9045 *(data + i) = rand ();
9046 umask (0);
9047 fd = creat ("conftest.mmap", 0600);
9048 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +00009049 return 2;
cristy3ed852e2009-09-05 21:47:34 +00009050 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +00009051 return 3;
cristy3ed852e2009-09-05 21:47:34 +00009052 close (fd);
9053
cristycd4c5312009-11-22 01:19:08 +00009054 /* Next, check that the tail of a page is zero-filled. File must have
9055 non-zero length, otherwise we risk SIGBUS for entire page. */
9056 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9057 if (fd2 < 0)
9058 return 4;
cristyc54f5d42009-11-27 21:36:31 +00009059 cdata2 = "";
9060 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +00009061 return 5;
cristyc54f5d42009-11-27 21:36:31 +00009062 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +00009063 if (data2 == MAP_FAILED)
9064 return 6;
9065 for (i = 0; i < pagesize; ++i)
9066 if (*(data2 + i))
9067 return 7;
9068 close (fd2);
9069 if (munmap (data2, pagesize))
9070 return 8;
9071
cristy3ed852e2009-09-05 21:47:34 +00009072 /* Next, try to mmap the file at a fixed address which already has
9073 something else allocated at it. If we can, also make sure that
9074 we see the same garbage. */
9075 fd = open ("conftest.mmap", O_RDWR);
9076 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +00009077 return 9;
cristy3ed852e2009-09-05 21:47:34 +00009078 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9079 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +00009080 return 10;
cristy3ed852e2009-09-05 21:47:34 +00009081 for (i = 0; i < pagesize; ++i)
9082 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +00009083 return 11;
cristy3ed852e2009-09-05 21:47:34 +00009084
9085 /* Finally, make sure that changes to the mapped area do not
9086 percolate back to the file as seen by read(). (This is a bug on
9087 some variants of i386 svr4.0.) */
9088 for (i = 0; i < pagesize; ++i)
9089 *(data2 + i) = *(data2 + i) + 1;
9090 data3 = (char *) malloc (pagesize);
9091 if (!data3)
cristycd4c5312009-11-22 01:19:08 +00009092 return 12;
cristy3ed852e2009-09-05 21:47:34 +00009093 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +00009094 return 13;
cristy3ed852e2009-09-05 21:47:34 +00009095 for (i = 0; i < pagesize; ++i)
9096 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +00009097 return 14;
cristy3ed852e2009-09-05 21:47:34 +00009098 close (fd);
9099 return 0;
9100}
9101_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009102if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009103 ac_cv_func_mmap_fixed_mapped=yes
9104else
cristy8b350f62009-11-15 23:12:43 +00009105 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +00009106fi
cristy8b350f62009-11-15 23:12:43 +00009107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9108 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009109fi
9110
cristy3ed852e2009-09-05 21:47:34 +00009111fi
cristy8b350f62009-11-15 23:12:43 +00009112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +00009113$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9114if test $ac_cv_func_mmap_fixed_mapped = yes; then
9115
cristy8b350f62009-11-15 23:12:43 +00009116$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009117
9118fi
cristycd4c5312009-11-22 01:19:08 +00009119rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +00009120
cristy3ed852e2009-09-05 21:47:34 +00009121for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +00009122do :
9123 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9124if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009125 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009126#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +00009127_ACEOF
9128
9129fi
9130
9131done
9132
cristy3ed852e2009-09-05 21:47:34 +00009133for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +00009134do :
9135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9136ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +00009137eval as_val=\$$as_ac_var
9138 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009139 cat >>confdefs.h <<_ACEOF
9140#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9141_ACEOF
9142
9143fi
9144done
9145
9146if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +00009147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +00009148$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009149if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009150 $as_echo_n "(cached) " >&6
9151else
cristy8b350f62009-11-15 23:12:43 +00009152 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009153 ac_cv_func_fork_works=cross
9154else
cristy8b350f62009-11-15 23:12:43 +00009155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009156/* end confdefs.h. */
9157$ac_includes_default
9158int
9159main ()
9160{
9161
9162 /* By Ruediger Kuhlmann. */
9163 return fork () < 0;
9164
9165 ;
9166 return 0;
9167}
9168_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009169if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009170 ac_cv_func_fork_works=yes
9171else
cristy8b350f62009-11-15 23:12:43 +00009172 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +00009173fi
cristy8b350f62009-11-15 23:12:43 +00009174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9175 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009176fi
9177
cristy3ed852e2009-09-05 21:47:34 +00009178fi
cristy8b350f62009-11-15 23:12:43 +00009179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +00009180$as_echo "$ac_cv_func_fork_works" >&6; }
9181
9182else
9183 ac_cv_func_fork_works=$ac_cv_func_fork
9184fi
9185if test "x$ac_cv_func_fork_works" = xcross; then
9186 case $host in
9187 *-*-amigaos* | *-*-msdosdjgpp*)
9188 # Override, as these systems have only a dummy fork() stub
9189 ac_cv_func_fork_works=no
9190 ;;
9191 *)
9192 ac_cv_func_fork_works=yes
9193 ;;
9194 esac
cristy8b350f62009-11-15 23:12:43 +00009195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +00009196$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9197fi
9198ac_cv_func_vfork_works=$ac_cv_func_vfork
9199if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +00009200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +00009201$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009202if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009203 $as_echo_n "(cached) " >&6
9204else
cristy8b350f62009-11-15 23:12:43 +00009205 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009206 ac_cv_func_vfork_works=cross
9207else
cristy8b350f62009-11-15 23:12:43 +00009208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009209/* end confdefs.h. */
9210/* Thanks to Paul Eggert for this test. */
9211$ac_includes_default
9212#include <sys/wait.h>
9213#ifdef HAVE_VFORK_H
9214# include <vfork.h>
9215#endif
9216/* On some sparc systems, changes by the child to local and incoming
9217 argument registers are propagated back to the parent. The compiler
9218 is told about this with #include <vfork.h>, but some compilers
9219 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9220 static variable whose address is put into a register that is
9221 clobbered by the vfork. */
9222static void
9223#ifdef __cplusplus
9224sparc_address_test (int arg)
9225# else
9226sparc_address_test (arg) int arg;
9227#endif
9228{
9229 static pid_t child;
9230 if (!child) {
9231 child = vfork ();
9232 if (child < 0) {
9233 perror ("vfork");
9234 _exit(2);
9235 }
9236 if (!child) {
9237 arg = getpid();
9238 write(-1, "", 0);
9239 _exit (arg);
9240 }
9241 }
9242}
9243
9244int
9245main ()
9246{
9247 pid_t parent = getpid ();
9248 pid_t child;
9249
9250 sparc_address_test (0);
9251
9252 child = vfork ();
9253
9254 if (child == 0) {
9255 /* Here is another test for sparc vfork register problems. This
9256 test uses lots of local variables, at least as many local
9257 variables as main has allocated so far including compiler
9258 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9259 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9260 reuse the register of parent for one of the local variables,
9261 since it will think that parent can't possibly be used any more
9262 in this routine. Assigning to the local variable will thus
9263 munge parent in the parent process. */
9264 pid_t
9265 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9266 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9267 /* Convince the compiler that p..p7 are live; otherwise, it might
9268 use the same hardware register for all 8 local variables. */
9269 if (p != p1 || p != p2 || p != p3 || p != p4
9270 || p != p5 || p != p6 || p != p7)
9271 _exit(1);
9272
9273 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9274 from child file descriptors. If the child closes a descriptor
9275 before it execs or exits, this munges the parent's descriptor
9276 as well. Test for this by closing stdout in the child. */
9277 _exit(close(fileno(stdout)) != 0);
9278 } else {
9279 int status;
9280 struct stat st;
9281
9282 while (wait(&status) != child)
9283 ;
9284 return (
9285 /* Was there some problem with vforking? */
9286 child < 0
9287
9288 /* Did the child fail? (This shouldn't happen.) */
9289 || status
9290
9291 /* Did the vfork/compiler bug occur? */
9292 || parent != getpid()
9293
9294 /* Did the file descriptor bug occur? */
9295 || fstat(fileno(stdout), &st) != 0
9296 );
9297 }
9298}
9299_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009300if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009301 ac_cv_func_vfork_works=yes
9302else
cristy8b350f62009-11-15 23:12:43 +00009303 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +00009304fi
cristy8b350f62009-11-15 23:12:43 +00009305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9306 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009307fi
9308
cristy3ed852e2009-09-05 21:47:34 +00009309fi
cristy8b350f62009-11-15 23:12:43 +00009310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +00009311$as_echo "$ac_cv_func_vfork_works" >&6; }
9312
9313fi;
9314if test "x$ac_cv_func_fork_works" = xcross; then
9315 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +00009316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +00009317$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9318fi
9319
9320if test "x$ac_cv_func_vfork_works" = xyes; then
9321
cristy8b350f62009-11-15 23:12:43 +00009322$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009323
9324else
9325
cristy8b350f62009-11-15 23:12:43 +00009326$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009327
9328fi
9329if test "x$ac_cv_func_fork_works" = xyes; then
9330
cristy8b350f62009-11-15 23:12:43 +00009331$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009332
9333fi
9334
cristy8b350f62009-11-15 23:12:43 +00009335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009337if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009338 $as_echo_n "(cached) " >&6
9339else
cristy8b350f62009-11-15 23:12:43 +00009340 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009341 ac_cv_func_memcmp_working=no
9342else
cristy8b350f62009-11-15 23:12:43 +00009343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009344/* end confdefs.h. */
9345$ac_includes_default
9346int
9347main ()
9348{
9349
9350 /* Some versions of memcmp are not 8-bit clean. */
9351 char c0 = '\100', c1 = '\200', c2 = '\201';
9352 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9353 return 1;
9354
9355 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9356 or more and with at least one buffer not starting on a 4-byte boundary.
9357 William Lewis provided this test program. */
9358 {
9359 char foo[21];
9360 char bar[21];
9361 int i;
9362 for (i = 0; i < 4; i++)
9363 {
9364 char *a = foo + i;
9365 char *b = bar + i;
9366 strcpy (a, "--------01111111");
9367 strcpy (b, "--------10000000");
9368 if (memcmp (a, b, 16) >= 0)
9369 return 1;
9370 }
9371 return 0;
9372 }
9373
9374 ;
9375 return 0;
9376}
9377_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009378if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009379 ac_cv_func_memcmp_working=yes
9380else
cristy8b350f62009-11-15 23:12:43 +00009381 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +00009382fi
cristy8b350f62009-11-15 23:12:43 +00009383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9384 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009385fi
9386
cristy3ed852e2009-09-05 21:47:34 +00009387fi
cristy8b350f62009-11-15 23:12:43 +00009388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +00009389$as_echo "$ac_cv_func_memcmp_working" >&6; }
9390test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9391 *" memcmp.$ac_objext "* ) ;;
9392 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9393 ;;
9394esac
9395
9396
cristy3ed852e2009-09-05 21:47:34 +00009397for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +00009398do :
9399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9400ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyf6fcb5d2010-09-24 01:19:13 +00009401eval as_val=\$$as_ac_Header
9402 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009403 cat >>confdefs.h <<_ACEOF
9404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9405_ACEOF
9406
9407fi
9408
9409done
9410
cristy8b350f62009-11-15 23:12:43 +00009411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +00009412$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009413if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009414 $as_echo_n "(cached) " >&6
9415else
9416 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9417 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9418 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +00009419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009420/* end confdefs.h. */
9421$ac_includes_default
9422#ifdef HAVE_SYS_SELECT_H
9423# include <sys/select.h>
9424#endif
9425#ifdef HAVE_SYS_SOCKET_H
9426# include <sys/socket.h>
9427#endif
9428
9429int
9430main ()
9431{
9432extern int select ($ac_arg1,
9433 $ac_arg234, $ac_arg234, $ac_arg234,
9434 $ac_arg5);
9435 ;
9436 return 0;
9437}
9438_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009439if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009440 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +00009441fi
cristy3ed852e2009-09-05 21:47:34 +00009442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 done
9444 done
9445done
9446# Provide a safe default value.
9447: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9448
9449fi
cristy8b350f62009-11-15 23:12:43 +00009450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +00009451$as_echo "$ac_cv_func_select_args" >&6; }
9452ac_save_IFS=$IFS; IFS=','
9453set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9454IFS=$ac_save_IFS
9455shift
9456
9457cat >>confdefs.h <<_ACEOF
9458#define SELECT_TYPE_ARG1 $1
9459_ACEOF
9460
9461
9462cat >>confdefs.h <<_ACEOF
9463#define SELECT_TYPE_ARG234 ($2)
9464_ACEOF
9465
9466
9467cat >>confdefs.h <<_ACEOF
9468#define SELECT_TYPE_ARG5 ($3)
9469_ACEOF
9470
9471rm -f conftest*
9472
cristy8b350f62009-11-15 23:12:43 +00009473if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009474 $as_echo_n "(cached) " >&6
9475else
9476 ac_cv_func_setvbuf_reversed=no
9477fi
9478
9479
cristy8b350f62009-11-15 23:12:43 +00009480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +00009481$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009482if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009483 $as_echo_n "(cached) " >&6
9484else
cristy8b350f62009-11-15 23:12:43 +00009485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009486/* end confdefs.h. */
9487#include <sys/types.h>
9488#include <signal.h>
9489
9490int
9491main ()
9492{
9493return *(signal (0, 0)) (0) == 1;
9494 ;
9495 return 0;
9496}
9497_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009498if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009499 ac_cv_type_signal=int
9500else
cristy8b350f62009-11-15 23:12:43 +00009501 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +00009502fi
cristy3ed852e2009-09-05 21:47:34 +00009503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504fi
cristy8b350f62009-11-15 23:12:43 +00009505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +00009506$as_echo "$ac_cv_type_signal" >&6; }
9507
9508cat >>confdefs.h <<_ACEOF
9509#define RETSIGTYPE $ac_cv_type_signal
9510_ACEOF
9511
9512
cristy8b350f62009-11-15 23:12:43 +00009513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +00009514$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009515if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009516 $as_echo_n "(cached) " >&6
9517else
cristy8b350f62009-11-15 23:12:43 +00009518 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009519 ac_cv_func_strtod=no
9520else
cristy8b350f62009-11-15 23:12:43 +00009521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009522/* end confdefs.h. */
9523
9524$ac_includes_default
9525#ifndef strtod
9526double strtod ();
9527#endif
9528int
9529main()
9530{
9531 {
9532 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
9533 char *string = " +69";
9534 char *term;
9535 double value;
9536 value = strtod (string, &term);
9537 if (value != 69 || term != (string + 4))
9538 return 1;
9539 }
9540
9541 {
9542 /* Under Solaris 2.4, strtod returns the wrong value for the
9543 terminating character under some conditions. */
9544 char *string = "NaN";
9545 char *term;
9546 strtod (string, &term);
9547 if (term != string && *(term - 1) == 0)
9548 return 1;
9549 }
9550 return 0;
9551}
9552
9553_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009554if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009555 ac_cv_func_strtod=yes
9556else
cristy8b350f62009-11-15 23:12:43 +00009557 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +00009558fi
cristy8b350f62009-11-15 23:12:43 +00009559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9560 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009561fi
9562
cristy3ed852e2009-09-05 21:47:34 +00009563fi
cristy8b350f62009-11-15 23:12:43 +00009564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo "$ac_cv_func_strtod" >&6; }
9566if test $ac_cv_func_strtod = no; then
9567 case " $LIBOBJS " in
9568 *" strtod.$ac_objext "* ) ;;
9569 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9570 ;;
9571esac
9572
cristy8b350f62009-11-15 23:12:43 +00009573ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
9574if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009575
cristy3ed852e2009-09-05 21:47:34 +00009576fi
9577
cristy3ed852e2009-09-05 21:47:34 +00009578if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +00009579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +00009580$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009581if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009582 $as_echo_n "(cached) " >&6
9583else
9584 ac_check_lib_save_LIBS=$LIBS
9585LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +00009586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009587/* end confdefs.h. */
9588
9589/* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9592#ifdef __cplusplus
9593extern "C"
9594#endif
9595char pow ();
9596int
9597main ()
9598{
9599return pow ();
9600 ;
9601 return 0;
9602}
9603_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009605 ac_cv_lib_m_pow=yes
9606else
cristy8b350f62009-11-15 23:12:43 +00009607 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +00009608fi
cristy8b350f62009-11-15 23:12:43 +00009609rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009611LIBS=$ac_check_lib_save_LIBS
9612fi
cristy8b350f62009-11-15 23:12:43 +00009613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +00009614$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +00009615if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009616 POW_LIB=-lm
9617else
cristy8b350f62009-11-15 23:12:43 +00009618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +00009619$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9620fi
9621
9622fi
9623
9624fi
9625
cristy3ed852e2009-09-05 21:47:34 +00009626for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +00009627do :
9628 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9629if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009630 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009631#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +00009632_ACEOF
9633
cristy8b350f62009-11-15 23:12:43 +00009634ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9635if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009636
cristy8b350f62009-11-15 23:12:43 +00009637$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009638
9639fi
9640
9641fi
9642done
9643
9644
9645
cristy161b9262010-03-20 19:34:32 +00009646#
9647# Find math library
9648#
9649MATH_LIBS=''
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
9651$as_echo_n "checking for sqrt in -lm... " >&6; }
9652if test "${ac_cv_lib_m_sqrt+set}" = set; then :
9653 $as_echo_n "(cached) " >&6
9654else
9655 ac_check_lib_save_LIBS=$LIBS
9656LIBS="-lm $LIBS"
9657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658/* end confdefs.h. */
9659
9660/* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
9663#ifdef __cplusplus
9664extern "C"
9665#endif
9666char sqrt ();
9667int
9668main ()
9669{
9670return sqrt ();
9671 ;
9672 return 0;
9673}
9674_ACEOF
9675if ac_fn_c_try_link "$LINENO"; then :
9676 ac_cv_lib_m_sqrt=yes
9677else
9678 ac_cv_lib_m_sqrt=no
9679fi
9680rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682LIBS=$ac_check_lib_save_LIBS
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
9685$as_echo "$ac_cv_lib_m_sqrt" >&6; }
9686if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
9687 MATH_LIBS="-lm"
9688fi
9689
9690LIBS="$MATH_LIBS $LIBS"
9691
9692
cristyf1897e32010-08-29 19:59:09 +00009693for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +00009694do :
9695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9696ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +00009697eval as_val=\$$as_ac_var
9698 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00009699 cat >>confdefs.h <<_ACEOF
9700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9701_ACEOF
9702
9703fi
9704done
9705
9706
cristye43a45e2009-09-28 14:49:00 +00009707#
9708# Check for clock_gettime().
9709#
cristy8b350f62009-11-15 23:12:43 +00009710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +00009711$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009712if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +00009713 $as_echo_n "(cached) " >&6
9714else
9715 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +00009716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +00009717/* end confdefs.h. */
9718
9719/* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722#ifdef __cplusplus
9723extern "C"
9724#endif
9725char clock_gettime ();
9726int
9727main ()
9728{
9729return clock_gettime ();
9730 ;
9731 return 0;
9732}
9733_ACEOF
9734for ac_lib in '' rt; do
9735 if test -z "$ac_lib"; then
9736 ac_res="none required"
9737 else
9738 ac_res=-l$ac_lib
9739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9740 fi
cristy8b350f62009-11-15 23:12:43 +00009741 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +00009742 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +00009743fi
cristy8b350f62009-11-15 23:12:43 +00009744rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext
9746 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +00009747 break
9748fi
9749done
cristy8b350f62009-11-15 23:12:43 +00009750if test "${ac_cv_search_clock_gettime+set}" = set; then :
9751
cristye43a45e2009-09-28 14:49:00 +00009752else
9753 ac_cv_search_clock_gettime=no
9754fi
9755rm conftest.$ac_ext
9756LIBS=$ac_func_search_save_LIBS
9757fi
cristy8b350f62009-11-15 23:12:43 +00009758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +00009759$as_echo "$ac_cv_search_clock_gettime" >&6; }
9760ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +00009761if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +00009762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9763
9764
cristy8b350f62009-11-15 23:12:43 +00009765$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +00009766
cristy8b350f62009-11-15 23:12:43 +00009767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +00009768$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +00009770/* end confdefs.h. */
9771#include <time.h>
9772int
9773main ()
9774{
9775clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +00009776 ;
9777 return 0;
9778}
9779_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009780if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +00009781
cristy8b350f62009-11-15 23:12:43 +00009782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +00009783$as_echo "yes" >&6; }
9784
cristy8b350f62009-11-15 23:12:43 +00009785$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +00009786
9787
9788else
cristy8b350f62009-11-15 23:12:43 +00009789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +00009790$as_echo "no" >&6; }
9791
9792fi
cristye43a45e2009-09-28 14:49:00 +00009793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794
9795else
9796
cristy8b350f62009-11-15 23:12:43 +00009797 for ac_func in gettimeofday ftime
9798do :
9799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9800ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +00009801eval as_val=\$$as_ac_var
9802 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +00009803 cat >>confdefs.h <<_ACEOF
9804#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9805_ACEOF
9806 break
9807fi
9808done
9809
9810
9811
9812fi
9813
9814
cristy3ed852e2009-09-05 21:47:34 +00009815########
9816#
9817# Check for function prototypes
9818#
9819########
9820
cristy8b350f62009-11-15 23:12:43 +00009821ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +00009822#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +00009823"
9824if test "x$ac_cv_have_decl_pread" = x""yes; then :
9825 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +00009826else
cristy8b350f62009-11-15 23:12:43 +00009827 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +00009828fi
9829
cristy3ed852e2009-09-05 21:47:34 +00009830cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009831#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +00009832_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009833ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +00009834#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +00009835"
9836if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
9837 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +00009838else
cristy8b350f62009-11-15 23:12:43 +00009839 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +00009840fi
9841
cristy3ed852e2009-09-05 21:47:34 +00009842cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009843#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +00009844_ACEOF
9845
9846
cristy8b350f62009-11-15 23:12:43 +00009847ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +00009848#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +00009849"
9850if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
9851 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +00009852else
cristy8b350f62009-11-15 23:12:43 +00009853 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +00009854fi
9855
cristy3ed852e2009-09-05 21:47:34 +00009856cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009857#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +00009858_ACEOF
9859
9860
cristy8b350f62009-11-15 23:12:43 +00009861ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +00009862#include <stdio.h>
9863#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +00009864"
9865if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9866 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +00009867else
cristy8b350f62009-11-15 23:12:43 +00009868 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +00009869fi
9870
cristy3ed852e2009-09-05 21:47:34 +00009871cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009872#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +00009873_ACEOF
9874
9875
cristy3ed852e2009-09-05 21:47:34 +00009876########
9877#
9878# C++ Support Tests (For Magick++)
9879#
9880########
9881have_magick_plus_plus='no'
9882if test "$with_magick_plus_plus" = 'yes'; then
9883 OLIBS="$LIBS"
9884 LIBS=''
9885 ac_ext=cpp
9886ac_cpp='$CXXCPP $CPPFLAGS'
9887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9890
9891
9892 # Full set of headers used...
9893 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
9894 # functional iomanip iosfwd iostream iterator list string strstream utility
9895 ac_ext=cpp
9896ac_cpp='$CXXCPP $CPPFLAGS'
9897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9900
9901 ac_ext=cpp
9902ac_cpp='$CXXCPP $CPPFLAGS'
9903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9906if test -z "$CXX"; then
9907 if test -n "$CCC"; then
9908 CXX=$CCC
9909 else
9910 if test -n "$ac_tool_prefix"; then
9911 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9912 do
9913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009916$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009917if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009918 $as_echo_n "(cached) " >&6
9919else
9920 if test -n "$CXX"; then
9921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009932 break 2
9933 fi
9934done
cristy8b350f62009-11-15 23:12:43 +00009935 done
cristy3ed852e2009-09-05 21:47:34 +00009936IFS=$as_save_IFS
9937
9938fi
9939fi
9940CXX=$ac_cv_prog_CXX
9941if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +00009942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00009943$as_echo "$CXX" >&6; }
9944else
cristy8b350f62009-11-15 23:12:43 +00009945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009946$as_echo "no" >&6; }
9947fi
9948
9949
9950 test -n "$CXX" && break
9951 done
9952fi
9953if test -z "$CXX"; then
9954 ac_ct_CXX=$CXX
9955 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9956do
9957 # Extract the first word of "$ac_prog", so it can be a program name with args.
9958set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009960$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009962 $as_echo_n "(cached) " >&6
9963else
9964 if test -n "$ac_ct_CXX"; then
9965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9966else
9967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9974 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009976 break 2
9977 fi
9978done
cristy8b350f62009-11-15 23:12:43 +00009979 done
cristy3ed852e2009-09-05 21:47:34 +00009980IFS=$as_save_IFS
9981
9982fi
9983fi
9984ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9985if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +00009986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +00009987$as_echo "$ac_ct_CXX" >&6; }
9988else
cristy8b350f62009-11-15 23:12:43 +00009989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009990$as_echo "no" >&6; }
9991fi
9992
9993
9994 test -n "$ac_ct_CXX" && break
9995done
9996
9997 if test "x$ac_ct_CXX" = x; then
9998 CXX="g++"
9999 else
10000 case $cross_compiling:$ac_tool_warned in
10001yes:)
cristy8b350f62009-11-15 23:12:43 +000010002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10004ac_tool_warned=yes ;;
10005esac
10006 CXX=$ac_ct_CXX
10007 fi
10008fi
10009
10010 fi
10011fi
10012# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000010013$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000010014set X $ac_compile
10015ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000010016for ac_option in --version -v -V -qversion; do
10017 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000010018case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021esac
cristy8b350f62009-11-15 23:12:43 +000010022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10023$as_echo "$ac_try_echo"; } >&5
10024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000010025 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010026 if test -s conftest.err; then
10027 sed '10a\
10028... rest of stderr output deleted ...
10029 10q' conftest.err >conftest.er1
10030 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000010031 fi
cristycd4c5312009-11-22 01:19:08 +000010032 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000010033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10034 test $ac_status = 0; }
10035done
cristy3ed852e2009-09-05 21:47:34 +000010036
cristy8b350f62009-11-15 23:12:43 +000010037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000010038$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010039if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010040 $as_echo_n "(cached) " >&6
10041else
cristy8b350f62009-11-15 23:12:43 +000010042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010043/* end confdefs.h. */
10044
10045int
10046main ()
10047{
10048#ifndef __GNUC__
10049 choke me
10050#endif
10051
10052 ;
10053 return 0;
10054}
10055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010056if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010057 ac_compiler_gnu=yes
10058else
cristy8b350f62009-11-15 23:12:43 +000010059 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000010060fi
cristy3ed852e2009-09-05 21:47:34 +000010061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10063
10064fi
cristy8b350f62009-11-15 23:12:43 +000010065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000010066$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10067if test $ac_compiler_gnu = yes; then
10068 GXX=yes
10069else
10070 GXX=
10071fi
10072ac_test_CXXFLAGS=${CXXFLAGS+set}
10073ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000010074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000010075$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010076if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010077 $as_echo_n "(cached) " >&6
10078else
10079 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10080 ac_cxx_werror_flag=yes
10081 ac_cv_prog_cxx_g=no
10082 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000010083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010084/* end confdefs.h. */
10085
10086int
10087main ()
10088{
10089
10090 ;
10091 return 0;
10092}
10093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010094if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010095 ac_cv_prog_cxx_g=yes
10096else
cristy8b350f62009-11-15 23:12:43 +000010097 CXXFLAGS=""
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010099/* end confdefs.h. */
10100
10101int
10102main ()
10103{
10104
10105 ;
10106 return 0;
10107}
10108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010109if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010110
cristy8b350f62009-11-15 23:12:43 +000010111else
10112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000010113 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000010114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010115/* end confdefs.h. */
10116
10117int
10118main ()
10119{
10120
10121 ;
10122 return 0;
10123}
10124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010125if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010126 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000010127fi
cristy3ed852e2009-09-05 21:47:34 +000010128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129fi
cristy3ed852e2009-09-05 21:47:34 +000010130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131fi
cristy3ed852e2009-09-05 21:47:34 +000010132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10134fi
cristy8b350f62009-11-15 23:12:43 +000010135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000010136$as_echo "$ac_cv_prog_cxx_g" >&6; }
10137if test "$ac_test_CXXFLAGS" = set; then
10138 CXXFLAGS=$ac_save_CXXFLAGS
10139elif test $ac_cv_prog_cxx_g = yes; then
10140 if test "$GXX" = yes; then
10141 CXXFLAGS="-g -O2"
10142 else
10143 CXXFLAGS="-g"
10144 fi
10145else
10146 if test "$GXX" = yes; then
10147 CXXFLAGS="-O2"
10148 else
10149 CXXFLAGS=
10150 fi
10151fi
10152ac_ext=cpp
10153ac_cpp='$CXXCPP $CPPFLAGS'
10154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10157
nicolas6237c462010-10-05 06:11:49 +000010158 AX_CXX_BOOL
10159 AX_CXX_NAMESPACES
10160 AX_CXX_NAMESPACE_STD
10161 AC_CXX_HAVE_STD_LIBS
10162 AC_CXX_HAVE_LSTRING
cristy3ed852e2009-09-05 21:47:34 +000010163
10164
10165 OPENMP_CXXFLAGS=
10166 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010167if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010168 enableval=$enable_openmp;
10169fi
10170
10171 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000010172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
10173$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010174if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 $as_echo_n "(cached) " >&6
10176else
cristy8b350f62009-11-15 23:12:43 +000010177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010179
10180#ifndef _OPENMP
10181 choke me
10182#endif
10183#include <omp.h>
10184int main () { return omp_get_num_threads (); }
10185
10186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010187if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010188 ac_cv_prog_cxx_openmp='none needed'
10189else
cristy8b350f62009-11-15 23:12:43 +000010190 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000010191 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
10192 ac_save_CXXFLAGS=$CXXFLAGS
10193 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010196
10197#ifndef _OPENMP
10198 choke me
10199#endif
10200#include <omp.h>
10201int main () { return omp_get_num_threads (); }
10202
10203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010204if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010205 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010206fi
cristy8b350f62009-11-15 23:12:43 +000010207rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010209 CXXFLAGS=$ac_save_CXXFLAGS
10210 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
10211 break
10212 fi
10213 done
10214fi
cristy8b350f62009-11-15 23:12:43 +000010215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010217fi
cristy8b350f62009-11-15 23:12:43 +000010218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010219$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
10220 case $ac_cv_prog_cxx_openmp in #(
10221 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010222 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010223 *)
cristy8b350f62009-11-15 23:12:43 +000010224 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010225 esac
10226 fi
10227
10228
10229 ac_ext=c
10230ac_cpp='$CPP $CPPFLAGS'
10231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233ac_compiler_gnu=$ac_cv_c_compiler_gnu
10234
10235
cristy8b350f62009-11-15 23:12:43 +000010236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000010237$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
10238 if \
cristy964cb7f2010-04-25 23:18:00 +000010239 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000010240 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000010241 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000010242 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000010243 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000010244 have_magick_plus_plus='yes'
10245 else
10246 have_magick_plus_plus='no (failed tests)'
10247 fi
cristy8b350f62009-11-15 23:12:43 +000010248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000010249$as_echo "$have_magick_plus_plus" >&6; }
10250 LIBS="$OLIBS"
10251fi
nicolas6237c462010-10-05 06:11:49 +000010252AM_CONDITIONAL(WITH_MAGICK_PLUS_PLUS, test "$have_magick_plus_plus" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000010253
10254# Only check for delegate libraries in subdirectories if requested.
10255if test "$enable_delegate_build" != 'no'; then
10256 # Check for delegate sub-directories and add -I & -L options as required.
10257 # This presumes that delegates are installed as detailed in the ImageMagick
10258 # README. If delegates are installed in a standard location where the
10259 # compiler will automatically find them then these options should not be
10260 # required.
10261
10262 #
10263 # Most delegates have includes in the same directory as the library, but not all...
10264 #
10265 # Includes
cristy5850e4b2010-01-08 14:28:24 +000010266 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000010267 if test -d "$builddir/$dir"; then
10268 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
10269 else
10270 if test -d "$srcdirfull/$dir"; then
10271 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
10272 fi
10273 fi
10274 done
10275
10276 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000010277 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000010278 if test -d "$builddir/$dir/.libs"; then
10279 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
10280 else
10281 if test -d "$srcdirfull/$dir/.libs"; then
10282 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
10283 fi
10284 fi
10285 if test -d "$builddir/$dir"; then
10286 LDFLAGS="$LDFLAGS -L$builddir/$dir"
10287 else
10288 if test -d "$srcdirfull/$dir"; then
10289 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
10290 fi
10291 fi
10292 done
10293fi
10294
10295# Assume that delegate headers reside under same directory as ImageMagick
10296# installation prefix.
10297MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
10298
10299#
10300# Find the X11 RGB database
10301#
cristy8b350f62009-11-15 23:12:43 +000010302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010303$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010304if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010305 $as_echo_n "(cached) " >&6
10306else
10307 # Look for the header file in a standard set of common directories.
10308# Check X11 before X11Rn because it is often a symlink to the current release.
10309 for ac_dir in \
10310 /lib/usr/lib/X11 \
10311 /usr/X11/lib \
10312 /usr/X11R4/lib \
10313 /usr/X11R5/lib \
10314 /usr/X11R6/lib \
10315 /usr/X11R7/lib \
10316 /usr/X386/lib \
10317 /usr/XFree86/lib/X11 \
10318 /usr/athena/lib \
10319 /usr/lib \
10320 /usr/lib/X11 \
10321 /usr/lib/X11R4 \
10322 /usr/lib/X11R5 \
10323 /usr/lib/X11R6 \
10324 /usr/lib/X11R7 \
10325 /usr/local/X11/lib \
10326 /usr/local/X11R4/lib \
10327 /usr/local/X11R5/lib \
10328 /usr/local/X11R6/lib \
10329 /usr/local/lib \
10330 /usr/local/lib/X11 \
10331 /usr/local/lib/X11R4 \
10332 /usr/local/lib/X11R5 \
10333 /usr/local/lib/X11R6 \
10334 /usr/local/lib/X11R7 \
10335 /usr/local/x11r5/lib \
10336 /usr/lpp/Xamples/lib \
10337 /usr/openwin/lib \
10338 /usr/openwin/share/lib \
10339 /usr/unsupported/lib \
10340 /usr/x386/lib \
10341 ; do
10342 if test -f "$ac_dir/X11/rgb.txt"; then
10343 im_cv_x_configure="$ac_dir/X11/"
10344 break
10345 elif test -f "$ac_dir/rgb.txt"; then
10346 im_cv_x_configure="$ac_dir/"
10347 break
10348 fi
10349
10350 done
10351fi
cristy8b350f62009-11-15 23:12:43 +000010352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000010353$as_echo "$im_cv_x_configure" >&6; }
10354X11_CONFIGURE_PATH="$im_cv_x_configure"
10355case "${build_os}" in
10356 mingw* )
10357 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
10358 ;;
10359esac
10360
10361cat >>confdefs.h <<_ACEOF
10362#define X11_CONFIGURE_PATH "$X11ConfigurePath"
10363_ACEOF
10364
10365
10366#
10367# Find OpenMP library
10368#
10369GOMP_LIBS=''
10370if test "$enable_openmp" != 'no'; then
10371 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000010372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010374if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 ac_check_lib_save_LIBS=$LIBS
10378LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010380/* end confdefs.h. */
10381
10382/* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10385#ifdef __cplusplus
10386extern "C"
10387#endif
10388char GOMP_parallel_start ();
10389int
10390main ()
10391{
10392return GOMP_parallel_start ();
10393 ;
10394 return 0;
10395}
10396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010398 ac_cv_lib_gomp_GOMP_parallel_start=yes
10399else
cristy8b350f62009-11-15 23:12:43 +000010400 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000010401fi
cristy8b350f62009-11-15 23:12:43 +000010402rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010404LIBS=$ac_check_lib_save_LIBS
10405fi
cristy8b350f62009-11-15 23:12:43 +000010406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000010407$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010408if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010409 GOMP_LIBS="-lgomp"
10410fi
10411 # gcc
10412 else
cristy8b350f62009-11-15 23:12:43 +000010413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000010414$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010415if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010416 $as_echo_n "(cached) " >&6
10417else
10418 ac_check_lib_save_LIBS=$LIBS
10419LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010421/* end confdefs.h. */
10422
10423/* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426#ifdef __cplusplus
10427extern "C"
10428#endif
10429char sunw_mp_register_warn ();
10430int
10431main ()
10432{
10433return sunw_mp_register_warn ();
10434 ;
10435 return 0;
10436}
10437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010439 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
10440else
cristy8b350f62009-11-15 23:12:43 +000010441 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000010442fi
cristy8b350f62009-11-15 23:12:43 +000010443rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010445LIBS=$ac_check_lib_save_LIBS
10446fi
cristy8b350f62009-11-15 23:12:43 +000010447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000010448$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010449if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010450 GOMP_LIBS="-lmtsk"
10451fi
10452 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000010453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010454$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010455if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010456 $as_echo_n "(cached) " >&6
10457else
10458 ac_check_lib_save_LIBS=$LIBS
10459LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010461/* end confdefs.h. */
10462
10463/* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10466#ifdef __cplusplus
10467extern "C"
10468#endif
10469char _xlsmpFlush ();
10470int
10471main ()
10472{
10473return _xlsmpFlush ();
10474 ;
10475 return 0;
10476}
10477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010479 ac_cv_lib_xlsmp__xlsmpFlush=yes
10480else
cristy8b350f62009-11-15 23:12:43 +000010481 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000010482fi
cristy8b350f62009-11-15 23:12:43 +000010483rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010485LIBS=$ac_check_lib_save_LIBS
10486fi
cristy8b350f62009-11-15 23:12:43 +000010487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000010488$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010489if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010490 GOMP_LIBS="-lxlsmp"
10491fi
10492 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000010493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010494$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010495if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010496 $as_echo_n "(cached) " >&6
10497else
10498 ac_check_lib_save_LIBS=$LIBS
10499LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010501/* end confdefs.h. */
10502
10503/* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10509char mp_destroy ();
10510int
10511main ()
10512{
10513return mp_destroy ();
10514 ;
10515 return 0;
10516}
10517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010519 ac_cv_lib_mp_mp_destroy=yes
10520else
cristy8b350f62009-11-15 23:12:43 +000010521 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000010522fi
cristy8b350f62009-11-15 23:12:43 +000010523rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010525LIBS=$ac_check_lib_save_LIBS
10526fi
cristy8b350f62009-11-15 23:12:43 +000010527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000010528$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010529if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010530 GOMP_LIBS="-lmp"
10531fi
10532 # SGI IRIX 6.5 MIPSpro C/C++
10533 fi
10534 LIBS="$GOMP_LIBS $LIBS"
10535fi
10536
10537
10538#
10539# Find Posix threads library
10540#
10541THREAD_LIBS=''
10542if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
10543
10544 if test "x$PTHREAD_LIBS" = "x"; then
10545 case "${host_cpu}-${host_os}" in
10546 *-freebsd*)
nicolas6237c462010-10-05 06:11:49 +000010547 MAGICK_CHECK_PTHREAD_LIB(c_r,PTHREAD_LIBS=-lc_r) ;;
cristy3ed852e2009-09-05 21:47:34 +000010548 esac
10549 fi
10550
10551 for lib in pthread pthreads; do
10552 if test "x$PTHREAD_LIBS" = "x"; then
nicolas6237c462010-10-05 06:11:49 +000010553 MAGICK_CHECK_PTHREAD_LIB($lib,PTHREAD_LIBS=-l$lib)
cristy3ed852e2009-09-05 21:47:34 +000010554 fi
10555 done
10556
10557 THREAD_LIBS="$PTHREAD_LIBS"
10558 LIBS="$LIBS $THREAD_LIBS"
10559fi
10560
10561
10562#
10563# Check for umem.
10564#
10565have_umem='no'
10566UMEM_LIBS=''
10567if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000010568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000010569$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000010571$as_echo "" >&6; }
10572 failed=0
10573 passed=0
cristy8b350f62009-11-15 23:12:43 +000010574 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
10575if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010576 passed=`expr $passed + 1`
10577else
10578 failed=`expr $failed + 1`
10579fi
10580
10581
cristy8b350f62009-11-15 23:12:43 +000010582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000010583$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010584if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010585 $as_echo_n "(cached) " >&6
10586else
10587 ac_check_lib_save_LIBS=$LIBS
10588LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010590/* end confdefs.h. */
10591
10592/* Override any GCC internal prototype to avoid an error.
10593 Use char because int might match the return type of a GCC
10594 builtin and then its argument prototype would still apply. */
10595#ifdef __cplusplus
10596extern "C"
10597#endif
10598char umem_alloc ();
10599int
10600main ()
10601{
10602return umem_alloc ();
10603 ;
10604 return 0;
10605}
10606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010608 ac_cv_lib_umem_umem_alloc=yes
10609else
cristy8b350f62009-11-15 23:12:43 +000010610 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000010611fi
cristy8b350f62009-11-15 23:12:43 +000010612rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010614LIBS=$ac_check_lib_save_LIBS
10615fi
cristy8b350f62009-11-15 23:12:43 +000010616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000010617$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010618if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010619 passed=`expr $passed + 1`
10620else
10621 failed=`expr $failed + 1`
10622fi
10623
cristy8b350f62009-11-15 23:12:43 +000010624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000010625$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010626if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010627 $as_echo_n "(cached) " >&6
10628else
10629 ac_check_lib_save_LIBS=$LIBS
10630LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010632/* end confdefs.h. */
10633
10634/* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10637#ifdef __cplusplus
10638extern "C"
10639#endif
10640char umem_free ();
10641int
10642main ()
10643{
10644return umem_free ();
10645 ;
10646 return 0;
10647}
10648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010650 ac_cv_lib_umem_umem_free=yes
10651else
cristy8b350f62009-11-15 23:12:43 +000010652 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000010653fi
cristy8b350f62009-11-15 23:12:43 +000010654rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010656LIBS=$ac_check_lib_save_LIBS
10657fi
cristy8b350f62009-11-15 23:12:43 +000010658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000010659$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010660if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010661 passed=`expr $passed + 1`
10662else
10663 failed=`expr $failed + 1`
10664fi
10665
cristy8b350f62009-11-15 23:12:43 +000010666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000010667$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
10668 if test $passed -gt 0; then
10669 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000010670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000010671$as_echo "no -- some components failed test" >&6; }
10672 have_umem='no (failed tests)'
10673 else
10674 UMEM_LIBS='-lumem'
10675 LIBS="$UMEM_LIBS $LIBS"
10676
cristy8b350f62009-11-15 23:12:43 +000010677$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010678
cristy8b350f62009-11-15 23:12:43 +000010679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000010680$as_echo "yes" >&6; }
10681 have_umem='yes'
10682 fi
10683 else
cristy8b350f62009-11-15 23:12:43 +000010684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010685$as_echo "no" >&6; }
10686 fi
10687fi
nicolas6237c462010-10-05 06:11:49 +000010688AM_CONDITIONAL(HasUMEM, test "$have_umem" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000010689
10690
10691#
10692# Add support for ccmalloc memory debugging library if requested
10693#
10694have_ccmalloc='no'
10695CCMALLOC_LIBS=''
10696if test "$enable_ccmalloc" = 'yes'; then
10697 # Extract the first word of "ccmalloc", so it can be a program name with args.
10698set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010701if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010702 $as_echo_n "(cached) " >&6
10703else
10704 case $CCMALLOCDelegate in
10705 [\\/]* | ?:[\\/]*)
10706 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
10707 ;;
10708 *)
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10716 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000010717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010718 break 2
10719 fi
10720done
cristy8b350f62009-11-15 23:12:43 +000010721 done
cristy3ed852e2009-09-05 21:47:34 +000010722IFS=$as_save_IFS
10723
10724 ;;
10725esac
10726fi
10727CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
10728if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000010729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000010730$as_echo "$CCMALLOCDelegate" >&6; }
10731else
cristy8b350f62009-11-15 23:12:43 +000010732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010733$as_echo "no" >&6; }
10734fi
10735
10736
10737 if test -n "$CCMALLOCDelegate"; then
10738 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
10739 OLIBS="$LIBS"
10740 # Assume that gcc is used with ccmalloc.
10741 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000010742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000010743$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010744if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010745 $as_echo_n "(cached) " >&6
10746else
10747 ac_check_lib_save_LIBS=$LIBS
10748LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010750/* end confdefs.h. */
10751
10752/* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10755#ifdef __cplusplus
10756extern "C"
10757#endif
10758char ccmalloc_malloc ();
10759int
10760main ()
10761{
10762return ccmalloc_malloc ();
10763 ;
10764 return 0;
10765}
10766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010767if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010768 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
10769else
cristy8b350f62009-11-15 23:12:43 +000010770 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000010771fi
cristy8b350f62009-11-15 23:12:43 +000010772rm -f core conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010774LIBS=$ac_check_lib_save_LIBS
10775fi
cristy8b350f62009-11-15 23:12:43 +000010776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000010777$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010778if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010779 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
10780fi
10781
10782 if test -n "$CCMALLOC_LIBS"; then
10783 LIBS="$OLIBS"
10784 LIBS="$LIBS $CCMALLOC_LIBS"
10785 have_ccmalloc='yes'
10786 else
10787 LIBS="$OLIBS"
10788 fi
10789 fi
10790fi
10791
10792#
10793# Add support for efence memory debugging library if requested
10794#
10795if test "$enable_efence" = 'yes'; then
10796 EFENCE_LIBS='-lefence'
10797 LIBS="$EFENCE_LIBS $LIBS"
10798fi
10799
cristy3ed852e2009-09-05 21:47:34 +000010800
10801#
10802# Check for BZLIB
10803#
10804
10805
10806# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000010807if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010808 withval=$with_bzlib; with_bzlib=$withval
10809else
10810 with_bzlib='yes'
10811fi
10812
10813
10814if test "$with_bzlib" != 'yes'; then
10815 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
10816fi
10817
10818have_bzlib='no'
10819if test "$with_bzlib" != 'no'; then
10820 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000010821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000010822$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010824$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000010826$as_echo "" >&6; }
10827 failed=0
10828 passed=0
10829 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000010830 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
10831if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010832 passed=`expr $passed + 1`
10833else
10834 failed=`expr $failed + 1`
10835fi
10836
10837
cristy8b350f62009-11-15 23:12:43 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000010839$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010840if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010841 $as_echo_n "(cached) " >&6
10842else
10843 ac_check_lib_save_LIBS=$LIBS
10844LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010846/* end confdefs.h. */
10847
10848/* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851#ifdef __cplusplus
10852extern "C"
10853#endif
10854char BZ2_bzDecompress ();
10855int
10856main ()
10857{
10858return BZ2_bzDecompress ();
10859 ;
10860 return 0;
10861}
10862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010863if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010864 ac_cv_lib_bz2_BZ2_bzDecompress=yes
10865else
cristy8b350f62009-11-15 23:12:43 +000010866 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000010867fi
cristy8b350f62009-11-15 23:12:43 +000010868rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010870LIBS=$ac_check_lib_save_LIBS
10871fi
cristy8b350f62009-11-15 23:12:43 +000010872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000010873$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010874if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010875 found_libbz=`expr $found_libbz + 1`
10876fi
10877
10878 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000010879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000010880$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010881if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010882 $as_echo_n "(cached) " >&6
10883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000010886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010887/* end confdefs.h. */
10888
10889/* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892#ifdef __cplusplus
10893extern "C"
10894#endif
10895char _imp__BZ2_decompress ();
10896int
10897main ()
10898{
10899return _imp__BZ2_decompress ();
10900 ;
10901 return 0;
10902}
10903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010905 ac_cv_lib_bz2__imp__BZ2_decompress=yes
10906else
cristy8b350f62009-11-15 23:12:43 +000010907 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000010908fi
cristy8b350f62009-11-15 23:12:43 +000010909rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010911LIBS=$ac_check_lib_save_LIBS
10912fi
cristy8b350f62009-11-15 23:12:43 +000010913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000010914$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010915if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010916 found_libbz=`expr $found_libbz + 1`
10917fi
10918
10919 fi
10920 if test $found_libbz -gt 0; then
10921 passed=`expr $passed + 1`
10922 else
10923 failed=`expr $failed + 1`
10924 fi
cristy8b350f62009-11-15 23:12:43 +000010925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000010926$as_echo_n "checking if BZLIB package is complete... " >&6; }
10927 if test $passed -gt 0; then
10928 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000010929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000010930$as_echo "no -- some components failed test" >&6; }
10931 have_bzlib='no (failed tests)'
10932 else
10933 BZLIB_LIBS='-lbz2'
10934 LIBS="$BZLIB_LIBS $LIBS"
10935
cristy8b350f62009-11-15 23:12:43 +000010936$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010937
cristy8b350f62009-11-15 23:12:43 +000010938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000010939$as_echo "yes" >&6; }
10940 have_bzlib='yes'
10941 fi
10942 else
cristy8b350f62009-11-15 23:12:43 +000010943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010944$as_echo "no" >&6; }
10945 fi
10946fi
nicolas6237c462010-10-05 06:11:49 +000010947AM_CONDITIONAL(BZLIB_DELEGATE, test "$have_bzlib" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000010948
10949
10950#
10951# Find the X11 include and library directories.
10952#
10953IPC_LIBS=''
10954X11_LIBS=''
10955XEXT_LIBS=''
10956XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000010957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000010958$as_echo_n "checking for X... " >&6; }
10959
10960
10961# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000010962if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000010963 withval=$with_x;
10964fi
10965
10966# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10967if test "x$with_x" = xno; then
10968 # The user explicitly disabled X.
10969 have_x=disabled
10970else
10971 case $x_includes,$x_libraries in #(
cristyf6fcb5d2010-09-24 01:19:13 +000010972 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000010973 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000010974 $as_echo_n "(cached) " >&6
10975else
10976 # One or both of the vars are not set, and there is no cached value.
10977ac_x_includes=no ac_x_libraries=no
10978rm -f -r conftest.dir
10979if mkdir conftest.dir; then
10980 cd conftest.dir
10981 cat >Imakefile <<'_ACEOF'
10982incroot:
10983 @echo incroot='${INCROOT}'
10984usrlibdir:
10985 @echo usrlibdir='${USRLIBDIR}'
10986libdir:
10987 @echo libdir='${LIBDIR}'
10988_ACEOF
10989 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyf6fcb5d2010-09-24 01:19:13 +000010990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000010991 for ac_var in incroot usrlibdir libdir; do
10992 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10993 done
10994 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10995 for ac_extension in a so sl dylib la dll; do
10996 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10997 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10998 ac_im_usrlibdir=$ac_im_libdir; break
10999 fi
11000 done
11001 # Screen out bogus values from the imake configuration. They are
11002 # bogus both because they are the default anyway, and because
11003 # using them would break gcc on systems where it needs fixed includes.
11004 case $ac_im_incroot in
11005 /usr/include) ac_x_includes= ;;
11006 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11007 esac
11008 case $ac_im_usrlibdir in
11009 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11010 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11011 esac
11012 fi
11013 cd ..
11014 rm -f -r conftest.dir
11015fi
11016
11017# Standard set of common directories for X headers.
11018# Check X11 before X11Rn because it is often a symlink to the current release.
11019ac_x_header_dirs='
11020/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000011021/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000011022/usr/X11R6/include
11023/usr/X11R5/include
11024/usr/X11R4/include
11025
11026/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000011027/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000011028/usr/include/X11R6
11029/usr/include/X11R5
11030/usr/include/X11R4
11031
11032/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000011033/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000011034/usr/local/X11R6/include
11035/usr/local/X11R5/include
11036/usr/local/X11R4/include
11037
11038/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000011039/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000011040/usr/local/include/X11R6
11041/usr/local/include/X11R5
11042/usr/local/include/X11R4
11043
11044/usr/X386/include
11045/usr/x386/include
11046/usr/XFree86/include/X11
11047
11048/usr/include
11049/usr/local/include
11050/usr/unsupported/include
11051/usr/athena/include
11052/usr/local/x11r5/include
11053/usr/lpp/Xamples/include
11054
11055/usr/openwin/include
11056/usr/openwin/share/include'
11057
11058if test "$ac_x_includes" = no; then
11059 # Guess where to find include files, by looking for Xlib.h.
11060 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000011061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000011062/* end confdefs.h. */
11063#include <X11/Xlib.h>
11064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011065if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000011066 # We can compile using X headers with no special include directory.
11067ac_x_includes=
11068else
cristyc7083c12009-10-14 03:16:55 +000011069 for ac_dir in $ac_x_header_dirs; do
11070 if test -r "$ac_dir/X11/Xlib.h"; then
11071 ac_x_includes=$ac_dir
11072 break
11073 fi
11074done
11075fi
cristyc7083c12009-10-14 03:16:55 +000011076rm -f conftest.err conftest.$ac_ext
11077fi # $ac_x_includes = no
11078
11079if test "$ac_x_libraries" = no; then
11080 # Check for the libraries.
11081 # See if we find them without any special options.
11082 # Don't add to $LIBS permanently.
11083 ac_save_LIBS=$LIBS
11084 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000011086/* end confdefs.h. */
11087#include <X11/Xlib.h>
11088int
11089main ()
11090{
11091XrmInitialize ()
11092 ;
11093 return 0;
11094}
11095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011096if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000011097 LIBS=$ac_save_LIBS
11098# We can link X programs with no special library path.
11099ac_x_libraries=
11100else
cristy8b350f62009-11-15 23:12:43 +000011101 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000011102for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11103do
11104 # Don't even attempt the hair of trying to link an X program!
11105 for ac_extension in a so sl dylib la dll; do
11106 if test -r "$ac_dir/libX11.$ac_extension"; then
11107 ac_x_libraries=$ac_dir
11108 break 2
11109 fi
11110 done
11111done
11112fi
cristy8b350f62009-11-15 23:12:43 +000011113rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000011115fi # $ac_x_libraries = no
11116
11117case $ac_x_includes,$ac_x_libraries in #(
11118 no,* | *,no | *\'*)
11119 # Didn't find X, or a directory has "'" in its name.
11120 ac_cv_have_x="have_x=no";; #(
11121 *)
11122 # Record where we found X for the cache.
11123 ac_cv_have_x="have_x=yes\
11124 ac_x_includes='$ac_x_includes'\
11125 ac_x_libraries='$ac_x_libraries'"
11126esac
11127fi
11128;; #(
11129 *) have_x=yes;;
11130 esac
11131 eval "$ac_cv_have_x"
11132fi # $with_x != no
11133
11134if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000011135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000011136$as_echo "$have_x" >&6; }
11137 no_x=yes
11138else
11139 # If each of the values was on the command line, it overrides each guess.
11140 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11141 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11142 # Update the cache value to reflect the command line values.
11143 ac_cv_have_x="have_x=yes\
11144 ac_x_includes='$x_includes'\
11145 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000011146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000011147$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11148fi
11149
cristy3ed852e2009-09-05 21:47:34 +000011150if test "$no_x" = yes; then
11151 # Not all programs may use this symbol, but it does not hurt to define it.
11152
cristy8b350f62009-11-15 23:12:43 +000011153$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011154
11155 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11156else
11157 if test -n "$x_includes"; then
11158 X_CFLAGS="$X_CFLAGS -I$x_includes"
11159 fi
11160
11161 # It would also be nice to do this for all -L options, not just this one.
11162 if test -n "$x_libraries"; then
11163 X_LIBS="$X_LIBS -L$x_libraries"
11164 # For Solaris; some versions of Sun CC require a space after -R and
11165 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000011166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000011167$as_echo_n "checking whether -R must be followed by a space... " >&6; }
11168 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11169 ac_xsave_c_werror_flag=$ac_c_werror_flag
11170 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000011171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011172/* end confdefs.h. */
11173
11174int
11175main ()
11176{
11177
11178 ;
11179 return 0;
11180}
11181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011182if ac_fn_c_try_link "$LINENO"; then :
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011184$as_echo "no" >&6; }
11185 X_LIBS="$X_LIBS -R$x_libraries"
11186else
cristy8b350f62009-11-15 23:12:43 +000011187 LIBS="$ac_xsave_LIBS -R $x_libraries"
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011189/* end confdefs.h. */
11190
11191int
11192main ()
11193{
11194
11195 ;
11196 return 0;
11197}
11198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011199if ac_fn_c_try_link "$LINENO"; then :
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000011201$as_echo "yes" >&6; }
11202 X_LIBS="$X_LIBS -R $x_libraries"
11203else
cristy8b350f62009-11-15 23:12:43 +000011204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011205$as_echo "neither works" >&6; }
11206fi
cristy8b350f62009-11-15 23:12:43 +000011207rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011209fi
cristy8b350f62009-11-15 23:12:43 +000011210rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011212 ac_c_werror_flag=$ac_xsave_c_werror_flag
11213 LIBS=$ac_xsave_LIBS
11214 fi
11215
11216 # Check for system-dependent libraries X programs must link with.
11217 # Do this before checking for the system-independent R6 libraries
11218 # (-lICE), since we may need -lsocket or whatever for X linking.
11219
11220 if test "$ISC" = yes; then
11221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11222 else
11223 # Martyn Johnson says this is needed for Ultrix, if the X
11224 # libraries were built with DECnet support. And Karl Berry says
11225 # the Alpha needs dnet_stub (dnet does not exist).
11226 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000011227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011228/* end confdefs.h. */
11229
11230/* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233#ifdef __cplusplus
11234extern "C"
11235#endif
11236char XOpenDisplay ();
11237int
11238main ()
11239{
11240return XOpenDisplay ();
11241 ;
11242 return 0;
11243}
11244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011246
cristy8b350f62009-11-15 23:12:43 +000011247else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011249$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011250if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011251 $as_echo_n "(cached) " >&6
11252else
11253 ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011256/* end confdefs.h. */
11257
11258/* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
11261#ifdef __cplusplus
11262extern "C"
11263#endif
11264char dnet_ntoa ();
11265int
11266main ()
11267{
11268return dnet_ntoa ();
11269 ;
11270 return 0;
11271}
11272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011273if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011274 ac_cv_lib_dnet_dnet_ntoa=yes
11275else
cristy8b350f62009-11-15 23:12:43 +000011276 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000011277fi
cristy8b350f62009-11-15 23:12:43 +000011278rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011280LIBS=$ac_check_lib_save_LIBS
11281fi
cristy8b350f62009-11-15 23:12:43 +000011282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000011283$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011284if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011285 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11286fi
11287
11288 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000011289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000011290$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011291if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011292 $as_echo_n "(cached) " >&6
11293else
11294 ac_check_lib_save_LIBS=$LIBS
11295LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011297/* end confdefs.h. */
11298
11299/* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302#ifdef __cplusplus
11303extern "C"
11304#endif
11305char dnet_ntoa ();
11306int
11307main ()
11308{
11309return dnet_ntoa ();
11310 ;
11311 return 0;
11312}
11313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011315 ac_cv_lib_dnet_stub_dnet_ntoa=yes
11316else
cristy8b350f62009-11-15 23:12:43 +000011317 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000011318fi
cristy8b350f62009-11-15 23:12:43 +000011319rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011321LIBS=$ac_check_lib_save_LIBS
11322fi
cristy8b350f62009-11-15 23:12:43 +000011323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000011324$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011325if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011326 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11327fi
11328
11329 fi
11330fi
cristy8b350f62009-11-15 23:12:43 +000011331rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011333 LIBS="$ac_xsave_LIBS"
11334
11335 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11336 # to get the SysV transport functions.
11337 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11338 # needs -lnsl.
11339 # The nsl library prevents programs from opening the X display
11340 # on Irix 5.2, according to T.E. Dickey.
11341 # The functions gethostbyname, getservbyname, and inet_addr are
11342 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000011343 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11344if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011345
cristy3ed852e2009-09-05 21:47:34 +000011346fi
11347
cristy3ed852e2009-09-05 21:47:34 +000011348 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000011349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000011350$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011351if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011352 $as_echo_n "(cached) " >&6
11353else
11354 ac_check_lib_save_LIBS=$LIBS
11355LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011357/* end confdefs.h. */
11358
11359/* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11362#ifdef __cplusplus
11363extern "C"
11364#endif
11365char gethostbyname ();
11366int
11367main ()
11368{
11369return gethostbyname ();
11370 ;
11371 return 0;
11372}
11373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011375 ac_cv_lib_nsl_gethostbyname=yes
11376else
cristy8b350f62009-11-15 23:12:43 +000011377 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000011378fi
cristy8b350f62009-11-15 23:12:43 +000011379rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011381LIBS=$ac_check_lib_save_LIBS
11382fi
cristy8b350f62009-11-15 23:12:43 +000011383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011385if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11387fi
11388
11389 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000011390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000011391$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011392if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011393 $as_echo_n "(cached) " >&6
11394else
11395 ac_check_lib_save_LIBS=$LIBS
11396LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011398/* end confdefs.h. */
11399
11400/* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406char gethostbyname ();
11407int
11408main ()
11409{
11410return gethostbyname ();
11411 ;
11412 return 0;
11413}
11414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011416 ac_cv_lib_bsd_gethostbyname=yes
11417else
cristy8b350f62009-11-15 23:12:43 +000011418 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000011419fi
cristy8b350f62009-11-15 23:12:43 +000011420rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011422LIBS=$ac_check_lib_save_LIBS
11423fi
cristy8b350f62009-11-15 23:12:43 +000011424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000011425$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011426if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11428fi
11429
11430 fi
11431 fi
11432
11433 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11434 # socket/setsockopt and other routines are undefined under SCO ODT
11435 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11436 # on later versions), says Simon Leinen: it contains gethostby*
11437 # variants that don't use the name server (or something). -lsocket
11438 # must be given before -lnsl if both are needed. We assume that
11439 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000011440 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11441if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011442
cristy3ed852e2009-09-05 21:47:34 +000011443fi
11444
cristy3ed852e2009-09-05 21:47:34 +000011445 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000011446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000011447$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011448if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011449 $as_echo_n "(cached) " >&6
11450else
11451 ac_check_lib_save_LIBS=$LIBS
11452LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011454/* end confdefs.h. */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char connect ();
11463int
11464main ()
11465{
11466return connect ();
11467 ;
11468 return 0;
11469}
11470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011471if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011472 ac_cv_lib_socket_connect=yes
11473else
cristy8b350f62009-11-15 23:12:43 +000011474 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000011475fi
cristy8b350f62009-11-15 23:12:43 +000011476rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011478LIBS=$ac_check_lib_save_LIBS
11479fi
cristy8b350f62009-11-15 23:12:43 +000011480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000011481$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011482if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011483 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11484fi
11485
11486 fi
11487
11488 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000011489 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
11490if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011491
cristy3ed852e2009-09-05 21:47:34 +000011492fi
11493
cristy3ed852e2009-09-05 21:47:34 +000011494 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000011495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000011496$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011497if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011498 $as_echo_n "(cached) " >&6
11499else
11500 ac_check_lib_save_LIBS=$LIBS
11501LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011503/* end confdefs.h. */
11504
11505/* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508#ifdef __cplusplus
11509extern "C"
11510#endif
11511char remove ();
11512int
11513main ()
11514{
11515return remove ();
11516 ;
11517 return 0;
11518}
11519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011521 ac_cv_lib_posix_remove=yes
11522else
cristy8b350f62009-11-15 23:12:43 +000011523 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000011524fi
cristy8b350f62009-11-15 23:12:43 +000011525rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011527LIBS=$ac_check_lib_save_LIBS
11528fi
cristy8b350f62009-11-15 23:12:43 +000011529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000011530$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011531if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11533fi
11534
11535 fi
11536
11537 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000011538 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
11539if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011540
cristy3ed852e2009-09-05 21:47:34 +000011541fi
11542
cristy3ed852e2009-09-05 21:47:34 +000011543 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000011544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000011545$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011546if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011547 $as_echo_n "(cached) " >&6
11548else
11549 ac_check_lib_save_LIBS=$LIBS
11550LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011552/* end confdefs.h. */
11553
11554/* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11557#ifdef __cplusplus
11558extern "C"
11559#endif
11560char shmat ();
11561int
11562main ()
11563{
11564return shmat ();
11565 ;
11566 return 0;
11567}
11568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011570 ac_cv_lib_ipc_shmat=yes
11571else
cristy8b350f62009-11-15 23:12:43 +000011572 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000011573fi
cristy8b350f62009-11-15 23:12:43 +000011574rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011576LIBS=$ac_check_lib_save_LIBS
11577fi
cristy8b350f62009-11-15 23:12:43 +000011578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000011579$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011580if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11582fi
11583
11584 fi
11585 fi
11586
11587 # Check for libraries that X11R6 Xt/Xaw programs need.
11588 ac_save_LDFLAGS=$LDFLAGS
11589 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11590 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11591 # check for ICE first), but we must link in the order -lSM -lICE or
11592 # we get undefined symbols. So assume we have SM if we have ICE.
11593 # These have to be linked with before -lX11, unlike the other
11594 # libraries we check for below, so use a different variable.
11595 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000011596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000011597$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011598if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011599 $as_echo_n "(cached) " >&6
11600else
11601 ac_check_lib_save_LIBS=$LIBS
11602LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011604/* end confdefs.h. */
11605
11606/* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
11609#ifdef __cplusplus
11610extern "C"
11611#endif
11612char IceConnectionNumber ();
11613int
11614main ()
11615{
11616return IceConnectionNumber ();
11617 ;
11618 return 0;
11619}
11620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011622 ac_cv_lib_ICE_IceConnectionNumber=yes
11623else
cristy8b350f62009-11-15 23:12:43 +000011624 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000011625fi
cristy8b350f62009-11-15 23:12:43 +000011626rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011628LIBS=$ac_check_lib_save_LIBS
11629fi
cristy8b350f62009-11-15 23:12:43 +000011630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000011631$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011632if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011633 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11634fi
11635
11636 LDFLAGS=$ac_save_LDFLAGS
11637
11638fi
11639
11640if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000011641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000011642$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000011644$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000011646$as_echo "" >&6; }
11647 LDFLAGS="$LDFLAGS $X_LIBS"
11648 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
11649 LIBS="$X11_LIBS $LIBS"
11650 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11651
11652
cristy8b350f62009-11-15 23:12:43 +000011653$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011654
11655 #
11656 # Check for X11 shared memory extension
11657 #
11658 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000011659 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
11660if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011661 have_shmctl='yes'
11662fi
11663
11664 if test "$have_shmctl" != 'yes'; then
11665 PERSIST_LIBS=$LIBS
11666 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000011667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011668/* end confdefs.h. */
11669
11670/* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673#ifdef __cplusplus
11674extern "C"
11675#endif
11676char shmctl ();
11677int
11678main ()
11679{
11680return shmctl ();
11681 ;
11682 return 0;
11683}
11684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011686 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000011687fi
cristy8b350f62009-11-15 23:12:43 +000011688rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011690 LIBS=$PERSIST_LIBS
11691 fi
11692
11693 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000011694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011695$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011696if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011697 $as_echo_n "(cached) " >&6
11698else
11699 ac_check_lib_save_LIBS=$LIBS
11700LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011702/* end confdefs.h. */
11703
11704/* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char XShmAttach ();
11711int
11712main ()
11713{
11714return XShmAttach ();
11715 ;
11716 return 0;
11717}
11718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011720 ac_cv_lib_Xext_XShmAttach=yes
11721else
cristy8b350f62009-11-15 23:12:43 +000011722 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000011723fi
cristy8b350f62009-11-15 23:12:43 +000011724rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011726LIBS=$ac_check_lib_save_LIBS
11727fi
cristy8b350f62009-11-15 23:12:43 +000011728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000011729$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011730if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011731 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000011732$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011733
11734fi
11735
11736 fi
11737
11738 #
11739 # Check for X11 shape extension
11740 #
cristy8b350f62009-11-15 23:12:43 +000011741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011742$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011743if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011744 $as_echo_n "(cached) " >&6
11745else
11746 ac_check_lib_save_LIBS=$LIBS
11747LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011749/* end confdefs.h. */
11750
11751/* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11754#ifdef __cplusplus
11755extern "C"
11756#endif
11757char XShapeCombineMask ();
11758int
11759main ()
11760{
11761return XShapeCombineMask ();
11762 ;
11763 return 0;
11764}
11765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011767 ac_cv_lib_Xext_XShapeCombineMask=yes
11768else
cristy8b350f62009-11-15 23:12:43 +000011769 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000011770fi
cristy8b350f62009-11-15 23:12:43 +000011771rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011773LIBS=$ac_check_lib_save_LIBS
11774fi
cristy8b350f62009-11-15 23:12:43 +000011775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000011776$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011777if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011778 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000011779$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011780
11781fi
11782
cristy8b350f62009-11-15 23:12:43 +000011783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000011784$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011785if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011786 $as_echo_n "(cached) " >&6
11787else
11788 ac_check_lib_save_LIBS=$LIBS
11789LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011791/* end confdefs.h. */
11792
11793/* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11796#ifdef __cplusplus
11797extern "C"
11798#endif
11799char XtSetEventDispatcher ();
11800int
11801main ()
11802{
11803return XtSetEventDispatcher ();
11804 ;
11805 return 0;
11806}
11807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011808if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011809 ac_cv_lib_Xt_XtSetEventDispatcher=yes
11810else
cristy8b350f62009-11-15 23:12:43 +000011811 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000011812fi
cristy8b350f62009-11-15 23:12:43 +000011813rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011815LIBS=$ac_check_lib_save_LIBS
11816fi
cristy8b350f62009-11-15 23:12:43 +000011817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000011818$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011819if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011820 XT_LIBS='-lXt'
11821fi
11822
11823 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
11824fi
11825if test "$no_x" != 'yes'; then
11826 have_x='yes'
11827else
11828 have_x='no'
11829fi
nicolas6237c462010-10-05 06:11:49 +000011830AM_CONDITIONAL(X11_DELEGATE, test "$have_x" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000011831
11832
11833
11834
11835#
11836# Check for ZLIB
11837#
11838
11839# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000011840if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011841 withval=$with_zlib; with_zlib=$withval
11842else
11843 with_zlib='yes'
11844fi
11845
11846
11847if test "$with_zlib" != 'yes'; then
11848 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
11849fi
11850
11851have_zlib='no'
11852ZLIB_LIBS=''
11853if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000011854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000011855$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000011857$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000011859$as_echo "" >&6; }
11860 ZLIB_LIBS=''
11861 failed=0
11862 passed=0
cristy8b350f62009-11-15 23:12:43 +000011863 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
11864if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011865 passed=`expr $passed + 1`
11866else
11867 failed=`expr $failed + 1`
11868fi
11869
11870
cristy8b350f62009-11-15 23:12:43 +000011871 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11872if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011873 passed=`expr $passed + 1`
11874else
11875 failed=`expr $failed + 1`
11876fi
11877
11878
cristy8b350f62009-11-15 23:12:43 +000011879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000011880$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011881if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011882 $as_echo_n "(cached) " >&6
11883else
11884 ac_check_lib_save_LIBS=$LIBS
11885LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011887/* end confdefs.h. */
11888
11889/* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895char compress ();
11896int
11897main ()
11898{
11899return compress ();
11900 ;
11901 return 0;
11902}
11903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011905 ac_cv_lib_z_compress=yes
11906else
cristy8b350f62009-11-15 23:12:43 +000011907 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000011908fi
cristy8b350f62009-11-15 23:12:43 +000011909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011911LIBS=$ac_check_lib_save_LIBS
11912fi
cristy8b350f62009-11-15 23:12:43 +000011913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000011914$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011915if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011916 passed=`expr $passed + 1`
11917else
11918 failed=`expr $failed + 1`
11919fi
11920
cristy8b350f62009-11-15 23:12:43 +000011921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000011922$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011923if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011924 $as_echo_n "(cached) " >&6
11925else
11926 ac_check_lib_save_LIBS=$LIBS
11927LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011929/* end confdefs.h. */
11930
11931/* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934#ifdef __cplusplus
11935extern "C"
11936#endif
11937char uncompress ();
11938int
11939main ()
11940{
11941return uncompress ();
11942 ;
11943 return 0;
11944}
11945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011947 ac_cv_lib_z_uncompress=yes
11948else
cristy8b350f62009-11-15 23:12:43 +000011949 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000011950fi
cristy8b350f62009-11-15 23:12:43 +000011951rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011953LIBS=$ac_check_lib_save_LIBS
11954fi
cristy8b350f62009-11-15 23:12:43 +000011955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000011956$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011957if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011958 passed=`expr $passed + 1`
11959else
11960 failed=`expr $failed + 1`
11961fi
11962
cristy8b350f62009-11-15 23:12:43 +000011963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000011964$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011965if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011966 $as_echo_n "(cached) " >&6
11967else
11968 ac_check_lib_save_LIBS=$LIBS
11969LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000011970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011971/* end confdefs.h. */
11972
11973/* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char deflate ();
11980int
11981main ()
11982{
11983return deflate ();
11984 ;
11985 return 0;
11986}
11987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011989 ac_cv_lib_z_deflate=yes
11990else
cristy8b350f62009-11-15 23:12:43 +000011991 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000011992fi
cristy8b350f62009-11-15 23:12:43 +000011993rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011995LIBS=$ac_check_lib_save_LIBS
11996fi
cristy8b350f62009-11-15 23:12:43 +000011997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000011998$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011999if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012000 passed=`expr $passed + 1`
12001else
12002 failed=`expr $failed + 1`
12003fi
12004
cristy8b350f62009-11-15 23:12:43 +000012005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000012006$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012007if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012008 $as_echo_n "(cached) " >&6
12009else
12010 ac_check_lib_save_LIBS=$LIBS
12011LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012013/* end confdefs.h. */
12014
12015/* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018#ifdef __cplusplus
12019extern "C"
12020#endif
12021char inflate ();
12022int
12023main ()
12024{
12025return inflate ();
12026 ;
12027 return 0;
12028}
12029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012030if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012031 ac_cv_lib_z_inflate=yes
12032else
cristy8b350f62009-11-15 23:12:43 +000012033 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000012034fi
cristy8b350f62009-11-15 23:12:43 +000012035rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012037LIBS=$ac_check_lib_save_LIBS
12038fi
cristy8b350f62009-11-15 23:12:43 +000012039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000012040$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012041if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012042 passed=`expr $passed + 1`
12043else
12044 failed=`expr $failed + 1`
12045fi
12046
cristy8b350f62009-11-15 23:12:43 +000012047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000012048$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012049if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012050 $as_echo_n "(cached) " >&6
12051else
12052 ac_check_lib_save_LIBS=$LIBS
12053LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012055/* end confdefs.h. */
12056
12057/* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12060#ifdef __cplusplus
12061extern "C"
12062#endif
12063char gzseek ();
12064int
12065main ()
12066{
12067return gzseek ();
12068 ;
12069 return 0;
12070}
12071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012073 ac_cv_lib_z_gzseek=yes
12074else
cristy8b350f62009-11-15 23:12:43 +000012075 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000012076fi
cristy8b350f62009-11-15 23:12:43 +000012077rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012079LIBS=$ac_check_lib_save_LIBS
12080fi
cristy8b350f62009-11-15 23:12:43 +000012081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000012082$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012083if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012084 passed=`expr $passed + 1`
12085else
12086 failed=`expr $failed + 1`
12087fi
12088
cristy8b350f62009-11-15 23:12:43 +000012089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000012090$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012091if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012092 $as_echo_n "(cached) " >&6
12093else
12094 ac_check_lib_save_LIBS=$LIBS
12095LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012097/* end confdefs.h. */
12098
12099/* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102#ifdef __cplusplus
12103extern "C"
12104#endif
12105char gztell ();
12106int
12107main ()
12108{
12109return gztell ();
12110 ;
12111 return 0;
12112}
12113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012115 ac_cv_lib_z_gztell=yes
12116else
cristy8b350f62009-11-15 23:12:43 +000012117 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000012118fi
cristy8b350f62009-11-15 23:12:43 +000012119rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012121LIBS=$ac_check_lib_save_LIBS
12122fi
cristy8b350f62009-11-15 23:12:43 +000012123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000012124$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012125if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012126 passed=`expr $passed + 1`
12127else
12128 failed=`expr $failed + 1`
12129fi
12130
cristy8b350f62009-11-15 23:12:43 +000012131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000012132$as_echo_n "checking if ZLIB package is complete... " >&6; }
12133 if test $passed -gt 0; then
12134 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000012135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000012136$as_echo "no -- some components failed test" >&6; }
12137 have_zlib='no (failed tests)'
12138 else
12139 ZLIB_LIBS='-lz'
12140 LIBS="$ZLIB_LIBS $LIBS"
12141
cristy8b350f62009-11-15 23:12:43 +000012142$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012143
cristy8b350f62009-11-15 23:12:43 +000012144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000012145$as_echo "yes" >&6; }
12146 have_zlib='yes'
12147 fi
12148 else
cristy8b350f62009-11-15 23:12:43 +000012149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012150$as_echo "no" >&6; }
12151 fi
12152fi
nicolas6237c462010-10-05 06:11:49 +000012153AM_CONDITIONAL(ZLIB_DELEGATE, test "$have_zlib" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012154
12155
12156#
12157# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
12158#
12159LIB_DL=''
12160if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000012161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000012162$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012163if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012164 $as_echo_n "(cached) " >&6
12165else
12166 ac_check_lib_save_LIBS=$LIBS
12167LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012169/* end confdefs.h. */
12170
12171/* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12174#ifdef __cplusplus
12175extern "C"
12176#endif
12177char dlopen ();
12178int
12179main ()
12180{
12181return dlopen ();
12182 ;
12183 return 0;
12184}
12185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012187 ac_cv_lib_dl_dlopen=yes
12188else
cristy8b350f62009-11-15 23:12:43 +000012189 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000012190fi
cristy8b350f62009-11-15 23:12:43 +000012191rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012193LIBS=$ac_check_lib_save_LIBS
12194fi
cristy8b350f62009-11-15 23:12:43 +000012195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000012196$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012197if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012198 LIB_DL='-ldl'
12199fi
12200
12201 LIBS="$LIB_DL $LIBS"
12202fi
12203
12204
12205
12206#
12207# Check for Autotrace delegate library.
12208#
12209
12210# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000012211if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012212 withval=$with_autotrace; with_autotrace=$withval
12213else
12214 with_autotrace='no'
12215fi
12216
12217
12218if test "$with_autotrace" != 'yes'; then
12219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
12220fi
12221
12222have_autotrace='no'
12223AUTOTRACE_CFLAGS=""
12224AUTOTRACE_LIBS=""
12225AUTOTRACE_PKG=""
12226if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000012227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012228$as_echo "-------------------------------------------------------------" >&6; }
nicolas6237c462010-10-05 06:11:49 +000012229 PKG_CHECK_MODULES(AUTOTRACE,autotrace >= 0.31.1, have_autotrace=yes, have_autotrace=no)
cristy8b350f62009-11-15 23:12:43 +000012230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012231$as_echo "" >&6; }
12232fi
12233
12234if test "$have_autotrace" = 'yes'; then
12235 failed=0
12236
cristy8b350f62009-11-15 23:12:43 +000012237$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012238
12239 if test "$with_modules" = 'no'; then
12240 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
12241 fi
12242fi
12243
nicolas6237c462010-10-05 06:11:49 +000012244AM_CONDITIONAL(AUTOTRACE_DELEGATE,test "$have_autotrace" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012245
12246
12247
12248
12249#
12250# Check for Display Postscript delegate library.
12251#
12252
12253# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000012254if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012255 withval=$with_dps; with_dps=$withval
12256else
12257 with_dps='yes'
12258fi
12259
12260
12261if test "$with_dps" != 'yes'; then
12262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
12263fi
12264
12265have_dps='no'
12266DPS_LIBS=''
12267if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000012268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012271$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012273$as_echo "" >&6; }
12274 failed=0
12275 passed=0
12276 PERSIST_CPPFLAGS="$CPPFLAGS"
12277 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000012278 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
12279if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012280 passed=`expr $passed + 1`
12281else
12282 failed=`expr $failed + 1`
12283fi
12284
12285
12286 # DPS issues:
12287 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
12288 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
12289 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
12290 # ImageMagick itself doesn't use -lXt.
12291 have_libdps='no'
12292 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000012293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000012294$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012295if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012296 $as_echo_n "(cached) " >&6
12297else
12298 ac_check_lib_save_LIBS=$LIBS
12299LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012301/* end confdefs.h. */
12302
12303/* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12306#ifdef __cplusplus
12307extern "C"
12308#endif
12309char DPSInitialize ();
12310int
12311main ()
12312{
12313return DPSInitialize ();
12314 ;
12315 return 0;
12316}
12317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012319 ac_cv_lib_dps_DPSInitialize=yes
12320else
cristy8b350f62009-11-15 23:12:43 +000012321 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000012322fi
cristy8b350f62009-11-15 23:12:43 +000012323rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012325LIBS=$ac_check_lib_save_LIBS
12326fi
cristy8b350f62009-11-15 23:12:43 +000012327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000012328$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012329if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012330 have_libdps='yes'
12331else
12332 have_libdps='no'
12333fi
12334
12335 if test "$have_libdps" != 'yes'; then
12336 # Unset cache variable so we can try again.
12337 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000012338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000012339$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012340if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012341 $as_echo_n "(cached) " >&6
12342else
12343 ac_check_lib_save_LIBS=$LIBS
12344LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012346/* end confdefs.h. */
12347
12348/* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12351#ifdef __cplusplus
12352extern "C"
12353#endif
12354char DPSInitialize ();
12355int
12356main ()
12357{
12358return DPSInitialize ();
12359 ;
12360 return 0;
12361}
12362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012364 ac_cv_lib_dps_DPSInitialize=yes
12365else
cristy8b350f62009-11-15 23:12:43 +000012366 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000012367fi
cristy8b350f62009-11-15 23:12:43 +000012368rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012370LIBS=$ac_check_lib_save_LIBS
12371fi
cristy8b350f62009-11-15 23:12:43 +000012372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000012373$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012374if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012375 have_libdps='yes'
12376else
12377 have_libdps='no'
12378fi
12379
12380 if test "$have_libdps" = 'yes'; then
12381 LIBDPS_XT='-lXt'
12382 fi
12383 fi
12384 if test "$have_libdps" = 'yes'; then
12385 passed=`expr $passed + 1`
12386 else
12387 failed=`expr $failed + 1`
12388 fi
cristy8b350f62009-11-15 23:12:43 +000012389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000012390$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012391if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012392 $as_echo_n "(cached) " >&6
12393else
12394 ac_check_lib_save_LIBS=$LIBS
12395LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012397/* end confdefs.h. */
12398
12399/* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402#ifdef __cplusplus
12403extern "C"
12404#endif
12405char XDPSPixelsPerPoint ();
12406int
12407main ()
12408{
12409return XDPSPixelsPerPoint ();
12410 ;
12411 return 0;
12412}
12413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012414if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012415 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
12416else
cristy8b350f62009-11-15 23:12:43 +000012417 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000012418fi
cristy8b350f62009-11-15 23:12:43 +000012419rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012421LIBS=$ac_check_lib_save_LIBS
12422fi
cristy8b350f62009-11-15 23:12:43 +000012423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000012424$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012425if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012426 passed=`expr $passed + 1`
12427else
12428 failed=`expr $failed + 1`
12429fi
12430
cristy8b350f62009-11-15 23:12:43 +000012431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000012432$as_echo_n "checking if DPS package is complete... " >&6; }
12433 if test $passed -gt 0; then
12434 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000012435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000012436$as_echo "no -- some components failed test" >&6; }
12437 have_dps='no (failed tests)'
12438 CPPFLAGS="$PERSIST_CPPFLAGS"
12439 else
12440 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
12441 LIBS="$DPS_LIBS $LIBS"
12442
cristy8b350f62009-11-15 23:12:43 +000012443$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012444
cristy8b350f62009-11-15 23:12:43 +000012445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000012446$as_echo "yes" >&6; }
12447 have_dps='yes'
12448 fi
12449 else
cristy8b350f62009-11-15 23:12:43 +000012450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012451$as_echo "no" >&6; }
12452 CPPFLAGS=$PERSIST_CPPFLAGS
12453 fi
12454fi
nicolas6237c462010-10-05 06:11:49 +000012455AM_CONDITIONAL(DPS_DELEGATE, test "$have_dps" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012456
12457
12458
12459#
12460# Check for DJVU delegate library.
12461#
12462
12463# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000012464if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012465 withval=$with_djvu; with_djvu=$withval
12466else
12467 with_djvu='yes'
12468fi
12469
12470
12471if test "$with_djvu" != 'yes'; then
12472 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
12473fi
12474
12475have_djvu='no'
12476DJVU_LIBS=''
12477if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000012478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012479$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000012481$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012483$as_echo "" >&6; }
12484 failed=0
12485 passed=0
cristy8b350f62009-11-15 23:12:43 +000012486 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
12487if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012488 passed=`expr $passed + 1`
12489else
12490 failed=`expr $failed + 1`
12491fi
12492
12493
cristy8b350f62009-11-15 23:12:43 +000012494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000012495$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012496if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012497 $as_echo_n "(cached) " >&6
12498else
12499 ac_check_lib_save_LIBS=$LIBS
12500LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012502/* end confdefs.h. */
12503
12504/* Override any GCC internal prototype to avoid an error.
12505 Use char because int might match the return type of a GCC
12506 builtin and then its argument prototype would still apply. */
12507#ifdef __cplusplus
12508extern "C"
12509#endif
12510char ddjvu_context_create ();
12511int
12512main ()
12513{
12514return ddjvu_context_create ();
12515 ;
12516 return 0;
12517}
12518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012520 ac_cv_lib_djvulibre_ddjvu_context_create=yes
12521else
cristy8b350f62009-11-15 23:12:43 +000012522 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000012523fi
cristy8b350f62009-11-15 23:12:43 +000012524rm -f core conftest.err conftest.$ac_objext \
12525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012526LIBS=$ac_check_lib_save_LIBS
12527fi
cristy8b350f62009-11-15 23:12:43 +000012528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000012529$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012530if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012531 passed=`expr $passed + 1`
12532else
12533 failed=`expr $failed + 1`
12534fi
12535
cristy8b350f62009-11-15 23:12:43 +000012536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000012537$as_echo_n "checking if DJVU package is complete... " >&6; }
12538 if test $passed -gt 0; then
12539 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000012540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000012541$as_echo "no -- some components failed test" >&6; }
12542 have_djvu='no (failed tests)'
12543 else
12544 DJVU_LIBS='-ldjvulibre'
12545 LIBS="$DJVU_LIBS $LIBS"
12546
cristy8b350f62009-11-15 23:12:43 +000012547$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012548
cristy8b350f62009-11-15 23:12:43 +000012549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000012550$as_echo "yes" >&6; }
12551 have_djvu='yes'
12552 fi
12553 else
cristy8b350f62009-11-15 23:12:43 +000012554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012555$as_echo "no" >&6; }
12556 fi
12557fi
nicolas6237c462010-10-05 06:11:49 +000012558AM_CONDITIONAL(DJVU_DELEGATE, test "$have_djvu" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012559
12560
12561
12562#
cristy430a7312010-01-21 20:44:04 +000012563# Set DejaVu font directory.
12564#
12565
12566# Check whether --with-dejavu-font-dir was given.
12567if test "${with_dejavu_font_dir+set}" = set; then :
12568 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
12569else
12570 with_dejavu_font_dir='default'
12571fi
12572
12573
12574if test "$with_dejavu_font_dir" != 'default'; then
12575 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
12576fi
12577
12578
12579#
cristy3ed852e2009-09-05 21:47:34 +000012580# Check for FFTW delegate library.
12581#
12582
12583# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000012584if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012585 withval=$with_fftw; with_fftw=$withval
12586else
12587 with_fftw='yes'
12588fi
12589
12590
12591if test "$with_fftw" != 'yes'; then
12592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
12593fi
12594
12595have_fftw='no'
12596FFTW_LIBS=''
12597if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000012598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012599$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000012601$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012603$as_echo "" >&6; }
12604 failed=0
12605 passed=0
cristy8b350f62009-11-15 23:12:43 +000012606 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
12607if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012608 passed=`expr $passed + 1`
12609else
12610 failed=`expr $failed + 1`
12611fi
12612
12613
cristy8b350f62009-11-15 23:12:43 +000012614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000012615$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012616if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012617 $as_echo_n "(cached) " >&6
12618else
12619 ac_check_lib_save_LIBS=$LIBS
12620LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012622/* end confdefs.h. */
12623
12624/* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12627#ifdef __cplusplus
12628extern "C"
12629#endif
12630char fftw_execute ();
12631int
12632main ()
12633{
12634return fftw_execute ();
12635 ;
12636 return 0;
12637}
12638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012639if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012640 ac_cv_lib_fftw3_fftw_execute=yes
12641else
cristy8b350f62009-11-15 23:12:43 +000012642 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000012643fi
cristy8b350f62009-11-15 23:12:43 +000012644rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012646LIBS=$ac_check_lib_save_LIBS
12647fi
cristy8b350f62009-11-15 23:12:43 +000012648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000012649$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012650if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012651 passed=`expr $passed + 1`
12652else
12653 failed=`expr $failed + 1`
12654fi
12655
cristy8b350f62009-11-15 23:12:43 +000012656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000012657$as_echo_n "checking if FFTW package is complete... " >&6; }
12658 if test $passed -gt 0; then
12659 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000012660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000012661$as_echo "no -- some components failed test" >&6; }
12662 have_fftw='no (failed tests)'
12663 else
12664 FFTW_LIBS='-lfftw3'
12665 LIBS="$FFTW_LIBS $LIBS"
12666
cristy8b350f62009-11-15 23:12:43 +000012667$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012668
cristy8b350f62009-11-15 23:12:43 +000012669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000012670$as_echo "yes" >&6; }
12671 have_fftw='yes'
12672 fi
12673 else
cristy8b350f62009-11-15 23:12:43 +000012674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012675$as_echo "no" >&6; }
12676 fi
12677fi
nicolas6237c462010-10-05 06:11:49 +000012678AM_CONDITIONAL(FFTW_DELEGATE, test "$have_fftw" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012679
12680
12681
12682#
12683# Check for FlashPIX delegate library.
12684#
12685
12686# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000012687if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012688 withval=$with_fpx; with_fpx=$withval
12689else
12690 with_fpx='yes'
12691fi
12692
12693
12694if test "$with_fpx" != 'yes'; then
12695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
12696fi
12697
12698have_fpx='no'
12699FPX_LIBS=''
12700if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000012701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012702$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000012704$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012706$as_echo "" >&6; }
12707 failed=0
12708 passed=0
12709 ac_ext=cpp
12710ac_cpp='$CXXCPP $CPPFLAGS'
12711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12714
nicolas6237c462010-10-05 06:11:49 +000012715 ac_ext=cpp
12716ac_cpp='$CXXCPP $CPPFLAGS'
12717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12721$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12722if test -z "$CXXCPP"; then
12723 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725else
12726 # Double quotes because CXXCPP needs to be expanded
12727 for CXXCPP in "$CXX -E" "/lib/cpp"
12728 do
12729 ac_preproc_ok=false
12730for ac_cxx_preproc_warn_flag in '' yes
12731do
12732 # Use a header file that comes with gcc, so configuring glibc
12733 # with a fresh cross-compiler works.
12734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735 # <limits.h> exists even on freestanding compilers.
12736 # On the NeXT, cc -E runs the code through the compiler's parser,
12737 # not just through cpp. "Syntax error" is here to catch this case.
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739/* end confdefs.h. */
12740#ifdef __STDC__
12741# include <limits.h>
12742#else
12743# include <assert.h>
12744#endif
12745 Syntax error
12746_ACEOF
12747if ac_fn_cxx_try_cpp "$LINENO"; then :
12748
12749else
12750 # Broken: fails on valid input.
12751continue
12752fi
12753rm -f conftest.err conftest.$ac_ext
12754
12755 # OK, works on sane cases. Now check whether nonexistent headers
12756 # can be detected and how.
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758/* end confdefs.h. */
12759#include <ac_nonexistent.h>
12760_ACEOF
12761if ac_fn_cxx_try_cpp "$LINENO"; then :
12762 # Broken: success on invalid input.
12763continue
12764else
12765 # Passes both tests.
12766ac_preproc_ok=:
12767break
12768fi
12769rm -f conftest.err conftest.$ac_ext
12770
12771done
12772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12773rm -f conftest.err conftest.$ac_ext
12774if $ac_preproc_ok; then :
12775 break
12776fi
12777
12778 done
12779 ac_cv_prog_CXXCPP=$CXXCPP
12780
12781fi
12782 CXXCPP=$ac_cv_prog_CXXCPP
12783else
12784 ac_cv_prog_CXXCPP=$CXXCPP
12785fi
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12787$as_echo "$CXXCPP" >&6; }
12788ac_preproc_ok=false
12789for ac_cxx_preproc_warn_flag in '' yes
12790do
12791 # Use a header file that comes with gcc, so configuring glibc
12792 # with a fresh cross-compiler works.
12793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12794 # <limits.h> exists even on freestanding compilers.
12795 # On the NeXT, cc -E runs the code through the compiler's parser,
12796 # not just through cpp. "Syntax error" is here to catch this case.
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798/* end confdefs.h. */
12799#ifdef __STDC__
12800# include <limits.h>
12801#else
12802# include <assert.h>
12803#endif
12804 Syntax error
12805_ACEOF
12806if ac_fn_cxx_try_cpp "$LINENO"; then :
12807
12808else
12809 # Broken: fails on valid input.
12810continue
12811fi
12812rm -f conftest.err conftest.$ac_ext
12813
12814 # OK, works on sane cases. Now check whether nonexistent headers
12815 # can be detected and how.
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817/* end confdefs.h. */
12818#include <ac_nonexistent.h>
12819_ACEOF
12820if ac_fn_cxx_try_cpp "$LINENO"; then :
12821 # Broken: success on invalid input.
12822continue
12823else
12824 # Passes both tests.
12825ac_preproc_ok=:
12826break
12827fi
12828rm -f conftest.err conftest.$ac_ext
12829
12830done
12831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12832rm -f conftest.err conftest.$ac_ext
12833if $ac_preproc_ok; then :
12834
12835else
12836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12838as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12839See \`config.log' for more details." "$LINENO" 5; }
12840fi
12841
12842ac_ext=cpp
12843ac_cpp='$CXXCPP $CPPFLAGS'
12844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12847
cristy3ed852e2009-09-05 21:47:34 +000012848
cristy8b350f62009-11-15 23:12:43 +000012849ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
12850if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012851 passed=`expr $passed + 1`
12852else
12853 failed=`expr $failed + 1`
12854fi
12855
12856
cristy8b350f62009-11-15 23:12:43 +000012857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000012858$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012859if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012860 $as_echo_n "(cached) " >&6
12861else
12862 ac_check_lib_save_LIBS=$LIBS
12863LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000012864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012865/* end confdefs.h. */
12866
12867/* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12870#ifdef __cplusplus
12871extern "C"
12872#endif
12873char FPX_OpenImageByFilename ();
12874int
12875main ()
12876{
12877return FPX_OpenImageByFilename ();
12878 ;
12879 return 0;
12880}
12881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012882if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012883 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
12884else
cristy8b350f62009-11-15 23:12:43 +000012885 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000012886fi
cristy8b350f62009-11-15 23:12:43 +000012887rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012889LIBS=$ac_check_lib_save_LIBS
12890fi
cristy8b350f62009-11-15 23:12:43 +000012891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000012892$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012893if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000012894 passed=`expr $passed + 1`
12895else
12896 failed=`expr $failed + 1`
12897fi
12898
12899 ac_ext=c
12900ac_cpp='$CPP $CPPFLAGS'
12901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
cristy8b350f62009-11-15 23:12:43 +000012905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000012906$as_echo_n "checking if FlashPIX package is complete... " >&6; }
12907 if test $passed -gt 0; then
12908 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000012909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000012910$as_echo "no -- some components failed test" >&6; }
12911 have_fpx='no (failed tests)'
12912 else
12913 FPX_LIBS='-lfpx'
12914
cristy8b350f62009-11-15 23:12:43 +000012915$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012916
cristy8b350f62009-11-15 23:12:43 +000012917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000012918$as_echo "yes" >&6; }
12919 have_fpx='yes'
12920 PERLMAINCC="$CXX"
12921 fi
12922 else
cristy8b350f62009-11-15 23:12:43 +000012923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012924$as_echo "no" >&6; }
12925 fi
12926fi
nicolas6237c462010-10-05 06:11:49 +000012927AM_CONDITIONAL(FPX_DELEGATE, test "$have_fpx" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012928
12929
12930
12931#
12932# Check for fontconfig delegate library.
12933#
12934
12935# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000012936if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012937 withval=$with_fontconfig; with_fontconfig=$withval
12938else
12939 with_fontconfig=$have_x
12940fi
12941
12942
12943if test "$with_fontconfig" != 'yes'; then
12944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
12945fi
12946
12947have_fontconfig='no'
12948FONTCONFIG_CFLAGS=""
12949FONTCONFIG_LIBS=""
12950FONTCONFIG_PKG=""
12951if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000012952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012953$as_echo "-------------------------------------------------------------" >&6; }
nicolas6237c462010-10-05 06:11:49 +000012954 PKG_CHECK_MODULES(FONTCONFIG,fontconfig >= 2.1.0, have_fontconfig=yes, have_fontconfig=no)
cristy8b350f62009-11-15 23:12:43 +000012955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012956$as_echo "" >&6; }
12957fi
12958
12959if test "$have_fontconfig" = 'yes'; then
12960
cristy8b350f62009-11-15 23:12:43 +000012961$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012962
cristyd09bcf92010-03-25 03:04:45 +000012963 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000012964 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000012965 fi
cristy3ed852e2009-09-05 21:47:34 +000012966fi
12967
nicolas6237c462010-10-05 06:11:49 +000012968AM_CONDITIONAL(FONTCONFIG_DELEGATE,test "$have_fontconfig" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000012969
12970
12971
12972
12973#
12974# Check for freetype delegate library.
12975#
12976
12977# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000012978if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012979 withval=$with_freetype; with_freetype=$withval
12980else
12981 with_freetype='yes'
12982fi
12983
12984
12985
12986if test "$with_freetype" != 'yes'; then
12987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
12988fi
12989
12990have_freetype='no'
12991FREETYPE_LIBS=''
12992if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000012993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000012994$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000012995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000012996$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000012998$as_echo "" >&6; }
12999 failed=0
13000 passed=0
cristy66291112009-10-03 22:44:36 +000013001 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000013002 PERSIST_CPPFLAGS="$CPPFLAGS"
13003 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
13004 :
13005 else
13006 freetype_config=''
13007 for ac_prog in freetype-config
13008do
13009 # Extract the first word of "$ac_prog", so it can be a program name with args.
13010set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000013011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000013012$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013013if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013014 $as_echo_n "(cached) " >&6
13015else
13016 if test -n "$freetype_config"; then
13017 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
13018else
13019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020for as_dir in $PATH
13021do
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000013024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000013025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000013027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013028 break 2
13029 fi
13030done
cristy8b350f62009-11-15 23:12:43 +000013031 done
cristy3ed852e2009-09-05 21:47:34 +000013032IFS=$as_save_IFS
13033
13034fi
13035fi
13036freetype_config=$ac_cv_prog_freetype_config
13037if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000013038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000013039$as_echo "$freetype_config" >&6; }
13040else
cristy8b350f62009-11-15 23:12:43 +000013041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013042$as_echo "no" >&6; }
13043fi
13044
13045
13046 test -n "$freetype_config" && break
13047done
13048 if test -n "$freetype_config"; then
13049 freetype_cflags=`$freetype_config --cflags`
13050 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000013051 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000013052 CPPFLAGS="$freetype_cflags $CPPFLAGS"
13053 fi
13054 fi
13055
13056 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000013057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000013058$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013059if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013060 $as_echo_n "(cached) " >&6
13061else
13062 ac_check_lib_save_LIBS=$LIBS
13063LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013065/* end confdefs.h. */
13066
13067/* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
13070#ifdef __cplusplus
13071extern "C"
13072#endif
13073char FT_Init_FreeType ();
13074int
13075main ()
13076{
13077return FT_Init_FreeType ();
13078 ;
13079 return 0;
13080}
13081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013083 ac_cv_lib_freetype_FT_Init_FreeType=yes
13084else
cristy8b350f62009-11-15 23:12:43 +000013085 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000013086fi
cristy8b350f62009-11-15 23:12:43 +000013087rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013089LIBS=$ac_check_lib_save_LIBS
13090fi
cristy8b350f62009-11-15 23:12:43 +000013091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000013092$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013093if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013094 FREETYPE_LIBS='-lfreetype'
13095fi
13096
13097 if test "$FREETYPE_LIBS" != ''; then
13098 passed=`expr $passed + 1`
13099 else
13100 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000013101 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000013102 fi
13103 fi
13104
cristy8b350f62009-11-15 23:12:43 +000013105 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
13106if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013107 FT2BUILD_H='#include <ft2build.h>'
13108else
13109 ft2build=''
13110fi
13111
13112
cristy8b350f62009-11-15 23:12:43 +000013113 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
13114"
13115if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013116 have_freetype_h='yes'
13117else
13118 have_freetype_h='no'
13119fi
13120
13121
13122 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
13123 passed=`expr $passed + 1`
13124 else
13125 failed=`expr $failed + 1`
13126 CPPFLAGS="$PERSIST_CPPFLAGS"
13127 fi
13128
cristy8b350f62009-11-15 23:12:43 +000013129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000013130$as_echo_n "checking if FreeType package is complete... " >&6; }
13131 if test $passed -gt 0; then
13132 if test $failed -gt 0; then
13133 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000013134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000013135$as_echo "no -- some components failed test" >&6; }
13136 have_freetype='no (failed tests)'
13137 else
13138 LIBS="$FREETYPE_LIBS $LIBS"
13139
cristy8b350f62009-11-15 23:12:43 +000013140$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013141
13142 if test "$ac_cv_header_ft2build_h" = 'yes'; then
13143
cristy8b350f62009-11-15 23:12:43 +000013144$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013145
13146 fi
cristy8b350f62009-11-15 23:12:43 +000013147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000013148$as_echo "yes" >&6; }
13149 have_freetype='yes'
13150 fi
13151 else
cristy8b350f62009-11-15 23:12:43 +000013152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013153$as_echo "no" >&6; }
13154 fi
13155fi
nicolas6237c462010-10-05 06:11:49 +000013156AM_CONDITIONAL(FREETYPE_DELEGATE,test "$have_freetype" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000013157
13158
13159
13160
13161#
13162# Check for Ghostscript library or framework.
13163#
13164# Test for iapi.h & test for gsapi_new_instance in -lgs
13165# or -framework Ghostscript
13166
13167
13168# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000013169if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013170 withval=$with_gslib; with_gslib=$withval
13171else
13172 with_gslib='no'
13173fi
13174
13175
cristyb7931f12009-09-25 10:22:21 +000013176gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000013177if test "$with_gslib" != 'yes'; then
13178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
13179fi
13180
13181have_gslib='no'
13182GS_LIBS=''
13183if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000013184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000013185$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000013187$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000013189$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000013190 framework=0
cristy3ed852e2009-09-05 21:47:34 +000013191 failed=0
13192 passed=0
cristy8b350f62009-11-15 23:12:43 +000013193 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
13194if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013195 passed=`expr $passed + 1`
13196else
13197 failed=`expr $failed + 1`
13198fi
13199
13200
cristy8b350f62009-11-15 23:12:43 +000013201 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
13202if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013203 passed=`expr $passed + 1`
13204else
13205 failed=`expr $failed + 1`
13206fi
13207
13208
nicolas6237c462010-10-05 06:11:49 +000013209 AC_CHECK_FRAMEWORK(Ghostscript,gsapi_new_instance,framework=`expr $framework + 1`,
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013211$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013212if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013213 $as_echo_n "(cached) " >&6
13214else
13215 ac_check_lib_save_LIBS=$LIBS
13216LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013218/* end confdefs.h. */
13219
13220/* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13223#ifdef __cplusplus
13224extern "C"
13225#endif
13226char gsapi_new_instance ();
13227int
13228main ()
13229{
13230return gsapi_new_instance ();
13231 ;
13232 return 0;
13233}
13234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013236 ac_cv_lib_gs_gsapi_new_instance=yes
13237else
cristy8b350f62009-11-15 23:12:43 +000013238 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000013239fi
cristy8b350f62009-11-15 23:12:43 +000013240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013242LIBS=$ac_check_lib_save_LIBS
13243fi
cristy8b350f62009-11-15 23:12:43 +000013244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000013245$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013246if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013247 passed=`expr $passed + 1`
13248else
13249 failed=`expr $failed + 1`
13250fi
nicolas6237c462010-10-05 06:11:49 +000013251,)
cristy8b350f62009-11-15 23:12:43 +000013252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000013253$as_echo_n "checking if Ghostscript package is complete... " >&6; }
13254 if test $passed -gt 0; then
13255 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000013256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000013257$as_echo "no -- some components failed test" >&6; }
13258 have_gslib='no (failed tests)'
13259 else
13260 if test $framework -gt 0; then
13261 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000013262 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000013263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000013264$as_echo "yes, using framework." >&6; }
13265 else
cristy8b350f62009-11-15 23:12:43 +000013266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000013267$as_echo "yes, using library." >&6; }
13268 GS_LIBS='-lgs'
13269 fi
13270 LIBS="$GS_LIBS $LIBS"
13271
cristy8b350f62009-11-15 23:12:43 +000013272$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013273
13274 have_gslib='yes'
13275 fi
13276 else
cristy8b350f62009-11-15 23:12:43 +000013277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013278$as_echo "no" >&6; }
13279 fi
13280fi
nicolas6237c462010-10-05 06:11:49 +000013281AM_CONDITIONAL(GS_DELEGATE, test "$have_gslib" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000013282
13283
13284# Set default font search path
13285
13286# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000013287if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013288 withval=$with_fontpath; with_fontpath=$withval
13289else
13290 with_fontpath=''
13291fi
13292
13293
13294if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
13295 with_fontpath=''
13296else
13297
13298cat >>confdefs.h <<_ACEOF
13299#define MAGICK_FONT_PATH "$with_fontpath"
13300_ACEOF
13301
13302fi
13303if test "$with_fontpath=" != ''; then
13304 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
13305fi
13306
13307# Set Ghostscript font directory
13308
13309# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000013310if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013311 withval=$with_gs_font_dir; with_gs_font_dir=$withval
13312else
13313 with_gs_font_dir='default'
13314fi
13315
13316
13317if test "$with_gs_font_dir" != 'default'; then
13318 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
13319fi
13320
13321
13322#
13323# Check for GVC delegate library.
13324#
13325
13326# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000013327if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013328 withval=$with_gvc; with_gvc=$withval
13329else
13330 with_gvc='yes'
13331fi
13332
13333
13334if test "$with_gvc" != 'yes'; then
13335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
13336fi
13337
13338GVC_PKG=""
13339if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000013340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000013341$as_echo "-------------------------------------------------------------" >&6; }
nicolas6237c462010-10-05 06:11:49 +000013342 PKG_CHECK_MODULES(GVC,libgvc >= 2.9.0, have_gvc=yes, have_gvc=no)
cristy8b350f62009-11-15 23:12:43 +000013343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000013344$as_echo "" >&6; }
13345fi
13346
13347if test "$have_gvc" = 'yes'; then
13348
cristy8b350f62009-11-15 23:12:43 +000013349$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013350
13351 if test "$with_modules" = 'no'; then
13352 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
13353 fi
13354fi
13355
nicolas6237c462010-10-05 06:11:49 +000013356AM_CONDITIONAL(GVC_DELEGATE, test "$have_gvc" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000013357
13358
13359
13360
13361#
13362# Check for JBIG delegate library.
13363#
13364
13365
13366# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000013367if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013368 withval=$with_jbig; with_jbig=$withval
13369else
13370 with_jbig='yes'
13371fi
13372
13373
13374have_jbig='no'
13375JBIG_LIBS=''
13376if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000013377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000013378$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000013380$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000013382$as_echo "" >&6; }
13383 failed=0
13384 passed=0
cristy8b350f62009-11-15 23:12:43 +000013385 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
13386if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013387 passed=`expr $passed + 1`
13388else
13389 failed=`expr $failed + 1`
13390fi
13391
13392
cristy8b350f62009-11-15 23:12:43 +000013393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000013394$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013395if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013396 $as_echo_n "(cached) " >&6
13397else
13398 ac_check_lib_save_LIBS=$LIBS
13399LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013401/* end confdefs.h. */
13402
13403/* Override any GCC internal prototype to avoid an error.
13404 Use char because int might match the return type of a GCC
13405 builtin and then its argument prototype would still apply. */
13406#ifdef __cplusplus
13407extern "C"
13408#endif
13409char jbg_dec_init ();
13410int
13411main ()
13412{
13413return jbg_dec_init ();
13414 ;
13415 return 0;
13416}
13417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013419 ac_cv_lib_jbig_jbg_dec_init=yes
13420else
cristy8b350f62009-11-15 23:12:43 +000013421 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000013422fi
cristy8b350f62009-11-15 23:12:43 +000013423rm -f core conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013425LIBS=$ac_check_lib_save_LIBS
13426fi
cristy8b350f62009-11-15 23:12:43 +000013427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000013428$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013429if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013430 passed=`expr $passed + 1`
13431else
13432 failed=`expr $failed + 1`
13433fi
13434
cristy8b350f62009-11-15 23:12:43 +000013435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000013436$as_echo_n "checking if JBIG package is complete... " >&6; }
13437 if test $passed -gt 0; then
13438 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000013439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000013440$as_echo "no -- some components failed test" >&6; }
13441 have_jbig='no (failed tests)'
13442 else
13443 JBIG_LIBS='-ljbig'
13444 LIBS="$JBIG_LIBS $LIBS"
13445
cristy8b350f62009-11-15 23:12:43 +000013446$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013447
cristy8b350f62009-11-15 23:12:43 +000013448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000013449$as_echo "yes" >&6; }
13450 have_jbig='yes'
13451 fi
13452 else
cristy8b350f62009-11-15 23:12:43 +000013453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013454$as_echo "no" >&6; }
13455 fi
13456fi
nicolas6237c462010-10-05 06:11:49 +000013457AM_CONDITIONAL(JBIG_DELEGATE, test "$have_jbig" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000013458
13459
13460
13461#
13462# Check for JPEG delegate library.
13463#
13464
13465# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000013466if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013467 withval=$with_jpeg; with_jpeg=$withval
13468else
13469 with_jpeg='yes'
13470fi
13471
13472
13473if test "$with_jpeg" != 'yes'; then
13474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
13475fi
13476
13477have_jpeg='no'
13478JPEG_LIBS=''
13479if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000013480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000013481$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000013483$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000013485$as_echo "" >&6; }
13486 failed=0
13487 passed=0
cristy8b350f62009-11-15 23:12:43 +000013488 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
13489if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013490 passed=`expr $passed + 1`
13491else
13492 failed=`expr $failed + 1`
13493fi
13494
13495
cristy8b350f62009-11-15 23:12:43 +000013496 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13497if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013498 passed=`expr $passed + 1`
13499else
13500 failed=`expr $failed + 1`
13501fi
13502
13503
cristy8b350f62009-11-15 23:12:43 +000013504 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
13505if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013506 passed=`expr $passed + 1`
13507else
13508 failed=`expr $failed + 1`
13509fi
13510
13511
cristy8b350f62009-11-15 23:12:43 +000013512 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13513if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013514 passed=`expr $passed + 1`
13515else
13516 failed=`expr $failed + 1`
13517fi
13518
13519
cristy8b350f62009-11-15 23:12:43 +000013520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000013521$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013522if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013523 $as_echo_n "(cached) " >&6
13524else
13525 ac_check_lib_save_LIBS=$LIBS
13526LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013528/* end confdefs.h. */
13529
13530/* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533#ifdef __cplusplus
13534extern "C"
13535#endif
13536char jpeg_read_header ();
13537int
13538main ()
13539{
13540return jpeg_read_header ();
13541 ;
13542 return 0;
13543}
13544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013546 ac_cv_lib_jpeg_jpeg_read_header=yes
13547else
cristy8b350f62009-11-15 23:12:43 +000013548 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000013549fi
cristy8b350f62009-11-15 23:12:43 +000013550rm -f core conftest.err conftest.$ac_objext \
13551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013552LIBS=$ac_check_lib_save_LIBS
13553fi
cristy8b350f62009-11-15 23:12:43 +000013554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000013555$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013556if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013557 passed=`expr $passed + 1`
13558else
13559 failed=`expr $failed + 1`
13560fi
13561
13562
13563# Test for compatible JPEG library
13564if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000013565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000013566$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013567if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013568 $as_echo_n "(cached) " >&6
13569else
cristy8b350f62009-11-15 23:12:43 +000013570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013571/* end confdefs.h. */
13572#include <stdio.h>
13573#include <stdlib.h>
13574#include <jpeglib.h>
13575
13576int
13577main ()
13578{
13579
13580#if JPEG_LIB_VERSION < 62
13581#error IJG JPEG library must be version 6b or newer!
13582#endif
13583return 0;
13584
13585 ;
13586 return 0;
13587}
13588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013589if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013590 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
13591else
cristy8b350f62009-11-15 23:12:43 +000013592 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000013593fi
cristy3ed852e2009-09-05 21:47:34 +000013594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595fi
cristy8b350f62009-11-15 23:12:43 +000013596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000013597$as_echo "$ac_cv_jpeg_version_ok" >&6; }
13598fi
cristy8b350f62009-11-15 23:12:43 +000013599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000013600$as_echo_n "checking if JPEG package is complete... " >&6; }
13601 if test $passed -gt 0; then
13602 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000013603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000013604$as_echo "no -- some components failed test" >&6; }
13605 have_jpeg='no (failed tests)'
13606 else
13607 JPEG_LIBS='-ljpeg'
13608 LIBS="$JPEG_LIBS $LIBS"
13609
cristy8b350f62009-11-15 23:12:43 +000013610$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013611
cristy8b350f62009-11-15 23:12:43 +000013612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000013613$as_echo "yes" >&6; }
13614 have_jpeg='yes'
13615 fi
13616 else
cristy8b350f62009-11-15 23:12:43 +000013617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013618$as_echo "no" >&6; }
13619 fi
13620fi
nicolas6237c462010-10-05 06:11:49 +000013621AM_CONDITIONAL(JPEG_DELEGATE, test "$have_jpeg" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000013622
13623
13624
13625#
13626# Check for JPEG Version 2 delegate library.
13627#
13628
13629# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000013630if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013631 withval=$with_jp2; with_jp2=$withval
13632else
13633 with_jp2='yes'
13634fi
13635
13636
13637if test "$with_jp2" != 'yes'; then
13638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
13639fi
13640
13641have_jp2='no'
13642JP2_LIBS=''
13643if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000013644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000013645$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000013647$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000013649$as_echo "" >&6; }
13650 failed=0
13651 passed=0
cristy8b350f62009-11-15 23:12:43 +000013652 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
13653if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013654 passed=`expr $passed + 1`
13655else
13656 failed=`expr $failed + 1`
13657fi
13658
13659
cristy8b350f62009-11-15 23:12:43 +000013660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000013661$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013662if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013663 $as_echo_n "(cached) " >&6
13664else
13665 ac_check_lib_save_LIBS=$LIBS
13666LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013668/* end confdefs.h. */
13669
13670/* Override any GCC internal prototype to avoid an error.
13671 Use char because int might match the return type of a GCC
13672 builtin and then its argument prototype would still apply. */
13673#ifdef __cplusplus
13674extern "C"
13675#endif
13676char jas_stream_fopen ();
13677int
13678main ()
13679{
13680return jas_stream_fopen ();
13681 ;
13682 return 0;
13683}
13684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013686 ac_cv_lib_jasper_jas_stream_fopen=yes
13687else
cristy8b350f62009-11-15 23:12:43 +000013688 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000013689fi
cristy8b350f62009-11-15 23:12:43 +000013690rm -f core conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013692LIBS=$ac_check_lib_save_LIBS
13693fi
cristy8b350f62009-11-15 23:12:43 +000013694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000013695$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000013696if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013697 passed=`expr $passed + 1`
13698else
13699 failed=`expr $failed + 1`
13700fi
13701
cristy8b350f62009-11-15 23:12:43 +000013702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000013703$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
13704 if test $passed -gt 0; then
13705 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000013706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000013707$as_echo "no -- some components failed test" >&6; }
13708 have_jp2='no (failed tests)'
13709 else
13710 JP2_LIBS='-ljasper'
13711 LIBS="$JP2_LIBS $LIBS"
13712
cristy8b350f62009-11-15 23:12:43 +000013713$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013714
cristy8b350f62009-11-15 23:12:43 +000013715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000013716$as_echo "yes" >&6; }
13717 have_jp2='yes'
13718 fi
13719 else
cristy8b350f62009-11-15 23:12:43 +000013720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013721$as_echo "no" >&6; }
13722 fi
13723fi
nicolas6237c462010-10-05 06:11:49 +000013724AM_CONDITIONAL(JP2_DELEGATE, test "$have_jp2" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000013725
13726
13727
13728#
13729# Check for LCMS delegate library.
13730#
cristy71203402010-06-18 13:12:03 +000013731# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000013732
13733# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000013734if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013735 withval=$with_lcms; with_lcms=$withval
13736else
13737 with_lcms='yes'
13738fi
13739
cristy71203402010-06-18 13:12:03 +000013740if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000013741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
13742fi
13743
cristy71203402010-06-18 13:12:03 +000013744# Disable LCMS2.
13745
13746# Check whether --with-lcms2 was given.
13747if test "${with_lcms2+set}" = set; then :
13748 withval=$with_lcms2; with_lcms2=$withval
13749else
13750 with_lcms2='yes'
13751fi
13752
13753if test "$with_lcms2" != 'yes' ; then
13754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
13755fi
13756
13757have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000013758LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000013759if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000013760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000013761$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000013762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
13763$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000013765$as_echo "" >&6; }
13766 failed=0
13767 passed=0
13768 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000013769
13770 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000013771 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
13772if test "x$ac_cv_header_lcms2_h" = x""yes; then :
13773 have_lcms_header='yes'
13774fi
13775
13776
13777 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000013778
13779$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
13780
cristy71203402010-06-18 13:12:03 +000013781 passed=`expr $passed + 1`
13782 fi
13783
13784 # Check for <lcms2/lcms2.h)
13785 if test "$have_lcms_header" != 'yes'; then
13786 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
13787if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000013788 have_lcms_header='yes'
13789fi
13790
13791
cristy71203402010-06-18 13:12:03 +000013792 if test "$have_lcms_header" = 'yes'; then
13793 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000013794
cristy71203402010-06-18 13:12:03 +000013795$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000013796
cristy71203402010-06-18 13:12:03 +000013797 fi
cristyd09bcf92010-03-25 03:04:45 +000013798 fi
cristy71203402010-06-18 13:12:03 +000013799
13800 # Failed to find lcms header?
13801 if test "$have_lcms_header" != 'yes'; then
13802 failed=`expr $failed + 1`
13803 fi
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
13806$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
13807if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000013808 $as_echo_n "(cached) " >&6
13809else
13810 ac_check_lib_save_LIBS=$LIBS
13811LIBS="-llcms2 $LIBS"
13812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h. */
13814
13815/* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13818#ifdef __cplusplus
13819extern "C"
13820#endif
cristy71203402010-06-18 13:12:03 +000013821char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000013822int
13823main ()
13824{
cristy71203402010-06-18 13:12:03 +000013825return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000013826 ;
13827 return 0;
13828}
13829_ACEOF
13830if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000013831 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000013832else
cristy71203402010-06-18 13:12:03 +000013833 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000013834fi
13835rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837LIBS=$ac_check_lib_save_LIBS
13838fi
cristy71203402010-06-18 13:12:03 +000013839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
13840$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
13841if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000013842 passed=`expr $passed + 1`
13843else
13844 failed=`expr $failed + 1`
13845fi
13846
cristy71203402010-06-18 13:12:03 +000013847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
13848$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000013849 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000013850 if test $failed -gt 0; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000013852$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000013853 have_lcms2='no (failed tests)'
13854 else
13855 LCMS_LIBS='-llcms2'
13856 LIBS="$LCMS_LIBS $LIBS"
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000013858$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000013859 have_lcms2='yes'
13860 fi
cristyd09bcf92010-03-25 03:04:45 +000013861 else
cristy71203402010-06-18 13:12:03 +000013862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000013863$as_echo "no" >&6; }
13864 fi
13865fi
13866
cristy71203402010-06-18 13:12:03 +000013867#
13868# Check for LCMS v1 (1.11 or later)
13869#
13870if test $have_lcms2 = 'yes'; then
13871 with_lcms='no'
13872fi
13873
13874have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000013875if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000013876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
13877$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000013878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
13879$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000013880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13881$as_echo "" >&6; }
13882 failed=0
13883 passed=0
13884 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000013885
13886 # Check for <lcms.h>
13887 if test "$have_lcms_header" != 'yes'; then
13888 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000013889if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013890 have_lcms_header='yes'
13891fi
13892
13893
cristy71203402010-06-18 13:12:03 +000013894 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000013895 passed=`expr $passed + 1`
13896
cristy8b350f62009-11-15 23:12:43 +000013897$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013898
cristy71203402010-06-18 13:12:03 +000013899 fi
13900 fi
13901
13902 # Check for <lcms/lcms.h>
13903 if test "$have_lcms_header" != 'yes'; then
13904 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000013905if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013906 have_lcms_header='yes'
13907fi
13908
13909
cristy71203402010-06-18 13:12:03 +000013910 if test "$have_lcms_header" = 'yes'; then
13911 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000013912
cristy8b350f62009-11-15 23:12:43 +000013913$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000013914
cristy71203402010-06-18 13:12:03 +000013915 fi
cristy3ed852e2009-09-05 21:47:34 +000013916 fi
cristy71203402010-06-18 13:12:03 +000013917
13918 # Failed to find lcms header?
13919 if test "$have_lcms_header" != 'yes'; then
13920 failed=`expr $failed + 1`
13921 fi
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
13924$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
13925if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013926 $as_echo_n "(cached) " >&6
13927else
13928 ac_check_lib_save_LIBS=$LIBS
13929LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000013930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013931/* end confdefs.h. */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
cristy71203402010-06-18 13:12:03 +000013939char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000013940int
13941main ()
13942{
cristy71203402010-06-18 13:12:03 +000013943return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000013944 ;
13945 return 0;
13946}
13947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013948if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000013949 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000013950else
cristy71203402010-06-18 13:12:03 +000013951 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000013952fi
cristy8b350f62009-11-15 23:12:43 +000013953rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013955LIBS=$ac_check_lib_save_LIBS
13956fi
cristy71203402010-06-18 13:12:03 +000013957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
13958$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
13959if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000013960 passed=`expr $passed + 1`
13961else
13962 failed=`expr $failed + 1`
13963fi
13964
cristy8b350f62009-11-15 23:12:43 +000013965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000013966$as_echo_n "checking if LCMS package is complete... " >&6; }
13967 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000013968 if test $failed -gt 0; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000013970$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000013971 have_lcms='no (failed tests)'
13972 else
13973 LCMS_LIBS='-llcms'
13974 LIBS="$LCMS_LIBS $LIBS"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000013976$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000013977 have_lcms='yes'
13978 fi
cristy3ed852e2009-09-05 21:47:34 +000013979 else
cristy71203402010-06-18 13:12:03 +000013980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000013981$as_echo "no" >&6; }
13982 fi
13983fi
cristy71203402010-06-18 13:12:03 +000013984
nicolas6237c462010-10-05 06:11:49 +000013985AM_CONDITIONAL(LCMS_DELEGATE, test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes')
cristy71203402010-06-18 13:12:03 +000013986if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
13987
13988$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
13989
13990fi
13991
cristy3ed852e2009-09-05 21:47:34 +000013992
13993
13994
13995#
13996# Check for the LQR (Liquid Rescale) delegate library.
13997#
13998
13999# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000014000if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014001 withval=$with_lqr; with_lqr=$withval
14002else
14003 with_lqr='yes'
14004fi
14005
14006
14007if test "$with_lqr" != 'yes'; then
14008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
14009fi
14010
14011have_lqr='no'
14012LQR_CFLAGS=""
14013LQR_LIBS=""
14014LQR_PKG=""
14015if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000014016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014017$as_echo "-------------------------------------------------------------" >&6; }
nicolas6237c462010-10-05 06:11:49 +000014018 PKG_CHECK_MODULES(LQR,lqr-1 >= 0.1.0, have_lqr=yes, have_lqr=no)
cristy8b350f62009-11-15 23:12:43 +000014019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014020$as_echo "" >&6; }
14021fi
14022
14023if test "$have_lqr" = 'yes'; then
14024
cristy8b350f62009-11-15 23:12:43 +000014025$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014026
14027 CFLAGS="$LQR_CFLAGS $CFLAGS"
14028fi
14029
nicolas6237c462010-10-05 06:11:49 +000014030AM_CONDITIONAL(LQR_DELEGATE, test "$have_lqr" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014031
14032
14033
14034
14035#
14036# Check for the OpenEXR delegate library.
14037#
14038
14039# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000014040if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014041 withval=$with_openexr; with_openexr=$withval
14042else
14043 with_openexr='yes'
14044fi
14045
14046
14047if test "$with_openexr" != 'yes'; then
14048 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
14049fi
14050
14051have_openexr='no'
14052OPENEXR_CFLAGS=""
14053OPENEXR_LIBS=""
14054OPENEXR_PKG=""
14055if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000014056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014057$as_echo "-------------------------------------------------------------" >&6; }
nicolas6237c462010-10-05 06:11:49 +000014058 PKG_CHECK_MODULES(OPENEXR,OpenEXR >= 1.0.6, have_openexr=yes, have_openexr=no)
cristy8b350f62009-11-15 23:12:43 +000014059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014060$as_echo "" >&6; }
14061fi
14062
14063if test "$have_openexr" = 'yes'; then
14064
cristy8b350f62009-11-15 23:12:43 +000014065$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014066
14067 if test "$with_modules" = 'no'; then
14068 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
14069 fi
14070fi
14071
nicolas6237c462010-10-05 06:11:49 +000014072AM_CONDITIONAL(OPENEXR_DELEGATE, test "$have_openexr" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014073
14074
14075
14076
14077#
14078# Check for PNG delegate library.
14079#
14080
14081# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000014082if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014083 withval=$with_png; with_png=$withval
14084else
14085 with_png='yes'
14086fi
14087
14088
14089if test "$with_png" != 'yes'; then
14090 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
14091fi
14092
14093have_png='no'
14094PNG_LIBS=''
14095if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000014096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014097$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000014099$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014101$as_echo "" >&6; }
14102 failed=0
14103 passed=0
cristy8b350f62009-11-15 23:12:43 +000014104 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
14105if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014106 passed=`expr $passed + 1`
14107else
14108 failed=`expr $failed + 1`
14109fi
14110
14111
cristy8b350f62009-11-15 23:12:43 +000014112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000014113$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014114if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014115 $as_echo_n "(cached) " >&6
14116else
14117 ac_check_lib_save_LIBS=$LIBS
14118LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014120/* end confdefs.h. */
14121
14122/* Override any GCC internal prototype to avoid an error.
14123 Use char because int might match the return type of a GCC
14124 builtin and then its argument prototype would still apply. */
14125#ifdef __cplusplus
14126extern "C"
14127#endif
14128char png_get_io_ptr ();
14129int
14130main ()
14131{
14132return png_get_io_ptr ();
14133 ;
14134 return 0;
14135}
14136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014138 ac_cv_lib_png_png_get_io_ptr=yes
14139else
cristy8b350f62009-11-15 23:12:43 +000014140 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000014141fi
cristy8b350f62009-11-15 23:12:43 +000014142rm -f core conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014144LIBS=$ac_check_lib_save_LIBS
14145fi
cristy8b350f62009-11-15 23:12:43 +000014146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000014147$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014148if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014149 passed=`expr $passed + 1`
14150else
14151 failed=`expr $failed + 1`
14152fi
14153
cristy8b350f62009-11-15 23:12:43 +000014154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000014155$as_echo_n "checking if PNG package is complete... " >&6; }
14156 if test $passed -gt 0; then
14157 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000014158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000014159$as_echo "no -- some components failed test" >&6; }
14160 have_png='no (failed tests)'
14161 else
14162 PNG_LIBS='-lpng'
14163 LIBS="$PNG_LIBS $LIBS"
14164
cristy8b350f62009-11-15 23:12:43 +000014165$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014166
cristy8b350f62009-11-15 23:12:43 +000014167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014168$as_echo "yes" >&6; }
14169 have_png='yes'
14170 fi
14171 else
cristy8b350f62009-11-15 23:12:43 +000014172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014173$as_echo "no" >&6; }
14174 fi
14175fi
nicolas6237c462010-10-05 06:11:49 +000014176AM_CONDITIONAL(PNG_DELEGATE,test "$have_png" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014177
14178
14179
14180#
14181# Check for RSVG delegate library.
14182#
14183
14184# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000014185if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014186 withval=$with_rsvg; with_rsvg=$withval
14187else
14188 with_rsvg=$have_x
14189fi
14190
14191
14192if test "$with_rsvg" != 'yes'; then
14193 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
14194fi
14195
14196have_rsvg='no'
14197have_cairo='no'
14198RSVG_CFLAGS=""
14199RSVG_LIBS=""
14200RSVG_PKG=""
14201if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000014202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014203$as_echo "-------------------------------------------------------------" >&6; }
nicolas6237c462010-10-05 06:11:49 +000014204 PKG_CHECK_MODULES(RSVG,librsvg-2.0 >= 2.9.0, have_rsvg=yes, have_rsvg=no)
cristy8b350f62009-11-15 23:12:43 +000014205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014206$as_echo "" >&6; }
nicolas6237c462010-10-05 06:11:49 +000014207 PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg, have_cairo=yes, have_cairo=no)
cristy8b350f62009-11-15 23:12:43 +000014208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014209$as_echo "" >&6; }
14210fi
14211
14212if test "$have_rsvg" = 'yes'; then
14213
cristy8b350f62009-11-15 23:12:43 +000014214$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014215
14216 if test "$with_modules" = 'no'; then
14217 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
14218 fi
14219fi
14220
14221if test "$have_cairo" = 'yes'; then
14222
cristy8b350f62009-11-15 23:12:43 +000014223$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014224
14225 if test "$with_modules" = 'no'; then
14226 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
14227 fi
14228fi
14229
nicolas6237c462010-10-05 06:11:49 +000014230AM_CONDITIONAL(RSVG_DELEGATE, test "$have_rsvg" = 'yes')
14231AM_CONDITIONAL(CAIRO_DELEGATE, test "$have_cairo" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014232
14233
14234
14235
14236#
14237# Check for TIFF delegate library.
14238#
14239
14240# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000014241if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014242 withval=$with_tiff; with_tiff=$withval
14243else
14244 with_tiff='yes'
14245fi
14246
14247
14248if test "$with_tiff" != 'yes'; then
14249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
14250fi
14251
14252have_tiff='no'
14253TIFF_LIBS=''
14254if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000014255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014256$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000014258$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014260$as_echo "" >&6; }
14261 failed=0
14262 passed=0
cristy8b350f62009-11-15 23:12:43 +000014263 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
14264if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014265 passed=`expr $passed + 1`
14266else
14267 failed=`expr $failed + 1`
14268fi
14269
14270
cristy8b350f62009-11-15 23:12:43 +000014271 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14272if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014273 passed=`expr $passed + 1`
14274else
14275 failed=`expr $failed + 1`
14276fi
14277
14278
cristy8b350f62009-11-15 23:12:43 +000014279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000014280$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014281if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014282 $as_echo_n "(cached) " >&6
14283else
14284 ac_check_lib_save_LIBS=$LIBS
14285LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014287/* end confdefs.h. */
14288
14289/* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply. */
14292#ifdef __cplusplus
14293extern "C"
14294#endif
14295char TIFFOpen ();
14296int
14297main ()
14298{
14299return TIFFOpen ();
14300 ;
14301 return 0;
14302}
14303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014305 ac_cv_lib_tiff_TIFFOpen=yes
14306else
cristy8b350f62009-11-15 23:12:43 +000014307 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000014308fi
cristy8b350f62009-11-15 23:12:43 +000014309rm -f core conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014311LIBS=$ac_check_lib_save_LIBS
14312fi
cristy8b350f62009-11-15 23:12:43 +000014313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014314$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014315if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014316 passed=`expr $passed + 1`
14317else
14318 failed=`expr $failed + 1`
14319fi
14320
cristy8b350f62009-11-15 23:12:43 +000014321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000014322$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014323if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014324 $as_echo_n "(cached) " >&6
14325else
14326 ac_check_lib_save_LIBS=$LIBS
14327LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014329/* end confdefs.h. */
14330
14331/* Override any GCC internal prototype to avoid an error.
14332 Use char because int might match the return type of a GCC
14333 builtin and then its argument prototype would still apply. */
14334#ifdef __cplusplus
14335extern "C"
14336#endif
14337char TIFFClientOpen ();
14338int
14339main ()
14340{
14341return TIFFClientOpen ();
14342 ;
14343 return 0;
14344}
14345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014347 ac_cv_lib_tiff_TIFFClientOpen=yes
14348else
cristy8b350f62009-11-15 23:12:43 +000014349 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000014350fi
cristy8b350f62009-11-15 23:12:43 +000014351rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014353LIBS=$ac_check_lib_save_LIBS
14354fi
cristy8b350f62009-11-15 23:12:43 +000014355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014356$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014357if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014358 passed=`expr $passed + 1`
14359else
14360 failed=`expr $failed + 1`
14361fi
14362
cristyb97f1002010-07-26 14:02:57 +000014363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
14364$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
14365if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367else
14368 ac_check_lib_save_LIBS=$LIBS
14369LIBS="-ltiff $LIBS"
14370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371/* end confdefs.h. */
14372
14373/* Override any GCC internal prototype to avoid an error.
14374 Use char because int might match the return type of a GCC
14375 builtin and then its argument prototype would still apply. */
14376#ifdef __cplusplus
14377extern "C"
14378#endif
14379char TIFFIsBigEndian ();
14380int
14381main ()
14382{
14383return TIFFIsBigEndian ();
14384 ;
14385 return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"; then :
14389 ac_cv_lib_tiff_TIFFIsBigEndian=yes
14390else
14391 ac_cv_lib_tiff_TIFFIsBigEndian=no
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395LIBS=$ac_check_lib_save_LIBS
14396fi
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
14398$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
14399if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
14400 passed=`expr $passed + 1`
14401else
14402 failed=`expr $failed + 1`
14403fi
14404
cristy8b350f62009-11-15 23:12:43 +000014405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000014406$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014407if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014408 $as_echo_n "(cached) " >&6
14409else
14410 ac_check_lib_save_LIBS=$LIBS
14411LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014413/* end confdefs.h. */
14414
14415/* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14418#ifdef __cplusplus
14419extern "C"
14420#endif
14421char TIFFIsByteSwapped ();
14422int
14423main ()
14424{
14425return TIFFIsByteSwapped ();
14426 ;
14427 return 0;
14428}
14429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014431 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
14432else
cristy8b350f62009-11-15 23:12:43 +000014433 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000014434fi
cristy8b350f62009-11-15 23:12:43 +000014435rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014437LIBS=$ac_check_lib_save_LIBS
14438fi
cristy8b350f62009-11-15 23:12:43 +000014439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000014440$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014441if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014442 passed=`expr $passed + 1`
14443else
14444 failed=`expr $failed + 1`
14445fi
14446
cristy8b350f62009-11-15 23:12:43 +000014447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000014448$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014449if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014450 $as_echo_n "(cached) " >&6
14451else
14452 ac_check_lib_save_LIBS=$LIBS
14453LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014455/* end confdefs.h. */
14456
14457/* Override any GCC internal prototype to avoid an error.
14458 Use char because int might match the return type of a GCC
14459 builtin and then its argument prototype would still apply. */
14460#ifdef __cplusplus
14461extern "C"
14462#endif
14463char TIFFReadRGBATile ();
14464int
14465main ()
14466{
14467return TIFFReadRGBATile ();
14468 ;
14469 return 0;
14470}
14471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014472if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014473 ac_cv_lib_tiff_TIFFReadRGBATile=yes
14474else
cristy8b350f62009-11-15 23:12:43 +000014475 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000014476fi
cristy8b350f62009-11-15 23:12:43 +000014477rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014479LIBS=$ac_check_lib_save_LIBS
14480fi
cristy8b350f62009-11-15 23:12:43 +000014481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000014482$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014483if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014484 passed=`expr $passed + 1`
14485else
14486 failed=`expr $failed + 1`
14487fi
14488
cristy8b350f62009-11-15 23:12:43 +000014489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000014490$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014491if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014492 $as_echo_n "(cached) " >&6
14493else
14494 ac_check_lib_save_LIBS=$LIBS
14495LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014497/* end confdefs.h. */
14498
14499/* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14502#ifdef __cplusplus
14503extern "C"
14504#endif
14505char TIFFReadRGBAStrip ();
14506int
14507main ()
14508{
14509return TIFFReadRGBAStrip ();
14510 ;
14511 return 0;
14512}
14513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014515 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
14516else
cristy8b350f62009-11-15 23:12:43 +000014517 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000014518fi
cristy8b350f62009-11-15 23:12:43 +000014519rm -f core conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014521LIBS=$ac_check_lib_save_LIBS
14522fi
cristy8b350f62009-11-15 23:12:43 +000014523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000014524$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014525if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014526 passed=`expr $passed + 1`
14527else
14528 failed=`expr $failed + 1`
14529fi
14530
cristy8b350f62009-11-15 23:12:43 +000014531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000014532$as_echo_n "checking if TIFF package is complete... " >&6; }
14533 if test $passed -gt 0; then
14534 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000014535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000014536$as_echo "no -- some components failed test" >&6; }
14537 have_tiff='no (failed tests)'
14538 else
14539 TIFF_LIBS='-ltiff'
14540 LIBS="$TIFF_LIBS $LIBS"
14541
cristy8b350f62009-11-15 23:12:43 +000014542$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014543
cristy8b350f62009-11-15 23:12:43 +000014544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014545$as_echo "yes" >&6; }
14546 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000014547 for ac_header in tiffconf.h
14548do :
14549 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
14550if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014551 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014552#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000014553_ACEOF
14554
14555fi
14556
14557done
14558
cristy8b350f62009-11-15 23:12:43 +000014559 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000014560 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
14561 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000014562do :
14563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14564ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyf6fcb5d2010-09-24 01:19:13 +000014565eval as_val=\$$as_ac_var
14566 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014567 cat >>confdefs.h <<_ACEOF
14568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14569_ACEOF
14570
14571fi
14572done
14573
14574 fi
14575 else
cristy8b350f62009-11-15 23:12:43 +000014576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014577$as_echo "no" >&6; }
14578 fi
14579fi
nicolas6237c462010-10-05 06:11:49 +000014580AM_CONDITIONAL(TIFF_DELEGATE, test "$have_tiff" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014581
14582
14583
14584#
14585# Set Windows font directory.
14586#
14587
14588# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000014589if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014590 withval=$with_windows_font_dir; with_windows_font_dir=$withval
14591else
14592 with_windows_font_dir=''
14593fi
14594
14595if test "$with_windows_font_dir" != '' ; then
14596 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
14597fi
14598
14599
14600#
14601# Check for WMF delegate library.
14602#
14603
14604# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000014605if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014606 withval=$with_wmf; with_wmf=$withval
14607else
cristy8d63d1d2010-01-06 20:38:37 +000014608 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000014609fi
14610
14611
14612if test "$with_wmf" != 'yes'; then
14613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
14614fi
14615
14616have_wmf='no'
14617WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000014618if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000014619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014620$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000014622$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014624$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000014625 failed=0
14626 passed=0
14627 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
14628if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
14629 passed=`expr $passed + 1`
14630else
14631 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000014632fi
14633
14634
cristy735e8942010-04-02 20:32:57 +000014635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
14636$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
14637if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014638 $as_echo_n "(cached) " >&6
14639else
14640 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000014641LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014643/* end confdefs.h. */
14644
14645/* Override any GCC internal prototype to avoid an error.
14646 Use char because int might match the return type of a GCC
14647 builtin and then its argument prototype would still apply. */
14648#ifdef __cplusplus
14649extern "C"
14650#endif
cristy735e8942010-04-02 20:32:57 +000014651char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000014652int
14653main ()
14654{
cristy735e8942010-04-02 20:32:57 +000014655return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000014656 ;
14657 return 0;
14658}
14659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014660if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000014661 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000014662else
cristy735e8942010-04-02 20:32:57 +000014663 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000014664fi
cristy8b350f62009-11-15 23:12:43 +000014665rm -f core conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014667LIBS=$ac_check_lib_save_LIBS
14668fi
cristy735e8942010-04-02 20:32:57 +000014669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
14670$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
14671if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
14672 passed=`expr $passed + 1`
14673else
14674 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000014675fi
14676
cristy735e8942010-04-02 20:32:57 +000014677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
14678$as_echo_n "checking if WMF package is complete... " >&6; }
14679 if test $passed -gt 0; then
14680 if test $failed -gt 0; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
14682$as_echo "no -- some components failed test" >&6; }
14683 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000014684 else
cristy735e8942010-04-02 20:32:57 +000014685 WMF_LIBS='-lwmf -lwmflite'
14686 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000014687
cristy8b350f62009-11-15 23:12:43 +000014688$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014689
cristy735e8942010-04-02 20:32:57 +000014690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014691$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000014692 have_wmf='yes'
14693 fi
cristy3ed852e2009-09-05 21:47:34 +000014694 else
cristy8b350f62009-11-15 23:12:43 +000014695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014696$as_echo "no" >&6; }
14697 fi
14698fi
nicolas6237c462010-10-05 06:11:49 +000014699AM_CONDITIONAL(WMF_DELEGATE,test "$have_wmf" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014700
14701
14702
14703
cristy735e8942010-04-02 20:32:57 +000014704
cristy3ed852e2009-09-05 21:47:34 +000014705#
14706# Check for XML delegate library.
14707#
14708
14709# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000014710if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014711 withval=$with_xml; with_xml=$withval
14712else
14713 with_xml=$have_x
14714fi
14715
14716
14717if test "$with_xml" != 'yes' ; then
14718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
14719fi
14720
14721have_xml='no'
14722XML_LIBS=''
14723if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000014724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000014725$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000014727$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000014729$as_echo "" >&6; }
14730 PERSIST_LDFLAGS=$LDFLAGS
14731 PERSIST_CPPFLAGS=$CPPFLAGS
14732 xml2_config=''
14733 for ac_prog in xml2-config
14734do
14735 # Extract the first word of "$ac_prog", so it can be a program name with args.
14736set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000014737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000014738$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014739if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014740 $as_echo_n "(cached) " >&6
14741else
14742 if test -n "$xml2_config"; then
14743 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
14744else
14745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746for as_dir in $PATH
14747do
14748 IFS=$as_save_IFS
14749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000014750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000014751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14752 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000014753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000014754 break 2
14755 fi
14756done
cristy8b350f62009-11-15 23:12:43 +000014757 done
cristy3ed852e2009-09-05 21:47:34 +000014758IFS=$as_save_IFS
14759
14760fi
14761fi
14762xml2_config=$ac_cv_prog_xml2_config
14763if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000014764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000014765$as_echo "$xml2_config" >&6; }
14766else
cristy8b350f62009-11-15 23:12:43 +000014767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014768$as_echo "no" >&6; }
14769fi
14770
14771
14772 test -n "$xml2_config" && break
14773done
14774 if test -n "$xml2_config"; then
14775 # Debian installs libxml headers under /usr/include/libxml2/libxml with
14776 # the shared library installed under /usr/lib, whereas the package
14777 # installs itself under $prefix/libxml and $prefix/lib.
14778 xml2_prefix=`xml2-config --prefix`
14779 if test -d "${xml2_prefix}/include/libxml2"; then
14780 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
14781 fi
14782 if test "${xml2_prefix}" != '/usr'; then
14783 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
14784 fi
14785 fi
14786 failed=0
14787 passed=0
cristy8b350f62009-11-15 23:12:43 +000014788 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
14789if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014790 passed=`expr $passed + 1`
14791else
14792 failed=`expr $failed + 1`
14793fi
14794
14795
cristy8b350f62009-11-15 23:12:43 +000014796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000014797$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014798if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014799 $as_echo_n "(cached) " >&6
14800else
14801 ac_check_lib_save_LIBS=$LIBS
14802LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014804/* end confdefs.h. */
14805
14806/* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809#ifdef __cplusplus
14810extern "C"
14811#endif
14812char xmlParseExternalEntity ();
14813int
14814main ()
14815{
14816return xmlParseExternalEntity ();
14817 ;
14818 return 0;
14819}
14820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014822 ac_cv_lib_xml2_xmlParseExternalEntity=yes
14823else
cristy8b350f62009-11-15 23:12:43 +000014824 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000014825fi
cristy8b350f62009-11-15 23:12:43 +000014826rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014828LIBS=$ac_check_lib_save_LIBS
14829fi
cristy8b350f62009-11-15 23:12:43 +000014830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000014831$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014832if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014833 passed=`expr $passed + 1`
14834else
14835 failed=`expr $failed + 1`
14836fi
14837
cristy8b350f62009-11-15 23:12:43 +000014838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000014839$as_echo_n "checking if XML package is complete... " >&6; }
14840 if test $passed -gt 0; then
14841 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000014842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000014843$as_echo "no -- some components failed test" >&6; }
14844 have_xml='no (failed tests)'
14845 LDFLAGS="$PERSIST_LDFLAGS"
14846 CPPFLAGS="$PERSIST_CPPFLAGS"
14847 else
14848 XML_LIBS='-lxml2'
14849 LIBS="$XML_LIBS $LIBS"
14850
cristy8b350f62009-11-15 23:12:43 +000014851$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000014852
cristy8b350f62009-11-15 23:12:43 +000014853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014854$as_echo "yes" >&6; }
14855 have_xml='yes'
14856 fi
14857 else
cristy8b350f62009-11-15 23:12:43 +000014858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014859$as_echo "no" >&6; }
14860 fi
14861fi
nicolas6237c462010-10-05 06:11:49 +000014862AM_CONDITIONAL(XML_DELEGATE,test "$have_xml" = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000014863
14864
14865
14866# Substitute compiler name to build/link PerlMagick
14867#
14868
14869
14870#
14871# Configure install Paths
14872#
14873
14874# Subdirectory under lib to place ImageMagick lib files
14875LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
14876
14877cat >>confdefs.h <<_ACEOF
14878#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
14879_ACEOF
14880
14881
14882# Path to ImageMagick bin directory
14883EXECUTABLE_PATH="${BIN_DIR}"
14884DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
14885case "${build_os}" in
14886 mingw* )
14887 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
14888 ;;
14889esac
14890
14891cat >>confdefs.h <<_ACEOF
14892#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
14893_ACEOF
14894
14895
14896
14897# Path to ImageMagick lib
14898LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
14899DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
14900case "${build_os}" in
14901 mingw* )
14902 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
14903 ;;
14904esac
14905
14906cat >>confdefs.h <<_ACEOF
14907#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
14908_ACEOF
14909
14910
14911
14912# Subdirectory under lib to place ImageMagick configuration files
14913CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
14914
14915cat >>confdefs.h <<_ACEOF
14916#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
14917_ACEOF
14918
14919CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
14920DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
14921case "${build_os}" in
14922 mingw* )
14923 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
14924 ;;
14925esac
14926
14927cat >>confdefs.h <<_ACEOF
14928#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
14929_ACEOF
14930
14931
14932
14933#
14934# Subdirectory under lib to place ImageMagick coder module files
14935CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
14936
14937cat >>confdefs.h <<_ACEOF
14938#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
14939_ACEOF
14940
14941CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
14942DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
14943case "${build_os}" in
14944 mingw* )
14945 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
14946 ;;
14947esac
14948
14949cat >>confdefs.h <<_ACEOF
14950#define CODER_PATH "$DEFINE_CODER_PATH"
14951_ACEOF
14952
14953
14954
14955#
14956# Subdirectory under lib to place ImageMagick filter module files
14957FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
14958
14959cat >>confdefs.h <<_ACEOF
14960#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
14961_ACEOF
14962
14963FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
14964DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
14965case "${build_os}" in
14966 mingw* )
14967 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
14968 ;;
14969esac
14970
14971cat >>confdefs.h <<_ACEOF
14972#define FILTER_PATH "$DEFINE_FILTER_PATH"
14973_ACEOF
14974
14975
14976
14977#
14978# Path to ImageMagick documentation files
14979DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
14980DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
14981DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
14982case "${build_os}" in
14983 mingw* )
14984 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
14985 ;;
14986esac
14987
14988cat >>confdefs.h <<_ACEOF
14989#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
14990_ACEOF
14991
14992
14993
14994#
14995# Path to ImageMagick share files
14996SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
14997SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
14998DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
14999case "${build_os}" in
15000 mingw* )
15001 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
15002 ;;
15003esac
15004
15005cat >>confdefs.h <<_ACEOF
15006#define SHARE_PATH "$DEFINE_SHARE_PATH"
15007_ACEOF
15008
15009
15010
15011# Subdirectory under share to place ImageMagick configuration files
15012SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
15013
15014cat >>confdefs.h <<_ACEOF
15015#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
15016_ACEOF
15017
15018SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
15019DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
15020case "${build_os}" in
15021 mingw* )
15022 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
15023 ;;
15024esac
15025
15026cat >>confdefs.h <<_ACEOF
15027#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
15028_ACEOF
15029
15030
15031
15032#
15033# program_transform_name is formed for use in a Makefile, so create a
15034# modified version for use in a shell script.
15035configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
15036
15037# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000015038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000015039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015041$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000015043$as_echo "" >&6; }
15044AutotraceDecodeDelegateDefault='autotrace'
15045AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000015046BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000015047BZIPDelegateDefault='bzip2'
15048BrowseDelegateDefault='xdg-open'
15049CGMDecodeDelegateDefault='ralcgm'
15050CatDelegateDefault='cat'
15051DNGDecodeDelegateDefault='ufraw-batch'
15052GVCDecodeDelegateDefault='dot'
15053DVIDecodeDelegateDefault='dvips'
15054EchoDelegateDefault='echo'
15055EditorDelegateDefault='xterm'
15056FIGDecodeDelegateDefault='fig2dev'
15057ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
15058DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
15059MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
15060GnuplotDecodeDelegateDefault='gnuplot'
15061HDRDecodeDelegateDefault='ra_pfm'
15062HPGLDecodeDelegateDefault='hp2xx'
15063HTMLDecodeDelegateDefault='html2ps'
15064ILBMDecodeDelegateDefault='ilbmtoppm'
15065ILBMEncodeDelegateDefault='ppmtoilbm'
15066LPDelegateDefault='lp'
15067LPRDelegateDefault='lpr'
15068LZWDecodeDelegateDefault='uncompress'
15069LZWEncodeDelegateDefault='compress'
15070LaunchDelegateDefault='gimp'
15071MANDelegateDefault='groff'
15072MPEGDecodeDelegateDefault='ffmpeg'
15073MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000015074MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000015075MVDelegateDefault='mv'
15076PCLDelegateDefault='pcl6'
15077PGPDecodeDelegateDefault='pgpv'
15078POVDelegateDefault='povray'
15079if test "$native_win32_build" = 'yes'; then
15080 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000015081elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000015082 PSDelegateDefault='gsc'
15083else
15084 PSDelegateDefault='gs'
15085fi
15086RLEEncodeDelegateDefault='rawtorle'
15087RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000015088RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000015089SCANDecodeDelegateDefault='scanimage'
15090TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000015091UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000015092WMFDecodeDelegateDefault='wmf2eps'
15093WWWDecodeDelegateDefault='curl'
15094XPSDelegateDefault='gxps'
15095ZipDelegateDefault='gzip'
15096
15097# Search for delegates
15098# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
15099set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015101$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015102if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015103 $as_echo_n "(cached) " >&6
15104else
15105 case $AutotraceDecodeDelegate in
15106 [\\/]* | ?:[\\/]*)
15107 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
15108 ;;
15109 *)
15110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111for as_dir in $PATH
15112do
15113 IFS=$as_save_IFS
15114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15117 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015119 break 2
15120 fi
15121done
cristy8b350f62009-11-15 23:12:43 +000015122 done
cristy3ed852e2009-09-05 21:47:34 +000015123IFS=$as_save_IFS
15124
15125 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
15126 ;;
15127esac
15128fi
15129AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
15130if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015132$as_echo "$AutotraceDecodeDelegate" >&6; }
15133else
cristy8b350f62009-11-15 23:12:43 +000015134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015135$as_echo "no" >&6; }
15136fi
15137
15138
15139# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
15140set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015142$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015143if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015144 $as_echo_n "(cached) " >&6
15145else
15146 case $AVIDecodeDelegate in
15147 [\\/]* | ?:[\\/]*)
15148 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
15149 ;;
15150 *)
15151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152for as_dir in $PATH
15153do
15154 IFS=$as_save_IFS
15155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15158 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015160 break 2
15161 fi
15162done
cristy8b350f62009-11-15 23:12:43 +000015163 done
cristy3ed852e2009-09-05 21:47:34 +000015164IFS=$as_save_IFS
15165
15166 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
15167 ;;
15168esac
15169fi
15170AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
15171if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015173$as_echo "$AVIDecodeDelegate" >&6; }
15174else
cristy8b350f62009-11-15 23:12:43 +000015175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015176$as_echo "no" >&6; }
15177fi
15178
15179
15180# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
15181set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015184if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015185 $as_echo_n "(cached) " >&6
15186else
15187 case $BlenderDecodeDelegate in
15188 [\\/]* | ?:[\\/]*)
15189 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
15190 ;;
15191 *)
15192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15193for as_dir in $PATH
15194do
15195 IFS=$as_save_IFS
15196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15199 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015201 break 2
15202 fi
15203done
cristy8b350f62009-11-15 23:12:43 +000015204 done
cristy3ed852e2009-09-05 21:47:34 +000015205IFS=$as_save_IFS
15206
15207 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
15208 ;;
15209esac
15210fi
15211BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
15212if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015214$as_echo "$BlenderDecodeDelegate" >&6; }
15215else
cristy8b350f62009-11-15 23:12:43 +000015216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015217$as_echo "no" >&6; }
15218fi
15219
15220
15221# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
15222set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015224$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015225if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015226 $as_echo_n "(cached) " >&6
15227else
15228 case $BZIPDelegate in
15229 [\\/]* | ?:[\\/]*)
15230 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
15231 ;;
15232 *)
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234for as_dir in $PATH
15235do
15236 IFS=$as_save_IFS
15237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15240 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015242 break 2
15243 fi
15244done
cristy8b350f62009-11-15 23:12:43 +000015245 done
cristy3ed852e2009-09-05 21:47:34 +000015246IFS=$as_save_IFS
15247
15248 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
15249 ;;
15250esac
15251fi
15252BZIPDelegate=$ac_cv_path_BZIPDelegate
15253if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015255$as_echo "$BZIPDelegate" >&6; }
15256else
cristy8b350f62009-11-15 23:12:43 +000015257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015258$as_echo "no" >&6; }
15259fi
15260
15261
15262# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
15263set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015266if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015267 $as_echo_n "(cached) " >&6
15268else
15269 case $BrowseDelegate in
15270 [\\/]* | ?:[\\/]*)
15271 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
15272 ;;
15273 *)
15274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15275for as_dir in $PATH
15276do
15277 IFS=$as_save_IFS
15278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15281 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015283 break 2
15284 fi
15285done
cristy8b350f62009-11-15 23:12:43 +000015286 done
cristy3ed852e2009-09-05 21:47:34 +000015287IFS=$as_save_IFS
15288
15289 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
15290 ;;
15291esac
15292fi
15293BrowseDelegate=$ac_cv_path_BrowseDelegate
15294if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015296$as_echo "$BrowseDelegate" >&6; }
15297else
cristy8b350f62009-11-15 23:12:43 +000015298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015299$as_echo "no" >&6; }
15300fi
15301
15302
15303# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
15304set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015306$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015307if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015308 $as_echo_n "(cached) " >&6
15309else
15310 case $CGMDecodeDelegate in
15311 [\\/]* | ?:[\\/]*)
15312 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
15313 ;;
15314 *)
15315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15316for as_dir in $PATH
15317do
15318 IFS=$as_save_IFS
15319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15322 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015324 break 2
15325 fi
15326done
cristy8b350f62009-11-15 23:12:43 +000015327 done
cristy3ed852e2009-09-05 21:47:34 +000015328IFS=$as_save_IFS
15329
15330 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
15331 ;;
15332esac
15333fi
15334CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
15335if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015337$as_echo "$CGMDecodeDelegate" >&6; }
15338else
cristy8b350f62009-11-15 23:12:43 +000015339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015340$as_echo "no" >&6; }
15341fi
15342
15343
15344# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
15345set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015347$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015348if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015349 $as_echo_n "(cached) " >&6
15350else
15351 case $CatDelegate in
15352 [\\/]* | ?:[\\/]*)
15353 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
15354 ;;
15355 *)
15356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357for as_dir in $PATH
15358do
15359 IFS=$as_save_IFS
15360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15363 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015365 break 2
15366 fi
15367done
cristy8b350f62009-11-15 23:12:43 +000015368 done
cristy3ed852e2009-09-05 21:47:34 +000015369IFS=$as_save_IFS
15370
15371 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
15372 ;;
15373esac
15374fi
15375CatDelegate=$ac_cv_path_CatDelegate
15376if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015378$as_echo "$CatDelegate" >&6; }
15379else
cristy8b350f62009-11-15 23:12:43 +000015380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015381$as_echo "no" >&6; }
15382fi
15383
15384
15385# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
15386set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015389if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015390 $as_echo_n "(cached) " >&6
15391else
15392 case $DNGDecodeDelegate in
15393 [\\/]* | ?:[\\/]*)
15394 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
15395 ;;
15396 *)
15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398for as_dir in $PATH
15399do
15400 IFS=$as_save_IFS
15401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15404 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015406 break 2
15407 fi
15408done
cristy8b350f62009-11-15 23:12:43 +000015409 done
cristy3ed852e2009-09-05 21:47:34 +000015410IFS=$as_save_IFS
15411
15412 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
15413 ;;
15414esac
15415fi
15416DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
15417if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015419$as_echo "$DNGDecodeDelegate" >&6; }
15420else
cristy8b350f62009-11-15 23:12:43 +000015421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015422$as_echo "no" >&6; }
15423fi
15424
15425
15426# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
15427set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015429$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015430if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015431 $as_echo_n "(cached) " >&6
15432else
15433 case $GVCDecodeDelegate in
15434 [\\/]* | ?:[\\/]*)
15435 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
15436 ;;
15437 *)
15438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439for as_dir in $PATH
15440do
15441 IFS=$as_save_IFS
15442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15445 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015447 break 2
15448 fi
15449done
cristy8b350f62009-11-15 23:12:43 +000015450 done
cristy3ed852e2009-09-05 21:47:34 +000015451IFS=$as_save_IFS
15452
15453 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
15454 ;;
15455esac
15456fi
15457GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
15458if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015460$as_echo "$GVCDecodeDelegate" >&6; }
15461else
cristy8b350f62009-11-15 23:12:43 +000015462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015463$as_echo "no" >&6; }
15464fi
15465
15466
15467# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
15468set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015470$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015471if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015472 $as_echo_n "(cached) " >&6
15473else
15474 case $DVIDecodeDelegate in
15475 [\\/]* | ?:[\\/]*)
15476 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
15477 ;;
15478 *)
15479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15480for as_dir in $PATH
15481do
15482 IFS=$as_save_IFS
15483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15486 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015488 break 2
15489 fi
15490done
cristy8b350f62009-11-15 23:12:43 +000015491 done
cristy3ed852e2009-09-05 21:47:34 +000015492IFS=$as_save_IFS
15493
15494 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
15495 ;;
15496esac
15497fi
15498DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
15499if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015501$as_echo "$DVIDecodeDelegate" >&6; }
15502else
cristy8b350f62009-11-15 23:12:43 +000015503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015504$as_echo "no" >&6; }
15505fi
15506
15507
15508# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
15509set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015511$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015512if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015513 $as_echo_n "(cached) " >&6
15514else
15515 case $EchoDelegate in
15516 [\\/]* | ?:[\\/]*)
15517 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
15518 ;;
15519 *)
15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521for as_dir in $PATH
15522do
15523 IFS=$as_save_IFS
15524 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15527 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015529 break 2
15530 fi
15531done
cristy8b350f62009-11-15 23:12:43 +000015532 done
cristy3ed852e2009-09-05 21:47:34 +000015533IFS=$as_save_IFS
15534
15535 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
15536 ;;
15537esac
15538fi
15539EchoDelegate=$ac_cv_path_EchoDelegate
15540if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015542$as_echo "$EchoDelegate" >&6; }
15543else
cristy8b350f62009-11-15 23:12:43 +000015544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015545$as_echo "no" >&6; }
15546fi
15547
15548
15549# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
15550set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015552$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015553if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015554 $as_echo_n "(cached) " >&6
15555else
15556 case $EditorDelegate in
15557 [\\/]* | ?:[\\/]*)
15558 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
15559 ;;
15560 *)
15561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15562for as_dir in $PATH
15563do
15564 IFS=$as_save_IFS
15565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15568 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015570 break 2
15571 fi
15572done
cristy8b350f62009-11-15 23:12:43 +000015573 done
cristy3ed852e2009-09-05 21:47:34 +000015574IFS=$as_save_IFS
15575
15576 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
15577 ;;
15578esac
15579fi
15580EditorDelegate=$ac_cv_path_EditorDelegate
15581if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015583$as_echo "$EditorDelegate" >&6; }
15584else
cristy8b350f62009-11-15 23:12:43 +000015585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015586$as_echo "no" >&6; }
15587fi
15588
15589
15590# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
15591set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015593$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015594if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015595 $as_echo_n "(cached) " >&6
15596else
15597 case $FIGDecodeDelegate in
15598 [\\/]* | ?:[\\/]*)
15599 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
15600 ;;
15601 *)
15602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603for as_dir in $PATH
15604do
15605 IFS=$as_save_IFS
15606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15609 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015611 break 2
15612 fi
15613done
cristy8b350f62009-11-15 23:12:43 +000015614 done
cristy3ed852e2009-09-05 21:47:34 +000015615IFS=$as_save_IFS
15616
15617 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
15618 ;;
15619esac
15620fi
15621FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
15622if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015624$as_echo "$FIGDecodeDelegate" >&6; }
15625else
cristy8b350f62009-11-15 23:12:43 +000015626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015627$as_echo "no" >&6; }
15628fi
15629
15630
15631# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
15632set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015634$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015635if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015636 $as_echo_n "(cached) " >&6
15637else
15638 case $ConvertDelegate in
15639 [\\/]* | ?:[\\/]*)
15640 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
15641 ;;
15642 *)
15643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15644for as_dir in $PATH
15645do
15646 IFS=$as_save_IFS
15647 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15650 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015652 break 2
15653 fi
15654done
cristy8b350f62009-11-15 23:12:43 +000015655 done
cristy3ed852e2009-09-05 21:47:34 +000015656IFS=$as_save_IFS
15657
15658 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
15659 ;;
15660esac
15661fi
15662ConvertDelegate=$ac_cv_path_ConvertDelegate
15663if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015665$as_echo "$ConvertDelegate" >&6; }
15666else
cristy8b350f62009-11-15 23:12:43 +000015667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015668$as_echo "no" >&6; }
15669fi
15670
15671
15672# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
15673set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015675$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015676if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015677 $as_echo_n "(cached) " >&6
15678else
15679 case $DisplayDelegate in
15680 [\\/]* | ?:[\\/]*)
15681 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
15682 ;;
15683 *)
15684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15685for as_dir in $PATH
15686do
15687 IFS=$as_save_IFS
15688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15691 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015693 break 2
15694 fi
15695done
cristy8b350f62009-11-15 23:12:43 +000015696 done
cristy3ed852e2009-09-05 21:47:34 +000015697IFS=$as_save_IFS
15698
15699 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
15700 ;;
15701esac
15702fi
15703DisplayDelegate=$ac_cv_path_DisplayDelegate
15704if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015706$as_echo "$DisplayDelegate" >&6; }
15707else
cristy8b350f62009-11-15 23:12:43 +000015708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015709$as_echo "no" >&6; }
15710fi
15711
15712
15713# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
15714set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015716$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015717if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015718 $as_echo_n "(cached) " >&6
15719else
15720 case $MogrifyDelegate in
15721 [\\/]* | ?:[\\/]*)
15722 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
15723 ;;
15724 *)
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726for as_dir in $PATH
15727do
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15732 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015734 break 2
15735 fi
15736done
cristy8b350f62009-11-15 23:12:43 +000015737 done
cristy3ed852e2009-09-05 21:47:34 +000015738IFS=$as_save_IFS
15739
15740 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
15741 ;;
15742esac
15743fi
15744MogrifyDelegate=$ac_cv_path_MogrifyDelegate
15745if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015747$as_echo "$MogrifyDelegate" >&6; }
15748else
cristy8b350f62009-11-15 23:12:43 +000015749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015750$as_echo "no" >&6; }
15751fi
15752
15753
15754# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
15755set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015757$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015758if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015759 $as_echo_n "(cached) " >&6
15760else
15761 case $GnuplotDecodeDelegate in
15762 [\\/]* | ?:[\\/]*)
15763 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
15764 ;;
15765 *)
15766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767for as_dir in $PATH
15768do
15769 IFS=$as_save_IFS
15770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15773 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015775 break 2
15776 fi
15777done
cristy8b350f62009-11-15 23:12:43 +000015778 done
cristy3ed852e2009-09-05 21:47:34 +000015779IFS=$as_save_IFS
15780
15781 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
15782 ;;
15783esac
15784fi
15785GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
15786if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015788$as_echo "$GnuplotDecodeDelegate" >&6; }
15789else
cristy8b350f62009-11-15 23:12:43 +000015790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015791$as_echo "no" >&6; }
15792fi
15793
15794
15795# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
15796set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015799if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015800 $as_echo_n "(cached) " >&6
15801else
15802 case $HDRDecodeDelegate in
15803 [\\/]* | ?:[\\/]*)
15804 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
15805 ;;
15806 *)
15807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15808for as_dir in $PATH
15809do
15810 IFS=$as_save_IFS
15811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15814 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015816 break 2
15817 fi
15818done
cristy8b350f62009-11-15 23:12:43 +000015819 done
cristy3ed852e2009-09-05 21:47:34 +000015820IFS=$as_save_IFS
15821
15822 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
15823 ;;
15824esac
15825fi
15826HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
15827if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015829$as_echo "$HDRDecodeDelegate" >&6; }
15830else
cristy8b350f62009-11-15 23:12:43 +000015831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015832$as_echo "no" >&6; }
15833fi
15834
15835
15836# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
15837set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015839$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015840if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015841 $as_echo_n "(cached) " >&6
15842else
15843 case $HPGLDecodeDelegate in
15844 [\\/]* | ?:[\\/]*)
15845 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
15846 ;;
15847 *)
15848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15849for as_dir in $PATH
15850do
15851 IFS=$as_save_IFS
15852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15855 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015857 break 2
15858 fi
15859done
cristy8b350f62009-11-15 23:12:43 +000015860 done
cristy3ed852e2009-09-05 21:47:34 +000015861IFS=$as_save_IFS
15862
15863 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
15864 ;;
15865esac
15866fi
15867HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
15868if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015870$as_echo "$HPGLDecodeDelegate" >&6; }
15871else
cristy8b350f62009-11-15 23:12:43 +000015872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015873$as_echo "no" >&6; }
15874fi
15875
15876
15877# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
15878set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015880$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015881if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015882 $as_echo_n "(cached) " >&6
15883else
15884 case $HTMLDecodeDelegate in
15885 [\\/]* | ?:[\\/]*)
15886 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
15887 ;;
15888 *)
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890for as_dir in $PATH
15891do
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15896 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015898 break 2
15899 fi
15900done
cristy8b350f62009-11-15 23:12:43 +000015901 done
cristy3ed852e2009-09-05 21:47:34 +000015902IFS=$as_save_IFS
15903
15904 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
15905 ;;
15906esac
15907fi
15908HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
15909if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015911$as_echo "$HTMLDecodeDelegate" >&6; }
15912else
cristy8b350f62009-11-15 23:12:43 +000015913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015914$as_echo "no" >&6; }
15915fi
15916
15917
15918# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
15919set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015921$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015922if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015923 $as_echo_n "(cached) " >&6
15924else
15925 case $ILBMDecodeDelegate in
15926 [\\/]* | ?:[\\/]*)
15927 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
15928 ;;
15929 *)
15930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931for as_dir in $PATH
15932do
15933 IFS=$as_save_IFS
15934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15937 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015939 break 2
15940 fi
15941done
cristy8b350f62009-11-15 23:12:43 +000015942 done
cristy3ed852e2009-09-05 21:47:34 +000015943IFS=$as_save_IFS
15944
15945 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
15946 ;;
15947esac
15948fi
15949ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
15950if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015952$as_echo "$ILBMDecodeDelegate" >&6; }
15953else
cristy8b350f62009-11-15 23:12:43 +000015954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015955$as_echo "no" >&6; }
15956fi
15957
15958
15959# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
15960set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000015961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000015962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015963if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015964 $as_echo_n "(cached) " >&6
15965else
15966 case $ILBMEncodeDelegate in
15967 [\\/]* | ?:[\\/]*)
15968 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
15969 ;;
15970 *)
15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972for as_dir in $PATH
15973do
15974 IFS=$as_save_IFS
15975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000015976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000015977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15978 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000015979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000015980 break 2
15981 fi
15982done
cristy8b350f62009-11-15 23:12:43 +000015983 done
cristy3ed852e2009-09-05 21:47:34 +000015984IFS=$as_save_IFS
15985
15986 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
15987 ;;
15988esac
15989fi
15990ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
15991if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000015992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000015993$as_echo "$ILBMEncodeDelegate" >&6; }
15994else
cristy8b350f62009-11-15 23:12:43 +000015995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015996$as_echo "no" >&6; }
15997fi
15998
15999
16000# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
16001set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016003$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016004if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016005 $as_echo_n "(cached) " >&6
16006else
16007 case $LPDelegate in
16008 [\\/]* | ?:[\\/]*)
16009 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
16010 ;;
16011 *)
16012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013for as_dir in $PATH
16014do
16015 IFS=$as_save_IFS
16016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16019 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016021 break 2
16022 fi
16023done
cristy8b350f62009-11-15 23:12:43 +000016024 done
cristy3ed852e2009-09-05 21:47:34 +000016025IFS=$as_save_IFS
16026
16027 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
16028 ;;
16029esac
16030fi
16031LPDelegate=$ac_cv_path_LPDelegate
16032if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016034$as_echo "$LPDelegate" >&6; }
16035else
cristy8b350f62009-11-15 23:12:43 +000016036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016037$as_echo "no" >&6; }
16038fi
16039
16040
16041# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
16042set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016044$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016045if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016046 $as_echo_n "(cached) " >&6
16047else
16048 case $LPRDelegate in
16049 [\\/]* | ?:[\\/]*)
16050 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
16051 ;;
16052 *)
16053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16054for as_dir in $PATH
16055do
16056 IFS=$as_save_IFS
16057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16060 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016062 break 2
16063 fi
16064done
cristy8b350f62009-11-15 23:12:43 +000016065 done
cristy3ed852e2009-09-05 21:47:34 +000016066IFS=$as_save_IFS
16067
16068 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
16069 ;;
16070esac
16071fi
16072LPRDelegate=$ac_cv_path_LPRDelegate
16073if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016075$as_echo "$LPRDelegate" >&6; }
16076else
cristy8b350f62009-11-15 23:12:43 +000016077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016078$as_echo "no" >&6; }
16079fi
16080
16081
16082# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
16083set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016085$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016086if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016087 $as_echo_n "(cached) " >&6
16088else
16089 case $LZWDecodeDelegate in
16090 [\\/]* | ?:[\\/]*)
16091 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
16092 ;;
16093 *)
16094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16095for as_dir in $PATH
16096do
16097 IFS=$as_save_IFS
16098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16101 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016103 break 2
16104 fi
16105done
cristy8b350f62009-11-15 23:12:43 +000016106 done
cristy3ed852e2009-09-05 21:47:34 +000016107IFS=$as_save_IFS
16108
16109 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
16110 ;;
16111esac
16112fi
16113LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
16114if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016116$as_echo "$LZWDecodeDelegate" >&6; }
16117else
cristy8b350f62009-11-15 23:12:43 +000016118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016119$as_echo "no" >&6; }
16120fi
16121
16122
16123# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
16124set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016126$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016127if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016128 $as_echo_n "(cached) " >&6
16129else
16130 case $LZWEncodeDelegate in
16131 [\\/]* | ?:[\\/]*)
16132 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
16133 ;;
16134 *)
16135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136for as_dir in $PATH
16137do
16138 IFS=$as_save_IFS
16139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16142 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016144 break 2
16145 fi
16146done
cristy8b350f62009-11-15 23:12:43 +000016147 done
cristy3ed852e2009-09-05 21:47:34 +000016148IFS=$as_save_IFS
16149
16150 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
16151 ;;
16152esac
16153fi
16154LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
16155if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016157$as_echo "$LZWEncodeDelegate" >&6; }
16158else
cristy8b350f62009-11-15 23:12:43 +000016159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016160$as_echo "no" >&6; }
16161fi
16162
16163
16164# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
16165set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016168if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016169 $as_echo_n "(cached) " >&6
16170else
16171 case $LaunchDelegate in
16172 [\\/]* | ?:[\\/]*)
16173 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
16174 ;;
16175 *)
16176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16177for as_dir in $PATH
16178do
16179 IFS=$as_save_IFS
16180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16183 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016185 break 2
16186 fi
16187done
cristy8b350f62009-11-15 23:12:43 +000016188 done
cristy3ed852e2009-09-05 21:47:34 +000016189IFS=$as_save_IFS
16190
16191 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
16192 ;;
16193esac
16194fi
16195LaunchDelegate=$ac_cv_path_LaunchDelegate
16196if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016198$as_echo "$LaunchDelegate" >&6; }
16199else
cristy8b350f62009-11-15 23:12:43 +000016200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016201$as_echo "no" >&6; }
16202fi
16203
16204
16205# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
16206set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016208$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016209if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016210 $as_echo_n "(cached) " >&6
16211else
16212 case $MANDelegate in
16213 [\\/]* | ?:[\\/]*)
16214 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
16215 ;;
16216 *)
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218for as_dir in $PATH
16219do
16220 IFS=$as_save_IFS
16221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16224 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016226 break 2
16227 fi
16228done
cristy8b350f62009-11-15 23:12:43 +000016229 done
cristy3ed852e2009-09-05 21:47:34 +000016230IFS=$as_save_IFS
16231
16232 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
16233 ;;
16234esac
16235fi
16236MANDelegate=$ac_cv_path_MANDelegate
16237if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016239$as_echo "$MANDelegate" >&6; }
16240else
cristy8b350f62009-11-15 23:12:43 +000016241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016242$as_echo "no" >&6; }
16243fi
16244
16245
16246# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
16247set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016249$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016250if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016251 $as_echo_n "(cached) " >&6
16252else
16253 case $MPEGDecodeDelegate in
16254 [\\/]* | ?:[\\/]*)
16255 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
16256 ;;
16257 *)
16258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16259for as_dir in $PATH
16260do
16261 IFS=$as_save_IFS
16262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16265 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016267 break 2
16268 fi
16269done
cristy8b350f62009-11-15 23:12:43 +000016270 done
cristy3ed852e2009-09-05 21:47:34 +000016271IFS=$as_save_IFS
16272
16273 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
16274 ;;
16275esac
16276fi
16277MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
16278if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016280$as_echo "$MPEGDecodeDelegate" >&6; }
16281else
cristy8b350f62009-11-15 23:12:43 +000016282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016283$as_echo "no" >&6; }
16284fi
16285
16286
16287# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
16288set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016291if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016292 $as_echo_n "(cached) " >&6
16293else
16294 case $MPEGEncodeDelegate in
16295 [\\/]* | ?:[\\/]*)
16296 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
16297 ;;
16298 *)
16299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300for as_dir in $PATH
16301do
16302 IFS=$as_save_IFS
16303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16306 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016308 break 2
16309 fi
16310done
cristy8b350f62009-11-15 23:12:43 +000016311 done
cristy3ed852e2009-09-05 21:47:34 +000016312IFS=$as_save_IFS
16313
16314 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
16315 ;;
16316esac
16317fi
16318MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
16319if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016321$as_echo "$MPEGEncodeDelegate" >&6; }
16322else
cristy8b350f62009-11-15 23:12:43 +000016323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016324$as_echo "no" >&6; }
16325fi
16326
16327
cristy935c86e2010-06-05 23:50:07 +000016328# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
16329set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16331$as_echo_n "checking for $ac_word... " >&6; }
16332if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
16333 $as_echo_n "(cached) " >&6
16334else
16335 case $MrSIDDecodeDelegate in
16336 [\\/]* | ?:[\\/]*)
16337 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
16338 ;;
16339 *)
16340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341for as_dir in $PATH
16342do
16343 IFS=$as_save_IFS
16344 test -z "$as_dir" && as_dir=.
16345 for ac_exec_ext in '' $ac_executable_extensions; do
16346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16347 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
16348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16349 break 2
16350 fi
16351done
16352 done
16353IFS=$as_save_IFS
16354
16355 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
16356 ;;
16357esac
16358fi
16359MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
16360if test -n "$MrSIDDecodeDelegate"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
16362$as_echo "$MrSIDDecodeDelegate" >&6; }
16363else
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365$as_echo "no" >&6; }
16366fi
16367
16368
cristy3ed852e2009-09-05 21:47:34 +000016369# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
16370set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016372$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016373if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016374 $as_echo_n "(cached) " >&6
16375else
16376 case $MVDelegate in
16377 [\\/]* | ?:[\\/]*)
16378 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
16379 ;;
16380 *)
16381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382for as_dir in $PATH
16383do
16384 IFS=$as_save_IFS
16385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16388 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016390 break 2
16391 fi
16392done
cristy8b350f62009-11-15 23:12:43 +000016393 done
cristy3ed852e2009-09-05 21:47:34 +000016394IFS=$as_save_IFS
16395
16396 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
16397 ;;
16398esac
16399fi
16400MVDelegate=$ac_cv_path_MVDelegate
16401if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016403$as_echo "$MVDelegate" >&6; }
16404else
cristy8b350f62009-11-15 23:12:43 +000016405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016406$as_echo "no" >&6; }
16407fi
16408
16409
16410# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
16411set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016413$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016414if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016415 $as_echo_n "(cached) " >&6
16416else
16417 case $PCLDelegate in
16418 [\\/]* | ?:[\\/]*)
16419 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
16420 ;;
16421 *)
16422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16423for as_dir in $PATH
16424do
16425 IFS=$as_save_IFS
16426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16429 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016431 break 2
16432 fi
16433done
cristy8b350f62009-11-15 23:12:43 +000016434 done
cristy3ed852e2009-09-05 21:47:34 +000016435IFS=$as_save_IFS
16436
16437 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
16438 ;;
16439esac
16440fi
16441PCLDelegate=$ac_cv_path_PCLDelegate
16442if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016444$as_echo "$PCLDelegate" >&6; }
16445else
cristy8b350f62009-11-15 23:12:43 +000016446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016447$as_echo "no" >&6; }
16448fi
16449
16450
16451# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
16452set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016454$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016455if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016456 $as_echo_n "(cached) " >&6
16457else
16458 case $PGPDecodeDelegate in
16459 [\\/]* | ?:[\\/]*)
16460 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
16461 ;;
16462 *)
16463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464for as_dir in $PATH
16465do
16466 IFS=$as_save_IFS
16467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16470 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016472 break 2
16473 fi
16474done
cristy8b350f62009-11-15 23:12:43 +000016475 done
cristy3ed852e2009-09-05 21:47:34 +000016476IFS=$as_save_IFS
16477
16478 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
16479 ;;
16480esac
16481fi
16482PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
16483if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016485$as_echo "$PGPDecodeDelegate" >&6; }
16486else
cristy8b350f62009-11-15 23:12:43 +000016487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016488$as_echo "no" >&6; }
16489fi
16490
16491
16492# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
16493set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016495$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016496if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016497 $as_echo_n "(cached) " >&6
16498else
16499 case $POVDelegate in
16500 [\\/]* | ?:[\\/]*)
16501 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
16502 ;;
16503 *)
16504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16505for as_dir in $PATH
16506do
16507 IFS=$as_save_IFS
16508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16511 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016513 break 2
16514 fi
16515done
cristy8b350f62009-11-15 23:12:43 +000016516 done
cristy3ed852e2009-09-05 21:47:34 +000016517IFS=$as_save_IFS
16518
16519 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
16520 ;;
16521esac
16522fi
16523POVDelegate=$ac_cv_path_POVDelegate
16524if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016526$as_echo "$POVDelegate" >&6; }
16527else
cristy8b350f62009-11-15 23:12:43 +000016528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016529$as_echo "no" >&6; }
16530fi
16531
16532
16533for ac_prog in gsx gsc "$PSDelegateDefault"
16534do
16535 # Extract the first word of "$ac_prog", so it can be a program name with args.
16536set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016538$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016539if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016540 $as_echo_n "(cached) " >&6
16541else
16542 case $PSDelegate in
16543 [\\/]* | ?:[\\/]*)
16544 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
16545 ;;
16546 *)
16547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16548for as_dir in $PATH
16549do
16550 IFS=$as_save_IFS
16551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16554 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016556 break 2
16557 fi
16558done
cristy8b350f62009-11-15 23:12:43 +000016559 done
cristy3ed852e2009-09-05 21:47:34 +000016560IFS=$as_save_IFS
16561
16562 ;;
16563esac
16564fi
16565PSDelegate=$ac_cv_path_PSDelegate
16566if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016568$as_echo "$PSDelegate" >&6; }
16569else
cristy8b350f62009-11-15 23:12:43 +000016570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016571$as_echo "no" >&6; }
16572fi
16573
16574
16575 test -n "$PSDelegate" && break
16576done
16577test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
16578
16579# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
16580set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016582$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016583if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016584 $as_echo_n "(cached) " >&6
16585else
16586 case $RLEEncodeDelegate in
16587 [\\/]* | ?:[\\/]*)
16588 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
16589 ;;
16590 *)
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592for as_dir in $PATH
16593do
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16598 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016600 break 2
16601 fi
16602done
cristy8b350f62009-11-15 23:12:43 +000016603 done
cristy3ed852e2009-09-05 21:47:34 +000016604IFS=$as_save_IFS
16605
16606 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
16607 ;;
16608esac
16609fi
16610RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
16611if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016613$as_echo "$RLEEncodeDelegate" >&6; }
16614else
cristy8b350f62009-11-15 23:12:43 +000016615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016616$as_echo "no" >&6; }
16617fi
16618
16619
16620# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
16621set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016623$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016624if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016625 $as_echo_n "(cached) " >&6
16626else
16627 case $RMDelegate in
16628 [\\/]* | ?:[\\/]*)
16629 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
16630 ;;
16631 *)
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633for as_dir in $PATH
16634do
16635 IFS=$as_save_IFS
16636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16639 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016641 break 2
16642 fi
16643done
cristy8b350f62009-11-15 23:12:43 +000016644 done
cristy3ed852e2009-09-05 21:47:34 +000016645IFS=$as_save_IFS
16646
16647 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
16648 ;;
16649esac
16650fi
16651RMDelegate=$ac_cv_path_RMDelegate
16652if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016654$as_echo "$RMDelegate" >&6; }
16655else
cristy8b350f62009-11-15 23:12:43 +000016656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016657$as_echo "no" >&6; }
16658fi
16659
16660
cristy4689cf02010-02-17 21:15:45 +000016661# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
16662set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664$as_echo_n "checking for $ac_word... " >&6; }
16665if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
16666 $as_echo_n "(cached) " >&6
16667else
16668 case $RSVGDecodeDelegate in
16669 [\\/]* | ?:[\\/]*)
16670 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
16671 ;;
16672 *)
16673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674for as_dir in $PATH
16675do
16676 IFS=$as_save_IFS
16677 test -z "$as_dir" && as_dir=.
16678 for ac_exec_ext in '' $ac_executable_extensions; do
16679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16680 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
16681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16682 break 2
16683 fi
16684done
16685 done
16686IFS=$as_save_IFS
16687
16688 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
16689 ;;
16690esac
16691fi
16692RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
16693if test -n "$RSVGDecodeDelegate"; then
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
16695$as_echo "$RSVGDecodeDelegate" >&6; }
16696else
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16698$as_echo "no" >&6; }
16699fi
16700
16701
cristy3ed852e2009-09-05 21:47:34 +000016702# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
16703set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016705$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016706if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016707 $as_echo_n "(cached) " >&6
16708else
16709 case $SCANDecodeDelegate in
16710 [\\/]* | ?:[\\/]*)
16711 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
16712 ;;
16713 *)
16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715for as_dir in $PATH
16716do
16717 IFS=$as_save_IFS
16718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16721 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016723 break 2
16724 fi
16725done
cristy8b350f62009-11-15 23:12:43 +000016726 done
cristy3ed852e2009-09-05 21:47:34 +000016727IFS=$as_save_IFS
16728
16729 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
16730 ;;
16731esac
16732fi
16733SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
16734if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016736$as_echo "$SCANDecodeDelegate" >&6; }
16737else
cristy8b350f62009-11-15 23:12:43 +000016738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016739$as_echo "no" >&6; }
16740fi
16741
16742
16743# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
16744set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016746$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016747if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016748 $as_echo_n "(cached) " >&6
16749else
16750 case $TXTDelegate in
16751 [\\/]* | ?:[\\/]*)
16752 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
16753 ;;
16754 *)
16755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756for as_dir in $PATH
16757do
16758 IFS=$as_save_IFS
16759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16762 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016764 break 2
16765 fi
16766done
cristy8b350f62009-11-15 23:12:43 +000016767 done
cristy3ed852e2009-09-05 21:47:34 +000016768IFS=$as_save_IFS
16769
16770 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
16771 ;;
16772esac
16773fi
16774TXTDelegate=$ac_cv_path_TXTDelegate
16775if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016777$as_echo "$TXTDelegate" >&6; }
16778else
cristy8b350f62009-11-15 23:12:43 +000016779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016780$as_echo "no" >&6; }
16781fi
16782
16783
cristy5ac9ac82010-07-29 13:24:24 +000016784# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
16785set dummy "$UniconvertorDelegateDefault"; ac_word=$2
16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16787$as_echo_n "checking for $ac_word... " >&6; }
16788if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
16789 $as_echo_n "(cached) " >&6
16790else
16791 case $UniconvertorDelegate in
16792 [\\/]* | ?:[\\/]*)
16793 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
16794 ;;
16795 *)
16796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797for as_dir in $PATH
16798do
16799 IFS=$as_save_IFS
16800 test -z "$as_dir" && as_dir=.
16801 for ac_exec_ext in '' $ac_executable_extensions; do
16802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16803 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
16804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16805 break 2
16806 fi
16807done
16808 done
16809IFS=$as_save_IFS
16810
16811 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
16812 ;;
16813esac
16814fi
16815UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
16816if test -n "$UniconvertorDelegate"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
16818$as_echo "$UniconvertorDelegate" >&6; }
16819else
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821$as_echo "no" >&6; }
16822fi
16823
16824
cristy3ed852e2009-09-05 21:47:34 +000016825# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
16826set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016828$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016829if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016830 $as_echo_n "(cached) " >&6
16831else
16832 case $WMFDecodeDelegate in
16833 [\\/]* | ?:[\\/]*)
16834 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
16835 ;;
16836 *)
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838for as_dir in $PATH
16839do
16840 IFS=$as_save_IFS
16841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16844 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016846 break 2
16847 fi
16848done
cristy8b350f62009-11-15 23:12:43 +000016849 done
cristy3ed852e2009-09-05 21:47:34 +000016850IFS=$as_save_IFS
16851
16852 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
16853 ;;
16854esac
16855fi
16856WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
16857if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016859$as_echo "$WMFDecodeDelegate" >&6; }
16860else
cristy8b350f62009-11-15 23:12:43 +000016861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016862$as_echo "no" >&6; }
16863fi
16864
16865
16866# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
16867set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016869$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016870if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016871 $as_echo_n "(cached) " >&6
16872else
16873 case $WWWDecodeDelegate in
16874 [\\/]* | ?:[\\/]*)
16875 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
16876 ;;
16877 *)
16878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16879for as_dir in $PATH
16880do
16881 IFS=$as_save_IFS
16882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16885 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016887 break 2
16888 fi
16889done
cristy8b350f62009-11-15 23:12:43 +000016890 done
cristy3ed852e2009-09-05 21:47:34 +000016891IFS=$as_save_IFS
16892
16893 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
16894 ;;
16895esac
16896fi
16897WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
16898if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016900$as_echo "$WWWDecodeDelegate" >&6; }
16901else
cristy8b350f62009-11-15 23:12:43 +000016902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016903$as_echo "no" >&6; }
16904fi
16905
16906
16907# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
16908set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016910$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016911if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016912 $as_echo_n "(cached) " >&6
16913else
16914 case $XPSDelegate in
16915 [\\/]* | ?:[\\/]*)
16916 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
16917 ;;
16918 *)
16919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920for as_dir in $PATH
16921do
16922 IFS=$as_save_IFS
16923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16926 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016928 break 2
16929 fi
16930done
cristy8b350f62009-11-15 23:12:43 +000016931 done
cristy3ed852e2009-09-05 21:47:34 +000016932IFS=$as_save_IFS
16933
16934 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
16935 ;;
16936esac
16937fi
16938XPSDelegate=$ac_cv_path_XPSDelegate
16939if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016941$as_echo "$XPSDelegate" >&6; }
16942else
cristy8b350f62009-11-15 23:12:43 +000016943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016944$as_echo "no" >&6; }
16945fi
16946
16947
16948# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
16949set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000016950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000016951$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016952if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016953 $as_echo_n "(cached) " >&6
16954else
16955 case $ZipDelegate in
16956 [\\/]* | ?:[\\/]*)
16957 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
16958 ;;
16959 *)
16960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16961for as_dir in $PATH
16962do
16963 IFS=$as_save_IFS
16964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000016965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000016966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16967 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000016968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016969 break 2
16970 fi
16971done
cristy8b350f62009-11-15 23:12:43 +000016972 done
cristy3ed852e2009-09-05 21:47:34 +000016973IFS=$as_save_IFS
16974
16975 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
16976 ;;
16977esac
16978fi
16979ZipDelegate=$ac_cv_path_ZipDelegate
16980if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000016981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000016982$as_echo "$ZipDelegate" >&6; }
16983else
cristy8b350f62009-11-15 23:12:43 +000016984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016985$as_echo "no" >&6; }
16986fi
16987
16988
16989
16990# Prefer lpr to lp; lp needs options tacked on.
16991if test "$LPRDelegate" != no; then
16992 PrintDelegate="$LPRDelegate"
16993else
16994 PrintDelegate="$LPDelegate -c -s"
16995fi
16996
16997
16998# Installed ImageMagick utiltity paths
16999ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
17000DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
17001MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
17002
17003# Set delegate booleans
17004have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
17005have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
17006have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
17007have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
17008have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
17009have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000017010have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000017011have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
17012have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
17013have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
17014have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
17015have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
17016
17017#
17018# Test for font directories
17019#
17020type_include_files=''
17021
cristy430a7312010-01-21 20:44:04 +000017022# Dejavu fonts.
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
17024$as_echo_n "checking for Dejavu fonts directory... " >&6; }
17025dejavu_font_dir=''
17026if test "${with_dejavu_font_dir}" != 'default'; then
17027 dejavu_font_dir="${with_dejavu_font_dir}/"
17028else
17029 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
17030 if test -f "${font_dir}DejaVuSerif.ttf"; then
17031 dejavu_font_dir="${font_dir}"
17032 break 1
17033 fi
17034 done
17035fi
17036if test "${dejavu_font_dir}x" != 'x'; then
17037 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
17039$as_echo "$dejavu_font_dir" >&6; }
17040else
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
17042$as_echo "not found!" >&6; };
17043fi
17044
17045
cristy3ed852e2009-09-05 21:47:34 +000017046# Windows
17047windows_font_dir=''
17048if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
17049 windows_font_dir="${with_windows_font_dir}/"
17050fi
cristy430a7312010-01-21 20:44:04 +000017051if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000017052 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
17053 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
17054 fi
17055 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
17056 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
17057 fi
17058 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
17059 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
17060 fi
17061fi
cristy430a7312010-01-21 20:44:04 +000017062if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000017063 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
17064fi
17065
17066
17067# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000017068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000017069$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
17070ghostscript_font_dir=''
17071if test "${with_gs_font_dir}" != 'default'; then
17072 ghostscript_font_dir="${with_gs_font_dir}/"
17073else
17074 if test "${native_win32_build}" = 'yes'; then
17075 # Native Windows Build
17076 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
17077 if test -f "${font_dir}a010013l.pfb"; then
17078 ghostscript_font_dir="$font_dir"
17079 break 1
17080 fi
17081 done
17082 if test "${PSDelegate}" != 'gswin32c'; then
17083 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
17084 fi
17085 else
17086 # Linux / Mac OS X / Unix Build
17087 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
17088 if test -f "${font_dir}a010013l.pfb"; then
17089 ghostscript_font_dir="${font_dir}"
17090 break 1
17091 fi
17092 done
17093 if test "${ghostscript_font_dir}x" = 'x'; then
17094 if test "$PSDelegate" != 'gs'; then
17095 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
17096 fi
17097 fi
17098 fi
17099fi
17100if test "${ghostscript_font_dir}x" != 'x'; then
17101 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000017102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000017103$as_echo "$ghostscript_font_dir" >&6; }
17104else
cristy8b350f62009-11-15 23:12:43 +000017105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000017106$as_echo "not found!" >&6; };
17107fi
17108
17109case "${build_os}" in
17110 mingw* )
17111 PSDelegate=`$WinPathScript "$PSDelegate" 1`
17112 ;;
17113esac
17114
17115
17116
17117#
17118# Handle case where user doesn't want frozen paths
17119#
17120if test "$with_frozenpaths" != 'yes'; then
17121 # Re-set delegate definitions to default (no paths)
17122 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
17123 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
17124 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
17125 BZIPDelegate="$BZIPDelegateDefault"
17126 BrowseDelegate="$BrowseDelegateDefault"
17127 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
17128 CatDelegate="$CatDelegateDefault"
17129 ConvertDelegate="$ConvertDelegateDefault"
17130 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
17131 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
17132 EchoDelegate="$EchoDelegateDefault"
17133 EditorDelegate="$EditorDelegateDefault"
17134 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
17135 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
17136 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
17137 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
17138 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
17139 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
17140 LPDelegate="$LPDelegateDefault"
17141 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
17142 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
17143 LaunchDelegate="$LaunchDelegateDefault"
17144 MANDelegate="$MANDelegateDefault"
17145 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
17146 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000017147 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000017148 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
17149 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000017150 PCLDelegate="$PCLDelegateDefault"
17151 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
17152 POVDelegate="$POVDelegateDefault"
17153 PSDelegate="$PSDelegateDefault"
17154 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
17155 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
17156 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000017157 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000017158 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
17159 ShowImageDelegate="$ShowImageDelegateDefault"
17160 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000017161 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000017162 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
17163 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
17164 XPSDelegate="$XPSDelegateDefault"
17165 ZipDelegate="$ZipDelegateDefault"
17166fi
17167
17168# Delegate substitutions
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
cristy935c86e2010-06-05 23:50:07 +000017211
cristy5ac9ac82010-07-29 13:24:24 +000017212
cristy3ed852e2009-09-05 21:47:34 +000017213#
17214# RPM support.
17215#
17216RPM=''
17217for ac_prog in gnutar gtar tar
17218do
17219 # Extract the first word of "$ac_prog", so it can be a program name with args.
17220set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000017221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000017222$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017223if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017224 $as_echo_n "(cached) " >&6
17225else
17226 if test -n "$TAR"; then
17227 ac_cv_prog_TAR="$TAR" # Let the user override the test.
17228else
17229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17230for as_dir in $PATH
17231do
17232 IFS=$as_save_IFS
17233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000017234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000017235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17236 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000017237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017238 break 2
17239 fi
17240done
cristy8b350f62009-11-15 23:12:43 +000017241 done
cristy3ed852e2009-09-05 21:47:34 +000017242IFS=$as_save_IFS
17243
17244fi
17245fi
17246TAR=$ac_cv_prog_TAR
17247if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000017248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000017249$as_echo "$TAR" >&6; }
17250else
cristy8b350f62009-11-15 23:12:43 +000017251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000017252$as_echo "no" >&6; }
17253fi
17254
17255
17256 test -n "$TAR" && break
17257done
17258
17259for ac_prog in perl
17260do
17261 # Extract the first word of "$ac_prog", so it can be a program name with args.
17262set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000017263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000017264$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017265if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017266 $as_echo_n "(cached) " >&6
17267else
17268 if test -n "$PERL"; then
17269 ac_cv_prog_PERL="$PERL" # Let the user override the test.
17270else
17271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272for as_dir in $PATH
17273do
17274 IFS=$as_save_IFS
17275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000017276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000017277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17278 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000017279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017280 break 2
17281 fi
17282done
cristy8b350f62009-11-15 23:12:43 +000017283 done
cristy3ed852e2009-09-05 21:47:34 +000017284IFS=$as_save_IFS
17285
17286fi
17287fi
17288PERL=$ac_cv_prog_PERL
17289if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000017290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000017291$as_echo "$PERL" >&6; }
17292else
cristy8b350f62009-11-15 23:12:43 +000017293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000017294$as_echo "no" >&6; }
17295fi
17296
17297
17298 test -n "$PERL" && break
17299done
17300
17301for ac_prog in rpmbuild rpm
17302do
17303 # Extract the first word of "$ac_prog", so it can be a program name with args.
17304set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000017305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000017306$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017307if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017308 $as_echo_n "(cached) " >&6
17309else
17310 if test -n "$RPM"; then
17311 ac_cv_prog_RPM="$RPM" # Let the user override the test.
17312else
17313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17314for as_dir in $PATH
17315do
17316 IFS=$as_save_IFS
17317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000017318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000017319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17320 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000017321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017322 break 2
17323 fi
17324done
cristy8b350f62009-11-15 23:12:43 +000017325 done
cristy3ed852e2009-09-05 21:47:34 +000017326IFS=$as_save_IFS
17327
17328fi
17329fi
17330RPM=$ac_cv_prog_RPM
17331if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000017332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000017333$as_echo "$RPM" >&6; }
17334else
cristy8b350f62009-11-15 23:12:43 +000017335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000017336$as_echo "no" >&6; }
17337fi
17338
17339
17340 test -n "$RPM" && break
17341done
17342
nicolas6237c462010-10-05 06:11:49 +000017343AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
17344AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
17345AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
17346AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
cristy3ed852e2009-09-05 21:47:34 +000017347
nicolas6237c462010-10-05 06:11:49 +000017348AM_CONDITIONAL(RPM_DELEGATE, test "x$RPM" != "x" )
cristy3ed852e2009-09-05 21:47:34 +000017349
17350#
17351# 7ZIP support (http://p7zip.sourceforge.net/)
17352#
17353P7ZIP=''
17354for ac_prog in 7za
17355do
17356 # Extract the first word of "$ac_prog", so it can be a program name with args.
17357set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000017358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000017359$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017360if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017361 $as_echo_n "(cached) " >&6
17362else
17363 if test -n "$P7ZIP"; then
17364 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
17365else
17366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17367for as_dir in $PATH
17368do
17369 IFS=$as_save_IFS
17370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000017371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000017372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17373 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000017374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017375 break 2
17376 fi
17377done
cristy8b350f62009-11-15 23:12:43 +000017378 done
cristy3ed852e2009-09-05 21:47:34 +000017379IFS=$as_save_IFS
17380
17381fi
17382fi
17383P7ZIP=$ac_cv_prog_P7ZIP
17384if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000017385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000017386$as_echo "$P7ZIP" >&6; }
17387else
cristy8b350f62009-11-15 23:12:43 +000017388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000017389$as_echo "no" >&6; }
17390fi
17391
17392
17393 test -n "$P7ZIP" && break
17394done
17395
17396
nicolas6237c462010-10-05 06:11:49 +000017397AM_CONDITIONAL(P7ZIP_DELEGATE, test "x$P7ZIP" != "x" )
cristy3ed852e2009-09-05 21:47:34 +000017398
17399#
17400# ZIP support (http://www.info-zip.org/Zip.html)
17401#
17402ZIP=''
17403for ac_prog in zip
17404do
17405 # Extract the first word of "$ac_prog", so it can be a program name with args.
17406set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000017407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000017408$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017409if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017410 $as_echo_n "(cached) " >&6
17411else
17412 if test -n "$ZIP"; then
17413 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
17414else
17415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17416for as_dir in $PATH
17417do
17418 IFS=$as_save_IFS
17419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000017420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000017421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17422 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000017423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017424 break 2
17425 fi
17426done
cristy8b350f62009-11-15 23:12:43 +000017427 done
cristy3ed852e2009-09-05 21:47:34 +000017428IFS=$as_save_IFS
17429
17430fi
17431fi
17432ZIP=$ac_cv_prog_ZIP
17433if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000017434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000017435$as_echo "$ZIP" >&6; }
17436else
cristy8b350f62009-11-15 23:12:43 +000017437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000017438$as_echo "no" >&6; }
17439fi
17440
17441
17442 test -n "$ZIP" && break
17443done
17444
17445
nicolas6237c462010-10-05 06:11:49 +000017446AM_CONDITIONAL(ZIP_DELEGATE, test "x$ZIP" != "x" )
cristy3ed852e2009-09-05 21:47:34 +000017447
17448#
17449# GhostPCL related configuration.
17450#
17451PCLColorDevice=ppmraw
17452PCLCMYKDevice=bmpsep8
17453PCLMonoDevice=pbmraw
17454if test -z "$PCLVersion"; then
17455 PCLVersion='unknown'
17456fi
17457if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000017458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000017459$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000017461$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000017463$as_echo "" >&6; }
17464 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000017465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017466$as_echo_n "checking for pcl color device... " >&6; }
17467 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17468 :
17469 else
17470 PCLColorDevice=ppmraw
17471 fi
cristy8b350f62009-11-15 23:12:43 +000017472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017473$as_echo "$PCLColorDevice" >&6; }
17474
17475 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000017476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017477$as_echo_n "checking for pcl CMYK device... " >&6; }
17478 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17479 :
17480 else
17481 PCLCMYKDevice=$PCLColorDevice
17482 fi
cristy8b350f62009-11-15 23:12:43 +000017483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017484$as_echo "$PCLCMYKDevice" >&6; }
17485
17486 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000017487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017488$as_echo_n "checking for pcl mono device... " >&6; }
17489 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17490 :
17491 else
17492 PCLMonoDevice=$PCLColorDevice
17493 fi
cristy8b350f62009-11-15 23:12:43 +000017494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017495$as_echo "$PCLMonoDevice" >&6; }
17496fi
17497
17498
17499
17500
17501
17502
17503#
17504# GhostXPS related configuration.
17505#
17506XPSColorDevice=ppmraw
17507XPSCMYKDevice=bmpsep8
17508XPSMonoDevice=pbmraw
17509if test -z "$XPSVersion"; then
17510 XPSVersion='unknown'
17511fi
17512if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000017513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000017514$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000017516$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000017518$as_echo "" >&6; }
17519 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000017520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017521$as_echo_n "checking for xps color device... " >&6; }
17522 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17523 :
17524 else
17525 XPSColorDevice=ppmraw
17526 fi
cristy8b350f62009-11-15 23:12:43 +000017527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017528$as_echo "$XPSColorDevice" >&6; }
17529
17530 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000017531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017532$as_echo_n "checking for xps CMYK device... " >&6; }
17533 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17534 :
17535 else
17536 XPSCMYKDevice=$XPSColorDevice
17537 fi
cristy8b350f62009-11-15 23:12:43 +000017538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017539$as_echo "$XPSCMYKDevice" >&6; }
17540
17541 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000017542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017543$as_echo_n "checking for xps mono device... " >&6; }
17544 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17545 :
17546 else
17547 XPSMonoDevice=$XPSColorDevice
17548 fi
cristy8b350f62009-11-15 23:12:43 +000017549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017550$as_echo "$XPSMonoDevice" >&6; }
17551fi
17552
17553
17554
17555
17556
17557
17558#
17559# Ghostscript related configuration.
17560#
17561if test "$have_png" = 'yes'; then
17562 GSAlphaDevice=pngalpha
17563else
17564 GSAlphaDevice=pnmraw
17565fi
17566GSColorDevice=pnmraw
17567GSCMYKDevice=pam
17568GSMonoDevice=pbmraw
17569GSPDFDevice=pdfwrite
17570GSPSDevice=pswrite
17571GSEPSDevice=epswrite
17572GSVersion='unknown'
17573if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000017574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000017575$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000017577$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000017579$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000017581$as_echo_n "checking for Ghostscript version... " >&6; }
17582 if GSVersion=`$PSDelegate --version`; then
17583 :
17584 else
17585 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
17586 fi
cristy8b350f62009-11-15 23:12:43 +000017587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000017588$as_echo "$GSVersion" >&6; }
17589
17590 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000017591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017592$as_echo_n "checking for gs alpha device... " >&6; }
17593 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17594 :
17595 else
17596 GSAlphaDevice=pnmraw
17597 fi
cristy8b350f62009-11-15 23:12:43 +000017598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017599$as_echo "$GSAlphaDevice" >&6; }
17600
17601 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000017602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017603$as_echo_n "checking for gs color device... " >&6; }
17604 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17605 :
17606 else
17607 GSColorDevice=pnmraw
17608 fi
cristy8b350f62009-11-15 23:12:43 +000017609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017610$as_echo "$GSColorDevice" >&6; }
17611
17612 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000017613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017614$as_echo_n "checking for gs CMYK device... " >&6; }
17615 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17616 :
17617 else
17618 GSCMYKDevice=bmpsep8
17619 fi
cristy8b350f62009-11-15 23:12:43 +000017620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017621$as_echo "$GSCMYKDevice" >&6; }
17622
17623 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000017624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017625$as_echo_n "checking for gs mono device... " >&6; }
17626 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17627 :
17628 else
17629 GSMonoDevice=$GSColorDevice
17630 fi
cristy8b350f62009-11-15 23:12:43 +000017631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017632$as_echo "$GSMonoDevice" >&6; }
17633
17634 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000017635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017636$as_echo_n "checking for gs PDF writing device... " >&6; }
17637 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17638 :
17639 else
17640 GSPDFDevice=nodevice
17641 fi
cristy8b350f62009-11-15 23:12:43 +000017642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017643$as_echo "$GSPDFDevice" >&6; }
17644
17645 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000017646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017647$as_echo_n "checking for gs PS writing device... " >&6; }
17648 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17649 :
17650 else
17651 GSPSDevice=nodevice
17652 fi
cristy8b350f62009-11-15 23:12:43 +000017653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017654$as_echo "$GSPSDevice" >&6; }
17655
17656 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000017657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000017658$as_echo_n "checking for gs EPS writing device... " >&6; }
17659 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
17660 :
17661 else
17662 GSEPSDevice=nodevice
17663 fi
cristy8b350f62009-11-15 23:12:43 +000017664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000017665$as_echo "$GSEPSDevice" >&6; }
17666fi
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677#
17678# PerlMagick-related configuration
17679#
17680
17681# Look for PERL if PerlMagick requested
17682# If name/path of desired PERL interpreter is specified, look for that one first
17683have_perl='no'
17684if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000017685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000017686$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000017688$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000017690$as_echo "" >&6; }
17691 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000017692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000017693$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017694if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017695 $as_echo_n "(cached) " >&6
17696else
17697 ac_cv_path_PERL="$with_perl"
17698fi
cristy8b350f62009-11-15 23:12:43 +000017699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000017700$as_echo "$ac_cv_path_PERL" >&6; };
17701 PERL=$ac_cv_path_PERL
17702 have_perl="$ac_cv_path_PERL"
17703 else
17704 for ac_prog in perl perl5
17705do
17706 # Extract the first word of "$ac_prog", so it can be a program name with args.
17707set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000017708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000017709$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017710if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017711 $as_echo_n "(cached) " >&6
17712else
17713 case $PERL in
17714 [\\/]* | ?:[\\/]*)
17715 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17716 ;;
17717 *)
17718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17719for as_dir in $PATH
17720do
17721 IFS=$as_save_IFS
17722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000017723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000017724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17725 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000017726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017727 break 2
17728 fi
17729done
cristy8b350f62009-11-15 23:12:43 +000017730 done
cristy3ed852e2009-09-05 21:47:34 +000017731IFS=$as_save_IFS
17732
17733 ;;
17734esac
17735fi
17736PERL=$ac_cv_path_PERL
17737if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000017738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000017739$as_echo "$PERL" >&6; }
17740else
cristy8b350f62009-11-15 23:12:43 +000017741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000017742$as_echo "no" >&6; }
17743fi
17744
17745
17746 test -n "$PERL" && break
17747done
17748 if test "$ac_cv_path_PERL"; then
17749 have_perl="$ac_cv_path_PERL"
17750 fi
17751 fi
17752fi
17753
cristy949301e2010-01-06 01:38:40 +000017754if test "$with_perl" != 'yes' ; then
17755 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
17756fi
17757
17758PERL_SUPPORTS_DESTDIR='no'
17759
cristy3ed852e2009-09-05 21:47:34 +000017760with_perl_static='no'
17761with_perl_dynamic='no'
17762if test "$have_perl" != 'no'; then
17763 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
17764 with_perl_static='yes'
17765 fi
17766 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
17767 with_perl_dynamic='yes'
17768 fi
17769 # Is PERL's MakeMaker new enough to support DESTDIR?
nicolas6237c462010-10-05 06:11:49 +000017770 AX_PROG_PERL_VERSION(5.8.1,PERL_SUPPORTS_DESTDIR='yes',PERL_SUPPORTS_DESTDIR='no')
cristy3ed852e2009-09-05 21:47:34 +000017771fi
nicolas6237c462010-10-05 06:11:49 +000017772AM_CONDITIONAL(WITH_PERL, test "$have_perl" != 'no')
17773AM_CONDITIONAL(WITH_PERL_STATIC, test $with_perl_static = 'yes')
17774AM_CONDITIONAL(WITH_PERL_DYNAMIC, test $with_perl_dynamic = 'yes')
cristy3ed852e2009-09-05 21:47:34 +000017775
17776
17777# Determine path to pick up MagickCore library from for use with building PerlMagick
17778MAGICKCORE_PATH="${LIB_DIR}"
17779if test $with_perl_static = 'yes'; then
17780 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
17781 libtool_objdir=$objdir
17782
17783 # Linker search path to library, followed by -lMagickCore
17784 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
17785fi
17786
17787
17788# Create a simple string containing format names for all delegate libraries
17789DELEGATES=''
17790if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
17791if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
17792if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
17793if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
17794if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
17795if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
17796if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
17797if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
17798if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
17799if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
17800if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
17801if test "$have_jpeg" = 'yes'; then
17802 DELEGATES="$DELEGATES jpeg";
17803 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
17804fi
17805if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000017806if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000017807if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
17808if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
17809if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
17810if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
17811if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
17812if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
17813if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
17814if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
17815if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
17816if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
17817if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
17818
17819
17820
17821#
17822# Handle special compiler flags
17823#
17824
17825# Add '-p' if prof source profiling support enabled
17826if test "$enable_prof" = 'yes'; then
17827 CFLAGS="-p $CFLAGS"
17828 CXXFLAGS="-p $CXXFLAGS"
17829 LDFLAGS="-p $LDFLAGS"
17830fi
17831
17832# Add '-pg' if gprof source profiling support enabled
17833if test "$enable_gprof" = 'yes'; then
17834 CFLAGS="-pg $CFLAGS"
17835 CXXFLAGS="-pg $CXXFLAGS"
17836 LDFLAGS="-pg $LDFLAGS"
17837fi
17838
17839# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
17840# This is a gcc-specific feature
17841if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000017842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000017843$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017844if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017845 $as_echo_n "(cached) " >&6
17846else
17847 ac_check_lib_save_LIBS=$LIBS
17848LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017850/* end confdefs.h. */
17851
17852/* Override any GCC internal prototype to avoid an error.
17853 Use char because int might match the return type of a GCC
17854 builtin and then its argument prototype would still apply. */
17855#ifdef __cplusplus
17856extern "C"
17857#endif
17858char _gcov_init ();
17859int
17860main ()
17861{
17862return _gcov_init ();
17863 ;
17864 return 0;
17865}
17866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017868 ac_cv_lib_gcov__gcov_init=yes
17869else
cristy8b350f62009-11-15 23:12:43 +000017870 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000017871fi
cristy8b350f62009-11-15 23:12:43 +000017872rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017874LIBS=$ac_check_lib_save_LIBS
17875fi
cristy8b350f62009-11-15 23:12:43 +000017876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000017877$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017878if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017879 cat >>confdefs.h <<_ACEOF
17880#define HAVE_LIBGCOV 1
17881_ACEOF
17882
17883 LIBS="-lgcov $LIBS"
17884
17885fi
17886
cristy8b350f62009-11-15 23:12:43 +000017887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000017888$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017889if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017890 $as_echo_n "(cached) " >&6
17891else
17892 ac_check_lib_save_LIBS=$LIBS
17893LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017895/* end confdefs.h. */
17896
17897/* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
17900#ifdef __cplusplus
17901extern "C"
17902#endif
17903char __gcov_init ();
17904int
17905main ()
17906{
17907return __gcov_init ();
17908 ;
17909 return 0;
17910}
17911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017912if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017913 ac_cv_lib_gcov___gcov_init=yes
17914else
cristy8b350f62009-11-15 23:12:43 +000017915 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000017916fi
cristy8b350f62009-11-15 23:12:43 +000017917rm -f core conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017919LIBS=$ac_check_lib_save_LIBS
17920fi
cristy8b350f62009-11-15 23:12:43 +000017921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000017922$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017923if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017924 cat >>confdefs.h <<_ACEOF
17925#define HAVE_LIBGCOV 1
17926_ACEOF
17927
17928 LIBS="-lgcov $LIBS"
17929
17930fi
17931
17932 case "$target_os" in
17933 darwin*)
17934 OSX_GCOV_LDFLAG="-Wl,-single_module"
17935 ;;
17936 *)
17937 OSX_GCOV_LDFLAG=""
17938 ;;
17939 esac
17940
17941 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
17942 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
17943 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
17944fi
17945
17946#
17947# Build library dependency list for libMagickCore
17948#
17949
17950MAGICK_LIBLTDL='' # Libltdl for build
17951MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
17952MAGICK_LTDLDEPS='' # extra libltdl dependencies
17953if test "$with_ltdl" != 'no'
17954then
17955 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
17956 MAGICK_API_LIBLTDL='-lltdl'
17957 fi
17958 MAGICK_LIBLTDL=${LIBLTDL}
17959 MAGICK_LTDLDEPS=${LTDLDEPS}
17960fi
17961
17962
17963
17964if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000017965 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 +000017966else
cristy2e8b51d2009-10-17 18:26:15 +000017967 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 +000017968fi
17969
17970
17971#
17972# Remove extraneous spaces from output variables (asthetic)
17973#
17974X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
17975X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
17976X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
17977X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
17978
17979CC=`echo $CC | sed -e 's/ */ /g'`
17980CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
17981CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
17982CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
17983DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
17984DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
17985LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
17986TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
17987MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
17988#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
17989
17990# Pass only user-provided LIBS as "global" libraries
17991LIBS=$USER_LIBS
17992
17993#AC_SUBST(CPPFLAGS)
17994
17995#AC_SUBST(LDFLAGS)
17996#AC_SUBST(X_PRE_LIBS)
17997#AC_SUBST(X_LIBS)
17998#AC_SUBST(X_EXTRA_LIBS)
17999
18000MAGICK_CFLAGS=$CFLAGS
18001MAGICK_CXXFLAGS="$CXXFLAGS"
18002MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
18003MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
18004MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
18005MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
18006
18007
18008
18009
18010
18011
18012
18013
cristyfd9dcd42010-08-08 18:07:02 +000018014
cristy3ed852e2009-09-05 21:47:34 +000018015# Set configured scripts to executable.
18016ac_config_commands="$ac_config_commands default"
18017
18018ac_config_commands="$ac_config_commands MagickCore-config.in"
18019
18020ac_config_commands="$ac_config_commands Magick-config.in"
18021
18022ac_config_commands="$ac_config_commands MagickWand-config.in"
18023
18024ac_config_commands="$ac_config_commands Wand-config.in"
18025
18026ac_config_commands="$ac_config_commands Magick++-config.in"
18027
18028ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
18029
18030
cristy8b350f62009-11-15 23:12:43 +000018031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000018032$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000018034$as_echo "Update ImageMagick configuration" >&6; }
18035cat >confcache <<\_ACEOF
18036# This file is a shell script that caches the results of configure
18037# tests run on this system so they can be shared between configure
18038# scripts and configure runs, see configure's option --config-cache.
18039# It is not useful on other systems. If it contains results you don't
18040# want to keep, you may remove or edit it.
18041#
18042# config.status only pays attention to the cache file if you give it
18043# the --recheck option to rerun configure.
18044#
18045# `ac_cv_env_foo' variables (set or unset) will be overridden when
18046# loading this file, other *unset* `ac_cv_foo' will be assigned the
18047# following values.
18048
18049_ACEOF
18050
18051# The following way of writing the cache mishandles newlines in values,
18052# but we know of no workaround that is simple, portable, and efficient.
18053# So, we kill variables containing newlines.
18054# Ultrix sh set writes to stderr and can't be redirected directly,
18055# and sets the high bit in the cache file unless we assign to the vars.
18056(
18057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18058 eval ac_val=\$$ac_var
18059 case $ac_val in #(
18060 *${as_nl}*)
18061 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000018062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000018063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18064 esac
18065 case $ac_var in #(
18066 _ | IFS | as_nl) ;; #(
18067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000018068 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000018069 esac ;;
18070 esac
18071 done
18072
18073 (set) 2>&1 |
18074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18075 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000018076 # `set' does not quote correctly, so add quotes: double-quote
18077 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000018078 sed -n \
18079 "s/'/'\\\\''/g;
18080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18081 ;; #(
18082 *)
18083 # `set' quotes correctly as required by POSIX, so do not add quotes.
18084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18085 ;;
18086 esac |
18087 sort
18088) |
18089 sed '
18090 /^ac_cv_env_/b end
18091 t clear
18092 :clear
18093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18094 t end
18095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18096 :end' >>confcache
18097if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18098 if test -w "$cache_file"; then
18099 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000018100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000018101$as_echo "$as_me: updating cache $cache_file" >&6;}
18102 cat confcache >$cache_file
18103 else
cristy8b350f62009-11-15 23:12:43 +000018104 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000018105$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18106 fi
18107fi
18108rm -f confcache
18109
18110test "x$prefix" = xNONE && prefix=$ac_default_prefix
18111# Let make expand exec_prefix.
18112test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18113
18114DEFS=-DHAVE_CONFIG_H
18115
18116ac_libobjs=
18117ac_ltlibobjs=
18118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18119 # 1. Remove the extension, and $U if already installed.
18120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18123 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000018124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000018126done
18127LIBOBJS=$ac_libobjs
18128
18129LTLIBOBJS=$ac_ltlibobjs
18130
18131
cristy3ed852e2009-09-05 21:47:34 +000018132
cristy3ed852e2009-09-05 21:47:34 +000018133
18134: ${CONFIG_STATUS=./config.status}
18135ac_write_fail=0
18136ac_clean_files_save=$ac_clean_files
18137ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000018138{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000018139$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000018140as_write_fail=0
18141cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000018142#! $SHELL
18143# Generated by $as_me.
18144# Run this file to recreate the current configuration.
18145# Compiler output produced by configure, useful for debugging
18146# configure, is in config.log if it exists.
18147
18148debug=false
18149ac_cs_recheck=false
18150ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000018151
cristy8b350f62009-11-15 23:12:43 +000018152SHELL=\${CONFIG_SHELL-$SHELL}
18153export SHELL
18154_ASEOF
18155cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18156## -------------------- ##
18157## M4sh Initialization. ##
18158## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018159
18160# Be more Bourne compatible
18161DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000018162if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018163 emulate sh
18164 NULLCMD=:
18165 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18166 # is contrary to our usage. Disable this feature.
18167 alias -g '${1+"$@"}'='"$@"'
18168 setopt NO_GLOB_SUBST
18169else
cristy8b350f62009-11-15 23:12:43 +000018170 case `(set -o) 2>/dev/null` in #(
18171 *posix*) :
18172 set -o posix ;; #(
18173 *) :
18174 ;;
cristy3ed852e2009-09-05 21:47:34 +000018175esac
cristy3ed852e2009-09-05 21:47:34 +000018176fi
18177
18178
cristy3ed852e2009-09-05 21:47:34 +000018179as_nl='
18180'
18181export as_nl
18182# Printing a long string crashes Solaris 7 /usr/bin/printf.
18183as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18185as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000018186# Prefer a ksh shell builtin over an external printf program on Solaris,
18187# but without wasting forks for bash or zsh.
18188if test -z "$BASH_VERSION$ZSH_VERSION" \
18189 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18190 as_echo='print -r --'
18191 as_echo_n='print -rn --'
18192elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018193 as_echo='printf %s\n'
18194 as_echo_n='printf %s'
18195else
18196 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18197 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18198 as_echo_n='/usr/ucb/echo -n'
18199 else
18200 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18201 as_echo_n_body='eval
18202 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000018203 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000018204 *"$as_nl"*)
18205 expr "X$arg" : "X\\(.*\\)$as_nl";
18206 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18207 esac;
18208 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18209 '
18210 export as_echo_n_body
18211 as_echo_n='sh -c $as_echo_n_body as_echo'
18212 fi
18213 export as_echo_body
18214 as_echo='sh -c $as_echo_body as_echo'
18215fi
18216
18217# The user is always right.
18218if test "${PATH_SEPARATOR+set}" != set; then
18219 PATH_SEPARATOR=:
18220 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18221 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18222 PATH_SEPARATOR=';'
18223 }
18224fi
18225
cristy3ed852e2009-09-05 21:47:34 +000018226
18227# IFS
18228# We need space, tab and new line, in precisely that order. Quoting is
18229# there to prevent editors from complaining about space-tab.
18230# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18231# splitting by setting IFS to empty value.)
18232IFS=" "" $as_nl"
18233
18234# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000018235case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000018236 *[\\/]* ) as_myself=$0 ;;
18237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238for as_dir in $PATH
18239do
18240 IFS=$as_save_IFS
18241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000018242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18243 done
cristy3ed852e2009-09-05 21:47:34 +000018244IFS=$as_save_IFS
18245
18246 ;;
18247esac
18248# We did not find ourselves, most probably we were run as `sh COMMAND'
18249# in which case we are not to be found in the path.
18250if test "x$as_myself" = x; then
18251 as_myself=$0
18252fi
18253if test ! -f "$as_myself"; then
18254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000018255 exit 1
cristy3ed852e2009-09-05 21:47:34 +000018256fi
18257
cristy8b350f62009-11-15 23:12:43 +000018258# Unset variables that we do not need and which cause bugs (e.g. in
18259# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18260# suppresses any "Segmentation fault" message there. '((' could
18261# trigger a bug in pdksh 5.2.14.
18262for as_var in BASH_ENV ENV MAIL MAILPATH
18263do eval test x\${$as_var+set} = xset \
18264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000018265done
18266PS1='$ '
18267PS2='> '
18268PS4='+ '
18269
18270# NLS nuisances.
18271LC_ALL=C
18272export LC_ALL
18273LANGUAGE=C
18274export LANGUAGE
18275
cristy8b350f62009-11-15 23:12:43 +000018276# CDPATH.
18277(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18278
18279
cristyf6fcb5d2010-09-24 01:19:13 +000018280# as_fn_error ERROR [LINENO LOG_FD]
18281# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +000018282# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18283# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyf6fcb5d2010-09-24 01:19:13 +000018284# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000018285as_fn_error ()
18286{
cristyf6fcb5d2010-09-24 01:19:13 +000018287 as_status=$?; test $as_status -eq 0 && as_status=1
18288 if test "$3"; then
18289 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +000018291 fi
cristyf6fcb5d2010-09-24 01:19:13 +000018292 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +000018293 as_fn_exit $as_status
18294} # as_fn_error
18295
18296
18297# as_fn_set_status STATUS
18298# -----------------------
18299# Set $? to STATUS, without forking.
18300as_fn_set_status ()
18301{
18302 return $1
18303} # as_fn_set_status
18304
18305# as_fn_exit STATUS
18306# -----------------
18307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18308as_fn_exit ()
18309{
18310 set +e
18311 as_fn_set_status $1
18312 exit $1
18313} # as_fn_exit
18314
18315# as_fn_unset VAR
18316# ---------------
18317# Portably unset VAR.
18318as_fn_unset ()
18319{
18320 { eval $1=; unset $1;}
18321}
18322as_unset=as_fn_unset
18323# as_fn_append VAR VALUE
18324# ----------------------
18325# Append the text in VALUE to the end of the definition contained in VAR. Take
18326# advantage of any shell optimizations that allow amortized linear growth over
18327# repeated appends, instead of the typical quadratic growth present in naive
18328# implementations.
18329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18330 eval 'as_fn_append ()
18331 {
18332 eval $1+=\$2
18333 }'
18334else
18335 as_fn_append ()
18336 {
18337 eval $1=\$$1\$2
18338 }
18339fi # as_fn_append
18340
18341# as_fn_arith ARG...
18342# ------------------
18343# Perform arithmetic evaluation on the ARGs, and store the result in the
18344# global $as_val. Take advantage of shells that can avoid forks. The arguments
18345# must be portable across $(()) and expr.
18346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18347 eval 'as_fn_arith ()
18348 {
18349 as_val=$(( $* ))
18350 }'
18351else
18352 as_fn_arith ()
18353 {
18354 as_val=`expr "$@" || test $? -eq 1`
18355 }
18356fi # as_fn_arith
18357
18358
cristy3ed852e2009-09-05 21:47:34 +000018359if expr a : '\(a\)' >/dev/null 2>&1 &&
18360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18361 as_expr=expr
18362else
18363 as_expr=false
18364fi
18365
18366if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18367 as_basename=basename
18368else
18369 as_basename=false
18370fi
18371
cristy8b350f62009-11-15 23:12:43 +000018372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18373 as_dirname=dirname
18374else
18375 as_dirname=false
18376fi
cristy3ed852e2009-09-05 21:47:34 +000018377
cristy3ed852e2009-09-05 21:47:34 +000018378as_me=`$as_basename -- "$0" ||
18379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18380 X"$0" : 'X\(//\)$' \| \
18381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18382$as_echo X/"$0" |
18383 sed '/^.*\/\([^/][^/]*\)\/*$/{
18384 s//\1/
18385 q
18386 }
18387 /^X\/\(\/\/\)$/{
18388 s//\1/
18389 q
18390 }
18391 /^X\/\(\/\).*/{
18392 s//\1/
18393 q
18394 }
18395 s/.*/./; q'`
18396
cristy8b350f62009-11-15 23:12:43 +000018397# Avoid depending upon Character Ranges.
18398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18401as_cr_digits='0123456789'
18402as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000018403
18404ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000018405case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000018406-n*)
cristy8b350f62009-11-15 23:12:43 +000018407 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000018408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000018409 xy) ECHO_C='\c';;
18410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18411 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000018412 esac;;
18413*)
18414 ECHO_N='-n';;
18415esac
cristy3ed852e2009-09-05 21:47:34 +000018416
18417rm -f conf$$ conf$$.exe conf$$.file
18418if test -d conf$$.dir; then
18419 rm -f conf$$.dir/conf$$.file
18420else
18421 rm -f conf$$.dir
18422 mkdir conf$$.dir 2>/dev/null
18423fi
18424if (echo >conf$$.file) 2>/dev/null; then
18425 if ln -s conf$$.file conf$$ 2>/dev/null; then
18426 as_ln_s='ln -s'
18427 # ... but there are two gotchas:
18428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18430 # In both cases, we have to default to `cp -p'.
18431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18432 as_ln_s='cp -p'
18433 elif ln conf$$.file conf$$ 2>/dev/null; then
18434 as_ln_s=ln
18435 else
18436 as_ln_s='cp -p'
18437 fi
18438else
18439 as_ln_s='cp -p'
18440fi
18441rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18442rmdir conf$$.dir 2>/dev/null
18443
cristy8b350f62009-11-15 23:12:43 +000018444
18445# as_fn_mkdir_p
18446# -------------
18447# Create "$as_dir" as a directory, including parents if necessary.
18448as_fn_mkdir_p ()
18449{
18450
18451 case $as_dir in #(
18452 -*) as_dir=./$as_dir;;
18453 esac
18454 test -d "$as_dir" || eval $as_mkdir_p || {
18455 as_dirs=
18456 while :; do
18457 case $as_dir in #(
18458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18459 *) as_qdir=$as_dir;;
18460 esac
18461 as_dirs="'$as_qdir' $as_dirs"
18462 as_dir=`$as_dirname -- "$as_dir" ||
18463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18464 X"$as_dir" : 'X\(//\)[^/]' \| \
18465 X"$as_dir" : 'X\(//\)$' \| \
18466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18467$as_echo X"$as_dir" |
18468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18469 s//\1/
18470 q
18471 }
18472 /^X\(\/\/\)[^/].*/{
18473 s//\1/
18474 q
18475 }
18476 /^X\(\/\/\)$/{
18477 s//\1/
18478 q
18479 }
18480 /^X\(\/\).*/{
18481 s//\1/
18482 q
18483 }
18484 s/.*/./; q'`
18485 test -d "$as_dir" && break
18486 done
18487 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyf6fcb5d2010-09-24 01:19:13 +000018488 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000018489
18490
18491} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000018492if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000018493 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000018494else
18495 test -d ./-p && rmdir ./-p
18496 as_mkdir_p=false
18497fi
18498
18499if test -x / >/dev/null 2>&1; then
18500 as_test_x='test -x'
18501else
18502 if ls -dL / >/dev/null 2>&1; then
18503 as_ls_L_option=L
18504 else
18505 as_ls_L_option=
18506 fi
18507 as_test_x='
18508 eval sh -c '\''
18509 if test -d "$1"; then
18510 test -d "$1/.";
18511 else
cristy8b350f62009-11-15 23:12:43 +000018512 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000018513 -*)set "./$1";;
18514 esac;
cristy8b350f62009-11-15 23:12:43 +000018515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000018516 ???[sx]*):;;*)false;;esac;fi
18517 '\'' sh
18518 '
18519fi
18520as_executable_p=$as_test_x
18521
18522# Sed expression to map a string onto a valid CPP name.
18523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18524
18525# Sed expression to map a string onto a valid variable name.
18526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18527
18528
18529exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000018530## ----------------------------------- ##
18531## Main body of $CONFIG_STATUS script. ##
18532## ----------------------------------- ##
18533_ASEOF
18534test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000018535
cristy8b350f62009-11-15 23:12:43 +000018536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18537# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000018538# report actual input values of CONFIG_FILES etc. instead of their
18539# values after options handling.
18540ac_log="
cristy56225732010-09-04 23:44:25 +000018541This file was extended by ImageMagick $as_me 6.6.4, which was
cristyf6fcb5d2010-09-24 01:19:13 +000018542generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000018543
18544 CONFIG_FILES = $CONFIG_FILES
18545 CONFIG_HEADERS = $CONFIG_HEADERS
18546 CONFIG_LINKS = $CONFIG_LINKS
18547 CONFIG_COMMANDS = $CONFIG_COMMANDS
18548 $ $0 $@
18549
18550on `(hostname || uname -n) 2>/dev/null | sed 1q`
18551"
18552
18553_ACEOF
18554
18555case $ac_config_files in *"
18556"*) set x $ac_config_files; shift; ac_config_files=$*;;
18557esac
18558
18559case $ac_config_headers in *"
18560"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18561esac
18562
18563
18564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18565# Files that config.status was made for.
18566config_files="$ac_config_files"
18567config_headers="$ac_config_headers"
18568config_commands="$ac_config_commands"
18569
18570_ACEOF
18571
18572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18573ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000018574\`$as_me' instantiates files and other configuration actions
18575from templates according to the current configuration. Unless the files
18576and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000018577
cristy8b350f62009-11-15 23:12:43 +000018578Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000018579
18580 -h, --help print this help, then exit
18581 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000018582 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000018583 -q, --quiet, --silent
18584 do not print progress messages
18585 -d, --debug don't remove temporary files
18586 --recheck update $as_me by reconfiguring in the same conditions
18587 --file=FILE[:TEMPLATE]
18588 instantiate the configuration file FILE
18589 --header=FILE[:TEMPLATE]
18590 instantiate the configuration header FILE
18591
18592Configuration files:
18593$config_files
18594
18595Configuration headers:
18596$config_headers
18597
18598Configuration commands:
18599$config_commands
18600
cristy8b350f62009-11-15 23:12:43 +000018601Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000018602
18603_ACEOF
18604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000018605ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000018606ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000018607ImageMagick config.status 6.6.4
cristyf6fcb5d2010-09-24 01:19:13 +000018608configured by $0, generated by GNU Autoconf 2.65,
cristycd4c5312009-11-22 01:19:08 +000018609 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000018610
cristyf6fcb5d2010-09-24 01:19:13 +000018611Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000018612This config.status script is free software; the Free Software Foundation
18613gives unlimited permission to copy, distribute and modify it."
18614
18615ac_pwd='$ac_pwd'
18616srcdir='$srcdir'
18617INSTALL='$INSTALL'
cristy3ed852e2009-09-05 21:47:34 +000018618test -n "\$AWK" || AWK=awk
18619_ACEOF
18620
18621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18622# The default lists apply if the user does not specify any file.
18623ac_need_defaults=:
18624while test $# != 0
18625do
18626 case $1 in
18627 --*=*)
18628 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18629 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18630 ac_shift=:
18631 ;;
18632 *)
18633 ac_option=$1
18634 ac_optarg=$2
18635 ac_shift=shift
18636 ;;
18637 esac
18638
18639 case $ac_option in
18640 # Handling of the options.
18641 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18642 ac_cs_recheck=: ;;
18643 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18644 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000018645 --config | --confi | --conf | --con | --co | --c )
18646 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000018647 --debug | --debu | --deb | --de | --d | -d )
18648 debug=: ;;
18649 --file | --fil | --fi | --f )
18650 $ac_shift
18651 case $ac_optarg in
18652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18653 esac
cristy8b350f62009-11-15 23:12:43 +000018654 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000018655 ac_need_defaults=false;;
18656 --header | --heade | --head | --hea )
18657 $ac_shift
18658 case $ac_optarg in
18659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18660 esac
cristy8b350f62009-11-15 23:12:43 +000018661 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000018662 ac_need_defaults=false;;
18663 --he | --h)
18664 # Conflict between --help and --header
cristyf6fcb5d2010-09-24 01:19:13 +000018665 as_fn_error "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000018666Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000018667 --help | --hel | -h )
18668 $as_echo "$ac_cs_usage"; exit ;;
18669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18671 ac_cs_silent=: ;;
18672
18673 # This is an error.
cristyf6fcb5d2010-09-24 01:19:13 +000018674 -*) as_fn_error "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000018675Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000018676
cristy8b350f62009-11-15 23:12:43 +000018677 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000018678 ac_need_defaults=false ;;
18679
18680 esac
18681 shift
18682done
18683
18684ac_configure_extra_args=
18685
18686if $ac_cs_silent; then
18687 exec 6>/dev/null
18688 ac_configure_extra_args="$ac_configure_extra_args --silent"
18689fi
18690
18691_ACEOF
18692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18693if \$ac_cs_recheck; then
18694 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18695 shift
18696 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18697 CONFIG_SHELL='$SHELL'
18698 export CONFIG_SHELL
18699 exec "\$@"
18700fi
18701
18702_ACEOF
18703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18704exec 5>>config.log
18705{
18706 echo
18707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18708## Running $as_me. ##
18709_ASBOX
18710 $as_echo "$ac_log"
18711} >&5
18712
18713_ACEOF
18714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000018715_ACEOF
18716
18717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18718
18719# Handling of arguments.
18720for ac_config_target in $ac_config_targets
18721do
18722 case $ac_config_target in
18723 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000018724 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
18725 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
18726 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
18727 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
18728 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000018729 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000018730 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
18731 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
18732 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
18733 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
18734 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
18735 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
18736 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
18737 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
18738 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
18739 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
18740 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
18741 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
18742 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18743 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
18744 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
18745 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
18746 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
18747 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
18748 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
18749 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
18750 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
18751 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
18752 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
18753 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
18754 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
18755 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
18756 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
18757 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
18758 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
18759 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
18760 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
18761 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
18762 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000018763 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18764 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
18765 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
18766 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
18767 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
18768 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
18769 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
18770
cristyf6fcb5d2010-09-24 01:19:13 +000018771 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000018772 esac
18773done
18774
18775
18776# If the user did not use the arguments to specify the items to instantiate,
18777# then the envvar interface is used. Set only those that are not.
18778# We use the long form for the default assignment because of an extremely
18779# bizarre bug on SunOS 4.1.3.
18780if $ac_need_defaults; then
18781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18784fi
18785
18786# Have a temporary directory for convenience. Make it in the build tree
18787# simply because there is no reason against having it here, and in addition,
18788# creating and moving files from /tmp can sometimes cause problems.
18789# Hook for its removal unless debugging.
18790# Note that there is a small window in which the directory will not be cleaned:
18791# after its creation but before its name has been assigned to `$tmp'.
18792$debug ||
18793{
18794 tmp=
18795 trap 'exit_status=$?
18796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18797' 0
cristy8b350f62009-11-15 23:12:43 +000018798 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000018799}
18800# Create a (secure) tmp directory for tmp files.
18801
18802{
18803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18804 test -n "$tmp" && test -d "$tmp"
18805} ||
18806{
18807 tmp=./conf$$-$RANDOM
18808 (umask 077 && mkdir "$tmp")
cristyf6fcb5d2010-09-24 01:19:13 +000018809} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018810
18811# Set up the scripts for CONFIG_FILES section.
18812# No need to generate them if there are no CONFIG_FILES.
18813# This happens for instance with `./config.status config.h'.
18814if test -n "$CONFIG_FILES"; then
18815
18816
cristy8b350f62009-11-15 23:12:43 +000018817ac_cr=`echo X | tr X '\015'`
18818# On cygwin, bash can eat \r inside `` if the user requested igncr.
18819# But we know of no other shell where ac_cr would be empty at this
18820# point, so we can use a bashism as a fallback.
18821if test "x$ac_cr" = x; then
18822 eval ac_cr=\$\'\\r\'
18823fi
cristy3ed852e2009-09-05 21:47:34 +000018824ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18825if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyf6fcb5d2010-09-24 01:19:13 +000018826 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000018827else
18828 ac_cs_awk_cr=$ac_cr
18829fi
18830
18831echo 'BEGIN {' >"$tmp/subs1.awk" &&
18832_ACEOF
18833
18834
18835{
18836 echo "cat >conf$$subs.awk <<_ACEOF" &&
18837 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18838 echo "_ACEOF"
18839} >conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000018840 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18841ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
cristy3ed852e2009-09-05 21:47:34 +000018842ac_delim='%!_!# '
18843for ac_last_try in false false false false false :; do
18844 . ./conf$$subs.sh ||
cristyf6fcb5d2010-09-24 01:19:13 +000018845 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018846
18847 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18848 if test $ac_delim_n = $ac_delim_num; then
18849 break
18850 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000018851 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018852 else
18853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18854 fi
18855done
18856rm -f conf$$subs.sh
18857
18858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18859cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18860_ACEOF
18861sed -n '
18862h
18863s/^/S["/; s/!.*/"]=/
18864p
18865g
18866s/^[^!]*!//
18867:repl
18868t repl
18869s/'"$ac_delim"'$//
18870t delim
18871:nl
18872h
cristycd4c5312009-11-22 01:19:08 +000018873s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000018874t more1
18875s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18876p
18877n
18878b repl
18879:more1
18880s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18881p
18882g
18883s/.\{148\}//
18884t nl
18885:delim
18886h
cristycd4c5312009-11-22 01:19:08 +000018887s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000018888t more2
18889s/["\\]/\\&/g; s/^/"/; s/$/"/
18890p
18891b
18892:more2
18893s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18894p
18895g
18896s/.\{148\}//
18897t delim
18898' <conf$$subs.awk | sed '
18899/^[^""]/{
18900 N
18901 s/\n//
18902}
18903' >>$CONFIG_STATUS || ac_write_fail=1
18904rm -f conf$$subs.awk
18905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18906_ACAWK
18907cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18908 for (key in S) S_is_set[key] = 1
18909 FS = ""
18910
18911}
18912{
18913 line = $ 0
18914 nfields = split(line, field, "@")
18915 substed = 0
18916 len = length(field[1])
18917 for (i = 2; i < nfields; i++) {
18918 key = field[i]
18919 keylen = length(key)
18920 if (S_is_set[key]) {
18921 value = S[key]
18922 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18923 len += length(value) + length(field[++i])
18924 substed = 1
18925 } else
18926 len += 1 + keylen
18927 }
18928
18929 print line
18930}
18931
18932_ACAWK
18933_ACEOF
18934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18935if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18936 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18937else
18938 cat
18939fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyf6fcb5d2010-09-24 01:19:13 +000018940 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018941_ACEOF
18942
cristyf6fcb5d2010-09-24 01:19:13 +000018943# VPATH may cause trouble with some makes, so we remove $(srcdir),
18944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000018945# trailing colons and then remove the whole line if VPATH becomes empty
18946# (actually we leave an empty line to preserve line numbers).
18947if test "x$srcdir" = x.; then
cristyf6fcb5d2010-09-24 01:19:13 +000018948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18949s/:*\$(srcdir):*/:/
18950s/:*\${srcdir}:*/:/
18951s/:*@srcdir@:*/:/
18952s/^\([^=]*=[ ]*\):*/\1/
cristy3ed852e2009-09-05 21:47:34 +000018953s/:*$//
18954s/^[^=]*=[ ]*$//
18955}'
18956fi
18957
18958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18959fi # test -n "$CONFIG_FILES"
18960
18961# Set up the scripts for CONFIG_HEADERS section.
18962# No need to generate them if there are no CONFIG_HEADERS.
18963# This happens for instance with `./config.status Makefile'.
18964if test -n "$CONFIG_HEADERS"; then
18965cat >"$tmp/defines.awk" <<\_ACAWK ||
18966BEGIN {
18967_ACEOF
18968
18969# Transform confdefs.h into an awk script `defines.awk', embedded as
18970# here-document in config.status, that substitutes the proper values into
18971# config.h.in to produce config.h.
18972
18973# Create a delimiter string that does not exist in confdefs.h, to ease
18974# handling of long lines.
18975ac_delim='%!_!# '
18976for ac_last_try in false false :; do
18977 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18978 if test -z "$ac_t"; then
18979 break
18980 elif $ac_last_try; then
cristyf6fcb5d2010-09-24 01:19:13 +000018981 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018982 else
18983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18984 fi
18985done
18986
18987# For the awk script, D is an array of macro values keyed by name,
18988# likewise P contains macro parameters if any. Preserve backslash
18989# newline sequences.
18990
18991ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18992sed -n '
18993s/.\{148\}/&'"$ac_delim"'/g
18994t rset
18995:rset
18996s/^[ ]*#[ ]*define[ ][ ]*/ /
18997t def
18998d
18999:def
19000s/\\$//
19001t bsnl
19002s/["\\]/\\&/g
19003s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19004D["\1"]=" \3"/p
19005s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19006d
19007:bsnl
19008s/["\\]/\\&/g
19009s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19010D["\1"]=" \3\\\\\\n"\\/p
19011t cont
19012s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19013t cont
19014d
19015:cont
19016n
19017s/.\{148\}/&'"$ac_delim"'/g
19018t clear
19019:clear
19020s/\\$//
19021t bsnlc
19022s/["\\]/\\&/g; s/^/"/; s/$/"/p
19023d
19024:bsnlc
19025s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19026b cont
19027' <confdefs.h | sed '
19028s/'"$ac_delim"'/"\\\
19029"/g' >>$CONFIG_STATUS || ac_write_fail=1
19030
19031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19032 for (key in D) D_is_set[key] = 1
19033 FS = ""
19034}
19035/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19036 line = \$ 0
19037 split(line, arg, " ")
19038 if (arg[1] == "#") {
19039 defundef = arg[2]
19040 mac1 = arg[3]
19041 } else {
19042 defundef = substr(arg[1], 2)
19043 mac1 = arg[2]
19044 }
19045 split(mac1, mac2, "(") #)
19046 macro = mac2[1]
19047 prefix = substr(line, 1, index(line, defundef) - 1)
19048 if (D_is_set[macro]) {
19049 # Preserve the white space surrounding the "#".
19050 print prefix "define", macro P[macro] D[macro]
19051 next
19052 } else {
19053 # Replace #undef with comments. This is necessary, for example,
19054 # in the case of _POSIX_SOURCE, which is predefined and required
19055 # on some systems where configure will not decide to define it.
19056 if (defundef == "undef") {
19057 print "/*", prefix defundef, macro, "*/"
19058 next
19059 }
19060 }
19061}
19062{ print }
19063_ACAWK
19064_ACEOF
19065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyf6fcb5d2010-09-24 01:19:13 +000019066 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019067fi # test -n "$CONFIG_HEADERS"
19068
19069
19070eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19071shift
19072for ac_tag
19073do
19074 case $ac_tag in
19075 :[FHLC]) ac_mode=$ac_tag; continue;;
19076 esac
19077 case $ac_mode$ac_tag in
19078 :[FHL]*:*);;
cristyf6fcb5d2010-09-24 01:19:13 +000019079 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000019080 :[FH]-) ac_tag=-:-;;
19081 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19082 esac
19083 ac_save_IFS=$IFS
19084 IFS=:
19085 set x $ac_tag
19086 IFS=$ac_save_IFS
19087 shift
19088 ac_file=$1
19089 shift
19090
19091 case $ac_mode in
19092 :L) ac_source=$1;;
19093 :[FH])
19094 ac_file_inputs=
19095 for ac_f
19096 do
19097 case $ac_f in
19098 -) ac_f="$tmp/stdin";;
19099 *) # Look for the file first in the build tree, then in the source tree
19100 # (if the path is not absolute). The absolute path cannot be DOS-style,
19101 # because $ac_f cannot contain `:'.
19102 test -f "$ac_f" ||
19103 case $ac_f in
19104 [\\/$]*) false;;
19105 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19106 esac ||
cristyf6fcb5d2010-09-24 01:19:13 +000019107 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000019108 esac
19109 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000019110 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000019111 done
19112
19113 # Let's still pretend it is `configure' which instantiates (i.e., don't
19114 # use $as_me), people would be surprised to read:
19115 # /* config.h. Generated by config.status. */
19116 configure_input='Generated from '`
19117 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19118 `' by configure.'
19119 if test x"$ac_file" != x-; then
19120 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000019121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000019122$as_echo "$as_me: creating $ac_file" >&6;}
19123 fi
19124 # Neutralize special characters interpreted by sed in replacement strings.
19125 case $configure_input in #(
19126 *\&* | *\|* | *\\* )
19127 ac_sed_conf_input=`$as_echo "$configure_input" |
19128 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19129 *) ac_sed_conf_input=$configure_input;;
19130 esac
19131
19132 case $ac_tag in
19133 *:-:* | *:-) cat >"$tmp/stdin" \
cristyf6fcb5d2010-09-24 01:19:13 +000019134 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019135 esac
19136 ;;
19137 esac
19138
19139 ac_dir=`$as_dirname -- "$ac_file" ||
19140$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19141 X"$ac_file" : 'X\(//\)[^/]' \| \
19142 X"$ac_file" : 'X\(//\)$' \| \
19143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19144$as_echo X"$ac_file" |
19145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19146 s//\1/
19147 q
19148 }
19149 /^X\(\/\/\)[^/].*/{
19150 s//\1/
19151 q
19152 }
19153 /^X\(\/\/\)$/{
19154 s//\1/
19155 q
19156 }
19157 /^X\(\/\).*/{
19158 s//\1/
19159 q
19160 }
19161 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000019162 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000019163 ac_builddir=.
19164
19165case "$ac_dir" in
19166.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19167*)
19168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19169 # A ".." for each directory in $ac_dir_suffix.
19170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19171 case $ac_top_builddir_sub in
19172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19174 esac ;;
19175esac
19176ac_abs_top_builddir=$ac_pwd
19177ac_abs_builddir=$ac_pwd$ac_dir_suffix
19178# for backward compatibility:
19179ac_top_builddir=$ac_top_build_prefix
19180
19181case $srcdir in
19182 .) # We are building in place.
19183 ac_srcdir=.
19184 ac_top_srcdir=$ac_top_builddir_sub
19185 ac_abs_top_srcdir=$ac_pwd ;;
19186 [\\/]* | ?:[\\/]* ) # Absolute name.
19187 ac_srcdir=$srcdir$ac_dir_suffix;
19188 ac_top_srcdir=$srcdir
19189 ac_abs_top_srcdir=$srcdir ;;
19190 *) # Relative name.
19191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19192 ac_top_srcdir=$ac_top_build_prefix$srcdir
19193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19194esac
19195ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19196
19197
19198 case $ac_mode in
19199 :F)
19200 #
19201 # CONFIG_FILE
19202 #
19203
19204 case $INSTALL in
19205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19207 esac
cristy3ed852e2009-09-05 21:47:34 +000019208_ACEOF
19209
19210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19211# If the template does not know about datarootdir, expand it.
19212# FIXME: This hack should be removed a few years after 2.60.
19213ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000019214ac_sed_dataroot='
19215/datarootdir/ {
19216 p
19217 q
19218}
19219/@datadir@/p
19220/@docdir@/p
19221/@infodir@/p
19222/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000019223/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000019224case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19225*datarootdir*) ac_datarootdir_seen=yes;;
19226*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000019227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000019228$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19229_ACEOF
19230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19231 ac_datarootdir_hack='
19232 s&@datadir@&$datadir&g
19233 s&@docdir@&$docdir&g
19234 s&@infodir@&$infodir&g
19235 s&@localedir@&$localedir&g
19236 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000019237 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000019238esac
19239_ACEOF
19240
19241# Neutralize VPATH when `$srcdir' = `.'.
19242# Shell code in configure.ac might set extrasub.
19243# FIXME: do we really want to maintain this feature?
19244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245ac_sed_extra="$ac_vpsub
19246$extrasub
19247_ACEOF
19248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249:t
19250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19251s|@configure_input@|$ac_sed_conf_input|;t t
19252s&@top_builddir@&$ac_top_builddir_sub&;t t
19253s&@top_build_prefix@&$ac_top_build_prefix&;t t
19254s&@srcdir@&$ac_srcdir&;t t
19255s&@abs_srcdir@&$ac_abs_srcdir&;t t
19256s&@top_srcdir@&$ac_top_srcdir&;t t
19257s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19258s&@builddir@&$ac_builddir&;t t
19259s&@abs_builddir@&$ac_abs_builddir&;t t
19260s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19261s&@INSTALL@&$ac_INSTALL&;t t
cristy3ed852e2009-09-05 21:47:34 +000019262$ac_datarootdir_hack
19263"
19264eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyf6fcb5d2010-09-24 01:19:13 +000019265 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019266
19267test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19268 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19269 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000019270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000019271which seems to be undefined. Please make sure it is defined." >&5
cristy3ed852e2009-09-05 21:47:34 +000019272$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyf6fcb5d2010-09-24 01:19:13 +000019273which seems to be undefined. Please make sure it is defined." >&2;}
cristy3ed852e2009-09-05 21:47:34 +000019274
19275 rm -f "$tmp/stdin"
19276 case $ac_file in
19277 -) cat "$tmp/out" && rm -f "$tmp/out";;
19278 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19279 esac \
cristyf6fcb5d2010-09-24 01:19:13 +000019280 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019281 ;;
19282 :H)
19283 #
19284 # CONFIG_HEADER
19285 #
19286 if test x"$ac_file" != x-; then
19287 {
19288 $as_echo "/* $configure_input */" \
19289 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19290 } >"$tmp/config.h" \
cristyf6fcb5d2010-09-24 01:19:13 +000019291 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019292 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000019293 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000019294$as_echo "$as_me: $ac_file is unchanged" >&6;}
19295 else
19296 rm -f "$ac_file"
19297 mv "$tmp/config.h" "$ac_file" \
cristyf6fcb5d2010-09-24 01:19:13 +000019298 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019299 fi
19300 else
19301 $as_echo "/* $configure_input */" \
19302 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyf6fcb5d2010-09-24 01:19:13 +000019303 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019304 fi
cristy3ed852e2009-09-05 21:47:34 +000019305 ;;
19306
cristy8b350f62009-11-15 23:12:43 +000019307 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000019308$as_echo "$as_me: executing $ac_file commands" >&6;}
19309 ;;
19310 esac
19311
19312
19313 case $ac_file$ac_mode in
cristy3ed852e2009-09-05 21:47:34 +000019314 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
19315 "Magick-config.in":C) chmod +x magick/Magick-config ;;
19316 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
19317 "Wand-config.in":C) chmod +x wand/Wand-config ;;
19318 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
19319 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
19320
19321 esac
19322done # for ac_tag
19323
19324
cristy8b350f62009-11-15 23:12:43 +000019325as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000019326_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000019327ac_clean_files=$ac_clean_files_save
19328
19329test $ac_write_fail = 0 ||
cristyf6fcb5d2010-09-24 01:19:13 +000019330 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019331
19332
19333# configure is writing to config.log, and then calls config.status.
19334# config.status does its own redirection, appending to config.log.
19335# Unfortunately, on DOS this fails, as config.log is still kept open
19336# by configure, so config.status won't be able to write to it; its
19337# output is simply discarded. So we exec the FD to /dev/null,
19338# effectively closing config.log, so it can be properly (re)opened and
19339# appended to by config.status. When coming back to configure, we
19340# need to make the FD available again.
19341if test "$no_create" != yes; then
19342 ac_cs_success=:
19343 ac_config_status_args=
19344 test "$silent" = yes &&
19345 ac_config_status_args="$ac_config_status_args --quiet"
19346 exec 5>/dev/null
19347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19348 exec 5>>config.log
19349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19350 # would make configure fail if this is the last instruction.
cristyf6fcb5d2010-09-24 01:19:13 +000019351 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000019352fi
19353if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000019354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019355$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19356fi
19357
19358
19359rm -f magick-version
19360
cristy430a7312010-01-21 20:44:04 +000019361result_dejavu_font_dir='none'
19362if test "${dejavu_font_dir}x" != 'x'; then
19363 result_dejavu_font_dir=$dejavu_font_dir
19364fi
19365
cristy3ed852e2009-09-05 21:47:34 +000019366result_ghostscript_font_dir='none'
19367if test "${ghostscript_font_dir}x" != 'x'; then
19368 result_ghostscript_font_dir=$ghostscript_font_dir
19369fi
19370
19371result_windows_font_dir='none'
19372if test "${windows_font_dir}x" != 'x'; then
19373 result_windows_font_dir=${windows_font_dir}
19374fi
19375
cristy8b350f62009-11-15 23:12:43 +000019376{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000019377ImageMagick is configured as follows. Please verify that this configuration
19378matches your expectations.
19379
19380Host system type: $host
19381Build system type: $build
19382
19383 Option Value
19384-------------------------------------------------------------------------------
19385Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
19386Static libraries --enable-static=$enable_static $libtool_build_static_libs
19387Module support --with-modules=$with_modules $with_modules
19388GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
19389Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
19390High Dynamic Range Imagery
19391 --enable-hdri=$enable_hdri $enable_hdri
19392
19393Delegate Configuration:
19394BZLIB --with-bzlib=$with_bzlib $have_bzlib
19395Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000019396Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000019397DJVU --with-djvu=$with_djvu $have_djvu
19398DPS --with-dps=$with_dps $have_dps
19399FFTW --with-fftw=$with_fftw $have_fftw
19400FlashPIX --with-fpx=$with_fpx $have_fpx
19401FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
19402FreeType --with-freetype=$with_freetype $have_freetype
19403GhostPCL None $PCLDelegate ($PCLVersion)
19404GhostXPS None $XPSDelegate ($XPSVersion)
19405Ghostscript None $PSDelegate ($GSVersion)
19406Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
19407Ghostscript lib --with-gslib=$with_gslib $have_gslib
19408Graphviz --with-gvc=$with_gvc $have_gvc
19409JBIG --with-jbig=$with_jbig $have_jbig
19410JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
19411JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000019412LCMS v1 --with-lcms=$with_lcms $have_lcms
19413LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000019414LQR --with-lqr=$with_lqr $have_lqr
19415Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
19416OpenEXR --with-openexr=$with_openexr $have_openexr
19417PERL --with-perl=$with_perl $have_perl
19418PNG --with-png=$with_png $have_png
19419RSVG --with-rsvg=$with_rsvg $have_rsvg
19420TIFF --with-tiff=$with_tiff $have_tiff
19421Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
19422WMF --with-wmf=$with_wmf $have_wmf
19423X11 --with-x=$with_x $have_x
19424XML --with-xml=$with_xml $have_xml
19425ZLIB --with-zlib=$with_zlib $have_zlib
19426
19427X11 Configuration:
19428 X_CFLAGS = $X_CFLAGS
19429 X_PRE_LIBS = $X_PRE_LIBS
19430 X_LIBS = $X_LIBS
19431 X_EXTRA_LIBS = $X_EXTRA_LIBS
19432
19433Options used to compile and link:
19434 PREFIX = $PREFIX_DIR
19435 EXEC-PREFIX = $EXEC_PREFIX_DIR
19436 VERSION = $PACKAGE_VERSION
19437 CC = $CC
19438 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000019439 CPPFLAGS = $MAGICK_CPPFLAGS
19440 PCFLAGS = $MAGICK_PCFLAGS
19441 DEFS = $DEFS
19442 LDFLAGS = $LDFLAGS
19443 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
19444 LIBS = $MAGICK_LIBS
19445 CXX = $CXX
19446 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000019447 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000019448" >&5
19449$as_echo "
19450ImageMagick is configured as follows. Please verify that this configuration
19451matches your expectations.
19452
19453Host system type: $host
19454Build system type: $build
19455
19456 Option Value
19457-------------------------------------------------------------------------------
19458Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
19459Static libraries --enable-static=$enable_static $libtool_build_static_libs
19460Module support --with-modules=$with_modules $with_modules
19461GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
19462Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
19463High Dynamic Range Imagery
19464 --enable-hdri=$enable_hdri $enable_hdri
19465
19466Delegate Configuration:
19467BZLIB --with-bzlib=$with_bzlib $have_bzlib
19468Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000019469Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000019470DJVU --with-djvu=$with_djvu $have_djvu
19471DPS --with-dps=$with_dps $have_dps
19472FFTW --with-fftw=$with_fftw $have_fftw
19473FlashPIX --with-fpx=$with_fpx $have_fpx
19474FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
19475FreeType --with-freetype=$with_freetype $have_freetype
19476GhostPCL None $PCLDelegate ($PCLVersion)
19477GhostXPS None $XPSDelegate ($XPSVersion)
19478Ghostscript None $PSDelegate ($GSVersion)
19479Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
19480Ghostscript lib --with-gslib=$with_gslib $have_gslib
19481Graphviz --with-gvc=$with_gvc $have_gvc
19482JBIG --with-jbig=$with_jbig $have_jbig
19483JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
19484JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000019485LCMS v1 --with-lcms=$with_lcms $have_lcms
19486LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000019487LQR --with-lqr=$with_lqr $have_lqr
19488Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
19489OpenEXR --with-openexr=$with_openexr $have_openexr
19490PERL --with-perl=$with_perl $have_perl
19491PNG --with-png=$with_png $have_png
19492RSVG --with-rsvg=$with_rsvg $have_rsvg
19493TIFF --with-tiff=$with_tiff $have_tiff
19494Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
19495WMF --with-wmf=$with_wmf $have_wmf
19496X11 --with-x=$with_x $have_x
19497XML --with-xml=$with_xml $have_xml
19498ZLIB --with-zlib=$with_zlib $have_zlib
19499
19500X11 Configuration:
19501 X_CFLAGS = $X_CFLAGS
19502 X_PRE_LIBS = $X_PRE_LIBS
19503 X_LIBS = $X_LIBS
19504 X_EXTRA_LIBS = $X_EXTRA_LIBS
19505
19506Options used to compile and link:
19507 PREFIX = $PREFIX_DIR
19508 EXEC-PREFIX = $EXEC_PREFIX_DIR
19509 VERSION = $PACKAGE_VERSION
19510 CC = $CC
19511 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000019512 CPPFLAGS = $MAGICK_CPPFLAGS
19513 PCFLAGS = $MAGICK_PCFLAGS
19514 DEFS = $DEFS
19515 LDFLAGS = $LDFLAGS
19516 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
19517 LIBS = $MAGICK_LIBS
19518 CXX = $CXX
19519 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000019520 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000019521" >&6; }