blob: 601a9b09f4077f5c529402bf45f87b69807db0fa [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy0805e062011-01-30 02:56:36 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.7.
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,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, 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
cristy0c60a692010-11-04 01:09:47 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
cristy98dddb52010-11-04 00:30:15 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristy98dddb52010-11-04 00:30:15 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristy98dddb52010-11-04 00:30:15 +0000382 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $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 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy73bd4a52010-10-05 11:24:23 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy73bd4a52010-10-05 11:24:23 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristy0c60a692010-11-04 01:09:47 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000550# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristy0805e062011-01-30 02:56:36 +0000569PACKAGE_VERSION='6.6.7'
570PACKAGE_STRING='ImageMagick 6.6.7'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000657ZIP
cristy73bd4a52010-10-05 11:24:23 +0000658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000660P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy23f7a922010-10-11 00:27:48 +0000676WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000677UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000678TXTDelegate
679SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000680RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000681RMDelegate
682RLEEncodeDelegate
683PSDelegate
684POVDelegate
685PGPDecodeDelegate
686PCLDelegate
687MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000688MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000689MPEGEncodeDelegate
690MPEGDecodeDelegate
691MANDelegate
692LaunchDelegate
693LZWEncodeDelegate
694LZWDecodeDelegate
695LPRDelegate
696LPDelegate
697ILBMEncodeDelegate
698ILBMDecodeDelegate
699HTMLDecodeDelegate
700HPGLDecodeDelegate
701HDRDecodeDelegate
702GnuplotDecodeDelegate
703MogrifyDelegate
704DisplayDelegate
705ConvertDelegate
706FIGDecodeDelegate
707EditorDelegate
708EchoDelegate
709DVIDecodeDelegate
710GVCDecodeDelegate
711DNGDecodeDelegate
712CatDelegate
713CGMDecodeDelegate
714BrowseDelegate
715BZIPDelegate
716BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000734TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000750OPENEXR_LIBS
751OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000752LZMA_LIBS
753LZMA_DELEGATE_FALSE
754LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000755LQR_DELEGATE_FALSE
756LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000757LQR_LIBS
758LQR_CFLAGS
759LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760LCMS_DELEGATE_FALSE
761LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000762JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763JP2_DELEGATE_FALSE
764JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766JPEG_DELEGATE_FALSE
767JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000768JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769JBIG_DELEGATE_FALSE
770JBIG_DELEGATE_TRUE
771GVC_DELEGATE_FALSE
772GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773GVC_LIBS
774GVC_CFLAGS
775GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776GS_DELEGATE_FALSE
777GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000778FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000779FREETYPE_DELEGATE_FALSE
780FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000782FONTCONFIG_DELEGATE_FALSE
783FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000784FONTCONFIG_LIBS
785FONTCONFIG_CFLAGS
786FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FPX_DELEGATE_FALSE
788FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000790FFTW_DELEGATE_FALSE
791FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793DJVU_DELEGATE_FALSE
794DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796DPS_DELEGATE_FALSE
797DPS_DELEGATE_TRUE
798AUTOTRACE_DELEGATE_FALSE
799AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800AUTOTRACE_LIBS
801AUTOTRACE_CFLAGS
802LIB_DL
803ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804ZLIB_DELEGATE_FALSE
805ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806XEXT_LIBS
807X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808X11_DELEGATE_FALSE
809X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810X_EXTRA_LIBS
811X_LIBS
812X_PRE_LIBS
813X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000814XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000815BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816BZLIB_DELEGATE_FALSE
817BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818CCMALLOCDelegate
819UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820HasUMEM_FALSE
821HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822THREAD_LIBS
823GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824WITH_MAGICK_PLUS_PLUS_FALSE
825WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000827MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000828POW_LIB
829LIBOBJS
830UINTPTR_T
831UINTMAX_T
832UINT64_T
833INT64_T
834UINT32_T
835INT32_T
836UINT16_T
837INT16_T
838UINT8_T
839INT8_T
840LIBRARY_EXTRA_CPPFLAGS
841MODULE_EXTRA_CPPFLAGS
842LIBSTDCLDFLAGS
843PERL_MAKE_OPTIONS
844QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000845MAINT
846MAINTAINER_MODE_FALSE
847MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848MAGICK_HDRI
849DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000850WITH_LTDL_FALSE
851WITH_LTDL_TRUE
852WITH_MODULES_FALSE
853WITH_MODULES_TRUE
854WITH_SHARED_LIBS_FALSE
855WITH_SHARED_LIBS_TRUE
856LTDLOPEN
857LT_CONFIG_H
858CONVENIENCE_LTDL_FALSE
859CONVENIENCE_LTDL_TRUE
860INSTALL_LTDL_FALSE
861INSTALL_LTDL_TRUE
862ARGZ_H
863sys_symbol_underscore
864LIBADD_DL
865LT_DLPREOPEN
866LIBADD_DLD_LINK
867LIBADD_SHL_LOAD
868LIBADD_DLOPEN
869LT_DLLOADERS
870INCLTDL
871LTDLINCL
872LTDLDEPS
873LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000874LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000875CXXCPP
876OTOOL64
877OTOOL
878LIPO
879NMEDIT
880DSYMUTIL
cristy73bd4a52010-10-05 11:24:23 +0000881RANLIB
882AR
883NM
884ac_ct_DUMPBIN
885DUMPBIN
886LIBTOOL
887OBJDUMP
888DLLTOOL
889AS
cristy3ed852e2009-09-05 21:47:34 +0000890LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000891CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000892CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000893OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000894PTHREAD_CFLAGS
895PTHREAD_LIBS
896PTHREAD_CC
897ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000898WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000899USING_CL_FALSE
900USING_CL_TRUE
901CYGWIN_BUILD_FALSE
902CYGWIN_BUILD_TRUE
903WIN32_NATIVE_BUILD_FALSE
904WIN32_NATIVE_BUILD_TRUE
905WINGDI32_DELEGATE_FALSE
906WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000907GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000908PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000909LN_S
cristy3ed852e2009-09-05 21:47:34 +0000910LD
cristy73bd4a52010-10-05 11:24:23 +0000911FGREP
912SED
913am__fastdepCXX_FALSE
914am__fastdepCXX_TRUE
915CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000916ac_ct_CXX
917CXXFLAGS
918CXX
cristya0b81c32010-01-22 02:54:33 +0000919EGREP
920GREP
921CPP
cristy73bd4a52010-10-05 11:24:23 +0000922am__fastdepCC_FALSE
923am__fastdepCC_TRUE
924CCDEPMODE
925AMDEPBACKSLASH
926AMDEP_FALSE
927AMDEP_TRUE
928am__quote
929am__include
930DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000931OBJEXT
932EXEEXT
933ac_ct_CC
934CPPFLAGS
935LDFLAGS
936CFLAGS
937CC
938DIRSEP
939MAGICK_FILTER_MODULE_PATH
940MAGICK_CONFIGURE_BUILD_PATH
941MAGICK_CONFIGURE_SRC_PATH
942MAGICK_CODER_MODULE_PATH
943MAN_DIR
944INFO_DIR
945PERSISTINCLUDE_DIR
946INCLUDE_DIR
947LIB_DIR
948LOCALSTATE_DIR
949SHAREDSTATE_DIR
950SYSCONF_DIR
951DATA_DIR
952LIBEXEC_DIR
953SBIN_DIR
954BIN_DIR
955EXEC_PREFIX_DIR
956PREFIX_DIR
957CONFIG_STATUS_DEPENDENCIES
958MAGICK_LIB_VERSION_NUMBER
959MAGICK_LIB_VERSION_TEXT
960MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000961AM_BACKSLASH
962AM_DEFAULT_VERBOSITY
963am__untar
964am__tar
965AMTAR
966am__leading_dot
967SET_MAKE
968AWK
969mkdir_p
970MKDIR_P
971INSTALL_STRIP_PROGRAM
972STRIP
973install_sh
974MAKEINFO
975AUTOHEADER
976AUTOMAKE
977AUTOCONF
978ACLOCAL
979VERSION
980PACKAGE
981CYGPATH_W
982am__isrc
983INSTALL_DATA
984INSTALL_SCRIPT
985INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000986PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000987PACKAGE_RELEASE_DATE
988PACKAGE_LIB_VERSION_NUMBER
989PACKAGE_LIB_VERSION
990PACKAGE_CHANGE_DATE
991PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000992MAGICK_LIBRARY_VERSION_INFO
993MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000994MAGICK_LIBRARY_AGE
995MAGICK_LIBRARY_REVISION
996MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000997MAGICK_TARGET_OS
998MAGICK_TARGET_VENDOR
999MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001000target_os
1001target_vendor
1002target_cpu
1003target
1004host_os
1005host_vendor
1006host_cpu
1007host
1008build_os
1009build_vendor
1010build_cpu
1011build
1012CONFIGURE_ARGS
1013DISTCHECK_CONFIG_FLAGS
1014target_alias
1015host_alias
1016build_alias
1017LIBS
1018ECHO_T
1019ECHO_N
1020ECHO_C
1021DEFS
1022mandir
1023localedir
1024libdir
1025psdir
1026pdfdir
1027dvidir
1028htmldir
1029infodir
1030docdir
1031oldincludedir
1032includedir
1033localstatedir
1034sharedstatedir
1035sysconfdir
1036datadir
1037datarootdir
1038libexecdir
1039sbindir
1040bindir
1041program_transform_name
1042prefix
1043exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001044PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001045PACKAGE_BUGREPORT
1046PACKAGE_STRING
1047PACKAGE_VERSION
1048PACKAGE_TARNAME
1049PACKAGE_NAME
1050PATH_SEPARATOR
1051SHELL'
1052ac_subst_files=''
1053ac_user_opts='
1054enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001055enable_silent_rules
1056enable_dependency_tracking
1057with_gnu_ld
1058with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001059enable_bounds_checking
1060enable_osx_universal_binary
1061with_threads
1062enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001063enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001064enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001065enable_shared
1066enable_static
1067with_pic
1068enable_fast_install
1069enable_libtool_lock
1070with_included_ltdl
1071with_ltdl_include
1072with_ltdl_lib
1073enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001074with_modules
1075enable_delegate_build
1076enable_deprecated
1077enable_installed
1078enable_cipher
1079enable_embeddable
1080enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001081enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001082enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001083enable_ccmalloc
1084enable_efence
1085enable_prof
1086enable_gprof
1087enable_gcov
1088with_method_prefix
1089with_quantum_depth
1090with_cache
1091with_frozenpaths
1092with_magick_plus_plus
1093with_perl
1094with_perl_options
1095with_umem
1096with_libstdc
1097with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001098with_x
cristy3ed852e2009-09-05 21:47:34 +00001099with_zlib
1100with_autotrace
1101with_dps
1102with_djvu
cristy430a7312010-01-21 20:44:04 +00001103with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001104with_fftw
1105with_fpx
1106with_fontconfig
1107with_freetype
1108with_gslib
1109with_fontpath
1110with_gs_font_dir
1111with_gvc
1112with_jbig
1113with_jpeg
1114with_jp2
1115with_lcms
cristy71203402010-06-18 13:12:03 +00001116with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001117with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001118with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001119with_openexr
1120with_png
1121with_rsvg
1122with_tiff
1123with_windows_font_dir
1124with_wmf
1125with_xml
1126'
1127 ac_precious_vars='build_alias
1128host_alias
1129target_alias
1130CC
1131CFLAGS
1132LDFLAGS
1133LIBS
1134CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001135CPP
cristy3ed852e2009-09-05 21:47:34 +00001136CXX
1137CXXFLAGS
1138CCC
cristy73bd4a52010-10-05 11:24:23 +00001139PKG_CONFIG
1140CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001141XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001142AUTOTRACE_CFLAGS
1143AUTOTRACE_LIBS
1144FONTCONFIG_CFLAGS
1145FONTCONFIG_LIBS
1146GVC_CFLAGS
1147GVC_LIBS
1148LQR_CFLAGS
1149LQR_LIBS
1150OPENEXR_CFLAGS
1151OPENEXR_LIBS
1152RSVG_CFLAGS
1153RSVG_LIBS
1154CAIRO_SVG_CFLAGS
1155CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001156
1157
1158# Initialize some variables set by options.
1159ac_init_help=
1160ac_init_version=false
1161ac_unrecognized_opts=
1162ac_unrecognized_sep=
1163# The variables have the same names as the options, with
1164# dashes changed to underlines.
1165cache_file=/dev/null
1166exec_prefix=NONE
1167no_create=
1168no_recursion=
1169prefix=NONE
1170program_prefix=NONE
1171program_suffix=NONE
1172program_transform_name=s,x,x,
1173silent=
1174site=
1175srcdir=
1176verbose=
1177x_includes=NONE
1178x_libraries=NONE
1179
1180# Installation directory options.
1181# These are left unexpanded so users can "make install exec_prefix=/foo"
1182# and all the variables that are supposed to be based on exec_prefix
1183# by default will actually change.
1184# Use braces instead of parens because sh, perl, etc. also accept them.
1185# (The list follows the same order as the GNU Coding Standards.)
1186bindir='${exec_prefix}/bin'
1187sbindir='${exec_prefix}/sbin'
1188libexecdir='${exec_prefix}/libexec'
1189datarootdir='${prefix}/share'
1190datadir='${datarootdir}'
1191sysconfdir='${prefix}/etc'
1192sharedstatedir='${prefix}/com'
1193localstatedir='${prefix}/var'
1194includedir='${prefix}/include'
1195oldincludedir='/usr/include'
1196docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1197infodir='${datarootdir}/info'
1198htmldir='${docdir}'
1199dvidir='${docdir}'
1200pdfdir='${docdir}'
1201psdir='${docdir}'
1202libdir='${exec_prefix}/lib'
1203localedir='${datarootdir}/locale'
1204mandir='${datarootdir}/man'
1205
1206ac_prev=
1207ac_dashdash=
1208for ac_option
1209do
1210 # If the previous option needs an argument, assign it.
1211 if test -n "$ac_prev"; then
1212 eval $ac_prev=\$ac_option
1213 ac_prev=
1214 continue
1215 fi
1216
1217 case $ac_option in
1218 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1219 *) ac_optarg=yes ;;
1220 esac
1221
1222 # Accept the important Cygnus configure options, so we can diagnose typos.
1223
1224 case $ac_dashdash$ac_option in
1225 --)
1226 ac_dashdash=yes ;;
1227
1228 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1229 ac_prev=bindir ;;
1230 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1231 bindir=$ac_optarg ;;
1232
1233 -build | --build | --buil | --bui | --bu)
1234 ac_prev=build_alias ;;
1235 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1236 build_alias=$ac_optarg ;;
1237
1238 -cache-file | --cache-file | --cache-fil | --cache-fi \
1239 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1240 ac_prev=cache_file ;;
1241 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1242 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1243 cache_file=$ac_optarg ;;
1244
1245 --config-cache | -C)
1246 cache_file=config.cache ;;
1247
1248 -datadir | --datadir | --datadi | --datad)
1249 ac_prev=datadir ;;
1250 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1251 datadir=$ac_optarg ;;
1252
1253 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1254 | --dataroo | --dataro | --datar)
1255 ac_prev=datarootdir ;;
1256 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1257 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1258 datarootdir=$ac_optarg ;;
1259
1260 -disable-* | --disable-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001264 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269"enable_$ac_useropt"
1270"*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval enable_$ac_useropt=no ;;
1275
1276 -docdir | --docdir | --docdi | --doc | --do)
1277 ac_prev=docdir ;;
1278 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1279 docdir=$ac_optarg ;;
1280
1281 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1282 ac_prev=dvidir ;;
1283 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1284 dvidir=$ac_optarg ;;
1285
1286 -enable-* | --enable-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001290 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295"enable_$ac_useropt"
1296"*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval enable_$ac_useropt=\$ac_optarg ;;
1301
1302 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1303 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1304 | --exec | --exe | --ex)
1305 ac_prev=exec_prefix ;;
1306 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1307 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1308 | --exec=* | --exe=* | --ex=*)
1309 exec_prefix=$ac_optarg ;;
1310
1311 -gas | --gas | --ga | --g)
1312 # Obsolete; use --with-gas.
1313 with_gas=yes ;;
1314
1315 -help | --help | --hel | --he | -h)
1316 ac_init_help=long ;;
1317 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1318 ac_init_help=recursive ;;
1319 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1320 ac_init_help=short ;;
1321
1322 -host | --host | --hos | --ho)
1323 ac_prev=host_alias ;;
1324 -host=* | --host=* | --hos=* | --ho=*)
1325 host_alias=$ac_optarg ;;
1326
1327 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1328 ac_prev=htmldir ;;
1329 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1330 | --ht=*)
1331 htmldir=$ac_optarg ;;
1332
1333 -includedir | --includedir | --includedi | --included | --include \
1334 | --includ | --inclu | --incl | --inc)
1335 ac_prev=includedir ;;
1336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1337 | --includ=* | --inclu=* | --incl=* | --inc=*)
1338 includedir=$ac_optarg ;;
1339
1340 -infodir | --infodir | --infodi | --infod | --info | --inf)
1341 ac_prev=infodir ;;
1342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1343 infodir=$ac_optarg ;;
1344
1345 -libdir | --libdir | --libdi | --libd)
1346 ac_prev=libdir ;;
1347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1348 libdir=$ac_optarg ;;
1349
1350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1351 | --libexe | --libex | --libe)
1352 ac_prev=libexecdir ;;
1353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1354 | --libexe=* | --libex=* | --libe=*)
1355 libexecdir=$ac_optarg ;;
1356
1357 -localedir | --localedir | --localedi | --localed | --locale)
1358 ac_prev=localedir ;;
1359 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1360 localedir=$ac_optarg ;;
1361
1362 -localstatedir | --localstatedir | --localstatedi | --localstated \
1363 | --localstate | --localstat | --localsta | --localst | --locals)
1364 ac_prev=localstatedir ;;
1365 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1366 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1367 localstatedir=$ac_optarg ;;
1368
1369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1370 ac_prev=mandir ;;
1371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1372 mandir=$ac_optarg ;;
1373
1374 -nfp | --nfp | --nf)
1375 # Obsolete; use --without-fp.
1376 with_fp=no ;;
1377
1378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1379 | --no-cr | --no-c | -n)
1380 no_create=yes ;;
1381
1382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1384 no_recursion=yes ;;
1385
1386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1388 | --oldin | --oldi | --old | --ol | --o)
1389 ac_prev=oldincludedir ;;
1390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1393 oldincludedir=$ac_optarg ;;
1394
1395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1396 ac_prev=prefix ;;
1397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1398 prefix=$ac_optarg ;;
1399
1400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1401 | --program-pre | --program-pr | --program-p)
1402 ac_prev=program_prefix ;;
1403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1405 program_prefix=$ac_optarg ;;
1406
1407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1408 | --program-suf | --program-su | --program-s)
1409 ac_prev=program_suffix ;;
1410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1412 program_suffix=$ac_optarg ;;
1413
1414 -program-transform-name | --program-transform-name \
1415 | --program-transform-nam | --program-transform-na \
1416 | --program-transform-n | --program-transform- \
1417 | --program-transform | --program-transfor \
1418 | --program-transfo | --program-transf \
1419 | --program-trans | --program-tran \
1420 | --progr-tra | --program-tr | --program-t)
1421 ac_prev=program_transform_name ;;
1422 -program-transform-name=* | --program-transform-name=* \
1423 | --program-transform-nam=* | --program-transform-na=* \
1424 | --program-transform-n=* | --program-transform-=* \
1425 | --program-transform=* | --program-transfor=* \
1426 | --program-transfo=* | --program-transf=* \
1427 | --program-trans=* | --program-tran=* \
1428 | --progr-tra=* | --program-tr=* | --program-t=*)
1429 program_transform_name=$ac_optarg ;;
1430
1431 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1432 ac_prev=pdfdir ;;
1433 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1434 pdfdir=$ac_optarg ;;
1435
1436 -psdir | --psdir | --psdi | --psd | --ps)
1437 ac_prev=psdir ;;
1438 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1439 psdir=$ac_optarg ;;
1440
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1443 silent=yes ;;
1444
1445 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1446 ac_prev=sbindir ;;
1447 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1448 | --sbi=* | --sb=*)
1449 sbindir=$ac_optarg ;;
1450
1451 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1452 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1453 | --sharedst | --shareds | --shared | --share | --shar \
1454 | --sha | --sh)
1455 ac_prev=sharedstatedir ;;
1456 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1457 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1458 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1459 | --sha=* | --sh=*)
1460 sharedstatedir=$ac_optarg ;;
1461
1462 -site | --site | --sit)
1463 ac_prev=site ;;
1464 -site=* | --site=* | --sit=*)
1465 site=$ac_optarg ;;
1466
1467 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1468 ac_prev=srcdir ;;
1469 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1470 srcdir=$ac_optarg ;;
1471
1472 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1473 | --syscon | --sysco | --sysc | --sys | --sy)
1474 ac_prev=sysconfdir ;;
1475 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1476 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1477 sysconfdir=$ac_optarg ;;
1478
1479 -target | --target | --targe | --targ | --tar | --ta | --t)
1480 ac_prev=target_alias ;;
1481 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1482 target_alias=$ac_optarg ;;
1483
1484 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1485 verbose=yes ;;
1486
1487 -version | --version | --versio | --versi | --vers | -V)
1488 ac_init_version=: ;;
1489
1490 -with-* | --with-*)
1491 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1492 # Reject names that are not valid shell variable names.
1493 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001494 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001495 ac_useropt_orig=$ac_useropt
1496 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1497 case $ac_user_opts in
1498 *"
1499"with_$ac_useropt"
1500"*) ;;
1501 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1502 ac_unrecognized_sep=', ';;
1503 esac
1504 eval with_$ac_useropt=\$ac_optarg ;;
1505
1506 -without-* | --without-*)
1507 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001510 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1514 *"
1515"with_$ac_useropt"
1516"*) ;;
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1519 esac
1520 eval with_$ac_useropt=no ;;
1521
1522 --x)
1523 # Obsolete; use --with-x.
1524 with_x=yes ;;
1525
1526 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1527 | --x-incl | --x-inc | --x-in | --x-i)
1528 ac_prev=x_includes ;;
1529 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1530 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1531 x_includes=$ac_optarg ;;
1532
1533 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1534 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1535 ac_prev=x_libraries ;;
1536 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1537 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1538 x_libraries=$ac_optarg ;;
1539
cristy98dddb52010-11-04 00:30:15 +00001540 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1541Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001542 ;;
1543
1544 *=*)
1545 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1546 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001547 case $ac_envvar in #(
1548 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001549 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001550 esac
cristy3ed852e2009-09-05 21:47:34 +00001551 eval $ac_envvar=\$ac_optarg
1552 export $ac_envvar ;;
1553
1554 *)
1555 # FIXME: should be removed in autoconf 3.0.
1556 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1557 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1558 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1559 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1560 ;;
1561
1562 esac
1563done
1564
1565if test -n "$ac_prev"; then
1566 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001567 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001568fi
1569
1570if test -n "$ac_unrecognized_opts"; then
1571 case $enable_option_checking in
1572 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001573 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001574 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1575 esac
1576fi
1577
1578# Check all directory arguments for consistency.
1579for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1580 datadir sysconfdir sharedstatedir localstatedir includedir \
1581 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1582 libdir localedir mandir
1583do
1584 eval ac_val=\$$ac_var
1585 # Remove trailing slashes.
1586 case $ac_val in
1587 */ )
1588 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1589 eval $ac_var=\$ac_val;;
1590 esac
1591 # Be sure to have absolute directory names.
1592 case $ac_val in
1593 [\\/$]* | ?:[\\/]* ) continue;;
1594 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1595 esac
cristy98dddb52010-11-04 00:30:15 +00001596 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001597done
1598
1599# There might be people who depend on the old broken behavior: `$host'
1600# used to hold the argument of --host etc.
1601# FIXME: To remove some day.
1602build=$build_alias
1603host=$host_alias
1604target=$target_alias
1605
1606# FIXME: To remove some day.
1607if test "x$host_alias" != x; then
1608 if test "x$build_alias" = x; then
1609 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001610 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1611 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001612 elif test "x$build_alias" != "x$host_alias"; then
1613 cross_compiling=yes
1614 fi
1615fi
1616
1617ac_tool_prefix=
1618test -n "$host_alias" && ac_tool_prefix=$host_alias-
1619
1620test "$silent" = yes && exec 6>/dev/null
1621
1622
1623ac_pwd=`pwd` && test -n "$ac_pwd" &&
1624ac_ls_di=`ls -di .` &&
1625ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001626 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001627test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001628 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001629
1630
1631# Find the source files, if location was not specified.
1632if test -z "$srcdir"; then
1633 ac_srcdir_defaulted=yes
1634 # Try the directory containing this script, then the parent directory.
1635 ac_confdir=`$as_dirname -- "$as_myself" ||
1636$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1637 X"$as_myself" : 'X\(//\)[^/]' \| \
1638 X"$as_myself" : 'X\(//\)$' \| \
1639 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1640$as_echo X"$as_myself" |
1641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1642 s//\1/
1643 q
1644 }
1645 /^X\(\/\/\)[^/].*/{
1646 s//\1/
1647 q
1648 }
1649 /^X\(\/\/\)$/{
1650 s//\1/
1651 q
1652 }
1653 /^X\(\/\).*/{
1654 s//\1/
1655 q
1656 }
1657 s/.*/./; q'`
1658 srcdir=$ac_confdir
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1660 srcdir=..
1661 fi
1662else
1663 ac_srcdir_defaulted=no
1664fi
1665if test ! -r "$srcdir/$ac_unique_file"; then
1666 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001667 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001668fi
1669ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1670ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001671 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001672 pwd)`
1673# When building in place, set srcdir=.
1674if test "$ac_abs_confdir" = "$ac_pwd"; then
1675 srcdir=.
1676fi
1677# Remove unnecessary trailing slashes from srcdir.
1678# Double slashes in file names in object file debugging info
1679# mess up M-x gdb in Emacs.
1680case $srcdir in
1681*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1682esac
1683for ac_var in $ac_precious_vars; do
1684 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1685 eval ac_env_${ac_var}_value=\$${ac_var}
1686 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1687 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1688done
1689
1690#
1691# Report the --help message.
1692#
1693if test "$ac_init_help" = "long"; then
1694 # Omit some internal or obsolete options to make the list less imposing.
1695 # This message is too long to be a string in the A/UX 3.1 sh.
1696 cat <<_ACEOF
cristy0805e062011-01-30 02:56:36 +00001697\`configure' configures ImageMagick 6.6.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001698
1699Usage: $0 [OPTION]... [VAR=VALUE]...
1700
1701To assign environment variables (e.g., CC, CFLAGS...), specify them as
1702VAR=VALUE. See below for descriptions of some of the useful variables.
1703
1704Defaults for the options are specified in brackets.
1705
1706Configuration:
1707 -h, --help display this help and exit
1708 --help=short display options specific to this package
1709 --help=recursive display the short help of all the included packages
1710 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001711 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001712 --cache-file=FILE cache test results in FILE [disabled]
1713 -C, --config-cache alias for \`--cache-file=config.cache'
1714 -n, --no-create do not create output files
1715 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1716
1717Installation directories:
1718 --prefix=PREFIX install architecture-independent files in PREFIX
1719 [$ac_default_prefix]
1720 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1721 [PREFIX]
1722
1723By default, \`make install' will install all the files in
1724\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1725an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1726for instance \`--prefix=\$HOME'.
1727
1728For better control, use the options below.
1729
1730Fine tuning of the installation directories:
1731 --bindir=DIR user executables [EPREFIX/bin]
1732 --sbindir=DIR system admin executables [EPREFIX/sbin]
1733 --libexecdir=DIR program executables [EPREFIX/libexec]
1734 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1735 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1736 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1737 --libdir=DIR object code libraries [EPREFIX/lib]
1738 --includedir=DIR C header files [PREFIX/include]
1739 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1740 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1741 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1742 --infodir=DIR info documentation [DATAROOTDIR/info]
1743 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1744 --mandir=DIR man documentation [DATAROOTDIR/man]
1745 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1746 --htmldir=DIR html documentation [DOCDIR]
1747 --dvidir=DIR dvi documentation [DOCDIR]
1748 --pdfdir=DIR pdf documentation [DOCDIR]
1749 --psdir=DIR ps documentation [DOCDIR]
1750_ACEOF
1751
1752 cat <<\_ACEOF
1753
cristy73bd4a52010-10-05 11:24:23 +00001754Program names:
1755 --program-prefix=PREFIX prepend PREFIX to installed program names
1756 --program-suffix=SUFFIX append SUFFIX to installed program names
1757 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1758
cristy3ed852e2009-09-05 21:47:34 +00001759X features:
1760 --x-includes=DIR X include files are in DIR
1761 --x-libraries=DIR X library files are in DIR
1762
1763System types:
1764 --build=BUILD configure for building on BUILD [guessed]
1765 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1766 --target=TARGET configure for building compilers for TARGET [HOST]
1767_ACEOF
1768fi
1769
1770if test -n "$ac_init_help"; then
1771 case $ac_init_help in
cristy0805e062011-01-30 02:56:36 +00001772 short | recursive ) echo "Configuration of ImageMagick 6.6.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001773 esac
1774 cat <<\_ACEOF
1775
1776Optional Features:
1777 --disable-option-checking ignore unrecognized --enable/--with options
1778 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1779 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001780 --enable-silent-rules less verbose build output (undo: `make V=1')
1781 --disable-silent-rules verbose build output (undo: `make V=0')
1782 --disable-dependency-tracking speeds up one-time build
1783 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001784 --bounds-checking enable run-time bounds-checking
1785 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001786 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001787 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001788 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001789 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001790 --enable-shared[=PKGS] build shared libraries [default=yes]
1791 --enable-static[=PKGS] build static libraries [default=yes]
1792 --enable-fast-install[=PKGS]
1793 optimize for fast installation [default=yes]
1794 --disable-libtool-lock avoid locking (might break parallel builds)
1795 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001796 --enable-delegate-build look for delegate libraries in build directory
1797 --disable-deprecated exclude deprecated methods in MagickCore and
1798 MagickWand API's
1799 --disable-installed Formally install ImageMagick under PREFIX
1800 --disable-cipher disable enciphering and deciphering image pixels
1801 --enable-embeddable enable self-contained, embeddable,
1802 zero-configuration ImageMagick
1803 --enable-hdri accurately represent the wide range of intensity
1804 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001805 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001806 --enable-maintainer-mode enable make rules and dependencies not useful
1807 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001808 --enable-ccmalloc enable 'ccmalloc' memory debug support
1809 --enable-efence enable 'efence' memory debug support
1810 --enable-prof enable 'prof' profiling support
1811 --enable-gprof enable 'gprof' profiling support
1812 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001813 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001814
1815Optional Packages:
1816 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1817 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001818 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1819 --with-dmalloc use dmalloc, as in
1820 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001821 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001822 --with-pic try to use only PIC/non-PIC objects [default=use
1823 both]
1824 --with-included-ltdl use the GNU ltdl sources included here
1825 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1826 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001827 --with-modules enable building dynamically loadable modules
1828 --with-method-prefix=PREFIX
1829 prefix MagickCore API methods
1830 --with-quantum-depth=DEPTH
1831 number of bits in a pixel quantum (default 16)
1832 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1833 memory)
1834 --with-frozenpaths freeze delegate paths
1835 --without-magick-plus-plus
1836 disable build/install of Magick++
1837 --with-perl enable build/install of PerlMagick
1838 --with-perl-options=OPTIONS
1839 options to pass on command-line when generating
1840 PerlMagick's build file
1841 --with-umem enable umem memory allocation library support
1842 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1843 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001844 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001845 --without-zlib disable ZLIB support
1846 --with-autotrace enable autotrace support
1847 --without-dps disable Display Postscript support
1848 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001849 --with-dejavu-font-dir=DIR
1850 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001851 --without-fftw disable FFTW support
1852 --without-fpx disable FlashPIX support
1853 --without-fontconfig disable fontconfig support
1854 --without-freetype disable Freetype support
1855 --without-gslib enable Ghostscript library support
1856 --with-fontpath=DIR prepend to default font search path
1857 --with-gs-font-dir=DIR Ghostscript font directory
1858 --without-gvc disable GVC support
1859 --without-jbig disable JBIG support
1860 --without-jpeg disable JPEG support
1861 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001862 --without-lcms disable lcms (v1.1X) support
1863 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001864 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001865 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001866 --without-openexr disable OpenEXR support
1867 --without-png disable PNG support
1868 --without-rsvg disable RSVG support
1869 --without-tiff disable TIFF support
1870 --with-windows-font-dir=DIR
1871 directory containing MS-Windows fonts
1872 --without-wmf disable WMF support
1873 --without-xml disable XML support
1874
1875Some influential environment variables:
1876 CC C compiler command
1877 CFLAGS C compiler flags
1878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1879 nonstandard directory <lib dir>
1880 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001881 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001882 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001883 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001884 CXX C++ compiler command
1885 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001886 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001887 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001888 XMKMF Path to xmkmf, Makefile generator for X Window System
1889 AUTOTRACE_CFLAGS
1890 C compiler flags for AUTOTRACE, overriding pkg-config
1891 AUTOTRACE_LIBS
1892 linker flags for AUTOTRACE, overriding pkg-config
1893 FONTCONFIG_CFLAGS
1894 C compiler flags for FONTCONFIG, overriding pkg-config
1895 FONTCONFIG_LIBS
1896 linker flags for FONTCONFIG, overriding pkg-config
1897 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1898 GVC_LIBS linker flags for GVC, overriding pkg-config
1899 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1900 LQR_LIBS linker flags for LQR, overriding pkg-config
1901 OPENEXR_CFLAGS
1902 C compiler flags for OPENEXR, overriding pkg-config
1903 OPENEXR_LIBS
1904 linker flags for OPENEXR, overriding pkg-config
1905 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1906 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1907 CAIRO_SVG_CFLAGS
1908 C compiler flags for CAIRO_SVG, overriding pkg-config
1909 CAIRO_SVG_LIBS
1910 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001911
1912Use these variables to override the choices made by `configure' or to help
1913it to find libraries and programs with nonstandard names/locations.
1914
1915Report bugs to <http://www.imagemagick.org>.
1916_ACEOF
1917ac_status=$?
1918fi
1919
1920if test "$ac_init_help" = "recursive"; then
1921 # If there are subdirs, report their specific --help.
1922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1923 test -d "$ac_dir" ||
1924 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1925 continue
1926 ac_builddir=.
1927
1928case "$ac_dir" in
1929.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1930*)
1931 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1932 # A ".." for each directory in $ac_dir_suffix.
1933 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1934 case $ac_top_builddir_sub in
1935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1937 esac ;;
1938esac
1939ac_abs_top_builddir=$ac_pwd
1940ac_abs_builddir=$ac_pwd$ac_dir_suffix
1941# for backward compatibility:
1942ac_top_builddir=$ac_top_build_prefix
1943
1944case $srcdir in
1945 .) # We are building in place.
1946 ac_srcdir=.
1947 ac_top_srcdir=$ac_top_builddir_sub
1948 ac_abs_top_srcdir=$ac_pwd ;;
1949 [\\/]* | ?:[\\/]* ) # Absolute name.
1950 ac_srcdir=$srcdir$ac_dir_suffix;
1951 ac_top_srcdir=$srcdir
1952 ac_abs_top_srcdir=$srcdir ;;
1953 *) # Relative name.
1954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1955 ac_top_srcdir=$ac_top_build_prefix$srcdir
1956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1957esac
1958ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1959
1960 cd "$ac_dir" || { ac_status=$?; continue; }
1961 # Check for guested configure.
1962 if test -f "$ac_srcdir/configure.gnu"; then
1963 echo &&
1964 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1965 elif test -f "$ac_srcdir/configure"; then
1966 echo &&
1967 $SHELL "$ac_srcdir/configure" --help=recursive
1968 else
1969 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1970 fi || ac_status=$?
1971 cd "$ac_pwd" || { ac_status=$?; break; }
1972 done
1973fi
1974
1975test -n "$ac_init_help" && exit $ac_status
1976if $ac_init_version; then
1977 cat <<\_ACEOF
cristy0805e062011-01-30 02:56:36 +00001978ImageMagick configure 6.6.7
cristy98dddb52010-11-04 00:30:15 +00001979generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001980
cristy98dddb52010-11-04 00:30:15 +00001981Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001982This configure script is free software; the Free Software Foundation
1983gives unlimited permission to copy, distribute and modify it.
1984_ACEOF
1985 exit
1986fi
cristy8b350f62009-11-15 23:12:43 +00001987
1988## ------------------------ ##
1989## Autoconf initialization. ##
1990## ------------------------ ##
1991
1992# ac_fn_c_try_compile LINENO
1993# --------------------------
1994# Try to compile conftest.$ac_ext, and return whether this succeeded.
1995ac_fn_c_try_compile ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext
1999 if { { ac_try="$ac_compile"
2000case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003esac
2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005$as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_compile") 2>conftest.err
2007 ac_status=$?
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2012 fi
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_c_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest.$ac_objext; then :
2018 ac_retval=0
2019else
2020 $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024fi
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002026 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002027
2028} # ac_fn_c_try_compile
2029
cristy95646052009-11-28 23:05:30 +00002030# ac_fn_c_try_cpp LINENO
2031# ----------------------
2032# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2033ac_fn_c_try_cpp ()
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_cpp conftest.$ac_ext"
2037case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040esac
2041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042$as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2044 ac_status=$?
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2049 fi
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } >/dev/null && {
2052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2053 test ! -s conftest.err
2054 }; then :
2055 ac_retval=0
2056else
2057 $as_echo "$as_me: failed program was:" >&5
2058sed 's/^/| /' conftest.$ac_ext >&5
2059
2060 ac_retval=1
2061fi
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063 as_fn_set_status $ac_retval
2064
2065} # ac_fn_c_try_cpp
2066
cristy8b350f62009-11-15 23:12:43 +00002067# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068# -------------------------------------------------------
2069# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070# the include files in INCLUDES and setting the cache variable VAR
2071# accordingly.
2072ac_fn_c_check_header_mongrel ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002075 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002078if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002079 $as_echo_n "(cached) " >&6
2080fi
2081eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084else
2085 # Is the header compilable?
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087$as_echo_n "checking $2 usability... " >&6; }
2088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090$4
2091#include <$2>
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_header_compiler=yes
2095else
2096 ac_header_compiler=no
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100$as_echo "$ac_header_compiler" >&6; }
2101
2102# Is the header present?
2103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104$as_echo_n "checking $2 presence... " >&6; }
2105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107#include <$2>
2108_ACEOF
2109if ac_fn_c_try_cpp "$LINENO"; then :
2110 ac_header_preproc=yes
2111else
2112 ac_header_preproc=no
2113fi
2114rm -f conftest.err conftest.$ac_ext
2115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116$as_echo "$ac_header_preproc" >&6; }
2117
2118# So? What about this header?
2119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2120 yes:no: )
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2125 ;;
2126 no:yes:* )
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2130$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2134$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002137( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002138## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002139## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002140 ) | sed "s/^/$as_me: WARNING: /" >&2
2141 ;;
2142esac
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002145if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002146 $as_echo_n "(cached) " >&6
2147else
2148 eval "$3=\$ac_header_compiler"
2149fi
2150eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153fi
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155
2156} # ac_fn_c_check_header_mongrel
2157
2158# ac_fn_c_try_run LINENO
2159# ----------------------
2160# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2161# that executables *can* be run.
2162ac_fn_c_try_run ()
2163{
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if { { ac_try="$ac_link"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_link") 2>&5
2173 ac_status=$?
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2176 { { case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179esac
2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181$as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_try") 2>&5
2183 ac_status=$?
2184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185 test $ac_status = 0; }; }; then :
2186 ac_retval=0
2187else
2188 $as_echo "$as_me: program exited with status $ac_status" >&5
2189 $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 ac_retval=$ac_status
2193fi
2194 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002196 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002197
2198} # ac_fn_c_try_run
2199
2200# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2201# -------------------------------------------------------
2202# Tests whether HEADER exists and can be compiled using the include files in
2203# INCLUDES, setting the cache variable VAR accordingly.
2204ac_fn_c_check_header_compile ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002209if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002210 $as_echo_n "(cached) " >&6
2211else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215#include <$2>
2216_ACEOF
2217if ac_fn_c_try_compile "$LINENO"; then :
2218 eval "$3=yes"
2219else
2220 eval "$3=no"
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223fi
2224eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226$as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228
2229} # ac_fn_c_check_header_compile
2230
cristya0b81c32010-01-22 02:54:33 +00002231# ac_fn_cxx_try_compile LINENO
2232# ----------------------------
2233# Try to compile conftest.$ac_ext, and return whether this succeeded.
2234ac_fn_cxx_try_compile ()
2235{
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext
2238 if { { ac_try="$ac_compile"
2239case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242esac
2243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244$as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_compile") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2251 fi
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_cxx_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest.$ac_objext; then :
2257 ac_retval=0
2258else
2259 $as_echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 ac_retval=1
2263fi
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 as_fn_set_status $ac_retval
2266
2267} # ac_fn_cxx_try_compile
2268
cristy8b350f62009-11-15 23:12:43 +00002269# ac_fn_c_try_link LINENO
2270# -----------------------
2271# Try to link conftest.$ac_ext, and return whether this succeeded.
2272ac_fn_c_try_link ()
2273{
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 rm -f conftest.$ac_objext conftest$ac_exeext
2276 if { { ac_try="$ac_link"
2277case "(($ac_try" in
2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279 *) ac_try_echo=$ac_try;;
2280esac
2281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282$as_echo "$ac_try_echo"; } >&5
2283 (eval "$ac_link") 2>conftest.err
2284 ac_status=$?
2285 if test -s conftest.err; then
2286 grep -v '^ *+' conftest.err >conftest.er1
2287 cat conftest.er1 >&5
2288 mv -f conftest.er1 conftest.err
2289 fi
2290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291 test $ac_status = 0; } && {
2292 test -z "$ac_c_werror_flag" ||
2293 test ! -s conftest.err
2294 } && test -s conftest$ac_exeext && {
2295 test "$cross_compiling" = yes ||
2296 $as_test_x conftest$ac_exeext
2297 }; then :
2298 ac_retval=0
2299else
2300 $as_echo "$as_me: failed program was:" >&5
2301sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 ac_retval=1
2304fi
2305 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2306 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2307 # interfere with the next link command; also delete a directory that is
2308 # left behind by Apple's compiler. We do this before executing the actions.
2309 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2310 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002311 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002312
2313} # ac_fn_c_try_link
2314
cristy73bd4a52010-10-05 11:24:23 +00002315# ac_fn_c_check_func LINENO FUNC VAR
2316# ----------------------------------
2317# Tests whether FUNC exists, setting the cache variable VAR accordingly
2318ac_fn_c_check_func ()
2319{
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002323if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002324 $as_echo_n "(cached) " >&6
2325else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h. */
2328/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2330#define $2 innocuous_$2
2331
2332/* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $2 (); below.
2334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 <limits.h> exists even on freestanding compilers. */
2336
2337#ifdef __STDC__
2338# include <limits.h>
2339#else
2340# include <assert.h>
2341#endif
2342
2343#undef $2
2344
2345/* Override any GCC internal prototype to avoid an error.
2346 Use char because int might match the return type of a GCC
2347 builtin and then its argument prototype would still apply. */
2348#ifdef __cplusplus
2349extern "C"
2350#endif
2351char $2 ();
2352/* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355#if defined __stub_$2 || defined __stub___$2
2356choke me
2357#endif
2358
2359int
2360main ()
2361{
2362return $2 ();
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367if ac_fn_c_try_link "$LINENO"; then :
2368 eval "$3=yes"
2369else
2370 eval "$3=no"
2371fi
2372rm -f core conftest.err conftest.$ac_objext \
2373 conftest$ac_exeext conftest.$ac_ext
2374fi
2375eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377$as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380} # ac_fn_c_check_func
2381
2382# ac_fn_cxx_try_cpp LINENO
2383# ------------------------
2384# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2385ac_fn_cxx_try_cpp ()
2386{
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 if { { ac_try="$ac_cpp conftest.$ac_ext"
2389case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392esac
2393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394$as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2396 ac_status=$?
2397 if test -s conftest.err; then
2398 grep -v '^ *+' conftest.err >conftest.er1
2399 cat conftest.er1 >&5
2400 mv -f conftest.er1 conftest.err
2401 fi
2402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403 test $ac_status = 0; } >/dev/null && {
2404 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2405 test ! -s conftest.err
2406 }; then :
2407 ac_retval=0
2408else
2409 $as_echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_retval=1
2413fi
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 as_fn_set_status $ac_retval
2416
2417} # ac_fn_cxx_try_cpp
2418
2419# ac_fn_cxx_try_link LINENO
2420# -------------------------
2421# Try to link conftest.$ac_ext, and return whether this succeeded.
2422ac_fn_cxx_try_link ()
2423{
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 rm -f conftest.$ac_objext conftest$ac_exeext
2426 if { { ac_try="$ac_link"
2427case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430esac
2431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432$as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link") 2>conftest.err
2434 ac_status=$?
2435 if test -s conftest.err; then
2436 grep -v '^ *+' conftest.err >conftest.er1
2437 cat conftest.er1 >&5
2438 mv -f conftest.er1 conftest.err
2439 fi
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } && {
2442 test -z "$ac_cxx_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest$ac_exeext && {
2445 test "$cross_compiling" = yes ||
2446 $as_test_x conftest$ac_exeext
2447 }; then :
2448 ac_retval=0
2449else
2450 $as_echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_retval=1
2454fi
2455 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457 # interfere with the next link command; also delete a directory that is
2458 # left behind by Apple's compiler. We do this before executing the actions.
2459 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 as_fn_set_status $ac_retval
2462
2463} # ac_fn_cxx_try_link
2464
cristy98dddb52010-11-04 00:30:15 +00002465# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2466# ---------------------------------------------
2467# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2468# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002469ac_fn_c_check_decl ()
2470{
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002472 as_decl_name=`echo $2|sed 's/ *(.*//'`
2473 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2475$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2476if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002477 $as_echo_n "(cached) " >&6
2478else
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480/* end confdefs.h. */
2481$4
2482int
2483main ()
2484{
cristy98dddb52010-11-04 00:30:15 +00002485#ifndef $as_decl_name
2486#ifdef __cplusplus
2487 (void) $as_decl_use;
2488#else
2489 (void) $as_decl_name;
2490#endif
cristy73bd4a52010-10-05 11:24:23 +00002491#endif
2492
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497if ac_fn_c_try_compile "$LINENO"; then :
2498 eval "$3=yes"
2499else
2500 eval "$3=no"
2501fi
2502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503fi
2504eval ac_res=\$$3
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506$as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508
2509} # ac_fn_c_check_decl
2510
cristy8b350f62009-11-15 23:12:43 +00002511# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512# -------------------------------------------
2513# Tests whether TYPE exists after having included INCLUDES, setting cache
2514# variable VAR accordingly.
2515ac_fn_c_check_type ()
2516{
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002520if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002521 $as_echo_n "(cached) " >&6
2522else
2523 eval "$3=no"
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525/* end confdefs.h. */
2526$4
2527int
2528main ()
2529{
2530if (sizeof ($2))
2531 return 0;
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538/* end confdefs.h. */
2539$4
2540int
2541main ()
2542{
2543if (sizeof (($2)))
2544 return 0;
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549if ac_fn_c_try_compile "$LINENO"; then :
2550
2551else
2552 eval "$3=yes"
2553fi
2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555fi
2556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557fi
2558eval ac_res=\$$3
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560$as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562
2563} # ac_fn_c_check_type
2564
cristy92703d82010-04-26 00:18:18 +00002565# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2566# ----------------------------------------------------
2567# Tries to find if the field MEMBER exists in type AGGR, after including
2568# INCLUDES, setting cache variable VAR accordingly.
2569ac_fn_c_check_member ()
2570{
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2573$as_echo_n "checking for $2.$3... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002574if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002575 $as_echo_n "(cached) " >&6
2576else
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578/* end confdefs.h. */
2579$5
2580int
2581main ()
2582{
2583static $2 ac_aggr;
2584if (ac_aggr.$3)
2585return 0;
2586 ;
2587 return 0;
2588}
2589_ACEOF
2590if ac_fn_c_try_compile "$LINENO"; then :
2591 eval "$4=yes"
2592else
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594/* end confdefs.h. */
2595$5
2596int
2597main ()
2598{
2599static $2 ac_aggr;
2600if (sizeof ac_aggr.$3)
2601return 0;
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606if ac_fn_c_try_compile "$LINENO"; then :
2607 eval "$4=yes"
2608else
2609 eval "$4=no"
2610fi
2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615eval ac_res=\$$4
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617$as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2619
2620} # ac_fn_c_check_member
2621
cristy8b350f62009-11-15 23:12:43 +00002622# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2623# --------------------------------------------
2624# Tries to find the compile-time value of EXPR in a program that includes
2625# INCLUDES, setting VAR accordingly. Returns whether the value could be
2626# computed
2627ac_fn_c_compute_int ()
2628{
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 if test "$cross_compiling" = yes; then
2631 # Depending upon the size, compute the lo and hi bounds.
2632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h. */
2634$4
2635int
2636main ()
2637{
2638static int test_array [1 - 2 * !(($2) >= 0)];
2639test_array [0] = 0
2640
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645if ac_fn_c_try_compile "$LINENO"; then :
2646 ac_lo=0 ac_mid=0
2647 while :; do
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$4
2651int
2652main ()
2653{
2654static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2655test_array [0] = 0
2656
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 ac_hi=$ac_mid; break
2663else
2664 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2665 if test $ac_lo -le $ac_mid; then
2666 ac_lo= ac_hi=
2667 break
2668 fi
2669 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2670fi
2671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 done
2673else
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675/* end confdefs.h. */
2676$4
2677int
2678main ()
2679{
2680static int test_array [1 - 2 * !(($2) < 0)];
2681test_array [0] = 0
2682
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687if ac_fn_c_try_compile "$LINENO"; then :
2688 ac_hi=-1 ac_mid=-1
2689 while :; do
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h. */
2692$4
2693int
2694main ()
2695{
2696static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2697test_array [0] = 0
2698
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703if ac_fn_c_try_compile "$LINENO"; then :
2704 ac_lo=$ac_mid; break
2705else
2706 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2707 if test $ac_mid -le $ac_hi; then
2708 ac_lo= ac_hi=
2709 break
2710 fi
2711 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 done
2715else
2716 ac_lo= ac_hi=
2717fi
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi
2720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721# Binary search between lo and hi bounds.
2722while test "x$ac_lo" != "x$ac_hi"; do
2723 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
2726$4
2727int
2728main ()
2729{
2730static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2731test_array [0] = 0
2732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737if ac_fn_c_try_compile "$LINENO"; then :
2738 ac_hi=$ac_mid
2739else
2740 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743done
2744case $ac_lo in #((
2745?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2746'') ac_retval=1 ;;
2747esac
2748 else
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750/* end confdefs.h. */
2751$4
2752static long int longval () { return $2; }
2753static unsigned long int ulongval () { return $2; }
2754#include <stdio.h>
2755#include <stdlib.h>
2756int
2757main ()
2758{
2759
2760 FILE *f = fopen ("conftest.val", "w");
2761 if (! f)
2762 return 1;
2763 if (($2) < 0)
2764 {
2765 long int i = longval ();
2766 if (i != ($2))
2767 return 1;
2768 fprintf (f, "%ld", i);
2769 }
2770 else
2771 {
2772 unsigned long int i = ulongval ();
2773 if (i != ($2))
2774 return 1;
2775 fprintf (f, "%lu", i);
2776 }
2777 /* Do not output a trailing newline, as this causes \r\n confusion
2778 on some platforms. */
2779 return ferror (f) || fclose (f) != 0;
2780
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785if ac_fn_c_try_run "$LINENO"; then :
2786 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2787else
2788 ac_retval=1
2789fi
2790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2791 conftest.$ac_objext conftest.beam conftest.$ac_ext
2792rm -f conftest.val
2793
2794 fi
2795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002796 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002797
2798} # ac_fn_c_compute_int
2799
2800# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2801# ---------------------------------------------------------
2802# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2803# the include files in INCLUDES and setting the cache variable VAR
2804# accordingly.
2805ac_fn_cxx_check_header_mongrel ()
2806{
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002808 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2810$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002811if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002812 $as_echo_n "(cached) " >&6
2813fi
2814eval ac_res=\$$3
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2816$as_echo "$ac_res" >&6; }
2817else
2818 # Is the header compilable?
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2820$as_echo_n "checking $2 usability... " >&6; }
2821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h. */
2823$4
2824#include <$2>
2825_ACEOF
2826if ac_fn_cxx_try_compile "$LINENO"; then :
2827 ac_header_compiler=yes
2828else
2829 ac_header_compiler=no
2830fi
2831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2833$as_echo "$ac_header_compiler" >&6; }
2834
2835# Is the header present?
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2837$as_echo_n "checking $2 presence... " >&6; }
2838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840#include <$2>
2841_ACEOF
2842if ac_fn_cxx_try_cpp "$LINENO"; then :
2843 ac_header_preproc=yes
2844else
2845 ac_header_preproc=no
2846fi
2847rm -f conftest.err conftest.$ac_ext
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2849$as_echo "$ac_header_preproc" >&6; }
2850
2851# So? What about this header?
2852case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2853 yes:no: )
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2858 ;;
2859 no:yes:* )
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2863$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2867$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002870( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002871## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002872## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002873 ) | sed "s/^/$as_me: WARNING: /" >&2
2874 ;;
2875esac
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002878if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002879 $as_echo_n "(cached) " >&6
2880else
2881 eval "$3=\$ac_header_compiler"
2882fi
2883eval ac_res=\$$3
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885$as_echo "$ac_res" >&6; }
2886fi
2887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2888
2889} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002890cat >config.log <<_ACEOF
2891This file contains any messages produced by compilers while
2892running configure, to aid debugging if configure makes a mistake.
2893
cristy0805e062011-01-30 02:56:36 +00002894It was created by ImageMagick $as_me 6.6.7, which was
cristy98dddb52010-11-04 00:30:15 +00002895generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002896
2897 $ $0 $@
2898
2899_ACEOF
2900exec 5>>config.log
2901{
2902cat <<_ASUNAME
2903## --------- ##
2904## Platform. ##
2905## --------- ##
2906
2907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2908uname -m = `(uname -m) 2>/dev/null || echo unknown`
2909uname -r = `(uname -r) 2>/dev/null || echo unknown`
2910uname -s = `(uname -s) 2>/dev/null || echo unknown`
2911uname -v = `(uname -v) 2>/dev/null || echo unknown`
2912
2913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2914/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2915
2916/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2917/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2919/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2920/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2921/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2922/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2923
2924_ASUNAME
2925
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002931 $as_echo "PATH: $as_dir"
2932 done
cristy3ed852e2009-09-05 21:47:34 +00002933IFS=$as_save_IFS
2934
2935} >&5
2936
2937cat >&5 <<_ACEOF
2938
2939
2940## ----------- ##
2941## Core tests. ##
2942## ----------- ##
2943
2944_ACEOF
2945
2946
2947# Keep a trace of the command line.
2948# Strip out --no-create and --no-recursion so they do not pile up.
2949# Strip out --silent because we don't want to record it for future runs.
2950# Also quote any args containing shell meta-characters.
2951# Make two passes to allow for proper duplicate-argument suppression.
2952ac_configure_args=
2953ac_configure_args0=
2954ac_configure_args1=
2955ac_must_keep_next=false
2956for ac_pass in 1 2
2957do
2958 for ac_arg
2959 do
2960 case $ac_arg in
2961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2963 | -silent | --silent | --silen | --sile | --sil)
2964 continue ;;
2965 *\'*)
2966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2967 esac
2968 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002970 2)
cristy8b350f62009-11-15 23:12:43 +00002971 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002972 if test $ac_must_keep_next = true; then
2973 ac_must_keep_next=false # Got value, back to normal.
2974 else
2975 case $ac_arg in
2976 *=* | --config-cache | -C | -disable-* | --disable-* \
2977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2979 | -with-* | --with-* | -without-* | --without-* | --x)
2980 case "$ac_configure_args0 " in
2981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2982 esac
2983 ;;
2984 -* ) ac_must_keep_next=true ;;
2985 esac
2986 fi
cristy8b350f62009-11-15 23:12:43 +00002987 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002988 ;;
2989 esac
2990 done
2991done
cristy8b350f62009-11-15 23:12:43 +00002992{ ac_configure_args0=; unset ac_configure_args0;}
2993{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002994
2995# When interrupted or exit'd, cleanup temporary files, and complete
2996# config.log. We remove comments because anyway the quotes in there
2997# would cause problems or look ugly.
2998# WARNING: Use '\'' to represent an apostrophe within the trap.
2999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3000trap 'exit_status=$?
3001 # Save into config.log some information that might help in debugging.
3002 {
3003 echo
3004
cristy98dddb52010-11-04 00:30:15 +00003005 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003006## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003007## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003008 echo
3009 # The following way of writing the cache mishandles newlines in values,
3010(
3011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3012 eval ac_val=\$$ac_var
3013 case $ac_val in #(
3014 *${as_nl}*)
3015 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3018 esac
3019 case $ac_var in #(
3020 _ | IFS | as_nl) ;; #(
3021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003022 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003023 esac ;;
3024 esac
3025 done
3026 (set) 2>&1 |
3027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3028 *${as_nl}ac_space=\ *)
3029 sed -n \
3030 "s/'\''/'\''\\\\'\'''\''/g;
3031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3032 ;; #(
3033 *)
3034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3035 ;;
3036 esac |
3037 sort
3038)
3039 echo
3040
cristy98dddb52010-11-04 00:30:15 +00003041 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003042## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003043## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003044 echo
3045 for ac_var in $ac_subst_vars
3046 do
3047 eval ac_val=\$$ac_var
3048 case $ac_val in
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 esac
3051 $as_echo "$ac_var='\''$ac_val'\''"
3052 done | sort
3053 echo
3054
3055 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003056 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003057## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003058## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003059 echo
3060 for ac_var in $ac_subst_files
3061 do
3062 eval ac_val=\$$ac_var
3063 case $ac_val in
3064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3065 esac
3066 $as_echo "$ac_var='\''$ac_val'\''"
3067 done | sort
3068 echo
3069 fi
3070
3071 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003072 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003073## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003074## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003075 echo
3076 cat confdefs.h
3077 echo
3078 fi
3079 test "$ac_signal" != 0 &&
3080 $as_echo "$as_me: caught signal $ac_signal"
3081 $as_echo "$as_me: exit $exit_status"
3082 } >&5
3083 rm -f core *.core core.conftest.* &&
3084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3085 exit $exit_status
3086' 0
3087for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003089done
3090ac_signal=0
3091
3092# confdefs.h avoids OS command line length limits that DEFS can exceed.
3093rm -f -r conftest* confdefs.h
3094
cristy8b350f62009-11-15 23:12:43 +00003095$as_echo "/* confdefs.h */" > confdefs.h
3096
cristy3ed852e2009-09-05 21:47:34 +00003097# Predefined preprocessor variables.
3098
3099cat >>confdefs.h <<_ACEOF
3100#define PACKAGE_NAME "$PACKAGE_NAME"
3101_ACEOF
3102
cristy3ed852e2009-09-05 21:47:34 +00003103cat >>confdefs.h <<_ACEOF
3104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3105_ACEOF
3106
cristy3ed852e2009-09-05 21:47:34 +00003107cat >>confdefs.h <<_ACEOF
3108#define PACKAGE_VERSION "$PACKAGE_VERSION"
3109_ACEOF
3110
cristy3ed852e2009-09-05 21:47:34 +00003111cat >>confdefs.h <<_ACEOF
3112#define PACKAGE_STRING "$PACKAGE_STRING"
3113_ACEOF
3114
cristy3ed852e2009-09-05 21:47:34 +00003115cat >>confdefs.h <<_ACEOF
3116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3117_ACEOF
3118
cristy8b350f62009-11-15 23:12:43 +00003119cat >>confdefs.h <<_ACEOF
3120#define PACKAGE_URL "$PACKAGE_URL"
3121_ACEOF
3122
cristy3ed852e2009-09-05 21:47:34 +00003123
3124# Let the site file select an alternate cache file if it wants to.
3125# Prefer an explicitly selected file to automatically selected ones.
3126ac_site_file1=NONE
3127ac_site_file2=NONE
3128if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003129 # We do not want a PATH search for config.site.
3130 case $CONFIG_SITE in #((
3131 -*) ac_site_file1=./$CONFIG_SITE;;
3132 */*) ac_site_file1=$CONFIG_SITE;;
3133 *) ac_site_file1=./$CONFIG_SITE;;
3134 esac
cristy3ed852e2009-09-05 21:47:34 +00003135elif test "x$prefix" != xNONE; then
3136 ac_site_file1=$prefix/share/config.site
3137 ac_site_file2=$prefix/etc/config.site
3138else
3139 ac_site_file1=$ac_default_prefix/share/config.site
3140 ac_site_file2=$ac_default_prefix/etc/config.site
3141fi
3142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3143do
3144 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003145 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3148 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003149 . "$ac_site_file" \
3150 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152as_fn_error $? "failed to load site script $ac_site_file
3153See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003154 fi
3155done
3156
3157if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003158 # Some versions of bash will fail to source /dev/null (special files
3159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003162$as_echo "$as_me: loading cache $cache_file" >&6;}
3163 case $cache_file in
3164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3165 *) . "./$cache_file";;
3166 esac
3167 fi
3168else
cristy8b350f62009-11-15 23:12:43 +00003169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003170$as_echo "$as_me: creating cache $cache_file" >&6;}
3171 >$cache_file
3172fi
3173
cristycd4c5312009-11-22 01:19:08 +00003174as_fn_append ac_header_list " stdlib.h"
3175as_fn_append ac_header_list " unistd.h"
3176as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003177# Check that the precious variables saved in the cache have kept the same
3178# value.
3179ac_cache_corrupted=false
3180for ac_var in $ac_precious_vars; do
3181 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3182 eval ac_new_set=\$ac_env_${ac_var}_set
3183 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3184 eval ac_new_val=\$ac_env_${ac_var}_value
3185 case $ac_old_set,$ac_new_set in
3186 set,)
cristy8b350f62009-11-15 23:12:43 +00003187 { $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 +00003188$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3189 ac_cache_corrupted=: ;;
3190 ,set)
cristy8b350f62009-11-15 23:12:43 +00003191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003192$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3193 ac_cache_corrupted=: ;;
3194 ,);;
3195 *)
3196 if test "x$ac_old_val" != "x$ac_new_val"; then
3197 # differences in whitespace do not lead to failure.
3198 ac_old_val_w=`echo x $ac_old_val`
3199 ac_new_val_w=`echo x $ac_new_val`
3200 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003202$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3203 ac_cache_corrupted=:
3204 else
cristy8b350f62009-11-15 23:12:43 +00003205 { $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 +00003206$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3207 eval $ac_var=\$ac_old_val
3208 fi
cristy8b350f62009-11-15 23:12:43 +00003209 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003210$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003211 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003212$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3213 fi;;
3214 esac
3215 # Pass precious variables to config.status.
3216 if test "$ac_new_set" = set; then
3217 case $ac_new_val in
3218 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3219 *) ac_arg=$ac_var=$ac_new_val ;;
3220 esac
3221 case " $ac_configure_args " in
3222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003223 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003224 esac
3225 fi
3226done
3227if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003232 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003233fi
cristy8b350f62009-11-15 23:12:43 +00003234## -------------------- ##
3235## Main body of script. ##
3236## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003237
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244
3245
3246ac_aux_dir=
3247for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003248 if test -f "$ac_dir/install-sh"; then
3249 ac_aux_dir=$ac_dir
3250 ac_install_sh="$ac_aux_dir/install-sh -c"
3251 break
3252 elif test -f "$ac_dir/install.sh"; then
3253 ac_aux_dir=$ac_dir
3254 ac_install_sh="$ac_aux_dir/install.sh -c"
3255 break
3256 elif test -f "$ac_dir/shtool"; then
3257 ac_aux_dir=$ac_dir
3258 ac_install_sh="$ac_aux_dir/shtool install -c"
3259 break
3260 fi
cristy3ed852e2009-09-05 21:47:34 +00003261done
3262if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003263 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003264fi
3265
3266# These three variables are undocumented and unsupported,
3267# and are intended to be withdrawn in a future Autoconf release.
3268# They can cause serious problems if a builder's source tree is in a directory
3269# whose full name contains unusual characters.
3270ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3271ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3272ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3273
3274
3275
3276
3277ac_config_headers="$ac_config_headers config/config.h"
3278
cristy24fc1fe2010-10-23 21:13:01 +00003279
cristy73bd4a52010-10-05 11:24:23 +00003280ac_config_commands="$ac_config_commands magick/magick-config.h"
3281
cristy430a7312010-01-21 20:44:04 +00003282ac_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 +00003283
3284
3285#
3286# Save initial user-tunable values
3287#
3288USER_LIBS=$LIBS
3289for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3290 eval isset=\${$var+set}
3291 if test "$isset" = 'set'; then
3292 eval val=$`echo $var`
3293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3294 fi
3295done
3296
3297
3298CONFIGURE_ARGS="$0 ${ac_configure_args}"
3299
3300
3301# Source file containing package/library versioning information.
3302. ${srcdir}/version.sh
3303
cristy15a88782010-01-31 23:24:49 +00003304echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003305# Make sure we can run config.sub.
3306$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003307 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003308
cristy8b350f62009-11-15 23:12:43 +00003309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003310$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003311if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003312 $as_echo_n "(cached) " >&6
3313else
3314 ac_build_alias=$build_alias
3315test "x$ac_build_alias" = x &&
3316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3317test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003319ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003321
3322fi
cristy8b350f62009-11-15 23:12:43 +00003323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo "$ac_cv_build" >&6; }
3325case $ac_cv_build in
3326*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003327*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003328esac
3329build=$ac_cv_build
3330ac_save_IFS=$IFS; IFS='-'
3331set x $ac_cv_build
3332shift
3333build_cpu=$1
3334build_vendor=$2
3335shift; shift
3336# Remember, the first character of IFS is used to create $*,
3337# except with old shells:
3338build_os=$*
3339IFS=$ac_save_IFS
3340case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3341
3342
cristy8b350f62009-11-15 23:12:43 +00003343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003345if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003346 $as_echo_n "(cached) " >&6
3347else
3348 if test "x$host_alias" = x; then
3349 ac_cv_host=$ac_cv_build
3350else
3351 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003353fi
3354
3355fi
cristy8b350f62009-11-15 23:12:43 +00003356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003357$as_echo "$ac_cv_host" >&6; }
3358case $ac_cv_host in
3359*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003360*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003361esac
3362host=$ac_cv_host
3363ac_save_IFS=$IFS; IFS='-'
3364set x $ac_cv_host
3365shift
3366host_cpu=$1
3367host_vendor=$2
3368shift; shift
3369# Remember, the first character of IFS is used to create $*,
3370# except with old shells:
3371host_os=$*
3372IFS=$ac_save_IFS
3373case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3374
3375
cristy8b350f62009-11-15 23:12:43 +00003376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003377$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003378if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003379 $as_echo_n "(cached) " >&6
3380else
3381 if test "x$target_alias" = x; then
3382 ac_cv_target=$ac_cv_host
3383else
3384 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003386fi
3387
3388fi
cristy8b350f62009-11-15 23:12:43 +00003389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$ac_cv_target" >&6; }
3391case $ac_cv_target in
3392*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003393*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003394esac
3395target=$ac_cv_target
3396ac_save_IFS=$IFS; IFS='-'
3397set x $ac_cv_target
3398shift
3399target_cpu=$1
3400target_vendor=$2
3401shift; shift
3402# Remember, the first character of IFS is used to create $*,
3403# except with old shells:
3404target_os=$*
3405IFS=$ac_save_IFS
3406case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3407
3408
3409# The aliases save the names the user supplied, while $host etc.
3410# will get canonicalized.
3411test -n "$target_alias" &&
3412 test "$program_prefix$program_suffix$program_transform_name" = \
3413 NONENONEs,x,x, &&
3414 program_prefix=${target_alias}-
3415
cristy837d6dc2010-02-27 01:16:57 +00003416
3417
3418
3419
cristy3225a072010-04-17 01:47:28 +00003420MAGICK_TARGET_CPU=$target_cpu
3421
3422
3423MAGICK_TARGET_VENDOR=$target_vendor
3424
3425
3426MAGICK_TARGET_OS=$target_os
3427
3428
cristy3ed852e2009-09-05 21:47:34 +00003429# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003430MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3431
3432MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3433
cristy3ed852e2009-09-05 21:47:34 +00003434
3435
3436# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3438$as_echo_n "checking whether build environment is sane... " >&6; }
3439# Just in case
3440sleep 1
3441echo timestamp > conftest.file
3442# Reject unsafe characters in $srcdir or the absolute working directory
3443# name. Accept space and tab only in the latter.
3444am_lf='
3445'
3446case `pwd` in
3447 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003448 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003449esac
3450case $srcdir in
3451 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003452 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003453esac
cristy3ed852e2009-09-05 21:47:34 +00003454
cristy73bd4a52010-10-05 11:24:23 +00003455# Do `set' in a subshell so we don't clobber the current shell's
3456# arguments. Must try -L first in case configure is actually a
3457# symlink; some systems play weird games with the mod time of symlinks
3458# (eg FreeBSD returns the mod time of the symlink's containing
3459# directory).
3460if (
3461 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3462 if test "$*" = "X"; then
3463 # -L didn't work.
3464 set X `ls -t "$srcdir/configure" conftest.file`
3465 fi
3466 rm -f conftest.file
3467 if test "$*" != "X $srcdir/configure conftest.file" \
3468 && test "$*" != "X conftest.file $srcdir/configure"; then
3469
3470 # If neither matched, then we have a broken ls. This can happen
3471 # if, for instance, CONFIG_SHELL is bash and it inherits a
3472 # broken ls alias from the environment. This has actually
3473 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003475alias in your environment" "$LINENO" 5
3476 fi
3477
3478 test "$2" = conftest.file
3479 )
3480then
3481 # Ok.
3482 :
3483else
cristy98dddb52010-11-04 00:30:15 +00003484 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003485Check your system clock" "$LINENO" 5
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488$as_echo "yes" >&6; }
3489
3490am__api_version='1.11'
3491
3492# Find a good install program. We prefer a C program (faster),
3493# so one script is as good as another. But avoid the broken or
3494# incompatible versions:
3495# SysV /etc/install, /usr/sbin/install
3496# SunOS /usr/etc/install
3497# IRIX /sbin/install
3498# AIX /bin/install
3499# AmigaOS /C/install, which installs bootblocks on floppy discs
3500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3503# OS/2's system install, which has a completely different semantic
3504# ./install, which can be erroneously created by make from ./install.sh.
3505# Reject install programs that cannot install multiple files.
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3507$as_echo_n "checking for a BSD-compatible install... " >&6; }
3508if test -z "$INSTALL"; then
3509if test "${ac_cv_path_install+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 # Account for people who put trailing slashes in PATH elements.
3518case $as_dir/ in #((
3519 ./ | .// | /[cC]/* | \
3520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3522 /usr/ucb/* ) ;;
3523 *)
3524 # OSF1 and SCO ODT 3.0 have their own names for install.
3525 # Don't use installbsd from OSF since it installs stuff as root
3526 # by default.
3527 for ac_prog in ginstall scoinst install; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3530 if test $ac_prog = install &&
3531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532 # AIX install. It has an incompatible calling convention.
3533 :
3534 elif test $ac_prog = install &&
3535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3536 # program-specific install script used by HP pwplus--don't use.
3537 :
3538 else
3539 rm -rf conftest.one conftest.two conftest.dir
3540 echo one > conftest.one
3541 echo two > conftest.two
3542 mkdir conftest.dir
3543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3544 test -s conftest.one && test -s conftest.two &&
3545 test -s conftest.dir/conftest.one &&
3546 test -s conftest.dir/conftest.two
3547 then
3548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3549 break 3
3550 fi
3551 fi
3552 fi
3553 done
3554 done
3555 ;;
3556esac
3557
3558 done
3559IFS=$as_save_IFS
3560
3561rm -rf conftest.one conftest.two conftest.dir
3562
3563fi
3564 if test "${ac_cv_path_install+set}" = set; then
3565 INSTALL=$ac_cv_path_install
3566 else
3567 # As a last resort, use the slow shell script. Don't cache a
3568 # value for INSTALL within a source directory, because that will
3569 # break other packages using the cache if that directory is
3570 # removed, or if the value is a relative name.
3571 INSTALL=$ac_install_sh
3572 fi
3573fi
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3575$as_echo "$INSTALL" >&6; }
3576
3577# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3578# It thinks the first close brace ends the variable substitution.
3579test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3580
3581test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3582
3583test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3584
3585test "$program_prefix" != NONE &&
3586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3587# Use a double $ so make ignores it.
3588test "$program_suffix" != NONE &&
3589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3590# Double any \ or $.
3591# By default was `s,x,x', remove it if useless.
3592ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3593program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3594
3595# expand $ac_aux_dir to an absolute path
3596am_aux_dir=`cd $ac_aux_dir && pwd`
3597
3598if test x"${MISSING+set}" != xset; then
3599 case $am_aux_dir in
3600 *\ * | *\ *)
3601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3602 *)
3603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3604 esac
3605fi
3606# Use eval to expand $SHELL
3607if eval "$MISSING --run true"; then
3608 am_missing_run="$MISSING --run "
3609else
3610 am_missing_run=
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3612$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3613fi
3614
3615if test x"${install_sh}" != xset; then
3616 case $am_aux_dir in
3617 *\ * | *\ *)
3618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3619 *)
3620 install_sh="\${SHELL} $am_aux_dir/install-sh"
3621 esac
3622fi
3623
3624# Installed binaries are usually stripped using `strip' when the user
3625# run `make install-strip'. However `strip' might not be the right
3626# tool to use in cross-compilation environments, therefore Automake
3627# will honor the `STRIP' environment variable to overrule this program.
3628if test "$cross_compiling" != no; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3631set dummy ${ac_tool_prefix}strip; ac_word=$2
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633$as_echo_n "checking for $ac_word... " >&6; }
3634if test "${ac_cv_prog_STRIP+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 if test -n "$STRIP"; then
3638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3650 fi
3651done
3652 done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657STRIP=$ac_cv_prog_STRIP
3658if test -n "$STRIP"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3660$as_echo "$STRIP" >&6; }
3661else
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
3664fi
3665
3666
3667fi
3668if test -z "$ac_cv_prog_STRIP"; then
3669 ac_ct_STRIP=$STRIP
3670 # Extract the first word of "strip", so it can be a program name with args.
3671set dummy strip; ac_word=$2
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673$as_echo_n "checking for $ac_word... " >&6; }
3674if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676else
3677 if test -n "$ac_ct_STRIP"; then
3678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_prog_ac_ct_STRIP="strip"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691done
3692 done
3693IFS=$as_save_IFS
3694
3695fi
3696fi
3697ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3698if test -n "$ac_ct_STRIP"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3700$as_echo "$ac_ct_STRIP" >&6; }
3701else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
3704fi
3705
3706 if test "x$ac_ct_STRIP" = x; then
3707 STRIP=":"
3708 else
3709 case $cross_compiling:$ac_tool_warned in
3710yes:)
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713ac_tool_warned=yes ;;
3714esac
3715 STRIP=$ac_ct_STRIP
3716 fi
3717else
3718 STRIP="$ac_cv_prog_STRIP"
3719fi
3720
3721fi
3722INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3723
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3725$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3726if test -z "$MKDIR_P"; then
3727 if test "${ac_cv_path_mkdir+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3732do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_prog in mkdir gmkdir; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3739 'mkdir (GNU coreutils) '* | \
3740 'mkdir (coreutils) '* | \
3741 'mkdir (fileutils) '4.1*)
3742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3743 break 3;;
3744 esac
3745 done
3746 done
3747 done
3748IFS=$as_save_IFS
3749
3750fi
3751
3752 test -d ./--version && rmdir ./--version
3753 if test "${ac_cv_path_mkdir+set}" = set; then
3754 MKDIR_P="$ac_cv_path_mkdir -p"
3755 else
3756 # As a last resort, use the slow shell script. Don't cache a
3757 # value for MKDIR_P within a source directory, because that will
3758 # break other packages using the cache if that directory is
3759 # removed, or if the value is a relative name.
3760 MKDIR_P="$ac_install_sh -d"
3761 fi
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3764$as_echo "$MKDIR_P" >&6; }
3765
3766mkdir_p="$MKDIR_P"
3767case $mkdir_p in
3768 [\\/$]* | ?:[\\/]*) ;;
3769 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3770esac
3771
3772for ac_prog in gawk mawk nawk awk
3773do
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775set dummy $ac_prog; ac_word=$2
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777$as_echo_n "checking for $ac_word... " >&6; }
3778if test "${ac_cv_prog_AWK+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780else
3781 if test -n "$AWK"; then
3782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_AWK="$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796 done
3797IFS=$as_save_IFS
3798
3799fi
3800fi
3801AWK=$ac_cv_prog_AWK
3802if test -n "$AWK"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3804$as_echo "$AWK" >&6; }
3805else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807$as_echo "no" >&6; }
3808fi
3809
3810
3811 test -n "$AWK" && break
3812done
3813
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3815$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3816set x ${MAKE-make}
3817ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00003818if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00003819 $as_echo_n "(cached) " >&6
3820else
3821 cat >conftest.make <<\_ACEOF
3822SHELL = /bin/sh
3823all:
3824 @echo '@@@%%%=$(MAKE)=@@@%%%'
3825_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003826# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003827case `${MAKE-make} -f conftest.make 2>/dev/null` in
3828 *@@@%%%=?*=@@@%%%*)
3829 eval ac_cv_prog_make_${ac_make}_set=yes;;
3830 *)
3831 eval ac_cv_prog_make_${ac_make}_set=no;;
3832esac
3833rm -f conftest.make
3834fi
3835if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837$as_echo "yes" >&6; }
3838 SET_MAKE=
3839else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
3842 SET_MAKE="MAKE=${MAKE-make}"
3843fi
3844
3845rm -rf .tst 2>/dev/null
3846mkdir .tst 2>/dev/null
3847if test -d .tst; then
3848 am__leading_dot=.
3849else
3850 am__leading_dot=_
3851fi
3852rmdir .tst 2>/dev/null
3853
3854if test "`cd $srcdir && pwd`" != "`pwd`"; then
3855 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3856 # is not polluted with repeated "-I."
3857 am__isrc=' -I$(srcdir)'
3858 # test to see if srcdir already configured
3859 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003860 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003861 fi
3862fi
3863
3864# test whether we have cygpath
3865if test -z "$CYGPATH_W"; then
3866 if (cygpath --version) >/dev/null 2>/dev/null; then
3867 CYGPATH_W='cygpath -w'
3868 else
3869 CYGPATH_W=echo
3870 fi
3871fi
3872
3873
3874# Define the identity of the package.
3875 PACKAGE=$PACKAGE_NAME
3876 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3877
3878
3879# Some tools Automake needs.
3880
3881ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3882
3883
3884AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3885
3886
3887AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3888
3889
3890AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3891
3892
3893MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3894
3895# We need awk for the "check" target. The system "awk" is bad on
3896# some platforms.
3897# Always define AMTAR for backward compatibility.
3898
3899AMTAR=${AMTAR-"${am_missing_run}tar"}
3900
3901am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3902
3903
3904
3905
3906
cristy3ed852e2009-09-05 21:47:34 +00003907
3908# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003909# Check whether --enable-silent-rules was given.
3910if test "${enable_silent_rules+set}" = set; then :
3911 enableval=$enable_silent_rules;
3912fi
3913
3914case $enable_silent_rules in
3915yes) AM_DEFAULT_VERBOSITY=0;;
3916no) AM_DEFAULT_VERBOSITY=1;;
3917*) AM_DEFAULT_VERBOSITY=0;;
3918esac
3919AM_BACKSLASH='\'
3920
cristy3ed852e2009-09-05 21:47:34 +00003921
3922MAGICK_LIB_VERSION="0x"
3923if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3925fi
3926MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3927if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3928 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3929fi
3930MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3931if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3932 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3933fi
3934MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3935
3936
3937# Definition used to define MagickLibVersionText in version.h
3938MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3939
3940
3941# Definition used to define MagickLibVersionNumber in version.h
3942MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3943
3944
3945# Regenerate config.status if ChangeLog or version.sh is updated.
3946CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3947
3948
3949PERLMAINCC=$CC
3950
3951MAGICK_CFLAGS=''
3952MAGICK_CPPFLAGS=$CPPFLAGS_USER
3953MAGICK_PCFLAGS=$CPPFLAGS_USER
3954MAGICK_LDFLAGS=''
3955MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003956MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003957
3958#
3959# Evaluate shell variable equivalents to Makefile directory variables
3960#
3961if test "x$prefix" = xNONE; then
3962 prefix=$ac_default_prefix
3963fi
3964# Let make expand exec_prefix.
3965if test "x$exec_prefix" = xNONE; then
3966 exec_prefix='${prefix}'
3967fi
3968
3969#
3970eval "eval PREFIX_DIR=${prefix}"
3971
3972eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3973
3974eval "eval BIN_DIR=$bindir"
3975
3976eval "eval SBIN_DIR=$sbindir"
3977
3978eval "eval LIBEXEC_DIR=$libexecdir"
3979
3980eval "eval DATA_DIR=$datadir"
3981
3982eval "eval SYSCONF_DIR=$sysconfdir"
3983
3984eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3985
3986eval "eval LOCALSTATE_DIR=$localstatedir"
3987
3988eval "eval LIB_DIR=$libdir"
3989
3990eval "eval INCLUDE_DIR=$includedir"
3991
3992eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3993
3994eval "eval INFO_DIR=$infodir"
3995
3996eval "eval MAN_DIR=$mandir"
3997
3998
3999# Get full paths to source and build directories
4000srcdirfull="`cd $srcdir && pwd`"
4001builddir="`pwd`"
4002
4003#
4004# Compute variables useful for running uninstalled software.
4005#
4006MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4007MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4008MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4009MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4010DIRSEP=':'
4011case "${build_os}" in
4012 mingw* )
4013 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4014 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4015 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4016 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4017 DIRSEP=';'
4018 ;;
4019esac
4020case "${host_os}" in
4021 mingw* )
4022 DIRSEP=';'
4023 ;;
4024esac
4025
4026
4027
4028
4029
4030
cristya0b81c32010-01-22 02:54:33 +00004031
4032#
4033# Enable OS features.
4034#
cristy73bd4a52010-10-05 11:24:23 +00004035DEPDIR="${am__leading_dot}deps"
4036
4037ac_config_commands="$ac_config_commands depfiles"
4038
4039
4040am_make=${MAKE-make}
4041cat > confinc << 'END'
4042am__doit:
4043 @echo this is the am__doit target
4044.PHONY: am__doit
4045END
4046# If we don't find an include directive, just comment out the code.
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4048$as_echo_n "checking for style of include used by $am_make... " >&6; }
4049am__include="#"
4050am__quote=
4051_am_result=none
4052# First try GNU make style include.
4053echo "include confinc" > confmf
4054# Ignore all kinds of additional output from `make'.
4055case `$am_make -s -f confmf 2> /dev/null` in #(
4056*the\ am__doit\ target*)
4057 am__include=include
4058 am__quote=
4059 _am_result=GNU
4060 ;;
4061esac
4062# Now try BSD make style include.
4063if test "$am__include" = "#"; then
4064 echo '.include "confinc"' > confmf
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4067 am__include=.include
4068 am__quote="\""
4069 _am_result=BSD
4070 ;;
4071 esac
4072fi
4073
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4076$as_echo "$_am_result" >&6; }
4077rm -f confinc confmf
4078
4079# Check whether --enable-dependency-tracking was given.
4080if test "${enable_dependency_tracking+set}" = set; then :
4081 enableval=$enable_dependency_tracking;
4082fi
4083
4084if test "x$enable_dependency_tracking" != xno; then
4085 am_depcomp="$ac_aux_dir/depcomp"
4086 AMDEPBACKSLASH='\'
4087fi
4088 if test "x$enable_dependency_tracking" != xno; then
4089 AMDEP_TRUE=
4090 AMDEP_FALSE='#'
4091else
4092 AMDEP_TRUE='#'
4093 AMDEP_FALSE=
4094fi
4095
4096
cristy3ed852e2009-09-05 21:47:34 +00004097ac_ext=c
4098ac_cpp='$CPP $CPPFLAGS'
4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4104set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004106$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004107if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004108 $as_echo_n "(cached) " >&6
4109else
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4112else
4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004122 break 2
4123 fi
4124done
cristy8b350f62009-11-15 23:12:43 +00004125 done
cristy3ed852e2009-09-05 21:47:34 +00004126IFS=$as_save_IFS
4127
4128fi
4129fi
4130CC=$ac_cv_prog_CC
4131if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004133$as_echo "$CC" >&6; }
4134else
cristy8b350f62009-11-15 23:12:43 +00004135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004136$as_echo "no" >&6; }
4137fi
4138
4139
4140fi
4141if test -z "$ac_cv_prog_CC"; then
4142 ac_ct_CC=$CC
4143 # Extract the first word of "gcc", so it can be a program name with args.
4144set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004146$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004147if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004148 $as_echo_n "(cached) " >&6
4149else
4150 if test -n "$ac_ct_CC"; then
4151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4152else
4153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH
4155do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004162 break 2
4163 fi
4164done
cristy8b350f62009-11-15 23:12:43 +00004165 done
cristy3ed852e2009-09-05 21:47:34 +00004166IFS=$as_save_IFS
4167
4168fi
4169fi
4170ac_ct_CC=$ac_cv_prog_ac_ct_CC
4171if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004173$as_echo "$ac_ct_CC" >&6; }
4174else
cristy8b350f62009-11-15 23:12:43 +00004175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004176$as_echo "no" >&6; }
4177fi
4178
4179 if test "x$ac_ct_CC" = x; then
4180 CC=""
4181 else
4182 case $cross_compiling:$ac_tool_warned in
4183yes:)
cristy8b350f62009-11-15 23:12:43 +00004184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186ac_tool_warned=yes ;;
4187esac
4188 CC=$ac_ct_CC
4189 fi
4190else
4191 CC="$ac_cv_prog_CC"
4192fi
4193
4194if test -z "$CC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4197set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004199$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004200if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004201 $as_echo_n "(cached) " >&6
4202else
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004215 break 2
4216 fi
4217done
cristy8b350f62009-11-15 23:12:43 +00004218 done
cristy3ed852e2009-09-05 21:47:34 +00004219IFS=$as_save_IFS
4220
4221fi
4222fi
4223CC=$ac_cv_prog_CC
4224if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004226$as_echo "$CC" >&6; }
4227else
cristy8b350f62009-11-15 23:12:43 +00004228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004229$as_echo "no" >&6; }
4230fi
4231
4232
4233 fi
4234fi
4235if test -z "$CC"; then
4236 # Extract the first word of "cc", so it can be a program name with args.
4237set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004239$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004240if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004241 $as_echo_n "(cached) " >&6
4242else
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4245else
4246 ac_prog_rejected=no
4247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4255 ac_prog_rejected=yes
4256 continue
4257 fi
4258 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004260 break 2
4261 fi
4262done
cristy8b350f62009-11-15 23:12:43 +00004263 done
cristy3ed852e2009-09-05 21:47:34 +00004264IFS=$as_save_IFS
4265
4266if test $ac_prog_rejected = yes; then
4267 # We found a bogon in the path, so make sure we never use it.
4268 set dummy $ac_cv_prog_CC
4269 shift
4270 if test $# != 0; then
4271 # We chose a different compiler from the bogus one.
4272 # However, it has the same basename, so the bogon will be chosen
4273 # first if we set CC to just the basename; use the full file name.
4274 shift
4275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4276 fi
4277fi
4278fi
4279fi
4280CC=$ac_cv_prog_CC
4281if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004283$as_echo "$CC" >&6; }
4284else
cristy8b350f62009-11-15 23:12:43 +00004285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004286$as_echo "no" >&6; }
4287fi
4288
4289
4290fi
4291if test -z "$CC"; then
4292 if test -n "$ac_tool_prefix"; then
4293 for ac_prog in cl.exe
4294 do
4295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004298$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004299if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004300 $as_echo_n "(cached) " >&6
4301else
4302 if test -n "$CC"; then
4303 ac_cv_prog_CC="$CC" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004314 break 2
4315 fi
4316done
cristy8b350f62009-11-15 23:12:43 +00004317 done
cristy3ed852e2009-09-05 21:47:34 +00004318IFS=$as_save_IFS
4319
4320fi
4321fi
4322CC=$ac_cv_prog_CC
4323if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004325$as_echo "$CC" >&6; }
4326else
cristy8b350f62009-11-15 23:12:43 +00004327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328$as_echo "no" >&6; }
4329fi
4330
4331
4332 test -n "$CC" && break
4333 done
4334fi
4335if test -z "$CC"; then
4336 ac_ct_CC=$CC
4337 for ac_prog in cl.exe
4338do
4339 # Extract the first word of "$ac_prog", so it can be a program name with args.
4340set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004344 $as_echo_n "(cached) " >&6
4345else
4346 if test -n "$ac_ct_CC"; then
4347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004358 break 2
4359 fi
4360done
cristy8b350f62009-11-15 23:12:43 +00004361 done
cristy3ed852e2009-09-05 21:47:34 +00004362IFS=$as_save_IFS
4363
4364fi
4365fi
4366ac_ct_CC=$ac_cv_prog_ac_ct_CC
4367if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004369$as_echo "$ac_ct_CC" >&6; }
4370else
cristy8b350f62009-11-15 23:12:43 +00004371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372$as_echo "no" >&6; }
4373fi
4374
4375
4376 test -n "$ac_ct_CC" && break
4377done
4378
4379 if test "x$ac_ct_CC" = x; then
4380 CC=""
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383yes:)
cristy8b350f62009-11-15 23:12:43 +00004384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386ac_tool_warned=yes ;;
4387esac
4388 CC=$ac_ct_CC
4389 fi
4390fi
4391
4392fi
4393
4394
cristy8b350f62009-11-15 23:12:43 +00004395test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004397as_fn_error $? "no acceptable C compiler found in \$PATH
4398See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004399
4400# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004401$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004402set X $ac_compile
4403ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004404for ac_option in --version -v -V -qversion; do
4405 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004406case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409esac
cristy8b350f62009-11-15 23:12:43 +00004410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411$as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004413 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004414 if test -s conftest.err; then
4415 sed '10a\
4416... rest of stderr output deleted ...
4417 10q' conftest.err >conftest.er1
4418 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004419 fi
cristycd4c5312009-11-22 01:19:08 +00004420 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4423done
cristy3ed852e2009-09-05 21:47:34 +00004424
cristy8b350f62009-11-15 23:12:43 +00004425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004426/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004427
cristy3ed852e2009-09-05 21:47:34 +00004428int
4429main ()
4430{
4431
4432 ;
4433 return 0;
4434}
4435_ACEOF
4436ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004437ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004438# Try to create an executable without -o first, disregard a.out.
4439# It will help us diagnose broken compilers, and finding out an intuition
4440# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4442$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004443ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4444
4445# The possible output files:
4446ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4447
4448ac_rmfiles=
4449for ac_file in $ac_files
4450do
4451 case $ac_file in
4452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4454 esac
4455done
4456rm -f $ac_rmfiles
4457
cristy8b350f62009-11-15 23:12:43 +00004458if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004459case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462esac
cristy8b350f62009-11-15 23:12:43 +00004463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004465 (eval "$ac_link_default") 2>&5
4466 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4470# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4471# in a Makefile. We should not override ac_cv_exeext if it was cached,
4472# so that the user can short-circuit this test for compilers unknown to
4473# Autoconf.
4474for ac_file in $ac_files ''
4475do
4476 test -f "$ac_file" || continue
4477 case $ac_file in
4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4479 ;;
4480 [ab].out )
4481 # We found the default executable, but exeext='' is most
4482 # certainly right.
4483 break;;
4484 *.* )
cristy8b350f62009-11-15 23:12:43 +00004485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004486 then :; else
4487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4488 fi
4489 # We set ac_cv_exeext here because the later test for it is not
4490 # safe: cross compilers may not add the suffix if given an `-o'
4491 # argument, so we may need to know it at that point already.
4492 # Even if this section looks crufty: it has the advantage of
4493 # actually working.
4494 break;;
4495 * )
4496 break;;
4497 esac
4498done
4499test "$ac_cv_exeext" = no && ac_cv_exeext=
4500
4501else
4502 ac_file=''
4503fi
cristy8b350f62009-11-15 23:12:43 +00004504if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506$as_echo "no" >&6; }
4507$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004508sed 's/^/| /' conftest.$ac_ext >&5
4509
cristy8b350f62009-11-15 23:12:43 +00004510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004512as_fn_error 77 "C compiler cannot create executables
4513See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004514else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4516$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004517fi
cristycd4c5312009-11-22 01:19:08 +00004518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4519$as_echo_n "checking for C compiler default output file name... " >&6; }
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4521$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004522ac_exeext=$ac_cv_exeext
4523
cristycd4c5312009-11-22 01:19:08 +00004524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004525ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004528if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004529case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532esac
cristy8b350f62009-11-15 23:12:43 +00004533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004535 (eval "$ac_link") 2>&5
4536 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4540# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4541# work properly (i.e., refer to `conftest.exe'), while it won't with
4542# `rm'.
4543for ac_file in conftest.exe conftest conftest.*; do
4544 test -f "$ac_file" || continue
4545 case $ac_file in
4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4548 break;;
4549 * ) break;;
4550 esac
4551done
4552else
cristy8b350f62009-11-15 23:12:43 +00004553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004555as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4556See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004557fi
cristycd4c5312009-11-22 01:19:08 +00004558rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "$ac_cv_exeext" >&6; }
4561
4562rm -f conftest.$ac_ext
4563EXEEXT=$ac_cv_exeext
4564ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h. */
4567#include <stdio.h>
4568int
4569main ()
4570{
4571FILE *f = fopen ("conftest.out", "w");
4572 return ferror (f) || fclose (f) != 0;
4573
4574 ;
4575 return 0;
4576}
4577_ACEOF
4578ac_clean_files="$ac_clean_files conftest.out"
4579# Check that the compiler produces executables we can run. If not, either
4580# the compiler is broken, or we cross compile.
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4582$as_echo_n "checking whether we are cross compiling... " >&6; }
4583if test "$cross_compiling" != yes; then
4584 { { ac_try="$ac_link"
4585case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588esac
4589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590$as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_link") 2>&5
4592 ac_status=$?
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }
4595 if { ac_try='./conftest$ac_cv_exeext'
4596 { { case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
4600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601$as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_try") 2>&5
4603 ac_status=$?
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605 test $ac_status = 0; }; }; then
4606 cross_compiling=no
4607 else
4608 if test "$cross_compiling" = maybe; then
4609 cross_compiling=yes
4610 else
4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004613as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004614If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004615See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004616 fi
4617 fi
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4620$as_echo "$cross_compiling" >&6; }
4621
4622rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4623ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004626if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004627 $as_echo_n "(cached) " >&6
4628else
cristy8b350f62009-11-15 23:12:43 +00004629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004630/* end confdefs.h. */
4631
4632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004641if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004642case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
cristy8b350f62009-11-15 23:12:43 +00004646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004648 (eval "$ac_compile") 2>&5
4649 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4651 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004652 for ac_file in conftest.o conftest.obj conftest.*; do
4653 test -f "$ac_file" || continue;
4654 case $ac_file in
4655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4657 break;;
4658 esac
4659done
4660else
4661 $as_echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
cristy8b350f62009-11-15 23:12:43 +00004664{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004666as_fn_error $? "cannot compute suffix of object files: cannot compile
4667See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004668fi
cristy3ed852e2009-09-05 21:47:34 +00004669rm -f conftest.$ac_cv_objext conftest.$ac_ext
4670fi
cristy8b350f62009-11-15 23:12:43 +00004671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo "$ac_cv_objext" >&6; }
4673OBJEXT=$ac_cv_objext
4674ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004677if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004678 $as_echo_n "(cached) " >&6
4679else
cristy8b350f62009-11-15 23:12:43 +00004680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004681/* end confdefs.h. */
4682
4683int
4684main ()
4685{
4686#ifndef __GNUC__
4687 choke me
4688#endif
4689
4690 ;
4691 return 0;
4692}
4693_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004694if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 ac_compiler_gnu=yes
4696else
cristy8b350f62009-11-15 23:12:43 +00004697 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004698fi
cristy3ed852e2009-09-05 21:47:34 +00004699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700ac_cv_c_compiler_gnu=$ac_compiler_gnu
4701
4702fi
cristy8b350f62009-11-15 23:12:43 +00004703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004704$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4705if test $ac_compiler_gnu = yes; then
4706 GCC=yes
4707else
4708 GCC=
4709fi
4710ac_test_CFLAGS=${CFLAGS+set}
4711ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004714if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004715 $as_echo_n "(cached) " >&6
4716else
4717 ac_save_c_werror_flag=$ac_c_werror_flag
4718 ac_c_werror_flag=yes
4719 ac_cv_prog_cc_g=no
4720 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004722/* end confdefs.h. */
4723
4724int
4725main ()
4726{
4727
4728 ;
4729 return 0;
4730}
4731_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004733 ac_cv_prog_cc_g=yes
4734else
cristy8b350f62009-11-15 23:12:43 +00004735 CFLAGS=""
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004737/* end confdefs.h. */
4738
4739int
4740main ()
4741{
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004747if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004748
cristy8b350f62009-11-15 23:12:43 +00004749else
4750 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004751 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004753/* end confdefs.h. */
4754
4755int
4756main ()
4757{
4758
4759 ;
4760 return 0;
4761}
4762_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004763if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004764 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004765fi
cristy3ed852e2009-09-05 21:47:34 +00004766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
cristy3ed852e2009-09-05 21:47:34 +00004768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769fi
cristy3ed852e2009-09-05 21:47:34 +00004770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 ac_c_werror_flag=$ac_save_c_werror_flag
4772fi
cristy8b350f62009-11-15 23:12:43 +00004773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004774$as_echo "$ac_cv_prog_cc_g" >&6; }
4775if test "$ac_test_CFLAGS" = set; then
4776 CFLAGS=$ac_save_CFLAGS
4777elif test $ac_cv_prog_cc_g = yes; then
4778 if test "$GCC" = yes; then
4779 CFLAGS="-g -O2"
4780 else
4781 CFLAGS="-g"
4782 fi
4783else
4784 if test "$GCC" = yes; then
4785 CFLAGS="-O2"
4786 else
4787 CFLAGS=
4788 fi
4789fi
cristy8b350f62009-11-15 23:12:43 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004792if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004793 $as_echo_n "(cached) " >&6
4794else
4795 ac_cv_prog_cc_c89=no
4796ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004798/* end confdefs.h. */
4799#include <stdarg.h>
4800#include <stdio.h>
4801#include <sys/types.h>
4802#include <sys/stat.h>
4803/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4804struct buf { int x; };
4805FILE * (*rcsopen) (struct buf *, struct stat *, int);
4806static char *e (p, i)
4807 char **p;
4808 int i;
4809{
4810 return p[i];
4811}
4812static char *f (char * (*g) (char **, int), char **p, ...)
4813{
4814 char *s;
4815 va_list v;
4816 va_start (v,p);
4817 s = g (p, va_arg (v,int));
4818 va_end (v);
4819 return s;
4820}
4821
4822/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4823 function prototypes and stuff, but not '\xHH' hex character constants.
4824 These don't provoke an error unfortunately, instead are silently treated
4825 as 'x'. The following induces an error, until -std is added to get
4826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4827 array size at least. It's necessary to write '\x00'==0 to get something
4828 that's true only with -std. */
4829int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4830
4831/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4832 inside strings and character constants. */
4833#define FOO(x) 'x'
4834int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4835
4836int test (int i, double x);
4837struct s1 {int (*f) (int a);};
4838struct s2 {int (*f) (double a);};
4839int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4840int argc;
4841char **argv;
4842int
4843main ()
4844{
4845return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4846 ;
4847 return 0;
4848}
4849_ACEOF
4850for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4852do
4853 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004854 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004855 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004856fi
cristy3ed852e2009-09-05 21:47:34 +00004857rm -f core conftest.err conftest.$ac_objext
4858 test "x$ac_cv_prog_cc_c89" != "xno" && break
4859done
4860rm -f conftest.$ac_ext
4861CC=$ac_save_CC
4862
4863fi
4864# AC_CACHE_VAL
4865case "x$ac_cv_prog_cc_c89" in
4866 x)
cristy8b350f62009-11-15 23:12:43 +00004867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004868$as_echo "none needed" >&6; } ;;
4869 xno)
cristy8b350f62009-11-15 23:12:43 +00004870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo "unsupported" >&6; } ;;
4872 *)
4873 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004875$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4876esac
cristy8b350f62009-11-15 23:12:43 +00004877if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004878
cristy8b350f62009-11-15 23:12:43 +00004879fi
cristy3ed852e2009-09-05 21:47:34 +00004880
4881ac_ext=c
4882ac_cpp='$CPP $CPPFLAGS'
4883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004886
cristy73bd4a52010-10-05 11:24:23 +00004887depcc="$CC" am_compiler_list=
4888
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890$as_echo_n "checking dependency style of $depcc... " >&6; }
4891if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895 # We make a subdir and do the tests there. Otherwise we can end up
4896 # making bogus files that we don't know about and never remove. For
4897 # instance it was reported that on HP-UX the gcc test will end up
4898 # making a dummy file named `D' -- because `-MD' means `put the output
4899 # in D'.
4900 mkdir conftest.dir
4901 # Copy depcomp to subdir because otherwise we won't find it if we're
4902 # using a relative directory.
4903 cp "$am_depcomp" conftest.dir
4904 cd conftest.dir
4905 # We will build objects and dependencies in a subdirectory because
4906 # it helps to detect inapplicable dependency modes. For instance
4907 # both Tru64's cc and ICC support -MD to output dependencies as a
4908 # side effect of compilation, but ICC will put the dependencies in
4909 # the current directory while Tru64 will put them in the object
4910 # directory.
4911 mkdir sub
4912
4913 am_cv_CC_dependencies_compiler_type=none
4914 if test "$am_compiler_list" = ""; then
4915 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4916 fi
4917 am__universal=false
4918 case " $depcc " in #(
4919 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4920 esac
4921
4922 for depmode in $am_compiler_list; do
4923 # Setup a source with many dependencies, because some compilers
4924 # like to wrap large dependency lists on column 80 (with \), and
4925 # we should not choose a depcomp mode which is confused by this.
4926 #
4927 # We need to recreate these files for each test, as the compiler may
4928 # overwrite some of them when testing with obscure command lines.
4929 # This happens at least with the AIX C compiler.
4930 : > sub/conftest.c
4931 for i in 1 2 3 4 5 6; do
4932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934 # Solaris 8's {/usr,}/bin/sh.
4935 touch sub/conftst$i.h
4936 done
4937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4938
4939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940 # mode. It turns out that the SunPro C++ compiler does not properly
4941 # handle `-M -o', and we need to detect this. Also, some Intel
4942 # versions had trouble with output in subdirs
4943 am__obj=sub/conftest.${OBJEXT-o}
4944 am__minus_obj="-o $am__obj"
4945 case $depmode in
4946 gcc)
4947 # This depmode causes a compiler race in universal mode.
4948 test "$am__universal" = false || continue
4949 ;;
4950 nosideeffect)
4951 # after this tag, mechanisms are not by side-effect, so they'll
4952 # only be used when explicitly requested
4953 if test "x$enable_dependency_tracking" = xyes; then
4954 continue
4955 else
4956 break
4957 fi
4958 ;;
4959 msvisualcpp | msvcmsys)
4960 # This compiler won't grok `-c -o', but also, the minuso test has
4961 # not run yet. These depmodes are late enough in the game, and
4962 # so weak that their functioning should not be impacted.
4963 am__obj=conftest.${OBJEXT-o}
4964 am__minus_obj=
4965 ;;
4966 none) break ;;
4967 esac
4968 if depmode=$depmode \
4969 source=sub/conftest.c object=$am__obj \
4970 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4971 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4972 >/dev/null 2>conftest.err &&
4973 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4974 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4975 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4976 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4977 # icc doesn't choke on unknown options, it will just issue warnings
4978 # or remarks (even with -Werror). So we grep stderr for any message
4979 # that says an option was ignored or not supported.
4980 # When given -MP, icc 7.0 and 7.1 complain thusly:
4981 # icc: Command line warning: ignoring option '-M'; no argument required
4982 # The diagnosis changed in icc 8.0:
4983 # icc: Command line remark: option '-MP' not supported
4984 if (grep 'ignoring option' conftest.err ||
4985 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4986 am_cv_CC_dependencies_compiler_type=$depmode
4987 break
4988 fi
4989 fi
4990 done
4991
4992 cd ..
4993 rm -rf conftest.dir
4994else
4995 am_cv_CC_dependencies_compiler_type=none
4996fi
4997
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5000$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5001CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5002
5003 if
5004 test "x$enable_dependency_tracking" != xno \
5005 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5006 am__fastdepCC_TRUE=
5007 am__fastdepCC_FALSE='#'
5008else
5009 am__fastdepCC_TRUE='#'
5010 am__fastdepCC_FALSE=
5011fi
5012
5013
cristy3ed852e2009-09-05 21:47:34 +00005014
cristya0b81c32010-01-22 02:54:33 +00005015ac_ext=c
5016ac_cpp='$CPP $CPPFLAGS'
5017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5021$as_echo_n "checking how to run the C preprocessor... " >&6; }
5022# On Suns, sometimes $CPP names a directory.
5023if test -n "$CPP" && test -d "$CPP"; then
5024 CPP=
5025fi
5026if test -z "$CPP"; then
5027 if test "${ac_cv_prog_CPP+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029else
5030 # Double quotes because CPP needs to be expanded
5031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5032 do
5033 ac_preproc_ok=false
5034for ac_c_preproc_warn_flag in '' yes
5035do
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h. */
5044#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
5049 Syntax error
5050_ACEOF
5051if ac_fn_c_try_cpp "$LINENO"; then :
5052
5053else
5054 # Broken: fails on valid input.
5055continue
5056fi
5057rm -f conftest.err conftest.$ac_ext
5058
5059 # OK, works on sane cases. Now check whether nonexistent headers
5060 # can be detected and how.
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h. */
5063#include <ac_nonexistent.h>
5064_ACEOF
5065if ac_fn_c_try_cpp "$LINENO"; then :
5066 # Broken: success on invalid input.
5067continue
5068else
5069 # Passes both tests.
5070ac_preproc_ok=:
5071break
5072fi
5073rm -f conftest.err conftest.$ac_ext
5074
5075done
5076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077rm -f conftest.err conftest.$ac_ext
5078if $ac_preproc_ok; then :
5079 break
5080fi
5081
5082 done
5083 ac_cv_prog_CPP=$CPP
5084
5085fi
5086 CPP=$ac_cv_prog_CPP
5087else
5088 ac_cv_prog_CPP=$CPP
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5091$as_echo "$CPP" >&6; }
5092ac_preproc_ok=false
5093for ac_c_preproc_warn_flag in '' yes
5094do
5095 # Use a header file that comes with gcc, so configuring glibc
5096 # with a fresh cross-compiler works.
5097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098 # <limits.h> exists even on freestanding compilers.
5099 # On the NeXT, cc -E runs the code through the compiler's parser,
5100 # not just through cpp. "Syntax error" is here to catch this case.
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h. */
5103#ifdef __STDC__
5104# include <limits.h>
5105#else
5106# include <assert.h>
5107#endif
5108 Syntax error
5109_ACEOF
5110if ac_fn_c_try_cpp "$LINENO"; then :
5111
5112else
5113 # Broken: fails on valid input.
5114continue
5115fi
5116rm -f conftest.err conftest.$ac_ext
5117
5118 # OK, works on sane cases. Now check whether nonexistent headers
5119 # can be detected and how.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
5122#include <ac_nonexistent.h>
5123_ACEOF
5124if ac_fn_c_try_cpp "$LINENO"; then :
5125 # Broken: success on invalid input.
5126continue
5127else
5128 # Passes both tests.
5129ac_preproc_ok=:
5130break
5131fi
5132rm -f conftest.err conftest.$ac_ext
5133
5134done
5135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136rm -f conftest.err conftest.$ac_ext
5137if $ac_preproc_ok; then :
5138
5139else
5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005142as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5143See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005144fi
5145
5146ac_ext=c
5147ac_cpp='$CPP $CPPFLAGS'
5148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5154$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5155if test "${ac_cv_path_GREP+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -z "$GREP"; then
5159 ac_path_GREP_found=false
5160 # Loop through the user's path and test for each of PROGNAME-LIST
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_prog in grep ggrep; do
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5169 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5170# Check for GNU ac_path_GREP and select it if it is found.
5171 # Check for GNU $ac_path_GREP
5172case `"$ac_path_GREP" --version 2>&1` in
5173*GNU*)
5174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5175*)
5176 ac_count=0
5177 $as_echo_n 0123456789 >"conftest.in"
5178 while :
5179 do
5180 cat "conftest.in" "conftest.in" >"conftest.tmp"
5181 mv "conftest.tmp" "conftest.in"
5182 cp "conftest.in" "conftest.nl"
5183 $as_echo 'GREP' >> "conftest.nl"
5184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5186 as_fn_arith $ac_count + 1 && ac_count=$as_val
5187 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5188 # Best one so far, save it but keep looking for a better one
5189 ac_cv_path_GREP="$ac_path_GREP"
5190 ac_path_GREP_max=$ac_count
5191 fi
5192 # 10*(2^10) chars as input seems more than enough
5193 test $ac_count -gt 10 && break
5194 done
5195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5196esac
5197
5198 $ac_path_GREP_found && break 3
5199 done
5200 done
5201 done
5202IFS=$as_save_IFS
5203 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005205 fi
5206else
5207 ac_cv_path_GREP=$GREP
5208fi
5209
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5212$as_echo "$ac_cv_path_GREP" >&6; }
5213 GREP="$ac_cv_path_GREP"
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5217$as_echo_n "checking for egrep... " >&6; }
5218if test "${ac_cv_path_EGREP+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220else
5221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5222 then ac_cv_path_EGREP="$GREP -E"
5223 else
5224 if test -z "$EGREP"; then
5225 ac_path_EGREP_found=false
5226 # Loop through the user's path and test for each of PROGNAME-LIST
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_prog in egrep; do
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5235 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5236# Check for GNU ac_path_EGREP and select it if it is found.
5237 # Check for GNU $ac_path_EGREP
5238case `"$ac_path_EGREP" --version 2>&1` in
5239*GNU*)
5240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5241*)
5242 ac_count=0
5243 $as_echo_n 0123456789 >"conftest.in"
5244 while :
5245 do
5246 cat "conftest.in" "conftest.in" >"conftest.tmp"
5247 mv "conftest.tmp" "conftest.in"
5248 cp "conftest.in" "conftest.nl"
5249 $as_echo 'EGREP' >> "conftest.nl"
5250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252 as_fn_arith $ac_count + 1 && ac_count=$as_val
5253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5254 # Best one so far, save it but keep looking for a better one
5255 ac_cv_path_EGREP="$ac_path_EGREP"
5256 ac_path_EGREP_max=$ac_count
5257 fi
5258 # 10*(2^10) chars as input seems more than enough
5259 test $ac_count -gt 10 && break
5260 done
5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262esac
5263
5264 $ac_path_EGREP_found && break 3
5265 done
5266 done
5267 done
5268IFS=$as_save_IFS
5269 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005271 fi
5272else
5273 ac_cv_path_EGREP=$EGREP
5274fi
5275
5276 fi
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5279$as_echo "$ac_cv_path_EGREP" >&6; }
5280 EGREP="$ac_cv_path_EGREP"
5281
5282
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5284$as_echo_n "checking for ANSI C header files... " >&6; }
5285if test "${ac_cv_header_stdc+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287else
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h. */
5290#include <stdlib.h>
5291#include <stdarg.h>
5292#include <string.h>
5293#include <float.h>
5294
5295int
5296main ()
5297{
5298
5299 ;
5300 return 0;
5301}
5302_ACEOF
5303if ac_fn_c_try_compile "$LINENO"; then :
5304 ac_cv_header_stdc=yes
5305else
5306 ac_cv_header_stdc=no
5307fi
5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309
5310if test $ac_cv_header_stdc = yes; then
5311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h. */
5314#include <string.h>
5315
5316_ACEOF
5317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev/null 2>&1; then :
5319
5320else
5321 ac_cv_header_stdc=no
5322fi
5323rm -f conftest*
5324
5325fi
5326
5327if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h. */
5331#include <stdlib.h>
5332
5333_ACEOF
5334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 $EGREP "free" >/dev/null 2>&1; then :
5336
5337else
5338 ac_cv_header_stdc=no
5339fi
5340rm -f conftest*
5341
5342fi
5343
5344if test $ac_cv_header_stdc = yes; then
5345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5346 if test "$cross_compiling" = yes; then :
5347 :
5348else
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h. */
5351#include <ctype.h>
5352#include <stdlib.h>
5353#if ((' ' & 0x0FF) == 0x020)
5354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356#else
5357# define ISLOWER(c) \
5358 (('a' <= (c) && (c) <= 'i') \
5359 || ('j' <= (c) && (c) <= 'r') \
5360 || ('s' <= (c) && (c) <= 'z'))
5361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5362#endif
5363
5364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365int
5366main ()
5367{
5368 int i;
5369 for (i = 0; i < 256; i++)
5370 if (XOR (islower (i), ISLOWER (i))
5371 || toupper (i) != TOUPPER (i))
5372 return 2;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_run "$LINENO"; then :
5377
5378else
5379 ac_cv_header_stdc=no
5380fi
5381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5382 conftest.$ac_objext conftest.beam conftest.$ac_ext
5383fi
5384
5385fi
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5388$as_echo "$ac_cv_header_stdc" >&6; }
5389if test $ac_cv_header_stdc = yes; then
5390
5391$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5392
5393fi
5394
5395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5397 inttypes.h stdint.h unistd.h
5398do :
5399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5401"
cristy98dddb52010-11-04 00:30:15 +00005402if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005403 cat >>confdefs.h <<_ACEOF
5404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405_ACEOF
5406
5407fi
5408
5409done
5410
5411
5412
5413 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5414if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5415 MINIX=yes
5416else
5417 MINIX=
5418fi
5419
5420
5421 if test "$MINIX" = yes; then
5422
5423$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5424
5425
5426$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5427
5428
5429$as_echo "#define _MINIX 1" >>confdefs.h
5430
5431 fi
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5435$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5436if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h. */
5441
5442# define __EXTENSIONS__ 1
5443 $ac_includes_default
5444int
5445main ()
5446{
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453 ac_cv_safe_to_define___extensions__=yes
5454else
5455 ac_cv_safe_to_define___extensions__=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5460$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5461 test $ac_cv_safe_to_define___extensions__ = yes &&
5462 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5463
5464 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5465
5466 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5467
5468 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5469
5470 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5471
5472
5473
5474# Check for programs
5475ac_ext=c
5476ac_cpp='$CPP $CPPFLAGS'
5477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5482set dummy ${ac_tool_prefix}gcc; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
5485if test "${ac_cv_prog_CC+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487else
5488 if test -n "$CC"; then
5489 ac_cv_prog_CC="$CC" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502done
5503 done
5504IFS=$as_save_IFS
5505
5506fi
5507fi
5508CC=$ac_cv_prog_CC
5509if test -n "$CC"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5511$as_echo "$CC" >&6; }
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517
5518fi
5519if test -z "$ac_cv_prog_CC"; then
5520 ac_ct_CC=$CC
5521 # Extract the first word of "gcc", so it can be a program name with args.
5522set dummy gcc; ac_word=$2
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524$as_echo_n "checking for $ac_word... " >&6; }
5525if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527else
5528 if test -n "$ac_ct_CC"; then
5529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_ac_ct_CC="gcc"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542done
5543 done
5544IFS=$as_save_IFS
5545
5546fi
5547fi
5548ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549if test -n "$ac_ct_CC"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5551$as_echo "$ac_ct_CC" >&6; }
5552else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
5556
5557 if test "x$ac_ct_CC" = x; then
5558 CC=""
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561yes:)
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564ac_tool_warned=yes ;;
5565esac
5566 CC=$ac_ct_CC
5567 fi
5568else
5569 CC="$ac_cv_prog_CC"
5570fi
5571
5572if test -z "$CC"; then
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5575set dummy ${ac_tool_prefix}cc; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if test "${ac_cv_prog_CC+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 if test -n "$CC"; then
5582 ac_cv_prog_CC="$CC" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_CC="${ac_tool_prefix}cc"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595done
5596 done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601CC=$ac_cv_prog_CC
5602if test -n "$CC"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5604$as_echo "$CC" >&6; }
5605else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610
5611 fi
5612fi
5613if test -z "$CC"; then
5614 # Extract the first word of "cc", so it can be a program name with args.
5615set dummy cc; ac_word=$2
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617$as_echo_n "checking for $ac_word... " >&6; }
5618if test "${ac_cv_prog_CC+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620else
5621 if test -n "$CC"; then
5622 ac_cv_prog_CC="$CC" # Let the user override the test.
5623else
5624 ac_prog_rejected=no
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5633 ac_prog_rejected=yes
5634 continue
5635 fi
5636 ac_cv_prog_CC="cc"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640done
5641 done
5642IFS=$as_save_IFS
5643
5644if test $ac_prog_rejected = yes; then
5645 # We found a bogon in the path, so make sure we never use it.
5646 set dummy $ac_cv_prog_CC
5647 shift
5648 if test $# != 0; then
5649 # We chose a different compiler from the bogus one.
5650 # However, it has the same basename, so the bogon will be chosen
5651 # first if we set CC to just the basename; use the full file name.
5652 shift
5653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5654 fi
5655fi
5656fi
5657fi
5658CC=$ac_cv_prog_CC
5659if test -n "$CC"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5661$as_echo "$CC" >&6; }
5662else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
5668fi
5669if test -z "$CC"; then
5670 if test -n "$ac_tool_prefix"; then
5671 for ac_prog in cl.exe
5672 do
5673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
5677if test "${ac_cv_prog_CC+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 if test -n "$CC"; then
5681 ac_cv_prog_CC="$CC" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695 done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700CC=$ac_cv_prog_CC
5701if test -n "$CC"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5703$as_echo "$CC" >&6; }
5704else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707fi
5708
5709
5710 test -n "$CC" && break
5711 done
5712fi
5713if test -z "$CC"; then
5714 ac_ct_CC=$CC
5715 for ac_prog in cl.exe
5716do
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718set dummy $ac_prog; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723else
5724 if test -n "$ac_ct_CC"; then
5725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_ac_ct_CC="$ac_prog"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739 done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_CC=$ac_cv_prog_ac_ct_CC
5745if test -n "$ac_ct_CC"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5747$as_echo "$ac_ct_CC" >&6; }
5748else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753
5754 test -n "$ac_ct_CC" && break
5755done
5756
5757 if test "x$ac_ct_CC" = x; then
5758 CC=""
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761yes:)
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764ac_tool_warned=yes ;;
5765esac
5766 CC=$ac_ct_CC
5767 fi
5768fi
5769
5770fi
5771
5772
5773test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005775as_fn_error $? "no acceptable C compiler found in \$PATH
5776See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005777
5778# Provide some information about the compiler.
5779$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5780set X $ac_compile
5781ac_compiler=$2
5782for ac_option in --version -v -V -qversion; do
5783 { { ac_try="$ac_compiler $ac_option >&5"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789$as_echo "$ac_try_echo"; } >&5
5790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5791 ac_status=$?
5792 if test -s conftest.err; then
5793 sed '10a\
5794... rest of stderr output deleted ...
5795 10q' conftest.err >conftest.er1
5796 cat conftest.er1 >&5
5797 fi
5798 rm -f conftest.er1 conftest.err
5799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5800 test $ac_status = 0; }
5801done
5802
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5804$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5805if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h. */
5810
5811int
5812main ()
5813{
5814#ifndef __GNUC__
5815 choke me
5816#endif
5817
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_compile "$LINENO"; then :
5823 ac_compiler_gnu=yes
5824else
5825 ac_compiler_gnu=no
5826fi
5827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828ac_cv_c_compiler_gnu=$ac_compiler_gnu
5829
5830fi
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5832$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5833if test $ac_compiler_gnu = yes; then
5834 GCC=yes
5835else
5836 GCC=
5837fi
5838ac_test_CFLAGS=${CFLAGS+set}
5839ac_save_CFLAGS=$CFLAGS
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5841$as_echo_n "checking whether $CC accepts -g... " >&6; }
5842if test "${ac_cv_prog_cc_g+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844else
5845 ac_save_c_werror_flag=$ac_c_werror_flag
5846 ac_c_werror_flag=yes
5847 ac_cv_prog_cc_g=no
5848 CFLAGS="-g"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h. */
5851
5852int
5853main ()
5854{
5855
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860if ac_fn_c_try_compile "$LINENO"; then :
5861 ac_cv_prog_cc_g=yes
5862else
5863 CFLAGS=""
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865/* end confdefs.h. */
5866
5867int
5868main ()
5869{
5870
5871 ;
5872 return 0;
5873}
5874_ACEOF
5875if ac_fn_c_try_compile "$LINENO"; then :
5876
5877else
5878 ac_c_werror_flag=$ac_save_c_werror_flag
5879 CFLAGS="-g"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882
5883int
5884main ()
5885{
5886
5887 ;
5888 return 0;
5889}
5890_ACEOF
5891if ac_fn_c_try_compile "$LINENO"; then :
5892 ac_cv_prog_cc_g=yes
5893fi
5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895fi
5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 ac_c_werror_flag=$ac_save_c_werror_flag
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5902$as_echo "$ac_cv_prog_cc_g" >&6; }
5903if test "$ac_test_CFLAGS" = set; then
5904 CFLAGS=$ac_save_CFLAGS
5905elif test $ac_cv_prog_cc_g = yes; then
5906 if test "$GCC" = yes; then
5907 CFLAGS="-g -O2"
5908 else
5909 CFLAGS="-g"
5910 fi
5911else
5912 if test "$GCC" = yes; then
5913 CFLAGS="-O2"
5914 else
5915 CFLAGS=
5916 fi
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5919$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5920if test "${ac_cv_prog_cc_c89+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 ac_cv_prog_cc_c89=no
5924ac_save_CC=$CC
5925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h. */
5927#include <stdarg.h>
5928#include <stdio.h>
5929#include <sys/types.h>
5930#include <sys/stat.h>
5931/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5932struct buf { int x; };
5933FILE * (*rcsopen) (struct buf *, struct stat *, int);
5934static char *e (p, i)
5935 char **p;
5936 int i;
5937{
5938 return p[i];
5939}
5940static char *f (char * (*g) (char **, int), char **p, ...)
5941{
5942 char *s;
5943 va_list v;
5944 va_start (v,p);
5945 s = g (p, va_arg (v,int));
5946 va_end (v);
5947 return s;
5948}
5949
5950/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5951 function prototypes and stuff, but not '\xHH' hex character constants.
5952 These don't provoke an error unfortunately, instead are silently treated
5953 as 'x'. The following induces an error, until -std is added to get
5954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5955 array size at least. It's necessary to write '\x00'==0 to get something
5956 that's true only with -std. */
5957int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5958
5959/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5960 inside strings and character constants. */
5961#define FOO(x) 'x'
5962int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5963
5964int test (int i, double x);
5965struct s1 {int (*f) (int a);};
5966struct s2 {int (*f) (double a);};
5967int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5968int argc;
5969char **argv;
5970int
5971main ()
5972{
5973return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5980do
5981 CC="$ac_save_CC $ac_arg"
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 ac_cv_prog_cc_c89=$ac_arg
5984fi
5985rm -f core conftest.err conftest.$ac_objext
5986 test "x$ac_cv_prog_cc_c89" != "xno" && break
5987done
5988rm -f conftest.$ac_ext
5989CC=$ac_save_CC
5990
5991fi
5992# AC_CACHE_VAL
5993case "x$ac_cv_prog_cc_c89" in
5994 x)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5996$as_echo "none needed" >&6; } ;;
5997 xno)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5999$as_echo "unsupported" >&6; } ;;
6000 *)
6001 CC="$CC $ac_cv_prog_cc_c89"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6003$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6004esac
6005if test "x$ac_cv_prog_cc_c89" != xno; then :
6006
6007fi
6008
6009ac_ext=c
6010ac_cpp='$CPP $CPPFLAGS'
6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
cristy73bd4a52010-10-05 11:24:23 +00006015depcc="$CC" am_compiler_list=
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6018$as_echo_n "checking dependency style of $depcc... " >&6; }
6019if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021else
6022 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6023 # We make a subdir and do the tests there. Otherwise we can end up
6024 # making bogus files that we don't know about and never remove. For
6025 # instance it was reported that on HP-UX the gcc test will end up
6026 # making a dummy file named `D' -- because `-MD' means `put the output
6027 # in D'.
6028 mkdir conftest.dir
6029 # Copy depcomp to subdir because otherwise we won't find it if we're
6030 # using a relative directory.
6031 cp "$am_depcomp" conftest.dir
6032 cd conftest.dir
6033 # We will build objects and dependencies in a subdirectory because
6034 # it helps to detect inapplicable dependency modes. For instance
6035 # both Tru64's cc and ICC support -MD to output dependencies as a
6036 # side effect of compilation, but ICC will put the dependencies in
6037 # the current directory while Tru64 will put them in the object
6038 # directory.
6039 mkdir sub
6040
6041 am_cv_CC_dependencies_compiler_type=none
6042 if test "$am_compiler_list" = ""; then
6043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6044 fi
6045 am__universal=false
6046 case " $depcc " in #(
6047 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6048 esac
6049
6050 for depmode in $am_compiler_list; do
6051 # Setup a source with many dependencies, because some compilers
6052 # like to wrap large dependency lists on column 80 (with \), and
6053 # we should not choose a depcomp mode which is confused by this.
6054 #
6055 # We need to recreate these files for each test, as the compiler may
6056 # overwrite some of them when testing with obscure command lines.
6057 # This happens at least with the AIX C compiler.
6058 : > sub/conftest.c
6059 for i in 1 2 3 4 5 6; do
6060 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6061 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6062 # Solaris 8's {/usr,}/bin/sh.
6063 touch sub/conftst$i.h
6064 done
6065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6066
6067 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6068 # mode. It turns out that the SunPro C++ compiler does not properly
6069 # handle `-M -o', and we need to detect this. Also, some Intel
6070 # versions had trouble with output in subdirs
6071 am__obj=sub/conftest.${OBJEXT-o}
6072 am__minus_obj="-o $am__obj"
6073 case $depmode in
6074 gcc)
6075 # This depmode causes a compiler race in universal mode.
6076 test "$am__universal" = false || continue
6077 ;;
6078 nosideeffect)
6079 # after this tag, mechanisms are not by side-effect, so they'll
6080 # only be used when explicitly requested
6081 if test "x$enable_dependency_tracking" = xyes; then
6082 continue
6083 else
6084 break
6085 fi
6086 ;;
6087 msvisualcpp | msvcmsys)
6088 # This compiler won't grok `-c -o', but also, the minuso test has
6089 # not run yet. These depmodes are late enough in the game, and
6090 # so weak that their functioning should not be impacted.
6091 am__obj=conftest.${OBJEXT-o}
6092 am__minus_obj=
6093 ;;
6094 none) break ;;
6095 esac
6096 if depmode=$depmode \
6097 source=sub/conftest.c object=$am__obj \
6098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6100 >/dev/null 2>conftest.err &&
6101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6105 # icc doesn't choke on unknown options, it will just issue warnings
6106 # or remarks (even with -Werror). So we grep stderr for any message
6107 # that says an option was ignored or not supported.
6108 # When given -MP, icc 7.0 and 7.1 complain thusly:
6109 # icc: Command line warning: ignoring option '-M'; no argument required
6110 # The diagnosis changed in icc 8.0:
6111 # icc: Command line remark: option '-MP' not supported
6112 if (grep 'ignoring option' conftest.err ||
6113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6114 am_cv_CC_dependencies_compiler_type=$depmode
6115 break
6116 fi
6117 fi
6118 done
6119
6120 cd ..
6121 rm -rf conftest.dir
6122else
6123 am_cv_CC_dependencies_compiler_type=none
6124fi
6125
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6128$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6129CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6130
6131 if
6132 test "x$enable_dependency_tracking" != xno \
6133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6134 am__fastdepCC_TRUE=
6135 am__fastdepCC_FALSE='#'
6136else
6137 am__fastdepCC_TRUE='#'
6138 am__fastdepCC_FALSE=
6139fi
6140
6141
cristy95646052009-11-28 23:05:30 +00006142ac_ext=cpp
6143ac_cpp='$CXXCPP $CPPFLAGS'
6144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147if test -z "$CXX"; then
6148 if test -n "$CCC"; then
6149 CXX=$CCC
6150 else
6151 if test -n "$ac_tool_prefix"; then
6152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6153 do
6154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157$as_echo_n "checking for $ac_word... " >&6; }
6158if test "${ac_cv_prog_CXX+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160else
6161 if test -n "$CXX"; then
6162 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175done
6176 done
6177IFS=$as_save_IFS
6178
6179fi
6180fi
6181CXX=$ac_cv_prog_CXX
6182if test -n "$CXX"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6184$as_echo "$CXX" >&6; }
6185else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187$as_echo "no" >&6; }
6188fi
6189
6190
6191 test -n "$CXX" && break
6192 done
6193fi
6194if test -z "$CXX"; then
6195 ac_ct_CXX=$CXX
6196 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6197do
6198 # Extract the first word of "$ac_prog", so it can be a program name with args.
6199set dummy $ac_prog; ac_word=$2
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201$as_echo_n "checking for $ac_word... " >&6; }
6202if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204else
6205 if test -n "$ac_ct_CXX"; then
6206 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6207else
6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH
6210do
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_ac_ct_CXX="$ac_prog"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6218 fi
6219done
6220 done
6221IFS=$as_save_IFS
6222
6223fi
6224fi
6225ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6226if test -n "$ac_ct_CXX"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6228$as_echo "$ac_ct_CXX" >&6; }
6229else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231$as_echo "no" >&6; }
6232fi
6233
6234
6235 test -n "$ac_ct_CXX" && break
6236done
6237
6238 if test "x$ac_ct_CXX" = x; then
6239 CXX="g++"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242yes:)
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245ac_tool_warned=yes ;;
6246esac
6247 CXX=$ac_ct_CXX
6248 fi
6249fi
6250
6251 fi
6252fi
6253# Provide some information about the compiler.
6254$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6255set X $ac_compile
6256ac_compiler=$2
6257for ac_option in --version -v -V -qversion; do
6258 { { ac_try="$ac_compiler $ac_option >&5"
6259case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6264$as_echo "$ac_try_echo"; } >&5
6265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6266 ac_status=$?
6267 if test -s conftest.err; then
6268 sed '10a\
6269... rest of stderr output deleted ...
6270 10q' conftest.err >conftest.er1
6271 cat conftest.er1 >&5
6272 fi
6273 rm -f conftest.er1 conftest.err
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }
6276done
6277
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6279$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6280if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6282else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h. */
6285
6286int
6287main ()
6288{
6289#ifndef __GNUC__
6290 choke me
6291#endif
6292
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297if ac_fn_cxx_try_compile "$LINENO"; then :
6298 ac_compiler_gnu=yes
6299else
6300 ac_compiler_gnu=no
6301fi
6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6304
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6307$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6308if test $ac_compiler_gnu = yes; then
6309 GXX=yes
6310else
6311 GXX=
6312fi
6313ac_test_CXXFLAGS=${CXXFLAGS+set}
6314ac_save_CXXFLAGS=$CXXFLAGS
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6316$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6317if test "${ac_cv_prog_cxx_g+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319else
6320 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6321 ac_cxx_werror_flag=yes
6322 ac_cv_prog_cxx_g=no
6323 CXXFLAGS="-g"
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h. */
6326
6327int
6328main ()
6329{
6330
6331 ;
6332 return 0;
6333}
6334_ACEOF
6335if ac_fn_cxx_try_compile "$LINENO"; then :
6336 ac_cv_prog_cxx_g=yes
6337else
6338 CXXFLAGS=""
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340/* end confdefs.h. */
6341
6342int
6343main ()
6344{
6345
6346 ;
6347 return 0;
6348}
6349_ACEOF
6350if ac_fn_cxx_try_compile "$LINENO"; then :
6351
6352else
6353 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6354 CXXFLAGS="-g"
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357
6358int
6359main ()
6360{
6361
6362 ;
6363 return 0;
6364}
6365_ACEOF
6366if ac_fn_cxx_try_compile "$LINENO"; then :
6367 ac_cv_prog_cxx_g=yes
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372fi
6373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6377$as_echo "$ac_cv_prog_cxx_g" >&6; }
6378if test "$ac_test_CXXFLAGS" = set; then
6379 CXXFLAGS=$ac_save_CXXFLAGS
6380elif test $ac_cv_prog_cxx_g = yes; then
6381 if test "$GXX" = yes; then
6382 CXXFLAGS="-g -O2"
6383 else
6384 CXXFLAGS="-g"
6385 fi
6386else
6387 if test "$GXX" = yes; then
6388 CXXFLAGS="-O2"
6389 else
6390 CXXFLAGS=
6391 fi
6392fi
6393ac_ext=c
6394ac_cpp='$CPP $CPPFLAGS'
6395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
cristy73bd4a52010-10-05 11:24:23 +00006399depcc="$CXX" am_compiler_list=
6400
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6402$as_echo_n "checking dependency style of $depcc... " >&6; }
6403if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405else
6406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6407 # We make a subdir and do the tests there. Otherwise we can end up
6408 # making bogus files that we don't know about and never remove. For
6409 # instance it was reported that on HP-UX the gcc test will end up
6410 # making a dummy file named `D' -- because `-MD' means `put the output
6411 # in D'.
6412 mkdir conftest.dir
6413 # Copy depcomp to subdir because otherwise we won't find it if we're
6414 # using a relative directory.
6415 cp "$am_depcomp" conftest.dir
6416 cd conftest.dir
6417 # We will build objects and dependencies in a subdirectory because
6418 # it helps to detect inapplicable dependency modes. For instance
6419 # both Tru64's cc and ICC support -MD to output dependencies as a
6420 # side effect of compilation, but ICC will put the dependencies in
6421 # the current directory while Tru64 will put them in the object
6422 # directory.
6423 mkdir sub
6424
6425 am_cv_CXX_dependencies_compiler_type=none
6426 if test "$am_compiler_list" = ""; then
6427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6428 fi
6429 am__universal=false
6430 case " $depcc " in #(
6431 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6432 esac
6433
6434 for depmode in $am_compiler_list; do
6435 # Setup a source with many dependencies, because some compilers
6436 # like to wrap large dependency lists on column 80 (with \), and
6437 # we should not choose a depcomp mode which is confused by this.
6438 #
6439 # We need to recreate these files for each test, as the compiler may
6440 # overwrite some of them when testing with obscure command lines.
6441 # This happens at least with the AIX C compiler.
6442 : > sub/conftest.c
6443 for i in 1 2 3 4 5 6; do
6444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6446 # Solaris 8's {/usr,}/bin/sh.
6447 touch sub/conftst$i.h
6448 done
6449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6450
6451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6452 # mode. It turns out that the SunPro C++ compiler does not properly
6453 # handle `-M -o', and we need to detect this. Also, some Intel
6454 # versions had trouble with output in subdirs
6455 am__obj=sub/conftest.${OBJEXT-o}
6456 am__minus_obj="-o $am__obj"
6457 case $depmode in
6458 gcc)
6459 # This depmode causes a compiler race in universal mode.
6460 test "$am__universal" = false || continue
6461 ;;
6462 nosideeffect)
6463 # after this tag, mechanisms are not by side-effect, so they'll
6464 # only be used when explicitly requested
6465 if test "x$enable_dependency_tracking" = xyes; then
6466 continue
6467 else
6468 break
6469 fi
6470 ;;
6471 msvisualcpp | msvcmsys)
6472 # This compiler won't grok `-c -o', but also, the minuso test has
6473 # not run yet. These depmodes are late enough in the game, and
6474 # so weak that their functioning should not be impacted.
6475 am__obj=conftest.${OBJEXT-o}
6476 am__minus_obj=
6477 ;;
6478 none) break ;;
6479 esac
6480 if depmode=$depmode \
6481 source=sub/conftest.c object=$am__obj \
6482 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6483 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6484 >/dev/null 2>conftest.err &&
6485 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6486 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6487 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6488 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6489 # icc doesn't choke on unknown options, it will just issue warnings
6490 # or remarks (even with -Werror). So we grep stderr for any message
6491 # that says an option was ignored or not supported.
6492 # When given -MP, icc 7.0 and 7.1 complain thusly:
6493 # icc: Command line warning: ignoring option '-M'; no argument required
6494 # The diagnosis changed in icc 8.0:
6495 # icc: Command line remark: option '-MP' not supported
6496 if (grep 'ignoring option' conftest.err ||
6497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6498 am_cv_CXX_dependencies_compiler_type=$depmode
6499 break
6500 fi
6501 fi
6502 done
6503
6504 cd ..
6505 rm -rf conftest.dir
6506else
6507 am_cv_CXX_dependencies_compiler_type=none
6508fi
6509
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6512$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6513CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6514
6515 if
6516 test "x$enable_dependency_tracking" != xno \
6517 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6518 am__fastdepCXX_TRUE=
6519 am__fastdepCXX_FALSE='#'
6520else
6521 am__fastdepCXX_TRUE='#'
6522 am__fastdepCXX_FALSE=
6523fi
6524
6525
cristy8b350f62009-11-15 23:12:43 +00006526 case $ac_cv_prog_cc_stdc in #(
6527 no) :
6528 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6529 *) :
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006531$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006532if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006533 $as_echo_n "(cached) " >&6
6534else
6535 ac_cv_prog_cc_c99=no
6536ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006538/* end confdefs.h. */
6539#include <stdarg.h>
6540#include <stdbool.h>
6541#include <stdlib.h>
6542#include <wchar.h>
6543#include <stdio.h>
6544
6545// Check varargs macros. These examples are taken from C99 6.10.3.5.
6546#define debug(...) fprintf (stderr, __VA_ARGS__)
6547#define showlist(...) puts (#__VA_ARGS__)
6548#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6549static void
6550test_varargs_macros (void)
6551{
6552 int x = 1234;
6553 int y = 5678;
6554 debug ("Flag");
6555 debug ("X = %d\n", x);
6556 showlist (The first, second, and third items.);
6557 report (x>y, "x is %d but y is %d", x, y);
6558}
6559
6560// Check long long types.
6561#define BIG64 18446744073709551615ull
6562#define BIG32 4294967295ul
6563#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6564#if !BIG_OK
6565 your preprocessor is broken;
6566#endif
6567#if BIG_OK
6568#else
6569 your preprocessor is broken;
6570#endif
6571static long long int bignum = -9223372036854775807LL;
6572static unsigned long long int ubignum = BIG64;
6573
6574struct incomplete_array
6575{
6576 int datasize;
6577 double data[];
6578};
6579
6580struct named_init {
6581 int number;
6582 const wchar_t *name;
6583 double average;
6584};
6585
6586typedef const char *ccp;
6587
6588static inline int
6589test_restrict (ccp restrict text)
6590{
6591 // See if C++-style comments work.
6592 // Iterate through items via the restricted pointer.
6593 // Also check for declarations in for loops.
6594 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6595 continue;
6596 return 0;
6597}
6598
6599// Check varargs and va_copy.
6600static void
6601test_varargs (const char *format, ...)
6602{
6603 va_list args;
6604 va_start (args, format);
6605 va_list args_copy;
6606 va_copy (args_copy, args);
6607
6608 const char *str;
6609 int number;
6610 float fnumber;
6611
6612 while (*format)
6613 {
6614 switch (*format++)
6615 {
6616 case 's': // string
6617 str = va_arg (args_copy, const char *);
6618 break;
6619 case 'd': // int
6620 number = va_arg (args_copy, int);
6621 break;
6622 case 'f': // float
6623 fnumber = va_arg (args_copy, double);
6624 break;
6625 default:
6626 break;
6627 }
6628 }
6629 va_end (args_copy);
6630 va_end (args);
6631}
6632
6633int
6634main ()
6635{
6636
6637 // Check bool.
6638 _Bool success = false;
6639
6640 // Check restrict.
6641 if (test_restrict ("String literal") == 0)
6642 success = true;
6643 char *restrict newvar = "Another string";
6644
6645 // Check varargs.
6646 test_varargs ("s, d' f .", "string", 65, 34.234);
6647 test_varargs_macros ();
6648
6649 // Check flexible array members.
6650 struct incomplete_array *ia =
6651 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6652 ia->datasize = 10;
6653 for (int i = 0; i < ia->datasize; ++i)
6654 ia->data[i] = i * 1.234;
6655
6656 // Check named initializers.
6657 struct named_init ni = {
6658 .number = 34,
6659 .name = L"Test wide string",
6660 .average = 543.34343,
6661 };
6662
6663 ni.number = 58;
6664
6665 int dynamic_array[ni.number];
6666 dynamic_array[ni.number - 1] = 543;
6667
6668 // work around unused variable warnings
6669 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6670 || dynamic_array[ni.number - 1] != 543);
6671
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6677do
6678 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006679 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006680 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006681fi
cristy3ed852e2009-09-05 21:47:34 +00006682rm -f core conftest.err conftest.$ac_objext
6683 test "x$ac_cv_prog_cc_c99" != "xno" && break
6684done
6685rm -f conftest.$ac_ext
6686CC=$ac_save_CC
6687
6688fi
6689# AC_CACHE_VAL
6690case "x$ac_cv_prog_cc_c99" in
6691 x)
cristy8b350f62009-11-15 23:12:43 +00006692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006693$as_echo "none needed" >&6; } ;;
6694 xno)
cristy8b350f62009-11-15 23:12:43 +00006695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006696$as_echo "unsupported" >&6; } ;;
6697 *)
6698 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6701esac
cristy8b350f62009-11-15 23:12:43 +00006702if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006703 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6704else
cristy8b350f62009-11-15 23:12:43 +00006705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006706$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006707if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006708 $as_echo_n "(cached) " >&6
6709else
6710 ac_cv_prog_cc_c89=no
6711ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006713/* end confdefs.h. */
6714#include <stdarg.h>
6715#include <stdio.h>
6716#include <sys/types.h>
6717#include <sys/stat.h>
6718/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6719struct buf { int x; };
6720FILE * (*rcsopen) (struct buf *, struct stat *, int);
6721static char *e (p, i)
6722 char **p;
6723 int i;
6724{
6725 return p[i];
6726}
6727static char *f (char * (*g) (char **, int), char **p, ...)
6728{
6729 char *s;
6730 va_list v;
6731 va_start (v,p);
6732 s = g (p, va_arg (v,int));
6733 va_end (v);
6734 return s;
6735}
6736
6737/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6738 function prototypes and stuff, but not '\xHH' hex character constants.
6739 These don't provoke an error unfortunately, instead are silently treated
6740 as 'x'. The following induces an error, until -std is added to get
6741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6742 array size at least. It's necessary to write '\x00'==0 to get something
6743 that's true only with -std. */
6744int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6745
6746/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6747 inside strings and character constants. */
6748#define FOO(x) 'x'
6749int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6750
6751int test (int i, double x);
6752struct s1 {int (*f) (int a);};
6753struct s2 {int (*f) (double a);};
6754int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6755int argc;
6756char **argv;
6757int
6758main ()
6759{
6760return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6767do
6768 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006769 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006770 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006771fi
cristy3ed852e2009-09-05 21:47:34 +00006772rm -f core conftest.err conftest.$ac_objext
6773 test "x$ac_cv_prog_cc_c89" != "xno" && break
6774done
6775rm -f conftest.$ac_ext
6776CC=$ac_save_CC
6777
6778fi
6779# AC_CACHE_VAL
6780case "x$ac_cv_prog_cc_c89" in
6781 x)
cristy8b350f62009-11-15 23:12:43 +00006782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006783$as_echo "none needed" >&6; } ;;
6784 xno)
cristy8b350f62009-11-15 23:12:43 +00006785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006786$as_echo "unsupported" >&6; } ;;
6787 *)
6788 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006790$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6791esac
cristy8b350f62009-11-15 23:12:43 +00006792if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006793 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6794else
6795 ac_cv_prog_cc_stdc=no
6796fi
6797
cristy3ed852e2009-09-05 21:47:34 +00006798fi
cristy3ed852e2009-09-05 21:47:34 +00006799 ;;
6800esac
cristy8b350f62009-11-15 23:12:43 +00006801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006802$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006803 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006804 $as_echo_n "(cached) " >&6
6805fi
6806
cristy8b350f62009-11-15 23:12:43 +00006807 case $ac_cv_prog_cc_stdc in #(
6808 no) :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810$as_echo "unsupported" >&6; } ;; #(
6811 '') :
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6813$as_echo "none needed" >&6; } ;; #(
6814 *) :
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6817esac
6818
cristy3ed852e2009-09-05 21:47:34 +00006819ac_ext=c
6820ac_cpp='$CPP $CPPFLAGS'
6821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006825$as_echo_n "checking how to run the C preprocessor... " >&6; }
6826# On Suns, sometimes $CPP names a directory.
6827if test -n "$CPP" && test -d "$CPP"; then
6828 CPP=
6829fi
6830if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006831 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006832 $as_echo_n "(cached) " >&6
6833else
6834 # Double quotes because CPP needs to be expanded
6835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6836 do
6837 ac_preproc_ok=false
6838for ac_c_preproc_warn_flag in '' yes
6839do
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006847/* end confdefs.h. */
6848#ifdef __STDC__
6849# include <limits.h>
6850#else
6851# include <assert.h>
6852#endif
6853 Syntax error
6854_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006855if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006856
cristy8b350f62009-11-15 23:12:43 +00006857else
cristy3ed852e2009-09-05 21:47:34 +00006858 # Broken: fails on valid input.
6859continue
6860fi
cristy3ed852e2009-09-05 21:47:34 +00006861rm -f conftest.err conftest.$ac_ext
6862
6863 # OK, works on sane cases. Now check whether nonexistent headers
6864 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006866/* end confdefs.h. */
6867#include <ac_nonexistent.h>
6868_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006869if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006870 # Broken: success on invalid input.
6871continue
6872else
cristy3ed852e2009-09-05 21:47:34 +00006873 # Passes both tests.
6874ac_preproc_ok=:
6875break
6876fi
cristy3ed852e2009-09-05 21:47:34 +00006877rm -f conftest.err conftest.$ac_ext
6878
6879done
6880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006882if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006883 break
6884fi
6885
6886 done
6887 ac_cv_prog_CPP=$CPP
6888
6889fi
6890 CPP=$ac_cv_prog_CPP
6891else
6892 ac_cv_prog_CPP=$CPP
6893fi
cristy8b350f62009-11-15 23:12:43 +00006894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006895$as_echo "$CPP" >&6; }
6896ac_preproc_ok=false
6897for ac_c_preproc_warn_flag in '' yes
6898do
6899 # Use a header file that comes with gcc, so configuring glibc
6900 # with a fresh cross-compiler works.
6901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902 # <limits.h> exists even on freestanding compilers.
6903 # On the NeXT, cc -E runs the code through the compiler's parser,
6904 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006906/* end confdefs.h. */
6907#ifdef __STDC__
6908# include <limits.h>
6909#else
6910# include <assert.h>
6911#endif
6912 Syntax error
6913_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006914if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006915
cristy8b350f62009-11-15 23:12:43 +00006916else
cristy3ed852e2009-09-05 21:47:34 +00006917 # Broken: fails on valid input.
6918continue
6919fi
cristy3ed852e2009-09-05 21:47:34 +00006920rm -f conftest.err conftest.$ac_ext
6921
6922 # OK, works on sane cases. Now check whether nonexistent headers
6923 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006925/* end confdefs.h. */
6926#include <ac_nonexistent.h>
6927_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006928if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006929 # Broken: success on invalid input.
6930continue
6931else
cristy3ed852e2009-09-05 21:47:34 +00006932 # Passes both tests.
6933ac_preproc_ok=:
6934break
6935fi
cristy3ed852e2009-09-05 21:47:34 +00006936rm -f conftest.err conftest.$ac_ext
6937
6938done
6939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006941if $ac_preproc_ok; then :
6942
cristy3ed852e2009-09-05 21:47:34 +00006943else
cristy8b350f62009-11-15 23:12:43 +00006944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006946as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6947See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006948fi
6949
6950ac_ext=c
6951ac_cpp='$CPP $CPPFLAGS'
6952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
cristy73bd4a52010-10-05 11:24:23 +00006956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6957$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6958if test "${ac_cv_path_SED+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6962 for ac_i in 1 2 3 4 5 6 7; do
6963 ac_script="$ac_script$as_nl$ac_script"
6964 done
6965 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6966 { ac_script=; unset ac_script;}
6967 if test -z "$SED"; then
6968 ac_path_SED_found=false
6969 # Loop through the user's path and test for each of PROGNAME-LIST
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_prog in sed gsed; do
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6978 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6979# Check for GNU ac_path_SED and select it if it is found.
6980 # Check for GNU $ac_path_SED
6981case `"$ac_path_SED" --version 2>&1` in
6982*GNU*)
6983 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6984*)
6985 ac_count=0
6986 $as_echo_n 0123456789 >"conftest.in"
6987 while :
6988 do
6989 cat "conftest.in" "conftest.in" >"conftest.tmp"
6990 mv "conftest.tmp" "conftest.in"
6991 cp "conftest.in" "conftest.nl"
6992 $as_echo '' >> "conftest.nl"
6993 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6995 as_fn_arith $ac_count + 1 && ac_count=$as_val
6996 if test $ac_count -gt ${ac_path_SED_max-0}; then
6997 # Best one so far, save it but keep looking for a better one
6998 ac_cv_path_SED="$ac_path_SED"
6999 ac_path_SED_max=$ac_count
7000 fi
7001 # 10*(2^10) chars as input seems more than enough
7002 test $ac_count -gt 10 && break
7003 done
7004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7005esac
7006
7007 $ac_path_SED_found && break 3
7008 done
7009 done
7010 done
7011IFS=$as_save_IFS
7012 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007013 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007014 fi
7015else
7016 ac_cv_path_SED=$SED
7017fi
7018
7019fi
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7021$as_echo "$ac_cv_path_SED" >&6; }
7022 SED="$ac_cv_path_SED"
7023 rm -f conftest.sed
7024
7025test -z "$SED" && SED=sed
7026Xsed="$SED -e 1s/^X//"
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7039$as_echo_n "checking for fgrep... " >&6; }
7040if test "${ac_cv_path_FGREP+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7042else
7043 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7044 then ac_cv_path_FGREP="$GREP -F"
7045 else
7046 if test -z "$FGREP"; then
7047 ac_path_FGREP_found=false
7048 # Loop through the user's path and test for each of PROGNAME-LIST
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_prog in fgrep; do
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7057 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7058# Check for GNU ac_path_FGREP and select it if it is found.
7059 # Check for GNU $ac_path_FGREP
7060case `"$ac_path_FGREP" --version 2>&1` in
7061*GNU*)
7062 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7063*)
7064 ac_count=0
7065 $as_echo_n 0123456789 >"conftest.in"
7066 while :
7067 do
7068 cat "conftest.in" "conftest.in" >"conftest.tmp"
7069 mv "conftest.tmp" "conftest.in"
7070 cp "conftest.in" "conftest.nl"
7071 $as_echo 'FGREP' >> "conftest.nl"
7072 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7074 as_fn_arith $ac_count + 1 && ac_count=$as_val
7075 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7076 # Best one so far, save it but keep looking for a better one
7077 ac_cv_path_FGREP="$ac_path_FGREP"
7078 ac_path_FGREP_max=$ac_count
7079 fi
7080 # 10*(2^10) chars as input seems more than enough
7081 test $ac_count -gt 10 && break
7082 done
7083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7084esac
7085
7086 $ac_path_FGREP_found && break 3
7087 done
7088 done
7089 done
7090IFS=$as_save_IFS
7091 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007092 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007093 fi
7094else
7095 ac_cv_path_FGREP=$FGREP
7096fi
7097
7098 fi
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7101$as_echo "$ac_cv_path_FGREP" >&6; }
7102 FGREP="$ac_cv_path_FGREP"
7103
7104
7105test -z "$GREP" && GREP=grep
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
cristy0c60a692010-11-04 01:09:47 +00007123ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7124ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7125ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7126
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7128$as_echo_n "checking how to print strings... " >&6; }
7129# Test print first, because it will be a builtin if present.
7130if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7131 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7132 ECHO='print -r --'
7133elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7134 ECHO='printf %s\n'
7135else
7136 # Use this function as a fallback that always works.
7137 func_fallback_echo ()
7138 {
7139 eval 'cat <<_LTECHO_EOF
7140$1
7141_LTECHO_EOF'
7142 }
7143 ECHO='func_fallback_echo'
7144fi
7145
7146# func_echo_all arg...
7147# Invoke $ECHO with all args, space-separated.
7148func_echo_all ()
7149{
7150 $ECHO ""
7151}
7152
7153case "$ECHO" in
7154 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7155$as_echo "printf" >&6; } ;;
7156 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7157$as_echo "print -r" >&6; } ;;
7158 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7159$as_echo "cat" >&6; } ;;
7160esac
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
cristy73bd4a52010-10-05 11:24:23 +00007175
7176
7177# Check whether --with-gnu-ld was given.
7178if test "${with_gnu_ld+set}" = set; then :
7179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7180else
7181 with_gnu_ld=no
7182fi
7183
7184ac_prog=ld
7185if test "$GCC" = yes; then
7186 # Check if gcc -print-prog-name=ld gives a path.
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7188$as_echo_n "checking for ld used by $CC... " >&6; }
7189 case $host in
7190 *-*-mingw*)
7191 # gcc leaves a trailing carriage return which upsets mingw
7192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7193 *)
7194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7195 esac
7196 case $ac_prog in
7197 # Accept absolute paths.
7198 [\\/]* | ?:[\\/]*)
7199 re_direlt='/[^/][^/]*/\.\./'
7200 # Canonicalize the pathname of ld
7201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7204 done
7205 test -z "$LD" && LD="$ac_prog"
7206 ;;
7207 "")
7208 # If it fails, then pretend we aren't using GCC.
7209 ac_prog=ld
7210 ;;
7211 *)
7212 # If it is relative, then search for the first ld in PATH.
7213 with_gnu_ld=unknown
7214 ;;
7215 esac
7216elif test "$with_gnu_ld" = yes; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7218$as_echo_n "checking for GNU ld... " >&6; }
7219else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7221$as_echo_n "checking for non-GNU ld... " >&6; }
7222fi
7223if test "${lt_cv_path_LD+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225else
7226 if test -z "$LD"; then
7227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228 for ac_dir in $PATH; do
7229 IFS="$lt_save_ifs"
7230 test -z "$ac_dir" && ac_dir=.
7231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7232 lt_cv_path_LD="$ac_dir/$ac_prog"
7233 # Check to see if the program is GNU ld. I'd rather use --version,
7234 # but apparently some variants of GNU ld only accept -v.
7235 # Break only if it was the GNU/non-GNU ld that we prefer.
7236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7237 *GNU* | *'with BFD'*)
7238 test "$with_gnu_ld" != no && break
7239 ;;
7240 *)
7241 test "$with_gnu_ld" != yes && break
7242 ;;
7243 esac
7244 fi
7245 done
7246 IFS="$lt_save_ifs"
7247else
7248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7249fi
7250fi
7251
7252LD="$lt_cv_path_LD"
7253if test -n "$LD"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7255$as_echo "$LD" >&6; }
7256else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258$as_echo "no" >&6; }
7259fi
cristy98dddb52010-11-04 00:30:15 +00007260test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7262$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7263if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7267case `$LD -v 2>&1 </dev/null` in
7268*GNU* | *'with BFD'*)
7269 lt_cv_prog_gnu_ld=yes
7270 ;;
7271*)
7272 lt_cv_prog_gnu_ld=no
7273 ;;
7274esac
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7277$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7278with_gnu_ld=$lt_cv_prog_gnu_ld
7279
7280
7281
7282
7283
7284
7285
7286
7287
cristy3ed852e2009-09-05 21:47:34 +00007288
cristy837d6dc2010-02-27 01:16:57 +00007289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7290$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7291if test "${ac_cv_prog_cc_c99+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293else
7294 ac_cv_prog_cc_c99=no
7295ac_save_CC=$CC
7296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h. */
7298#include <stdarg.h>
7299#include <stdbool.h>
7300#include <stdlib.h>
7301#include <wchar.h>
7302#include <stdio.h>
7303
7304// Check varargs macros. These examples are taken from C99 6.10.3.5.
7305#define debug(...) fprintf (stderr, __VA_ARGS__)
7306#define showlist(...) puts (#__VA_ARGS__)
7307#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7308static void
7309test_varargs_macros (void)
7310{
7311 int x = 1234;
7312 int y = 5678;
7313 debug ("Flag");
7314 debug ("X = %d\n", x);
7315 showlist (The first, second, and third items.);
7316 report (x>y, "x is %d but y is %d", x, y);
7317}
7318
7319// Check long long types.
7320#define BIG64 18446744073709551615ull
7321#define BIG32 4294967295ul
7322#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7323#if !BIG_OK
7324 your preprocessor is broken;
7325#endif
7326#if BIG_OK
7327#else
7328 your preprocessor is broken;
7329#endif
7330static long long int bignum = -9223372036854775807LL;
7331static unsigned long long int ubignum = BIG64;
7332
7333struct incomplete_array
7334{
7335 int datasize;
7336 double data[];
7337};
7338
7339struct named_init {
7340 int number;
7341 const wchar_t *name;
7342 double average;
7343};
7344
7345typedef const char *ccp;
7346
7347static inline int
7348test_restrict (ccp restrict text)
7349{
7350 // See if C++-style comments work.
7351 // Iterate through items via the restricted pointer.
7352 // Also check for declarations in for loops.
7353 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7354 continue;
7355 return 0;
7356}
7357
7358// Check varargs and va_copy.
7359static void
7360test_varargs (const char *format, ...)
7361{
7362 va_list args;
7363 va_start (args, format);
7364 va_list args_copy;
7365 va_copy (args_copy, args);
7366
7367 const char *str;
7368 int number;
7369 float fnumber;
7370
7371 while (*format)
7372 {
7373 switch (*format++)
7374 {
7375 case 's': // string
7376 str = va_arg (args_copy, const char *);
7377 break;
7378 case 'd': // int
7379 number = va_arg (args_copy, int);
7380 break;
7381 case 'f': // float
7382 fnumber = va_arg (args_copy, double);
7383 break;
7384 default:
7385 break;
7386 }
7387 }
7388 va_end (args_copy);
7389 va_end (args);
7390}
7391
7392int
7393main ()
7394{
7395
7396 // Check bool.
7397 _Bool success = false;
7398
7399 // Check restrict.
7400 if (test_restrict ("String literal") == 0)
7401 success = true;
7402 char *restrict newvar = "Another string";
7403
7404 // Check varargs.
7405 test_varargs ("s, d' f .", "string", 65, 34.234);
7406 test_varargs_macros ();
7407
7408 // Check flexible array members.
7409 struct incomplete_array *ia =
7410 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7411 ia->datasize = 10;
7412 for (int i = 0; i < ia->datasize; ++i)
7413 ia->data[i] = i * 1.234;
7414
7415 // Check named initializers.
7416 struct named_init ni = {
7417 .number = 34,
7418 .name = L"Test wide string",
7419 .average = 543.34343,
7420 };
7421
7422 ni.number = 58;
7423
7424 int dynamic_array[ni.number];
7425 dynamic_array[ni.number - 1] = 543;
7426
7427 // work around unused variable warnings
7428 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7429 || dynamic_array[ni.number - 1] != 543);
7430
7431 ;
7432 return 0;
7433}
7434_ACEOF
7435for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7436do
7437 CC="$ac_save_CC $ac_arg"
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439 ac_cv_prog_cc_c99=$ac_arg
7440fi
7441rm -f core conftest.err conftest.$ac_objext
7442 test "x$ac_cv_prog_cc_c99" != "xno" && break
7443done
7444rm -f conftest.$ac_ext
7445CC=$ac_save_CC
7446
7447fi
7448# AC_CACHE_VAL
7449case "x$ac_cv_prog_cc_c99" in
7450 x)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7452$as_echo "none needed" >&6; } ;;
7453 xno)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7455$as_echo "unsupported" >&6; } ;;
7456 *)
7457 CC="$CC $ac_cv_prog_cc_c99"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7459$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7460esac
7461if test "x$ac_cv_prog_cc_c99" != xno; then :
7462
7463fi
7464
7465
cristy73bd4a52010-10-05 11:24:23 +00007466if test "x$CC" != xcc; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7468$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7469else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7471$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7472fi
7473set dummy $CC; ac_cc=`$as_echo "$2" |
7474 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy98dddb52010-11-04 00:30:15 +00007475if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007476 $as_echo_n "(cached) " >&6
7477else
cristy73bd4a52010-10-05 11:24:23 +00007478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480
7481int
7482main ()
7483{
7484
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489# Make sure it works both with $CC and with simple cc.
7490# We do the test twice because some compilers refuse to overwrite an
7491# existing .o file with -o, though they will create one.
7492ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7493rm -f conftest2.*
7494if { { case "(($ac_try" in
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7497esac
7498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7499$as_echo "$ac_try_echo"; } >&5
7500 (eval "$ac_try") 2>&5
7501 ac_status=$?
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; } &&
7504 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507esac
7508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7509$as_echo "$ac_try_echo"; } >&5
7510 (eval "$ac_try") 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; };
7514then
7515 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7516 if test "x$CC" != xcc; then
7517 # Test first that cc exists at all.
7518 if { ac_try='cc -c conftest.$ac_ext >&5'
7519 { { case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522esac
7523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524$as_echo "$ac_try_echo"; } >&5
7525 (eval "$ac_try") 2>&5
7526 ac_status=$?
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; }; }; then
7529 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7530 rm -f conftest2.*
7531 if { { case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534esac
7535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7536$as_echo "$ac_try_echo"; } >&5
7537 (eval "$ac_try") 2>&5
7538 ac_status=$?
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; } &&
7541 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544esac
7545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7546$as_echo "$ac_try_echo"; } >&5
7547 (eval "$ac_try") 2>&5
7548 ac_status=$?
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; };
7551 then
7552 # cc works too.
7553 :
7554 else
7555 # cc exists but doesn't like -o.
7556 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7557 fi
7558 fi
7559 fi
7560else
7561 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7562fi
7563rm -f core conftest*
7564
7565fi
7566if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568$as_echo "yes" >&6; }
7569else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572
7573$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7574
7575fi
7576
7577# FIXME: we rely on the cache variable name because
7578# there is no other way.
7579set dummy $CC
7580am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7581eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7582if test "$am_t" != yes; then
7583 # Losing compiler, so override with the script.
7584 # FIXME: It is wrong to rewrite CC.
7585 # But if we don't then we get into trouble of one sort or another.
7586 # A longer-term fix would be to have automake use am__CC in this case,
7587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7588 CC="$am_aux_dir/compile $CC"
7589fi
7590
7591
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7593$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7594if test "${ac_cv_cflags_warn_all+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596else
7597 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007598 ac_ext=c
7599ac_cpp='$CPP $CPPFLAGS'
7600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604 ac_save_CFLAGS="$CFLAGS"
7605for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7606do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h. */
7609
7610int
7611main ()
7612{
cristy24fc1fe2010-10-23 21:13:01 +00007613
cristy73bd4a52010-10-05 11:24:23 +00007614 ;
7615 return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_compile "$LINENO"; then :
7619 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7620fi
7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622done
7623 CFLAGS="$ac_save_CFLAGS"
7624 ac_ext=c
7625ac_cpp='$CPP $CPPFLAGS'
7626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629
7630
7631fi
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7633$as_echo "$ac_cv_cflags_warn_all" >&6; }
7634case ".$ac_cv_cflags_warn_all" in
7635 .ok|.ok,*) ;;
7636 .|.no|.no,*)
7637 ;;
7638 *)
7639 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7640 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7641 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7646 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }
7650 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7651 fi
7652 ;;
nicolas6237c462010-10-05 06:11:49 +00007653esac
cristy3ed852e2009-09-05 21:47:34 +00007654
cristya0b81c32010-01-22 02:54:33 +00007655
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7657$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7658set x ${MAKE-make}
7659ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00007660if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007661 $as_echo_n "(cached) " >&6
7662else
7663 cat >conftest.make <<\_ACEOF
7664SHELL = /bin/sh
7665all:
7666 @echo '@@@%%%=$(MAKE)=@@@%%%'
7667_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007668# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007669case `${MAKE-make} -f conftest.make 2>/dev/null` in
7670 *@@@%%%=?*=@@@%%%*)
7671 eval ac_cv_prog_make_${ac_make}_set=yes;;
7672 *)
7673 eval ac_cv_prog_make_${ac_make}_set=no;;
7674esac
7675rm -f conftest.make
7676fi
7677if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679$as_echo "yes" >&6; }
7680 SET_MAKE=
7681else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683$as_echo "no" >&6; }
7684 SET_MAKE="MAKE=${MAKE-make}"
7685fi
7686
cristy8b350f62009-11-15 23:12:43 +00007687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo_n "checking whether ln -s works... " >&6; }
7689LN_S=$as_ln_s
7690if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007692$as_echo "yes" >&6; }
7693else
cristy8b350f62009-11-15 23:12:43 +00007694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo "no, using $LN_S" >&6; }
7696fi
7697
cristy73bd4a52010-10-05 11:24:23 +00007698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7699$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7700
7701# Check whether --with-dmalloc was given.
7702if test "${with_dmalloc+set}" = set; then :
7703 withval=$with_dmalloc; if test "$withval" = yes; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7705$as_echo "yes" >&6; }
7706
7707$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7708
7709 LIBS="$LIBS -ldmalloc"
7710 LDFLAGS="$LDFLAGS -g"
7711else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717$as_echo "no" >&6; }
7718fi
7719
7720
7721
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7723$as_echo_n "checking for __attribute__... " >&6; }
7724if test "${ax_cv___attribute__+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7726else
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h. */
7729#include <stdlib.h>
7730 static void foo(void) __attribute__ ((unused));
7731 static void
7732 foo(void) {
7733 exit(1);
7734 }
7735
7736int
7737main ()
7738{
7739
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744if ac_fn_c_try_compile "$LINENO"; then :
7745 ax_cv___attribute__=yes
7746else
7747 ax_cv___attribute__=no
7748
7749fi
7750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7754$as_echo "$ax_cv___attribute__" >&6; }
7755 if test "$ax_cv___attribute__" = "yes"; then
7756
7757$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7758
7759 fi
7760
7761
7762
7763if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7766set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771else
7772 case $PKG_CONFIG in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788done
7789 done
7790IFS=$as_save_IFS
7791
7792 ;;
7793esac
7794fi
7795PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7796if test -n "$PKG_CONFIG"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7798$as_echo "$PKG_CONFIG" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804
7805fi
7806if test -z "$ac_cv_path_PKG_CONFIG"; then
7807 ac_pt_PKG_CONFIG=$PKG_CONFIG
7808 # Extract the first word of "pkg-config", so it can be a program name with args.
7809set dummy pkg-config; ac_word=$2
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811$as_echo_n "checking for $ac_word... " >&6; }
7812if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814else
7815 case $ac_pt_PKG_CONFIG in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7818 ;;
7819 *)
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832 done
7833IFS=$as_save_IFS
7834
7835 ;;
7836esac
7837fi
7838ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7839if test -n "$ac_pt_PKG_CONFIG"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7841$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7842else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
7845fi
7846
7847 if test "x$ac_pt_PKG_CONFIG" = x; then
7848 PKG_CONFIG=""
7849 else
7850 case $cross_compiling:$ac_tool_warned in
7851yes:)
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854ac_tool_warned=yes ;;
7855esac
7856 PKG_CONFIG=$ac_pt_PKG_CONFIG
7857 fi
7858else
7859 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7860fi
7861
7862fi
7863if test -n "$PKG_CONFIG"; then
7864 _pkg_min_version=0.9.0
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7866$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7867 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869$as_echo "yes" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873 PKG_CONFIG=""
7874 fi
7875
7876fi
cristy3ed852e2009-09-05 21:47:34 +00007877
7878#
cristy3ed852e2009-09-05 21:47:34 +00007879# Enable run-time checking.
7880#
7881# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007882if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007883 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7884else
7885 enable_bounds_checking='no'
7886fi
7887
7888
7889if test "$enable_bounds_checking" = yes; then
7890
cristy8b350f62009-11-15 23:12:43 +00007891$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007892
7893fi
7894
7895#
7896# Tests for Windows
7897#
7898
7899
cristy73bd4a52010-10-05 11:24:23 +00007900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7901$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7902if test "${ax_cv_c_compiler_ms+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904else
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907
7908int
7909main ()
7910{
7911#ifndef _MSC_VER
7912 choke me
7913#endif
7914
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919if ac_fn_c_try_compile "$LINENO"; then :
7920 ax_compiler_ms=yes
7921else
7922 ax_compiler_ms=no
7923fi
7924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925ax_cv_c_compiler_ms=$ax_compiler_ms
7926
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7929$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007930
7931GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007932native_win32_build='no'
7933cygwin_build='no'
7934case "${host_os}" in
7935 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007936 cygwin_build='yes'
7937 GDI32_LIBS='-lgdi32'
7938 ;;
7939 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007940 native_win32_build='yes'
7941 GDI32_LIBS='-lgdi32'
7942 ;;
7943esac
7944if test "${GDI32_LIBS}x" != 'x'; then
7945
cristy8b350f62009-11-15 23:12:43 +00007946$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007947
7948fi
7949
cristy73bd4a52010-10-05 11:24:23 +00007950 if test "${GDI32_LIBS}x" != 'x' ; then
7951 WINGDI32_DELEGATE_TRUE=
7952 WINGDI32_DELEGATE_FALSE='#'
7953else
7954 WINGDI32_DELEGATE_TRUE='#'
7955 WINGDI32_DELEGATE_FALSE=
7956fi
7957
7958 if test "${native_win32_build}" = 'yes' ; then
7959 WIN32_NATIVE_BUILD_TRUE=
7960 WIN32_NATIVE_BUILD_FALSE='#'
7961else
7962 WIN32_NATIVE_BUILD_TRUE='#'
7963 WIN32_NATIVE_BUILD_FALSE=
7964fi
7965
7966 if test "${cygwin_build}" = 'yes' ; then
7967 CYGWIN_BUILD_TRUE=
7968 CYGWIN_BUILD_FALSE='#'
7969else
7970 CYGWIN_BUILD_TRUE='#'
7971 CYGWIN_BUILD_FALSE=
7972fi
7973
7974 if test "x${CC}" = 'xcl.exe' ; then
7975 USING_CL_TRUE=
7976 USING_CL_FALSE='#'
7977else
7978 USING_CL_TRUE='#'
7979 USING_CL_FALSE=
7980fi
7981
cristy3ed852e2009-09-05 21:47:34 +00007982
7983WinPathScript="${srcdirfull}/winpath.sh"
7984
7985
7986#
7987# Compiler flags tweaks
7988#
7989if test "${GCC}" != "yes"; then
7990 case "${host}" in
7991 *-*-hpux* )
7992 # aCC: HP ANSI C++ B3910B A.03.34
7993 CFLAGS="${CFLAGS} -Wp,-H30000"
7994 if test -n "${CXXFLAGS}"; then
7995 CXXFLAGS='-AA'
7996 else
7997 CXXFLAGS="${CXXFLAGS} -AA"
7998 fi
7999 ;;
8000 *-dec-osf5.* )
8001 # Compaq alphaev68-dec-osf5.1 compiler
8002 if test -n "${CXXFLAGS}"; then
8003 CXXFLAGS='-std strict_ansi -noimplicit_include'
8004 else
8005 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8006 fi
8007 esac
8008fi
8009
8010# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008012$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008013if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008014 $as_echo_n "(cached) " >&6
8015else
8016
8017im_cv_ld_lazyload='none'
8018case "${host}" in
8019 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8020 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8021 im_cv_ld_lazyload='-Wl,-zlazyload'
8022 fi
8023 ;;
8024esac
8025
8026fi
cristy8b350f62009-11-15 23:12:43 +00008027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008028$as_echo "$im_cv_ld_lazyload" >&6; }
8029if test "${im_cv_ld_lazyload}" != 'none' ; then
8030 if test -z "${LDFLAGS}" ; then
8031 LDFLAGS="${im_cv_ld_lazyload}"
8032 else
8033 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8034 fi
8035fi
8036
8037case "$host" in
8038*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008039 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008040if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008041 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8042else
8043 build_osxuniversal=no
8044fi
8045
8046
8047 if test "${build_osxuniversal}" != no ; then
8048 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008049 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008050Please re-run configure with these options:
8051 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008052 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008053 fi
8054 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8055 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8056 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8057 fi
8058 ;;
8059esac
8060
8061# Enable support for threads
8062
8063# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008064if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008065 withval=$with_threads; with_threads=$withval
8066else
8067 with_threads='yes'
8068fi
8069
8070
8071have_threads=no
8072if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008073
8074
8075
8076ac_ext=c
8077ac_cpp='$CPP $CPPFLAGS'
8078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8080ac_compiler_gnu=$ac_cv_c_compiler_gnu
8081
8082ax_pthread_ok=no
8083
8084# We used to check for pthread.h first, but this fails if pthread.h
8085# requires special compiler flags (e.g. on True64 or Sequent).
8086# It gets checked for in the link test anyway.
8087
8088# First of all, check if the user has set any of the PTHREAD_LIBS,
8089# etcetera environment variables, and if threads linking works using
8090# them:
8091if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8092 save_CFLAGS="$CFLAGS"
8093 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8094 save_LIBS="$LIBS"
8095 LIBS="$PTHREAD_LIBS $LIBS"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8097$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h. */
8100
8101/* Override any GCC internal prototype to avoid an error.
8102 Use char because int might match the return type of a GCC
8103 builtin and then its argument prototype would still apply. */
8104#ifdef __cplusplus
8105extern "C"
8106#endif
8107char pthread_join ();
8108int
8109main ()
8110{
8111return pthread_join ();
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116if ac_fn_c_try_link "$LINENO"; then :
8117 ax_pthread_ok=yes
8118fi
8119rm -f core conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8122$as_echo "$ax_pthread_ok" >&6; }
8123 if test x"$ax_pthread_ok" = xno; then
8124 PTHREAD_LIBS=""
8125 PTHREAD_CFLAGS=""
8126 fi
8127 LIBS="$save_LIBS"
8128 CFLAGS="$save_CFLAGS"
8129fi
8130
8131# We must check for the threads library under a number of different
8132# names; the ordering is very important because some systems
8133# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8134# libraries is broken (non-POSIX).
8135
8136# Create a list of thread flags to try. Items starting with a "-" are
8137# C compiler flags, and other items are library names, except for "none"
8138# which indicates that we try without any flags at all, and "pthread-config"
8139# which is a program returning the flags for the Pth emulation library.
8140
8141ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8142
8143# The ordering *is* (sometimes) important. Some notes on the
8144# individual items follow:
8145
8146# pthreads: AIX (must check this before -lpthread)
8147# none: in case threads are in libc; should be tried before -Kthread and
8148# other compiler flags to prevent continual compiler warnings
8149# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8150# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8151# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8152# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8153# -pthreads: Solaris/gcc
8154# -mthreads: Mingw32/gcc, Lynx/gcc
8155# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8156# doesn't hurt to check since this sometimes defines pthreads too;
8157# also defines -D_REENTRANT)
8158# ... -mt is also the pthreads flag for HP/aCC
8159# pthread: Linux, etcetera
8160# --thread-safe: KAI C++
8161# pthread-config: use pthread-config program (for GNU Pth library)
8162
8163case "${host_cpu}-${host_os}" in
8164 *solaris*)
8165
8166 # On Solaris (at least, for some versions), libc contains stubbed
8167 # (non-functional) versions of the pthreads routines, so link-based
8168 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8169 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8170 # a function called by this macro, so we could check for that, but
8171 # who knows whether they'll stub that too in a future libc.) So,
8172 # we'll just look for -pthreads and -lpthread first:
8173
8174 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8175 ;;
8176
8177 *-darwin*)
8178 ax_pthread_flags="-pthread $ax_pthread_flags"
8179 ;;
8180esac
8181
8182if test x"$ax_pthread_ok" = xno; then
8183for flag in $ax_pthread_flags; do
8184
8185 case $flag in
8186 none)
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8188$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8189 ;;
8190
8191 -*)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8193$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8194 PTHREAD_CFLAGS="$flag"
8195 ;;
8196
8197 pthread-config)
8198 # Extract the first word of "pthread-config", so it can be a program name with args.
8199set dummy pthread-config; ac_word=$2
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
8202if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204else
8205 if test -n "$ax_pthread_config"; then
8206 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_ax_pthread_config="yes"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219done
8220 done
8221IFS=$as_save_IFS
8222
8223 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8224fi
8225fi
8226ax_pthread_config=$ac_cv_prog_ax_pthread_config
8227if test -n "$ax_pthread_config"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8229$as_echo "$ax_pthread_config" >&6; }
8230else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
8233fi
8234
8235
8236 if test x"$ax_pthread_config" = xno; then continue; fi
8237 PTHREAD_CFLAGS="`pthread-config --cflags`"
8238 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8239 ;;
8240
8241 *)
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8243$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8244 PTHREAD_LIBS="-l$flag"
8245 ;;
8246 esac
8247
8248 save_LIBS="$LIBS"
8249 save_CFLAGS="$CFLAGS"
8250 LIBS="$PTHREAD_LIBS $LIBS"
8251 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8252
8253 # Check for various functions. We must include pthread.h,
8254 # since some functions may be macros. (On the Sequent, we
8255 # need a special flag -Kthread to make this header compile.)
8256 # We check for pthread_join because it is in -lpthread on IRIX
8257 # while pthread_create is in libc. We check for pthread_attr_init
8258 # due to DEC craziness with -lpthreads. We check for
8259 # pthread_cleanup_push because it is one of the few pthread
8260 # functions on Solaris that doesn't have a non-functional libc stub.
8261 # We try pthread_create on general principles.
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263/* end confdefs.h. */
8264#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008265 static void routine(void* a) {a=0;}
8266 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008267int
8268main ()
8269{
8270pthread_t th; pthread_attr_t attr;
8271 pthread_create(&th,0,start_routine,0);
8272 pthread_join(th, 0);
8273 pthread_attr_init(&attr);
8274 pthread_cleanup_push(routine, 0);
8275 pthread_cleanup_pop(0);
8276 ;
8277 return 0;
8278}
8279_ACEOF
8280if ac_fn_c_try_link "$LINENO"; then :
8281 ax_pthread_ok=yes
8282fi
8283rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8285
8286 LIBS="$save_LIBS"
8287 CFLAGS="$save_CFLAGS"
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8290$as_echo "$ax_pthread_ok" >&6; }
8291 if test "x$ax_pthread_ok" = xyes; then
8292 break;
8293 fi
8294
8295 PTHREAD_LIBS=""
8296 PTHREAD_CFLAGS=""
8297done
8298fi
8299
8300# Various other checks:
8301if test "x$ax_pthread_ok" = xyes; then
8302 save_LIBS="$LIBS"
8303 LIBS="$PTHREAD_LIBS $LIBS"
8304 save_CFLAGS="$CFLAGS"
8305 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8306
8307 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8309$as_echo_n "checking for joinable pthread attribute... " >&6; }
8310 attr_name=unknown
8311 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h. */
8314#include <pthread.h>
8315int
8316main ()
8317{
8318int attr=$attr; return attr;
8319 ;
8320 return 0;
8321}
8322_ACEOF
8323if ac_fn_c_try_link "$LINENO"; then :
8324 attr_name=$attr; break
8325fi
8326rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 done
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8330$as_echo "$attr_name" >&6; }
8331 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8332
8333cat >>confdefs.h <<_ACEOF
8334#define PTHREAD_CREATE_JOINABLE $attr_name
8335_ACEOF
8336
8337 fi
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8340$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8341 flag=no
8342 case "${host_cpu}-${host_os}" in
8343 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8344 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8345 esac
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8347$as_echo "${flag}" >&6; }
8348 if test "x$flag" != xno; then
8349 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8350 fi
8351
8352 LIBS="$save_LIBS"
8353 CFLAGS="$save_CFLAGS"
8354
8355 # More AIX lossage: must compile with xlc_r or cc_r
8356 if test x"$GCC" != xyes; then
8357 for ac_prog in xlc_r cc_r
8358do
8359 # Extract the first word of "$ac_prog", so it can be a program name with args.
8360set dummy $ac_prog; ac_word=$2
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362$as_echo_n "checking for $ac_word... " >&6; }
8363if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365else
8366 if test -n "$PTHREAD_CC"; then
8367 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8368else
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_prog_PTHREAD_CC="$ac_prog"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8379 fi
8380done
8381 done
8382IFS=$as_save_IFS
8383
8384fi
8385fi
8386PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8387if test -n "$PTHREAD_CC"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8389$as_echo "$PTHREAD_CC" >&6; }
8390else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
8393fi
8394
8395
8396 test -n "$PTHREAD_CC" && break
8397done
8398test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8399
8400 else
8401 PTHREAD_CC=$CC
8402 fi
8403else
8404 PTHREAD_CC="$CC"
8405fi
8406
8407
8408
8409
8410
8411# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8412if test x"$ax_pthread_ok" = xyes; then
8413
8414$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8415
8416 :
8417else
8418 ax_pthread_ok=no
8419
8420fi
8421ac_ext=c
8422ac_cpp='$CPP $CPPFLAGS'
8423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426
8427
cristy7acf8fb2010-09-23 19:58:53 +00008428 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008429 have_threads=yes
8430 DEF_THREAD="$PTHREAD_CFLAGS"
8431 CFLAGS="$CFLAGS $DEF_THREAD"
8432 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8433 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008434 { $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 +00008435$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8436 CC="$PTHREAD_CC"
8437 fi
cristy55bf91c2010-09-24 00:29:41 +00008438
8439$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8440
cristy3ed852e2009-09-05 21:47:34 +00008441 fi
8442fi
8443
8444# Enable support for OpenMP
8445if test "$have_threads" != 'yes'; then
8446 ac_cv_prog_c_openmp=unsupported
8447fi
8448
8449 OPENMP_CFLAGS=
8450 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008451if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008452 enableval=$enable_openmp;
8453fi
8454
8455 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008457$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008458if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008459 $as_echo_n "(cached) " >&6
8460else
cristy8b350f62009-11-15 23:12:43 +00008461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008463
8464#ifndef _OPENMP
8465 choke me
8466#endif
8467#include <omp.h>
8468int main () { return omp_get_num_threads (); }
8469
8470_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008471if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008472 ac_cv_prog_c_openmp='none needed'
8473else
cristy8b350f62009-11-15 23:12:43 +00008474 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008475 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8476 ac_save_CFLAGS=$CFLAGS
8477 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008480
8481#ifndef _OPENMP
8482 choke me
8483#endif
8484#include <omp.h>
8485int main () { return omp_get_num_threads (); }
8486
8487_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008489 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008490fi
cristy8b350f62009-11-15 23:12:43 +00008491rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008493 CFLAGS=$ac_save_CFLAGS
8494 if test "$ac_cv_prog_c_openmp" != unsupported; then
8495 break
8496 fi
8497 done
8498fi
cristy8b350f62009-11-15 23:12:43 +00008499rm -f core conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008501fi
cristy8b350f62009-11-15 23:12:43 +00008502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008503$as_echo "$ac_cv_prog_c_openmp" >&6; }
8504 case $ac_cv_prog_c_openmp in #(
8505 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008506 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008507 *)
cristy8b350f62009-11-15 23:12:43 +00008508 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008509 esac
8510 fi
8511
8512
8513CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8514MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8515
cristy391f1ce2010-09-09 17:23:28 +00008516if test "$enable_openmp" != no; then
8517 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8518 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8519 fi
8520fi
cristy3ed852e2009-09-05 21:47:34 +00008521
cristy736173a2009-09-20 21:18:22 +00008522# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008523
8524
8525
8526ac_ext=c
8527ac_cpp='$CPP $CPPFLAGS'
8528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8530ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531
8532ax_pthread_ok=no
8533
8534# We used to check for pthread.h first, but this fails if pthread.h
8535# requires special compiler flags (e.g. on True64 or Sequent).
8536# It gets checked for in the link test anyway.
8537
8538# First of all, check if the user has set any of the PTHREAD_LIBS,
8539# etcetera environment variables, and if threads linking works using
8540# them:
8541if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8542 save_CFLAGS="$CFLAGS"
8543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8544 save_LIBS="$LIBS"
8545 LIBS="$PTHREAD_LIBS $LIBS"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8547$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h. */
8550
8551/* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply. */
8554#ifdef __cplusplus
8555extern "C"
8556#endif
8557char pthread_join ();
8558int
8559main ()
8560{
8561return pthread_join ();
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566if ac_fn_c_try_link "$LINENO"; then :
8567 ax_pthread_ok=yes
8568fi
8569rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8572$as_echo "$ax_pthread_ok" >&6; }
8573 if test x"$ax_pthread_ok" = xno; then
8574 PTHREAD_LIBS=""
8575 PTHREAD_CFLAGS=""
8576 fi
8577 LIBS="$save_LIBS"
8578 CFLAGS="$save_CFLAGS"
8579fi
8580
8581# We must check for the threads library under a number of different
8582# names; the ordering is very important because some systems
8583# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8584# libraries is broken (non-POSIX).
8585
8586# Create a list of thread flags to try. Items starting with a "-" are
8587# C compiler flags, and other items are library names, except for "none"
8588# which indicates that we try without any flags at all, and "pthread-config"
8589# which is a program returning the flags for the Pth emulation library.
8590
8591ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8592
8593# The ordering *is* (sometimes) important. Some notes on the
8594# individual items follow:
8595
8596# pthreads: AIX (must check this before -lpthread)
8597# none: in case threads are in libc; should be tried before -Kthread and
8598# other compiler flags to prevent continual compiler warnings
8599# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8600# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8601# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8602# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8603# -pthreads: Solaris/gcc
8604# -mthreads: Mingw32/gcc, Lynx/gcc
8605# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8606# doesn't hurt to check since this sometimes defines pthreads too;
8607# also defines -D_REENTRANT)
8608# ... -mt is also the pthreads flag for HP/aCC
8609# pthread: Linux, etcetera
8610# --thread-safe: KAI C++
8611# pthread-config: use pthread-config program (for GNU Pth library)
8612
8613case "${host_cpu}-${host_os}" in
8614 *solaris*)
8615
8616 # On Solaris (at least, for some versions), libc contains stubbed
8617 # (non-functional) versions of the pthreads routines, so link-based
8618 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8619 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8620 # a function called by this macro, so we could check for that, but
8621 # who knows whether they'll stub that too in a future libc.) So,
8622 # we'll just look for -pthreads and -lpthread first:
8623
8624 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8625 ;;
8626
8627 *-darwin*)
8628 ax_pthread_flags="-pthread $ax_pthread_flags"
8629 ;;
8630esac
8631
8632if test x"$ax_pthread_ok" = xno; then
8633for flag in $ax_pthread_flags; do
8634
8635 case $flag in
8636 none)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8638$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8639 ;;
8640
8641 -*)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8643$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8644 PTHREAD_CFLAGS="$flag"
8645 ;;
8646
8647 pthread-config)
8648 # Extract the first word of "pthread-config", so it can be a program name with args.
8649set dummy pthread-config; ac_word=$2
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 if test -n "$ax_pthread_config"; then
8656 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_ax_pthread_config="yes"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669done
8670 done
8671IFS=$as_save_IFS
8672
8673 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8674fi
8675fi
8676ax_pthread_config=$ac_cv_prog_ax_pthread_config
8677if test -n "$ax_pthread_config"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8679$as_echo "$ax_pthread_config" >&6; }
8680else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
8683fi
8684
8685
8686 if test x"$ax_pthread_config" = xno; then continue; fi
8687 PTHREAD_CFLAGS="`pthread-config --cflags`"
8688 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8689 ;;
8690
8691 *)
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8693$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8694 PTHREAD_LIBS="-l$flag"
8695 ;;
8696 esac
8697
8698 save_LIBS="$LIBS"
8699 save_CFLAGS="$CFLAGS"
8700 LIBS="$PTHREAD_LIBS $LIBS"
8701 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8702
8703 # Check for various functions. We must include pthread.h,
8704 # since some functions may be macros. (On the Sequent, we
8705 # need a special flag -Kthread to make this header compile.)
8706 # We check for pthread_join because it is in -lpthread on IRIX
8707 # while pthread_create is in libc. We check for pthread_attr_init
8708 # due to DEC craziness with -lpthreads. We check for
8709 # pthread_cleanup_push because it is one of the few pthread
8710 # functions on Solaris that doesn't have a non-functional libc stub.
8711 # We try pthread_create on general principles.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h. */
8714#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008715 static void routine(void* a) {a=0;}
8716 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008717int
8718main ()
8719{
8720pthread_t th; pthread_attr_t attr;
8721 pthread_create(&th,0,start_routine,0);
8722 pthread_join(th, 0);
8723 pthread_attr_init(&attr);
8724 pthread_cleanup_push(routine, 0);
8725 pthread_cleanup_pop(0);
8726 ;
8727 return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_link "$LINENO"; then :
8731 ax_pthread_ok=yes
8732fi
8733rm -f core conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735
8736 LIBS="$save_LIBS"
8737 CFLAGS="$save_CFLAGS"
8738
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8740$as_echo "$ax_pthread_ok" >&6; }
8741 if test "x$ax_pthread_ok" = xyes; then
8742 break;
8743 fi
8744
8745 PTHREAD_LIBS=""
8746 PTHREAD_CFLAGS=""
8747done
8748fi
8749
8750# Various other checks:
8751if test "x$ax_pthread_ok" = xyes; then
8752 save_LIBS="$LIBS"
8753 LIBS="$PTHREAD_LIBS $LIBS"
8754 save_CFLAGS="$CFLAGS"
8755 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8756
8757 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8759$as_echo_n "checking for joinable pthread attribute... " >&6; }
8760 attr_name=unknown
8761 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763/* end confdefs.h. */
8764#include <pthread.h>
8765int
8766main ()
8767{
8768int attr=$attr; return attr;
8769 ;
8770 return 0;
8771}
8772_ACEOF
8773if ac_fn_c_try_link "$LINENO"; then :
8774 attr_name=$attr; break
8775fi
8776rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 done
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8780$as_echo "$attr_name" >&6; }
8781 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8782
8783cat >>confdefs.h <<_ACEOF
8784#define PTHREAD_CREATE_JOINABLE $attr_name
8785_ACEOF
8786
8787 fi
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8790$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8791 flag=no
8792 case "${host_cpu}-${host_os}" in
8793 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8794 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8795 esac
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8797$as_echo "${flag}" >&6; }
8798 if test "x$flag" != xno; then
8799 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8800 fi
8801
8802 LIBS="$save_LIBS"
8803 CFLAGS="$save_CFLAGS"
8804
8805 # More AIX lossage: must compile with xlc_r or cc_r
8806 if test x"$GCC" != xyes; then
8807 for ac_prog in xlc_r cc_r
8808do
8809 # Extract the first word of "$ac_prog", so it can be a program name with args.
8810set dummy $ac_prog; ac_word=$2
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812$as_echo_n "checking for $ac_word... " >&6; }
8813if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 if test -n "$PTHREAD_CC"; then
8817 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_prog_PTHREAD_CC="$ac_prog"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831 done
8832IFS=$as_save_IFS
8833
8834fi
8835fi
8836PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8837if test -n "$PTHREAD_CC"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8839$as_echo "$PTHREAD_CC" >&6; }
8840else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846 test -n "$PTHREAD_CC" && break
8847done
8848test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8849
8850 else
8851 PTHREAD_CC=$CC
8852 fi
8853else
8854 PTHREAD_CC="$CC"
8855fi
8856
8857
8858
8859
8860
8861# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8862if test x"$ax_pthread_ok" = xyes; then
8863
8864$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8865
8866 :
8867else
8868 ax_pthread_ok=no
8869
8870fi
8871ac_ext=c
8872ac_cpp='$CPP $CPPFLAGS'
8873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875ac_compiler_gnu=$ac_cv_c_compiler_gnu
8876
8877
8878
8879# Check whether --enable-opencl was given.
8880if test "${enable_opencl+set}" = set; then :
8881 enableval=$enable_opencl; disable_opencl=$enableval
8882else
8883 disable_opencl='yes'
8884fi
8885
8886
8887if test "$disable_opencl" = 'yes'; then
8888 ac_ext=c
8889ac_cpp='$CPP $CPPFLAGS'
8890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8895$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8896if test "${ax_cv_c_compiler_ms+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898else
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h. */
8901
8902int
8903main ()
8904{
8905#ifndef _MSC_VER
8906 choke me
8907#endif
8908
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"; then :
8914 ax_compiler_ms=yes
8915else
8916 ax_compiler_ms=no
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919ax_cv_c_compiler_ms=$ax_compiler_ms
8920
8921fi
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8923$as_echo "$ax_cv_c_compiler_ms" >&6; }
8924 if test X$ax_compiler_ms = Xno; then :
8925 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8926fi
8927
8928 ax_save_CPPFLAGS=$CPPFLAGS
8929 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8930 for ac_header in CL/cl.h OpenCL/cl.h
8931do :
8932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008934if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008935 cat >>confdefs.h <<_ACEOF
8936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8937_ACEOF
8938
8939fi
8940
8941done
8942
8943 CPPFLAGS=$ax_save_CPPFLAGS
8944
8945 for ac_header in windows.h
8946do :
8947 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8948if test "x$ac_cv_header_windows_h" = x""yes; then :
8949 cat >>confdefs.h <<_ACEOF
8950#define HAVE_WINDOWS_H 1
8951_ACEOF
8952
8953fi
8954
8955done
8956
8957
8958
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8961$as_echo_n "checking for OpenCL library... " >&6; }
8962if test "${ax_cv_check_cl_libcl+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964else
8965 ax_cv_check_cl_libcl=no
8966 case $host_cpu in
8967 x86_64) ax_check_cl_libdir=lib64 ;;
8968 *) ax_check_cl_libdir=lib ;;
8969 esac
8970 ax_save_CPPFLAGS=$CPPFLAGS
8971 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8972 ax_save_LIBS=$LIBS
8973 LIBS=""
8974 ax_check_libs="-lOpenCL -lCL -lclparser"
8975 for ax_lib in $ax_check_libs; do
8976 if test X$ax_compiler_ms = Xyes; then :
8977 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8978else
8979 ax_try_lib=$ax_lib
8980fi
8981 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h. */
8984
8985 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8986 # include <windows.h>
8987 # endif
8988 # ifdef HAVE_CL_CL_H
8989 # include <CL/cl.h>
8990 # elif defined(HAVE_OPENCL_CL_H)
8991 # include <OpenCL/cl.h>
8992 # else
8993 # error no CL.h
8994 # endif
8995int
8996main ()
8997{
8998clCreateContextFromType(0,0,0,0,0)
8999 ;
9000 return 0;
9001}
9002_ACEOF
9003if ac_fn_c_try_link "$LINENO"; then :
9004 ax_cv_check_cl_libcl=$ax_try_lib; break
9005else
9006 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h. */
9009
9010 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011 # include <windows.h>
9012 # endif
9013 # ifdef HAVE_CL_CL_H
9014 # include <CL/cl.h>
9015 # elif defined(HAVE_OPENCL_CL_H)
9016 # include <OpenCL/cl.h>
9017 # else
9018 # error no CL.h
9019 # endif
9020int
9021main ()
9022{
9023clCreateContextFromType(0,0,0,0,0)
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_link "$LINENO"; then :
9029 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9030else
cristy78c5a0c2010-12-04 20:00:59 +00009031 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy73bd4a52010-10-05 11:24:23 +00009032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034
9035 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036 # include <windows.h>
9037 # endif
9038 # ifdef HAVE_CL_CL_H
9039 # include <CL/cl.h>
9040 # elif defined(HAVE_OPENCL_CL_H)
9041 # include <OpenCL/cl.h>
9042 # else
9043 # error no CL.h
9044 # endif
9045int
9046main ()
9047{
9048clCreateContextFromType(0,0,0,0,0)
9049 ;
9050 return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_link "$LINENO"; then :
9054 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9055fi
9056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058fi
9059rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061fi
9062rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 done
9065
9066 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009067 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h. */
9070
9071 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9072 # include <windows.h>
9073 # endif
9074 # ifdef HAVE_CL_CL_H
9075 # include <CL/cl.h>
9076 # elif defined(HAVE_OPENCL_CL_H)
9077 # include <OpenCL/cl.h>
9078 # else
9079 # error no CL.h
9080 # endif
9081int
9082main ()
9083{
9084clCreateContextFromType(0,0,0,0,0)
9085 ;
9086 return 0;
9087}
9088_ACEOF
9089if ac_fn_c_try_link "$LINENO"; then :
9090 ax_cv_check_cl_libcl=$LIBS
9091fi
9092rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094fi
9095
9096 LIBS=$ax_save_LIBS
9097 CPPFLAGS=$ax_save_CPPFLAGS
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9100$as_echo "$ax_cv_check_cl_libcl" >&6; }
9101
9102 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9103 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9104else
9105 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9106$as_echo "#define _OPENCL 1" >>confdefs.h
9107
9108fi
9109 ac_ext=c
9110ac_cpp='$CPP $CPPFLAGS'
9111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113ac_compiler_gnu=$ac_cv_c_compiler_gnu
9114
9115fi
9116
9117
9118
9119
cristyc7083c12009-10-14 03:16:55 +00009120CFLAGS="$CL_CFLAGS $CFLAGS"
9121LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009122
cristy391f1ce2010-09-09 17:23:28 +00009123if test "$enable_opencl" != no; then
9124 if test "_OPENCL" = '1'; then
9125 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9126 fi
cristyfd9dcd42010-08-08 18:07:02 +00009127fi
cristy2e8b51d2009-10-17 18:26:15 +00009128
cristy3ed852e2009-09-05 21:47:34 +00009129########
9130#
9131# Check for large file support
9132#
9133########
9134# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009135if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009136 enableval=$enable_largefile;
9137fi
9138
9139if test "$enable_largefile" != no; then
9140
cristy8b350f62009-11-15 23:12:43 +00009141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009142$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009143if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009144 $as_echo_n "(cached) " >&6
9145else
9146 ac_cv_sys_largefile_CC=no
9147 if test "$GCC" != yes; then
9148 ac_save_CC=$CC
9149 while :; do
9150 # IRIX 6.2 and later do not support large files by default,
9151 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009153/* end confdefs.h. */
9154#include <sys/types.h>
9155 /* Check that off_t can represent 2**63 - 1 correctly.
9156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9157 since some C++ compilers masquerading as C compilers
9158 incorrectly reject 9223372036854775807. */
9159#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9161 && LARGE_OFF_T % 2147483647 == 1)
9162 ? 1 : -1];
9163int
9164main ()
9165{
9166
9167 ;
9168 return 0;
9169}
9170_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009171 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009172 break
cristy3ed852e2009-09-05 21:47:34 +00009173fi
cristy3ed852e2009-09-05 21:47:34 +00009174rm -f core conftest.err conftest.$ac_objext
9175 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009176 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009177 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009178fi
cristy3ed852e2009-09-05 21:47:34 +00009179rm -f core conftest.err conftest.$ac_objext
9180 break
9181 done
9182 CC=$ac_save_CC
9183 rm -f conftest.$ac_ext
9184 fi
9185fi
cristy8b350f62009-11-15 23:12:43 +00009186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009187$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9188 if test "$ac_cv_sys_largefile_CC" != no; then
9189 CC=$CC$ac_cv_sys_largefile_CC
9190 fi
9191
cristy8b350f62009-11-15 23:12:43 +00009192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009193$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009194if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009195 $as_echo_n "(cached) " >&6
9196else
9197 while :; do
cristy8b350f62009-11-15 23:12:43 +00009198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009199/* end confdefs.h. */
9200#include <sys/types.h>
9201 /* Check that off_t can represent 2**63 - 1 correctly.
9202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9203 since some C++ compilers masquerading as C compilers
9204 incorrectly reject 9223372036854775807. */
9205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9207 && LARGE_OFF_T % 2147483647 == 1)
9208 ? 1 : -1];
9209int
9210main ()
9211{
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009217if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009218 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009219fi
cristy3ed852e2009-09-05 21:47:34 +00009220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009222/* end confdefs.h. */
9223#define _FILE_OFFSET_BITS 64
9224#include <sys/types.h>
9225 /* Check that off_t can represent 2**63 - 1 correctly.
9226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9227 since some C++ compilers masquerading as C compilers
9228 incorrectly reject 9223372036854775807. */
9229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9231 && LARGE_OFF_T % 2147483647 == 1)
9232 ? 1 : -1];
9233int
9234main ()
9235{
9236
9237 ;
9238 return 0;
9239}
9240_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009241if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009242 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009243fi
cristy3ed852e2009-09-05 21:47:34 +00009244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 ac_cv_sys_file_offset_bits=unknown
9246 break
9247done
9248fi
cristy8b350f62009-11-15 23:12:43 +00009249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009250$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9251case $ac_cv_sys_file_offset_bits in #(
9252 no | unknown) ;;
9253 *)
9254cat >>confdefs.h <<_ACEOF
9255#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9256_ACEOF
9257;;
9258esac
9259rm -rf conftest*
9260 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009262$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009263if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009264 $as_echo_n "(cached) " >&6
9265else
9266 while :; do
cristy8b350f62009-11-15 23:12:43 +00009267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009268/* end confdefs.h. */
9269#include <sys/types.h>
9270 /* Check that off_t can represent 2**63 - 1 correctly.
9271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9272 since some C++ compilers masquerading as C compilers
9273 incorrectly reject 9223372036854775807. */
9274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9276 && LARGE_OFF_T % 2147483647 == 1)
9277 ? 1 : -1];
9278int
9279main ()
9280{
9281
9282 ;
9283 return 0;
9284}
9285_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009287 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009288fi
cristy3ed852e2009-09-05 21:47:34 +00009289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009291/* end confdefs.h. */
9292#define _LARGE_FILES 1
9293#include <sys/types.h>
9294 /* Check that off_t can represent 2**63 - 1 correctly.
9295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9296 since some C++ compilers masquerading as C compilers
9297 incorrectly reject 9223372036854775807. */
9298#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9300 && LARGE_OFF_T % 2147483647 == 1)
9301 ? 1 : -1];
9302int
9303main ()
9304{
9305
9306 ;
9307 return 0;
9308}
9309_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009310if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009311 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009312fi
cristy3ed852e2009-09-05 21:47:34 +00009313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 ac_cv_sys_large_files=unknown
9315 break
9316done
9317fi
cristy8b350f62009-11-15 23:12:43 +00009318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009319$as_echo "$ac_cv_sys_large_files" >&6; }
9320case $ac_cv_sys_large_files in #(
9321 no | unknown) ;;
9322 *)
9323cat >>confdefs.h <<_ACEOF
9324#define _LARGE_FILES $ac_cv_sys_large_files
9325_ACEOF
9326;;
9327esac
9328rm -rf conftest*
9329 fi
9330fi
9331
cristy8b350f62009-11-15 23:12:43 +00009332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009334if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009335 $as_echo_n "(cached) " >&6
9336else
9337 while :; do
cristy8b350f62009-11-15 23:12:43 +00009338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009339/* end confdefs.h. */
9340#include <sys/types.h> /* for off_t */
9341 #include <stdio.h>
9342int
9343main ()
9344{
9345int (*fp) (FILE *, off_t, int) = fseeko;
9346 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9347 ;
9348 return 0;
9349}
9350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009353fi
cristy8b350f62009-11-15 23:12:43 +00009354rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009357/* end confdefs.h. */
9358#define _LARGEFILE_SOURCE 1
9359#include <sys/types.h> /* for off_t */
9360 #include <stdio.h>
9361int
9362main ()
9363{
9364int (*fp) (FILE *, off_t, int) = fseeko;
9365 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9366 ;
9367 return 0;
9368}
9369_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009371 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009372fi
cristy8b350f62009-11-15 23:12:43 +00009373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009375 ac_cv_sys_largefile_source=unknown
9376 break
9377done
9378fi
cristy8b350f62009-11-15 23:12:43 +00009379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009380$as_echo "$ac_cv_sys_largefile_source" >&6; }
9381case $ac_cv_sys_largefile_source in #(
9382 no | unknown) ;;
9383 *)
9384cat >>confdefs.h <<_ACEOF
9385#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9386_ACEOF
9387;;
9388esac
9389rm -rf conftest*
9390
9391# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9392# in glibc 2.1.3, but that breaks too many other things.
9393# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9394if test $ac_cv_sys_largefile_source != unknown; then
9395
cristy8b350f62009-11-15 23:12:43 +00009396$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009397
9398fi
9399
9400LFS_CPPFLAGS=''
9401if test "$enable_largefile" != no; then
9402 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9403 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9404 else
cristy8b350f62009-11-15 23:12:43 +00009405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009406$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009407 if test "$cross_compiling" = yes; then :
9408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009410as_fn_error $? "cannot run test program while cross compiling
9411See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009412else
cristy8b350f62009-11-15 23:12:43 +00009413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009415#include <unistd.h>
9416 main () {
9417 exit(!(sizeof(off_t) == 8));
9418 }
9419_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009420if ac_fn_c_try_run "$LINENO"; then :
9421 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009422
cristy8b350f62009-11-15 23:12:43 +00009423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009424$as_echo "yes" >&6; }
9425else
cristy8b350f62009-11-15 23:12:43 +00009426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009427$as_echo "no" >&6; }
9428fi
cristy8b350f62009-11-15 23:12:43 +00009429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9430 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009431fi
9432
cristy3ed852e2009-09-05 21:47:34 +00009433 fi
9434 if test "$ac_cv_sys_large_files" != 'no'; then
9435 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9436 fi
9437 if test "$ac_cv_sys_largefile_source" != 'no'; then
9438 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9439 fi
9440fi
9441
9442
9443#
9444# Configure libtool & libltdl
9445#
9446# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009447enable_dlopen=yes
9448
9449
9450
9451case `pwd` in
9452 *\ * | *\ *)
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9454$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9455esac
9456
9457
9458
cristy0c60a692010-11-04 01:09:47 +00009459macro_version='2.2.10'
9460macro_revision='1.3175'
cristy73bd4a52010-10-05 11:24:23 +00009461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474ltmain="$ac_aux_dir/ltmain.sh"
9475
cristy0c60a692010-11-04 01:09:47 +00009476# Backslashify metacharacters that are still active within
9477# double-quoted strings.
9478sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9479
9480# Same as above, but do not quote variable references.
9481double_quote_subst='s/\(["`\\]\)/\\\1/g'
9482
9483# Sed substitution to delay expansion of an escaped shell variable in a
9484# double_quote_subst'ed string.
9485delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9486
9487# Sed substitution to delay expansion of an escaped single quote.
9488delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9489
9490# Sed substitution to avoid accidental globbing in evaled expressions
9491no_glob_subst='s/\*/\\\*/g'
9492
cristy73bd4a52010-10-05 11:24:23 +00009493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9494$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9495if test "${lt_cv_path_NM+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497else
9498 if test -n "$NM"; then
9499 # Let the user override the test.
9500 lt_cv_path_NM="$NM"
9501else
9502 lt_nm_to_check="${ac_tool_prefix}nm"
9503 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9504 lt_nm_to_check="$lt_nm_to_check nm"
9505 fi
9506 for lt_tmp_nm in $lt_nm_to_check; do
9507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9509 IFS="$lt_save_ifs"
9510 test -z "$ac_dir" && ac_dir=.
9511 tmp_nm="$ac_dir/$lt_tmp_nm"
9512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9513 # Check to see if the nm accepts a BSD-compat flag.
9514 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9515 # nm: unknown option "B" ignored
9516 # Tru64's nm complains that /dev/null is an invalid object file
9517 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9518 */dev/null* | *'Invalid file or object type'*)
9519 lt_cv_path_NM="$tmp_nm -B"
9520 break
9521 ;;
9522 *)
9523 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9524 */dev/null*)
9525 lt_cv_path_NM="$tmp_nm -p"
9526 break
9527 ;;
9528 *)
9529 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9530 continue # so that we can try to find one that supports BSD flags
9531 ;;
9532 esac
9533 ;;
9534 esac
9535 fi
9536 done
9537 IFS="$lt_save_ifs"
9538 done
9539 : ${lt_cv_path_NM=no}
9540fi
9541fi
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9543$as_echo "$lt_cv_path_NM" >&6; }
9544if test "$lt_cv_path_NM" != "no"; then
9545 NM="$lt_cv_path_NM"
9546else
9547 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009548 if test -n "$DUMPBIN"; then :
9549 # Let the user override the test.
9550 else
9551 if test -n "$ac_tool_prefix"; then
9552 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009553 do
9554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557$as_echo_n "checking for $ac_word... " >&6; }
9558if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9560else
9561 if test -n "$DUMPBIN"; then
9562 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575done
9576 done
9577IFS=$as_save_IFS
9578
9579fi
9580fi
9581DUMPBIN=$ac_cv_prog_DUMPBIN
9582if test -n "$DUMPBIN"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9584$as_echo "$DUMPBIN" >&6; }
9585else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587$as_echo "no" >&6; }
9588fi
9589
9590
9591 test -n "$DUMPBIN" && break
9592 done
9593fi
9594if test -z "$DUMPBIN"; then
9595 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009596 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009597do
9598 # Extract the first word of "$ac_prog", so it can be a program name with args.
9599set dummy $ac_prog; ac_word=$2
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601$as_echo_n "checking for $ac_word... " >&6; }
9602if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604else
9605 if test -n "$ac_ct_DUMPBIN"; then
9606 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9607else
9608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9618 fi
9619done
9620 done
9621IFS=$as_save_IFS
9622
9623fi
9624fi
9625ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9626if test -n "$ac_ct_DUMPBIN"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9628$as_echo "$ac_ct_DUMPBIN" >&6; }
9629else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631$as_echo "no" >&6; }
9632fi
9633
9634
9635 test -n "$ac_ct_DUMPBIN" && break
9636done
9637
9638 if test "x$ac_ct_DUMPBIN" = x; then
9639 DUMPBIN=":"
9640 else
9641 case $cross_compiling:$ac_tool_warned in
9642yes:)
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9645ac_tool_warned=yes ;;
9646esac
9647 DUMPBIN=$ac_ct_DUMPBIN
9648 fi
9649fi
9650
cristy0c60a692010-11-04 01:09:47 +00009651 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9652 *COFF*)
9653 DUMPBIN="$DUMPBIN -symbols"
9654 ;;
9655 *)
9656 DUMPBIN=:
9657 ;;
9658 esac
9659 fi
cristy73bd4a52010-10-05 11:24:23 +00009660
9661 if test "$DUMPBIN" != ":"; then
9662 NM="$DUMPBIN"
9663 fi
9664fi
9665test -z "$NM" && NM=nm
9666
9667
9668
9669
9670
9671
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9673$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9674if test "${lt_cv_nm_interface+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9676else
9677 lt_cv_nm_interface="BSD nm"
9678 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009679 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009680 (eval "$ac_compile" 2>conftest.err)
9681 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009682 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009683 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9684 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009685 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009686 cat conftest.out >&5
9687 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9688 lt_cv_nm_interface="MS dumpbin"
9689 fi
9690 rm -f conftest*
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9693$as_echo "$lt_cv_nm_interface" >&6; }
9694
9695# find the maximum length of command line arguments
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9697$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9698if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
9700else
9701 i=0
9702 teststring="ABCD"
9703
9704 case $build_os in
9705 msdosdjgpp*)
9706 # On DJGPP, this test can blow up pretty badly due to problems in libc
9707 # (any single argument exceeding 2000 bytes causes a buffer overrun
9708 # during glob expansion). Even if it were fixed, the result of this
9709 # check would be larger than it should be.
9710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9711 ;;
9712
9713 gnu*)
9714 # Under GNU Hurd, this test is not required because there is
9715 # no limit to the length of command line arguments.
9716 # Libtool will interpret -1 as no limit whatsoever
9717 lt_cv_sys_max_cmd_len=-1;
9718 ;;
9719
9720 cygwin* | mingw* | cegcc*)
9721 # On Win9x/ME, this test blows up -- it succeeds, but takes
9722 # about 5 minutes as the teststring grows exponentially.
9723 # Worse, since 9x/ME are not pre-emptively multitasking,
9724 # you end up with a "frozen" computer, even though with patience
9725 # the test eventually succeeds (with a max line length of 256k).
9726 # Instead, let's just punt: use the minimum linelength reported by
9727 # all of the supported platforms: 8192 (on NT/2K/XP).
9728 lt_cv_sys_max_cmd_len=8192;
9729 ;;
9730
cristy0c60a692010-11-04 01:09:47 +00009731 mint*)
9732 # On MiNT this can take a long time and run out of memory.
9733 lt_cv_sys_max_cmd_len=8192;
9734 ;;
9735
cristy73bd4a52010-10-05 11:24:23 +00009736 amigaos*)
9737 # On AmigaOS with pdksh, this test takes hours, literally.
9738 # So we just punt and use a minimum line length of 8192.
9739 lt_cv_sys_max_cmd_len=8192;
9740 ;;
9741
9742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9743 # This has been around since 386BSD, at least. Likely further.
9744 if test -x /sbin/sysctl; then
9745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9746 elif test -x /usr/sbin/sysctl; then
9747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9748 else
9749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9750 fi
9751 # And add a safety zone
9752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9754 ;;
9755
9756 interix*)
9757 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9758 lt_cv_sys_max_cmd_len=196608
9759 ;;
9760
9761 osf*)
9762 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9763 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9764 # nice to cause kernel panics so lets avoid the loop below.
9765 # First set a reasonable default.
9766 lt_cv_sys_max_cmd_len=16384
9767 #
9768 if test -x /sbin/sysconfig; then
9769 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9770 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9771 esac
9772 fi
9773 ;;
9774 sco3.2v5*)
9775 lt_cv_sys_max_cmd_len=102400
9776 ;;
9777 sysv5* | sco5v6* | sysv4.2uw2*)
9778 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9779 if test -n "$kargmax"; then
9780 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9781 else
9782 lt_cv_sys_max_cmd_len=32768
9783 fi
9784 ;;
9785 *)
9786 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9787 if test -n "$lt_cv_sys_max_cmd_len"; then
9788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9790 else
9791 # Make teststring a little bigger before we do anything with it.
9792 # a 1K string should be a reasonable start.
9793 for i in 1 2 3 4 5 6 7 8 ; do
9794 teststring=$teststring$teststring
9795 done
9796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9797 # If test is not a shell built-in, we'll probably end up computing a
9798 # maximum length that is only half of the actual maximum length, but
9799 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009800 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9801 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009802 test $i != 17 # 1/2 MB should be enough
9803 do
9804 i=`expr $i + 1`
9805 teststring=$teststring$teststring
9806 done
9807 # Only check the string length outside the loop.
9808 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9809 teststring=
9810 # Add a significant safety factor because C++ compilers can tack on
9811 # massive amounts of additional arguments before passing them to the
9812 # linker. It appears as though 1/2 is a usable value.
9813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9814 fi
9815 ;;
9816 esac
9817
9818fi
9819
9820if test -n $lt_cv_sys_max_cmd_len ; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9822$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9823else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9825$as_echo "none" >&6; }
9826fi
9827max_cmd_len=$lt_cv_sys_max_cmd_len
9828
9829
9830
9831
9832
9833
9834: ${CP="cp -f"}
9835: ${MV="mv -f"}
9836: ${RM="rm -f"}
9837
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9839$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9840# Try some XSI features
9841xsi_shell=no
9842( _lt_dummy="a/b/c"
9843 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9844 = c,a/b,, \
9845 && eval 'test $(( 1 + 1 )) -eq 2 \
9846 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9847 && xsi_shell=yes
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9849$as_echo "$xsi_shell" >&6; }
9850
9851
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9853$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9854lt_shell_append=no
9855( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9856 >/dev/null 2>&1 \
9857 && lt_shell_append=yes
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9859$as_echo "$lt_shell_append" >&6; }
9860
9861
9862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9863 lt_unset=unset
9864else
9865 lt_unset=false
9866fi
9867
9868
9869
9870
9871
9872# test EBCDIC or ASCII
9873case `echo X|tr X '\101'` in
9874 A) # ASCII based system
9875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9876 lt_SP2NL='tr \040 \012'
9877 lt_NL2SP='tr \015\012 \040\040'
9878 ;;
9879 *) # EBCDIC based system
9880 lt_SP2NL='tr \100 \n'
9881 lt_NL2SP='tr \r\n \100\100'
9882 ;;
9883esac
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9894$as_echo_n "checking for $LD option to reload object files... " >&6; }
9895if test "${lt_cv_ld_reload_flag+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9897else
9898 lt_cv_ld_reload_flag='-r'
9899fi
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9901$as_echo "$lt_cv_ld_reload_flag" >&6; }
9902reload_flag=$lt_cv_ld_reload_flag
9903case $reload_flag in
9904"" | " "*) ;;
9905*) reload_flag=" $reload_flag" ;;
9906esac
9907reload_cmds='$LD$reload_flag -o $output$reload_objs'
9908case $host_os in
9909 darwin*)
9910 if test "$GCC" = yes; then
9911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9912 else
9913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9914 fi
9915 ;;
9916esac
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926if test -n "$ac_tool_prefix"; then
9927 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9928set dummy ${ac_tool_prefix}objdump; ac_word=$2
9929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930$as_echo_n "checking for $ac_word... " >&6; }
9931if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9933else
9934 if test -n "$OBJDUMP"; then
9935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9947 fi
9948done
9949 done
9950IFS=$as_save_IFS
9951
9952fi
9953fi
9954OBJDUMP=$ac_cv_prog_OBJDUMP
9955if test -n "$OBJDUMP"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9957$as_echo "$OBJDUMP" >&6; }
9958else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960$as_echo "no" >&6; }
9961fi
9962
9963
9964fi
9965if test -z "$ac_cv_prog_OBJDUMP"; then
9966 ac_ct_OBJDUMP=$OBJDUMP
9967 # Extract the first word of "objdump", so it can be a program name with args.
9968set dummy objdump; ac_word=$2
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970$as_echo_n "checking for $ac_word... " >&6; }
9971if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9972 $as_echo_n "(cached) " >&6
9973else
9974 if test -n "$ac_ct_OBJDUMP"; then
9975 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9976else
9977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978for as_dir in $PATH
9979do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 break 2
9987 fi
9988done
9989 done
9990IFS=$as_save_IFS
9991
9992fi
9993fi
9994ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9995if test -n "$ac_ct_OBJDUMP"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9997$as_echo "$ac_ct_OBJDUMP" >&6; }
9998else
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000$as_echo "no" >&6; }
10001fi
10002
10003 if test "x$ac_ct_OBJDUMP" = x; then
10004 OBJDUMP="false"
10005 else
10006 case $cross_compiling:$ac_tool_warned in
10007yes:)
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010ac_tool_warned=yes ;;
10011esac
10012 OBJDUMP=$ac_ct_OBJDUMP
10013 fi
10014else
10015 OBJDUMP="$ac_cv_prog_OBJDUMP"
10016fi
10017
10018test -z "$OBJDUMP" && OBJDUMP=objdump
10019
10020
10021
10022
10023
10024
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10026$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10027if test "${lt_cv_deplibs_check_method+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029else
10030 lt_cv_file_magic_cmd='$MAGIC_CMD'
10031lt_cv_file_magic_test_file=
10032lt_cv_deplibs_check_method='unknown'
10033# Need to set the preceding variable on all platforms that support
10034# interlibrary dependencies.
10035# 'none' -- dependencies not supported.
10036# `unknown' -- same as none, but documents that we really don't know.
10037# 'pass_all' -- all dependencies passed with no checks.
10038# 'test_compile' -- check by making test program.
10039# 'file_magic [[regex]]' -- check by looking for files in library path
10040# which responds to the $file_magic_cmd with a given extended regex.
10041# If you have `file' or equivalent on your system and you're not sure
10042# whether `pass_all' will *always* work, you probably want this one.
10043
10044case $host_os in
10045aix[4-9]*)
10046 lt_cv_deplibs_check_method=pass_all
10047 ;;
10048
10049beos*)
10050 lt_cv_deplibs_check_method=pass_all
10051 ;;
10052
10053bsdi[45]*)
10054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10055 lt_cv_file_magic_cmd='/usr/bin/file -L'
10056 lt_cv_file_magic_test_file=/shlib/libc.so
10057 ;;
10058
10059cygwin*)
10060 # func_win32_libid is a shell function defined in ltmain.sh
10061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10062 lt_cv_file_magic_cmd='func_win32_libid'
10063 ;;
10064
10065mingw* | pw32*)
10066 # Base MSYS/MinGW do not provide the 'file' command needed by
10067 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10068 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010069 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10070 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10072 lt_cv_file_magic_cmd='func_win32_libid'
10073 else
cristy0c60a692010-11-04 01:09:47 +000010074 # Keep this pattern in sync with the one in func_win32_libid.
10075 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000010076 lt_cv_file_magic_cmd='$OBJDUMP -f'
10077 fi
10078 ;;
10079
cristy0c60a692010-11-04 01:09:47 +000010080cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010081 # use the weaker test based on 'objdump'. See mingw*.
10082 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10083 lt_cv_file_magic_cmd='$OBJDUMP -f'
10084 ;;
10085
10086darwin* | rhapsody*)
10087 lt_cv_deplibs_check_method=pass_all
10088 ;;
10089
10090freebsd* | dragonfly*)
10091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10092 case $host_cpu in
10093 i*86 )
10094 # Not sure whether the presence of OpenBSD here was a mistake.
10095 # Let's accept both of them until this is cleared up.
10096 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10097 lt_cv_file_magic_cmd=/usr/bin/file
10098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10099 ;;
10100 esac
10101 else
10102 lt_cv_deplibs_check_method=pass_all
10103 fi
10104 ;;
10105
10106gnu*)
10107 lt_cv_deplibs_check_method=pass_all
10108 ;;
10109
cristy0c60a692010-11-04 01:09:47 +000010110haiku*)
10111 lt_cv_deplibs_check_method=pass_all
10112 ;;
10113
cristy73bd4a52010-10-05 11:24:23 +000010114hpux10.20* | hpux11*)
10115 lt_cv_file_magic_cmd=/usr/bin/file
10116 case $host_cpu in
10117 ia64*)
10118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10120 ;;
10121 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000010123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10124 ;;
10125 *)
cristy0c60a692010-11-04 01:09:47 +000010126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000010127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10128 ;;
10129 esac
10130 ;;
10131
10132interix[3-9]*)
10133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10135 ;;
10136
10137irix5* | irix6* | nonstopux*)
10138 case $LD in
10139 *-32|*"-32 ") libmagic=32-bit;;
10140 *-n32|*"-n32 ") libmagic=N32;;
10141 *-64|*"-64 ") libmagic=64-bit;;
10142 *) libmagic=never-match;;
10143 esac
10144 lt_cv_deplibs_check_method=pass_all
10145 ;;
10146
10147# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010148linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152netbsd*)
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10155 else
10156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10157 fi
10158 ;;
10159
10160newos6*)
10161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10162 lt_cv_file_magic_cmd=/usr/bin/file
10163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10164 ;;
10165
10166*nto* | *qnx*)
10167 lt_cv_deplibs_check_method=pass_all
10168 ;;
10169
10170openbsd*)
10171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10173 else
10174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10175 fi
10176 ;;
10177
10178osf3* | osf4* | osf5*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181
10182rdos*)
10183 lt_cv_deplibs_check_method=pass_all
10184 ;;
10185
10186solaris*)
10187 lt_cv_deplibs_check_method=pass_all
10188 ;;
10189
10190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10191 lt_cv_deplibs_check_method=pass_all
10192 ;;
10193
10194sysv4 | sysv4.3*)
10195 case $host_vendor in
10196 motorola)
10197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10199 ;;
10200 ncr)
10201 lt_cv_deplibs_check_method=pass_all
10202 ;;
10203 sequent)
10204 lt_cv_file_magic_cmd='/bin/file'
10205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10206 ;;
10207 sni)
10208 lt_cv_file_magic_cmd='/bin/file'
10209 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10210 lt_cv_file_magic_test_file=/lib/libc.so
10211 ;;
10212 siemens)
10213 lt_cv_deplibs_check_method=pass_all
10214 ;;
10215 pc)
10216 lt_cv_deplibs_check_method=pass_all
10217 ;;
10218 esac
10219 ;;
10220
10221tpf*)
10222 lt_cv_deplibs_check_method=pass_all
10223 ;;
10224esac
10225
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10228$as_echo "$lt_cv_deplibs_check_method" >&6; }
10229file_magic_cmd=$lt_cv_file_magic_cmd
10230deplibs_check_method=$lt_cv_deplibs_check_method
10231test -z "$deplibs_check_method" && deplibs_check_method=unknown
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244if test -n "$ac_tool_prefix"; then
10245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10246set dummy ${ac_tool_prefix}ar; ac_word=$2
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248$as_echo_n "checking for $ac_word... " >&6; }
10249if test "${ac_cv_prog_AR+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251else
10252 if test -n "$AR"; then
10253 ac_cv_prog_AR="$AR" # Let the user override the test.
10254else
10255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256for as_dir in $PATH
10257do
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262 ac_cv_prog_AR="${ac_tool_prefix}ar"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 break 2
10265 fi
10266done
10267 done
10268IFS=$as_save_IFS
10269
10270fi
10271fi
10272AR=$ac_cv_prog_AR
10273if test -n "$AR"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10275$as_echo "$AR" >&6; }
10276else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278$as_echo "no" >&6; }
10279fi
10280
10281
10282fi
10283if test -z "$ac_cv_prog_AR"; then
10284 ac_ct_AR=$AR
10285 # Extract the first word of "ar", so it can be a program name with args.
10286set dummy ar; ac_word=$2
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288$as_echo_n "checking for $ac_word... " >&6; }
10289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291else
10292 if test -n "$ac_ct_AR"; then
10293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_prog_ac_ct_AR="ar"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10305 fi
10306done
10307 done
10308IFS=$as_save_IFS
10309
10310fi
10311fi
10312ac_ct_AR=$ac_cv_prog_ac_ct_AR
10313if test -n "$ac_ct_AR"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10315$as_echo "$ac_ct_AR" >&6; }
10316else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
10319fi
10320
10321 if test "x$ac_ct_AR" = x; then
10322 AR="false"
10323 else
10324 case $cross_compiling:$ac_tool_warned in
10325yes:)
10326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328ac_tool_warned=yes ;;
10329esac
10330 AR=$ac_ct_AR
10331 fi
10332else
10333 AR="$ac_cv_prog_AR"
10334fi
10335
10336test -z "$AR" && AR=ar
10337test -z "$AR_FLAGS" && AR_FLAGS=cru
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349if test -n "$ac_tool_prefix"; then
10350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10351set dummy ${ac_tool_prefix}strip; ac_word=$2
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if test "${ac_cv_prog_STRIP+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356else
10357 if test -n "$STRIP"; then
10358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371done
10372 done
10373IFS=$as_save_IFS
10374
10375fi
10376fi
10377STRIP=$ac_cv_prog_STRIP
10378if test -n "$STRIP"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10380$as_echo "$STRIP" >&6; }
10381else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
10384fi
10385
10386
10387fi
10388if test -z "$ac_cv_prog_STRIP"; then
10389 ac_ct_STRIP=$STRIP
10390 # Extract the first word of "strip", so it can be a program name with args.
10391set dummy strip; ac_word=$2
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393$as_echo_n "checking for $ac_word... " >&6; }
10394if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10396else
10397 if test -n "$ac_ct_STRIP"; then
10398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10399else
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
10406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10407 ac_cv_prog_ac_ct_STRIP="strip"
10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10410 fi
10411done
10412 done
10413IFS=$as_save_IFS
10414
10415fi
10416fi
10417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10418if test -n "$ac_ct_STRIP"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10420$as_echo "$ac_ct_STRIP" >&6; }
10421else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
10424fi
10425
10426 if test "x$ac_ct_STRIP" = x; then
10427 STRIP=":"
10428 else
10429 case $cross_compiling:$ac_tool_warned in
10430yes:)
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10433ac_tool_warned=yes ;;
10434esac
10435 STRIP=$ac_ct_STRIP
10436 fi
10437else
10438 STRIP="$ac_cv_prog_STRIP"
10439fi
10440
10441test -z "$STRIP" && STRIP=:
10442
10443
10444
10445
10446
10447
10448if test -n "$ac_tool_prefix"; then
10449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10450set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452$as_echo_n "checking for $ac_word... " >&6; }
10453if test "${ac_cv_prog_RANLIB+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10455else
10456 if test -n "$RANLIB"; then
10457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10458else
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10469 fi
10470done
10471 done
10472IFS=$as_save_IFS
10473
10474fi
10475fi
10476RANLIB=$ac_cv_prog_RANLIB
10477if test -n "$RANLIB"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10479$as_echo "$RANLIB" >&6; }
10480else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482$as_echo "no" >&6; }
10483fi
10484
10485
10486fi
10487if test -z "$ac_cv_prog_RANLIB"; then
10488 ac_ct_RANLIB=$RANLIB
10489 # Extract the first word of "ranlib", so it can be a program name with args.
10490set dummy ranlib; ac_word=$2
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
10493if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495else
10496 if test -n "$ac_ct_RANLIB"; then
10497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_prog_ac_ct_RANLIB="ranlib"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511 done
10512IFS=$as_save_IFS
10513
10514fi
10515fi
10516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10517if test -n "$ac_ct_RANLIB"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10519$as_echo "$ac_ct_RANLIB" >&6; }
10520else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
10523fi
10524
10525 if test "x$ac_ct_RANLIB" = x; then
10526 RANLIB=":"
10527 else
10528 case $cross_compiling:$ac_tool_warned in
10529yes:)
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532ac_tool_warned=yes ;;
10533esac
10534 RANLIB=$ac_ct_RANLIB
10535 fi
10536else
10537 RANLIB="$ac_cv_prog_RANLIB"
10538fi
10539
10540test -z "$RANLIB" && RANLIB=:
10541
10542
10543
10544
10545
10546
10547# Determine commands to create old-style static archives.
10548old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10549old_postinstall_cmds='chmod 644 $oldlib'
10550old_postuninstall_cmds=
10551
10552if test -n "$RANLIB"; then
10553 case $host_os in
10554 openbsd*)
10555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10556 ;;
10557 *)
10558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10559 ;;
10560 esac
10561 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10562fi
10563
cristy0c60a692010-11-04 01:09:47 +000010564case $host_os in
10565 darwin*)
10566 lock_old_archive_extraction=yes ;;
10567 *)
10568 lock_old_archive_extraction=no ;;
10569esac
10570
10571
10572
10573
10574
10575
cristy73bd4a52010-10-05 11:24:23 +000010576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609# If no C compiler was specified, use CC.
10610LTCC=${LTCC-"$CC"}
10611
10612# If no C compiler flags were specified, use CFLAGS.
10613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10614
10615# Allow CC to be a program name with arguments.
10616compiler=$CC
10617
10618
10619# Check for command to grab the raw symbol name followed by C symbol from nm.
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10621$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10622if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10624else
10625
10626# These are sane defaults that work on at least a few old systems.
10627# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10628
10629# Character class describing NM global symbol codes.
10630symcode='[BCDEGRST]'
10631
10632# Regexp to match symbols that can be accessed directly from C.
10633sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10634
10635# Define system-specific variables.
10636case $host_os in
10637aix*)
10638 symcode='[BCDT]'
10639 ;;
10640cygwin* | mingw* | pw32* | cegcc*)
10641 symcode='[ABCDGISTW]'
10642 ;;
10643hpux*)
10644 if test "$host_cpu" = ia64; then
10645 symcode='[ABCDEGRST]'
10646 fi
10647 ;;
10648irix* | nonstopux*)
10649 symcode='[BCDEGRST]'
10650 ;;
10651osf*)
10652 symcode='[BCDEGQRST]'
10653 ;;
10654solaris*)
10655 symcode='[BDRT]'
10656 ;;
10657sco3.2v5*)
10658 symcode='[DT]'
10659 ;;
10660sysv4.2uw2*)
10661 symcode='[DT]'
10662 ;;
10663sysv5* | sco5v6* | unixware* | OpenUNIX*)
10664 symcode='[ABDT]'
10665 ;;
10666sysv4)
10667 symcode='[DFNSTU]'
10668 ;;
10669esac
10670
10671# If we're using GNU nm, then use its standard symbol codes.
10672case `$NM -V 2>&1` in
10673*GNU* | *'with BFD'*)
10674 symcode='[ABCDGIRSTW]' ;;
10675esac
10676
10677# Transform an extracted symbol line into a proper C declaration.
10678# Some systems (esp. on ia64) link data and code symbols differently,
10679# so use this general approach.
10680lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10681
10682# Transform an extracted symbol line into symbol name and symbol address
10683lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10684lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
10685
10686# Handle CRLF in mingw tool chain
10687opt_cr=
10688case $build_os in
10689mingw*)
10690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10691 ;;
10692esac
10693
10694# Try without a prefix underscore, then with it.
10695for ac_symprfx in "" "_"; do
10696
10697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10698 symxfrm="\\1 $ac_symprfx\\2 \\2"
10699
10700 # Write the raw and C identifiers.
10701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10702 # Fake it for dumpbin and say T for any non-static function
10703 # and D for any global variable.
10704 # Also find C++ and __fastcall symbols from MSVC++,
10705 # which start with @ or ?.
10706 lt_cv_sys_global_symbol_pipe="$AWK '"\
10707" {last_section=section; section=\$ 3};"\
10708" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10709" \$ 0!~/External *\|/{next};"\
10710" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10711" {if(hide[section]) next};"\
10712" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10713" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10714" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10715" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10716" ' prfx=^$ac_symprfx"
10717 else
10718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10719 fi
10720
10721 # Check to see that the pipe works correctly.
10722 pipe_works=no
10723
10724 rm -f conftest*
10725 cat > conftest.$ac_ext <<_LT_EOF
10726#ifdef __cplusplus
10727extern "C" {
10728#endif
10729char nm_test_var;
10730void nm_test_func(void);
10731void nm_test_func(void){}
10732#ifdef __cplusplus
10733}
10734#endif
10735int main(){nm_test_var='a';nm_test_func();return(0);}
10736_LT_EOF
10737
10738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10739 (eval $ac_compile) 2>&5
10740 ac_status=$?
10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; }; then
10743 # Now try to grab the symbols.
10744 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000010745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000010747 ac_status=$?
10748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10749 test $ac_status = 0; } && test -s "$nlist"; then
10750 # Try sorting and uniquifying the output.
10751 if sort "$nlist" | uniq > "$nlist"T; then
10752 mv -f "$nlist"T "$nlist"
10753 else
10754 rm -f "$nlist"T
10755 fi
10756
10757 # Make sure that we snagged all the symbols we need.
10758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10760 cat <<_LT_EOF > conftest.$ac_ext
10761#ifdef __cplusplus
10762extern "C" {
10763#endif
10764
10765_LT_EOF
10766 # Now generate the symbol file.
10767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10768
10769 cat <<_LT_EOF >> conftest.$ac_ext
10770
10771/* The mapping between symbol names and symbols. */
10772const struct {
10773 const char *name;
10774 void *address;
10775}
10776lt__PROGRAM__LTX_preloaded_symbols[] =
10777{
10778 { "@PROGRAM@", (void *) 0 },
10779_LT_EOF
10780 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10781 cat <<\_LT_EOF >> conftest.$ac_ext
10782 {0, (void *) 0}
10783};
10784
10785/* This works around a problem in FreeBSD linker */
10786#ifdef FREEBSD_WORKAROUND
10787static const void *lt_preloaded_setup() {
10788 return lt__PROGRAM__LTX_preloaded_symbols;
10789}
10790#endif
10791
10792#ifdef __cplusplus
10793}
10794#endif
10795_LT_EOF
10796 # Now try linking the two files.
10797 mv conftest.$ac_objext conftstm.$ac_objext
10798 lt_save_LIBS="$LIBS"
10799 lt_save_CFLAGS="$CFLAGS"
10800 LIBS="conftstm.$ac_objext"
10801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10803 (eval $ac_link) 2>&5
10804 ac_status=$?
10805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10807 pipe_works=yes
10808 fi
10809 LIBS="$lt_save_LIBS"
10810 CFLAGS="$lt_save_CFLAGS"
10811 else
10812 echo "cannot find nm_test_func in $nlist" >&5
10813 fi
10814 else
10815 echo "cannot find nm_test_var in $nlist" >&5
10816 fi
10817 else
10818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10819 fi
10820 else
10821 echo "$progname: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 fi
10824 rm -rf conftest* conftst*
10825
10826 # Do not use the global_symbol_pipe unless it works.
10827 if test "$pipe_works" = yes; then
10828 break
10829 else
10830 lt_cv_sys_global_symbol_pipe=
10831 fi
10832done
10833
10834fi
10835
10836if test -z "$lt_cv_sys_global_symbol_pipe"; then
10837 lt_cv_sys_global_symbol_to_cdecl=
10838fi
10839if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10841$as_echo "failed" >&6; }
10842else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10844$as_echo "ok" >&6; }
10845fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868# Check whether --enable-libtool-lock was given.
10869if test "${enable_libtool_lock+set}" = set; then :
10870 enableval=$enable_libtool_lock;
10871fi
10872
10873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10874
10875# Some flags need to be propagated to the compiler or linker for good
10876# libtool support.
10877case $host in
10878ia64-*-hpux*)
10879 # Find out which ABI we are using.
10880 echo 'int i;' > conftest.$ac_ext
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10882 (eval $ac_compile) 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; }; then
10886 case `/usr/bin/file conftest.$ac_objext` in
10887 *ELF-32*)
10888 HPUX_IA64_MODE="32"
10889 ;;
10890 *ELF-64*)
10891 HPUX_IA64_MODE="64"
10892 ;;
10893 esac
10894 fi
10895 rm -rf conftest*
10896 ;;
10897*-*-irix6*)
10898 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000010899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10904 test $ac_status = 0; }; then
10905 if test "$lt_cv_prog_gnu_ld" = yes; then
10906 case `/usr/bin/file conftest.$ac_objext` in
10907 *32-bit*)
10908 LD="${LD-ld} -melf32bsmip"
10909 ;;
10910 *N32*)
10911 LD="${LD-ld} -melf32bmipn32"
10912 ;;
10913 *64-bit*)
10914 LD="${LD-ld} -melf64bmip"
10915 ;;
10916 esac
10917 else
10918 case `/usr/bin/file conftest.$ac_objext` in
10919 *32-bit*)
10920 LD="${LD-ld} -32"
10921 ;;
10922 *N32*)
10923 LD="${LD-ld} -n32"
10924 ;;
10925 *64-bit*)
10926 LD="${LD-ld} -64"
10927 ;;
10928 esac
10929 fi
10930 fi
10931 rm -rf conftest*
10932 ;;
10933
10934x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10936 # Find out which ABI we are using.
10937 echo 'int i;' > conftest.$ac_ext
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10939 (eval $ac_compile) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; }; then
10943 case `/usr/bin/file conftest.o` in
10944 *32-bit*)
10945 case $host in
10946 x86_64-*kfreebsd*-gnu)
10947 LD="${LD-ld} -m elf_i386_fbsd"
10948 ;;
10949 x86_64-*linux*)
10950 LD="${LD-ld} -m elf_i386"
10951 ;;
10952 ppc64-*linux*|powerpc64-*linux*)
10953 LD="${LD-ld} -m elf32ppclinux"
10954 ;;
10955 s390x-*linux*)
10956 LD="${LD-ld} -m elf_s390"
10957 ;;
10958 sparc64-*linux*)
10959 LD="${LD-ld} -m elf32_sparc"
10960 ;;
10961 esac
10962 ;;
10963 *64-bit*)
10964 case $host in
10965 x86_64-*kfreebsd*-gnu)
10966 LD="${LD-ld} -m elf_x86_64_fbsd"
10967 ;;
10968 x86_64-*linux*)
10969 LD="${LD-ld} -m elf_x86_64"
10970 ;;
10971 ppc*-*linux*|powerpc*-*linux*)
10972 LD="${LD-ld} -m elf64ppc"
10973 ;;
10974 s390*-*linux*|s390*-*tpf*)
10975 LD="${LD-ld} -m elf64_s390"
10976 ;;
10977 sparc*-*linux*)
10978 LD="${LD-ld} -m elf64_sparc"
10979 ;;
10980 esac
10981 ;;
10982 esac
10983 fi
10984 rm -rf conftest*
10985 ;;
10986
10987*-*-sco3.2v5*)
10988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10989 SAVE_CFLAGS="$CFLAGS"
10990 CFLAGS="$CFLAGS -belf"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10992$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10993if test "${lt_cv_cc_needs_belf+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995else
10996 ac_ext=c
10997ac_cpp='$CPP $CPPFLAGS'
10998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h. */
11004
11005int
11006main ()
11007{
11008
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"; then :
11014 lt_cv_cc_needs_belf=yes
11015else
11016 lt_cv_cc_needs_belf=no
11017fi
11018rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 ac_ext=c
11021ac_cpp='$CPP $CPPFLAGS'
11022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025
11026fi
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11028$as_echo "$lt_cv_cc_needs_belf" >&6; }
11029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11031 CFLAGS="$SAVE_CFLAGS"
11032 fi
11033 ;;
11034sparc*-*solaris*)
11035 # Find out which ABI we are using.
11036 echo 'int i;' > conftest.$ac_ext
11037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11038 (eval $ac_compile) 2>&5
11039 ac_status=$?
11040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; }; then
11042 case `/usr/bin/file conftest.o` in
11043 *64-bit*)
11044 case $lt_cv_prog_gnu_ld in
11045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11046 *)
11047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11048 LD="${LD-ld} -64"
11049 fi
11050 ;;
11051 esac
11052 ;;
11053 esac
11054 fi
11055 rm -rf conftest*
11056 ;;
11057esac
11058
11059need_locks="$enable_libtool_lock"
11060
11061
11062 case $host_os in
11063 rhapsody* | darwin*)
11064 if test -n "$ac_tool_prefix"; then
11065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11066set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
11069if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$DSYMUTIL"; then
11073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087 done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092DSYMUTIL=$ac_cv_prog_DSYMUTIL
11093if test -n "$DSYMUTIL"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11095$as_echo "$DSYMUTIL" >&6; }
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102fi
11103if test -z "$ac_cv_prog_DSYMUTIL"; then
11104 ac_ct_DSYMUTIL=$DSYMUTIL
11105 # Extract the first word of "dsymutil", so it can be a program name with args.
11106set dummy dsymutil; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
11109if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$ac_ct_DSYMUTIL"; then
11113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126done
11127 done
11128IFS=$as_save_IFS
11129
11130fi
11131fi
11132ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11133if test -n "$ac_ct_DSYMUTIL"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11135$as_echo "$ac_ct_DSYMUTIL" >&6; }
11136else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139fi
11140
11141 if test "x$ac_ct_DSYMUTIL" = x; then
11142 DSYMUTIL=":"
11143 else
11144 case $cross_compiling:$ac_tool_warned in
11145yes:)
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11148ac_tool_warned=yes ;;
11149esac
11150 DSYMUTIL=$ac_ct_DSYMUTIL
11151 fi
11152else
11153 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11154fi
11155
11156 if test -n "$ac_tool_prefix"; then
11157 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11158set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
11161if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11163else
11164 if test -n "$NMEDIT"; then
11165 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178done
11179 done
11180IFS=$as_save_IFS
11181
11182fi
11183fi
11184NMEDIT=$ac_cv_prog_NMEDIT
11185if test -n "$NMEDIT"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11187$as_echo "$NMEDIT" >&6; }
11188else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
11191fi
11192
11193
11194fi
11195if test -z "$ac_cv_prog_NMEDIT"; then
11196 ac_ct_NMEDIT=$NMEDIT
11197 # Extract the first word of "nmedit", so it can be a program name with args.
11198set dummy nmedit; ac_word=$2
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203else
11204 if test -n "$ac_ct_NMEDIT"; then
11205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11217 fi
11218done
11219 done
11220IFS=$as_save_IFS
11221
11222fi
11223fi
11224ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11225if test -n "$ac_ct_NMEDIT"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11227$as_echo "$ac_ct_NMEDIT" >&6; }
11228else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232
11233 if test "x$ac_ct_NMEDIT" = x; then
11234 NMEDIT=":"
11235 else
11236 case $cross_compiling:$ac_tool_warned in
11237yes:)
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11240ac_tool_warned=yes ;;
11241esac
11242 NMEDIT=$ac_ct_NMEDIT
11243 fi
11244else
11245 NMEDIT="$ac_cv_prog_NMEDIT"
11246fi
11247
11248 if test -n "$ac_tool_prefix"; then
11249 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11250set dummy ${ac_tool_prefix}lipo; ac_word=$2
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
11253if test "${ac_cv_prog_LIPO+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11255else
11256 if test -n "$LIPO"; then
11257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11258else
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11269 fi
11270done
11271 done
11272IFS=$as_save_IFS
11273
11274fi
11275fi
11276LIPO=$ac_cv_prog_LIPO
11277if test -n "$LIPO"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11279$as_echo "$LIPO" >&6; }
11280else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
11283fi
11284
11285
11286fi
11287if test -z "$ac_cv_prog_LIPO"; then
11288 ac_ct_LIPO=$LIPO
11289 # Extract the first word of "lipo", so it can be a program name with args.
11290set dummy lipo; ac_word=$2
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
11293if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295else
11296 if test -n "$ac_ct_LIPO"; then
11297 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306 ac_cv_prog_ac_ct_LIPO="lipo"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310done
11311 done
11312IFS=$as_save_IFS
11313
11314fi
11315fi
11316ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11317if test -n "$ac_ct_LIPO"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11319$as_echo "$ac_ct_LIPO" >&6; }
11320else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
11323fi
11324
11325 if test "x$ac_ct_LIPO" = x; then
11326 LIPO=":"
11327 else
11328 case $cross_compiling:$ac_tool_warned in
11329yes:)
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332ac_tool_warned=yes ;;
11333esac
11334 LIPO=$ac_ct_LIPO
11335 fi
11336else
11337 LIPO="$ac_cv_prog_LIPO"
11338fi
11339
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11342set dummy ${ac_tool_prefix}otool; ac_word=$2
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344$as_echo_n "checking for $ac_word... " >&6; }
11345if test "${ac_cv_prog_OTOOL+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11347else
11348 if test -n "$OTOOL"; then
11349 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363 done
11364IFS=$as_save_IFS
11365
11366fi
11367fi
11368OTOOL=$ac_cv_prog_OTOOL
11369if test -n "$OTOOL"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11371$as_echo "$OTOOL" >&6; }
11372else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374$as_echo "no" >&6; }
11375fi
11376
11377
11378fi
11379if test -z "$ac_cv_prog_OTOOL"; then
11380 ac_ct_OTOOL=$OTOOL
11381 # Extract the first word of "otool", so it can be a program name with args.
11382set dummy otool; ac_word=$2
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384$as_echo_n "checking for $ac_word... " >&6; }
11385if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11387else
11388 if test -n "$ac_ct_OTOOL"; then
11389 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_ac_ct_OTOOL="otool"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402done
11403 done
11404IFS=$as_save_IFS
11405
11406fi
11407fi
11408ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11409if test -n "$ac_ct_OTOOL"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11411$as_echo "$ac_ct_OTOOL" >&6; }
11412else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
11415fi
11416
11417 if test "x$ac_ct_OTOOL" = x; then
11418 OTOOL=":"
11419 else
11420 case $cross_compiling:$ac_tool_warned in
11421yes:)
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11424ac_tool_warned=yes ;;
11425esac
11426 OTOOL=$ac_ct_OTOOL
11427 fi
11428else
11429 OTOOL="$ac_cv_prog_OTOOL"
11430fi
11431
11432 if test -n "$ac_tool_prefix"; then
11433 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11434set dummy ${ac_tool_prefix}otool64; ac_word=$2
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436$as_echo_n "checking for $ac_word... " >&6; }
11437if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439else
11440 if test -n "$OTOOL64"; then
11441 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11442else
11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454done
11455 done
11456IFS=$as_save_IFS
11457
11458fi
11459fi
11460OTOOL64=$ac_cv_prog_OTOOL64
11461if test -n "$OTOOL64"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11463$as_echo "$OTOOL64" >&6; }
11464else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466$as_echo "no" >&6; }
11467fi
11468
11469
11470fi
11471if test -z "$ac_cv_prog_OTOOL64"; then
11472 ac_ct_OTOOL64=$OTOOL64
11473 # Extract the first word of "otool64", so it can be a program name with args.
11474set dummy otool64; ac_word=$2
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476$as_echo_n "checking for $ac_word... " >&6; }
11477if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
11479else
11480 if test -n "$ac_ct_OTOOL64"; then
11481 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11482else
11483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 ac_cv_prog_ac_ct_OTOOL64="otool64"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11493 fi
11494done
11495 done
11496IFS=$as_save_IFS
11497
11498fi
11499fi
11500ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11501if test -n "$ac_ct_OTOOL64"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11503$as_echo "$ac_ct_OTOOL64" >&6; }
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507fi
11508
11509 if test "x$ac_ct_OTOOL64" = x; then
11510 OTOOL64=":"
11511 else
11512 case $cross_compiling:$ac_tool_warned in
11513yes:)
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516ac_tool_warned=yes ;;
11517esac
11518 OTOOL64=$ac_ct_OTOOL64
11519 fi
11520else
11521 OTOOL64="$ac_cv_prog_OTOOL64"
11522fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11551$as_echo_n "checking for -single_module linker flag... " >&6; }
11552if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11554else
11555 lt_cv_apple_cc_single_mod=no
11556 if test -z "${LT_MULTI_MODULE}"; then
11557 # By default we will add the -single_module flag. You can override
11558 # by either setting the environment variable LT_MULTI_MODULE
11559 # non-empty at configure time, or by adding -multi_module to the
11560 # link flags.
11561 rm -rf libconftest.dylib*
11562 echo "int foo(void){return 1;}" > conftest.c
11563 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11564-dynamiclib -Wl,-single_module conftest.c" >&5
11565 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11566 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11567 _lt_result=$?
11568 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11569 lt_cv_apple_cc_single_mod=yes
11570 else
11571 cat conftest.err >&5
11572 fi
11573 rm -rf libconftest.dylib*
11574 rm -f conftest.*
11575 fi
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11578$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11580$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11581if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583else
11584 lt_cv_ld_exported_symbols_list=no
11585 save_LDFLAGS=$LDFLAGS
11586 echo "_main" > conftest.sym
11587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h. */
11590
11591int
11592main ()
11593{
11594
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599if ac_fn_c_try_link "$LINENO"; then :
11600 lt_cv_ld_exported_symbols_list=yes
11601else
11602 lt_cv_ld_exported_symbols_list=no
11603fi
11604rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606 LDFLAGS="$save_LDFLAGS"
11607
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11610$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000011611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11612$as_echo_n "checking for -force_load linker flag... " >&6; }
11613if test "${lt_cv_ld_force_load+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615else
11616 lt_cv_ld_force_load=no
11617 cat > conftest.c << _LT_EOF
11618int forced_loaded() { return 2;}
11619_LT_EOF
11620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11622 echo "$AR cru libconftest.a conftest.o" >&5
11623 $AR cru libconftest.a conftest.o 2>&5
11624 echo "$RANLIB libconftest.a" >&5
11625 $RANLIB libconftest.a 2>&5
11626 cat > conftest.c << _LT_EOF
11627int main() { return 0;}
11628_LT_EOF
11629 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11630 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11631 _lt_result=$?
11632 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11633 lt_cv_ld_force_load=yes
11634 else
11635 cat conftest.err >&5
11636 fi
11637 rm -f conftest.err libconftest.a conftest conftest.c
11638 rm -rf conftest.dSYM
11639
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11642$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000011643 case $host_os in
11644 rhapsody* | darwin1.[012])
11645 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11646 darwin1.*)
11647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648 darwin*) # darwin 5.x on
11649 # if running on 10.5 or later, the deployment target defaults
11650 # to the OS version, if on x86, and 10.4, the deployment
11651 # target defaults to 10.4. Don't you love it?
11652 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11653 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655 10.[012]*)
11656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11657 10.*)
11658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11659 esac
11660 ;;
11661 esac
11662 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11663 _lt_dar_single_mod='$single_module'
11664 fi
11665 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11666 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11667 else
11668 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11669 fi
cristy0c60a692010-11-04 01:09:47 +000011670 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000011671 _lt_dsymutil='~$DSYMUTIL $lib || :'
11672 else
11673 _lt_dsymutil=
11674 fi
11675 ;;
11676 esac
11677
11678for ac_header in dlfcn.h
11679do :
11680 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11681"
11682if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11683 cat >>confdefs.h <<_ACEOF
11684#define HAVE_DLFCN_H 1
11685_ACEOF
11686
11687fi
11688
11689done
11690
11691
11692
cristy73bd4a52010-10-05 11:24:23 +000011693
11694
11695
11696# Set options
11697enable_win32_dll=yes
11698
11699case $host in
cristy0c60a692010-11-04 01:09:47 +000011700*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011701 if test -n "$ac_tool_prefix"; then
11702 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11703set dummy ${ac_tool_prefix}as; ac_word=$2
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705$as_echo_n "checking for $ac_word... " >&6; }
11706if test "${ac_cv_prog_AS+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11708else
11709 if test -n "$AS"; then
11710 ac_cv_prog_AS="$AS" # Let the user override the test.
11711else
11712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_prog_AS="${ac_tool_prefix}as"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11722 fi
11723done
11724 done
11725IFS=$as_save_IFS
11726
11727fi
11728fi
11729AS=$ac_cv_prog_AS
11730if test -n "$AS"; then
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11732$as_echo "$AS" >&6; }
11733else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
11736fi
11737
11738
11739fi
11740if test -z "$ac_cv_prog_AS"; then
11741 ac_ct_AS=$AS
11742 # Extract the first word of "as", so it can be a program name with args.
11743set dummy as; ac_word=$2
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745$as_echo_n "checking for $ac_word... " >&6; }
11746if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748else
11749 if test -n "$ac_ct_AS"; then
11750 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11751else
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_prog_ac_ct_AS="as"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11762 fi
11763done
11764 done
11765IFS=$as_save_IFS
11766
11767fi
11768fi
11769ac_ct_AS=$ac_cv_prog_ac_ct_AS
11770if test -n "$ac_ct_AS"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11772$as_echo "$ac_ct_AS" >&6; }
11773else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775$as_echo "no" >&6; }
11776fi
11777
11778 if test "x$ac_ct_AS" = x; then
11779 AS="false"
11780 else
11781 case $cross_compiling:$ac_tool_warned in
11782yes:)
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11785ac_tool_warned=yes ;;
11786esac
11787 AS=$ac_ct_AS
11788 fi
11789else
11790 AS="$ac_cv_prog_AS"
11791fi
11792
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11795set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797$as_echo_n "checking for $ac_word... " >&6; }
11798if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800else
11801 if test -n "$DLLTOOL"; then
11802 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11803else
11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
11806do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815done
11816 done
11817IFS=$as_save_IFS
11818
11819fi
11820fi
11821DLLTOOL=$ac_cv_prog_DLLTOOL
11822if test -n "$DLLTOOL"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11824$as_echo "$DLLTOOL" >&6; }
11825else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827$as_echo "no" >&6; }
11828fi
11829
11830
11831fi
11832if test -z "$ac_cv_prog_DLLTOOL"; then
11833 ac_ct_DLLTOOL=$DLLTOOL
11834 # Extract the first word of "dlltool", so it can be a program name with args.
11835set dummy dlltool; ac_word=$2
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837$as_echo_n "checking for $ac_word... " >&6; }
11838if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840else
11841 if test -n "$ac_ct_DLLTOOL"; then
11842 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11843else
11844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845for as_dir in $PATH
11846do
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11854 fi
11855done
11856 done
11857IFS=$as_save_IFS
11858
11859fi
11860fi
11861ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11862if test -n "$ac_ct_DLLTOOL"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11864$as_echo "$ac_ct_DLLTOOL" >&6; }
11865else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868fi
11869
11870 if test "x$ac_ct_DLLTOOL" = x; then
11871 DLLTOOL="false"
11872 else
11873 case $cross_compiling:$ac_tool_warned in
11874yes:)
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877ac_tool_warned=yes ;;
11878esac
11879 DLLTOOL=$ac_ct_DLLTOOL
11880 fi
11881else
11882 DLLTOOL="$ac_cv_prog_DLLTOOL"
11883fi
11884
11885 if test -n "$ac_tool_prefix"; then
11886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11887set dummy ${ac_tool_prefix}objdump; ac_word=$2
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889$as_echo_n "checking for $ac_word... " >&6; }
11890if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11892else
11893 if test -n "$OBJDUMP"; then
11894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11895else
11896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 break 2
11906 fi
11907done
11908 done
11909IFS=$as_save_IFS
11910
11911fi
11912fi
11913OBJDUMP=$ac_cv_prog_OBJDUMP
11914if test -n "$OBJDUMP"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11916$as_echo "$OBJDUMP" >&6; }
11917else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
11920fi
11921
11922
11923fi
11924if test -z "$ac_cv_prog_OBJDUMP"; then
11925 ac_ct_OBJDUMP=$OBJDUMP
11926 # Extract the first word of "objdump", so it can be a program name with args.
11927set dummy objdump; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
11930if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932else
11933 if test -n "$ac_ct_OBJDUMP"; then
11934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948 done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11954if test -n "$ac_ct_OBJDUMP"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11956$as_echo "$ac_ct_OBJDUMP" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962 if test "x$ac_ct_OBJDUMP" = x; then
11963 OBJDUMP="false"
11964 else
11965 case $cross_compiling:$ac_tool_warned in
11966yes:)
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969ac_tool_warned=yes ;;
11970esac
11971 OBJDUMP=$ac_ct_OBJDUMP
11972 fi
11973else
11974 OBJDUMP="$ac_cv_prog_OBJDUMP"
11975fi
11976
11977 ;;
11978esac
11979
11980test -z "$AS" && AS=as
11981
11982
11983
11984
11985
11986test -z "$DLLTOOL" && DLLTOOL=dlltool
11987
11988
11989
11990
11991
11992test -z "$OBJDUMP" && OBJDUMP=objdump
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 # Check whether --enable-shared was given.
12003if test "${enable_shared+set}" = set; then :
12004 enableval=$enable_shared; p=${PACKAGE-default}
12005 case $enableval in
12006 yes) enable_shared=yes ;;
12007 no) enable_shared=no ;;
12008 *)
12009 enable_shared=no
12010 # Look at the argument we got. We use all the common list separators.
12011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012 for pkg in $enableval; do
12013 IFS="$lt_save_ifs"
12014 if test "X$pkg" = "X$p"; then
12015 enable_shared=yes
12016 fi
12017 done
12018 IFS="$lt_save_ifs"
12019 ;;
12020 esac
12021else
12022 enable_shared=yes
12023fi
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 # Check whether --enable-static was given.
12034if test "${enable_static+set}" = set; then :
12035 enableval=$enable_static; p=${PACKAGE-default}
12036 case $enableval in
12037 yes) enable_static=yes ;;
12038 no) enable_static=no ;;
12039 *)
12040 enable_static=no
12041 # Look at the argument we got. We use all the common list separators.
12042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12043 for pkg in $enableval; do
12044 IFS="$lt_save_ifs"
12045 if test "X$pkg" = "X$p"; then
12046 enable_static=yes
12047 fi
12048 done
12049 IFS="$lt_save_ifs"
12050 ;;
12051 esac
12052else
12053 enable_static=yes
12054fi
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065# Check whether --with-pic was given.
12066if test "${with_pic+set}" = set; then :
12067 withval=$with_pic; pic_mode="$withval"
12068else
12069 pic_mode=default
12070fi
12071
12072
12073test -z "$pic_mode" && pic_mode=default
12074
12075
12076
12077
12078
12079
12080
12081 # Check whether --enable-fast-install was given.
12082if test "${enable_fast_install+set}" = set; then :
12083 enableval=$enable_fast_install; p=${PACKAGE-default}
12084 case $enableval in
12085 yes) enable_fast_install=yes ;;
12086 no) enable_fast_install=no ;;
12087 *)
12088 enable_fast_install=no
12089 # Look at the argument we got. We use all the common list separators.
12090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12091 for pkg in $enableval; do
12092 IFS="$lt_save_ifs"
12093 if test "X$pkg" = "X$p"; then
12094 enable_fast_install=yes
12095 fi
12096 done
12097 IFS="$lt_save_ifs"
12098 ;;
12099 esac
12100else
12101 enable_fast_install=yes
12102fi
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114# This can be used to rebuild libtool when needed
12115LIBTOOL_DEPS="$ltmain"
12116
12117# Always use our own libtool.
12118LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
cristy0c60a692010-11-04 01:09:47 +000012144
cristy73bd4a52010-10-05 11:24:23 +000012145test -z "$LN_S" && LN_S="ln -s"
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160if test -n "${ZSH_VERSION+set}" ; then
12161 setopt NO_GLOB_SUBST
12162fi
12163
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12165$as_echo_n "checking for objdir... " >&6; }
12166if test "${lt_cv_objdir+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168else
12169 rm -f .libs 2>/dev/null
12170mkdir .libs 2>/dev/null
12171if test -d .libs; then
12172 lt_cv_objdir=.libs
12173else
12174 # MS-DOS does not allow filenames that begin with a dot.
12175 lt_cv_objdir=_libs
12176fi
12177rmdir .libs 2>/dev/null
12178fi
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12180$as_echo "$lt_cv_objdir" >&6; }
12181objdir=$lt_cv_objdir
12182
12183
12184
12185
12186
12187cat >>confdefs.h <<_ACEOF
12188#define LT_OBJDIR "$lt_cv_objdir/"
12189_ACEOF
12190
12191
12192
12193
cristy73bd4a52010-10-05 11:24:23 +000012194case $host_os in
12195aix3*)
12196 # AIX sometimes has problems with the GCC collect2 program. For some
12197 # reason, if we set the COLLECT_NAMES environment variable, the problems
12198 # vanish in a puff of smoke.
12199 if test "X${COLLECT_NAMES+set}" != Xset; then
12200 COLLECT_NAMES=
12201 export COLLECT_NAMES
12202 fi
12203 ;;
12204esac
12205
cristy73bd4a52010-10-05 11:24:23 +000012206# Global variables:
12207ofile=libtool
12208can_build_shared=yes
12209
12210# All known linkers require a `.a' archive for static linking (except MSVC,
12211# which needs '.lib').
12212libext=a
12213
12214with_gnu_ld="$lt_cv_prog_gnu_ld"
12215
12216old_CC="$CC"
12217old_CFLAGS="$CFLAGS"
12218
12219# Set sane defaults for various variables
12220test -z "$CC" && CC=cc
12221test -z "$LTCC" && LTCC=$CC
12222test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12223test -z "$LD" && LD=ld
12224test -z "$ac_objext" && ac_objext=o
12225
12226for cc_temp in $compiler""; do
12227 case $cc_temp in
12228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12230 \-*) ;;
12231 *) break;;
12232 esac
12233done
cristy0c60a692010-11-04 01:09:47 +000012234cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012235
12236
12237# Only perform the check for file, if the check method requires it
12238test -z "$MAGIC_CMD" && MAGIC_CMD=file
12239case $deplibs_check_method in
12240file_magic*)
12241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12243$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12244if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246else
12247 case $MAGIC_CMD in
12248[\\/*] | ?:[\\/]*)
12249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12250 ;;
12251*)
12252 lt_save_MAGIC_CMD="$MAGIC_CMD"
12253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12255 for ac_dir in $ac_dummy; do
12256 IFS="$lt_save_ifs"
12257 test -z "$ac_dir" && ac_dir=.
12258 if test -f $ac_dir/${ac_tool_prefix}file; then
12259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12260 if test -n "$file_magic_test_file"; then
12261 case $deplibs_check_method in
12262 "file_magic "*)
12263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12266 $EGREP "$file_magic_regex" > /dev/null; then
12267 :
12268 else
12269 cat <<_LT_EOF 1>&2
12270
12271*** Warning: the command libtool uses to detect shared libraries,
12272*** $file_magic_cmd, produces output that libtool cannot recognize.
12273*** The result is that libtool may fail to recognize shared libraries
12274*** as such. This will affect the creation of libtool libraries that
12275*** depend on shared libraries, but programs linked with such libtool
12276*** libraries will work regardless of this problem. Nevertheless, you
12277*** may want to report the problem to your system manager and/or to
12278*** bug-libtool@gnu.org
12279
12280_LT_EOF
12281 fi ;;
12282 esac
12283 fi
12284 break
12285 fi
12286 done
12287 IFS="$lt_save_ifs"
12288 MAGIC_CMD="$lt_save_MAGIC_CMD"
12289 ;;
12290esac
12291fi
12292
12293MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12294if test -n "$MAGIC_CMD"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12296$as_echo "$MAGIC_CMD" >&6; }
12297else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
12300fi
12301
12302
12303
12304
12305
12306if test -z "$lt_cv_path_MAGIC_CMD"; then
12307 if test -n "$ac_tool_prefix"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12309$as_echo_n "checking for file... " >&6; }
12310if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312else
12313 case $MAGIC_CMD in
12314[\\/*] | ?:[\\/]*)
12315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12316 ;;
12317*)
12318 lt_save_MAGIC_CMD="$MAGIC_CMD"
12319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12321 for ac_dir in $ac_dummy; do
12322 IFS="$lt_save_ifs"
12323 test -z "$ac_dir" && ac_dir=.
12324 if test -f $ac_dir/file; then
12325 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12326 if test -n "$file_magic_test_file"; then
12327 case $deplibs_check_method in
12328 "file_magic "*)
12329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12332 $EGREP "$file_magic_regex" > /dev/null; then
12333 :
12334 else
12335 cat <<_LT_EOF 1>&2
12336
12337*** Warning: the command libtool uses to detect shared libraries,
12338*** $file_magic_cmd, produces output that libtool cannot recognize.
12339*** The result is that libtool may fail to recognize shared libraries
12340*** as such. This will affect the creation of libtool libraries that
12341*** depend on shared libraries, but programs linked with such libtool
12342*** libraries will work regardless of this problem. Nevertheless, you
12343*** may want to report the problem to your system manager and/or to
12344*** bug-libtool@gnu.org
12345
12346_LT_EOF
12347 fi ;;
12348 esac
12349 fi
12350 break
12351 fi
12352 done
12353 IFS="$lt_save_ifs"
12354 MAGIC_CMD="$lt_save_MAGIC_CMD"
12355 ;;
12356esac
12357fi
12358
12359MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12360if test -n "$MAGIC_CMD"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12362$as_echo "$MAGIC_CMD" >&6; }
12363else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365$as_echo "no" >&6; }
12366fi
12367
12368
12369 else
12370 MAGIC_CMD=:
12371 fi
12372fi
12373
12374 fi
12375 ;;
12376esac
12377
12378# Use C for the default configuration in the libtool script
12379
12380lt_save_CC="$CC"
12381ac_ext=c
12382ac_cpp='$CPP $CPPFLAGS'
12383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387
12388# Source file extension for C test sources.
12389ac_ext=c
12390
12391# Object file extension for compiled C test sources.
12392objext=o
12393objext=$objext
12394
12395# Code to be used in simple compile tests
12396lt_simple_compile_test_code="int some_variable = 0;"
12397
12398# Code to be used in simple link tests
12399lt_simple_link_test_code='int main(){return(0);}'
12400
12401
12402
12403
12404
12405
12406
12407# If no C compiler was specified, use CC.
12408LTCC=${LTCC-"$CC"}
12409
12410# If no C compiler flags were specified, use CFLAGS.
12411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12412
12413# Allow CC to be a program name with arguments.
12414compiler=$CC
12415
12416# Save the default compiler, since it gets overwritten when the other
12417# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12418compiler_DEFAULT=$CC
12419
12420# save warnings/boilerplate of simple test code
12421ac_outfile=conftest.$ac_objext
12422echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12424_lt_compiler_boilerplate=`cat conftest.err`
12425$RM conftest*
12426
12427ac_outfile=conftest.$ac_objext
12428echo "$lt_simple_link_test_code" >conftest.$ac_ext
12429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12430_lt_linker_boilerplate=`cat conftest.err`
12431$RM -r conftest*
12432
12433
12434## CAVEAT EMPTOR:
12435## There is no encapsulation within the following macros, do not change
12436## the running order or otherwise move them around unless you know exactly
12437## what you are doing...
12438if test -n "$compiler"; then
12439
12440lt_prog_compiler_no_builtin_flag=
12441
12442if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012443 case $cc_basename in
12444 nvcc*)
12445 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12446 *)
12447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12448 esac
cristy73bd4a52010-10-05 11:24:23 +000012449
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12451$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454else
12455 lt_cv_prog_compiler_rtti_exceptions=no
12456 ac_outfile=conftest.$ac_objext
12457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12458 lt_compiler_flag="-fno-rtti -fno-exceptions"
12459 # Insert the option either (1) after the last *FLAGS variable, or
12460 # (2) before a word containing "conftest.", or (3) at the end.
12461 # Note that $ac_compile itself does not contain backslashes and begins
12462 # with a dollar sign (not a hyphen), so the echo should work correctly.
12463 # The option is referenced via a variable to avoid confusing sed.
12464 lt_compile=`echo "$ac_compile" | $SED \
12465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12467 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012469 (eval "$lt_compile" 2>conftest.err)
12470 ac_status=$?
12471 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012473 if (exit $ac_status) && test -s "$ac_outfile"; then
12474 # The compiler can only warn and ignore the option if not recognized
12475 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12479 lt_cv_prog_compiler_rtti_exceptions=yes
12480 fi
12481 fi
12482 $RM conftest*
12483
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12486$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12487
12488if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12490else
12491 :
12492fi
12493
12494fi
12495
12496
12497
12498
12499
12500
12501 lt_prog_compiler_wl=
12502lt_prog_compiler_pic=
12503lt_prog_compiler_static=
12504
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12506$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12507
12508 if test "$GCC" = yes; then
12509 lt_prog_compiler_wl='-Wl,'
12510 lt_prog_compiler_static='-static'
12511
12512 case $host_os in
12513 aix*)
12514 # All AIX code is PIC.
12515 if test "$host_cpu" = ia64; then
12516 # AIX 5 now supports IA64 processor
12517 lt_prog_compiler_static='-Bstatic'
12518 fi
12519 ;;
12520
12521 amigaos*)
12522 case $host_cpu in
12523 powerpc)
12524 # see comment about AmigaOS4 .so support
12525 lt_prog_compiler_pic='-fPIC'
12526 ;;
12527 m68k)
12528 # FIXME: we need at least 68020 code to build shared libraries, but
12529 # adding the `-m68020' flag to GCC prevents building anything better,
12530 # like `-m68040'.
12531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12532 ;;
12533 esac
12534 ;;
12535
12536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12537 # PIC is the default for these OSes.
12538 ;;
12539
12540 mingw* | cygwin* | pw32* | os2* | cegcc*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12544 # (--disable-auto-import) libraries
12545 lt_prog_compiler_pic='-DDLL_EXPORT'
12546 ;;
12547
12548 darwin* | rhapsody*)
12549 # PIC is the default on this platform
12550 # Common symbols not allowed in MH_DYLIB files
12551 lt_prog_compiler_pic='-fno-common'
12552 ;;
12553
cristy0c60a692010-11-04 01:09:47 +000012554 haiku*)
12555 # PIC is the default for Haiku.
12556 # The "-static" flag exists, but is broken.
12557 lt_prog_compiler_static=
12558 ;;
12559
cristy73bd4a52010-10-05 11:24:23 +000012560 hpux*)
12561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12563 # sets the default TLS model and affects inlining.
12564 case $host_cpu in
12565 hppa*64*)
12566 # +Z the default
12567 ;;
12568 *)
12569 lt_prog_compiler_pic='-fPIC'
12570 ;;
12571 esac
12572 ;;
12573
12574 interix[3-9]*)
12575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12576 # Instead, we relocate shared libraries at runtime.
12577 ;;
12578
12579 msdosdjgpp*)
12580 # Just because we use GCC doesn't mean we suddenly get shared libraries
12581 # on systems that don't support them.
12582 lt_prog_compiler_can_build_shared=no
12583 enable_shared=no
12584 ;;
12585
12586 *nto* | *qnx*)
12587 # QNX uses GNU C++, but need to define -shared option too, otherwise
12588 # it will coredump.
12589 lt_prog_compiler_pic='-fPIC -shared'
12590 ;;
12591
12592 sysv4*MP*)
12593 if test -d /usr/nec; then
12594 lt_prog_compiler_pic=-Kconform_pic
12595 fi
12596 ;;
12597
12598 *)
12599 lt_prog_compiler_pic='-fPIC'
12600 ;;
12601 esac
cristy0c60a692010-11-04 01:09:47 +000012602
12603 case $cc_basename in
12604 nvcc*) # Cuda Compiler Driver 2.2
12605 lt_prog_compiler_wl='-Xlinker '
12606 lt_prog_compiler_pic='-Xcompiler -fPIC'
12607 ;;
12608 esac
cristy73bd4a52010-10-05 11:24:23 +000012609 else
12610 # PORTME Check for flag to pass linker flags through the system compiler.
12611 case $host_os in
12612 aix*)
12613 lt_prog_compiler_wl='-Wl,'
12614 if test "$host_cpu" = ia64; then
12615 # AIX 5 now supports IA64 processor
12616 lt_prog_compiler_static='-Bstatic'
12617 else
12618 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12619 fi
12620 ;;
12621
12622 mingw* | cygwin* | pw32* | os2* | cegcc*)
12623 # This hack is so that the source file can tell whether it is being
12624 # built for inclusion in a dll (and should export symbols for example).
12625 lt_prog_compiler_pic='-DDLL_EXPORT'
12626 ;;
12627
12628 hpux9* | hpux10* | hpux11*)
12629 lt_prog_compiler_wl='-Wl,'
12630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12631 # not for PA HP-UX.
12632 case $host_cpu in
12633 hppa*64*|ia64*)
12634 # +Z the default
12635 ;;
12636 *)
12637 lt_prog_compiler_pic='+Z'
12638 ;;
12639 esac
12640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12641 lt_prog_compiler_static='${wl}-a ${wl}archive'
12642 ;;
12643
12644 irix5* | irix6* | nonstopux*)
12645 lt_prog_compiler_wl='-Wl,'
12646 # PIC (with -KPIC) is the default.
12647 lt_prog_compiler_static='-non_shared'
12648 ;;
12649
cristy0c60a692010-11-04 01:09:47 +000012650 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012651 case $cc_basename in
12652 # old Intel for x86_64 which still supported -KPIC.
12653 ecc*)
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='-KPIC'
12656 lt_prog_compiler_static='-static'
12657 ;;
12658 # icc used to be incompatible with GCC.
12659 # ICC 10 doesn't accept -KPIC any more.
12660 icc* | ifort*)
12661 lt_prog_compiler_wl='-Wl,'
12662 lt_prog_compiler_pic='-fPIC'
12663 lt_prog_compiler_static='-static'
12664 ;;
12665 # Lahey Fortran 8.1.
12666 lf95*)
12667 lt_prog_compiler_wl='-Wl,'
12668 lt_prog_compiler_pic='--shared'
12669 lt_prog_compiler_static='--static'
12670 ;;
cristy0c60a692010-11-04 01:09:47 +000012671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000012672 # Portland Group compilers (*not* the Pentium gcc compiler,
12673 # which looks to be a dead project)
12674 lt_prog_compiler_wl='-Wl,'
12675 lt_prog_compiler_pic='-fpic'
12676 lt_prog_compiler_static='-Bstatic'
12677 ;;
12678 ccc*)
12679 lt_prog_compiler_wl='-Wl,'
12680 # All Alpha code is PIC.
12681 lt_prog_compiler_static='-non_shared'
12682 ;;
cristy0c60a692010-11-04 01:09:47 +000012683 xl* | bgxl* | bgf* | mpixl*)
12684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000012685 lt_prog_compiler_wl='-Wl,'
12686 lt_prog_compiler_pic='-qpic'
12687 lt_prog_compiler_static='-qstaticlink'
12688 ;;
12689 *)
12690 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000012691 *Sun\ F* | *Sun*Fortran*)
12692 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12693 lt_prog_compiler_pic='-KPIC'
12694 lt_prog_compiler_static='-Bstatic'
12695 lt_prog_compiler_wl=''
12696 ;;
cristy73bd4a52010-10-05 11:24:23 +000012697 *Sun\ C*)
12698 # Sun C 5.9
12699 lt_prog_compiler_pic='-KPIC'
12700 lt_prog_compiler_static='-Bstatic'
12701 lt_prog_compiler_wl='-Wl,'
12702 ;;
cristy73bd4a52010-10-05 11:24:23 +000012703 esac
12704 ;;
12705 esac
12706 ;;
12707
12708 newsos6)
12709 lt_prog_compiler_pic='-KPIC'
12710 lt_prog_compiler_static='-Bstatic'
12711 ;;
12712
12713 *nto* | *qnx*)
12714 # QNX uses GNU C++, but need to define -shared option too, otherwise
12715 # it will coredump.
12716 lt_prog_compiler_pic='-fPIC -shared'
12717 ;;
12718
12719 osf3* | osf4* | osf5*)
12720 lt_prog_compiler_wl='-Wl,'
12721 # All OSF/1 code is PIC.
12722 lt_prog_compiler_static='-non_shared'
12723 ;;
12724
12725 rdos*)
12726 lt_prog_compiler_static='-non_shared'
12727 ;;
12728
12729 solaris*)
12730 lt_prog_compiler_pic='-KPIC'
12731 lt_prog_compiler_static='-Bstatic'
12732 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000012733 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000012734 lt_prog_compiler_wl='-Qoption ld ';;
12735 *)
12736 lt_prog_compiler_wl='-Wl,';;
12737 esac
12738 ;;
12739
12740 sunos4*)
12741 lt_prog_compiler_wl='-Qoption ld '
12742 lt_prog_compiler_pic='-PIC'
12743 lt_prog_compiler_static='-Bstatic'
12744 ;;
12745
12746 sysv4 | sysv4.2uw2* | sysv4.3*)
12747 lt_prog_compiler_wl='-Wl,'
12748 lt_prog_compiler_pic='-KPIC'
12749 lt_prog_compiler_static='-Bstatic'
12750 ;;
12751
12752 sysv4*MP*)
12753 if test -d /usr/nec ;then
12754 lt_prog_compiler_pic='-Kconform_pic'
12755 lt_prog_compiler_static='-Bstatic'
12756 fi
12757 ;;
12758
12759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12760 lt_prog_compiler_wl='-Wl,'
12761 lt_prog_compiler_pic='-KPIC'
12762 lt_prog_compiler_static='-Bstatic'
12763 ;;
12764
12765 unicos*)
12766 lt_prog_compiler_wl='-Wl,'
12767 lt_prog_compiler_can_build_shared=no
12768 ;;
12769
12770 uts4*)
12771 lt_prog_compiler_pic='-pic'
12772 lt_prog_compiler_static='-Bstatic'
12773 ;;
12774
12775 *)
12776 lt_prog_compiler_can_build_shared=no
12777 ;;
12778 esac
12779 fi
12780
12781case $host_os in
12782 # For platforms which do not support PIC, -DPIC is meaningless:
12783 *djgpp*)
12784 lt_prog_compiler_pic=
12785 ;;
12786 *)
12787 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12788 ;;
12789esac
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12791$as_echo "$lt_prog_compiler_pic" >&6; }
12792
12793
12794
12795
12796
12797
12798#
12799# Check to make sure the PIC flag actually works.
12800#
12801if test -n "$lt_prog_compiler_pic"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12803$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12804if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12806else
12807 lt_cv_prog_compiler_pic_works=no
12808 ac_outfile=conftest.$ac_objext
12809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12811 # Insert the option either (1) after the last *FLAGS variable, or
12812 # (2) before a word containing "conftest.", or (3) at the end.
12813 # Note that $ac_compile itself does not contain backslashes and begins
12814 # with a dollar sign (not a hyphen), so the echo should work correctly.
12815 # The option is referenced via a variable to avoid confusing sed.
12816 lt_compile=`echo "$ac_compile" | $SED \
12817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12819 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012821 (eval "$lt_compile" 2>conftest.err)
12822 ac_status=$?
12823 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012825 if (exit $ac_status) && test -s "$ac_outfile"; then
12826 # The compiler can only warn and ignore the option if not recognized
12827 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12831 lt_cv_prog_compiler_pic_works=yes
12832 fi
12833 fi
12834 $RM conftest*
12835
12836fi
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12838$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12839
12840if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12841 case $lt_prog_compiler_pic in
12842 "" | " "*) ;;
12843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12844 esac
12845else
12846 lt_prog_compiler_pic=
12847 lt_prog_compiler_can_build_shared=no
12848fi
12849
12850fi
12851
12852
12853
12854
12855
12856
12857#
12858# Check to make sure the static flag actually works.
12859#
12860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12863if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865else
12866 lt_cv_prog_compiler_static_works=no
12867 save_LDFLAGS="$LDFLAGS"
12868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12871 # The linker can only warn and ignore the option if not recognized
12872 # So say no if there are warnings
12873 if test -s conftest.err; then
12874 # Append any errors to the config.log.
12875 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000012876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12878 if diff conftest.exp conftest.er2 >/dev/null; then
12879 lt_cv_prog_compiler_static_works=yes
12880 fi
12881 else
12882 lt_cv_prog_compiler_static_works=yes
12883 fi
12884 fi
12885 $RM -r conftest*
12886 LDFLAGS="$save_LDFLAGS"
12887
12888fi
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12890$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12891
12892if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12893 :
12894else
12895 lt_prog_compiler_static=
12896fi
12897
12898
12899
12900
12901
12902
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12906if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12908else
12909 lt_cv_prog_compiler_c_o=no
12910 $RM -r conftest 2>/dev/null
12911 mkdir conftest
12912 cd conftest
12913 mkdir out
12914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12915
12916 lt_compiler_flag="-o out/conftest2.$ac_objext"
12917 # Insert the option either (1) after the last *FLAGS variable, or
12918 # (2) before a word containing "conftest.", or (3) at the end.
12919 # Note that $ac_compile itself does not contain backslashes and begins
12920 # with a dollar sign (not a hyphen), so the echo should work correctly.
12921 lt_compile=`echo "$ac_compile" | $SED \
12922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12924 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012926 (eval "$lt_compile" 2>out/conftest.err)
12927 ac_status=$?
12928 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12931 then
12932 # The compiler can only warn and ignore the option if not recognized
12933 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000012934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12937 lt_cv_prog_compiler_c_o=yes
12938 fi
12939 fi
12940 chmod u+w . 2>&5
12941 $RM conftest*
12942 # SGI C++ compiler will create directory out/ii_files/ for
12943 # template instantiation
12944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12945 $RM out/* && rmdir out
12946 cd ..
12947 $RM -r conftest
12948 $RM conftest*
12949
12950fi
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12952$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12953
12954
12955
12956
12957
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12961if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963else
12964 lt_cv_prog_compiler_c_o=no
12965 $RM -r conftest 2>/dev/null
12966 mkdir conftest
12967 cd conftest
12968 mkdir out
12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12970
12971 lt_compiler_flag="-o out/conftest2.$ac_objext"
12972 # Insert the option either (1) after the last *FLAGS variable, or
12973 # (2) before a word containing "conftest.", or (3) at the end.
12974 # Note that $ac_compile itself does not contain backslashes and begins
12975 # with a dollar sign (not a hyphen), so the echo should work correctly.
12976 lt_compile=`echo "$ac_compile" | $SED \
12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012981 (eval "$lt_compile" 2>out/conftest.err)
12982 ac_status=$?
12983 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12986 then
12987 # The compiler can only warn and ignore the option if not recognized
12988 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000012989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12992 lt_cv_prog_compiler_c_o=yes
12993 fi
12994 fi
12995 chmod u+w . 2>&5
12996 $RM conftest*
12997 # SGI C++ compiler will create directory out/ii_files/ for
12998 # template instantiation
12999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13000 $RM out/* && rmdir out
13001 cd ..
13002 $RM -r conftest
13003 $RM conftest*
13004
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13008
13009
13010
13011
13012hard_links="nottested"
13013if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13014 # do not overwrite the value of need_locks provided by the user
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13016$as_echo_n "checking if we can lock with hard links... " >&6; }
13017 hard_links=yes
13018 $RM conftest*
13019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13020 touch conftest.a
13021 ln conftest.a conftest.b 2>&5 || hard_links=no
13022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13024$as_echo "$hard_links" >&6; }
13025 if test "$hard_links" = no; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13027$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13028 need_locks=warn
13029 fi
13030else
13031 need_locks=no
13032fi
13033
13034
13035
13036
13037
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13041
13042 runpath_var=
13043 allow_undefined_flag=
13044 always_export_symbols=no
13045 archive_cmds=
13046 archive_expsym_cmds=
13047 compiler_needs_object=no
13048 enable_shared_with_static_runtimes=no
13049 export_dynamic_flag_spec=
13050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051 hardcode_automatic=no
13052 hardcode_direct=no
13053 hardcode_direct_absolute=no
13054 hardcode_libdir_flag_spec=
13055 hardcode_libdir_flag_spec_ld=
13056 hardcode_libdir_separator=
13057 hardcode_minus_L=no
13058 hardcode_shlibpath_var=unsupported
13059 inherit_rpath=no
13060 link_all_deplibs=unknown
13061 module_cmds=
13062 module_expsym_cmds=
13063 old_archive_from_new_cmds=
13064 old_archive_from_expsyms_cmds=
13065 thread_safe_flag_spec=
13066 whole_archive_flag_spec=
13067 # include_expsyms should be a list of space-separated symbols to be *always*
13068 # included in the symbol list
13069 include_expsyms=
13070 # exclude_expsyms can be an extended regexp of symbols to exclude
13071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13073 # as well as any symbol that contains `d'.
13074 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13076 # platforms (ab)use it in PIC code, but their linkers get confused if
13077 # the symbol is explicitly referenced. Since portable code cannot
13078 # rely on this symbol name, it's probably fine to never include it in
13079 # preloaded symbol tables.
13080 # Exclude shared library initialization/finalization symbols.
13081 extract_expsyms_cmds=
13082
13083 case $host_os in
13084 cygwin* | mingw* | pw32* | cegcc*)
13085 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13086 # When not using gcc, we currently assume that we are using
13087 # Microsoft Visual C++.
13088 if test "$GCC" != yes; then
13089 with_gnu_ld=no
13090 fi
13091 ;;
13092 interix*)
13093 # we just hope/assume this is gcc and not c89 (= MSVC++)
13094 with_gnu_ld=yes
13095 ;;
13096 openbsd*)
13097 with_gnu_ld=no
13098 ;;
13099 esac
13100
13101 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013102
13103 # On some targets, GNU ld is compatible enough with the native linker
13104 # that we're better off using the native interface for both.
13105 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013106 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013107 case $host_os in
13108 aix*)
13109 # The AIX port of GNU ld has always aspired to compatibility
13110 # with the native linker. However, as the warning in the GNU ld
13111 # block says, versions before 2.19.5* couldn't really create working
13112 # shared libraries, regardless of the interface used.
13113 case `$LD -v 2>&1` in
13114 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13115 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13116 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13117 *)
13118 lt_use_gnu_ld_interface=yes
13119 ;;
13120 esac
13121 ;;
13122 *)
13123 lt_use_gnu_ld_interface=yes
13124 ;;
13125 esac
13126 fi
13127
13128 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013129 # If archive_cmds runs LD, not CC, wlarc should be empty
13130 wlarc='${wl}'
13131
13132 # Set some defaults for GNU ld with shared library support. These
13133 # are reset later if shared libraries are not supported. Putting them
13134 # here allows them to be overridden if necessary.
13135 runpath_var=LD_RUN_PATH
13136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13137 export_dynamic_flag_spec='${wl}--export-dynamic'
13138 # ancient GNU ld didn't support --whole-archive et. al.
13139 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13140 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13141 else
13142 whole_archive_flag_spec=
13143 fi
13144 supports_anon_versioning=no
13145 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013146 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13150 *\ 2.11.*) ;; # other 2.11 versions
13151 *) supports_anon_versioning=yes ;;
13152 esac
13153
13154 # See if GNU ld supports shared libraries.
13155 case $host_os in
13156 aix[3-9]*)
13157 # On AIX/PPC, the GNU linker is very broken
13158 if test "$host_cpu" != ia64; then
13159 ld_shlibs=no
13160 cat <<_LT_EOF 1>&2
13161
cristy0c60a692010-11-04 01:09:47 +000013162*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013163*** to be unable to reliably create shared libraries on AIX.
13164*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013165*** really care for shared libraries, you may want to install binutils
13166*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13167*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013168
13169_LT_EOF
13170 fi
13171 ;;
13172
13173 amigaos*)
13174 case $host_cpu in
13175 powerpc)
13176 # see comment about AmigaOS4 .so support
13177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178 archive_expsym_cmds=''
13179 ;;
13180 m68k)
13181 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13182 hardcode_libdir_flag_spec='-L$libdir'
13183 hardcode_minus_L=yes
13184 ;;
13185 esac
13186 ;;
13187
13188 beos*)
13189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13190 allow_undefined_flag=unsupported
13191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13192 # support --undefined. This deserves some investigation. FIXME
13193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 else
13195 ld_shlibs=no
13196 fi
13197 ;;
13198
13199 cygwin* | mingw* | pw32* | cegcc*)
13200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13201 # as there is no search path for DLLs.
13202 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013203 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013204 allow_undefined_flag=unsupported
13205 always_export_symbols=no
13206 enable_shared_with_static_runtimes=yes
13207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13208
13209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13211 # If the export-symbols file already is a .def file (1st line
13212 # is EXPORTS), use it as is; otherwise, prepend...
13213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13214 cp $export_symbols $output_objdir/$soname.def;
13215 else
13216 echo EXPORTS > $output_objdir/$soname.def;
13217 cat $export_symbols >> $output_objdir/$soname.def;
13218 fi~
13219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13220 else
13221 ld_shlibs=no
13222 fi
13223 ;;
13224
cristy0c60a692010-11-04 01:09:47 +000013225 haiku*)
13226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227 link_all_deplibs=yes
13228 ;;
13229
cristy73bd4a52010-10-05 11:24:23 +000013230 interix[3-9]*)
13231 hardcode_direct=no
13232 hardcode_shlibpath_var=no
13233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13234 export_dynamic_flag_spec='${wl}-E'
13235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13236 # Instead, shared libraries are loaded at an image base (0x10000000 by
13237 # default) and relocated if they conflict, which is a slow very memory
13238 # consuming and fragmenting process. To avoid this, we pick a random,
13239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13242 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13243 ;;
13244
cristy0c60a692010-11-04 01:09:47 +000013245 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013246 tmp_diet=no
13247 if test "$host_os" = linux-dietlibc; then
13248 case $cc_basename in
13249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13250 esac
13251 fi
13252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13253 && test "$tmp_diet" = no
13254 then
13255 tmp_addflag=
13256 tmp_sharedflag='-shared'
13257 case $cc_basename,$host_cpu in
13258 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013259 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013260 tmp_addflag=' $pic_flag'
13261 ;;
cristy0c60a692010-11-04 01:09:47 +000013262 pgf77* | pgf90* | pgf95* | pgfortran*)
13263 # Portland Group f77 and f90 compilers
13264 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013265 tmp_addflag=' $pic_flag -Mnomain' ;;
13266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13267 tmp_addflag=' -i_dynamic' ;;
13268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13269 tmp_addflag=' -i_dynamic -nofor_main' ;;
13270 ifc* | ifort*) # Intel Fortran compiler
13271 tmp_addflag=' -nofor_main' ;;
13272 lf95*) # Lahey Fortran 8.1
13273 whole_archive_flag_spec=
13274 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013275 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013276 tmp_sharedflag='-qmkshrobj'
13277 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013278 nvcc*) # Cuda Compiler Driver 2.2
13279 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13280 compiler_needs_object=yes
13281 ;;
cristy73bd4a52010-10-05 11:24:23 +000013282 esac
13283 case `$CC -V 2>&1 | sed 5q` in
13284 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013285 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000013286 compiler_needs_object=yes
13287 tmp_sharedflag='-G' ;;
13288 *Sun\ F*) # Sun Fortran 8.3
13289 tmp_sharedflag='-G' ;;
13290 esac
13291 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292
13293 if test "x$supports_anon_versioning" = xyes; then
13294 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13296 echo "local: *; };" >> $output_objdir/$libname.ver~
13297 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13298 fi
13299
13300 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013301 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013302 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13303 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13304 hardcode_libdir_flag_spec=
13305 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013306 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013307 if test "x$supports_anon_versioning" = xyes; then
13308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13310 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013311 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013312 fi
13313 ;;
13314 esac
13315 else
13316 ld_shlibs=no
13317 fi
13318 ;;
13319
13320 netbsd*)
13321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13322 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13323 wlarc=
13324 else
13325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13327 fi
13328 ;;
13329
13330 solaris*)
13331 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13332 ld_shlibs=no
13333 cat <<_LT_EOF 1>&2
13334
13335*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13336*** create shared libraries on Solaris systems. Therefore, libtool
13337*** is disabling shared libraries support. We urge you to upgrade GNU
13338*** binutils to release 2.9.1 or newer. Another option is to modify
13339*** your PATH or compiler configuration so that the native linker is
13340*** used, and then restart.
13341
13342_LT_EOF
13343 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13346 else
13347 ld_shlibs=no
13348 fi
13349 ;;
13350
13351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13352 case `$LD -v 2>&1` in
13353 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13354 ld_shlibs=no
13355 cat <<_LT_EOF 1>&2
13356
13357*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13358*** reliably create shared libraries on SCO systems. Therefore, libtool
13359*** is disabling shared libraries support. We urge you to upgrade GNU
13360*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13361*** your PATH or compiler configuration so that the native linker is
13362*** used, and then restart.
13363
13364_LT_EOF
13365 ;;
13366 *)
13367 # For security reasons, it is highly recommended that you always
13368 # use absolute paths for naming shared libraries, and exclude the
13369 # DT_RUNPATH tag from executables and libraries. But doing so
13370 # requires that you compile everything twice, which is a pain.
13371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13375 else
13376 ld_shlibs=no
13377 fi
13378 ;;
13379 esac
13380 ;;
13381
13382 sunos4*)
13383 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13384 wlarc=
13385 hardcode_direct=yes
13386 hardcode_shlibpath_var=no
13387 ;;
13388
13389 *)
13390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13393 else
13394 ld_shlibs=no
13395 fi
13396 ;;
13397 esac
13398
13399 if test "$ld_shlibs" = no; then
13400 runpath_var=
13401 hardcode_libdir_flag_spec=
13402 export_dynamic_flag_spec=
13403 whole_archive_flag_spec=
13404 fi
13405 else
13406 # PORTME fill in a description of your system's linker (not GNU ld)
13407 case $host_os in
13408 aix3*)
13409 allow_undefined_flag=unsupported
13410 always_export_symbols=yes
13411 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13412 # Note: this linker hardcodes the directories in LIBPATH if there
13413 # are no directories specified by -L.
13414 hardcode_minus_L=yes
13415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13416 # Neither direct hardcoding nor static linking is supported with a
13417 # broken collect2.
13418 hardcode_direct=unsupported
13419 fi
13420 ;;
13421
13422 aix[4-9]*)
13423 if test "$host_cpu" = ia64; then
13424 # On IA64, the linker does run time linking by default, so we don't
13425 # have to do anything special.
13426 aix_use_runtimelinking=no
13427 exp_sym_flag='-Bexport'
13428 no_entry_flag=""
13429 else
13430 # If we're using GNU nm, then we don't want the "-C" option.
13431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013432 # Also, AIX nm treats weak defined symbols like other global
13433 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013434 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013435 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000013436 else
13437 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13438 fi
13439 aix_use_runtimelinking=no
13440
13441 # Test if we are trying to use run time linking or normal
13442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443 # need to do runtime linking.
13444 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13445 for ld_flag in $LDFLAGS; do
13446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13447 aix_use_runtimelinking=yes
13448 break
13449 fi
13450 done
13451 ;;
13452 esac
13453
13454 exp_sym_flag='-bexport'
13455 no_entry_flag='-bnoentry'
13456 fi
13457
13458 # When large executables or shared objects are built, AIX ld can
13459 # have problems creating the table of contents. If linking a library
13460 # or program results in "error TOC overflow" add -mminimal-toc to
13461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13463
13464 archive_cmds=''
13465 hardcode_direct=yes
13466 hardcode_direct_absolute=yes
13467 hardcode_libdir_separator=':'
13468 link_all_deplibs=yes
13469 file_list_spec='${wl}-f,'
13470
13471 if test "$GCC" = yes; then
13472 case $host_os in aix4.[012]|aix4.[012].*)
13473 # We only want to do this on AIX 4.2 and lower, the check
13474 # below for broken collect2 doesn't work under 4.3+
13475 collect2name=`${CC} -print-prog-name=collect2`
13476 if test -f "$collect2name" &&
13477 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13478 then
13479 # We have reworked collect2
13480 :
13481 else
13482 # We have old collect2
13483 hardcode_direct=unsupported
13484 # It fails to find uninstalled libraries when the uninstalled
13485 # path is not listed in the libpath. Setting hardcode_minus_L
13486 # to unsupported forces relinking
13487 hardcode_minus_L=yes
13488 hardcode_libdir_flag_spec='-L$libdir'
13489 hardcode_libdir_separator=
13490 fi
13491 ;;
13492 esac
13493 shared_flag='-shared'
13494 if test "$aix_use_runtimelinking" = yes; then
13495 shared_flag="$shared_flag "'${wl}-G'
13496 fi
13497 else
13498 # not using gcc
13499 if test "$host_cpu" = ia64; then
13500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501 # chokes on -Wl,-G. The following line is correct:
13502 shared_flag='-G'
13503 else
13504 if test "$aix_use_runtimelinking" = yes; then
13505 shared_flag='${wl}-G'
13506 else
13507 shared_flag='${wl}-bM:SRE'
13508 fi
13509 fi
13510 fi
13511
13512 export_dynamic_flag_spec='${wl}-bexpall'
13513 # It seems that -bexpall does not export symbols beginning with
13514 # underscore (_), so it is better to generate a list of symbols to export.
13515 always_export_symbols=yes
13516 if test "$aix_use_runtimelinking" = yes; then
13517 # Warning - without using the other runtime loading flags (-brtl),
13518 # -berok will link without error, but may produce a broken library.
13519 allow_undefined_flag='-berok'
13520 # Determine the default libpath from the value encoded in an
13521 # empty executable.
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h. */
13524
13525int
13526main ()
13527{
13528
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533if ac_fn_c_try_link "$LINENO"; then :
13534
13535lt_aix_libpath_sed='
13536 /Import File Strings/,/^$/ {
13537 /^0/ {
13538 s/^0 *\(.*\)$/\1/
13539 p
13540 }
13541 }'
13542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13543# Check for a 64-bit object if we didn't find anything.
13544if test -z "$aix_libpath"; then
13545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13546fi
13547fi
13548rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13551
13552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000013553 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000013554 else
13555 if test "$host_cpu" = ia64; then
13556 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13557 allow_undefined_flag="-z nodefs"
13558 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13559 else
13560 # Determine the default libpath from the value encoded in an
13561 # empty executable.
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563/* end confdefs.h. */
13564
13565int
13566main ()
13567{
13568
13569 ;
13570 return 0;
13571}
13572_ACEOF
13573if ac_fn_c_try_link "$LINENO"; then :
13574
13575lt_aix_libpath_sed='
13576 /Import File Strings/,/^$/ {
13577 /^0/ {
13578 s/^0 *\(.*\)$/\1/
13579 p
13580 }
13581 }'
13582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13583# Check for a 64-bit object if we didn't find anything.
13584if test -z "$aix_libpath"; then
13585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13586fi
13587fi
13588rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13591
13592 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13593 # Warning - without using the other run time loading flags,
13594 # -berok will link without error, but may produce a broken library.
13595 no_undefined_flag=' ${wl}-bernotok'
13596 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000013597 if test "$with_gnu_ld" = yes; then
13598 # We only use this code for GNU lds that support --whole-archive.
13599 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13600 else
13601 # Exported symbols can be pulled into shared objects from archives
13602 whole_archive_flag_spec='$convenience'
13603 fi
cristy73bd4a52010-10-05 11:24:23 +000013604 archive_cmds_need_lc=yes
13605 # This is similar to how AIX traditionally builds its shared libraries.
13606 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13607 fi
13608 fi
13609 ;;
13610
13611 amigaos*)
13612 case $host_cpu in
13613 powerpc)
13614 # see comment about AmigaOS4 .so support
13615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616 archive_expsym_cmds=''
13617 ;;
13618 m68k)
13619 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13620 hardcode_libdir_flag_spec='-L$libdir'
13621 hardcode_minus_L=yes
13622 ;;
13623 esac
13624 ;;
13625
13626 bsdi[45]*)
13627 export_dynamic_flag_spec=-rdynamic
13628 ;;
13629
13630 cygwin* | mingw* | pw32* | cegcc*)
13631 # When not using gcc, we currently assume that we are using
13632 # Microsoft Visual C++.
13633 # hardcode_libdir_flag_spec is actually meaningless, as there is
13634 # no search path for DLLs.
13635 hardcode_libdir_flag_spec=' '
13636 allow_undefined_flag=unsupported
13637 # Tell ltmain to make .lib files, not .a files.
13638 libext=lib
13639 # Tell ltmain to make .dll files, not .so files.
13640 shrext_cmds=".dll"
13641 # FIXME: Setting linknames here is a bad hack.
cristy0c60a692010-11-04 01:09:47 +000013642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy73bd4a52010-10-05 11:24:23 +000013643 # The linker will automatically build a .lib file if we build a DLL.
13644 old_archive_from_new_cmds='true'
13645 # FIXME: Should let the user specify the lib program.
13646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13647 fix_srcfile_path='`cygpath -w "$srcfile"`'
13648 enable_shared_with_static_runtimes=yes
13649 ;;
13650
13651 darwin* | rhapsody*)
13652
13653
13654 archive_cmds_need_lc=no
13655 hardcode_direct=no
13656 hardcode_automatic=yes
13657 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000013658 if test "$lt_cv_ld_force_load" = "yes"; then
13659 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13660 else
13661 whole_archive_flag_spec=''
13662 fi
cristy73bd4a52010-10-05 11:24:23 +000013663 link_all_deplibs=yes
13664 allow_undefined_flag="$_lt_dar_allow_undefined"
13665 case $cc_basename in
13666 ifort*) _lt_dar_can_shared=yes ;;
13667 *) _lt_dar_can_shared=$GCC ;;
13668 esac
13669 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000013670 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000013671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13673 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13674 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13675
13676 else
13677 ld_shlibs=no
13678 fi
13679
13680 ;;
13681
13682 dgux*)
13683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 hardcode_shlibpath_var=no
13686 ;;
13687
13688 freebsd1*)
13689 ld_shlibs=no
13690 ;;
13691
13692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13693 # support. Future versions do this automatically, but an explicit c++rt0.o
13694 # does not break anything, and helps significantly (at the cost of a little
13695 # extra space).
13696 freebsd2.2*)
13697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13698 hardcode_libdir_flag_spec='-R$libdir'
13699 hardcode_direct=yes
13700 hardcode_shlibpath_var=no
13701 ;;
13702
13703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13704 freebsd2*)
13705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_direct=yes
13707 hardcode_minus_L=yes
13708 hardcode_shlibpath_var=no
13709 ;;
13710
13711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13712 freebsd* | dragonfly*)
13713 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13714 hardcode_libdir_flag_spec='-R$libdir'
13715 hardcode_direct=yes
13716 hardcode_shlibpath_var=no
13717 ;;
13718
13719 hpux9*)
13720 if test "$GCC" = yes; then
13721 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13722 else
13723 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13724 fi
13725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13726 hardcode_libdir_separator=:
13727 hardcode_direct=yes
13728
13729 # hardcode_minus_L: Not really in the search PATH,
13730 # but as the default location of the library.
13731 hardcode_minus_L=yes
13732 export_dynamic_flag_spec='${wl}-E'
13733 ;;
13734
13735 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000013736 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000013737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13738 else
13739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13740 fi
13741 if test "$with_gnu_ld" = no; then
13742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13743 hardcode_libdir_flag_spec_ld='+b $libdir'
13744 hardcode_libdir_separator=:
13745 hardcode_direct=yes
13746 hardcode_direct_absolute=yes
13747 export_dynamic_flag_spec='${wl}-E'
13748 # hardcode_minus_L: Not really in the search PATH,
13749 # but as the default location of the library.
13750 hardcode_minus_L=yes
13751 fi
13752 ;;
13753
13754 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000013755 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000013756 case $host_cpu in
13757 hppa*64*)
13758 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 ;;
13760 ia64*)
13761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 *)
13764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13765 ;;
13766 esac
13767 else
13768 case $host_cpu in
13769 hppa*64*)
13770 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 ;;
13772 ia64*)
13773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13774 ;;
13775 *)
cristy0c60a692010-11-04 01:09:47 +000013776
13777 # Older versions of the 11.00 compiler do not understand -b yet
13778 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13780$as_echo_n "checking if $CC understands -b... " >&6; }
13781if test "${lt_cv_prog_compiler__b+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13783else
13784 lt_cv_prog_compiler__b=no
13785 save_LDFLAGS="$LDFLAGS"
13786 LDFLAGS="$LDFLAGS -b"
13787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13789 # The linker can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 if test -s conftest.err; then
13792 # Append any errors to the config.log.
13793 cat conftest.err 1>&5
13794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13796 if diff conftest.exp conftest.er2 >/dev/null; then
13797 lt_cv_prog_compiler__b=yes
13798 fi
13799 else
13800 lt_cv_prog_compiler__b=yes
13801 fi
13802 fi
13803 $RM -r conftest*
13804 LDFLAGS="$save_LDFLAGS"
13805
13806fi
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13808$as_echo "$lt_cv_prog_compiler__b" >&6; }
13809
13810if test x"$lt_cv_prog_compiler__b" = xyes; then
13811 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13812else
13813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13814fi
13815
cristy73bd4a52010-10-05 11:24:23 +000013816 ;;
13817 esac
13818 fi
13819 if test "$with_gnu_ld" = no; then
13820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13821 hardcode_libdir_separator=:
13822
13823 case $host_cpu in
13824 hppa*64*|ia64*)
13825 hardcode_direct=no
13826 hardcode_shlibpath_var=no
13827 ;;
13828 *)
13829 hardcode_direct=yes
13830 hardcode_direct_absolute=yes
13831 export_dynamic_flag_spec='${wl}-E'
13832
13833 # hardcode_minus_L: Not really in the search PATH,
13834 # but as the default location of the library.
13835 hardcode_minus_L=yes
13836 ;;
13837 esac
13838 fi
13839 ;;
13840
13841 irix5* | irix6* | nonstopux*)
13842 if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013844 # Try to use the -exported_symbol ld option, if it does not
13845 # work, assume that -exports_file does not work either and
13846 # implicitly export all symbols.
13847 save_LDFLAGS="$LDFLAGS"
13848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h. */
13851int foo(void) {}
13852_ACEOF
13853if ac_fn_c_try_link "$LINENO"; then :
cristy0c60a692010-11-04 01:09:47 +000013854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013855
13856fi
13857rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LDFLAGS="$save_LDFLAGS"
13860 else
cristy0c60a692010-11-04 01:09:47 +000013861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013863 fi
13864 archive_cmds_need_lc='no'
13865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13866 hardcode_libdir_separator=:
13867 inherit_rpath=yes
13868 link_all_deplibs=yes
13869 ;;
13870
13871 netbsd*)
13872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13874 else
13875 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13876 fi
13877 hardcode_libdir_flag_spec='-R$libdir'
13878 hardcode_direct=yes
13879 hardcode_shlibpath_var=no
13880 ;;
13881
13882 newsos6)
13883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 hardcode_direct=yes
13885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13886 hardcode_libdir_separator=:
13887 hardcode_shlibpath_var=no
13888 ;;
13889
13890 *nto* | *qnx*)
13891 ;;
13892
13893 openbsd*)
13894 if test -f /usr/libexec/ld.so; then
13895 hardcode_direct=yes
13896 hardcode_shlibpath_var=no
13897 hardcode_direct_absolute=yes
13898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13902 export_dynamic_flag_spec='${wl}-E'
13903 else
13904 case $host_os in
13905 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_libdir_flag_spec='-R$libdir'
13908 ;;
13909 *)
13910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13912 ;;
13913 esac
13914 fi
13915 else
13916 ld_shlibs=no
13917 fi
13918 ;;
13919
13920 os2*)
13921 hardcode_libdir_flag_spec='-L$libdir'
13922 hardcode_minus_L=yes
13923 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000013924 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000013925 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13926 ;;
13927
13928 osf3*)
13929 if test "$GCC" = yes; then
13930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000013931 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013932 else
13933 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000013934 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013935 fi
13936 archive_cmds_need_lc='no'
13937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938 hardcode_libdir_separator=:
13939 ;;
13940
13941 osf4* | osf5*) # as osf3* with the addition of -msym flag
13942 if test "$GCC" = yes; then
13943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000013944 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13946 else
13947 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000013948 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013949 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000013950 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000013951
13952 # Both c and cxx compiler support -rpath directly
13953 hardcode_libdir_flag_spec='-rpath $libdir'
13954 fi
13955 archive_cmds_need_lc='no'
13956 hardcode_libdir_separator=:
13957 ;;
13958
13959 solaris*)
13960 no_undefined_flag=' -z defs'
13961 if test "$GCC" = yes; then
13962 wlarc='${wl}'
13963 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13965 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13966 else
13967 case `$CC -V 2>&1` in
13968 *"Compilers 5.0"*)
13969 wlarc=''
13970 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13973 ;;
13974 *)
13975 wlarc='${wl}'
13976 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13978 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13979 ;;
13980 esac
13981 fi
13982 hardcode_libdir_flag_spec='-R$libdir'
13983 hardcode_shlibpath_var=no
13984 case $host_os in
13985 solaris2.[0-5] | solaris2.[0-5].*) ;;
13986 *)
13987 # The compiler driver will combine and reorder linker options,
13988 # but understands `-z linker_flag'. GCC discards it without `$wl',
13989 # but is careful enough not to reorder.
13990 # Supported since Solaris 2.6 (maybe 2.5.1?)
13991 if test "$GCC" = yes; then
13992 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13993 else
13994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13995 fi
13996 ;;
13997 esac
13998 link_all_deplibs=yes
13999 ;;
14000
14001 sunos4*)
14002 if test "x$host_vendor" = xsequent; then
14003 # Use $CC to link under sequent, because it throws in some extra .o
14004 # files that make .init and .fini sections work.
14005 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14006 else
14007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14008 fi
14009 hardcode_libdir_flag_spec='-L$libdir'
14010 hardcode_direct=yes
14011 hardcode_minus_L=yes
14012 hardcode_shlibpath_var=no
14013 ;;
14014
14015 sysv4)
14016 case $host_vendor in
14017 sni)
14018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_direct=yes # is this really true???
14020 ;;
14021 siemens)
14022 ## LD is ld it makes a PLAMLIB
14023 ## CC just makes a GrossModule.
14024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14025 reload_cmds='$CC -r -o $output$reload_objs'
14026 hardcode_direct=no
14027 ;;
14028 motorola)
14029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14031 ;;
14032 esac
14033 runpath_var='LD_RUN_PATH'
14034 hardcode_shlibpath_var=no
14035 ;;
14036
14037 sysv4.3*)
14038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_shlibpath_var=no
14040 export_dynamic_flag_spec='-Bexport'
14041 ;;
14042
14043 sysv4*MP*)
14044 if test -d /usr/nec; then
14045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14046 hardcode_shlibpath_var=no
14047 runpath_var=LD_RUN_PATH
14048 hardcode_runpath_var=yes
14049 ld_shlibs=yes
14050 fi
14051 ;;
14052
14053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14054 no_undefined_flag='${wl}-z,text'
14055 archive_cmds_need_lc=no
14056 hardcode_shlibpath_var=no
14057 runpath_var='LD_RUN_PATH'
14058
14059 if test "$GCC" = yes; then
14060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 else
14063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14065 fi
14066 ;;
14067
14068 sysv5* | sco3.2v5* | sco5v6*)
14069 # Note: We can NOT use -z defs as we might desire, because we do not
14070 # link with -lc, and that would cause any symbols used from libc to
14071 # always be unresolved, which means just about no library would
14072 # ever link correctly. If we're not using GNU ld we use -z text
14073 # though, which does catch some bad symbols but isn't as heavy-handed
14074 # as -z defs.
14075 no_undefined_flag='${wl}-z,text'
14076 allow_undefined_flag='${wl}-z,nodefs'
14077 archive_cmds_need_lc=no
14078 hardcode_shlibpath_var=no
14079 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14080 hardcode_libdir_separator=':'
14081 link_all_deplibs=yes
14082 export_dynamic_flag_spec='${wl}-Bexport'
14083 runpath_var='LD_RUN_PATH'
14084
14085 if test "$GCC" = yes; then
14086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 else
14089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14091 fi
14092 ;;
14093
14094 uts4*)
14095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_libdir_flag_spec='-L$libdir'
14097 hardcode_shlibpath_var=no
14098 ;;
14099
14100 *)
14101 ld_shlibs=no
14102 ;;
14103 esac
14104
14105 if test x$host_vendor = xsni; then
14106 case $host in
14107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14108 export_dynamic_flag_spec='${wl}-Blargedynsym'
14109 ;;
14110 esac
14111 fi
14112 fi
14113
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14115$as_echo "$ld_shlibs" >&6; }
14116test "$ld_shlibs" = no && can_build_shared=no
14117
14118with_gnu_ld=$with_gnu_ld
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134#
14135# Do we need to explicitly link libc?
14136#
14137case "x$archive_cmds_need_lc" in
14138x|xyes)
14139 # Assume -lc should be added
14140 archive_cmds_need_lc=yes
14141
14142 if test "$enable_shared" = yes && test "$GCC" = yes; then
14143 case $archive_cmds in
14144 *'~'*)
14145 # FIXME: we may have to deal with multi-command sequences.
14146 ;;
14147 '$CC '*)
14148 # Test whether the compiler implicitly links with -lc since on some
14149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14150 # to ld, don't add -lc before -lgcc.
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy0c60a692010-11-04 01:09:47 +000014153if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155else
14156 $RM conftest*
14157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014158
cristy0c60a692010-11-04 01:09:47 +000014159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014160 (eval $ac_compile) 2>&5
14161 ac_status=$?
14162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014164 soname=conftest
14165 lib=conftest
14166 libobjs=conftest.$ac_objext
14167 deplibs=
14168 wl=$lt_prog_compiler_wl
14169 pic_flag=$lt_prog_compiler_pic
14170 compiler_flags=-v
14171 linker_flags=-v
14172 verstring=
14173 output_objdir=.
14174 libname=conftest
14175 lt_save_allow_undefined_flag=$allow_undefined_flag
14176 allow_undefined_flag=
14177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014178 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14179 ac_status=$?
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014182 then
14183 lt_cv_archive_cmds_need_lc=no
14184 else
14185 lt_cv_archive_cmds_need_lc=yes
14186 fi
14187 allow_undefined_flag=$lt_save_allow_undefined_flag
14188 else
14189 cat conftest.err 1>&5
14190 fi
14191 $RM conftest*
14192
14193fi
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14195$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014197 ;;
14198 esac
14199 fi
14200 ;;
14201esac
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14360$as_echo_n "checking dynamic linker characteristics... " >&6; }
14361
14362if test "$GCC" = yes; then
14363 case $host_os in
14364 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14365 *) lt_awk_arg="/^libraries:/" ;;
14366 esac
cristy0c60a692010-11-04 01:09:47 +000014367 case $host_os in
14368 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14369 *) lt_sed_strip_eq="s,=/,/,g" ;;
14370 esac
14371 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14372 case $lt_search_path_spec in
14373 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014374 # if the path contains ";" then we assume it to be the separator
14375 # otherwise default to the standard path separator (i.e. ":") - it is
14376 # assumed that no part of a normal pathname contains ";" but that should
14377 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14379 ;;
14380 *)
14381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14382 ;;
14383 esac
cristy73bd4a52010-10-05 11:24:23 +000014384 # Ok, now we have the path, separated by spaces, we can step through it
14385 # and add multilib dir if necessary.
14386 lt_tmp_lt_search_path_spec=
14387 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14388 for lt_sys_path in $lt_search_path_spec; do
14389 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14391 else
14392 test -d "$lt_sys_path" && \
14393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14394 fi
14395 done
cristy0c60a692010-11-04 01:09:47 +000014396 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000014397BEGIN {RS=" "; FS="/|\n";} {
14398 lt_foo="";
14399 lt_count=0;
14400 for (lt_i = NF; lt_i > 0; lt_i--) {
14401 if ($lt_i != "" && $lt_i != ".") {
14402 if ($lt_i == "..") {
14403 lt_count++;
14404 } else {
14405 if (lt_count == 0) {
14406 lt_foo="/" $lt_i lt_foo;
14407 } else {
14408 lt_count--;
14409 }
14410 }
14411 }
14412 }
14413 if (lt_foo != "") { lt_freq[lt_foo]++; }
14414 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14415}'`
cristy0c60a692010-11-04 01:09:47 +000014416 # AWK program above erroneously prepends '/' to C:/dos/paths
14417 # for these hosts.
14418 case $host_os in
14419 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14420 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14421 esac
14422 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000014423else
14424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14425fi
14426library_names_spec=
14427libname_spec='lib$name'
14428soname_spec=
14429shrext_cmds=".so"
14430postinstall_cmds=
14431postuninstall_cmds=
14432finish_cmds=
14433finish_eval=
14434shlibpath_var=
14435shlibpath_overrides_runpath=unknown
14436version_type=none
14437dynamic_linker="$host_os ld.so"
14438sys_lib_dlsearch_path_spec="/lib /usr/lib"
14439need_lib_prefix=unknown
14440hardcode_into_libs=no
14441
14442# when you set need_version to no, make sure it does not cause -set_version
14443# flags to be left without arguments
14444need_version=unknown
14445
14446case $host_os in
14447aix3*)
14448 version_type=linux
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14450 shlibpath_var=LIBPATH
14451
14452 # AIX 3 has no versioning support, so we append a major version to the name.
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 ;;
14455
14456aix[4-9]*)
14457 version_type=linux
14458 need_lib_prefix=no
14459 need_version=no
14460 hardcode_into_libs=yes
14461 if test "$host_cpu" = ia64; then
14462 # AIX 5 supports IA64
14463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 else
14466 # With GCC up to 2.95.x, collect2 would create an import file
14467 # for dependence libraries. The import file would start with
14468 # the line `#! .'. This would cause the generated library to
14469 # depend on `.', always an invalid library. This was fixed in
14470 # development snapshots of GCC prior to 3.0.
14471 case $host_os in
14472 aix4 | aix4.[01] | aix4.[01].*)
14473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14474 echo ' yes '
14475 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14476 :
14477 else
14478 can_build_shared=no
14479 fi
14480 ;;
14481 esac
14482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14483 # soname into executable. Probably we can add versioning support to
14484 # collect2, so additional links can be useful in future.
14485 if test "$aix_use_runtimelinking" = yes; then
14486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14487 # instead of lib<name>.a to let people know that these are not
14488 # typical AIX shared libraries.
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490 else
14491 # We preserve .a as extension for shared libraries through AIX4.2
14492 # and later when we are not doing run time linking.
14493 library_names_spec='${libname}${release}.a $libname.a'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14495 fi
14496 shlibpath_var=LIBPATH
14497 fi
14498 ;;
14499
14500amigaos*)
14501 case $host_cpu in
14502 powerpc)
14503 # Since July 2007 AmigaOS4 officially supports .so libraries.
14504 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 ;;
14507 m68k)
14508 library_names_spec='$libname.ixlibrary $libname.a'
14509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000014510 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000014511 ;;
14512 esac
14513 ;;
14514
14515beos*)
14516 library_names_spec='${libname}${shared_ext}'
14517 dynamic_linker="$host_os ld.so"
14518 shlibpath_var=LIBRARY_PATH
14519 ;;
14520
14521bsdi[45]*)
14522 version_type=linux
14523 need_version=no
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14530 # the default ld.so.conf also contains /usr/contrib/lib and
14531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14532 # libtool to hard-code these into programs
14533 ;;
14534
14535cygwin* | mingw* | pw32* | cegcc*)
14536 version_type=windows
14537 shrext_cmds=".dll"
14538 need_version=no
14539 need_lib_prefix=no
14540
14541 case $GCC,$host_os in
14542 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14543 library_names_spec='$libname.dll.a'
14544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14545 postinstall_cmds='base_file=`basename \${file}`~
14546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14547 dldir=$destdir/`dirname \$dlpath`~
14548 test -d \$dldir || mkdir -p \$dldir~
14549 $install_prog $dir/$dlname \$dldir/$dlname~
14550 chmod a+x \$dldir/$dlname~
14551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14553 fi'
14554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14555 dlpath=$dir/\$dldll~
14556 $RM \$dlpath'
14557 shlibpath_overrides_runpath=yes
14558
14559 case $host_os in
14560 cygwin*)
14561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14562 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000014563
14564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000014565 ;;
14566 mingw* | cegcc*)
14567 # MinGW DLLs use traditional 'lib' prefix
14568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000014569 ;;
14570 pw32*)
14571 # pw32 DLLs use 'pw' prefix rather than 'lib'
14572 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573 ;;
14574 esac
14575 ;;
14576
14577 *)
14578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14579 ;;
14580 esac
14581 dynamic_linker='Win32 ld.exe'
14582 # FIXME: first we should search . and the directory the executable is in
14583 shlibpath_var=PATH
14584 ;;
14585
14586darwin* | rhapsody*)
14587 dynamic_linker="$host_os dyld"
14588 version_type=darwin
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14592 soname_spec='${libname}${release}${major}$shared_ext'
14593 shlibpath_overrides_runpath=yes
14594 shlibpath_var=DYLD_LIBRARY_PATH
14595 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14596
14597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14599 ;;
14600
14601dgux*)
14602 version_type=linux
14603 need_lib_prefix=no
14604 need_version=no
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 ;;
14609
14610freebsd1*)
14611 dynamic_linker=no
14612 ;;
14613
14614freebsd* | dragonfly*)
14615 # DragonFly does not have aout. When/if they implement a new
14616 # versioning mechanism, adjust this.
14617 if test -x /usr/bin/objformat; then
14618 objformat=`/usr/bin/objformat`
14619 else
14620 case $host_os in
14621 freebsd[123]*) objformat=aout ;;
14622 *) objformat=elf ;;
14623 esac
14624 fi
14625 version_type=freebsd-$objformat
14626 case $version_type in
14627 freebsd-elf*)
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629 need_version=no
14630 need_lib_prefix=no
14631 ;;
14632 freebsd-*)
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14634 need_version=yes
14635 ;;
14636 esac
14637 shlibpath_var=LD_LIBRARY_PATH
14638 case $host_os in
14639 freebsd2*)
14640 shlibpath_overrides_runpath=yes
14641 ;;
14642 freebsd3.[01]* | freebsdelf3.[01]*)
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14645 ;;
14646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14648 shlibpath_overrides_runpath=no
14649 hardcode_into_libs=yes
14650 ;;
14651 *) # from 4.6 on, and DragonFly
14652 shlibpath_overrides_runpath=yes
14653 hardcode_into_libs=yes
14654 ;;
14655 esac
14656 ;;
14657
14658gnu*)
14659 version_type=linux
14660 need_lib_prefix=no
14661 need_version=no
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 hardcode_into_libs=yes
14666 ;;
14667
cristy0c60a692010-11-04 01:09:47 +000014668haiku*)
14669 version_type=linux
14670 need_lib_prefix=no
14671 need_version=no
14672 dynamic_linker="$host_os runtime_loader"
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LIBRARY_PATH
14676 shlibpath_overrides_runpath=yes
14677 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14678 hardcode_into_libs=yes
14679 ;;
14680
cristy73bd4a52010-10-05 11:24:23 +000014681hpux9* | hpux10* | hpux11*)
14682 # Give a soname corresponding to the major version so that dld.sl refuses to
14683 # link against other versions.
14684 version_type=sunos
14685 need_lib_prefix=no
14686 need_version=no
14687 case $host_cpu in
14688 ia64*)
14689 shrext_cmds='.so'
14690 hardcode_into_libs=yes
14691 dynamic_linker="$host_os dld.so"
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 if test "X$HPUX_IA64_MODE" = X32; then
14697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14698 else
14699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14700 fi
14701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14702 ;;
14703 hppa*64*)
14704 shrext_cmds='.sl'
14705 hardcode_into_libs=yes
14706 dynamic_linker="$host_os dld.sl"
14707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14713 ;;
14714 *)
14715 shrext_cmds='.sl'
14716 dynamic_linker="$host_os dld.sl"
14717 shlibpath_var=SHLIB_PATH
14718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 ;;
14722 esac
cristy0c60a692010-11-04 01:09:47 +000014723 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000014724 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000014725 # or fails outright, so override atomically:
14726 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000014727 ;;
14728
14729interix[3-9]*)
14730 version_type=linux
14731 need_lib_prefix=no
14732 need_version=no
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=no
14738 hardcode_into_libs=yes
14739 ;;
14740
14741irix5* | irix6* | nonstopux*)
14742 case $host_os in
14743 nonstopux*) version_type=nonstopux ;;
14744 *)
14745 if test "$lt_cv_prog_gnu_ld" = yes; then
14746 version_type=linux
14747 else
14748 version_type=irix
14749 fi ;;
14750 esac
14751 need_lib_prefix=no
14752 need_version=no
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14755 case $host_os in
14756 irix5* | nonstopux*)
14757 libsuff= shlibsuff=
14758 ;;
14759 *)
14760 case $LD in # libtool.m4 will add one of these switches to LD
14761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14762 libsuff= shlibsuff= libmagic=32-bit;;
14763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14764 libsuff=32 shlibsuff=N32 libmagic=N32;;
14765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14767 *) libsuff= shlibsuff= libmagic=never-match;;
14768 esac
14769 ;;
14770 esac
14771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14772 shlibpath_overrides_runpath=no
14773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14775 hardcode_into_libs=yes
14776 ;;
14777
14778# No shared lib support for Linux oldld, aout, or coff.
14779linux*oldld* | linux*aout* | linux*coff*)
14780 dynamic_linker=no
14781 ;;
14782
14783# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000014784linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014785 version_type=linux
14786 need_lib_prefix=no
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000014793
cristy73bd4a52010-10-05 11:24:23 +000014794 # Some binutils ld are patched to set DT_RUNPATH
cristy0c60a692010-11-04 01:09:47 +000014795 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14797else
14798 lt_cv_shlibpath_overrides_runpath=no
14799 save_LDFLAGS=$LDFLAGS
14800 save_libdir=$libdir
14801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014804/* end confdefs.h. */
14805
14806int
14807main ()
14808{
14809
14810 ;
14811 return 0;
14812}
14813_ACEOF
14814if ac_fn_c_try_link "$LINENO"; then :
14815 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000014816 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000014817fi
14818fi
14819rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000014821 LDFLAGS=$save_LDFLAGS
14822 libdir=$save_libdir
14823
14824fi
14825
14826 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000014827
14828 # This implies no fast_install, which is unacceptable.
14829 # Some rework will be needed to allow for fast_install
14830 # before this can be enabled.
14831 hardcode_into_libs=yes
14832
14833 # Add ABI-specific directories to the system library path.
14834 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14835
14836 # Append ld.so.conf contents to the search path
14837 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000014838 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000014839 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000014840
cristy73bd4a52010-10-05 11:24:23 +000014841 fi
14842
14843 # We used to test for /lib/ld.so.1 and disable shared libraries on
14844 # powerpc, because MkLinux only supported shared libraries with the
14845 # GNU dynamic linker. Since this was broken with cross compilers,
14846 # most powerpc-linux boxes support dynamic linking these days and
14847 # people can always --disable-shared, the test was removed, and we
14848 # assume the GNU/Linux dynamic linker is in use.
14849 dynamic_linker='GNU/Linux ld.so'
14850 ;;
14851
14852netbsd*)
14853 version_type=sunos
14854 need_lib_prefix=no
14855 need_version=no
14856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859 dynamic_linker='NetBSD (a.out) ld.so'
14860 else
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 dynamic_linker='NetBSD ld.elf_so'
14864 fi
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14868 ;;
14869
14870newsos6)
14871 version_type=linux
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 ;;
14876
14877*nto* | *qnx*)
14878 version_type=qnx
14879 need_lib_prefix=no
14880 need_version=no
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 shlibpath_overrides_runpath=no
14885 hardcode_into_libs=yes
14886 dynamic_linker='ldqnx.so'
14887 ;;
14888
14889openbsd*)
14890 version_type=sunos
14891 sys_lib_dlsearch_path_spec="/usr/lib"
14892 need_lib_prefix=no
14893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14894 case $host_os in
14895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14896 *) need_version=no ;;
14897 esac
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14902 case $host_os in
14903 openbsd2.[89] | openbsd2.[89].*)
14904 shlibpath_overrides_runpath=no
14905 ;;
14906 *)
14907 shlibpath_overrides_runpath=yes
14908 ;;
14909 esac
14910 else
14911 shlibpath_overrides_runpath=yes
14912 fi
14913 ;;
14914
14915os2*)
14916 libname_spec='$name'
14917 shrext_cmds=".dll"
14918 need_lib_prefix=no
14919 library_names_spec='$libname${shared_ext} $libname.a'
14920 dynamic_linker='OS/2 ld.exe'
14921 shlibpath_var=LIBPATH
14922 ;;
14923
14924osf3* | osf4* | osf5*)
14925 version_type=osf
14926 need_lib_prefix=no
14927 need_version=no
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14933 ;;
14934
14935rdos*)
14936 dynamic_linker=no
14937 ;;
14938
14939solaris*)
14940 version_type=linux
14941 need_lib_prefix=no
14942 need_version=no
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes
14947 hardcode_into_libs=yes
14948 # ldd complains unless libraries are executable
14949 postinstall_cmds='chmod +x $lib'
14950 ;;
14951
14952sunos4*)
14953 version_type=sunos
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 shlibpath_overrides_runpath=yes
14958 if test "$with_gnu_ld" = yes; then
14959 need_lib_prefix=no
14960 fi
14961 need_version=yes
14962 ;;
14963
14964sysv4 | sysv4.3*)
14965 version_type=linux
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 case $host_vendor in
14970 sni)
14971 shlibpath_overrides_runpath=no
14972 need_lib_prefix=no
14973 runpath_var=LD_RUN_PATH
14974 ;;
14975 siemens)
14976 need_lib_prefix=no
14977 ;;
14978 motorola)
14979 need_lib_prefix=no
14980 need_version=no
14981 shlibpath_overrides_runpath=no
14982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14983 ;;
14984 esac
14985 ;;
14986
14987sysv4*MP*)
14988 if test -d /usr/nec ;then
14989 version_type=linux
14990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14991 soname_spec='$libname${shared_ext}.$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 fi
14994 ;;
14995
14996sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14997 version_type=freebsd-elf
14998 need_lib_prefix=no
14999 need_version=no
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 shlibpath_overrides_runpath=yes
15004 hardcode_into_libs=yes
15005 if test "$with_gnu_ld" = yes; then
15006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15007 else
15008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15009 case $host_os in
15010 sco3.2v5*)
15011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15012 ;;
15013 esac
15014 fi
15015 sys_lib_dlsearch_path_spec='/usr/lib'
15016 ;;
15017
15018tpf*)
15019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15020 version_type=linux
15021 need_lib_prefix=no
15022 need_version=no
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=no
15026 hardcode_into_libs=yes
15027 ;;
15028
15029uts4*)
15030 version_type=linux
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 shlibpath_var=LD_LIBRARY_PATH
15034 ;;
15035
15036*)
15037 dynamic_linker=no
15038 ;;
15039esac
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15041$as_echo "$dynamic_linker" >&6; }
15042test "$dynamic_linker" = no && can_build_shared=no
15043
15044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15045if test "$GCC" = yes; then
15046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15047fi
15048
15049if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15051fi
15052if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15054fi
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
cristy0c60a692010-11-04 01:09:47 +000015142
15143
15144
15145
15146
cristy73bd4a52010-10-05 11:24:23 +000015147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15148$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15149hardcode_action=
15150if test -n "$hardcode_libdir_flag_spec" ||
15151 test -n "$runpath_var" ||
15152 test "X$hardcode_automatic" = "Xyes" ; then
15153
15154 # We can hardcode non-existent directories.
15155 if test "$hardcode_direct" != no &&
15156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15157 # have to relink, otherwise we might link with an installed library
15158 # when we should be linking with a yet-to-be-installed one
15159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15160 test "$hardcode_minus_L" != no; then
15161 # Linking always hardcodes the temporary library directory.
15162 hardcode_action=relink
15163 else
15164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15165 hardcode_action=immediate
15166 fi
15167else
15168 # We cannot hardcode anything, or else we can only hardcode existing
15169 # directories.
15170 hardcode_action=unsupported
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15173$as_echo "$hardcode_action" >&6; }
15174
15175if test "$hardcode_action" = relink ||
15176 test "$inherit_rpath" = yes; then
15177 # Fast installation is not supported
15178 enable_fast_install=no
15179elif test "$shlibpath_overrides_runpath" = yes ||
15180 test "$enable_shared" = no; then
15181 # Fast installation is not necessary
15182 enable_fast_install=needless
15183fi
15184
15185
15186
15187
15188
15189
15190 if test "x$enable_dlopen" != xyes; then
15191 enable_dlopen=unknown
15192 enable_dlopen_self=unknown
15193 enable_dlopen_self_static=unknown
15194else
15195 lt_cv_dlopen=no
15196 lt_cv_dlopen_libs=
15197
15198 case $host_os in
15199 beos*)
15200 lt_cv_dlopen="load_add_on"
15201 lt_cv_dlopen_libs=
15202 lt_cv_dlopen_self=yes
15203 ;;
15204
15205 mingw* | pw32* | cegcc*)
15206 lt_cv_dlopen="LoadLibrary"
15207 lt_cv_dlopen_libs=
15208 ;;
15209
15210 cygwin*)
15211 lt_cv_dlopen="dlopen"
15212 lt_cv_dlopen_libs=
15213 ;;
15214
15215 darwin*)
15216 # if libdl is installed we need to link against it
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15218$as_echo_n "checking for dlopen in -ldl... " >&6; }
15219if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15221else
15222 ac_check_lib_save_LIBS=$LIBS
15223LIBS="-ldl $LIBS"
15224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225/* end confdefs.h. */
15226
15227/* Override any GCC internal prototype to avoid an error.
15228 Use char because int might match the return type of a GCC
15229 builtin and then its argument prototype would still apply. */
15230#ifdef __cplusplus
15231extern "C"
15232#endif
15233char dlopen ();
15234int
15235main ()
15236{
15237return dlopen ();
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242if ac_fn_c_try_link "$LINENO"; then :
15243 ac_cv_lib_dl_dlopen=yes
15244else
15245 ac_cv_lib_dl_dlopen=no
15246fi
15247rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249LIBS=$ac_check_lib_save_LIBS
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15252$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15253if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15255else
15256
15257 lt_cv_dlopen="dyld"
15258 lt_cv_dlopen_libs=
15259 lt_cv_dlopen_self=yes
15260
15261fi
15262
15263 ;;
15264
15265 *)
15266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15267if test "x$ac_cv_func_shl_load" = x""yes; then :
15268 lt_cv_dlopen="shl_load"
15269else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15271$as_echo_n "checking for shl_load in -ldld... " >&6; }
15272if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15274else
15275 ac_check_lib_save_LIBS=$LIBS
15276LIBS="-ldld $LIBS"
15277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278/* end confdefs.h. */
15279
15280/* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283#ifdef __cplusplus
15284extern "C"
15285#endif
15286char shl_load ();
15287int
15288main ()
15289{
15290return shl_load ();
15291 ;
15292 return 0;
15293}
15294_ACEOF
15295if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_dld_shl_load=yes
15297else
15298 ac_cv_lib_dld_shl_load=no
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302LIBS=$ac_check_lib_save_LIBS
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15305$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15306if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15308else
15309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15310if test "x$ac_cv_func_dlopen" = x""yes; then :
15311 lt_cv_dlopen="dlopen"
15312else
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15314$as_echo_n "checking for dlopen in -ldl... " >&6; }
15315if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15317else
15318 ac_check_lib_save_LIBS=$LIBS
15319LIBS="-ldl $LIBS"
15320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321/* end confdefs.h. */
15322
15323/* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15326#ifdef __cplusplus
15327extern "C"
15328#endif
15329char dlopen ();
15330int
15331main ()
15332{
15333return dlopen ();
15334 ;
15335 return 0;
15336}
15337_ACEOF
15338if ac_fn_c_try_link "$LINENO"; then :
15339 ac_cv_lib_dl_dlopen=yes
15340else
15341 ac_cv_lib_dl_dlopen=no
15342fi
15343rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345LIBS=$ac_check_lib_save_LIBS
15346fi
15347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15348$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15349if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15351else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15353$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15354if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15356else
15357 ac_check_lib_save_LIBS=$LIBS
15358LIBS="-lsvld $LIBS"
15359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h. */
15361
15362/* Override any GCC internal prototype to avoid an error.
15363 Use char because int might match the return type of a GCC
15364 builtin and then its argument prototype would still apply. */
15365#ifdef __cplusplus
15366extern "C"
15367#endif
15368char dlopen ();
15369int
15370main ()
15371{
15372return dlopen ();
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377if ac_fn_c_try_link "$LINENO"; then :
15378 ac_cv_lib_svld_dlopen=yes
15379else
15380 ac_cv_lib_svld_dlopen=no
15381fi
15382rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384LIBS=$ac_check_lib_save_LIBS
15385fi
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15387$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15388if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15390else
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15392$as_echo_n "checking for dld_link in -ldld... " >&6; }
15393if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15395else
15396 ac_check_lib_save_LIBS=$LIBS
15397LIBS="-ldld $LIBS"
15398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h. */
15400
15401/* Override any GCC internal prototype to avoid an error.
15402 Use char because int might match the return type of a GCC
15403 builtin and then its argument prototype would still apply. */
15404#ifdef __cplusplus
15405extern "C"
15406#endif
15407char dld_link ();
15408int
15409main ()
15410{
15411return dld_link ();
15412 ;
15413 return 0;
15414}
15415_ACEOF
15416if ac_fn_c_try_link "$LINENO"; then :
15417 ac_cv_lib_dld_dld_link=yes
15418else
15419 ac_cv_lib_dld_dld_link=no
15420fi
15421rm -f core conftest.err conftest.$ac_objext \
15422 conftest$ac_exeext conftest.$ac_ext
15423LIBS=$ac_check_lib_save_LIBS
15424fi
15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15426$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15427if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15429fi
15430
15431
15432fi
15433
15434
15435fi
15436
15437
15438fi
15439
15440
15441fi
15442
15443
15444fi
15445
15446 ;;
15447 esac
15448
15449 if test "x$lt_cv_dlopen" != xno; then
15450 enable_dlopen=yes
15451 else
15452 enable_dlopen=no
15453 fi
15454
15455 case $lt_cv_dlopen in
15456 dlopen)
15457 save_CPPFLAGS="$CPPFLAGS"
15458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15459
15460 save_LDFLAGS="$LDFLAGS"
15461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15462
15463 save_LIBS="$LIBS"
15464 LIBS="$lt_cv_dlopen_libs $LIBS"
15465
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15467$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15468if test "${lt_cv_dlopen_self+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470else
15471 if test "$cross_compiling" = yes; then :
15472 lt_cv_dlopen_self=cross
15473else
15474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15475 lt_status=$lt_dlunknown
15476 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000015477#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000015478#include "confdefs.h"
15479
15480#if HAVE_DLFCN_H
15481#include <dlfcn.h>
15482#endif
15483
15484#include <stdio.h>
15485
15486#ifdef RTLD_GLOBAL
15487# define LT_DLGLOBAL RTLD_GLOBAL
15488#else
15489# ifdef DL_GLOBAL
15490# define LT_DLGLOBAL DL_GLOBAL
15491# else
15492# define LT_DLGLOBAL 0
15493# endif
15494#endif
15495
15496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15497 find out it does not work in some platform. */
15498#ifndef LT_DLLAZY_OR_NOW
15499# ifdef RTLD_LAZY
15500# define LT_DLLAZY_OR_NOW RTLD_LAZY
15501# else
15502# ifdef DL_LAZY
15503# define LT_DLLAZY_OR_NOW DL_LAZY
15504# else
15505# ifdef RTLD_NOW
15506# define LT_DLLAZY_OR_NOW RTLD_NOW
15507# else
15508# ifdef DL_NOW
15509# define LT_DLLAZY_OR_NOW DL_NOW
15510# else
15511# define LT_DLLAZY_OR_NOW 0
15512# endif
15513# endif
15514# endif
15515# endif
15516#endif
15517
cristy0c60a692010-11-04 01:09:47 +000015518/* When -fvisbility=hidden is used, assume the code has been annotated
15519 correspondingly for the symbols needed. */
15520#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15521void fnord () __attribute__((visibility("default")));
15522#endif
15523
15524void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000015525int main ()
15526{
15527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15528 int status = $lt_dlunknown;
15529
15530 if (self)
15531 {
15532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000015533 else
15534 {
15535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15536 else puts (dlerror ());
15537 }
cristy73bd4a52010-10-05 11:24:23 +000015538 /* dlclose (self); */
15539 }
15540 else
15541 puts (dlerror ());
15542
15543 return status;
15544}
15545_LT_EOF
15546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15547 (eval $ac_link) 2>&5
15548 ac_status=$?
15549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15551 (./conftest; exit; ) >&5 2>/dev/null
15552 lt_status=$?
15553 case x$lt_status in
15554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15557 esac
15558 else :
15559 # compilation failed
15560 lt_cv_dlopen_self=no
15561 fi
15562fi
15563rm -fr conftest*
15564
15565
15566fi
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15568$as_echo "$lt_cv_dlopen_self" >&6; }
15569
15570 if test "x$lt_cv_dlopen_self" = xyes; then
15571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15573$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15574if test "${lt_cv_dlopen_self_static+set}" = set; then :
15575 $as_echo_n "(cached) " >&6
15576else
15577 if test "$cross_compiling" = yes; then :
15578 lt_cv_dlopen_self_static=cross
15579else
15580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15581 lt_status=$lt_dlunknown
15582 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000015583#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000015584#include "confdefs.h"
15585
15586#if HAVE_DLFCN_H
15587#include <dlfcn.h>
15588#endif
15589
15590#include <stdio.h>
15591
15592#ifdef RTLD_GLOBAL
15593# define LT_DLGLOBAL RTLD_GLOBAL
15594#else
15595# ifdef DL_GLOBAL
15596# define LT_DLGLOBAL DL_GLOBAL
15597# else
15598# define LT_DLGLOBAL 0
15599# endif
15600#endif
15601
15602/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15603 find out it does not work in some platform. */
15604#ifndef LT_DLLAZY_OR_NOW
15605# ifdef RTLD_LAZY
15606# define LT_DLLAZY_OR_NOW RTLD_LAZY
15607# else
15608# ifdef DL_LAZY
15609# define LT_DLLAZY_OR_NOW DL_LAZY
15610# else
15611# ifdef RTLD_NOW
15612# define LT_DLLAZY_OR_NOW RTLD_NOW
15613# else
15614# ifdef DL_NOW
15615# define LT_DLLAZY_OR_NOW DL_NOW
15616# else
15617# define LT_DLLAZY_OR_NOW 0
15618# endif
15619# endif
15620# endif
15621# endif
15622#endif
15623
cristy0c60a692010-11-04 01:09:47 +000015624/* When -fvisbility=hidden is used, assume the code has been annotated
15625 correspondingly for the symbols needed. */
15626#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15627void fnord () __attribute__((visibility("default")));
15628#endif
15629
15630void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000015631int main ()
15632{
15633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15634 int status = $lt_dlunknown;
15635
15636 if (self)
15637 {
15638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000015639 else
15640 {
15641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15642 else puts (dlerror ());
15643 }
cristy73bd4a52010-10-05 11:24:23 +000015644 /* dlclose (self); */
15645 }
15646 else
15647 puts (dlerror ());
15648
15649 return status;
15650}
15651_LT_EOF
15652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15653 (eval $ac_link) 2>&5
15654 ac_status=$?
15655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15657 (./conftest; exit; ) >&5 2>/dev/null
15658 lt_status=$?
15659 case x$lt_status in
15660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15663 esac
15664 else :
15665 # compilation failed
15666 lt_cv_dlopen_self_static=no
15667 fi
15668fi
15669rm -fr conftest*
15670
15671
15672fi
15673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15674$as_echo "$lt_cv_dlopen_self_static" >&6; }
15675 fi
15676
15677 CPPFLAGS="$save_CPPFLAGS"
15678 LDFLAGS="$save_LDFLAGS"
15679 LIBS="$save_LIBS"
15680 ;;
15681 esac
15682
15683 case $lt_cv_dlopen_self in
15684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15685 *) enable_dlopen_self=unknown ;;
15686 esac
15687
15688 case $lt_cv_dlopen_self_static in
15689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15690 *) enable_dlopen_self_static=unknown ;;
15691 esac
15692fi
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710striplib=
15711old_striplib=
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15713$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15714if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718$as_echo "yes" >&6; }
15719else
15720# FIXME - insert some real tests, host_os isn't really good enough
15721 case $host_os in
15722 darwin*)
15723 if test -n "$STRIP" ; then
15724 striplib="$STRIP -x"
15725 old_striplib="$STRIP -S"
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15727$as_echo "yes" >&6; }
15728 else
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730$as_echo "no" >&6; }
15731 fi
15732 ;;
15733 *)
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735$as_echo "no" >&6; }
15736 ;;
15737 esac
15738fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751 # Report which library types will actually be built
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15753$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15755$as_echo "$can_build_shared" >&6; }
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15758$as_echo_n "checking whether to build shared libraries... " >&6; }
15759 test "$can_build_shared" = "no" && enable_shared=no
15760
15761 # On AIX, shared libraries and static libraries use the same namespace, and
15762 # are all built from PIC.
15763 case $host_os in
15764 aix3*)
15765 test "$enable_shared" = yes && enable_static=no
15766 if test -n "$RANLIB"; then
15767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15768 postinstall_cmds='$RANLIB $lib'
15769 fi
15770 ;;
15771
15772 aix[4-9]*)
15773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15774 test "$enable_shared" = yes && enable_static=no
15775 fi
15776 ;;
15777 esac
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15779$as_echo "$enable_shared" >&6; }
15780
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15782$as_echo_n "checking whether to build static libraries... " >&6; }
15783 # Make sure either enable_shared or enable_static is yes.
15784 test "$enable_shared" = yes || enable_static=yes
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15786$as_echo "$enable_static" >&6; }
15787
15788
15789
15790
15791fi
15792ac_ext=c
15793ac_cpp='$CPP $CPPFLAGS'
15794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15796ac_compiler_gnu=$ac_cv_c_compiler_gnu
15797
15798CC="$lt_save_CC"
15799
cristy0c60a692010-11-04 01:09:47 +000015800 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15802 (test "X$CXX" != "Xg++"))) ; then
15803 ac_ext=cpp
15804ac_cpp='$CXXCPP $CPPFLAGS'
15805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15809$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15810if test -z "$CXXCPP"; then
15811 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15812 $as_echo_n "(cached) " >&6
15813else
15814 # Double quotes because CXXCPP needs to be expanded
15815 for CXXCPP in "$CXX -E" "/lib/cpp"
15816 do
15817 ac_preproc_ok=false
15818for ac_cxx_preproc_warn_flag in '' yes
15819do
15820 # Use a header file that comes with gcc, so configuring glibc
15821 # with a fresh cross-compiler works.
15822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15823 # <limits.h> exists even on freestanding compilers.
15824 # On the NeXT, cc -E runs the code through the compiler's parser,
15825 # not just through cpp. "Syntax error" is here to catch this case.
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h. */
15828#ifdef __STDC__
15829# include <limits.h>
15830#else
15831# include <assert.h>
15832#endif
15833 Syntax error
15834_ACEOF
15835if ac_fn_cxx_try_cpp "$LINENO"; then :
15836
15837else
15838 # Broken: fails on valid input.
15839continue
15840fi
15841rm -f conftest.err conftest.$ac_ext
15842
15843 # OK, works on sane cases. Now check whether nonexistent headers
15844 # can be detected and how.
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846/* end confdefs.h. */
15847#include <ac_nonexistent.h>
15848_ACEOF
15849if ac_fn_cxx_try_cpp "$LINENO"; then :
15850 # Broken: success on invalid input.
15851continue
15852else
15853 # Passes both tests.
15854ac_preproc_ok=:
15855break
15856fi
15857rm -f conftest.err conftest.$ac_ext
15858
15859done
15860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15861rm -f conftest.err conftest.$ac_ext
15862if $ac_preproc_ok; then :
15863 break
15864fi
15865
15866 done
15867 ac_cv_prog_CXXCPP=$CXXCPP
15868
15869fi
15870 CXXCPP=$ac_cv_prog_CXXCPP
15871else
15872 ac_cv_prog_CXXCPP=$CXXCPP
15873fi
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15875$as_echo "$CXXCPP" >&6; }
15876ac_preproc_ok=false
15877for ac_cxx_preproc_warn_flag in '' yes
15878do
15879 # Use a header file that comes with gcc, so configuring glibc
15880 # with a fresh cross-compiler works.
15881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882 # <limits.h> exists even on freestanding compilers.
15883 # On the NeXT, cc -E runs the code through the compiler's parser,
15884 # not just through cpp. "Syntax error" is here to catch this case.
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h. */
15887#ifdef __STDC__
15888# include <limits.h>
15889#else
15890# include <assert.h>
15891#endif
15892 Syntax error
15893_ACEOF
15894if ac_fn_cxx_try_cpp "$LINENO"; then :
15895
15896else
15897 # Broken: fails on valid input.
15898continue
15899fi
15900rm -f conftest.err conftest.$ac_ext
15901
15902 # OK, works on sane cases. Now check whether nonexistent headers
15903 # can be detected and how.
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905/* end confdefs.h. */
15906#include <ac_nonexistent.h>
15907_ACEOF
15908if ac_fn_cxx_try_cpp "$LINENO"; then :
15909 # Broken: success on invalid input.
15910continue
15911else
15912 # Passes both tests.
15913ac_preproc_ok=:
15914break
15915fi
15916rm -f conftest.err conftest.$ac_ext
15917
15918done
15919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15920rm -f conftest.err conftest.$ac_ext
15921if $ac_preproc_ok; then :
15922
15923else
15924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15926as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15927See \`config.log' for more details" "$LINENO" 5; }
15928fi
15929
15930ac_ext=c
15931ac_cpp='$CPP $CPPFLAGS'
15932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934ac_compiler_gnu=$ac_cv_c_compiler_gnu
15935
15936else
15937 _lt_caught_CXX_error=yes
15938fi
cristy73bd4a52010-10-05 11:24:23 +000015939
15940ac_ext=cpp
15941ac_cpp='$CXXCPP $CPPFLAGS'
15942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15945
15946archive_cmds_need_lc_CXX=no
15947allow_undefined_flag_CXX=
15948always_export_symbols_CXX=no
15949archive_expsym_cmds_CXX=
15950compiler_needs_object_CXX=no
15951export_dynamic_flag_spec_CXX=
15952hardcode_direct_CXX=no
15953hardcode_direct_absolute_CXX=no
15954hardcode_libdir_flag_spec_CXX=
15955hardcode_libdir_flag_spec_ld_CXX=
15956hardcode_libdir_separator_CXX=
15957hardcode_minus_L_CXX=no
15958hardcode_shlibpath_var_CXX=unsupported
15959hardcode_automatic_CXX=no
15960inherit_rpath_CXX=no
15961module_cmds_CXX=
15962module_expsym_cmds_CXX=
15963link_all_deplibs_CXX=unknown
15964old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000015965reload_flag_CXX=$reload_flag
15966reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000015967no_undefined_flag_CXX=
15968whole_archive_flag_spec_CXX=
15969enable_shared_with_static_runtimes_CXX=no
15970
15971# Source file extension for C++ test sources.
15972ac_ext=cpp
15973
15974# Object file extension for compiled C++ test sources.
15975objext=o
15976objext_CXX=$objext
15977
15978# No sense in running all these tests if we already determined that
15979# the CXX compiler isn't working. Some variables (like enable_shared)
15980# are currently assumed to apply to all compilers on this platform,
15981# and will be corrupted by setting them based on a non-working compiler.
15982if test "$_lt_caught_CXX_error" != yes; then
15983 # Code to be used in simple compile tests
15984 lt_simple_compile_test_code="int some_variable = 0;"
15985
15986 # Code to be used in simple link tests
15987 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15988
15989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15990
15991
15992
15993
15994
15995
15996# If no C compiler was specified, use CC.
15997LTCC=${LTCC-"$CC"}
15998
15999# If no C compiler flags were specified, use CFLAGS.
16000LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16001
16002# Allow CC to be a program name with arguments.
16003compiler=$CC
16004
16005
16006 # save warnings/boilerplate of simple test code
16007 ac_outfile=conftest.$ac_objext
16008echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16009eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16010_lt_compiler_boilerplate=`cat conftest.err`
16011$RM conftest*
16012
16013 ac_outfile=conftest.$ac_objext
16014echo "$lt_simple_link_test_code" >conftest.$ac_ext
16015eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16016_lt_linker_boilerplate=`cat conftest.err`
16017$RM -r conftest*
16018
16019
16020 # Allow CC to be a program name with arguments.
16021 lt_save_CC=$CC
16022 lt_save_LD=$LD
16023 lt_save_GCC=$GCC
16024 GCC=$GXX
16025 lt_save_with_gnu_ld=$with_gnu_ld
16026 lt_save_path_LD=$lt_cv_path_LD
16027 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16028 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16029 else
16030 $as_unset lt_cv_prog_gnu_ld
16031 fi
16032 if test -n "${lt_cv_path_LDCXX+set}"; then
16033 lt_cv_path_LD=$lt_cv_path_LDCXX
16034 else
16035 $as_unset lt_cv_path_LD
16036 fi
16037 test -z "${LDCXX+set}" || LD=$LDCXX
16038 CC=${CXX-"c++"}
16039 compiler=$CC
16040 compiler_CXX=$CC
16041 for cc_temp in $compiler""; do
16042 case $cc_temp in
16043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16045 \-*) ;;
16046 *) break;;
16047 esac
16048done
cristy0c60a692010-11-04 01:09:47 +000016049cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016050
16051
16052 if test -n "$compiler"; then
16053 # We don't want -fno-exception when compiling C++ code, so set the
16054 # no_builtin_flag separately
16055 if test "$GXX" = yes; then
16056 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16057 else
16058 lt_prog_compiler_no_builtin_flag_CXX=
16059 fi
16060
16061 if test "$GXX" = yes; then
16062 # Set up default GNU C++ configuration
16063
16064
16065
16066# Check whether --with-gnu-ld was given.
16067if test "${with_gnu_ld+set}" = set; then :
16068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16069else
16070 with_gnu_ld=no
16071fi
16072
16073ac_prog=ld
16074if test "$GCC" = yes; then
16075 # Check if gcc -print-prog-name=ld gives a path.
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16077$as_echo_n "checking for ld used by $CC... " >&6; }
16078 case $host in
16079 *-*-mingw*)
16080 # gcc leaves a trailing carriage return which upsets mingw
16081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16082 *)
16083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16084 esac
16085 case $ac_prog in
16086 # Accept absolute paths.
16087 [\\/]* | ?:[\\/]*)
16088 re_direlt='/[^/][^/]*/\.\./'
16089 # Canonicalize the pathname of ld
16090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16093 done
16094 test -z "$LD" && LD="$ac_prog"
16095 ;;
16096 "")
16097 # If it fails, then pretend we aren't using GCC.
16098 ac_prog=ld
16099 ;;
16100 *)
16101 # If it is relative, then search for the first ld in PATH.
16102 with_gnu_ld=unknown
16103 ;;
16104 esac
16105elif test "$with_gnu_ld" = yes; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16107$as_echo_n "checking for GNU ld... " >&6; }
16108else
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16110$as_echo_n "checking for non-GNU ld... " >&6; }
16111fi
16112if test "${lt_cv_path_LD+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16114else
16115 if test -z "$LD"; then
16116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16117 for ac_dir in $PATH; do
16118 IFS="$lt_save_ifs"
16119 test -z "$ac_dir" && ac_dir=.
16120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16121 lt_cv_path_LD="$ac_dir/$ac_prog"
16122 # Check to see if the program is GNU ld. I'd rather use --version,
16123 # but apparently some variants of GNU ld only accept -v.
16124 # Break only if it was the GNU/non-GNU ld that we prefer.
16125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16126 *GNU* | *'with BFD'*)
16127 test "$with_gnu_ld" != no && break
16128 ;;
16129 *)
16130 test "$with_gnu_ld" != yes && break
16131 ;;
16132 esac
16133 fi
16134 done
16135 IFS="$lt_save_ifs"
16136else
16137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16138fi
16139fi
16140
16141LD="$lt_cv_path_LD"
16142if test -n "$LD"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16144$as_echo "$LD" >&6; }
16145else
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147$as_echo "no" >&6; }
16148fi
cristy98dddb52010-11-04 00:30:15 +000016149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16152if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16154else
16155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16156case `$LD -v 2>&1 </dev/null` in
16157*GNU* | *'with BFD'*)
16158 lt_cv_prog_gnu_ld=yes
16159 ;;
16160*)
16161 lt_cv_prog_gnu_ld=no
16162 ;;
16163esac
16164fi
16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16167with_gnu_ld=$lt_cv_prog_gnu_ld
16168
16169
16170
16171
16172
16173
16174
16175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16176 # archiving commands below assume that GNU ld is being used.
16177 if test "$with_gnu_ld" = yes; then
16178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16180
16181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16183
16184 # If archive_cmds runs LD, not CC, wlarc should be empty
16185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16186 # investigate it a little bit more. (MM)
16187 wlarc='${wl}'
16188
16189 # ancient GNU ld didn't support --whole-archive et. al.
16190 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16191 $GREP 'no-whole-archive' > /dev/null; then
16192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16193 else
16194 whole_archive_flag_spec_CXX=
16195 fi
16196 else
16197 with_gnu_ld=no
16198 wlarc=
16199
16200 # A generic and very simple default shared library creation
16201 # command for GNU C++ for the case where it uses the native
16202 # linker, instead of GNU ld. If possible, this setting should
16203 # overridden to take advantage of the native linker features on
16204 # the platform it is being used on.
16205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16206 fi
16207
16208 # Commands to make compiler produce verbose output that lists
16209 # what "hidden" libraries, object files and flags are used when
16210 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016212
16213 else
16214 GXX=no
16215 with_gnu_ld=no
16216 wlarc=
16217 fi
16218
16219 # PORTME: fill in a description of your system's C++ link characteristics
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16221$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16222 ld_shlibs_CXX=yes
16223 case $host_os in
16224 aix3*)
16225 # FIXME: insert proper C++ library support
16226 ld_shlibs_CXX=no
16227 ;;
16228 aix[4-9]*)
16229 if test "$host_cpu" = ia64; then
16230 # On IA64, the linker does run time linking by default, so we don't
16231 # have to do anything special.
16232 aix_use_runtimelinking=no
16233 exp_sym_flag='-Bexport'
16234 no_entry_flag=""
16235 else
16236 aix_use_runtimelinking=no
16237
16238 # Test if we are trying to use run time linking or normal
16239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16240 # need to do runtime linking.
16241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16242 for ld_flag in $LDFLAGS; do
16243 case $ld_flag in
16244 *-brtl*)
16245 aix_use_runtimelinking=yes
16246 break
16247 ;;
16248 esac
16249 done
16250 ;;
16251 esac
16252
16253 exp_sym_flag='-bexport'
16254 no_entry_flag='-bnoentry'
16255 fi
16256
16257 # When large executables or shared objects are built, AIX ld can
16258 # have problems creating the table of contents. If linking a library
16259 # or program results in "error TOC overflow" add -mminimal-toc to
16260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16262
16263 archive_cmds_CXX=''
16264 hardcode_direct_CXX=yes
16265 hardcode_direct_absolute_CXX=yes
16266 hardcode_libdir_separator_CXX=':'
16267 link_all_deplibs_CXX=yes
16268 file_list_spec_CXX='${wl}-f,'
16269
16270 if test "$GXX" = yes; then
16271 case $host_os in aix4.[012]|aix4.[012].*)
16272 # We only want to do this on AIX 4.2 and lower, the check
16273 # below for broken collect2 doesn't work under 4.3+
16274 collect2name=`${CC} -print-prog-name=collect2`
16275 if test -f "$collect2name" &&
16276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16277 then
16278 # We have reworked collect2
16279 :
16280 else
16281 # We have old collect2
16282 hardcode_direct_CXX=unsupported
16283 # It fails to find uninstalled libraries when the uninstalled
16284 # path is not listed in the libpath. Setting hardcode_minus_L
16285 # to unsupported forces relinking
16286 hardcode_minus_L_CXX=yes
16287 hardcode_libdir_flag_spec_CXX='-L$libdir'
16288 hardcode_libdir_separator_CXX=
16289 fi
16290 esac
16291 shared_flag='-shared'
16292 if test "$aix_use_runtimelinking" = yes; then
16293 shared_flag="$shared_flag "'${wl}-G'
16294 fi
16295 else
16296 # not using gcc
16297 if test "$host_cpu" = ia64; then
16298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16299 # chokes on -Wl,-G. The following line is correct:
16300 shared_flag='-G'
16301 else
16302 if test "$aix_use_runtimelinking" = yes; then
16303 shared_flag='${wl}-G'
16304 else
16305 shared_flag='${wl}-bM:SRE'
16306 fi
16307 fi
16308 fi
16309
16310 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16311 # It seems that -bexpall does not export symbols beginning with
16312 # underscore (_), so it is better to generate a list of symbols to
16313 # export.
16314 always_export_symbols_CXX=yes
16315 if test "$aix_use_runtimelinking" = yes; then
16316 # Warning - without using the other runtime loading flags (-brtl),
16317 # -berok will link without error, but may produce a broken library.
16318 allow_undefined_flag_CXX='-berok'
16319 # Determine the default libpath from the value encoded in an empty
16320 # executable.
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h. */
16323
16324int
16325main ()
16326{
16327
16328 ;
16329 return 0;
16330}
16331_ACEOF
16332if ac_fn_cxx_try_link "$LINENO"; then :
16333
16334lt_aix_libpath_sed='
16335 /Import File Strings/,/^$/ {
16336 /^0/ {
16337 s/^0 *\(.*\)$/\1/
16338 p
16339 }
16340 }'
16341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16342# Check for a 64-bit object if we didn't find anything.
16343if test -z "$aix_libpath"; then
16344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16345fi
16346fi
16347rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16350
16351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16352
cristy0c60a692010-11-04 01:09:47 +000016353 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000016354 else
16355 if test "$host_cpu" = ia64; then
16356 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16357 allow_undefined_flag_CXX="-z nodefs"
16358 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16359 else
16360 # Determine the default libpath from the value encoded in an
16361 # empty executable.
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363/* end confdefs.h. */
16364
16365int
16366main ()
16367{
16368
16369 ;
16370 return 0;
16371}
16372_ACEOF
16373if ac_fn_cxx_try_link "$LINENO"; then :
16374
16375lt_aix_libpath_sed='
16376 /Import File Strings/,/^$/ {
16377 /^0/ {
16378 s/^0 *\(.*\)$/\1/
16379 p
16380 }
16381 }'
16382aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16383# Check for a 64-bit object if we didn't find anything.
16384if test -z "$aix_libpath"; then
16385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16386fi
16387fi
16388rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16391
16392 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16393 # Warning - without using the other run time loading flags,
16394 # -berok will link without error, but may produce a broken library.
16395 no_undefined_flag_CXX=' ${wl}-bernotok'
16396 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016397 if test "$with_gnu_ld" = yes; then
16398 # We only use this code for GNU lds that support --whole-archive.
16399 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16400 else
16401 # Exported symbols can be pulled into shared objects from archives
16402 whole_archive_flag_spec_CXX='$convenience'
16403 fi
cristy73bd4a52010-10-05 11:24:23 +000016404 archive_cmds_need_lc_CXX=yes
16405 # This is similar to how AIX traditionally builds its shared
16406 # libraries.
16407 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16408 fi
16409 fi
16410 ;;
16411
16412 beos*)
16413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414 allow_undefined_flag_CXX=unsupported
16415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416 # support --undefined. This deserves some investigation. FIXME
16417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418 else
16419 ld_shlibs_CXX=no
16420 fi
16421 ;;
16422
16423 chorus*)
16424 case $cc_basename in
16425 *)
16426 # FIXME: insert proper C++ library support
16427 ld_shlibs_CXX=no
16428 ;;
16429 esac
16430 ;;
16431
16432 cygwin* | mingw* | pw32* | cegcc*)
16433 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16434 # as there is no search path for DLLs.
16435 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000016436 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000016437 allow_undefined_flag_CXX=unsupported
16438 always_export_symbols_CXX=no
16439 enable_shared_with_static_runtimes_CXX=yes
16440
16441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16442 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16443 # If the export-symbols file already is a .def file (1st line
16444 # is EXPORTS), use it as is; otherwise, prepend...
16445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16446 cp $export_symbols $output_objdir/$soname.def;
16447 else
16448 echo EXPORTS > $output_objdir/$soname.def;
16449 cat $export_symbols >> $output_objdir/$soname.def;
16450 fi~
16451 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16452 else
16453 ld_shlibs_CXX=no
16454 fi
16455 ;;
16456 darwin* | rhapsody*)
16457
16458
16459 archive_cmds_need_lc_CXX=no
16460 hardcode_direct_CXX=no
16461 hardcode_automatic_CXX=yes
16462 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000016463 if test "$lt_cv_ld_force_load" = "yes"; then
16464 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16465 else
16466 whole_archive_flag_spec_CXX=''
16467 fi
cristy73bd4a52010-10-05 11:24:23 +000016468 link_all_deplibs_CXX=yes
16469 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16470 case $cc_basename in
16471 ifort*) _lt_dar_can_shared=yes ;;
16472 *) _lt_dar_can_shared=$GCC ;;
16473 esac
16474 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016475 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016476 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16477 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16478 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16479 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16480 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16481 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16482 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16483 fi
16484
16485 else
16486 ld_shlibs_CXX=no
16487 fi
16488
16489 ;;
16490
16491 dgux*)
16492 case $cc_basename in
16493 ec++*)
16494 # FIXME: insert proper C++ library support
16495 ld_shlibs_CXX=no
16496 ;;
16497 ghcx*)
16498 # Green Hills C++ Compiler
16499 # FIXME: insert proper C++ library support
16500 ld_shlibs_CXX=no
16501 ;;
16502 *)
16503 # FIXME: insert proper C++ library support
16504 ld_shlibs_CXX=no
16505 ;;
16506 esac
16507 ;;
16508
16509 freebsd[12]*)
16510 # C++ shared libraries reported to be fairly broken before
16511 # switch to ELF
16512 ld_shlibs_CXX=no
16513 ;;
16514
16515 freebsd-elf*)
16516 archive_cmds_need_lc_CXX=no
16517 ;;
16518
16519 freebsd* | dragonfly*)
16520 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16521 # conventions
16522 ld_shlibs_CXX=yes
16523 ;;
16524
16525 gnu*)
16526 ;;
16527
cristy0c60a692010-11-04 01:09:47 +000016528 haiku*)
16529 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16530 link_all_deplibs_CXX=yes
16531 ;;
16532
cristy73bd4a52010-10-05 11:24:23 +000016533 hpux9*)
16534 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16535 hardcode_libdir_separator_CXX=:
16536 export_dynamic_flag_spec_CXX='${wl}-E'
16537 hardcode_direct_CXX=yes
16538 hardcode_minus_L_CXX=yes # Not in the search PATH,
16539 # but as the default
16540 # location of the library.
16541
16542 case $cc_basename in
16543 CC*)
16544 # FIXME: insert proper C++ library support
16545 ld_shlibs_CXX=no
16546 ;;
16547 aCC*)
16548 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16549 # Commands to make compiler produce verbose output that lists
16550 # what "hidden" libraries, object files and flags are used when
16551 # linking a shared library.
16552 #
16553 # There doesn't appear to be a way to prevent this compiler from
16554 # explicitly linking system object files so we need to strip them
16555 # from the output so that they don't get included in the library
16556 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016557 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000016558 ;;
16559 *)
16560 if test "$GXX" = yes; then
16561 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16562 else
16563 # FIXME: insert proper C++ library support
16564 ld_shlibs_CXX=no
16565 fi
16566 ;;
16567 esac
16568 ;;
16569
16570 hpux10*|hpux11*)
16571 if test $with_gnu_ld = no; then
16572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16573 hardcode_libdir_separator_CXX=:
16574
16575 case $host_cpu in
16576 hppa*64*|ia64*)
16577 ;;
16578 *)
16579 export_dynamic_flag_spec_CXX='${wl}-E'
16580 ;;
16581 esac
16582 fi
16583 case $host_cpu in
16584 hppa*64*|ia64*)
16585 hardcode_direct_CXX=no
16586 hardcode_shlibpath_var_CXX=no
16587 ;;
16588 *)
16589 hardcode_direct_CXX=yes
16590 hardcode_direct_absolute_CXX=yes
16591 hardcode_minus_L_CXX=yes # Not in the search PATH,
16592 # but as the default
16593 # location of the library.
16594 ;;
16595 esac
16596
16597 case $cc_basename in
16598 CC*)
16599 # FIXME: insert proper C++ library support
16600 ld_shlibs_CXX=no
16601 ;;
16602 aCC*)
16603 case $host_cpu in
16604 hppa*64*)
16605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16606 ;;
16607 ia64*)
16608 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16609 ;;
16610 *)
16611 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16612 ;;
16613 esac
16614 # Commands to make compiler produce verbose output that lists
16615 # what "hidden" libraries, object files and flags are used when
16616 # linking a shared library.
16617 #
16618 # There doesn't appear to be a way to prevent this compiler from
16619 # explicitly linking system object files so we need to strip them
16620 # from the output so that they don't get included in the library
16621 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016622 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000016623 ;;
16624 *)
16625 if test "$GXX" = yes; then
16626 if test $with_gnu_ld = no; then
16627 case $host_cpu in
16628 hppa*64*)
16629 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16630 ;;
16631 ia64*)
16632 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16633 ;;
16634 *)
16635 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16636 ;;
16637 esac
16638 fi
16639 else
16640 # FIXME: insert proper C++ library support
16641 ld_shlibs_CXX=no
16642 fi
16643 ;;
16644 esac
16645 ;;
16646
16647 interix[3-9]*)
16648 hardcode_direct_CXX=no
16649 hardcode_shlibpath_var_CXX=no
16650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16651 export_dynamic_flag_spec_CXX='${wl}-E'
16652 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16653 # Instead, shared libraries are loaded at an image base (0x10000000 by
16654 # default) and relocated if they conflict, which is a slow very memory
16655 # consuming and fragmenting process. To avoid this, we pick a random,
16656 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16657 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16658 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16659 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16660 ;;
16661 irix5* | irix6*)
16662 case $cc_basename in
16663 CC*)
16664 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000016665 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016666
16667 # Archives containing C++ object files must be created using
16668 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16669 # necessary to make sure instantiated templates are included
16670 # in the archive.
16671 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16672 ;;
16673 *)
16674 if test "$GXX" = yes; then
16675 if test "$with_gnu_ld" = no; then
cristy0c60a692010-11-04 01:09:47 +000016676 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016677 else
cristy0c60a692010-11-04 01:09:47 +000016678 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016679 fi
16680 fi
16681 link_all_deplibs_CXX=yes
16682 ;;
16683 esac
16684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16685 hardcode_libdir_separator_CXX=:
16686 inherit_rpath_CXX=yes
16687 ;;
16688
cristy0c60a692010-11-04 01:09:47 +000016689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000016690 case $cc_basename in
16691 KCC*)
16692 # Kuck and Associates, Inc. (KAI) C++ Compiler
16693
16694 # KCC will only create a shared library if the output file
16695 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16696 # to its proper name (with version) after linking.
16697 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16698 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16699 # Commands to make compiler produce verbose output that lists
16700 # what "hidden" libraries, object files and flags are used when
16701 # linking a shared library.
16702 #
16703 # There doesn't appear to be a way to prevent this compiler from
16704 # explicitly linking system object files so we need to strip them
16705 # from the output so that they don't get included in the library
16706 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016707 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000016708
16709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16711
16712 # Archives containing C++ object files must be created using
16713 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16715 ;;
16716 icpc* | ecpc* )
16717 # Intel C++
16718 with_gnu_ld=yes
16719 # version 8.0 and above of icpc choke on multiply defined symbols
16720 # if we add $predep_objects and $postdep_objects, however 7.1 and
16721 # earlier do not add the objects themselves.
16722 case `$CC -V 2>&1` in
16723 *"Version 7."*)
16724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16726 ;;
16727 *) # Version 8.0 or newer
16728 tmp_idyn=
16729 case $host_cpu in
16730 ia64*) tmp_idyn=' -i_dynamic';;
16731 esac
16732 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16733 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16734 ;;
16735 esac
16736 archive_cmds_need_lc_CXX=no
16737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16739 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16740 ;;
16741 pgCC* | pgcpp*)
16742 # Portland Group C++ compiler
16743 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000016744 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000016745 prelink_cmds_CXX='tpldir=Template.dir~
16746 rm -rf $tpldir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000016748 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000016749 old_archive_cmds_CXX='tpldir=Template.dir~
16750 rm -rf $tpldir~
16751 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000016752 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000016753 $RANLIB $oldlib'
16754 archive_cmds_CXX='tpldir=Template.dir~
16755 rm -rf $tpldir~
16756 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000016757 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016758 archive_expsym_cmds_CXX='tpldir=Template.dir~
16759 rm -rf $tpldir~
16760 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000016761 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016762 ;;
cristy0c60a692010-11-04 01:09:47 +000016763 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000016764 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16765 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16766 ;;
16767 esac
16768
16769 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000016771 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000016772 ;;
16773 cxx*)
16774 # Compaq C++
16775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16776 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16777
16778 runpath_var=LD_RUN_PATH
16779 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16780 hardcode_libdir_separator_CXX=:
16781
16782 # Commands to make compiler produce verbose output that lists
16783 # what "hidden" libraries, object files and flags are used when
16784 # linking a shared library.
16785 #
16786 # There doesn't appear to be a way to prevent this compiler from
16787 # explicitly linking system object files so we need to strip them
16788 # from the output so that they don't get included in the library
16789 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016790 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000016791 ;;
cristy0c60a692010-11-04 01:09:47 +000016792 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000016793 # IBM XL 8.0 on PPC, with GNU ld
16794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16796 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797 if test "x$supports_anon_versioning" = xyes; then
16798 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16802 fi
16803 ;;
16804 *)
16805 case `$CC -V 2>&1 | sed 5q` in
16806 *Sun\ C*)
16807 # Sun C++ 5.9
16808 no_undefined_flag_CXX=' -zdefs'
16809 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16810 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16811 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000016812 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000016813 compiler_needs_object_CXX=yes
16814
16815 # Not sure whether something based on
16816 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16817 # would be better.
cristy0c60a692010-11-04 01:09:47 +000016818 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000016819
16820 # Archives containing C++ object files must be created using
16821 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16822 # necessary to make sure instantiated templates are included
16823 # in the archive.
16824 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16825 ;;
16826 esac
16827 ;;
16828 esac
16829 ;;
16830
16831 lynxos*)
16832 # FIXME: insert proper C++ library support
16833 ld_shlibs_CXX=no
16834 ;;
16835
16836 m88k*)
16837 # FIXME: insert proper C++ library support
16838 ld_shlibs_CXX=no
16839 ;;
16840
16841 mvs*)
16842 case $cc_basename in
16843 cxx*)
16844 # FIXME: insert proper C++ library support
16845 ld_shlibs_CXX=no
16846 ;;
16847 *)
16848 # FIXME: insert proper C++ library support
16849 ld_shlibs_CXX=no
16850 ;;
16851 esac
16852 ;;
16853
16854 netbsd*)
16855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16856 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16857 wlarc=
16858 hardcode_libdir_flag_spec_CXX='-R$libdir'
16859 hardcode_direct_CXX=yes
16860 hardcode_shlibpath_var_CXX=no
16861 fi
16862 # Workaround some broken pre-1.5 toolchains
16863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16864 ;;
16865
16866 *nto* | *qnx*)
16867 ld_shlibs_CXX=yes
16868 ;;
16869
16870 openbsd2*)
16871 # C++ shared libraries are fairly broken
16872 ld_shlibs_CXX=no
16873 ;;
16874
16875 openbsd*)
16876 if test -f /usr/libexec/ld.so; then
16877 hardcode_direct_CXX=yes
16878 hardcode_shlibpath_var_CXX=no
16879 hardcode_direct_absolute_CXX=yes
16880 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16882 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16883 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16884 export_dynamic_flag_spec_CXX='${wl}-E'
16885 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16886 fi
cristy0c60a692010-11-04 01:09:47 +000016887 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016888 else
16889 ld_shlibs_CXX=no
16890 fi
16891 ;;
16892
16893 osf3* | osf4* | osf5*)
16894 case $cc_basename in
16895 KCC*)
16896 # Kuck and Associates, Inc. (KAI) C++ Compiler
16897
16898 # KCC will only create a shared library if the output file
16899 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16900 # to its proper name (with version) after linking.
16901 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16902
16903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16904 hardcode_libdir_separator_CXX=:
16905
16906 # Archives containing C++ object files must be created using
16907 # the KAI C++ compiler.
16908 case $host in
16909 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16910 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16911 esac
16912 ;;
16913 RCC*)
16914 # Rational C++ 2.4.1
16915 # FIXME: insert proper C++ library support
16916 ld_shlibs_CXX=no
16917 ;;
16918 cxx*)
16919 case $host in
16920 osf3*)
16921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016922 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16924 ;;
16925 *)
16926 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016927 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016928 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16929 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000016930 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000016931 $RM $lib.exp'
16932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16933 ;;
16934 esac
16935
16936 hardcode_libdir_separator_CXX=:
16937
16938 # Commands to make compiler produce verbose output that lists
16939 # what "hidden" libraries, object files and flags are used when
16940 # linking a shared library.
16941 #
16942 # There doesn't appear to be a way to prevent this compiler from
16943 # explicitly linking system object files so we need to strip them
16944 # from the output so that they don't get included in the library
16945 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016946 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000016947 ;;
16948 *)
16949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16951 case $host in
16952 osf3*)
cristy0c60a692010-11-04 01:09:47 +000016953 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016954 ;;
16955 *)
cristy0c60a692010-11-04 01:09:47 +000016956 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016957 ;;
16958 esac
16959
16960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16961 hardcode_libdir_separator_CXX=:
16962
16963 # Commands to make compiler produce verbose output that lists
16964 # what "hidden" libraries, object files and flags are used when
16965 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016967
16968 else
16969 # FIXME: insert proper C++ library support
16970 ld_shlibs_CXX=no
16971 fi
16972 ;;
16973 esac
16974 ;;
16975
16976 psos*)
16977 # FIXME: insert proper C++ library support
16978 ld_shlibs_CXX=no
16979 ;;
16980
16981 sunos4*)
16982 case $cc_basename in
16983 CC*)
16984 # Sun C++ 4.x
16985 # FIXME: insert proper C++ library support
16986 ld_shlibs_CXX=no
16987 ;;
16988 lcc*)
16989 # Lucid
16990 # FIXME: insert proper C++ library support
16991 ld_shlibs_CXX=no
16992 ;;
16993 *)
16994 # FIXME: insert proper C++ library support
16995 ld_shlibs_CXX=no
16996 ;;
16997 esac
16998 ;;
16999
17000 solaris*)
17001 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017002 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017003 # Sun C++ 4.2, 5.x and Centerline C++
17004 archive_cmds_need_lc_CXX=yes
17005 no_undefined_flag_CXX=' -zdefs'
17006 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17007 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17008 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17009
17010 hardcode_libdir_flag_spec_CXX='-R$libdir'
17011 hardcode_shlibpath_var_CXX=no
17012 case $host_os in
17013 solaris2.[0-5] | solaris2.[0-5].*) ;;
17014 *)
17015 # The compiler driver will combine and reorder linker options,
17016 # but understands `-z linker_flag'.
17017 # Supported since Solaris 2.6 (maybe 2.5.1?)
17018 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17019 ;;
17020 esac
17021 link_all_deplibs_CXX=yes
17022
cristy0c60a692010-11-04 01:09:47 +000017023 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017024
17025 # Archives containing C++ object files must be created using
17026 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17027 # necessary to make sure instantiated templates are included
17028 # in the archive.
17029 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17030 ;;
17031 gcx*)
17032 # Green Hills C++ Compiler
17033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17034
17035 # The C++ compiler must be used to create the archive.
17036 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17037 ;;
17038 *)
17039 # GNU C++ compiler with Solaris linker
17040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17041 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17042 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17043 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17044 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17045 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17046
17047 # Commands to make compiler produce verbose output that lists
17048 # what "hidden" libraries, object files and flags are used when
17049 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017051 else
17052 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17053 # platform.
17054 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17055 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17056 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17057
17058 # Commands to make compiler produce verbose output that lists
17059 # what "hidden" libraries, object files and flags are used when
17060 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017061 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017062 fi
17063
17064 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17065 case $host_os in
17066 solaris2.[0-5] | solaris2.[0-5].*) ;;
17067 *)
17068 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17069 ;;
17070 esac
17071 fi
17072 ;;
17073 esac
17074 ;;
17075
17076 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17077 no_undefined_flag_CXX='${wl}-z,text'
17078 archive_cmds_need_lc_CXX=no
17079 hardcode_shlibpath_var_CXX=no
17080 runpath_var='LD_RUN_PATH'
17081
17082 case $cc_basename in
17083 CC*)
17084 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086 ;;
17087 *)
17088 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 ;;
17091 esac
17092 ;;
17093
17094 sysv5* | sco3.2v5* | sco5v6*)
17095 # Note: We can NOT use -z defs as we might desire, because we do not
17096 # link with -lc, and that would cause any symbols used from libc to
17097 # always be unresolved, which means just about no library would
17098 # ever link correctly. If we're not using GNU ld we use -z text
17099 # though, which does catch some bad symbols but isn't as heavy-handed
17100 # as -z defs.
17101 no_undefined_flag_CXX='${wl}-z,text'
17102 allow_undefined_flag_CXX='${wl}-z,nodefs'
17103 archive_cmds_need_lc_CXX=no
17104 hardcode_shlibpath_var_CXX=no
17105 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17106 hardcode_libdir_separator_CXX=':'
17107 link_all_deplibs_CXX=yes
17108 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17109 runpath_var='LD_RUN_PATH'
17110
17111 case $cc_basename in
17112 CC*)
17113 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000017115 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17116 '"$old_archive_cmds_CXX"
17117 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17118 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017119 ;;
17120 *)
17121 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17122 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17123 ;;
17124 esac
17125 ;;
17126
17127 tandem*)
17128 case $cc_basename in
17129 NCC*)
17130 # NonStop-UX NCC 3.20
17131 # FIXME: insert proper C++ library support
17132 ld_shlibs_CXX=no
17133 ;;
17134 *)
17135 # FIXME: insert proper C++ library support
17136 ld_shlibs_CXX=no
17137 ;;
17138 esac
17139 ;;
17140
17141 vxworks*)
17142 # FIXME: insert proper C++ library support
17143 ld_shlibs_CXX=no
17144 ;;
17145
17146 *)
17147 # FIXME: insert proper C++ library support
17148 ld_shlibs_CXX=no
17149 ;;
17150 esac
17151
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17153$as_echo "$ld_shlibs_CXX" >&6; }
17154 test "$ld_shlibs_CXX" = no && can_build_shared=no
17155
17156 GCC_CXX="$GXX"
17157 LD_CXX="$LD"
17158
17159 ## CAVEAT EMPTOR:
17160 ## There is no encapsulation within the following macros, do not change
17161 ## the running order or otherwise move them around unless you know exactly
17162 ## what you are doing...
17163 # Dependencies to place before and after the object being linked:
17164predep_objects_CXX=
17165postdep_objects_CXX=
17166predeps_CXX=
17167postdeps_CXX=
17168compiler_lib_search_path_CXX=
17169
17170cat > conftest.$ac_ext <<_LT_EOF
17171class Foo
17172{
17173public:
17174 Foo (void) { a = 0; }
17175private:
17176 int a;
17177};
17178_LT_EOF
17179
17180if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17181 (eval $ac_compile) 2>&5
17182 ac_status=$?
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; then
17185 # Parse the compiler output and extract the necessary
17186 # objects, libraries and library flags.
17187
17188 # Sentinel used to keep track of whether or not we are before
17189 # the conftest object file.
17190 pre_test_object_deps_done=no
17191
17192 for p in `eval "$output_verbose_link_cmd"`; do
17193 case $p in
17194
17195 -L* | -R* | -l*)
17196 # Some compilers place space between "-{L,R}" and the path.
17197 # Remove the space.
17198 if test $p = "-L" ||
17199 test $p = "-R"; then
17200 prev=$p
17201 continue
17202 else
17203 prev=
17204 fi
17205
17206 if test "$pre_test_object_deps_done" = no; then
17207 case $p in
17208 -L* | -R*)
17209 # Internal compiler library paths should come after those
17210 # provided the user. The postdeps already come after the
17211 # user supplied libs so there is no need to process them.
17212 if test -z "$compiler_lib_search_path_CXX"; then
17213 compiler_lib_search_path_CXX="${prev}${p}"
17214 else
17215 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17216 fi
17217 ;;
17218 # The "-l" case would never come before the object being
17219 # linked, so don't bother handling this case.
17220 esac
17221 else
17222 if test -z "$postdeps_CXX"; then
17223 postdeps_CXX="${prev}${p}"
17224 else
17225 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17226 fi
17227 fi
17228 ;;
17229
17230 *.$objext)
17231 # This assumes that the test object file only shows up
17232 # once in the compiler output.
17233 if test "$p" = "conftest.$objext"; then
17234 pre_test_object_deps_done=yes
17235 continue
17236 fi
17237
17238 if test "$pre_test_object_deps_done" = no; then
17239 if test -z "$predep_objects_CXX"; then
17240 predep_objects_CXX="$p"
17241 else
17242 predep_objects_CXX="$predep_objects_CXX $p"
17243 fi
17244 else
17245 if test -z "$postdep_objects_CXX"; then
17246 postdep_objects_CXX="$p"
17247 else
17248 postdep_objects_CXX="$postdep_objects_CXX $p"
17249 fi
17250 fi
17251 ;;
17252
17253 *) ;; # Ignore the rest.
17254
17255 esac
17256 done
17257
17258 # Clean up.
17259 rm -f a.out a.exe
17260else
17261 echo "libtool.m4: error: problem compiling CXX test program"
17262fi
17263
17264$RM -f confest.$objext
17265
17266# PORTME: override above test on systems where it is broken
17267case $host_os in
17268interix[3-9]*)
17269 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17270 # hack all around it, let's just trust "g++" to DTRT.
17271 predep_objects_CXX=
17272 postdep_objects_CXX=
17273 postdeps_CXX=
17274 ;;
17275
17276linux*)
17277 case `$CC -V 2>&1 | sed 5q` in
17278 *Sun\ C*)
17279 # Sun C++ 5.9
17280
17281 # The more standards-conforming stlport4 library is
17282 # incompatible with the Cstd library. Avoid specifying
17283 # it if it's in CXXFLAGS. Ignore libCrun as
17284 # -library=stlport4 depends on it.
17285 case " $CXX $CXXFLAGS " in
17286 *" -library=stlport4 "*)
17287 solaris_use_stlport4=yes
17288 ;;
17289 esac
17290
17291 if test "$solaris_use_stlport4" != yes; then
17292 postdeps_CXX='-library=Cstd -library=Crun'
17293 fi
17294 ;;
17295 esac
17296 ;;
17297
17298solaris*)
17299 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017300 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017301 # The more standards-conforming stlport4 library is
17302 # incompatible with the Cstd library. Avoid specifying
17303 # it if it's in CXXFLAGS. Ignore libCrun as
17304 # -library=stlport4 depends on it.
17305 case " $CXX $CXXFLAGS " in
17306 *" -library=stlport4 "*)
17307 solaris_use_stlport4=yes
17308 ;;
17309 esac
17310
17311 # Adding this requires a known-good setup of shared libraries for
17312 # Sun compiler versions before 5.6, else PIC objects from an old
17313 # archive will be linked into the output, leading to subtle bugs.
17314 if test "$solaris_use_stlport4" != yes; then
17315 postdeps_CXX='-library=Cstd -library=Crun'
17316 fi
17317 ;;
17318 esac
17319 ;;
17320esac
17321
17322
17323case " $postdeps_CXX " in
17324*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17325esac
17326 compiler_lib_search_dirs_CXX=
17327if test -n "${compiler_lib_search_path_CXX}"; then
17328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17329fi
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361 lt_prog_compiler_wl_CXX=
17362lt_prog_compiler_pic_CXX=
17363lt_prog_compiler_static_CXX=
17364
17365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17366$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17367
17368 # C++ specific cases for pic, static, wl, etc.
17369 if test "$GXX" = yes; then
17370 lt_prog_compiler_wl_CXX='-Wl,'
17371 lt_prog_compiler_static_CXX='-static'
17372
17373 case $host_os in
17374 aix*)
17375 # All AIX code is PIC.
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 now supports IA64 processor
17378 lt_prog_compiler_static_CXX='-Bstatic'
17379 fi
17380 ;;
17381
17382 amigaos*)
17383 case $host_cpu in
17384 powerpc)
17385 # see comment about AmigaOS4 .so support
17386 lt_prog_compiler_pic_CXX='-fPIC'
17387 ;;
17388 m68k)
17389 # FIXME: we need at least 68020 code to build shared libraries, but
17390 # adding the `-m68020' flag to GCC prevents building anything better,
17391 # like `-m68040'.
17392 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17393 ;;
17394 esac
17395 ;;
17396
17397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17398 # PIC is the default for these OSes.
17399 ;;
17400 mingw* | cygwin* | os2* | pw32* | cegcc*)
17401 # This hack is so that the source file can tell whether it is being
17402 # built for inclusion in a dll (and should export symbols for example).
17403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17404 # (--disable-auto-import) libraries
17405 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17406 ;;
17407 darwin* | rhapsody*)
17408 # PIC is the default on this platform
17409 # Common symbols not allowed in MH_DYLIB files
17410 lt_prog_compiler_pic_CXX='-fno-common'
17411 ;;
17412 *djgpp*)
17413 # DJGPP does not support shared libraries at all
17414 lt_prog_compiler_pic_CXX=
17415 ;;
cristy0c60a692010-11-04 01:09:47 +000017416 haiku*)
17417 # PIC is the default for Haiku.
17418 # The "-static" flag exists, but is broken.
17419 lt_prog_compiler_static_CXX=
17420 ;;
cristy73bd4a52010-10-05 11:24:23 +000017421 interix[3-9]*)
17422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17423 # Instead, we relocate shared libraries at runtime.
17424 ;;
17425 sysv4*MP*)
17426 if test -d /usr/nec; then
17427 lt_prog_compiler_pic_CXX=-Kconform_pic
17428 fi
17429 ;;
17430 hpux*)
17431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17433 # sets the default TLS model and affects inlining.
17434 case $host_cpu in
17435 hppa*64*)
17436 ;;
17437 *)
17438 lt_prog_compiler_pic_CXX='-fPIC'
17439 ;;
17440 esac
17441 ;;
17442 *qnx* | *nto*)
17443 # QNX uses GNU C++, but need to define -shared option too, otherwise
17444 # it will coredump.
17445 lt_prog_compiler_pic_CXX='-fPIC -shared'
17446 ;;
17447 *)
17448 lt_prog_compiler_pic_CXX='-fPIC'
17449 ;;
17450 esac
17451 else
17452 case $host_os in
17453 aix[4-9]*)
17454 # All AIX code is PIC.
17455 if test "$host_cpu" = ia64; then
17456 # AIX 5 now supports IA64 processor
17457 lt_prog_compiler_static_CXX='-Bstatic'
17458 else
17459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17460 fi
17461 ;;
17462 chorus*)
17463 case $cc_basename in
17464 cxch68*)
17465 # Green Hills C++ Compiler
17466 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17467 ;;
17468 esac
17469 ;;
17470 dgux*)
17471 case $cc_basename in
17472 ec++*)
17473 lt_prog_compiler_pic_CXX='-KPIC'
17474 ;;
17475 ghcx*)
17476 # Green Hills C++ Compiler
17477 lt_prog_compiler_pic_CXX='-pic'
17478 ;;
17479 *)
17480 ;;
17481 esac
17482 ;;
17483 freebsd* | dragonfly*)
17484 # FreeBSD uses GNU C++
17485 ;;
17486 hpux9* | hpux10* | hpux11*)
17487 case $cc_basename in
17488 CC*)
17489 lt_prog_compiler_wl_CXX='-Wl,'
17490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17491 if test "$host_cpu" != ia64; then
17492 lt_prog_compiler_pic_CXX='+Z'
17493 fi
17494 ;;
17495 aCC*)
17496 lt_prog_compiler_wl_CXX='-Wl,'
17497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17498 case $host_cpu in
17499 hppa*64*|ia64*)
17500 # +Z the default
17501 ;;
17502 *)
17503 lt_prog_compiler_pic_CXX='+Z'
17504 ;;
17505 esac
17506 ;;
17507 *)
17508 ;;
17509 esac
17510 ;;
17511 interix*)
17512 # This is c89, which is MS Visual C++ (no shared libs)
17513 # Anyone wants to do a port?
17514 ;;
17515 irix5* | irix6* | nonstopux*)
17516 case $cc_basename in
17517 CC*)
17518 lt_prog_compiler_wl_CXX='-Wl,'
17519 lt_prog_compiler_static_CXX='-non_shared'
17520 # CC pic flag -KPIC is the default.
17521 ;;
17522 *)
17523 ;;
17524 esac
17525 ;;
cristy0c60a692010-11-04 01:09:47 +000017526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017527 case $cc_basename in
17528 KCC*)
17529 # KAI C++ Compiler
17530 lt_prog_compiler_wl_CXX='--backend -Wl,'
17531 lt_prog_compiler_pic_CXX='-fPIC'
17532 ;;
17533 ecpc* )
17534 # old Intel C++ for x86_64 which still supported -KPIC.
17535 lt_prog_compiler_wl_CXX='-Wl,'
17536 lt_prog_compiler_pic_CXX='-KPIC'
17537 lt_prog_compiler_static_CXX='-static'
17538 ;;
17539 icpc* )
17540 # Intel C++, used to be incompatible with GCC.
17541 # ICC 10 doesn't accept -KPIC any more.
17542 lt_prog_compiler_wl_CXX='-Wl,'
17543 lt_prog_compiler_pic_CXX='-fPIC'
17544 lt_prog_compiler_static_CXX='-static'
17545 ;;
17546 pgCC* | pgcpp*)
17547 # Portland Group C++ compiler
17548 lt_prog_compiler_wl_CXX='-Wl,'
17549 lt_prog_compiler_pic_CXX='-fpic'
17550 lt_prog_compiler_static_CXX='-Bstatic'
17551 ;;
17552 cxx*)
17553 # Compaq C++
17554 # Make sure the PIC flag is empty. It appears that all Alpha
17555 # Linux and Compaq Tru64 Unix objects are PIC.
17556 lt_prog_compiler_pic_CXX=
17557 lt_prog_compiler_static_CXX='-non_shared'
17558 ;;
cristy0c60a692010-11-04 01:09:47 +000017559 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17560 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000017561 lt_prog_compiler_wl_CXX='-Wl,'
17562 lt_prog_compiler_pic_CXX='-qpic'
17563 lt_prog_compiler_static_CXX='-qstaticlink'
17564 ;;
17565 *)
17566 case `$CC -V 2>&1 | sed 5q` in
17567 *Sun\ C*)
17568 # Sun C++ 5.9
17569 lt_prog_compiler_pic_CXX='-KPIC'
17570 lt_prog_compiler_static_CXX='-Bstatic'
17571 lt_prog_compiler_wl_CXX='-Qoption ld '
17572 ;;
17573 esac
17574 ;;
17575 esac
17576 ;;
17577 lynxos*)
17578 ;;
17579 m88k*)
17580 ;;
17581 mvs*)
17582 case $cc_basename in
17583 cxx*)
17584 lt_prog_compiler_pic_CXX='-W c,exportall'
17585 ;;
17586 *)
17587 ;;
17588 esac
17589 ;;
17590 netbsd*)
17591 ;;
17592 *qnx* | *nto*)
17593 # QNX uses GNU C++, but need to define -shared option too, otherwise
17594 # it will coredump.
17595 lt_prog_compiler_pic_CXX='-fPIC -shared'
17596 ;;
17597 osf3* | osf4* | osf5*)
17598 case $cc_basename in
17599 KCC*)
17600 lt_prog_compiler_wl_CXX='--backend -Wl,'
17601 ;;
17602 RCC*)
17603 # Rational C++ 2.4.1
17604 lt_prog_compiler_pic_CXX='-pic'
17605 ;;
17606 cxx*)
17607 # Digital/Compaq C++
17608 lt_prog_compiler_wl_CXX='-Wl,'
17609 # Make sure the PIC flag is empty. It appears that all Alpha
17610 # Linux and Compaq Tru64 Unix objects are PIC.
17611 lt_prog_compiler_pic_CXX=
17612 lt_prog_compiler_static_CXX='-non_shared'
17613 ;;
17614 *)
17615 ;;
17616 esac
17617 ;;
17618 psos*)
17619 ;;
17620 solaris*)
17621 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017622 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017623 # Sun C++ 4.2, 5.x and Centerline C++
17624 lt_prog_compiler_pic_CXX='-KPIC'
17625 lt_prog_compiler_static_CXX='-Bstatic'
17626 lt_prog_compiler_wl_CXX='-Qoption ld '
17627 ;;
17628 gcx*)
17629 # Green Hills C++ Compiler
17630 lt_prog_compiler_pic_CXX='-PIC'
17631 ;;
17632 *)
17633 ;;
17634 esac
17635 ;;
17636 sunos4*)
17637 case $cc_basename in
17638 CC*)
17639 # Sun C++ 4.x
17640 lt_prog_compiler_pic_CXX='-pic'
17641 lt_prog_compiler_static_CXX='-Bstatic'
17642 ;;
17643 lcc*)
17644 # Lucid
17645 lt_prog_compiler_pic_CXX='-pic'
17646 ;;
17647 *)
17648 ;;
17649 esac
17650 ;;
17651 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17652 case $cc_basename in
17653 CC*)
17654 lt_prog_compiler_wl_CXX='-Wl,'
17655 lt_prog_compiler_pic_CXX='-KPIC'
17656 lt_prog_compiler_static_CXX='-Bstatic'
17657 ;;
17658 esac
17659 ;;
17660 tandem*)
17661 case $cc_basename in
17662 NCC*)
17663 # NonStop-UX NCC 3.20
17664 lt_prog_compiler_pic_CXX='-KPIC'
17665 ;;
17666 *)
17667 ;;
17668 esac
17669 ;;
17670 vxworks*)
17671 ;;
17672 *)
17673 lt_prog_compiler_can_build_shared_CXX=no
17674 ;;
17675 esac
17676 fi
17677
17678case $host_os in
17679 # For platforms which do not support PIC, -DPIC is meaningless:
17680 *djgpp*)
17681 lt_prog_compiler_pic_CXX=
17682 ;;
17683 *)
17684 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17685 ;;
17686esac
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17688$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17689
17690
17691
17692#
17693# Check to make sure the PIC flag actually works.
17694#
17695if test -n "$lt_prog_compiler_pic_CXX"; then
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17697$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17698if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17699 $as_echo_n "(cached) " >&6
17700else
17701 lt_cv_prog_compiler_pic_works_CXX=no
17702 ac_outfile=conftest.$ac_objext
17703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17705 # Insert the option either (1) after the last *FLAGS variable, or
17706 # (2) before a word containing "conftest.", or (3) at the end.
17707 # Note that $ac_compile itself does not contain backslashes and begins
17708 # with a dollar sign (not a hyphen), so the echo should work correctly.
17709 # The option is referenced via a variable to avoid confusing sed.
17710 lt_compile=`echo "$ac_compile" | $SED \
17711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17713 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017715 (eval "$lt_compile" 2>conftest.err)
17716 ac_status=$?
17717 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017719 if (exit $ac_status) && test -s "$ac_outfile"; then
17720 # The compiler can only warn and ignore the option if not recognized
17721 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000017722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17725 lt_cv_prog_compiler_pic_works_CXX=yes
17726 fi
17727 fi
17728 $RM conftest*
17729
17730fi
17731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17732$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17733
17734if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17735 case $lt_prog_compiler_pic_CXX in
17736 "" | " "*) ;;
17737 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17738 esac
17739else
17740 lt_prog_compiler_pic_CXX=
17741 lt_prog_compiler_can_build_shared_CXX=no
17742fi
17743
17744fi
17745
17746
17747
17748#
17749# Check to make sure the static flag actually works.
17750#
17751wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17753$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17754if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17756else
17757 lt_cv_prog_compiler_static_works_CXX=no
17758 save_LDFLAGS="$LDFLAGS"
17759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17762 # The linker can only warn and ignore the option if not recognized
17763 # So say no if there are warnings
17764 if test -s conftest.err; then
17765 # Append any errors to the config.log.
17766 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000017767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17769 if diff conftest.exp conftest.er2 >/dev/null; then
17770 lt_cv_prog_compiler_static_works_CXX=yes
17771 fi
17772 else
17773 lt_cv_prog_compiler_static_works_CXX=yes
17774 fi
17775 fi
17776 $RM -r conftest*
17777 LDFLAGS="$save_LDFLAGS"
17778
17779fi
17780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17781$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17782
17783if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17784 :
17785else
17786 lt_prog_compiler_static_CXX=
17787fi
17788
17789
17790
17791
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17794if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17796else
17797 lt_cv_prog_compiler_c_o_CXX=no
17798 $RM -r conftest 2>/dev/null
17799 mkdir conftest
17800 cd conftest
17801 mkdir out
17802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17803
17804 lt_compiler_flag="-o out/conftest2.$ac_objext"
17805 # Insert the option either (1) after the last *FLAGS variable, or
17806 # (2) before a word containing "conftest.", or (3) at the end.
17807 # Note that $ac_compile itself does not contain backslashes and begins
17808 # with a dollar sign (not a hyphen), so the echo should work correctly.
17809 lt_compile=`echo "$ac_compile" | $SED \
17810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17812 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017814 (eval "$lt_compile" 2>out/conftest.err)
17815 ac_status=$?
17816 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17819 then
17820 # The compiler can only warn and ignore the option if not recognized
17821 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17825 lt_cv_prog_compiler_c_o_CXX=yes
17826 fi
17827 fi
17828 chmod u+w . 2>&5
17829 $RM conftest*
17830 # SGI C++ compiler will create directory out/ii_files/ for
17831 # template instantiation
17832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17833 $RM out/* && rmdir out
17834 cd ..
17835 $RM -r conftest
17836 $RM conftest*
17837
17838fi
17839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17840$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17841
17842
17843
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17846if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17848else
17849 lt_cv_prog_compiler_c_o_CXX=no
17850 $RM -r conftest 2>/dev/null
17851 mkdir conftest
17852 cd conftest
17853 mkdir out
17854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17855
17856 lt_compiler_flag="-o out/conftest2.$ac_objext"
17857 # Insert the option either (1) after the last *FLAGS variable, or
17858 # (2) before a word containing "conftest.", or (3) at the end.
17859 # Note that $ac_compile itself does not contain backslashes and begins
17860 # with a dollar sign (not a hyphen), so the echo should work correctly.
17861 lt_compile=`echo "$ac_compile" | $SED \
17862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17864 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017866 (eval "$lt_compile" 2>out/conftest.err)
17867 ac_status=$?
17868 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17871 then
17872 # The compiler can only warn and ignore the option if not recognized
17873 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17877 lt_cv_prog_compiler_c_o_CXX=yes
17878 fi
17879 fi
17880 chmod u+w . 2>&5
17881 $RM conftest*
17882 # SGI C++ compiler will create directory out/ii_files/ for
17883 # template instantiation
17884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17885 $RM out/* && rmdir out
17886 cd ..
17887 $RM -r conftest
17888 $RM conftest*
17889
17890fi
17891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17892$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17893
17894
17895
17896
17897hard_links="nottested"
17898if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17899 # do not overwrite the value of need_locks provided by the user
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17901$as_echo_n "checking if we can lock with hard links... " >&6; }
17902 hard_links=yes
17903 $RM conftest*
17904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17905 touch conftest.a
17906 ln conftest.a conftest.b 2>&5 || hard_links=no
17907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17909$as_echo "$hard_links" >&6; }
17910 if test "$hard_links" = no; then
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17912$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17913 need_locks=warn
17914 fi
17915else
17916 need_locks=no
17917fi
17918
17919
17920
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17922$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17923
17924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17925 case $host_os in
17926 aix[4-9]*)
17927 # If we're using GNU nm, then we don't want the "-C" option.
17928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000017929 # Also, AIX nm treats weak defined symbols like other global defined
17930 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000017931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000017932 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000017933 else
17934 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17935 fi
17936 ;;
17937 pw32*)
17938 export_symbols_cmds_CXX="$ltdll_cmds"
17939 ;;
17940 cygwin* | mingw* | cegcc*)
17941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17942 ;;
17943 *)
17944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17945 ;;
17946 esac
17947 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17948
17949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17950$as_echo "$ld_shlibs_CXX" >&6; }
17951test "$ld_shlibs_CXX" = no && can_build_shared=no
17952
17953with_gnu_ld_CXX=$with_gnu_ld
17954
17955
17956
17957
17958
17959
17960#
17961# Do we need to explicitly link libc?
17962#
17963case "x$archive_cmds_need_lc_CXX" in
17964x|xyes)
17965 # Assume -lc should be added
17966 archive_cmds_need_lc_CXX=yes
17967
17968 if test "$enable_shared" = yes && test "$GCC" = yes; then
17969 case $archive_cmds_CXX in
17970 *'~'*)
17971 # FIXME: we may have to deal with multi-command sequences.
17972 ;;
17973 '$CC '*)
17974 # Test whether the compiler implicitly links with -lc since on some
17975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17976 # to ld, don't add -lc before -lgcc.
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17978$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy0c60a692010-11-04 01:09:47 +000017979if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17981else
17982 $RM conftest*
17983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017984
cristy0c60a692010-11-04 01:09:47 +000017985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017986 (eval $ac_compile) 2>&5
17987 ac_status=$?
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000017990 soname=conftest
17991 lib=conftest
17992 libobjs=conftest.$ac_objext
17993 deplibs=
17994 wl=$lt_prog_compiler_wl_CXX
17995 pic_flag=$lt_prog_compiler_pic_CXX
17996 compiler_flags=-v
17997 linker_flags=-v
17998 verstring=
17999 output_objdir=.
18000 libname=conftest
18001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18002 allow_undefined_flag_CXX=
18003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018004 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18005 ac_status=$?
18006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018008 then
18009 lt_cv_archive_cmds_need_lc_CXX=no
18010 else
18011 lt_cv_archive_cmds_need_lc_CXX=yes
18012 fi
18013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18014 else
18015 cat conftest.err 1>&5
18016 fi
18017 $RM conftest*
18018
18019fi
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18021$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18022 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018023 ;;
18024 esac
18025 fi
18026 ;;
18027esac
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18093$as_echo_n "checking dynamic linker characteristics... " >&6; }
18094
18095library_names_spec=
18096libname_spec='lib$name'
18097soname_spec=
18098shrext_cmds=".so"
18099postinstall_cmds=
18100postuninstall_cmds=
18101finish_cmds=
18102finish_eval=
18103shlibpath_var=
18104shlibpath_overrides_runpath=unknown
18105version_type=none
18106dynamic_linker="$host_os ld.so"
18107sys_lib_dlsearch_path_spec="/lib /usr/lib"
18108need_lib_prefix=unknown
18109hardcode_into_libs=no
18110
18111# when you set need_version to no, make sure it does not cause -set_version
18112# flags to be left without arguments
18113need_version=unknown
18114
18115case $host_os in
18116aix3*)
18117 version_type=linux
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18119 shlibpath_var=LIBPATH
18120
18121 # AIX 3 has no versioning support, so we append a major version to the name.
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 ;;
18124
18125aix[4-9]*)
18126 version_type=linux
18127 need_lib_prefix=no
18128 need_version=no
18129 hardcode_into_libs=yes
18130 if test "$host_cpu" = ia64; then
18131 # AIX 5 supports IA64
18132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 else
18135 # With GCC up to 2.95.x, collect2 would create an import file
18136 # for dependence libraries. The import file would start with
18137 # the line `#! .'. This would cause the generated library to
18138 # depend on `.', always an invalid library. This was fixed in
18139 # development snapshots of GCC prior to 3.0.
18140 case $host_os in
18141 aix4 | aix4.[01] | aix4.[01].*)
18142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18143 echo ' yes '
18144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18145 :
18146 else
18147 can_build_shared=no
18148 fi
18149 ;;
18150 esac
18151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18152 # soname into executable. Probably we can add versioning support to
18153 # collect2, so additional links can be useful in future.
18154 if test "$aix_use_runtimelinking" = yes; then
18155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18156 # instead of lib<name>.a to let people know that these are not
18157 # typical AIX shared libraries.
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 else
18160 # We preserve .a as extension for shared libraries through AIX4.2
18161 # and later when we are not doing run time linking.
18162 library_names_spec='${libname}${release}.a $libname.a'
18163 soname_spec='${libname}${release}${shared_ext}$major'
18164 fi
18165 shlibpath_var=LIBPATH
18166 fi
18167 ;;
18168
18169amigaos*)
18170 case $host_cpu in
18171 powerpc)
18172 # Since July 2007 AmigaOS4 officially supports .so libraries.
18173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 ;;
18176 m68k)
18177 library_names_spec='$libname.ixlibrary $libname.a'
18178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018179 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000018180 ;;
18181 esac
18182 ;;
18183
18184beos*)
18185 library_names_spec='${libname}${shared_ext}'
18186 dynamic_linker="$host_os ld.so"
18187 shlibpath_var=LIBRARY_PATH
18188 ;;
18189
18190bsdi[45]*)
18191 version_type=linux
18192 need_version=no
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18199 # the default ld.so.conf also contains /usr/contrib/lib and
18200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18201 # libtool to hard-code these into programs
18202 ;;
18203
18204cygwin* | mingw* | pw32* | cegcc*)
18205 version_type=windows
18206 shrext_cmds=".dll"
18207 need_version=no
18208 need_lib_prefix=no
18209
18210 case $GCC,$host_os in
18211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18212 library_names_spec='$libname.dll.a'
18213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18214 postinstall_cmds='base_file=`basename \${file}`~
18215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18216 dldir=$destdir/`dirname \$dlpath`~
18217 test -d \$dldir || mkdir -p \$dldir~
18218 $install_prog $dir/$dlname \$dldir/$dlname~
18219 chmod a+x \$dldir/$dlname~
18220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18222 fi'
18223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18224 dlpath=$dir/\$dldll~
18225 $RM \$dlpath'
18226 shlibpath_overrides_runpath=yes
18227
18228 case $host_os in
18229 cygwin*)
18230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000018232
cristy73bd4a52010-10-05 11:24:23 +000018233 ;;
18234 mingw* | cegcc*)
18235 # MinGW DLLs use traditional 'lib' prefix
18236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000018237 ;;
18238 pw32*)
18239 # pw32 DLLs use 'pw' prefix rather than 'lib'
18240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18241 ;;
18242 esac
18243 ;;
18244
18245 *)
18246 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18247 ;;
18248 esac
18249 dynamic_linker='Win32 ld.exe'
18250 # FIXME: first we should search . and the directory the executable is in
18251 shlibpath_var=PATH
18252 ;;
18253
18254darwin* | rhapsody*)
18255 dynamic_linker="$host_os dyld"
18256 version_type=darwin
18257 need_lib_prefix=no
18258 need_version=no
18259 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18260 soname_spec='${libname}${release}${major}$shared_ext'
18261 shlibpath_overrides_runpath=yes
18262 shlibpath_var=DYLD_LIBRARY_PATH
18263 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18264
18265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18266 ;;
18267
18268dgux*)
18269 version_type=linux
18270 need_lib_prefix=no
18271 need_version=no
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 ;;
18276
18277freebsd1*)
18278 dynamic_linker=no
18279 ;;
18280
18281freebsd* | dragonfly*)
18282 # DragonFly does not have aout. When/if they implement a new
18283 # versioning mechanism, adjust this.
18284 if test -x /usr/bin/objformat; then
18285 objformat=`/usr/bin/objformat`
18286 else
18287 case $host_os in
18288 freebsd[123]*) objformat=aout ;;
18289 *) objformat=elf ;;
18290 esac
18291 fi
18292 version_type=freebsd-$objformat
18293 case $version_type in
18294 freebsd-elf*)
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18296 need_version=no
18297 need_lib_prefix=no
18298 ;;
18299 freebsd-*)
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18301 need_version=yes
18302 ;;
18303 esac
18304 shlibpath_var=LD_LIBRARY_PATH
18305 case $host_os in
18306 freebsd2*)
18307 shlibpath_overrides_runpath=yes
18308 ;;
18309 freebsd3.[01]* | freebsdelf3.[01]*)
18310 shlibpath_overrides_runpath=yes
18311 hardcode_into_libs=yes
18312 ;;
18313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18315 shlibpath_overrides_runpath=no
18316 hardcode_into_libs=yes
18317 ;;
18318 *) # from 4.6 on, and DragonFly
18319 shlibpath_overrides_runpath=yes
18320 hardcode_into_libs=yes
18321 ;;
18322 esac
18323 ;;
18324
18325gnu*)
18326 version_type=linux
18327 need_lib_prefix=no
18328 need_version=no
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 hardcode_into_libs=yes
18333 ;;
18334
cristy0c60a692010-11-04 01:09:47 +000018335haiku*)
18336 version_type=linux
18337 need_lib_prefix=no
18338 need_version=no
18339 dynamic_linker="$host_os runtime_loader"
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18342 shlibpath_var=LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18345 hardcode_into_libs=yes
18346 ;;
18347
cristy73bd4a52010-10-05 11:24:23 +000018348hpux9* | hpux10* | hpux11*)
18349 # Give a soname corresponding to the major version so that dld.sl refuses to
18350 # link against other versions.
18351 version_type=sunos
18352 need_lib_prefix=no
18353 need_version=no
18354 case $host_cpu in
18355 ia64*)
18356 shrext_cmds='.so'
18357 hardcode_into_libs=yes
18358 dynamic_linker="$host_os dld.so"
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 if test "X$HPUX_IA64_MODE" = X32; then
18364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18365 else
18366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18367 fi
18368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18369 ;;
18370 hppa*64*)
18371 shrext_cmds='.sl'
18372 hardcode_into_libs=yes
18373 dynamic_linker="$host_os dld.sl"
18374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18380 ;;
18381 *)
18382 shrext_cmds='.sl'
18383 dynamic_linker="$host_os dld.sl"
18384 shlibpath_var=SHLIB_PATH
18385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 ;;
18389 esac
cristy0c60a692010-11-04 01:09:47 +000018390 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000018391 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000018392 # or fails outright, so override atomically:
18393 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000018394 ;;
18395
18396interix[3-9]*)
18397 version_type=linux
18398 need_lib_prefix=no
18399 need_version=no
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 shlibpath_overrides_runpath=no
18405 hardcode_into_libs=yes
18406 ;;
18407
18408irix5* | irix6* | nonstopux*)
18409 case $host_os in
18410 nonstopux*) version_type=nonstopux ;;
18411 *)
18412 if test "$lt_cv_prog_gnu_ld" = yes; then
18413 version_type=linux
18414 else
18415 version_type=irix
18416 fi ;;
18417 esac
18418 need_lib_prefix=no
18419 need_version=no
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18422 case $host_os in
18423 irix5* | nonstopux*)
18424 libsuff= shlibsuff=
18425 ;;
18426 *)
18427 case $LD in # libtool.m4 will add one of these switches to LD
18428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18429 libsuff= shlibsuff= libmagic=32-bit;;
18430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18431 libsuff=32 shlibsuff=N32 libmagic=N32;;
18432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18434 *) libsuff= shlibsuff= libmagic=never-match;;
18435 esac
18436 ;;
18437 esac
18438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18439 shlibpath_overrides_runpath=no
18440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18442 hardcode_into_libs=yes
18443 ;;
18444
18445# No shared lib support for Linux oldld, aout, or coff.
18446linux*oldld* | linux*aout* | linux*coff*)
18447 dynamic_linker=no
18448 ;;
18449
18450# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000018451linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018452 version_type=linux
18453 need_lib_prefix=no
18454 need_version=no
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000018460
cristy73bd4a52010-10-05 11:24:23 +000018461 # Some binutils ld are patched to set DT_RUNPATH
cristy0c60a692010-11-04 01:09:47 +000018462 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18463 $as_echo_n "(cached) " >&6
18464else
18465 lt_cv_shlibpath_overrides_runpath=no
18466 save_LDFLAGS=$LDFLAGS
18467 save_libdir=$libdir
18468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018471/* end confdefs.h. */
18472
18473int
18474main ()
18475{
18476
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481if ac_fn_cxx_try_link "$LINENO"; then :
18482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000018483 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000018484fi
18485fi
18486rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018488 LDFLAGS=$save_LDFLAGS
18489 libdir=$save_libdir
18490
18491fi
18492
18493 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000018494
18495 # This implies no fast_install, which is unacceptable.
18496 # Some rework will be needed to allow for fast_install
18497 # before this can be enabled.
18498 hardcode_into_libs=yes
18499
18500 # Add ABI-specific directories to the system library path.
18501 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18502
18503 # Append ld.so.conf contents to the search path
18504 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000018505 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000018506 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000018507
cristy73bd4a52010-10-05 11:24:23 +000018508 fi
18509
18510 # We used to test for /lib/ld.so.1 and disable shared libraries on
18511 # powerpc, because MkLinux only supported shared libraries with the
18512 # GNU dynamic linker. Since this was broken with cross compilers,
18513 # most powerpc-linux boxes support dynamic linking these days and
18514 # people can always --disable-shared, the test was removed, and we
18515 # assume the GNU/Linux dynamic linker is in use.
18516 dynamic_linker='GNU/Linux ld.so'
18517 ;;
18518
18519netbsd*)
18520 version_type=sunos
18521 need_lib_prefix=no
18522 need_version=no
18523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18526 dynamic_linker='NetBSD (a.out) ld.so'
18527 else
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 dynamic_linker='NetBSD ld.elf_so'
18531 fi
18532 shlibpath_var=LD_LIBRARY_PATH
18533 shlibpath_overrides_runpath=yes
18534 hardcode_into_libs=yes
18535 ;;
18536
18537newsos6)
18538 version_type=linux
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 shlibpath_overrides_runpath=yes
18542 ;;
18543
18544*nto* | *qnx*)
18545 version_type=qnx
18546 need_lib_prefix=no
18547 need_version=no
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18553 dynamic_linker='ldqnx.so'
18554 ;;
18555
18556openbsd*)
18557 version_type=sunos
18558 sys_lib_dlsearch_path_spec="/usr/lib"
18559 need_lib_prefix=no
18560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18561 case $host_os in
18562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18563 *) need_version=no ;;
18564 esac
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18569 case $host_os in
18570 openbsd2.[89] | openbsd2.[89].*)
18571 shlibpath_overrides_runpath=no
18572 ;;
18573 *)
18574 shlibpath_overrides_runpath=yes
18575 ;;
18576 esac
18577 else
18578 shlibpath_overrides_runpath=yes
18579 fi
18580 ;;
18581
18582os2*)
18583 libname_spec='$name'
18584 shrext_cmds=".dll"
18585 need_lib_prefix=no
18586 library_names_spec='$libname${shared_ext} $libname.a'
18587 dynamic_linker='OS/2 ld.exe'
18588 shlibpath_var=LIBPATH
18589 ;;
18590
18591osf3* | osf4* | osf5*)
18592 version_type=osf
18593 need_lib_prefix=no
18594 need_version=no
18595 soname_spec='${libname}${release}${shared_ext}$major'
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18600 ;;
18601
18602rdos*)
18603 dynamic_linker=no
18604 ;;
18605
18606solaris*)
18607 version_type=linux
18608 need_lib_prefix=no
18609 need_version=no
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 hardcode_into_libs=yes
18615 # ldd complains unless libraries are executable
18616 postinstall_cmds='chmod +x $lib'
18617 ;;
18618
18619sunos4*)
18620 version_type=sunos
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=yes
18625 if test "$with_gnu_ld" = yes; then
18626 need_lib_prefix=no
18627 fi
18628 need_version=yes
18629 ;;
18630
18631sysv4 | sysv4.3*)
18632 version_type=linux
18633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18634 soname_spec='${libname}${release}${shared_ext}$major'
18635 shlibpath_var=LD_LIBRARY_PATH
18636 case $host_vendor in
18637 sni)
18638 shlibpath_overrides_runpath=no
18639 need_lib_prefix=no
18640 runpath_var=LD_RUN_PATH
18641 ;;
18642 siemens)
18643 need_lib_prefix=no
18644 ;;
18645 motorola)
18646 need_lib_prefix=no
18647 need_version=no
18648 shlibpath_overrides_runpath=no
18649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18650 ;;
18651 esac
18652 ;;
18653
18654sysv4*MP*)
18655 if test -d /usr/nec ;then
18656 version_type=linux
18657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18658 soname_spec='$libname${shared_ext}.$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 fi
18661 ;;
18662
18663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18664 version_type=freebsd-elf
18665 need_lib_prefix=no
18666 need_version=no
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes
18671 hardcode_into_libs=yes
18672 if test "$with_gnu_ld" = yes; then
18673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18674 else
18675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18676 case $host_os in
18677 sco3.2v5*)
18678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18679 ;;
18680 esac
18681 fi
18682 sys_lib_dlsearch_path_spec='/usr/lib'
18683 ;;
18684
18685tpf*)
18686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18687 version_type=linux
18688 need_lib_prefix=no
18689 need_version=no
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=no
18693 hardcode_into_libs=yes
18694 ;;
18695
18696uts4*)
18697 version_type=linux
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 ;;
18702
18703*)
18704 dynamic_linker=no
18705 ;;
18706esac
18707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18708$as_echo "$dynamic_linker" >&6; }
18709test "$dynamic_linker" = no && can_build_shared=no
18710
18711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712if test "$GCC" = yes; then
18713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18714fi
18715
18716if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18717 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18718fi
18719if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18720 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18721fi
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
cristy0c60a692010-11-04 01:09:47 +000018758
18759
cristy73bd4a52010-10-05 11:24:23 +000018760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18761$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18762hardcode_action_CXX=
18763if test -n "$hardcode_libdir_flag_spec_CXX" ||
18764 test -n "$runpath_var_CXX" ||
18765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18766
18767 # We can hardcode non-existent directories.
18768 if test "$hardcode_direct_CXX" != no &&
18769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18770 # have to relink, otherwise we might link with an installed library
18771 # when we should be linking with a yet-to-be-installed one
18772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18773 test "$hardcode_minus_L_CXX" != no; then
18774 # Linking always hardcodes the temporary library directory.
18775 hardcode_action_CXX=relink
18776 else
18777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18778 hardcode_action_CXX=immediate
18779 fi
18780else
18781 # We cannot hardcode anything, or else we can only hardcode existing
18782 # directories.
18783 hardcode_action_CXX=unsupported
18784fi
18785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18786$as_echo "$hardcode_action_CXX" >&6; }
18787
18788if test "$hardcode_action_CXX" = relink ||
18789 test "$inherit_rpath_CXX" = yes; then
18790 # Fast installation is not supported
18791 enable_fast_install=no
18792elif test "$shlibpath_overrides_runpath" = yes ||
18793 test "$enable_shared" = no; then
18794 # Fast installation is not necessary
18795 enable_fast_install=needless
18796fi
18797
18798
18799
18800
18801
18802
18803
18804 fi # test -n "$compiler"
18805
18806 CC=$lt_save_CC
18807 LDCXX=$LD
18808 LD=$lt_save_LD
18809 GCC=$lt_save_GCC
18810 with_gnu_ld=$lt_save_with_gnu_ld
18811 lt_cv_path_LDCXX=$lt_cv_path_LD
18812 lt_cv_path_LD=$lt_save_path_LD
18813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18815fi # test "$_lt_caught_CXX_error" != yes
18816
18817ac_ext=c
18818ac_cpp='$CPP $CPPFLAGS'
18819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18821ac_compiler_gnu=$ac_cv_c_compiler_gnu
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835 ac_config_commands="$ac_config_commands libtool"
18836
18837
18838
18839
18840# Only expand once:
18841
18842
18843
cristy3ed852e2009-09-05 21:47:34 +000018844
18845
18846# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000018847
18848
18849
18850
18851
18852
18853
cristy73bd4a52010-10-05 11:24:23 +000018854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18855$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18856if test "${libltdl_cv_shlibext+set}" = set; then :
18857 $as_echo_n "(cached) " >&6
18858else
18859
18860module=yes
18861eval libltdl_cv_shlibext=$shrext_cmds
18862
18863fi
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18865$as_echo "$libltdl_cv_shlibext" >&6; }
18866if test -n "$libltdl_cv_shlibext"; then
18867
18868cat >>confdefs.h <<_ACEOF
18869#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18870_ACEOF
18871
18872fi
18873
18874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18875$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18876if test "${lt_cv_module_path_var+set}" = set; then :
18877 $as_echo_n "(cached) " >&6
18878else
18879 lt_cv_module_path_var="$shlibpath_var"
18880fi
18881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18882$as_echo "$lt_cv_module_path_var" >&6; }
18883if test -n "$lt_cv_module_path_var"; then
18884
18885cat >>confdefs.h <<_ACEOF
18886#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18887_ACEOF
18888
18889fi
18890
18891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18892$as_echo_n "checking for the default library search path... " >&6; }
18893if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18894 $as_echo_n "(cached) " >&6
18895else
18896 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18897fi
18898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18899$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18900if test -n "$lt_cv_sys_dlsearch_path"; then
18901 sys_dlsearch_path=
18902 for dir in $lt_cv_sys_dlsearch_path; do
18903 if test -z "$sys_dlsearch_path"; then
18904 sys_dlsearch_path="$dir"
18905 else
18906 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18907 fi
18908 done
18909
18910cat >>confdefs.h <<_ACEOF
18911#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18912_ACEOF
18913
18914fi
18915
18916
18917LT_DLLOADERS=
18918
18919
18920ac_ext=c
18921ac_cpp='$CPP $CPPFLAGS'
18922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924ac_compiler_gnu=$ac_cv_c_compiler_gnu
18925
18926
18927LIBADD_DLOPEN=
18928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18929$as_echo_n "checking for library containing dlopen... " >&6; }
18930if test "${ac_cv_search_dlopen+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18932else
18933 ac_func_search_save_LIBS=$LIBS
18934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935/* end confdefs.h. */
18936
18937/* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18940#ifdef __cplusplus
18941extern "C"
18942#endif
18943char dlopen ();
18944int
18945main ()
18946{
18947return dlopen ();
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952for ac_lib in '' dl; do
18953 if test -z "$ac_lib"; then
18954 ac_res="none required"
18955 else
18956 ac_res=-l$ac_lib
18957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18958 fi
18959 if ac_fn_c_try_link "$LINENO"; then :
18960 ac_cv_search_dlopen=$ac_res
18961fi
18962rm -f core conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext
18964 if test "${ac_cv_search_dlopen+set}" = set; then :
18965 break
18966fi
18967done
18968if test "${ac_cv_search_dlopen+set}" = set; then :
18969
18970else
18971 ac_cv_search_dlopen=no
18972fi
18973rm conftest.$ac_ext
18974LIBS=$ac_func_search_save_LIBS
18975fi
18976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18977$as_echo "$ac_cv_search_dlopen" >&6; }
18978ac_res=$ac_cv_search_dlopen
18979if test "$ac_res" != no; then :
18980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18981
18982$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18983
18984 if test "$ac_cv_search_dlopen" != "none required" ; then
18985 LIBADD_DLOPEN="-ldl"
18986 fi
18987 libltdl_cv_lib_dl_dlopen="yes"
18988 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18989else
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991/* end confdefs.h. */
18992#if HAVE_DLFCN_H
18993# include <dlfcn.h>
18994#endif
18995
18996int
18997main ()
18998{
18999dlopen(0, 0);
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004if ac_fn_c_try_link "$LINENO"; then :
19005
19006$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19007
19008 libltdl_cv_func_dlopen="yes"
19009 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19010else
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19012$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19013if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19014 $as_echo_n "(cached) " >&6
19015else
19016 ac_check_lib_save_LIBS=$LIBS
19017LIBS="-lsvld $LIBS"
19018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019/* end confdefs.h. */
19020
19021/* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19024#ifdef __cplusplus
19025extern "C"
19026#endif
19027char dlopen ();
19028int
19029main ()
19030{
19031return dlopen ();
19032 ;
19033 return 0;
19034}
19035_ACEOF
19036if ac_fn_c_try_link "$LINENO"; then :
19037 ac_cv_lib_svld_dlopen=yes
19038else
19039 ac_cv_lib_svld_dlopen=no
19040fi
19041rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043LIBS=$ac_check_lib_save_LIBS
19044fi
19045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19046$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19047if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19048
19049$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19050
19051 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19052 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19053fi
19054
19055fi
19056rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
19058fi
19059
19060if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19061then
19062 lt_save_LIBS="$LIBS"
19063 LIBS="$LIBS $LIBADD_DLOPEN"
19064 for ac_func in dlerror
19065do :
19066 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19067if test "x$ac_cv_func_dlerror" = x""yes; then :
19068 cat >>confdefs.h <<_ACEOF
19069#define HAVE_DLERROR 1
19070_ACEOF
19071
19072fi
19073done
19074
19075 LIBS="$lt_save_LIBS"
19076fi
19077
19078
19079LIBADD_SHL_LOAD=
19080ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19081if test "x$ac_cv_func_shl_load" = x""yes; then :
19082
19083$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19084
19085 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19086else
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19088$as_echo_n "checking for shl_load in -ldld... " >&6; }
19089if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19090 $as_echo_n "(cached) " >&6
19091else
19092 ac_check_lib_save_LIBS=$LIBS
19093LIBS="-ldld $LIBS"
19094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095/* end confdefs.h. */
19096
19097/* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19100#ifdef __cplusplus
19101extern "C"
19102#endif
19103char shl_load ();
19104int
19105main ()
19106{
19107return shl_load ();
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112if ac_fn_c_try_link "$LINENO"; then :
19113 ac_cv_lib_dld_shl_load=yes
19114else
19115 ac_cv_lib_dld_shl_load=no
19116fi
19117rm -f core conftest.err conftest.$ac_objext \
19118 conftest$ac_exeext conftest.$ac_ext
19119LIBS=$ac_check_lib_save_LIBS
19120fi
19121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19122$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19123if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19124
19125$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19126
19127 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19128 LIBADD_SHL_LOAD="-ldld"
19129fi
19130
19131fi
19132
19133
19134
19135case $host_os in
19136darwin[1567].*)
19137# We only want this for pre-Mac OS X 10.4.
19138 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19139if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19140
19141$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19142
19143 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19144fi
19145
19146 ;;
19147beos*)
19148 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19149 ;;
19150cygwin* | mingw* | os2* | pw32*)
19151 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19152"
19153if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19154 ac_have_decl=1
19155else
19156 ac_have_decl=0
19157fi
19158
19159cat >>confdefs.h <<_ACEOF
19160#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19161_ACEOF
19162
19163 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19164 ;;
19165esac
19166
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19168$as_echo_n "checking for dld_link in -ldld... " >&6; }
19169if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19170 $as_echo_n "(cached) " >&6
19171else
19172 ac_check_lib_save_LIBS=$LIBS
19173LIBS="-ldld $LIBS"
19174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175/* end confdefs.h. */
19176
19177/* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19180#ifdef __cplusplus
19181extern "C"
19182#endif
19183char dld_link ();
19184int
19185main ()
19186{
19187return dld_link ();
19188 ;
19189 return 0;
19190}
19191_ACEOF
19192if ac_fn_c_try_link "$LINENO"; then :
19193 ac_cv_lib_dld_dld_link=yes
19194else
19195 ac_cv_lib_dld_dld_link=no
19196fi
19197rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199LIBS=$ac_check_lib_save_LIBS
19200fi
19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19202$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19203if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19204
19205$as_echo "#define HAVE_DLD 1" >>confdefs.h
19206
19207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19208fi
19209
19210
19211
19212
19213LT_DLPREOPEN=
19214if test -n "$LT_DLLOADERS"
19215then
19216 for lt_loader in $LT_DLLOADERS; do
19217 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19218 done
19219
19220$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19221
19222fi
19223
19224
19225LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19226
19227
19228ac_ext=c
19229ac_cpp='$CPP $CPPFLAGS'
19230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
19235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19236$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19237if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19239else
19240 lt_cv_sys_symbol_underscore=no
19241 cat > conftest.$ac_ext <<_LT_EOF
19242void nm_test_func(){}
19243int main(){nm_test_func;return 0;}
19244_LT_EOF
19245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19246 (eval $ac_compile) 2>&5
19247 ac_status=$?
19248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19249 test $ac_status = 0; }; then
19250 # Now try to grab the symbols.
19251 ac_nlist=conftest.nm
19252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19253 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19254 ac_status=$?
19255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19256 test $ac_status = 0; } && test -s "$ac_nlist"; then
19257 # See whether the symbols have a leading underscore.
19258 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19259 lt_cv_sys_symbol_underscore=yes
19260 else
19261 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19262 :
19263 else
19264 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19265 fi
19266 fi
19267 else
19268 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19269 fi
19270 else
19271 echo "configure: failed program was:" >&5
19272 cat conftest.c >&5
19273 fi
19274 rm -rf conftest*
19275
19276fi
19277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19278$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19279 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19280
19281
19282if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19283 if test x"$libltdl_cv_func_dlopen" = xyes ||
19284 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19286$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19287if test "${libltdl_cv_need_uscore+set}" = set; then :
19288 $as_echo_n "(cached) " >&6
19289else
19290 libltdl_cv_need_uscore=unknown
19291 save_LIBS="$LIBS"
19292 LIBS="$LIBS $LIBADD_DLOPEN"
19293 if test "$cross_compiling" = yes; then :
19294 libltdl_cv_need_uscore=cross
19295else
19296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19297 lt_status=$lt_dlunknown
19298 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000019299#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000019300#include "confdefs.h"
19301
19302#if HAVE_DLFCN_H
19303#include <dlfcn.h>
19304#endif
19305
19306#include <stdio.h>
19307
19308#ifdef RTLD_GLOBAL
19309# define LT_DLGLOBAL RTLD_GLOBAL
19310#else
19311# ifdef DL_GLOBAL
19312# define LT_DLGLOBAL DL_GLOBAL
19313# else
19314# define LT_DLGLOBAL 0
19315# endif
19316#endif
19317
19318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19319 find out it does not work in some platform. */
19320#ifndef LT_DLLAZY_OR_NOW
19321# ifdef RTLD_LAZY
19322# define LT_DLLAZY_OR_NOW RTLD_LAZY
19323# else
19324# ifdef DL_LAZY
19325# define LT_DLLAZY_OR_NOW DL_LAZY
19326# else
19327# ifdef RTLD_NOW
19328# define LT_DLLAZY_OR_NOW RTLD_NOW
19329# else
19330# ifdef DL_NOW
19331# define LT_DLLAZY_OR_NOW DL_NOW
19332# else
19333# define LT_DLLAZY_OR_NOW 0
19334# endif
19335# endif
19336# endif
19337# endif
19338#endif
19339
cristy0c60a692010-11-04 01:09:47 +000019340/* When -fvisbility=hidden is used, assume the code has been annotated
19341 correspondingly for the symbols needed. */
19342#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19343void fnord () __attribute__((visibility("default")));
19344#endif
19345
19346void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000019347int main ()
19348{
19349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19350 int status = $lt_dlunknown;
19351
19352 if (self)
19353 {
19354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000019355 else
19356 {
19357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19358 else puts (dlerror ());
19359 }
cristy73bd4a52010-10-05 11:24:23 +000019360 /* dlclose (self); */
19361 }
19362 else
19363 puts (dlerror ());
19364
19365 return status;
19366}
19367_LT_EOF
19368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19369 (eval $ac_link) 2>&5
19370 ac_status=$?
19371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19372 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19373 (./conftest; exit; ) >&5 2>/dev/null
19374 lt_status=$?
19375 case x$lt_status in
19376 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19377 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19378 x$lt_dlunknown|x*) ;;
19379 esac
19380 else :
19381 # compilation failed
19382
19383 fi
19384fi
19385rm -fr conftest*
19386
19387 LIBS="$save_LIBS"
19388
19389fi
19390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19391$as_echo "$libltdl_cv_need_uscore" >&6; }
19392 fi
19393fi
19394
19395if test x"$libltdl_cv_need_uscore" = xyes; then
19396
19397$as_echo "#define NEED_USCORE 1" >>confdefs.h
19398
19399fi
19400
19401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19402$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19403if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19404 $as_echo_n "(cached) " >&6
19405else
19406 # PORTME does your system automatically load deplibs for dlopen?
19407 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19408 # For now, we just catch OSes we know something about -- in the
19409 # future, we'll try test this programmatically.
19410 lt_cv_sys_dlopen_deplibs=unknown
19411 case $host_os in
19412 aix3*|aix4.1.*|aix4.2.*)
19413 # Unknown whether this is true for these versions of AIX, but
19414 # we want this `case' here to explicitly catch those versions.
19415 lt_cv_sys_dlopen_deplibs=unknown
19416 ;;
19417 aix[4-9]*)
19418 lt_cv_sys_dlopen_deplibs=yes
19419 ;;
19420 amigaos*)
19421 case $host_cpu in
19422 powerpc)
19423 lt_cv_sys_dlopen_deplibs=no
19424 ;;
19425 esac
19426 ;;
19427 darwin*)
19428 # Assuming the user has installed a libdl from somewhere, this is true
19429 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19430 lt_cv_sys_dlopen_deplibs=yes
19431 ;;
19432 freebsd* | dragonfly*)
19433 lt_cv_sys_dlopen_deplibs=yes
19434 ;;
cristy0c60a692010-11-04 01:09:47 +000019435 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019436 # GNU and its variants, using gnu ld.so (Glibc)
19437 lt_cv_sys_dlopen_deplibs=yes
19438 ;;
19439 hpux10*|hpux11*)
19440 lt_cv_sys_dlopen_deplibs=yes
19441 ;;
19442 interix*)
19443 lt_cv_sys_dlopen_deplibs=yes
19444 ;;
19445 irix[12345]*|irix6.[01]*)
19446 # Catch all versions of IRIX before 6.2, and indicate that we don't
19447 # know how it worked for any of those versions.
19448 lt_cv_sys_dlopen_deplibs=unknown
19449 ;;
19450 irix*)
19451 # The case above catches anything before 6.2, and it's known that
19452 # at 6.2 and later dlopen does load deplibs.
19453 lt_cv_sys_dlopen_deplibs=yes
19454 ;;
19455 netbsd*)
19456 lt_cv_sys_dlopen_deplibs=yes
19457 ;;
19458 openbsd*)
19459 lt_cv_sys_dlopen_deplibs=yes
19460 ;;
19461 osf[1234]*)
19462 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19463 # it did *not* use an RPATH in a shared library to find objects the
19464 # library depends on, so we explicitly say `no'.
19465 lt_cv_sys_dlopen_deplibs=no
19466 ;;
19467 osf5.0|osf5.0a|osf5.1)
19468 # dlopen *does* load deplibs and with the right loader patch applied
19469 # it even uses RPATH in a shared library to search for shared objects
19470 # that the library depends on, but there's no easy way to know if that
19471 # patch is installed. Since this is the case, all we can really
19472 # say is unknown -- it depends on the patch being installed. If
19473 # it is, this changes to `yes'. Without it, it would be `no'.
19474 lt_cv_sys_dlopen_deplibs=unknown
19475 ;;
19476 osf*)
19477 # the two cases above should catch all versions of osf <= 5.1. Read
19478 # the comments above for what we know about them.
19479 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19480 # is used to find them so we can finally say `yes'.
19481 lt_cv_sys_dlopen_deplibs=yes
19482 ;;
19483 qnx*)
19484 lt_cv_sys_dlopen_deplibs=yes
19485 ;;
19486 solaris*)
19487 lt_cv_sys_dlopen_deplibs=yes
19488 ;;
19489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19490 libltdl_cv_sys_dlopen_deplibs=yes
19491 ;;
19492 esac
19493
19494fi
19495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19496$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19497if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19498
19499$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19500
19501fi
19502
19503:
19504
19505for ac_header in argz.h
19506do :
19507 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19508"
19509if test "x$ac_cv_header_argz_h" = x""yes; then :
19510 cat >>confdefs.h <<_ACEOF
19511#define HAVE_ARGZ_H 1
19512_ACEOF
19513
19514fi
19515
19516done
19517
19518
19519ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19520# include <argz.h>
19521#endif
19522"
19523if test "x$ac_cv_type_error_t" = x""yes; then :
19524
19525cat >>confdefs.h <<_ACEOF
19526#define HAVE_ERROR_T 1
19527_ACEOF
19528
19529
19530else
19531
19532$as_echo "#define error_t int" >>confdefs.h
19533
19534
19535$as_echo "#define __error_t_defined 1" >>confdefs.h
19536
19537fi
19538
19539
19540ARGZ_H=
19541for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19542 argz_next argz_stringify
19543do :
19544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019546if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019547 cat >>confdefs.h <<_ACEOF
19548#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19549_ACEOF
19550
19551else
19552 ARGZ_H=argz.h;
19553
19554 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19555
19556fi
19557done
19558
19559
19560if test -z "$ARGZ_H"; then :
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19562$as_echo_n "checking if argz actually works... " >&6; }
19563if test "${lt_cv_sys_argz_works+set}" = set; then :
19564 $as_echo_n "(cached) " >&6
19565else
19566 case $host_os in #(
19567 *cygwin*)
19568 lt_cv_sys_argz_works=no
19569 if test "$cross_compiling" != no; then
19570 lt_cv_sys_argz_works="guessing no"
19571 else
19572 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19573 save_IFS=$IFS
19574 IFS=-.
19575 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19576 IFS=$save_IFS
19577 lt_os_major=${2-0}
19578 lt_os_minor=${3-0}
19579 lt_os_micro=${4-0}
19580 if test "$lt_os_major" -gt 1 \
19581 || { test "$lt_os_major" -eq 1 \
19582 && { test "$lt_os_minor" -gt 5 \
19583 || { test "$lt_os_minor" -eq 5 \
19584 && test "$lt_os_micro" -gt 24; }; }; }; then
19585 lt_cv_sys_argz_works=yes
19586 fi
19587 fi
19588 ;; #(
19589 *) lt_cv_sys_argz_works=yes ;;
19590 esac
19591fi
19592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19593$as_echo "$lt_cv_sys_argz_works" >&6; }
19594 if test $lt_cv_sys_argz_works = yes; then :
19595
19596$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19597
19598else
19599 ARGZ_H=argz.h
19600
19601
19602 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19603
19604fi
19605fi
19606
19607
19608
19609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19610$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19611if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19612 $as_echo_n "(cached) " >&6
19613else
19614 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19615 libltdl_cv_preloaded_symbols=yes
19616 else
19617 libltdl_cv_preloaded_symbols=no
19618 fi
19619
19620fi
19621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19622$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19623if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19624
19625$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19626
19627fi
19628
19629# Set options
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641# Check whether --with-included_ltdl was given.
19642if test "${with_included_ltdl+set}" = set; then :
19643 withval=$with_included_ltdl;
19644fi
19645
19646
19647if test "x$with_included_ltdl" != xyes; then
19648 # We are not being forced to use the included libltdl sources, so
19649 # decide whether there is a useful installed version we can use.
19650 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19651
19652"
19653if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19654 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19655 #include <ltdl.h>
19656"
19657if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19659$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19660if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19662else
19663 ac_check_lib_save_LIBS=$LIBS
19664LIBS="-lltdl $LIBS"
19665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666/* end confdefs.h. */
19667
19668/* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19671#ifdef __cplusplus
19672extern "C"
19673#endif
19674char lt_dladvise_preload ();
19675int
19676main ()
19677{
19678return lt_dladvise_preload ();
19679 ;
19680 return 0;
19681}
19682_ACEOF
19683if ac_fn_c_try_link "$LINENO"; then :
19684 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19685else
19686 ac_cv_lib_ltdl_lt_dladvise_preload=no
19687fi
19688rm -f core conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690LIBS=$ac_check_lib_save_LIBS
19691fi
19692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19693$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19694if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19695 with_included_ltdl=no
19696else
19697 with_included_ltdl=yes
19698fi
19699
19700else
19701 with_included_ltdl=yes
19702fi
19703
19704else
19705 with_included_ltdl=yes
19706fi
19707
19708
19709fi
19710
19711
19712
19713
19714# Check whether --with-ltdl_include was given.
19715if test "${with_ltdl_include+set}" = set; then :
19716 withval=$with_ltdl_include;
19717fi
19718
19719
19720if test -n "$with_ltdl_include"; then
19721 if test -f "$with_ltdl_include/ltdl.h"; then :
19722 else
cristy98dddb52010-11-04 00:30:15 +000019723 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019724 fi
19725else
19726 with_ltdl_include=no
19727fi
19728
19729
19730# Check whether --with-ltdl_lib was given.
19731if test "${with_ltdl_lib+set}" = set; then :
19732 withval=$with_ltdl_lib;
19733fi
19734
19735
19736if test -n "$with_ltdl_lib"; then
19737 if test -f "$with_ltdl_lib/libltdl.la"; then :
19738 else
cristy98dddb52010-11-04 00:30:15 +000019739 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019740 fi
19741else
19742 with_ltdl_lib=no
19743fi
19744
19745case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19746 ,yes,no,no,)
19747 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000019748 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000019749 "") enable_ltdl_convenience=yes
19750 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19751esac
19752LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19753LTDLDEPS=$LIBLTDL
19754LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19755
19756
19757
19758
19759
19760# For backwards non-gettext consistent compatibility...
19761INCLTDL="$LTDLINCL"
19762
19763
19764 ;;
19765 ,no,no,no,)
19766 # If the included ltdl is not to be used, then use the
19767 # preinstalled libltdl we found.
19768
19769$as_echo "#define HAVE_LTDL 1" >>confdefs.h
19770
19771 LIBLTDL=-lltdl
19772 LTDLDEPS=
19773 LTDLINCL=
19774 ;;
19775 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000019776 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019777 ;;
19778 *) with_included_ltdl=no
19779 LIBLTDL="-L$with_ltdl_lib -lltdl"
19780 LTDLDEPS=
19781 LTDLINCL="-I$with_ltdl_include"
19782 ;;
19783esac
19784INCLTDL="$LTDLINCL"
19785
19786# Report our decision...
19787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19788$as_echo_n "checking where to find libltdl headers... " >&6; }
19789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19790$as_echo "$LTDLINCL" >&6; }
19791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19792$as_echo_n "checking where to find libltdl library... " >&6; }
19793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19794$as_echo "$LIBLTDL" >&6; }
19795
19796
19797
19798# Check whether --enable-ltdl-install was given.
19799if test "${enable_ltdl_install+set}" = set; then :
19800 enableval=$enable_ltdl_install;
19801fi
19802
19803
19804case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19805 *yes*) ;;
19806 *) enable_ltdl_convenience=yes ;;
19807esac
19808
19809 if test x"${enable_ltdl_install-no}" != xno; then
19810 INSTALL_LTDL_TRUE=
19811 INSTALL_LTDL_FALSE='#'
19812else
19813 INSTALL_LTDL_TRUE='#'
19814 INSTALL_LTDL_FALSE=
19815fi
19816
19817 if test x"${enable_ltdl_convenience-no}" != xno; then
19818 CONVENIENCE_LTDL_TRUE=
19819 CONVENIENCE_LTDL_FALSE='#'
19820else
19821 CONVENIENCE_LTDL_TRUE='#'
19822 CONVENIENCE_LTDL_FALSE=
19823fi
19824
19825
19826
19827
19828
19829
cristy73bd4a52010-10-05 11:24:23 +000019830# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19831# the user used. This is so that ltdl.h can pick up the parent projects
19832# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19833# definitions required by ltdl.c.
19834# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19835
19836
19837
19838for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19839do :
19840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19842"
cristy98dddb52010-11-04 00:30:15 +000019843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019844 cat >>confdefs.h <<_ACEOF
19845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19846_ACEOF
19847
19848fi
19849
19850done
19851
19852
19853for ac_func in closedir opendir readdir
19854do :
19855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19856ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019857if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019858 cat >>confdefs.h <<_ACEOF
19859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860_ACEOF
19861
19862else
19863
19864
19865 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19866
19867fi
19868done
19869
19870for ac_func in strlcat strlcpy
19871do :
19872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019875 cat >>confdefs.h <<_ACEOF
19876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877_ACEOF
19878
19879else
19880
19881
19882 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19883
19884fi
19885done
19886
19887
19888
19889cat >>confdefs.h <<_ACEOF
19890#define LT_LIBEXT "$libext"
19891_ACEOF
19892
19893
19894name=ltdl
19895LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19896
19897
19898
19899
19900
19901
19902
19903
19904# Only expand once:
19905
19906
cristy3ed852e2009-09-05 21:47:34 +000019907
19908# Check to see if building shared libraries
19909libtool_build_shared_libs='no'
19910if test "$enable_shared" = 'yes'; then
19911 libtool_build_shared_libs='yes'
19912fi
19913
19914# Check to see if building static libraries
19915libtool_build_static_libs='no'
19916if test "$enable_static" = 'yes'; then
19917 libtool_build_static_libs='yes'
19918fi
19919
cristy73bd4a52010-10-05 11:24:23 +000019920 if test "${libtool_build_shared_libs}" = 'yes'; then
19921 WITH_SHARED_LIBS_TRUE=
19922 WITH_SHARED_LIBS_FALSE='#'
19923else
19924 WITH_SHARED_LIBS_TRUE='#'
19925 WITH_SHARED_LIBS_FALSE=
19926fi
19927
cristy3ed852e2009-09-05 21:47:34 +000019928#
19929# Enable support for building loadable modules
19930#
19931
19932# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019933if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019934 withval=$with_modules; with_modules=$withval
19935else
cristy5a1cefd2010-01-06 20:42:35 +000019936 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019937fi
19938
19939
19940# Only allow building loadable modules if we are building shared libraries
19941if test "$with_modules" != 'no' ; then
19942 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019943 { $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 +000019944$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19945 with_modules='no'
19946 fi
19947fi
19948if test "$with_modules" != 'no'; then
19949
cristy8b350f62009-11-15 23:12:43 +000019950$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019951
19952fi
cristy73bd4a52010-10-05 11:24:23 +000019953 if test "$with_modules" != 'no'; then
19954 WITH_MODULES_TRUE=
19955 WITH_MODULES_FALSE='#'
19956else
19957 WITH_MODULES_TRUE='#'
19958 WITH_MODULES_FALSE=
19959fi
19960
cristy3ed852e2009-09-05 21:47:34 +000019961
19962# Enable building/use of libltdl if we are building shared libraries regardless
19963# of whether modules are built or not.
19964with_ltdl='no'
19965if test "$libtool_build_shared_libs" != 'no'; then
19966 with_ltdl='yes'
19967fi
19968
cristy73bd4a52010-10-05 11:24:23 +000019969 if test "$with_ltdl" != 'no'; then
19970 WITH_LTDL_TRUE=
19971 WITH_LTDL_FALSE='#'
19972else
19973 WITH_LTDL_TRUE='#'
19974 WITH_LTDL_FALSE=
19975fi
19976
cristy3ed852e2009-09-05 21:47:34 +000019977if test "$with_ltdl" != 'no'; then
19978
cristy8b350f62009-11-15 23:12:43 +000019979$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019980
19981
19982 # Set DLLDFLAGS
19983 if test X"$enable_shared" = Xyes; then
19984 DLLDFLAGS=-export-dynamic
19985
19986 fi
19987fi
19988
19989# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000019990# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019991# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019992if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019993 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19994else
19995 enable_delegate_build='no'
19996fi
19997
19998
19999# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020000if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020001 enableval=$enable_deprecated; enable_deprecated=$enableval
20002else
20003 enable_deprecated='no'
20004fi
20005
20006
20007if test "$enable_deprecated" = 'yes'; then
20008
cristy8b350f62009-11-15 23:12:43 +000020009$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020010
20011else
20012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20013fi
20014
20015# Build a version of ImageMagick which operates uninstalled.
20016# Used to build distributions located via MAGICK_HOME / executable path
20017# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020018if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020019 enableval=$enable_installed; enable_installed=$enableval
20020else
20021 enable_installed='yes'
20022fi
20023
20024
20025if test "$enable_installed" = 'yes'; then
20026
cristy8b350f62009-11-15 23:12:43 +000020027$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020028
20029else
20030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20031fi
20032
20033# Permit enciphering and deciphering image pixels.
20034# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020035if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020036 enableval=$enable_cipher; enable_cipher=$enableval
20037else
20038 enable_cipher='yes'
20039fi
20040
20041
20042if test "$enable_cipher" = 'yes'; then
20043
cristy8b350f62009-11-15 23:12:43 +000020044$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020045
20046fi
20047
20048# Build an embeddable version of ImageMagick.
20049# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020050if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020051 enableval=$enable_embeddable; enable_embeddable=$enableval
20052else
20053 enable_embeddable='no'
20054fi
20055
20056
20057if test "$enable_embeddable" = 'yes'; then
20058
cristy8b350f62009-11-15 23:12:43 +000020059$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020060
20061fi
20062
20063# Build a high dynamic range version of ImageMagick.
20064# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020065if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020066 enableval=$enable_hdri; enable_hdri=$enableval
20067else
20068 enable_hdri='no'
20069fi
20070
20071
20072MAGICK_HDRI=""
20073if test "$enable_hdri" = 'yes'; then
20074 MAGICK_HDRI="HDRI"
20075
cristy8b350f62009-11-15 23:12:43 +000020076$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020077
cristyfd9dcd42010-08-08 18:07:02 +000020078 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020079fi
20080
cristy3ed852e2009-09-05 21:47:34 +000020081# Build a version of ImageMagick with assert statements.
20082# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020083if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020084 enableval=$enable_assert; enable_assert=$enableval
20085else
20086 enable_assert='yes'
20087fi
20088
20089
20090if test "$enable_assert" = 'no'; then
20091
cristy8b350f62009-11-15 23:12:43 +000020092$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020093
20094fi
20095
20096# Add configure option --enable-maintainer-mode which enables dependency
20097# checking and generation useful to package maintainers. This is made an
20098# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020099
20100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20101$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20102 # Check whether --enable-maintainer-mode was given.
20103if test "${enable_maintainer_mode+set}" = set; then :
20104 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20105else
20106 USE_MAINTAINER_MODE=no
20107fi
20108
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20110$as_echo "$USE_MAINTAINER_MODE" >&6; }
20111 if test $USE_MAINTAINER_MODE = yes; then
20112 MAINTAINER_MODE_TRUE=
20113 MAINTAINER_MODE_FALSE='#'
20114else
20115 MAINTAINER_MODE_TRUE='#'
20116 MAINTAINER_MODE_FALSE=
20117fi
20118
20119 MAINT=$MAINTAINER_MODE_TRUE
20120
20121
cristy3ed852e2009-09-05 21:47:34 +000020122
20123
20124# Enable ccmalloc memory debugging support
20125# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020126if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020127 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20128else
20129 enable_ccmalloc='no'
20130fi
20131
20132
20133# Enable Electric Fence memory debugging support
20134# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020135if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020136 enableval=$enable_efence; enable_efence=$enableval
20137else
20138 enable_efence='no'
20139fi
20140
20141
20142# Enable prof-based profiling support
20143# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020144if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020145 enableval=$enable_prof; enable_prof=$enableval
20146else
20147 enable_prof='no'
20148fi
20149
20150
20151# Enable gprof-based profiling support
20152# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020153if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020154 enableval=$enable_gprof; enable_gprof=$enableval
20155else
20156 enable_gprof='no'
20157fi
20158
20159
20160# Enable gcov-based profiling support
20161# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020162if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020163 enableval=$enable_gcov; enable_gcov=$enableval
20164else
20165 enable_gcov='no'
20166fi
20167
20168
20169enable_profiling='no'
20170if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20171 enable_profiling='yes'
20172 if test "$libtool_build_shared_libs" = 'yes'; then
20173 echo "Warning: Can not profile code using shared libraries"
20174 fi
20175fi
20176
20177# Magick API method prefix
20178
20179# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020180if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020181 withval=$with_method_prefix; with_method_prefix=$enableval
20182else
20183 with_method_prefix=''
20184fi
20185
20186
20187if test "$with_method_prefix" != ''; then
20188
20189cat >>confdefs.h <<_ACEOF
20190#define NAMESPACE_PREFIX $with_method_prefix
20191_ACEOF
20192
20193fi
20194
20195# Number of bits in a Quantum
20196
20197# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020198if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020199 withval=$with_quantum_depth; with_quantum_depth=$withval
20200else
20201 with_quantum_depth=16
20202fi
20203
20204
20205if test "$with_quantum_depth" != '8'; then
20206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20207fi
20208
20209case "${with_quantum_depth}" in
20210 8 ) ;;
20211 16 ) ;;
20212 32 ) ;;
20213 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020214 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020215esac
cristycdae12a2010-09-19 02:24:31 +000020216if test "$enable_hdri" = 'yes'; then
20217 with_quantum_depth=16
20218fi
cristy3ed852e2009-09-05 21:47:34 +000020219QUANTUM_DEPTH="$with_quantum_depth"
20220
20221cat >>confdefs.h <<_ACEOF
20222#define QUANTUM_DEPTH $QUANTUM_DEPTH
20223_ACEOF
20224
20225
20226# Set pixel cache threshold
20227
20228# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020229if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020230 withval=$with_cache; with_cache=$withval
20231else
20232 with_cache=''
20233fi
20234
20235
20236if test "$with_cache" != ''; then
20237
20238cat >>confdefs.h <<_ACEOF
20239#define PixelCacheThreshold $with_cache
20240_ACEOF
20241
20242 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20243fi
20244
20245# Disable/Enable support for full delegate paths
20246
20247# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020248if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020249 withval=$with_frozenpaths; with_frozenpaths=$withval
20250else
20251 with_frozenpaths='no'
20252fi
20253
20254
20255# Enable build/install of Magick++
20256
20257# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020258if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020259 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20260else
20261 with_magick_plus_plus='yes'
20262fi
20263
20264
20265# Disable build/install of PerlMagick.
20266
20267# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020268if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020269 withval=$with_perl; with_perl=$withval
20270else
cristyb5f4e2f2010-04-25 00:49:11 +000020271 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020272fi
20273
20274
20275# Options to pass when configuring PerlMagick
20276
20277# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020278if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020279 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020280fi
20281
20282
cristy3ed852e2009-09-05 21:47:34 +000020283
20284# Enable umem, object-caching memory allocation library.
20285
20286# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020287if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020288 withval=$with_umem; with_umem=$withval
20289else
20290 with_umem='no'
20291fi
20292
20293if test "$with_umem" != 'yes' ; then
20294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20295fi
20296
20297#
20298# Specify path to shared libstdc++ if not in normal location
20299#
20300
20301# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020302if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020303 withval=$with_libstdc; with_libstdc=$withval
20304else
20305 with_libstdc=''
20306fi
20307
20308
20309if test "$with_libstdc" != ''; then
20310 if test -d "$with_libstdc"; then
20311 LIBSTDCLDFLAGS="-L$with_libstdc"
20312 fi
20313fi
20314
20315
20316# Does gcc required -traditional?
20317if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020319$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020320if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020321 $as_echo_n "(cached) " >&6
20322else
20323 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020325/* end confdefs.h. */
20326#include <sgtty.h>
20327Autoconf TIOCGETP
20328_ACEOF
20329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020330 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020331 ac_cv_prog_gcc_traditional=yes
20332else
20333 ac_cv_prog_gcc_traditional=no
20334fi
20335rm -f conftest*
20336
20337
20338 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020340/* end confdefs.h. */
20341#include <termio.h>
20342Autoconf TCGETA
20343_ACEOF
20344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020345 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020346 ac_cv_prog_gcc_traditional=yes
20347fi
20348rm -f conftest*
20349
20350 fi
20351fi
cristy8b350f62009-11-15 23:12:43 +000020352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020353$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20354 if test $ac_cv_prog_gcc_traditional = yes; then
20355 CC="$CC -traditional"
20356 fi
20357fi
20358
20359
20360########
20361#
20362# Set defines required to build DLLs and modules using MinGW
20363#
20364########
20365# These options are set for multi-thread DLL module build
20366# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20367# module: _DLL
20368# executable/Magick++: _DLL _MAGICKMOD_
20369MODULE_EXTRA_CPPFLAGS=''
20370LIBRARY_EXTRA_CPPFLAGS=''
20371if test "${native_win32_build}" = 'yes'; then
20372 if test "${libtool_build_shared_libs}" = 'yes'; then
20373 CPPFLAGS="$CPPFLAGS -D_DLL"
20374 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20375 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20376 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20377 if test "$with_modules" = 'yes'; then
20378 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20379 else
20380 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20381 fi
20382 else
20383 CPPFLAGS="$CPPFLAGS -D_LIB"
20384 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20385 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20386 fi
20387 if test "$with_threads" = 'yes'; then
20388 CPPFLAGS="$CPPFLAGS -D_MT"
20389 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20390 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20391 fi
20392fi
20393
20394
20395
20396# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020398$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020399if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020400 $as_echo_n "(cached) " >&6
20401else
cristy8b350f62009-11-15 23:12:43 +000020402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020403/* end confdefs.h. */
20404#include <stdlib.h>
20405#include <stdarg.h>
20406#include <string.h>
20407#include <float.h>
20408
20409int
20410main ()
20411{
20412
20413 ;
20414 return 0;
20415}
20416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020417if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020418 ac_cv_header_stdc=yes
20419else
cristy8b350f62009-11-15 23:12:43 +000020420 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020421fi
cristy3ed852e2009-09-05 21:47:34 +000020422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423
20424if test $ac_cv_header_stdc = yes; then
20425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020427/* end confdefs.h. */
20428#include <string.h>
20429
20430_ACEOF
20431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020432 $EGREP "memchr" >/dev/null 2>&1; then :
20433
cristy3ed852e2009-09-05 21:47:34 +000020434else
20435 ac_cv_header_stdc=no
20436fi
20437rm -f conftest*
20438
20439fi
20440
20441if test $ac_cv_header_stdc = yes; then
20442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020444/* end confdefs.h. */
20445#include <stdlib.h>
20446
20447_ACEOF
20448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020449 $EGREP "free" >/dev/null 2>&1; then :
20450
cristy3ed852e2009-09-05 21:47:34 +000020451else
20452 ac_cv_header_stdc=no
20453fi
20454rm -f conftest*
20455
20456fi
20457
20458if test $ac_cv_header_stdc = yes; then
20459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020460 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020461 :
20462else
cristy8b350f62009-11-15 23:12:43 +000020463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020464/* end confdefs.h. */
20465#include <ctype.h>
20466#include <stdlib.h>
20467#if ((' ' & 0x0FF) == 0x020)
20468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20470#else
20471# define ISLOWER(c) \
20472 (('a' <= (c) && (c) <= 'i') \
20473 || ('j' <= (c) && (c) <= 'r') \
20474 || ('s' <= (c) && (c) <= 'z'))
20475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20476#endif
20477
20478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20479int
20480main ()
20481{
20482 int i;
20483 for (i = 0; i < 256; i++)
20484 if (XOR (islower (i), ISLOWER (i))
20485 || toupper (i) != TOUPPER (i))
20486 return 2;
20487 return 0;
20488}
20489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020490if ac_fn_c_try_run "$LINENO"; then :
20491
cristy3ed852e2009-09-05 21:47:34 +000020492else
cristy8b350f62009-11-15 23:12:43 +000020493 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020494fi
cristy8b350f62009-11-15 23:12:43 +000020495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20496 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020497fi
20498
cristy3ed852e2009-09-05 21:47:34 +000020499fi
20500fi
cristy8b350f62009-11-15 23:12:43 +000020501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020502$as_echo "$ac_cv_header_stdc" >&6; }
20503if test $ac_cv_header_stdc = yes; then
20504
cristy8b350f62009-11-15 23:12:43 +000020505$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020506
20507fi
20508
20509if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020510 { $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 +000020511 header files. Compilation cannot proceed. Please install the ANSI C
20512 headers and rerun this script." >&5
20513$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20514 header files. Compilation cannot proceed. Please install the ANSI C
20515 headers and rerun this script." >&2;};
20516fi
cristya0b81c32010-01-22 02:54:33 +000020517
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20519$as_echo_n "checking whether to enable assertions... " >&6; }
20520 # Check whether --enable-assert was given.
20521if test "${enable_assert+set}" = set; then :
20522 enableval=$enable_assert; ac_enable_assert=$enableval
20523 if test "x$enableval" = xno; then :
20524
20525$as_echo "#define NDEBUG 1" >>confdefs.h
20526
20527elif test "x$enableval" != xyes; then :
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20529$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20530 ac_enable_assert=yes
20531fi
20532else
20533 ac_enable_assert=yes
20534fi
20535
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20537$as_echo "$ac_enable_assert" >&6; }
20538
cristy3ed852e2009-09-05 21:47:34 +000020539ac_header_dirent=no
20540for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20541 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020543$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy98dddb52010-11-04 00:30:15 +000020544if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020545 $as_echo_n "(cached) " >&6
20546else
cristy8b350f62009-11-15 23:12:43 +000020547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020548/* end confdefs.h. */
20549#include <sys/types.h>
20550#include <$ac_hdr>
20551
20552int
20553main ()
20554{
20555if ((DIR *) 0)
20556return 0;
20557 ;
20558 return 0;
20559}
20560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020562 eval "$as_ac_Header=yes"
20563else
cristy8b350f62009-11-15 23:12:43 +000020564 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020565fi
cristy3ed852e2009-09-05 21:47:34 +000020566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567fi
cristy8b350f62009-11-15 23:12:43 +000020568eval ac_res=\$$as_ac_Header
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020570$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000020571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020572 cat >>confdefs.h <<_ACEOF
20573#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20574_ACEOF
20575
20576ac_header_dirent=$ac_hdr; break
20577fi
20578
20579done
20580# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20581if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020583$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020584if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020585 $as_echo_n "(cached) " >&6
20586else
20587 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020589/* end confdefs.h. */
20590
20591/* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20594#ifdef __cplusplus
20595extern "C"
20596#endif
20597char opendir ();
20598int
20599main ()
20600{
20601return opendir ();
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606for ac_lib in '' dir; do
20607 if test -z "$ac_lib"; then
20608 ac_res="none required"
20609 else
20610 ac_res=-l$ac_lib
20611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20612 fi
cristy8b350f62009-11-15 23:12:43 +000020613 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020614 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020615fi
cristy8b350f62009-11-15 23:12:43 +000020616rm -f core conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext
20618 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020619 break
20620fi
20621done
cristy8b350f62009-11-15 23:12:43 +000020622if test "${ac_cv_search_opendir+set}" = set; then :
20623
cristy3ed852e2009-09-05 21:47:34 +000020624else
20625 ac_cv_search_opendir=no
20626fi
20627rm conftest.$ac_ext
20628LIBS=$ac_func_search_save_LIBS
20629fi
cristy8b350f62009-11-15 23:12:43 +000020630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020631$as_echo "$ac_cv_search_opendir" >&6; }
20632ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020633if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20635
20636fi
20637
20638else
cristy8b350f62009-11-15 23:12:43 +000020639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020640$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020641if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020642 $as_echo_n "(cached) " >&6
20643else
20644 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020646/* end confdefs.h. */
20647
20648/* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20651#ifdef __cplusplus
20652extern "C"
20653#endif
20654char opendir ();
20655int
20656main ()
20657{
20658return opendir ();
20659 ;
20660 return 0;
20661}
20662_ACEOF
20663for ac_lib in '' x; do
20664 if test -z "$ac_lib"; then
20665 ac_res="none required"
20666 else
20667 ac_res=-l$ac_lib
20668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20669 fi
cristy8b350f62009-11-15 23:12:43 +000020670 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020671 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020672fi
cristy8b350f62009-11-15 23:12:43 +000020673rm -f core conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext
20675 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020676 break
20677fi
20678done
cristy8b350f62009-11-15 23:12:43 +000020679if test "${ac_cv_search_opendir+set}" = set; then :
20680
cristy3ed852e2009-09-05 21:47:34 +000020681else
20682 ac_cv_search_opendir=no
20683fi
20684rm conftest.$ac_ext
20685LIBS=$ac_func_search_save_LIBS
20686fi
cristy8b350f62009-11-15 23:12:43 +000020687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020688$as_echo "$ac_cv_search_opendir" >&6; }
20689ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020690if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20692
20693fi
20694
20695fi
20696
20697
20698# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020699for 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 +000020700do :
20701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20702ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000020703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020704 cat >>confdefs.h <<_ACEOF
20705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706_ACEOF
20707
20708fi
20709
20710done
20711
20712
20713########
20714#
20715# Checks for typedefs, structures, and compiler characteristics.
20716#
20717########
20718
cristy8b350f62009-11-15 23:12:43 +000020719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020720$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020721if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020722 $as_echo_n "(cached) " >&6
20723else
cristy8b350f62009-11-15 23:12:43 +000020724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020725/* end confdefs.h. */
20726
20727#include <stdbool.h>
20728#ifndef bool
20729 "error: bool is not defined"
20730#endif
20731#ifndef false
20732 "error: false is not defined"
20733#endif
20734#if false
20735 "error: false is not 0"
20736#endif
20737#ifndef true
20738 "error: true is not defined"
20739#endif
20740#if true != 1
20741 "error: true is not 1"
20742#endif
20743#ifndef __bool_true_false_are_defined
20744 "error: __bool_true_false_are_defined is not defined"
20745#endif
20746
20747 struct s { _Bool s: 1; _Bool t; } s;
20748
20749 char a[true == 1 ? 1 : -1];
20750 char b[false == 0 ? 1 : -1];
20751 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20752 char d[(bool) 0.5 == true ? 1 : -1];
20753 bool e = &s;
20754 char f[(_Bool) 0.0 == false ? 1 : -1];
20755 char g[true];
20756 char h[sizeof (_Bool)];
20757 char i[sizeof s.t];
20758 enum { j = false, k = true, l = false * true, m = true * 256 };
20759 /* The following fails for
20760 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20761 _Bool n[m];
20762 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20763 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20764# if defined __xlc__ || defined __GNUC__
20765 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20766 reported by James Lemley on 2005-10-05; see
20767 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20768 This test is not quite right, since xlc is allowed to
20769 reject this program, as the initializer for xlcbug is
20770 not one of the forms that C requires support for.
20771 However, doing the test right would require a runtime
20772 test, and that would make cross-compilation harder.
20773 Let us hope that IBM fixes the xlc bug, and also adds
20774 support for this kind of constant expression. In the
20775 meantime, this test will reject xlc, which is OK, since
20776 our stdbool.h substitute should suffice. We also test
20777 this with GCC, where it should work, to detect more
20778 quickly whether someone messes up the test in the
20779 future. */
20780 char digs[] = "0123456789";
20781 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20782# endif
20783 /* Catch a bug in an HP-UX C compiler. See
20784 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20785 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20786 */
20787 _Bool q = true;
20788 _Bool *pq = &q;
20789
20790int
20791main ()
20792{
20793
20794 *pq |= q;
20795 *pq |= ! q;
20796 /* Refer to every declared value, to avoid compiler optimizations. */
20797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20798 + !m + !n + !o + !p + !q + !pq);
20799
20800 ;
20801 return 0;
20802}
20803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020805 ac_cv_header_stdbool_h=yes
20806else
cristy8b350f62009-11-15 23:12:43 +000020807 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020808fi
cristy3ed852e2009-09-05 21:47:34 +000020809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810fi
cristy8b350f62009-11-15 23:12:43 +000020811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020812$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020813ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20814if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020815
20816cat >>confdefs.h <<_ACEOF
20817#define HAVE__BOOL 1
20818_ACEOF
20819
20820
20821fi
20822
20823if test $ac_cv_header_stdbool_h = yes; then
20824
cristy8b350f62009-11-15 23:12:43 +000020825$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020826
20827fi
20828
cristy8b350f62009-11-15 23:12:43 +000020829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020830$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020831if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020832 $as_echo_n "(cached) " >&6
20833else
cristy8b350f62009-11-15 23:12:43 +000020834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020835/* end confdefs.h. */
20836
20837int
20838main ()
20839{
20840
20841volatile int x;
20842int * volatile y = (int *) 0;
20843return !x && !y;
20844 ;
20845 return 0;
20846}
20847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020849 ac_cv_c_volatile=yes
20850else
cristy8b350f62009-11-15 23:12:43 +000020851 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020852fi
cristy3ed852e2009-09-05 21:47:34 +000020853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854fi
cristy8b350f62009-11-15 23:12:43 +000020855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020856$as_echo "$ac_cv_c_volatile" >&6; }
20857if test $ac_cv_c_volatile = no; then
20858
cristy8b350f62009-11-15 23:12:43 +000020859$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020860
20861fi
20862
cristy8b350f62009-11-15 23:12:43 +000020863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020864$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020865if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 $as_echo_n "(cached) " >&6
20867else
cristy8b350f62009-11-15 23:12:43 +000020868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020869/* end confdefs.h. */
20870#define x(y) #y
20871
20872char *s = x(teststring);
20873_ACEOF
20874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020875 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020876 ac_cv_c_stringize=no
20877else
20878 ac_cv_c_stringize=yes
20879fi
20880rm -f conftest*
20881
20882fi
cristy8b350f62009-11-15 23:12:43 +000020883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020884$as_echo "$ac_cv_c_stringize" >&6; }
20885if test $ac_cv_c_stringize = yes; then
20886
cristy8b350f62009-11-15 23:12:43 +000020887$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020888
20889fi
20890
cristy8b350f62009-11-15 23:12:43 +000020891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020892$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020893if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020894 $as_echo_n "(cached) " >&6
20895else
cristy8b350f62009-11-15 23:12:43 +000020896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020897/* end confdefs.h. */
20898#include <sys/types.h>
20899#include <sys/stat.h>
20900
20901#if defined S_ISBLK && defined S_IFDIR
20902extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20903#endif
20904
20905#if defined S_ISBLK && defined S_IFCHR
20906extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20907#endif
20908
20909#if defined S_ISLNK && defined S_IFREG
20910extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20911#endif
20912
20913#if defined S_ISSOCK && defined S_IFREG
20914extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20915#endif
20916
20917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020918if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020919 ac_cv_header_stat_broken=no
20920else
cristy8b350f62009-11-15 23:12:43 +000020921 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020922fi
cristy3ed852e2009-09-05 21:47:34 +000020923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924fi
cristy8b350f62009-11-15 23:12:43 +000020925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020926$as_echo "$ac_cv_header_stat_broken" >&6; }
20927if test $ac_cv_header_stat_broken = yes; then
20928
cristy8b350f62009-11-15 23:12:43 +000020929$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020930
20931fi
20932
cristy8b350f62009-11-15 23:12:43 +000020933{ $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 +000020934$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020935if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020936 $as_echo_n "(cached) " >&6
20937else
cristy8b350f62009-11-15 23:12:43 +000020938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020939/* end confdefs.h. */
20940#include <sys/types.h>
20941#include <sys/time.h>
20942#include <time.h>
20943
20944int
20945main ()
20946{
20947if ((struct tm *) 0)
20948return 0;
20949 ;
20950 return 0;
20951}
20952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020954 ac_cv_header_time=yes
20955else
cristy8b350f62009-11-15 23:12:43 +000020956 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020957fi
cristy3ed852e2009-09-05 21:47:34 +000020958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959fi
cristy8b350f62009-11-15 23:12:43 +000020960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020961$as_echo "$ac_cv_header_time" >&6; }
20962if test $ac_cv_header_time = yes; then
20963
cristy8b350f62009-11-15 23:12:43 +000020964$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020965
20966fi
20967
cristy8b350f62009-11-15 23:12:43 +000020968{ $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 +000020969$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020970if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020971 $as_echo_n "(cached) " >&6
20972else
cristy8b350f62009-11-15 23:12:43 +000020973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020974/* end confdefs.h. */
20975#include <sys/types.h>
20976#include <time.h>
20977
20978int
20979main ()
20980{
20981struct tm tm;
20982 int *p = &tm.tm_sec;
20983 return !p;
20984 ;
20985 return 0;
20986}
20987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020989 ac_cv_struct_tm=time.h
20990else
cristy8b350f62009-11-15 23:12:43 +000020991 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020992fi
cristy3ed852e2009-09-05 21:47:34 +000020993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994fi
cristy8b350f62009-11-15 23:12:43 +000020995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020996$as_echo "$ac_cv_struct_tm" >&6; }
20997if test $ac_cv_struct_tm = sys/time.h; then
20998
cristy8b350f62009-11-15 23:12:43 +000020999$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021000
21001fi
21002
cristy92703d82010-04-26 00:18:18 +000021003ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21004#include <$ac_cv_struct_tm>
21005
21006"
21007if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21008
21009cat >>confdefs.h <<_ACEOF
21010#define HAVE_STRUCT_TM_TM_ZONE 1
21011_ACEOF
21012
21013
21014fi
21015
21016if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21017
21018$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21019
21020else
21021 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21022"
21023if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21024 ac_have_decl=1
21025else
21026 ac_have_decl=0
21027fi
21028
21029cat >>confdefs.h <<_ACEOF
21030#define HAVE_DECL_TZNAME $ac_have_decl
21031_ACEOF
21032
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21034$as_echo_n "checking for tzname... " >&6; }
21035if test "${ac_cv_var_tzname+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21037else
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039/* end confdefs.h. */
21040#include <time.h>
21041#if !HAVE_DECL_TZNAME
21042extern char *tzname[];
21043#endif
21044
21045int
21046main ()
21047{
21048return tzname[0][0];
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_link "$LINENO"; then :
21054 ac_cv_var_tzname=yes
21055else
21056 ac_cv_var_tzname=no
21057fi
21058rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21060fi
21061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21062$as_echo "$ac_cv_var_tzname" >&6; }
21063 if test $ac_cv_var_tzname = yes; then
21064
21065$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21066
21067 fi
21068fi
21069
cristy8b350f62009-11-15 23:12:43 +000021070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021071$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021072if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021073 $as_echo_n "(cached) " >&6
21074else
21075 echo '#! /bin/cat
21076exit 69
21077' >conftest
21078chmod u+x conftest
21079(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21080if test $? -ne 69; then
21081 ac_cv_sys_interpreter=yes
21082else
21083 ac_cv_sys_interpreter=no
21084fi
21085rm -f conftest
21086fi
cristy8b350f62009-11-15 23:12:43 +000021087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021088$as_echo "$ac_cv_sys_interpreter" >&6; }
21089interpval=$ac_cv_sys_interpreter
21090
21091
cristy3ed852e2009-09-05 21:47:34 +000021092# If the C compiler supports the keyword inline, do nothing. Otherwise
21093# define inline to __inline__ or __inline if it accepts one of those,
21094# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021097if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021098 $as_echo_n "(cached) " >&6
21099else
21100 ac_cv_c_inline=no
21101for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021103/* end confdefs.h. */
21104#ifndef __cplusplus
21105typedef int foo_t;
21106static $ac_kw foo_t static_foo () {return 0; }
21107$ac_kw foo_t foo () {return 0; }
21108#endif
21109
21110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021111if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021113fi
cristy3ed852e2009-09-05 21:47:34 +000021114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 test "$ac_cv_c_inline" != no && break
21116done
21117
21118fi
cristy8b350f62009-11-15 23:12:43 +000021119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021120$as_echo "$ac_cv_c_inline" >&6; }
21121
cristy3ed852e2009-09-05 21:47:34 +000021122case $ac_cv_c_inline in
21123 inline | yes) ;;
21124 *)
21125 case $ac_cv_c_inline in
21126 no) ac_val=;;
21127 *) ac_val=$ac_cv_c_inline;;
21128 esac
21129 cat >>confdefs.h <<_ACEOF
21130#ifndef __cplusplus
21131#define inline $ac_val
21132#endif
21133_ACEOF
21134 ;;
21135esac
21136
21137
21138# If the C compiler supports the keyword restrict, do nothing. Otherwise
21139# define restrict to __restrict__ or __restrict if it accepts one of those,
21140# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021142$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021143if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 $as_echo_n "(cached) " >&6
21145else
21146 ac_cv_c_restrict=no
21147 # The order here caters to the fact that C++ does not require restrict.
21148 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021150/* end confdefs.h. */
21151typedef int * int_ptr;
21152 int foo (int_ptr $ac_kw ip) {
21153 return ip[0];
21154 }
21155int
21156main ()
21157{
21158int s[1];
21159 int * $ac_kw t = s;
21160 t[0] = 0;
21161 return foo(t)
21162 ;
21163 return 0;
21164}
21165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021167 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021168fi
cristy3ed852e2009-09-05 21:47:34 +000021169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170 test "$ac_cv_c_restrict" != no && break
21171 done
21172
21173fi
cristy8b350f62009-11-15 23:12:43 +000021174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021175$as_echo "$ac_cv_c_restrict" >&6; }
21176
cristy3ed852e2009-09-05 21:47:34 +000021177 case $ac_cv_c_restrict in
21178 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021179 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021180 ;;
21181 *) cat >>confdefs.h <<_ACEOF
21182#define restrict $ac_cv_c_restrict
21183_ACEOF
21184 ;;
21185 esac
21186
21187
21188# If words are stored with the most significant byte first (like
21189# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021191$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021192if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021193 $as_echo_n "(cached) " >&6
21194else
21195 ac_cv_c_bigendian=unknown
21196 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021198/* end confdefs.h. */
21199#ifndef __APPLE_CC__
21200 not a universal capable compiler
21201 #endif
21202 typedef int dummy;
21203
21204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021206
21207 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021208 # there are at least two -arch flags with different values.
21209 ac_arch=
21210 ac_prev=
21211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21212 if test -n "$ac_prev"; then
21213 case $ac_word in
21214 i?86 | x86_64 | ppc | ppc64)
21215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21216 ac_arch=$ac_word
21217 else
21218 ac_cv_c_bigendian=universal
21219 break
21220 fi
21221 ;;
21222 esac
21223 ac_prev=
21224 elif test "x$ac_word" = "x-arch"; then
21225 ac_prev=arch
21226 fi
21227 done
cristy3ed852e2009-09-05 21:47:34 +000021228fi
cristy3ed852e2009-09-05 21:47:34 +000021229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 if test $ac_cv_c_bigendian = unknown; then
21231 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021233/* end confdefs.h. */
21234#include <sys/types.h>
21235 #include <sys/param.h>
21236
21237int
21238main ()
21239{
21240#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21242 && LITTLE_ENDIAN)
21243 bogus endian macros
21244 #endif
21245
21246 ;
21247 return 0;
21248}
21249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021253/* end confdefs.h. */
21254#include <sys/types.h>
21255 #include <sys/param.h>
21256
21257int
21258main ()
21259{
21260#if BYTE_ORDER != BIG_ENDIAN
21261 not big endian
21262 #endif
21263
21264 ;
21265 return 0;
21266}
21267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 ac_cv_c_bigendian=yes
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021272fi
cristy3ed852e2009-09-05 21:47:34 +000021273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021274fi
cristy3ed852e2009-09-05 21:47:34 +000021275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 fi
21277 if test $ac_cv_c_bigendian = unknown; then
21278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021280/* end confdefs.h. */
21281#include <limits.h>
21282
21283int
21284main ()
21285{
21286#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21287 bogus endian macros
21288 #endif
21289
21290 ;
21291 return 0;
21292}
21293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021295 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021297/* end confdefs.h. */
21298#include <limits.h>
21299
21300int
21301main ()
21302{
21303#ifndef _BIG_ENDIAN
21304 not big endian
21305 #endif
21306
21307 ;
21308 return 0;
21309}
21310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 ac_cv_c_bigendian=yes
21313else
cristy8b350f62009-11-15 23:12:43 +000021314 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021315fi
cristy3ed852e2009-09-05 21:47:34 +000021316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021317fi
cristy3ed852e2009-09-05 21:47:34 +000021318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 if test $ac_cv_c_bigendian = unknown; then
21321 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021322 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021323 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021325/* end confdefs.h. */
21326short int ascii_mm[] =
21327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21328 short int ascii_ii[] =
21329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21330 int use_ascii (int i) {
21331 return ascii_mm[i] + ascii_ii[i];
21332 }
21333 short int ebcdic_ii[] =
21334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21335 short int ebcdic_mm[] =
21336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21337 int use_ebcdic (int i) {
21338 return ebcdic_mm[i] + ebcdic_ii[i];
21339 }
21340 extern int foo;
21341
21342int
21343main ()
21344{
21345return use_ascii (foo) == use_ebcdic (foo);
21346 ;
21347 return 0;
21348}
21349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21352 ac_cv_c_bigendian=yes
21353 fi
21354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21355 if test "$ac_cv_c_bigendian" = unknown; then
21356 ac_cv_c_bigendian=no
21357 else
21358 # finding both strings is unlikely to happen, but who knows?
21359 ac_cv_c_bigendian=unknown
21360 fi
21361 fi
cristy3ed852e2009-09-05 21:47:34 +000021362fi
cristy3ed852e2009-09-05 21:47:34 +000021363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364else
cristy8b350f62009-11-15 23:12:43 +000021365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021366/* end confdefs.h. */
21367$ac_includes_default
21368int
21369main ()
21370{
21371
21372 /* Are we little or big endian? From Harbison&Steele. */
21373 union
21374 {
21375 long int l;
21376 char c[sizeof (long int)];
21377 } u;
21378 u.l = 1;
21379 return u.c[sizeof (long int) - 1] == 1;
21380
21381 ;
21382 return 0;
21383}
21384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021385if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 ac_cv_c_bigendian=no
21387else
cristy8b350f62009-11-15 23:12:43 +000021388 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021389fi
cristy8b350f62009-11-15 23:12:43 +000021390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21391 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021392fi
21393
cristy3ed852e2009-09-05 21:47:34 +000021394 fi
21395fi
cristy8b350f62009-11-15 23:12:43 +000021396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021397$as_echo "$ac_cv_c_bigendian" >&6; }
21398 case $ac_cv_c_bigendian in #(
21399 yes)
cristy8b350f62009-11-15 23:12:43 +000021400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021401;; #(
21402 no)
21403 ;; #(
21404 universal)
21405
cristy8b350f62009-11-15 23:12:43 +000021406$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021407
21408 ;; #(
21409 *)
cristy98dddb52010-11-04 00:30:15 +000021410 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021412 esac
21413
21414
21415# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021416ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21417if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021418
cristy3ed852e2009-09-05 21:47:34 +000021419else
21420
21421cat >>confdefs.h <<_ACEOF
21422#define mode_t int
21423_ACEOF
21424
21425fi
21426
21427
21428# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021429ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21430if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021431
cristy3ed852e2009-09-05 21:47:34 +000021432else
21433
21434cat >>confdefs.h <<_ACEOF
21435#define off_t long int
21436_ACEOF
21437
21438fi
21439
21440
21441# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021442ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21443if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021444
cristy3ed852e2009-09-05 21:47:34 +000021445else
21446
21447cat >>confdefs.h <<_ACEOF
21448#define pid_t int
21449_ACEOF
21450
21451fi
21452
21453
21454# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021455ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21456if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021457
cristy3ed852e2009-09-05 21:47:34 +000021458else
21459
21460cat >>confdefs.h <<_ACEOF
21461#define size_t unsigned int
21462_ACEOF
21463
21464fi
21465
21466
21467# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021468ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21469if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021470
cristy3ed852e2009-09-05 21:47:34 +000021471else
21472
21473cat >>confdefs.h <<_ACEOF
21474#define ssize_t int
21475_ACEOF
21476
21477fi
21478
21479
21480# If the C compiler supports a working long double type with more range
21481# or precision than the double type, define HAVE_LONG_DOUBLE.
21482
cristy8b350f62009-11-15 23:12:43 +000021483 { $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 +000021484$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021485if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 $as_echo_n "(cached) " >&6
21487else
cristy8b350f62009-11-15 23:12:43 +000021488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021489/* end confdefs.h. */
21490#include <float.h>
21491 long double const a[] =
21492 {
21493 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21494 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21495 };
21496 long double
21497 f (long double x)
21498 {
21499 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21500 + (x ? f (x) : 'c'));
21501 }
21502
21503int
21504main ()
21505{
21506static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21507 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21508 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21509 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21510 && (int) LDBL_EPSILON == 0
21511 )];
21512test_array [0] = 0
21513
21514 ;
21515 return 0;
21516}
21517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021518if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 ac_cv_type_long_double_wider=yes
21520else
cristy8b350f62009-11-15 23:12:43 +000021521 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021522fi
cristy3ed852e2009-09-05 21:47:34 +000021523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524fi
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo "$ac_cv_type_long_double_wider" >&6; }
21527 if test $ac_cv_type_long_double_wider = yes; then
21528
cristy8b350f62009-11-15 23:12:43 +000021529$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021530
21531 fi
21532
21533
21534# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21535# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021537$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021538if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 $as_echo_n "(cached) " >&6
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543$ac_includes_default
21544int
21545main ()
21546{
21547static int test_array [1 - 2 * !(((char) -1) < 0)];
21548test_array [0] = 0
21549
21550 ;
21551 return 0;
21552}
21553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021554if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 ac_cv_c_char_unsigned=no
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021558fi
cristy3ed852e2009-09-05 21:47:34 +000021559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560fi
cristy8b350f62009-11-15 23:12:43 +000021561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo "$ac_cv_c_char_unsigned" >&6; }
21563if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021564 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021565
21566fi
21567
21568
21569# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21570# The cast to long int works around a bug in the HP C Compiler
21571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21573# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021576if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 $as_echo_n "(cached) " >&6
21578else
cristy8b350f62009-11-15 23:12:43 +000021579 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 +000021580
cristy3ed852e2009-09-05 21:47:34 +000021581else
cristy8b350f62009-11-15 23:12:43 +000021582 if test "$ac_cv_type_signed_short" = yes; then
21583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021585as_fn_error 77 "cannot compute sizeof (signed short)
21586See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021587 else
21588 ac_cv_sizeof_signed_short=0
21589 fi
21590fi
cristy8b350f62009-11-15 23:12:43 +000021591
cristy3ed852e2009-09-05 21:47:34 +000021592fi
cristy8b350f62009-11-15 23:12:43 +000021593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21595
21596
21597
21598cat >>confdefs.h <<_ACEOF
21599#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21600_ACEOF
21601
21602
21603
21604# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21605# The cast to long int works around a bug in the HP C Compiler
21606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21608# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021610$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021611if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 $as_echo_n "(cached) " >&6
21613else
cristy8b350f62009-11-15 23:12:43 +000021614 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 +000021615
cristy3ed852e2009-09-05 21:47:34 +000021616else
cristy8b350f62009-11-15 23:12:43 +000021617 if test "$ac_cv_type_unsigned_short" = yes; then
21618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021620as_fn_error 77 "cannot compute sizeof (unsigned short)
21621See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021622 else
21623 ac_cv_sizeof_unsigned_short=0
21624 fi
21625fi
cristy8b350f62009-11-15 23:12:43 +000021626
cristy3ed852e2009-09-05 21:47:34 +000021627fi
cristy8b350f62009-11-15 23:12:43 +000021628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021629$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21630
21631
21632
21633cat >>confdefs.h <<_ACEOF
21634#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21635_ACEOF
21636
21637
21638
21639# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21640# The cast to long int works around a bug in the HP C Compiler
21641# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21642# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21643# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021645$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021646if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 $as_echo_n "(cached) " >&6
21648else
cristy8b350f62009-11-15 23:12:43 +000021649 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 +000021650
cristy3ed852e2009-09-05 21:47:34 +000021651else
cristy8b350f62009-11-15 23:12:43 +000021652 if test "$ac_cv_type_signed_int" = yes; then
21653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021655as_fn_error 77 "cannot compute sizeof (signed int)
21656See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021657 else
21658 ac_cv_sizeof_signed_int=0
21659 fi
21660fi
cristy8b350f62009-11-15 23:12:43 +000021661
cristy3ed852e2009-09-05 21:47:34 +000021662fi
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21665
21666
21667
21668cat >>confdefs.h <<_ACEOF
21669#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21670_ACEOF
21671
21672
21673
21674# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21675# The cast to long int works around a bug in the HP C Compiler
21676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21678# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021680$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021681if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 $as_echo_n "(cached) " >&6
21683else
cristy8b350f62009-11-15 23:12:43 +000021684 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 +000021685
cristy3ed852e2009-09-05 21:47:34 +000021686else
cristy8b350f62009-11-15 23:12:43 +000021687 if test "$ac_cv_type_unsigned_int" = yes; then
21688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021690as_fn_error 77 "cannot compute sizeof (unsigned int)
21691See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021692 else
21693 ac_cv_sizeof_unsigned_int=0
21694 fi
21695fi
cristy8b350f62009-11-15 23:12:43 +000021696
cristy3ed852e2009-09-05 21:47:34 +000021697fi
cristy8b350f62009-11-15 23:12:43 +000021698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021699$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21700
21701
21702
21703cat >>confdefs.h <<_ACEOF
21704#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21705_ACEOF
21706
21707
21708
21709# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21710# The cast to long int works around a bug in the HP C Compiler
21711# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21712# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21713# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021715$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021716if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021717 $as_echo_n "(cached) " >&6
21718else
cristy8b350f62009-11-15 23:12:43 +000021719 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 +000021720
cristy3ed852e2009-09-05 21:47:34 +000021721else
cristy8b350f62009-11-15 23:12:43 +000021722 if test "$ac_cv_type_signed_long" = yes; then
21723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021725as_fn_error 77 "cannot compute sizeof (signed long)
21726See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021727 else
21728 ac_cv_sizeof_signed_long=0
21729 fi
21730fi
cristy8b350f62009-11-15 23:12:43 +000021731
cristy3ed852e2009-09-05 21:47:34 +000021732fi
cristy8b350f62009-11-15 23:12:43 +000021733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021734$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21735
21736
21737
21738cat >>confdefs.h <<_ACEOF
21739#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21740_ACEOF
21741
21742
21743
21744# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21745# The cast to long int works around a bug in the HP C Compiler
21746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21748# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021750$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021751if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 $as_echo_n "(cached) " >&6
21753else
cristy8b350f62009-11-15 23:12:43 +000021754 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 +000021755
cristy3ed852e2009-09-05 21:47:34 +000021756else
cristy8b350f62009-11-15 23:12:43 +000021757 if test "$ac_cv_type_unsigned_long" = yes; then
21758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021760as_fn_error 77 "cannot compute sizeof (unsigned long)
21761See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021762 else
21763 ac_cv_sizeof_unsigned_long=0
21764 fi
21765fi
cristy8b350f62009-11-15 23:12:43 +000021766
cristy3ed852e2009-09-05 21:47:34 +000021767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21770
21771
21772
21773cat >>confdefs.h <<_ACEOF
21774#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21775_ACEOF
21776
21777
21778
21779# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21780# 'signed long long' is not supported then the value defined is zero.
21781# The cast to long int works around a bug in the HP C Compiler
21782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21784# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021786$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021787if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021788 $as_echo_n "(cached) " >&6
21789else
cristy8b350f62009-11-15 23:12:43 +000021790 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 +000021791
cristy3ed852e2009-09-05 21:47:34 +000021792else
cristy8b350f62009-11-15 23:12:43 +000021793 if test "$ac_cv_type_signed_long_long" = yes; then
21794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021796as_fn_error 77 "cannot compute sizeof (signed long long)
21797See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021798 else
21799 ac_cv_sizeof_signed_long_long=0
21800 fi
21801fi
cristy8b350f62009-11-15 23:12:43 +000021802
cristy3ed852e2009-09-05 21:47:34 +000021803fi
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21806
21807
21808
21809cat >>confdefs.h <<_ACEOF
21810#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21811_ACEOF
21812
21813
21814
21815# Obtain size of a 'unsigned long long' and define as
21816# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21817# supported then the value defined is zero.
21818# The cast to long int works around a bug in the HP C Compiler
21819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21821# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021824if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 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 +000021828
cristy3ed852e2009-09-05 21:47:34 +000021829else
cristy8b350f62009-11-15 23:12:43 +000021830 if test "$ac_cv_type_unsigned_long_long" = yes; then
21831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021833as_fn_error 77 "cannot compute sizeof (unsigned long long)
21834See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021835 else
21836 ac_cv_sizeof_unsigned_long_long=0
21837 fi
21838fi
cristy8b350f62009-11-15 23:12:43 +000021839
cristy3ed852e2009-09-05 21:47:34 +000021840fi
cristy8b350f62009-11-15 23:12:43 +000021841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021842$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21843
21844
21845
21846cat >>confdefs.h <<_ACEOF
21847#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21848_ACEOF
21849
21850
21851
21852# Obtain size of off_t and define as SIZEOF_OFF_T
21853# The cast to long int works around a bug in the HP C Compiler
21854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21856# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021858$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021859if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 $as_echo_n "(cached) " >&6
21861else
cristy8b350f62009-11-15 23:12:43 +000021862 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 +000021863
cristy3ed852e2009-09-05 21:47:34 +000021864else
cristy8b350f62009-11-15 23:12:43 +000021865 if test "$ac_cv_type_off_t" = yes; then
21866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021868as_fn_error 77 "cannot compute sizeof (off_t)
21869See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021870 else
21871 ac_cv_sizeof_off_t=0
21872 fi
21873fi
cristy8b350f62009-11-15 23:12:43 +000021874
cristy3ed852e2009-09-05 21:47:34 +000021875fi
cristy8b350f62009-11-15 23:12:43 +000021876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021877$as_echo "$ac_cv_sizeof_off_t" >&6; }
21878
21879
21880
21881cat >>confdefs.h <<_ACEOF
21882#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21883_ACEOF
21884
21885
21886
21887# Obtain size of size_t and define as SIZEOF_SIZE_T
21888# The cast to long int works around a bug in the HP C Compiler
21889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21891# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021893$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021894if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 $as_echo_n "(cached) " >&6
21896else
cristy8b350f62009-11-15 23:12:43 +000021897 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 +000021898
cristy3ed852e2009-09-05 21:47:34 +000021899else
cristy8b350f62009-11-15 23:12:43 +000021900 if test "$ac_cv_type_size_t" = yes; then
21901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021903as_fn_error 77 "cannot compute sizeof (size_t)
21904See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021905 else
21906 ac_cv_sizeof_size_t=0
21907 fi
21908fi
cristy8b350f62009-11-15 23:12:43 +000021909
cristy3ed852e2009-09-05 21:47:34 +000021910fi
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo "$ac_cv_sizeof_size_t" >&6; }
21913
21914
21915
21916cat >>confdefs.h <<_ACEOF
21917#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21918_ACEOF
21919
21920
21921
cristy330e9352010-06-01 18:42:49 +000021922# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21923# The cast to long int works around a bug in the HP C Compiler
21924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21926# This bug is HP SR number 8606223364.
21927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21928$as_echo_n "checking size of ssize_t... " >&6; }
21929if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21930 $as_echo_n "(cached) " >&6
21931else
21932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21933
21934else
21935 if test "$ac_cv_type_ssize_t" = yes; then
21936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021938as_fn_error 77 "cannot compute sizeof (ssize_t)
21939See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021940 else
21941 ac_cv_sizeof_ssize_t=0
21942 fi
21943fi
21944
21945fi
21946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21947$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21948
21949
21950
21951cat >>confdefs.h <<_ACEOF
21952#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21953_ACEOF
21954
21955
21956
cristy3ed852e2009-09-05 21:47:34 +000021957# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21958# The cast to long int works around a bug in the HP C Compiler
21959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21961# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021963$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021964if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021965 $as_echo_n "(cached) " >&6
21966else
cristy8b350f62009-11-15 23:12:43 +000021967 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 +000021968
cristy3ed852e2009-09-05 21:47:34 +000021969else
cristy8b350f62009-11-15 23:12:43 +000021970 if test "$ac_cv_type_unsigned_intp" = yes; then
21971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021973as_fn_error 77 "cannot compute sizeof (unsigned int*)
21974See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021975 else
21976 ac_cv_sizeof_unsigned_intp=0
21977 fi
21978fi
cristy8b350f62009-11-15 23:12:43 +000021979
cristy3ed852e2009-09-05 21:47:34 +000021980fi
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21983
21984
21985
21986cat >>confdefs.h <<_ACEOF
21987#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21988_ACEOF
21989
21990
21991
21992#
21993# Compute sized types for current CPU and compiler options.
21994#
21995
cristy8b350f62009-11-15 23:12:43 +000021996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021997$as_echo_n "checking for signed 8-bit type... " >&6; }
21998INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo "$INT8_T" >&6; }
22001
22002
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22005UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo "$UINT8_T" >&6; }
22008
22009
cristy8b350f62009-11-15 23:12:43 +000022010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022011$as_echo_n "checking for signed 16-bit type... " >&6; }
22012INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo "$INT16_T" >&6; }
22015
22016
cristy8b350f62009-11-15 23:12:43 +000022017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022018$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22019UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo "$UINT16_T" >&6; }
22022
22023
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking for signed 32-bit type... " >&6; }
22026INT32_T='none'
22027if test $ac_cv_sizeof_signed_int -eq 4; then
22028 INT32_T='signed int'
22029elif test $ac_cv_sizeof_signed_long -eq 4; then
22030 INT32_T='signed long'
22031fi
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$INT32_T" >&6; }
22034
22035
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22038UINT32_T='none'
22039if test $ac_cv_sizeof_unsigned_int -eq 4; then
22040 UINT32_T='unsigned int'
22041elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22042 UINT32_T='unsigned long'
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$UINT32_T" >&6; }
22046
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo_n "checking for signed 64-bit type... " >&6; }
22050INT64_T='none'
22051if test $ac_cv_sizeof_signed_long -eq 8; then
22052 INT64_T='signed long'
22053elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22054 INT64_T='signed long long'
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$INT64_T" >&6; }
22058
22059
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22062UINT64_T='none'
22063if test $ac_cv_sizeof_unsigned_long -eq 8; then
22064 UINT64_T='unsigned long'
22065elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22066 UINT64_T='unsigned long long'
22067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$UINT64_T" >&6; }
22070
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for unsigned maximum type... " >&6; }
22074UINTMAX_T='none'
22075if test "$UINT64_T" != 'none'; then
22076 UINTMAX_T=$UINT64_T
22077elif test "$UINT32_T" != 'none'; then
22078 UINTMAX_T=$UINT32_T
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$UINTMAX_T" >&6; }
22082
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking for pointer difference type... " >&6; }
22086UINTPTR_T='none'
22087if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22088 UINTPTR_T='unsigned long'
22089elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22090 UINTPTR_T='unsigned long long'
22091fi
cristy8b350f62009-11-15 23:12:43 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo "$UINTPTR_T" >&6; }
22094
22095
cristy8b350f62009-11-15 23:12:43 +000022096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022097$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022099/* end confdefs.h. */
22100
22101int
22102main ()
22103{
22104{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22105 ;
22106 return 0;
22107}
22108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022109if ac_fn_c_try_compile "$LINENO"; then :
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo "yes" >&6; }
22112else
cristy8b350f62009-11-15 23:12:43 +000022113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022116$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022118/* end confdefs.h. */
22119
22120int
22121main ()
22122{
22123{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22124 ;
22125 return 0;
22126}
22127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022128if ac_fn_c_try_compile "$LINENO"; then :
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022130$as_echo "yes" >&6; }
22131
cristy8b350f62009-11-15 23:12:43 +000022132$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022133
22134else
cristy8b350f62009-11-15 23:12:43 +000022135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022136$as_echo "no" >&6; }
22137
cristy8b350f62009-11-15 23:12:43 +000022138$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022139
22140fi
cristy3ed852e2009-09-05 21:47:34 +000022141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142fi
cristy3ed852e2009-09-05 21:47:34 +000022143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144
22145########
22146#
22147# Check for functions
22148#
22149########
cristy73bd4a52010-10-05 11:24:23 +000022150for ac_header in stdlib.h unistd.h
22151do :
22152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22153ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022154if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022155 cat >>confdefs.h <<_ACEOF
22156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22157_ACEOF
22158
22159fi
22160
22161done
22162
22163for ac_func in getpagesize
22164do :
22165 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22166if test "x$ac_cv_func_getpagesize" = x""yes; then :
22167 cat >>confdefs.h <<_ACEOF
22168#define HAVE_GETPAGESIZE 1
22169_ACEOF
22170
22171fi
22172done
22173
22174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22175$as_echo_n "checking for working mmap file i/o... " >&6; }
22176if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22177 $as_echo_n "(cached) " >&6
22178else
22179 if test "$cross_compiling" = yes; then :
22180 magick_cv_func_mmap_fileio=no
22181else
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183/* end confdefs.h. */
22184$ac_includes_default
22185/* malloc might have been renamed as rpl_malloc. */
22186#undef malloc
22187
22188/*
22189 This test is derived from GNU Autoconf's similar macro.
22190 The purpose of this test is to verify that files may be memory
22191 mapped, and that memory mapping and file I/O are coherent.
22192
22193 The test creates a test file, memory maps the file, updates
22194 the file using the memory map, and then reads the file using
22195 file I/O to verify that the file contains the updates.
22196*/
22197
22198#include <fcntl.h>
22199#include <sys/mman.h>
22200
22201#if !STDC_HEADERS && !HAVE_STDLIB_H
22202char *malloc ();
22203#endif
22204
22205/* This mess was copied from the GNU getpagesize.h. */
22206#if !HAVE_GETPAGESIZE
22207/* Assume that all systems that can run configure have sys/param.h. */
22208# if !HAVE_SYS_PARAM_H
22209# define HAVE_SYS_PARAM_H 1
22210# endif
22211
22212# ifdef _SC_PAGESIZE
22213# define getpagesize() sysconf(_SC_PAGESIZE)
22214# else /* no _SC_PAGESIZE */
22215# if HAVE_SYS_PARAM_H
22216# include <sys/param.h>
22217# ifdef EXEC_PAGESIZE
22218# define getpagesize() EXEC_PAGESIZE
22219# else /* no EXEC_PAGESIZE */
22220# ifdef NBPG
22221# define getpagesize() NBPG * CLSIZE
22222# ifndef CLSIZE
22223# define CLSIZE 1
22224# endif /* no CLSIZE */
22225# else /* no NBPG */
22226# ifdef NBPC
22227# define getpagesize() NBPC
22228# else /* no NBPC */
22229# ifdef PAGESIZE
22230# define getpagesize() PAGESIZE
22231# endif /* PAGESIZE */
22232# endif /* no NBPC */
22233# endif /* no NBPG */
22234# endif /* no EXEC_PAGESIZE */
22235# else /* no HAVE_SYS_PARAM_H */
22236# define getpagesize() 8192 /* punt totally */
22237# endif /* no HAVE_SYS_PARAM_H */
22238# endif /* no _SC_PAGESIZE */
22239
22240#endif /* no HAVE_GETPAGESIZE */
22241
22242int
22243main ()
22244{
22245 char *data, *data2, *data3;
22246 int i, pagesize;
22247 int fd;
22248
22249 pagesize = getpagesize ();
22250
22251 /* First, make a file with some known garbage in it. */
22252 data = (char *) malloc (pagesize);
22253 if (!data)
22254 exit (1);
22255 for (i = 0; i < pagesize; ++i)
22256 *(data + i) = rand ();
22257 umask (0);
22258 fd = creat ("conftest.mmap", 0600);
22259 if (fd < 0)
22260 exit (1);
22261 if (write (fd, data, pagesize) != pagesize)
22262 exit (1);
22263 close (fd);
22264
22265 /* Mmap the file as read/write/shared and verify that we see the
22266 same garbage. */
22267 fd = open ("conftest.mmap", O_RDWR);
22268 if (fd < 0)
22269 exit (1);
22270 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22271 if (data2 == 0)
22272 exit (1);
22273 for (i = 0; i < pagesize; ++i)
22274 if (*(data + i) != *(data2 + i))
22275 exit (1);
22276
22277 /* Finally, make sure that changes to the mapped area
22278 percolate back to the file as seen by read(). */
22279 for (i = 0; i < pagesize; ++i)
22280 *(data2 + i) = *(data2 + i) + 1;
22281 data3 = (char *) malloc (pagesize);
22282 if (!data3)
22283 exit (1);
22284 if (read (fd, data3, pagesize) != pagesize)
22285 exit (1);
22286 for (i = 0; i < pagesize; ++i)
22287 if (*(data2 + i) != *(data3 + i))
22288 exit (1);
22289 close (fd);
22290 exit (0);
22291}
22292_ACEOF
22293if ac_fn_c_try_run "$LINENO"; then :
22294 magick_cv_func_mmap_fileio=yes
22295else
22296 magick_cv_func_mmap_fileio=no
22297fi
22298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22299 conftest.$ac_objext conftest.beam conftest.$ac_ext
22300fi
22301
22302fi
22303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22304$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22305if test $magick_cv_func_mmap_fileio = yes; then
22306
22307$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22308
22309fi
22310rm -f conftest.mmap
22311
cristy8b350f62009-11-15 23:12:43 +000022312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022313$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022314if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022315 $as_echo_n "(cached) " >&6
22316else
cristy8b350f62009-11-15 23:12:43 +000022317 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 ac_cv_func_closedir_void=yes
22319else
cristy8b350f62009-11-15 23:12:43 +000022320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022321/* end confdefs.h. */
22322$ac_includes_default
22323#include <$ac_header_dirent>
22324#ifndef __cplusplus
22325int closedir ();
22326#endif
22327
22328int
22329main ()
22330{
22331return closedir (opendir (".")) != 0;
22332 ;
22333 return 0;
22334}
22335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022336if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022337 ac_cv_func_closedir_void=no
22338else
cristy8b350f62009-11-15 23:12:43 +000022339 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022340fi
cristy8b350f62009-11-15 23:12:43 +000022341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22342 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022343fi
22344
cristy3ed852e2009-09-05 21:47:34 +000022345fi
cristy8b350f62009-11-15 23:12:43 +000022346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022347$as_echo "$ac_cv_func_closedir_void" >&6; }
22348if test $ac_cv_func_closedir_void = yes; then
22349
cristy8b350f62009-11-15 23:12:43 +000022350$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022351
22352fi
22353
cristycd4c5312009-11-22 01:19:08 +000022354
22355
22356
22357 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022358do :
22359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022360ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22361"
cristy98dddb52010-11-04 00:30:15 +000022362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 cat >>confdefs.h <<_ACEOF
22364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22365_ACEOF
22366
22367fi
22368
22369done
22370
cristycd4c5312009-11-22 01:19:08 +000022371
22372
22373
22374
22375
22376
22377
cristy3ed852e2009-09-05 21:47:34 +000022378for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022379do :
22380 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22381if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022382 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022383#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022384_ACEOF
22385
22386fi
22387done
22388
cristy8b350f62009-11-15 23:12:43 +000022389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022390$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022391if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 $as_echo_n "(cached) " >&6
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 ac_cv_func_mmap_fixed_mapped=no
22396else
cristy8b350f62009-11-15 23:12:43 +000022397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022398/* end confdefs.h. */
22399$ac_includes_default
22400/* malloc might have been renamed as rpl_malloc. */
22401#undef malloc
22402
22403/* Thanks to Mike Haertel and Jim Avera for this test.
22404 Here is a matrix of mmap possibilities:
22405 mmap private not fixed
22406 mmap private fixed at somewhere currently unmapped
22407 mmap private fixed at somewhere already mapped
22408 mmap shared not fixed
22409 mmap shared fixed at somewhere currently unmapped
22410 mmap shared fixed at somewhere already mapped
22411 For private mappings, we should verify that changes cannot be read()
22412 back from the file, nor mmap's back from the file at a different
22413 address. (There have been systems where private was not correctly
22414 implemented like the infamous i386 svr4.0, and systems where the
22415 VM page cache was not coherent with the file system buffer cache
22416 like early versions of FreeBSD and possibly contemporary NetBSD.)
22417 For shared mappings, we should conversely verify that changes get
22418 propagated back to all the places they're supposed to be.
22419
22420 Grep wants private fixed already mapped.
22421 The main things grep needs to know about mmap are:
22422 * does it exist and is it safe to write into the mmap'd area
22423 * how to use it (BSD variants) */
22424
22425#include <fcntl.h>
22426#include <sys/mman.h>
22427
22428#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22429char *malloc ();
22430#endif
22431
22432/* This mess was copied from the GNU getpagesize.h. */
22433#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022434# ifdef _SC_PAGESIZE
22435# define getpagesize() sysconf(_SC_PAGESIZE)
22436# else /* no _SC_PAGESIZE */
22437# ifdef HAVE_SYS_PARAM_H
22438# include <sys/param.h>
22439# ifdef EXEC_PAGESIZE
22440# define getpagesize() EXEC_PAGESIZE
22441# else /* no EXEC_PAGESIZE */
22442# ifdef NBPG
22443# define getpagesize() NBPG * CLSIZE
22444# ifndef CLSIZE
22445# define CLSIZE 1
22446# endif /* no CLSIZE */
22447# else /* no NBPG */
22448# ifdef NBPC
22449# define getpagesize() NBPC
22450# else /* no NBPC */
22451# ifdef PAGESIZE
22452# define getpagesize() PAGESIZE
22453# endif /* PAGESIZE */
22454# endif /* no NBPC */
22455# endif /* no NBPG */
22456# endif /* no EXEC_PAGESIZE */
22457# else /* no HAVE_SYS_PARAM_H */
22458# define getpagesize() 8192 /* punt totally */
22459# endif /* no HAVE_SYS_PARAM_H */
22460# endif /* no _SC_PAGESIZE */
22461
22462#endif /* no HAVE_GETPAGESIZE */
22463
22464int
22465main ()
22466{
22467 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022468 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022469 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022470 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022471
22472 pagesize = getpagesize ();
22473
22474 /* First, make a file with some known garbage in it. */
22475 data = (char *) malloc (pagesize);
22476 if (!data)
22477 return 1;
22478 for (i = 0; i < pagesize; ++i)
22479 *(data + i) = rand ();
22480 umask (0);
22481 fd = creat ("conftest.mmap", 0600);
22482 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022483 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022484 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022485 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022486 close (fd);
22487
cristycd4c5312009-11-22 01:19:08 +000022488 /* Next, check that the tail of a page is zero-filled. File must have
22489 non-zero length, otherwise we risk SIGBUS for entire page. */
22490 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22491 if (fd2 < 0)
22492 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022493 cdata2 = "";
22494 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022495 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022496 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022497 if (data2 == MAP_FAILED)
22498 return 6;
22499 for (i = 0; i < pagesize; ++i)
22500 if (*(data2 + i))
22501 return 7;
22502 close (fd2);
22503 if (munmap (data2, pagesize))
22504 return 8;
22505
cristy3ed852e2009-09-05 21:47:34 +000022506 /* Next, try to mmap the file at a fixed address which already has
22507 something else allocated at it. If we can, also make sure that
22508 we see the same garbage. */
22509 fd = open ("conftest.mmap", O_RDWR);
22510 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022511 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022512 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22513 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022514 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022515 for (i = 0; i < pagesize; ++i)
22516 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022517 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022518
22519 /* Finally, make sure that changes to the mapped area do not
22520 percolate back to the file as seen by read(). (This is a bug on
22521 some variants of i386 svr4.0.) */
22522 for (i = 0; i < pagesize; ++i)
22523 *(data2 + i) = *(data2 + i) + 1;
22524 data3 = (char *) malloc (pagesize);
22525 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022526 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022527 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022528 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022529 for (i = 0; i < pagesize; ++i)
22530 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022531 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022532 close (fd);
22533 return 0;
22534}
22535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022536if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 ac_cv_func_mmap_fixed_mapped=yes
22538else
cristy8b350f62009-11-15 23:12:43 +000022539 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022540fi
cristy8b350f62009-11-15 23:12:43 +000022541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022543fi
22544
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy8b350f62009-11-15 23:12:43 +000022546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022547$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22548if test $ac_cv_func_mmap_fixed_mapped = yes; then
22549
cristy8b350f62009-11-15 23:12:43 +000022550$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022551
22552fi
cristycd4c5312009-11-22 01:19:08 +000022553rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022554
cristy3ed852e2009-09-05 21:47:34 +000022555for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022556do :
22557 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22558if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022559 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022560#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022561_ACEOF
22562
22563fi
22564
22565done
22566
cristy3ed852e2009-09-05 21:47:34 +000022567for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022568do :
22569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22570ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000022571if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 cat >>confdefs.h <<_ACEOF
22573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22574_ACEOF
22575
22576fi
22577done
22578
22579if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022582if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 $as_echo_n "(cached) " >&6
22584else
cristy8b350f62009-11-15 23:12:43 +000022585 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 ac_cv_func_fork_works=cross
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022589/* end confdefs.h. */
22590$ac_includes_default
22591int
22592main ()
22593{
22594
22595 /* By Ruediger Kuhlmann. */
22596 return fork () < 0;
22597
22598 ;
22599 return 0;
22600}
22601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022602if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022603 ac_cv_func_fork_works=yes
22604else
cristy8b350f62009-11-15 23:12:43 +000022605 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022606fi
cristy8b350f62009-11-15 23:12:43 +000022607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22608 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022609fi
22610
cristy3ed852e2009-09-05 21:47:34 +000022611fi
cristy8b350f62009-11-15 23:12:43 +000022612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022613$as_echo "$ac_cv_func_fork_works" >&6; }
22614
22615else
22616 ac_cv_func_fork_works=$ac_cv_func_fork
22617fi
22618if test "x$ac_cv_func_fork_works" = xcross; then
22619 case $host in
22620 *-*-amigaos* | *-*-msdosdjgpp*)
22621 # Override, as these systems have only a dummy fork() stub
22622 ac_cv_func_fork_works=no
22623 ;;
22624 *)
22625 ac_cv_func_fork_works=yes
22626 ;;
22627 esac
cristy8b350f62009-11-15 23:12:43 +000022628 { $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 +000022629$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22630fi
22631ac_cv_func_vfork_works=$ac_cv_func_vfork
22632if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022634$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022635if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022636 $as_echo_n "(cached) " >&6
22637else
cristy8b350f62009-11-15 23:12:43 +000022638 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022639 ac_cv_func_vfork_works=cross
22640else
cristy8b350f62009-11-15 23:12:43 +000022641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022642/* end confdefs.h. */
22643/* Thanks to Paul Eggert for this test. */
22644$ac_includes_default
22645#include <sys/wait.h>
22646#ifdef HAVE_VFORK_H
22647# include <vfork.h>
22648#endif
22649/* On some sparc systems, changes by the child to local and incoming
22650 argument registers are propagated back to the parent. The compiler
22651 is told about this with #include <vfork.h>, but some compilers
22652 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22653 static variable whose address is put into a register that is
22654 clobbered by the vfork. */
22655static void
22656#ifdef __cplusplus
22657sparc_address_test (int arg)
22658# else
22659sparc_address_test (arg) int arg;
22660#endif
22661{
22662 static pid_t child;
22663 if (!child) {
22664 child = vfork ();
22665 if (child < 0) {
22666 perror ("vfork");
22667 _exit(2);
22668 }
22669 if (!child) {
22670 arg = getpid();
22671 write(-1, "", 0);
22672 _exit (arg);
22673 }
22674 }
22675}
22676
22677int
22678main ()
22679{
22680 pid_t parent = getpid ();
22681 pid_t child;
22682
22683 sparc_address_test (0);
22684
22685 child = vfork ();
22686
22687 if (child == 0) {
22688 /* Here is another test for sparc vfork register problems. This
22689 test uses lots of local variables, at least as many local
22690 variables as main has allocated so far including compiler
22691 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22692 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22693 reuse the register of parent for one of the local variables,
22694 since it will think that parent can't possibly be used any more
22695 in this routine. Assigning to the local variable will thus
22696 munge parent in the parent process. */
22697 pid_t
22698 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22699 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22700 /* Convince the compiler that p..p7 are live; otherwise, it might
22701 use the same hardware register for all 8 local variables. */
22702 if (p != p1 || p != p2 || p != p3 || p != p4
22703 || p != p5 || p != p6 || p != p7)
22704 _exit(1);
22705
22706 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22707 from child file descriptors. If the child closes a descriptor
22708 before it execs or exits, this munges the parent's descriptor
22709 as well. Test for this by closing stdout in the child. */
22710 _exit(close(fileno(stdout)) != 0);
22711 } else {
22712 int status;
22713 struct stat st;
22714
22715 while (wait(&status) != child)
22716 ;
22717 return (
22718 /* Was there some problem with vforking? */
22719 child < 0
22720
22721 /* Did the child fail? (This shouldn't happen.) */
22722 || status
22723
22724 /* Did the vfork/compiler bug occur? */
22725 || parent != getpid()
22726
22727 /* Did the file descriptor bug occur? */
22728 || fstat(fileno(stdout), &st) != 0
22729 );
22730 }
22731}
22732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022733if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022734 ac_cv_func_vfork_works=yes
22735else
cristy8b350f62009-11-15 23:12:43 +000022736 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022737fi
cristy8b350f62009-11-15 23:12:43 +000022738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22739 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022740fi
22741
cristy3ed852e2009-09-05 21:47:34 +000022742fi
cristy8b350f62009-11-15 23:12:43 +000022743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022744$as_echo "$ac_cv_func_vfork_works" >&6; }
22745
22746fi;
22747if test "x$ac_cv_func_fork_works" = xcross; then
22748 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022749 { $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 +000022750$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22751fi
22752
22753if test "x$ac_cv_func_vfork_works" = xyes; then
22754
cristy8b350f62009-11-15 23:12:43 +000022755$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022756
22757else
22758
cristy8b350f62009-11-15 23:12:43 +000022759$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022760
22761fi
22762if test "x$ac_cv_func_fork_works" = xyes; then
22763
cristy8b350f62009-11-15 23:12:43 +000022764$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022765
22766fi
22767
cristy8b350f62009-11-15 23:12:43 +000022768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022769$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022770if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022771 $as_echo_n "(cached) " >&6
22772else
cristy8b350f62009-11-15 23:12:43 +000022773 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022774 ac_cv_func_memcmp_working=no
22775else
cristy8b350f62009-11-15 23:12:43 +000022776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022777/* end confdefs.h. */
22778$ac_includes_default
22779int
22780main ()
22781{
22782
22783 /* Some versions of memcmp are not 8-bit clean. */
22784 char c0 = '\100', c1 = '\200', c2 = '\201';
22785 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22786 return 1;
22787
22788 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22789 or more and with at least one buffer not starting on a 4-byte boundary.
22790 William Lewis provided this test program. */
22791 {
22792 char foo[21];
22793 char bar[21];
22794 int i;
22795 for (i = 0; i < 4; i++)
22796 {
22797 char *a = foo + i;
22798 char *b = bar + i;
22799 strcpy (a, "--------01111111");
22800 strcpy (b, "--------10000000");
22801 if (memcmp (a, b, 16) >= 0)
22802 return 1;
22803 }
22804 return 0;
22805 }
22806
22807 ;
22808 return 0;
22809}
22810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022811if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022812 ac_cv_func_memcmp_working=yes
22813else
cristy8b350f62009-11-15 23:12:43 +000022814 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022815fi
cristy8b350f62009-11-15 23:12:43 +000022816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22817 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022818fi
22819
cristy3ed852e2009-09-05 21:47:34 +000022820fi
cristy8b350f62009-11-15 23:12:43 +000022821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022822$as_echo "$ac_cv_func_memcmp_working" >&6; }
22823test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22824 *" memcmp.$ac_objext "* ) ;;
22825 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22826 ;;
22827esac
22828
22829
cristy3ed852e2009-09-05 21:47:34 +000022830for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022831do :
22832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22833ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022835 cat >>confdefs.h <<_ACEOF
22836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22837_ACEOF
22838
22839fi
22840
22841done
22842
cristy8b350f62009-11-15 23:12:43 +000022843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022844$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022845if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022846 $as_echo_n "(cached) " >&6
22847else
22848 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22849 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22850 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022852/* end confdefs.h. */
22853$ac_includes_default
22854#ifdef HAVE_SYS_SELECT_H
22855# include <sys/select.h>
22856#endif
22857#ifdef HAVE_SYS_SOCKET_H
22858# include <sys/socket.h>
22859#endif
22860
22861int
22862main ()
22863{
22864extern int select ($ac_arg1,
22865 $ac_arg234, $ac_arg234, $ac_arg234,
22866 $ac_arg5);
22867 ;
22868 return 0;
22869}
22870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022871if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022872 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022873fi
cristy3ed852e2009-09-05 21:47:34 +000022874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22875 done
22876 done
22877done
22878# Provide a safe default value.
22879: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22880
22881fi
cristy8b350f62009-11-15 23:12:43 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022883$as_echo "$ac_cv_func_select_args" >&6; }
22884ac_save_IFS=$IFS; IFS=','
22885set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22886IFS=$ac_save_IFS
22887shift
22888
22889cat >>confdefs.h <<_ACEOF
22890#define SELECT_TYPE_ARG1 $1
22891_ACEOF
22892
22893
22894cat >>confdefs.h <<_ACEOF
22895#define SELECT_TYPE_ARG234 ($2)
22896_ACEOF
22897
22898
22899cat >>confdefs.h <<_ACEOF
22900#define SELECT_TYPE_ARG5 ($3)
22901_ACEOF
22902
22903rm -f conftest*
22904
cristy8b350f62009-11-15 23:12:43 +000022905if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022906 $as_echo_n "(cached) " >&6
22907else
22908 ac_cv_func_setvbuf_reversed=no
22909fi
22910
22911
cristy8b350f62009-11-15 23:12:43 +000022912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022913$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022914if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022915 $as_echo_n "(cached) " >&6
22916else
cristy8b350f62009-11-15 23:12:43 +000022917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022918/* end confdefs.h. */
22919#include <sys/types.h>
22920#include <signal.h>
22921
22922int
22923main ()
22924{
22925return *(signal (0, 0)) (0) == 1;
22926 ;
22927 return 0;
22928}
22929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022931 ac_cv_type_signal=int
22932else
cristy8b350f62009-11-15 23:12:43 +000022933 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022934fi
cristy3ed852e2009-09-05 21:47:34 +000022935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936fi
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo "$ac_cv_type_signal" >&6; }
22939
22940cat >>confdefs.h <<_ACEOF
22941#define RETSIGTYPE $ac_cv_type_signal
22942_ACEOF
22943
22944
cristy8b350f62009-11-15 23:12:43 +000022945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022946$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022947if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022948 $as_echo_n "(cached) " >&6
22949else
cristy8b350f62009-11-15 23:12:43 +000022950 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022951 ac_cv_func_strtod=no
22952else
cristy8b350f62009-11-15 23:12:43 +000022953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022954/* end confdefs.h. */
22955
22956$ac_includes_default
22957#ifndef strtod
22958double strtod ();
22959#endif
22960int
22961main()
22962{
22963 {
22964 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22965 char *string = " +69";
22966 char *term;
22967 double value;
22968 value = strtod (string, &term);
22969 if (value != 69 || term != (string + 4))
22970 return 1;
22971 }
22972
22973 {
22974 /* Under Solaris 2.4, strtod returns the wrong value for the
22975 terminating character under some conditions. */
22976 char *string = "NaN";
22977 char *term;
22978 strtod (string, &term);
22979 if (term != string && *(term - 1) == 0)
22980 return 1;
22981 }
22982 return 0;
22983}
22984
22985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022986if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022987 ac_cv_func_strtod=yes
22988else
cristy8b350f62009-11-15 23:12:43 +000022989 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022990fi
cristy8b350f62009-11-15 23:12:43 +000022991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22992 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022993fi
22994
cristy3ed852e2009-09-05 21:47:34 +000022995fi
cristy8b350f62009-11-15 23:12:43 +000022996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022997$as_echo "$ac_cv_func_strtod" >&6; }
22998if test $ac_cv_func_strtod = no; then
22999 case " $LIBOBJS " in
23000 *" strtod.$ac_objext "* ) ;;
23001 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23002 ;;
23003esac
23004
cristy8b350f62009-11-15 23:12:43 +000023005ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23006if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023007
cristy3ed852e2009-09-05 21:47:34 +000023008fi
23009
cristy3ed852e2009-09-05 21:47:34 +000023010if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023012$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023013if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023014 $as_echo_n "(cached) " >&6
23015else
23016 ac_check_lib_save_LIBS=$LIBS
23017LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023019/* end confdefs.h. */
23020
23021/* Override any GCC internal prototype to avoid an error.
23022 Use char because int might match the return type of a GCC
23023 builtin and then its argument prototype would still apply. */
23024#ifdef __cplusplus
23025extern "C"
23026#endif
23027char pow ();
23028int
23029main ()
23030{
23031return pow ();
23032 ;
23033 return 0;
23034}
23035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023037 ac_cv_lib_m_pow=yes
23038else
cristy8b350f62009-11-15 23:12:43 +000023039 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023040fi
cristy8b350f62009-11-15 23:12:43 +000023041rm -f core conftest.err conftest.$ac_objext \
23042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023043LIBS=$ac_check_lib_save_LIBS
23044fi
cristy8b350f62009-11-15 23:12:43 +000023045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023046$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023047if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023048 POW_LIB=-lm
23049else
cristy8b350f62009-11-15 23:12:43 +000023050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023051$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23052fi
23053
23054fi
23055
23056fi
23057
cristy3ed852e2009-09-05 21:47:34 +000023058for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023059do :
23060 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23061if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023062 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023063#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023064_ACEOF
23065
cristy8b350f62009-11-15 23:12:43 +000023066ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23067if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023068
cristy8b350f62009-11-15 23:12:43 +000023069$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023070
23071fi
23072
23073fi
23074done
23075
23076
23077
cristy161b9262010-03-20 19:34:32 +000023078#
23079# Find math library
23080#
23081MATH_LIBS=''
23082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23083$as_echo_n "checking for sqrt in -lm... " >&6; }
23084if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23085 $as_echo_n "(cached) " >&6
23086else
23087 ac_check_lib_save_LIBS=$LIBS
23088LIBS="-lm $LIBS"
23089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090/* end confdefs.h. */
23091
23092/* Override any GCC internal prototype to avoid an error.
23093 Use char because int might match the return type of a GCC
23094 builtin and then its argument prototype would still apply. */
23095#ifdef __cplusplus
23096extern "C"
23097#endif
23098char sqrt ();
23099int
23100main ()
23101{
23102return sqrt ();
23103 ;
23104 return 0;
23105}
23106_ACEOF
23107if ac_fn_c_try_link "$LINENO"; then :
23108 ac_cv_lib_m_sqrt=yes
23109else
23110 ac_cv_lib_m_sqrt=no
23111fi
23112rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23114LIBS=$ac_check_lib_save_LIBS
23115fi
23116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23117$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23118if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23119 MATH_LIBS="-lm"
23120fi
23121
23122LIBS="$MATH_LIBS $LIBS"
23123
23124
cristy47b022b2011-01-18 22:29:21 +000023125for ac_func in atoll atexit cabs carg cimag creal 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 +000023126do :
23127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23128ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023129if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023130 cat >>confdefs.h <<_ACEOF
23131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23132_ACEOF
23133
23134fi
23135done
23136
23137
cristye43a45e2009-09-28 14:49:00 +000023138#
23139# Check for clock_gettime().
23140#
cristy8b350f62009-11-15 23:12:43 +000023141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023142$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023143if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023144 $as_echo_n "(cached) " >&6
23145else
23146 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023148/* end confdefs.h. */
23149
23150/* Override any GCC internal prototype to avoid an error.
23151 Use char because int might match the return type of a GCC
23152 builtin and then its argument prototype would still apply. */
23153#ifdef __cplusplus
23154extern "C"
23155#endif
23156char clock_gettime ();
23157int
23158main ()
23159{
23160return clock_gettime ();
23161 ;
23162 return 0;
23163}
23164_ACEOF
23165for ac_lib in '' rt; do
23166 if test -z "$ac_lib"; then
23167 ac_res="none required"
23168 else
23169 ac_res=-l$ac_lib
23170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23171 fi
cristy8b350f62009-11-15 23:12:43 +000023172 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023173 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023174fi
cristy8b350f62009-11-15 23:12:43 +000023175rm -f core conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext
23177 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023178 break
23179fi
23180done
cristy8b350f62009-11-15 23:12:43 +000023181if test "${ac_cv_search_clock_gettime+set}" = set; then :
23182
cristye43a45e2009-09-28 14:49:00 +000023183else
23184 ac_cv_search_clock_gettime=no
23185fi
23186rm conftest.$ac_ext
23187LIBS=$ac_func_search_save_LIBS
23188fi
cristy8b350f62009-11-15 23:12:43 +000023189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023190$as_echo "$ac_cv_search_clock_gettime" >&6; }
23191ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023192if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23194
23195
cristy8b350f62009-11-15 23:12:43 +000023196$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023197
cristy8b350f62009-11-15 23:12:43 +000023198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023199$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023201/* end confdefs.h. */
23202#include <time.h>
23203int
23204main ()
23205{
23206clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023207 ;
23208 return 0;
23209}
23210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023211if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023212
cristy8b350f62009-11-15 23:12:43 +000023213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023214$as_echo "yes" >&6; }
23215
cristy8b350f62009-11-15 23:12:43 +000023216$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023217
23218
23219else
cristy8b350f62009-11-15 23:12:43 +000023220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023221$as_echo "no" >&6; }
23222
23223fi
cristye43a45e2009-09-28 14:49:00 +000023224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225
23226else
23227
cristy8b350f62009-11-15 23:12:43 +000023228 for ac_func in gettimeofday ftime
23229do :
23230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023232if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023233 cat >>confdefs.h <<_ACEOF
23234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23235_ACEOF
23236 break
23237fi
23238done
23239
23240
23241
23242fi
23243
23244
cristy3ed852e2009-09-05 21:47:34 +000023245########
23246#
23247# Check for function prototypes
23248#
23249########
23250
cristy8b350f62009-11-15 23:12:43 +000023251ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023252#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023253"
23254if test "x$ac_cv_have_decl_pread" = x""yes; then :
23255 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023256else
cristy8b350f62009-11-15 23:12:43 +000023257 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023258fi
23259
cristy3ed852e2009-09-05 21:47:34 +000023260cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023261#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023263ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023264#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023265"
23266if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23267 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023268else
cristy8b350f62009-11-15 23:12:43 +000023269 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023270fi
23271
cristy3ed852e2009-09-05 21:47:34 +000023272cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023273#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023274_ACEOF
23275
23276
cristy8b350f62009-11-15 23:12:43 +000023277ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023278#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023279"
23280if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23281 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023282else
cristy8b350f62009-11-15 23:12:43 +000023283 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023284fi
23285
cristy3ed852e2009-09-05 21:47:34 +000023286cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023287#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023288_ACEOF
23289
23290
cristy8b350f62009-11-15 23:12:43 +000023291ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023292#include <stdio.h>
23293#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023294"
23295if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23296 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023297else
cristy8b350f62009-11-15 23:12:43 +000023298 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023299fi
23300
cristy3ed852e2009-09-05 21:47:34 +000023301cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023302#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023303_ACEOF
23304
23305
cristy3ed852e2009-09-05 21:47:34 +000023306########
23307#
23308# C++ Support Tests (For Magick++)
23309#
23310########
23311have_magick_plus_plus='no'
23312if test "$with_magick_plus_plus" = 'yes'; then
23313 OLIBS="$LIBS"
23314 LIBS=''
23315 ac_ext=cpp
23316ac_cpp='$CXXCPP $CPPFLAGS'
23317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23320
23321
23322 # Full set of headers used...
23323 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23324 # functional iomanip iosfwd iostream iterator list string strstream utility
23325 ac_ext=cpp
23326ac_cpp='$CXXCPP $CPPFLAGS'
23327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23330
23331 ac_ext=cpp
23332ac_cpp='$CXXCPP $CPPFLAGS'
23333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336if test -z "$CXX"; then
23337 if test -n "$CCC"; then
23338 CXX=$CCC
23339 else
23340 if test -n "$ac_tool_prefix"; then
23341 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23342 do
23343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023346$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023347if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023348 $as_echo_n "(cached) " >&6
23349else
23350 if test -n "$CXX"; then
23351 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23352else
23353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23354for as_dir in $PATH
23355do
23356 IFS=$as_save_IFS
23357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362 break 2
23363 fi
23364done
cristy8b350f62009-11-15 23:12:43 +000023365 done
cristy3ed852e2009-09-05 21:47:34 +000023366IFS=$as_save_IFS
23367
23368fi
23369fi
23370CXX=$ac_cv_prog_CXX
23371if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$CXX" >&6; }
23374else
cristy8b350f62009-11-15 23:12:43 +000023375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023376$as_echo "no" >&6; }
23377fi
23378
23379
23380 test -n "$CXX" && break
23381 done
23382fi
23383if test -z "$CXX"; then
23384 ac_ct_CXX=$CXX
23385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23386do
23387 # Extract the first word of "$ac_prog", so it can be a program name with args.
23388set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 $as_echo_n "(cached) " >&6
23393else
23394 if test -n "$ac_ct_CXX"; then
23395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23396else
23397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23398for as_dir in $PATH
23399do
23400 IFS=$as_save_IFS
23401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23404 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023406 break 2
23407 fi
23408done
cristy8b350f62009-11-15 23:12:43 +000023409 done
cristy3ed852e2009-09-05 21:47:34 +000023410IFS=$as_save_IFS
23411
23412fi
23413fi
23414ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23415if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023417$as_echo "$ac_ct_CXX" >&6; }
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420$as_echo "no" >&6; }
23421fi
23422
23423
23424 test -n "$ac_ct_CXX" && break
23425done
23426
23427 if test "x$ac_ct_CXX" = x; then
23428 CXX="g++"
23429 else
23430 case $cross_compiling:$ac_tool_warned in
23431yes:)
cristy8b350f62009-11-15 23:12:43 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23434ac_tool_warned=yes ;;
23435esac
23436 CXX=$ac_ct_CXX
23437 fi
23438fi
23439
23440 fi
23441fi
23442# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023443$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444set X $ac_compile
23445ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023446for ac_option in --version -v -V -qversion; do
23447 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023448case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451esac
cristy8b350f62009-11-15 23:12:43 +000023452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23453$as_echo "$ac_try_echo"; } >&5
23454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023455 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023456 if test -s conftest.err; then
23457 sed '10a\
23458... rest of stderr output deleted ...
23459 10q' conftest.err >conftest.er1
23460 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023461 fi
cristycd4c5312009-11-22 01:19:08 +000023462 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23464 test $ac_status = 0; }
23465done
cristy3ed852e2009-09-05 21:47:34 +000023466
cristy8b350f62009-11-15 23:12:43 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023469if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023470 $as_echo_n "(cached) " >&6
23471else
cristy8b350f62009-11-15 23:12:43 +000023472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023473/* end confdefs.h. */
23474
23475int
23476main ()
23477{
23478#ifndef __GNUC__
23479 choke me
23480#endif
23481
23482 ;
23483 return 0;
23484}
23485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023486if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023487 ac_compiler_gnu=yes
23488else
cristy8b350f62009-11-15 23:12:43 +000023489 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023490fi
cristy3ed852e2009-09-05 21:47:34 +000023491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23493
23494fi
cristy8b350f62009-11-15 23:12:43 +000023495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023496$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23497if test $ac_compiler_gnu = yes; then
23498 GXX=yes
23499else
23500 GXX=
23501fi
23502ac_test_CXXFLAGS=${CXXFLAGS+set}
23503ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023506if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023507 $as_echo_n "(cached) " >&6
23508else
23509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23510 ac_cxx_werror_flag=yes
23511 ac_cv_prog_cxx_g=no
23512 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023514/* end confdefs.h. */
23515
23516int
23517main ()
23518{
23519
23520 ;
23521 return 0;
23522}
23523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023524if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023525 ac_cv_prog_cxx_g=yes
23526else
cristy8b350f62009-11-15 23:12:43 +000023527 CXXFLAGS=""
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023529/* end confdefs.h. */
23530
23531int
23532main ()
23533{
23534
23535 ;
23536 return 0;
23537}
23538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023539if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023540
cristy8b350f62009-11-15 23:12:43 +000023541else
23542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023543 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023545/* end confdefs.h. */
23546
23547int
23548main ()
23549{
23550
23551 ;
23552 return 0;
23553}
23554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023555if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023556 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023557fi
cristy3ed852e2009-09-05 21:47:34 +000023558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559fi
cristy3ed852e2009-09-05 21:47:34 +000023560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561fi
cristy3ed852e2009-09-05 21:47:34 +000023562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23564fi
cristy8b350f62009-11-15 23:12:43 +000023565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023566$as_echo "$ac_cv_prog_cxx_g" >&6; }
23567if test "$ac_test_CXXFLAGS" = set; then
23568 CXXFLAGS=$ac_save_CXXFLAGS
23569elif test $ac_cv_prog_cxx_g = yes; then
23570 if test "$GXX" = yes; then
23571 CXXFLAGS="-g -O2"
23572 else
23573 CXXFLAGS="-g"
23574 fi
23575else
23576 if test "$GXX" = yes; then
23577 CXXFLAGS="-O2"
23578 else
23579 CXXFLAGS=
23580 fi
23581fi
23582ac_ext=cpp
23583ac_cpp='$CXXCPP $CPPFLAGS'
23584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23587
cristy73bd4a52010-10-05 11:24:23 +000023588depcc="$CXX" am_compiler_list=
23589
23590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23591$as_echo_n "checking dependency style of $depcc... " >&6; }
23592if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23593 $as_echo_n "(cached) " >&6
23594else
23595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23596 # We make a subdir and do the tests there. Otherwise we can end up
23597 # making bogus files that we don't know about and never remove. For
23598 # instance it was reported that on HP-UX the gcc test will end up
23599 # making a dummy file named `D' -- because `-MD' means `put the output
23600 # in D'.
23601 mkdir conftest.dir
23602 # Copy depcomp to subdir because otherwise we won't find it if we're
23603 # using a relative directory.
23604 cp "$am_depcomp" conftest.dir
23605 cd conftest.dir
23606 # We will build objects and dependencies in a subdirectory because
23607 # it helps to detect inapplicable dependency modes. For instance
23608 # both Tru64's cc and ICC support -MD to output dependencies as a
23609 # side effect of compilation, but ICC will put the dependencies in
23610 # the current directory while Tru64 will put them in the object
23611 # directory.
23612 mkdir sub
23613
23614 am_cv_CXX_dependencies_compiler_type=none
23615 if test "$am_compiler_list" = ""; then
23616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23617 fi
23618 am__universal=false
23619 case " $depcc " in #(
23620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23621 esac
23622
23623 for depmode in $am_compiler_list; do
23624 # Setup a source with many dependencies, because some compilers
23625 # like to wrap large dependency lists on column 80 (with \), and
23626 # we should not choose a depcomp mode which is confused by this.
23627 #
23628 # We need to recreate these files for each test, as the compiler may
23629 # overwrite some of them when testing with obscure command lines.
23630 # This happens at least with the AIX C compiler.
23631 : > sub/conftest.c
23632 for i in 1 2 3 4 5 6; do
23633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23635 # Solaris 8's {/usr,}/bin/sh.
23636 touch sub/conftst$i.h
23637 done
23638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23639
23640 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23641 # mode. It turns out that the SunPro C++ compiler does not properly
23642 # handle `-M -o', and we need to detect this. Also, some Intel
23643 # versions had trouble with output in subdirs
23644 am__obj=sub/conftest.${OBJEXT-o}
23645 am__minus_obj="-o $am__obj"
23646 case $depmode in
23647 gcc)
23648 # This depmode causes a compiler race in universal mode.
23649 test "$am__universal" = false || continue
23650 ;;
23651 nosideeffect)
23652 # after this tag, mechanisms are not by side-effect, so they'll
23653 # only be used when explicitly requested
23654 if test "x$enable_dependency_tracking" = xyes; then
23655 continue
23656 else
23657 break
23658 fi
23659 ;;
23660 msvisualcpp | msvcmsys)
23661 # This compiler won't grok `-c -o', but also, the minuso test has
23662 # not run yet. These depmodes are late enough in the game, and
23663 # so weak that their functioning should not be impacted.
23664 am__obj=conftest.${OBJEXT-o}
23665 am__minus_obj=
23666 ;;
23667 none) break ;;
23668 esac
23669 if depmode=$depmode \
23670 source=sub/conftest.c object=$am__obj \
23671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23673 >/dev/null 2>conftest.err &&
23674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23678 # icc doesn't choke on unknown options, it will just issue warnings
23679 # or remarks (even with -Werror). So we grep stderr for any message
23680 # that says an option was ignored or not supported.
23681 # When given -MP, icc 7.0 and 7.1 complain thusly:
23682 # icc: Command line warning: ignoring option '-M'; no argument required
23683 # The diagnosis changed in icc 8.0:
23684 # icc: Command line remark: option '-MP' not supported
23685 if (grep 'ignoring option' conftest.err ||
23686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23687 am_cv_CXX_dependencies_compiler_type=$depmode
23688 break
23689 fi
23690 fi
23691 done
23692
23693 cd ..
23694 rm -rf conftest.dir
23695else
23696 am_cv_CXX_dependencies_compiler_type=none
23697fi
23698
23699fi
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23701$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23702CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23703
23704 if
23705 test "x$enable_dependency_tracking" != xno \
23706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23707 am__fastdepCXX_TRUE=
23708 am__fastdepCXX_FALSE='#'
23709else
23710 am__fastdepCXX_TRUE='#'
23711 am__fastdepCXX_FALSE=
23712fi
23713
23714
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23716$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23717if test "${ax_cv_cxx_bool+set}" = set; then :
23718 $as_echo_n "(cached) " >&6
23719else
23720
23721 ac_ext=cpp
23722ac_cpp='$CXXCPP $CPPFLAGS'
23723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23726
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728/* end confdefs.h. */
23729
23730int f(int x){return 1;}
23731int f(char x){return 1;}
23732int f(bool x){return 1;}
23733
23734int
23735main ()
23736{
23737bool b = true; return f(b);
23738 ;
23739 return 0;
23740}
23741_ACEOF
23742if ac_fn_cxx_try_compile "$LINENO"; then :
23743 ax_cv_cxx_bool=yes
23744else
23745 ax_cv_cxx_bool=no
23746fi
23747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 ac_ext=cpp
23749ac_cpp='$CXXCPP $CPPFLAGS'
23750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23753
23754
23755fi
23756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23757$as_echo "$ax_cv_cxx_bool" >&6; }
23758if test "$ax_cv_cxx_bool" = yes; then
23759
23760$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23761
23762fi
23763
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23765$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23766if test "${ax_cv_cxx_namespaces+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23768else
23769
23770 ac_ext=cpp
23771ac_cpp='$CXXCPP $CPPFLAGS'
23772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23775
23776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777/* end confdefs.h. */
23778namespace Outer { namespace Inner { int i = 0; }}
23779int
23780main ()
23781{
23782using namespace Outer::Inner; return i;
23783 ;
23784 return 0;
23785}
23786_ACEOF
23787if ac_fn_cxx_try_compile "$LINENO"; then :
23788 ax_cv_cxx_namespaces=yes
23789else
23790 ax_cv_cxx_namespaces=no
23791fi
23792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 ac_ext=cpp
23794ac_cpp='$CXXCPP $CPPFLAGS'
23795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798
23799
23800fi
23801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23802$as_echo "$ax_cv_cxx_namespaces" >&6; }
23803if test "$ax_cv_cxx_namespaces" = yes; then
23804
23805$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23806
23807fi
23808
23809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23811$as_echo_n "checking if g++ supports namespace std... " >&6; }
23812if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23814else
23815
23816 ac_ext=cpp
23817ac_cpp='$CXXCPP $CPPFLAGS'
23818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23821
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823/* end confdefs.h. */
23824#include <iostream>
23825 std::istream& is = std::cin;
23826int
23827main ()
23828{
23829
23830 ;
23831 return 0;
23832}
23833_ACEOF
23834if ac_fn_cxx_try_compile "$LINENO"; then :
23835 ax_cv_cxx_have_std_namespace=yes
23836else
23837 ax_cv_cxx_have_std_namespace=no
23838fi
23839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840 ac_ext=cpp
23841ac_cpp='$CXXCPP $CPPFLAGS'
23842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23845
23846
23847fi
23848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23849$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23850 if test "$ax_cv_cxx_have_std_namespace" = yes; then
23851
23852$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23853
23854 fi
23855
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23857$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23858if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23860else
23861
23862
23863 ac_ext=cpp
23864ac_cpp='$CXXCPP $CPPFLAGS'
23865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23868
23869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23870/* end confdefs.h. */
23871#include <iostream>
23872#include <map>
23873#include <iomanip>
23874#include <cmath>
23875#ifdef HAVE_NAMESPACES
23876using namespace std;
23877#endif
23878int
23879main ()
23880{
23881return 0;
23882 ;
23883 return 0;
23884}
23885_ACEOF
23886if ac_fn_cxx_try_compile "$LINENO"; then :
23887 ac_cv_cxx_have_std_libs=yes
23888else
23889 ac_cv_cxx_have_std_libs=no
23890fi
23891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892 ac_ext=cpp
23893ac_cpp='$CXXCPP $CPPFLAGS'
23894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23897
23898
23899fi
23900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23901$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23902if test "$ac_cv_cxx_have_std_libs" = yes; then
23903
23904$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23905
23906fi
23907
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23909$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23910if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23911 $as_echo_n "(cached) " >&6
23912else
23913
23914 ac_ext=cpp
23915ac_cpp='$CXXCPP $CPPFLAGS'
23916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23919
23920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921/* end confdefs.h. */
23922const wchar_t* s=L"wide string";
23923_ACEOF
23924if ac_fn_cxx_try_compile "$LINENO"; then :
23925 ac_cv_cxx_have_lstring=yes
23926else
23927 ac_cv_cxx_have_lstring=no
23928fi
23929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930 ac_ext=cpp
23931ac_cpp='$CXXCPP $CPPFLAGS'
23932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23935
23936
23937fi
23938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23939$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23940if test "$ac_cv_cxx_have_lstring" = yes; then
23941
23942$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23943
23944fi
cristy3ed852e2009-09-05 21:47:34 +000023945
23946
23947 OPENMP_CXXFLAGS=
23948 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023949if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023950 enableval=$enable_openmp;
23951fi
23952
23953 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23955$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023956if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023957 $as_echo_n "(cached) " >&6
23958else
cristy8b350f62009-11-15 23:12:43 +000023959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023961
23962#ifndef _OPENMP
23963 choke me
23964#endif
23965#include <omp.h>
23966int main () { return omp_get_num_threads (); }
23967
23968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023969if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023970 ac_cv_prog_cxx_openmp='none needed'
23971else
cristy8b350f62009-11-15 23:12:43 +000023972 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023973 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23974 ac_save_CXXFLAGS=$CXXFLAGS
23975 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023978
23979#ifndef _OPENMP
23980 choke me
23981#endif
23982#include <omp.h>
23983int main () { return omp_get_num_threads (); }
23984
23985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023986if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023987 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023988fi
cristy8b350f62009-11-15 23:12:43 +000023989rm -f core conftest.err conftest.$ac_objext \
23990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023991 CXXFLAGS=$ac_save_CXXFLAGS
23992 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23993 break
23994 fi
23995 done
23996fi
cristy8b350f62009-11-15 23:12:43 +000023997rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023999fi
cristy8b350f62009-11-15 23:12:43 +000024000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024001$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24002 case $ac_cv_prog_cxx_openmp in #(
24003 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024004 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024005 *)
cristy8b350f62009-11-15 23:12:43 +000024006 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024007 esac
24008 fi
24009
24010
24011 ac_ext=c
24012ac_cpp='$CPP $CPPFLAGS'
24013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24015ac_compiler_gnu=$ac_cv_c_compiler_gnu
24016
24017
cristy8b350f62009-11-15 23:12:43 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24020 if \
cristy964cb7f2010-04-25 23:18:00 +000024021 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024022 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024023 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024024 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024025 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024026 have_magick_plus_plus='yes'
24027 else
24028 have_magick_plus_plus='no (failed tests)'
24029 fi
cristy8b350f62009-11-15 23:12:43 +000024030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024031$as_echo "$have_magick_plus_plus" >&6; }
24032 LIBS="$OLIBS"
24033fi
cristy73bd4a52010-10-05 11:24:23 +000024034 if test "$have_magick_plus_plus" = 'yes'; then
24035 WITH_MAGICK_PLUS_PLUS_TRUE=
24036 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24037else
24038 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24039 WITH_MAGICK_PLUS_PLUS_FALSE=
24040fi
24041
cristy3ed852e2009-09-05 21:47:34 +000024042
24043# Only check for delegate libraries in subdirectories if requested.
24044if test "$enable_delegate_build" != 'no'; then
24045 # Check for delegate sub-directories and add -I & -L options as required.
24046 # This presumes that delegates are installed as detailed in the ImageMagick
24047 # README. If delegates are installed in a standard location where the
24048 # compiler will automatically find them then these options should not be
24049 # required.
24050
24051 #
24052 # Most delegates have includes in the same directory as the library, but not all...
24053 #
24054 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024055 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024056 if test -d "$builddir/$dir"; then
24057 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24058 else
24059 if test -d "$srcdirfull/$dir"; then
24060 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24061 fi
24062 fi
24063 done
24064
24065 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024066 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024067 if test -d "$builddir/$dir/.libs"; then
24068 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24069 else
24070 if test -d "$srcdirfull/$dir/.libs"; then
24071 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24072 fi
24073 fi
24074 if test -d "$builddir/$dir"; then
24075 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24076 else
24077 if test -d "$srcdirfull/$dir"; then
24078 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24079 fi
24080 fi
24081 done
24082fi
24083
24084# Assume that delegate headers reside under same directory as ImageMagick
24085# installation prefix.
24086MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24087
24088#
24089# Find the X11 RGB database
24090#
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024093if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024094 $as_echo_n "(cached) " >&6
24095else
24096 # Look for the header file in a standard set of common directories.
24097# Check X11 before X11Rn because it is often a symlink to the current release.
24098 for ac_dir in \
24099 /lib/usr/lib/X11 \
24100 /usr/X11/lib \
24101 /usr/X11R4/lib \
24102 /usr/X11R5/lib \
24103 /usr/X11R6/lib \
24104 /usr/X11R7/lib \
24105 /usr/X386/lib \
24106 /usr/XFree86/lib/X11 \
24107 /usr/athena/lib \
24108 /usr/lib \
24109 /usr/lib/X11 \
24110 /usr/lib/X11R4 \
24111 /usr/lib/X11R5 \
24112 /usr/lib/X11R6 \
24113 /usr/lib/X11R7 \
24114 /usr/local/X11/lib \
24115 /usr/local/X11R4/lib \
24116 /usr/local/X11R5/lib \
24117 /usr/local/X11R6/lib \
24118 /usr/local/lib \
24119 /usr/local/lib/X11 \
24120 /usr/local/lib/X11R4 \
24121 /usr/local/lib/X11R5 \
24122 /usr/local/lib/X11R6 \
24123 /usr/local/lib/X11R7 \
24124 /usr/local/x11r5/lib \
24125 /usr/lpp/Xamples/lib \
24126 /usr/openwin/lib \
24127 /usr/openwin/share/lib \
24128 /usr/unsupported/lib \
24129 /usr/x386/lib \
24130 ; do
24131 if test -f "$ac_dir/X11/rgb.txt"; then
24132 im_cv_x_configure="$ac_dir/X11/"
24133 break
24134 elif test -f "$ac_dir/rgb.txt"; then
24135 im_cv_x_configure="$ac_dir/"
24136 break
24137 fi
24138
24139 done
24140fi
cristy8b350f62009-11-15 23:12:43 +000024141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024142$as_echo "$im_cv_x_configure" >&6; }
24143X11_CONFIGURE_PATH="$im_cv_x_configure"
24144case "${build_os}" in
24145 mingw* )
24146 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24147 ;;
24148esac
24149
24150cat >>confdefs.h <<_ACEOF
24151#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24152_ACEOF
24153
24154
24155#
24156# Find OpenMP library
24157#
24158GOMP_LIBS=''
24159if test "$enable_openmp" != 'no'; then
24160 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024163if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 $as_echo_n "(cached) " >&6
24165else
24166 ac_check_lib_save_LIBS=$LIBS
24167LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024169/* end confdefs.h. */
24170
24171/* Override any GCC internal prototype to avoid an error.
24172 Use char because int might match the return type of a GCC
24173 builtin and then its argument prototype would still apply. */
24174#ifdef __cplusplus
24175extern "C"
24176#endif
24177char GOMP_parallel_start ();
24178int
24179main ()
24180{
24181return GOMP_parallel_start ();
24182 ;
24183 return 0;
24184}
24185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024187 ac_cv_lib_gomp_GOMP_parallel_start=yes
24188else
cristy8b350f62009-11-15 23:12:43 +000024189 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024190fi
cristy8b350f62009-11-15 23:12:43 +000024191rm -f core conftest.err conftest.$ac_objext \
24192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024193LIBS=$ac_check_lib_save_LIBS
24194fi
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024197if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 GOMP_LIBS="-lgomp"
24199fi
24200 # gcc
24201 else
cristy8b350f62009-11-15 23:12:43 +000024202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024203$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024204if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 $as_echo_n "(cached) " >&6
24206else
24207 ac_check_lib_save_LIBS=$LIBS
24208LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024210/* end confdefs.h. */
24211
24212/* Override any GCC internal prototype to avoid an error.
24213 Use char because int might match the return type of a GCC
24214 builtin and then its argument prototype would still apply. */
24215#ifdef __cplusplus
24216extern "C"
24217#endif
24218char sunw_mp_register_warn ();
24219int
24220main ()
24221{
24222return sunw_mp_register_warn ();
24223 ;
24224 return 0;
24225}
24226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24229else
cristy8b350f62009-11-15 23:12:43 +000024230 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024231fi
cristy8b350f62009-11-15 23:12:43 +000024232rm -f core conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024234LIBS=$ac_check_lib_save_LIBS
24235fi
cristy8b350f62009-11-15 23:12:43 +000024236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024238if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024239 GOMP_LIBS="-lmtsk"
24240fi
24241 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024244if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024245 $as_echo_n "(cached) " >&6
24246else
24247 ac_check_lib_save_LIBS=$LIBS
24248LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024250/* end confdefs.h. */
24251
24252/* Override any GCC internal prototype to avoid an error.
24253 Use char because int might match the return type of a GCC
24254 builtin and then its argument prototype would still apply. */
24255#ifdef __cplusplus
24256extern "C"
24257#endif
24258char _xlsmpFlush ();
24259int
24260main ()
24261{
24262return _xlsmpFlush ();
24263 ;
24264 return 0;
24265}
24266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024268 ac_cv_lib_xlsmp__xlsmpFlush=yes
24269else
cristy8b350f62009-11-15 23:12:43 +000024270 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024271fi
cristy8b350f62009-11-15 23:12:43 +000024272rm -f core conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024274LIBS=$ac_check_lib_save_LIBS
24275fi
cristy8b350f62009-11-15 23:12:43 +000024276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024278if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 GOMP_LIBS="-lxlsmp"
24280fi
24281 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024284if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 $as_echo_n "(cached) " >&6
24286else
24287 ac_check_lib_save_LIBS=$LIBS
24288LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024290/* end confdefs.h. */
24291
24292/* Override any GCC internal prototype to avoid an error.
24293 Use char because int might match the return type of a GCC
24294 builtin and then its argument prototype would still apply. */
24295#ifdef __cplusplus
24296extern "C"
24297#endif
24298char mp_destroy ();
24299int
24300main ()
24301{
24302return mp_destroy ();
24303 ;
24304 return 0;
24305}
24306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 ac_cv_lib_mp_mp_destroy=yes
24309else
cristy8b350f62009-11-15 23:12:43 +000024310 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024311fi
cristy8b350f62009-11-15 23:12:43 +000024312rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024314LIBS=$ac_check_lib_save_LIBS
24315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024318if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024319 GOMP_LIBS="-lmp"
24320fi
24321 # SGI IRIX 6.5 MIPSpro C/C++
24322 fi
24323 LIBS="$GOMP_LIBS $LIBS"
24324fi
24325
24326
24327#
24328# Find Posix threads library
24329#
24330THREAD_LIBS=''
24331if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24332
24333 if test "x$PTHREAD_LIBS" = "x"; then
24334 case "${host_cpu}-${host_os}" in
24335 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000024336
24337
24338
24339ac_ext=c
24340ac_cpp='$CPP $CPPFLAGS'
24341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24343ac_compiler_gnu=$ac_cv_c_compiler_gnu
24344
24345magick_pthread_lib_ok=no
24346
24347LIB=-lc_r
24348save_LIBS="$LIBS"
24349LIBS="$LIBS $LIB"
24350
24351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24352$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24354/* end confdefs.h. */
24355#include <pthread.h>
24356int
24357main ()
24358{
24359 pthread_t th;
24360 pthread_join(th, 0);
24361 pthread_attr_init(0);
24362 pthread_cleanup_push(0, 0);
24363 pthread_create(0,0,0,0);
24364 pthread_cleanup_pop(0);
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369if ac_fn_c_try_link "$LINENO"; then :
24370 magick_pthread_lib_ok=yes
24371fi
24372rm -f core conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24374
24375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24376$as_echo "${magick_pthread_lib_ok}" >&6; }
24377if test "$magick_pthread_lib_ok" = yes
24378then
24379 PTHREAD_LIBS=-lc_r
24380 :
24381else
24382
24383 :
24384fi
24385
24386LIBS="$save_LIBS"
24387
24388ac_ext=c
24389ac_cpp='$CPP $CPPFLAGS'
24390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24392ac_compiler_gnu=$ac_cv_c_compiler_gnu
24393
24394 ;;
cristy3ed852e2009-09-05 21:47:34 +000024395 esac
24396 fi
24397
24398 for lib in pthread pthreads; do
24399 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000024400
24401
24402
24403ac_ext=c
24404ac_cpp='$CPP $CPPFLAGS'
24405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24407ac_compiler_gnu=$ac_cv_c_compiler_gnu
24408
24409magick_pthread_lib_ok=no
24410
24411LIB=-l$lib
24412save_LIBS="$LIBS"
24413LIBS="$LIBS $LIB"
24414
24415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24416$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24418/* end confdefs.h. */
24419#include <pthread.h>
24420int
24421main ()
24422{
24423 pthread_t th;
24424 pthread_join(th, 0);
24425 pthread_attr_init(0);
24426 pthread_cleanup_push(0, 0);
24427 pthread_create(0,0,0,0);
24428 pthread_cleanup_pop(0);
24429 ;
24430 return 0;
24431}
24432_ACEOF
24433if ac_fn_c_try_link "$LINENO"; then :
24434 magick_pthread_lib_ok=yes
24435fi
24436rm -f core conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
24438
24439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24440$as_echo "${magick_pthread_lib_ok}" >&6; }
24441if test "$magick_pthread_lib_ok" = yes
24442then
24443 PTHREAD_LIBS=-l$lib
24444 :
24445else
24446
24447 :
24448fi
24449
24450LIBS="$save_LIBS"
24451
24452ac_ext=c
24453ac_cpp='$CPP $CPPFLAGS'
24454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24456ac_compiler_gnu=$ac_cv_c_compiler_gnu
24457
24458
cristy3ed852e2009-09-05 21:47:34 +000024459 fi
24460 done
24461
24462 THREAD_LIBS="$PTHREAD_LIBS"
24463 LIBS="$LIBS $THREAD_LIBS"
24464fi
24465
24466
24467#
24468# Check for umem.
24469#
24470have_umem='no'
24471UMEM_LIBS=''
24472if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024474$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024476$as_echo "" >&6; }
24477 failed=0
24478 passed=0
cristy8b350f62009-11-15 23:12:43 +000024479 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24480if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024481 passed=`expr $passed + 1`
24482else
24483 failed=`expr $failed + 1`
24484fi
24485
24486
cristy8b350f62009-11-15 23:12:43 +000024487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024488$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024489if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024490 $as_echo_n "(cached) " >&6
24491else
24492 ac_check_lib_save_LIBS=$LIBS
24493LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024495/* end confdefs.h. */
24496
24497/* Override any GCC internal prototype to avoid an error.
24498 Use char because int might match the return type of a GCC
24499 builtin and then its argument prototype would still apply. */
24500#ifdef __cplusplus
24501extern "C"
24502#endif
24503char umem_alloc ();
24504int
24505main ()
24506{
24507return umem_alloc ();
24508 ;
24509 return 0;
24510}
24511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 ac_cv_lib_umem_umem_alloc=yes
24514else
cristy8b350f62009-11-15 23:12:43 +000024515 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024516fi
cristy8b350f62009-11-15 23:12:43 +000024517rm -f core conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024519LIBS=$ac_check_lib_save_LIBS
24520fi
cristy8b350f62009-11-15 23:12:43 +000024521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024522$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024523if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024524 passed=`expr $passed + 1`
24525else
24526 failed=`expr $failed + 1`
24527fi
24528
cristy8b350f62009-11-15 23:12:43 +000024529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024531if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 $as_echo_n "(cached) " >&6
24533else
24534 ac_check_lib_save_LIBS=$LIBS
24535LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024537/* end confdefs.h. */
24538
24539/* Override any GCC internal prototype to avoid an error.
24540 Use char because int might match the return type of a GCC
24541 builtin and then its argument prototype would still apply. */
24542#ifdef __cplusplus
24543extern "C"
24544#endif
24545char umem_free ();
24546int
24547main ()
24548{
24549return umem_free ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 ac_cv_lib_umem_umem_free=yes
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024558fi
cristy8b350f62009-11-15 23:12:43 +000024559rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024561LIBS=$ac_check_lib_save_LIBS
24562fi
cristy8b350f62009-11-15 23:12:43 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024565if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024566 passed=`expr $passed + 1`
24567else
24568 failed=`expr $failed + 1`
24569fi
24570
cristy8b350f62009-11-15 23:12:43 +000024571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24573 if test $passed -gt 0; then
24574 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024576$as_echo "no -- some components failed test" >&6; }
24577 have_umem='no (failed tests)'
24578 else
24579 UMEM_LIBS='-lumem'
24580 LIBS="$UMEM_LIBS $LIBS"
24581
cristy8b350f62009-11-15 23:12:43 +000024582$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024583
cristy8b350f62009-11-15 23:12:43 +000024584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024585$as_echo "yes" >&6; }
24586 have_umem='yes'
24587 fi
24588 else
cristy8b350f62009-11-15 23:12:43 +000024589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo "no" >&6; }
24591 fi
24592fi
cristy73bd4a52010-10-05 11:24:23 +000024593 if test "$have_umem" = 'yes'; then
24594 HasUMEM_TRUE=
24595 HasUMEM_FALSE='#'
24596else
24597 HasUMEM_TRUE='#'
24598 HasUMEM_FALSE=
24599fi
24600
cristy3ed852e2009-09-05 21:47:34 +000024601
24602
24603#
24604# Add support for ccmalloc memory debugging library if requested
24605#
24606have_ccmalloc='no'
24607CCMALLOC_LIBS=''
24608if test "$enable_ccmalloc" = 'yes'; then
24609 # Extract the first word of "ccmalloc", so it can be a program name with args.
24610set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024612$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024613if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024614 $as_echo_n "(cached) " >&6
24615else
24616 case $CCMALLOCDelegate in
24617 [\\/]* | ?:[\\/]*)
24618 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24619 ;;
24620 *)
24621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24622for as_dir in $PATH
24623do
24624 IFS=$as_save_IFS
24625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24628 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024630 break 2
24631 fi
24632done
cristy8b350f62009-11-15 23:12:43 +000024633 done
cristy3ed852e2009-09-05 21:47:34 +000024634IFS=$as_save_IFS
24635
24636 ;;
24637esac
24638fi
24639CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24640if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024642$as_echo "$CCMALLOCDelegate" >&6; }
24643else
cristy8b350f62009-11-15 23:12:43 +000024644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024645$as_echo "no" >&6; }
24646fi
24647
24648
24649 if test -n "$CCMALLOCDelegate"; then
24650 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24651 OLIBS="$LIBS"
24652 # Assume that gcc is used with ccmalloc.
24653 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024655$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024656if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 $as_echo_n "(cached) " >&6
24658else
24659 ac_check_lib_save_LIBS=$LIBS
24660LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662/* end confdefs.h. */
24663
24664/* Override any GCC internal prototype to avoid an error.
24665 Use char because int might match the return type of a GCC
24666 builtin and then its argument prototype would still apply. */
24667#ifdef __cplusplus
24668extern "C"
24669#endif
24670char ccmalloc_malloc ();
24671int
24672main ()
24673{
24674return ccmalloc_malloc ();
24675 ;
24676 return 0;
24677}
24678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24681else
cristy8b350f62009-11-15 23:12:43 +000024682 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024683fi
cristy8b350f62009-11-15 23:12:43 +000024684rm -f core conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024686LIBS=$ac_check_lib_save_LIBS
24687fi
cristy8b350f62009-11-15 23:12:43 +000024688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024690if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24692fi
24693
24694 if test -n "$CCMALLOC_LIBS"; then
24695 LIBS="$OLIBS"
24696 LIBS="$LIBS $CCMALLOC_LIBS"
24697 have_ccmalloc='yes'
24698 else
24699 LIBS="$OLIBS"
24700 fi
24701 fi
24702fi
24703
24704#
24705# Add support for efence memory debugging library if requested
24706#
24707if test "$enable_efence" = 'yes'; then
24708 EFENCE_LIBS='-lefence'
24709 LIBS="$EFENCE_LIBS $LIBS"
24710fi
24711
cristy3ed852e2009-09-05 21:47:34 +000024712
24713#
24714# Check for BZLIB
24715#
24716
24717
24718# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024719if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 withval=$with_bzlib; with_bzlib=$withval
24721else
24722 with_bzlib='yes'
24723fi
24724
24725
24726if test "$with_bzlib" != 'yes'; then
24727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24728fi
24729
24730have_bzlib='no'
24731if test "$with_bzlib" != 'no'; then
24732 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024734$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024738$as_echo "" >&6; }
24739 failed=0
24740 passed=0
24741 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024742 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24743if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024744 passed=`expr $passed + 1`
24745else
24746 failed=`expr $failed + 1`
24747fi
24748
24749
cristy8b350f62009-11-15 23:12:43 +000024750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024751$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024752if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 $as_echo_n "(cached) " >&6
24754else
24755 ac_check_lib_save_LIBS=$LIBS
24756LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024758/* end confdefs.h. */
24759
24760/* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24763#ifdef __cplusplus
24764extern "C"
24765#endif
24766char BZ2_bzDecompress ();
24767int
24768main ()
24769{
24770return BZ2_bzDecompress ();
24771 ;
24772 return 0;
24773}
24774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024779fi
cristy8b350f62009-11-15 23:12:43 +000024780rm -f core conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024782LIBS=$ac_check_lib_save_LIBS
24783fi
cristy8b350f62009-11-15 23:12:43 +000024784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024786if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024787 found_libbz=`expr $found_libbz + 1`
24788fi
24789
24790 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024792$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024793if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 $as_echo_n "(cached) " >&6
24795else
24796 ac_check_lib_save_LIBS=$LIBS
24797LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799/* end confdefs.h. */
24800
24801/* Override any GCC internal prototype to avoid an error.
24802 Use char because int might match the return type of a GCC
24803 builtin and then its argument prototype would still apply. */
24804#ifdef __cplusplus
24805extern "C"
24806#endif
24807char _imp__BZ2_decompress ();
24808int
24809main ()
24810{
24811return _imp__BZ2_decompress ();
24812 ;
24813 return 0;
24814}
24815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024817 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24818else
cristy8b350f62009-11-15 23:12:43 +000024819 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024820fi
cristy8b350f62009-11-15 23:12:43 +000024821rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024823LIBS=$ac_check_lib_save_LIBS
24824fi
cristy8b350f62009-11-15 23:12:43 +000024825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024827if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 found_libbz=`expr $found_libbz + 1`
24829fi
24830
24831 fi
24832 if test $found_libbz -gt 0; then
24833 passed=`expr $passed + 1`
24834 else
24835 failed=`expr $failed + 1`
24836 fi
cristy8b350f62009-11-15 23:12:43 +000024837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo_n "checking if BZLIB package is complete... " >&6; }
24839 if test $passed -gt 0; then
24840 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024842$as_echo "no -- some components failed test" >&6; }
24843 have_bzlib='no (failed tests)'
24844 else
24845 BZLIB_LIBS='-lbz2'
24846 LIBS="$BZLIB_LIBS $LIBS"
24847
cristy8b350f62009-11-15 23:12:43 +000024848$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024849
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo "yes" >&6; }
24852 have_bzlib='yes'
24853 fi
24854 else
cristy8b350f62009-11-15 23:12:43 +000024855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo "no" >&6; }
24857 fi
24858fi
cristy73bd4a52010-10-05 11:24:23 +000024859 if test "$have_bzlib" = 'yes'; then
24860 BZLIB_DELEGATE_TRUE=
24861 BZLIB_DELEGATE_FALSE='#'
24862else
24863 BZLIB_DELEGATE_TRUE='#'
24864 BZLIB_DELEGATE_FALSE=
24865fi
24866
cristy3ed852e2009-09-05 21:47:34 +000024867
24868
24869#
24870# Find the X11 include and library directories.
24871#
24872IPC_LIBS=''
24873X11_LIBS=''
24874XEXT_LIBS=''
24875XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024877$as_echo_n "checking for X... " >&6; }
24878
24879
24880# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024881if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024882 withval=$with_x;
24883fi
24884
24885# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24886if test "x$with_x" = xno; then
24887 # The user explicitly disabled X.
24888 have_x=disabled
24889else
24890 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000024891 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024893 $as_echo_n "(cached) " >&6
24894else
24895 # One or both of the vars are not set, and there is no cached value.
24896ac_x_includes=no ac_x_libraries=no
24897rm -f -r conftest.dir
24898if mkdir conftest.dir; then
24899 cd conftest.dir
24900 cat >Imakefile <<'_ACEOF'
24901incroot:
24902 @echo incroot='${INCROOT}'
24903usrlibdir:
24904 @echo usrlibdir='${USRLIBDIR}'
24905libdir:
24906 @echo libdir='${LIBDIR}'
24907_ACEOF
24908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000024909 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024910 for ac_var in incroot usrlibdir libdir; do
24911 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24912 done
24913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24914 for ac_extension in a so sl dylib la dll; do
24915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24917 ac_im_usrlibdir=$ac_im_libdir; break
24918 fi
24919 done
24920 # Screen out bogus values from the imake configuration. They are
24921 # bogus both because they are the default anyway, and because
24922 # using them would break gcc on systems where it needs fixed includes.
24923 case $ac_im_incroot in
24924 /usr/include) ac_x_includes= ;;
24925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24926 esac
24927 case $ac_im_usrlibdir in
24928 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24930 esac
24931 fi
24932 cd ..
24933 rm -f -r conftest.dir
24934fi
24935
24936# Standard set of common directories for X headers.
24937# Check X11 before X11Rn because it is often a symlink to the current release.
24938ac_x_header_dirs='
24939/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024940/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024941/usr/X11R6/include
24942/usr/X11R5/include
24943/usr/X11R4/include
24944
24945/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024946/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024947/usr/include/X11R6
24948/usr/include/X11R5
24949/usr/include/X11R4
24950
24951/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024952/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024953/usr/local/X11R6/include
24954/usr/local/X11R5/include
24955/usr/local/X11R4/include
24956
24957/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024958/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024959/usr/local/include/X11R6
24960/usr/local/include/X11R5
24961/usr/local/include/X11R4
24962
24963/usr/X386/include
24964/usr/x386/include
24965/usr/XFree86/include/X11
24966
24967/usr/include
24968/usr/local/include
24969/usr/unsupported/include
24970/usr/athena/include
24971/usr/local/x11r5/include
24972/usr/lpp/Xamples/include
24973
24974/usr/openwin/include
24975/usr/openwin/share/include'
24976
24977if test "$ac_x_includes" = no; then
24978 # Guess where to find include files, by looking for Xlib.h.
24979 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024981/* end confdefs.h. */
24982#include <X11/Xlib.h>
24983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024984if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024985 # We can compile using X headers with no special include directory.
24986ac_x_includes=
24987else
cristyc7083c12009-10-14 03:16:55 +000024988 for ac_dir in $ac_x_header_dirs; do
24989 if test -r "$ac_dir/X11/Xlib.h"; then
24990 ac_x_includes=$ac_dir
24991 break
24992 fi
24993done
24994fi
cristyc7083c12009-10-14 03:16:55 +000024995rm -f conftest.err conftest.$ac_ext
24996fi # $ac_x_includes = no
24997
24998if test "$ac_x_libraries" = no; then
24999 # Check for the libraries.
25000 # See if we find them without any special options.
25001 # Don't add to $LIBS permanently.
25002 ac_save_LIBS=$LIBS
25003 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025005/* end confdefs.h. */
25006#include <X11/Xlib.h>
25007int
25008main ()
25009{
25010XrmInitialize ()
25011 ;
25012 return 0;
25013}
25014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025015if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025016 LIBS=$ac_save_LIBS
25017# We can link X programs with no special library path.
25018ac_x_libraries=
25019else
cristy8b350f62009-11-15 23:12:43 +000025020 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025021for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25022do
25023 # Don't even attempt the hair of trying to link an X program!
25024 for ac_extension in a so sl dylib la dll; do
25025 if test -r "$ac_dir/libX11.$ac_extension"; then
25026 ac_x_libraries=$ac_dir
25027 break 2
25028 fi
25029 done
25030done
25031fi
cristy8b350f62009-11-15 23:12:43 +000025032rm -f core conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025034fi # $ac_x_libraries = no
25035
25036case $ac_x_includes,$ac_x_libraries in #(
25037 no,* | *,no | *\'*)
25038 # Didn't find X, or a directory has "'" in its name.
25039 ac_cv_have_x="have_x=no";; #(
25040 *)
25041 # Record where we found X for the cache.
25042 ac_cv_have_x="have_x=yes\
25043 ac_x_includes='$ac_x_includes'\
25044 ac_x_libraries='$ac_x_libraries'"
25045esac
25046fi
25047;; #(
25048 *) have_x=yes;;
25049 esac
25050 eval "$ac_cv_have_x"
25051fi # $with_x != no
25052
25053if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025055$as_echo "$have_x" >&6; }
25056 no_x=yes
25057else
25058 # If each of the values was on the command line, it overrides each guess.
25059 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25060 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25061 # Update the cache value to reflect the command line values.
25062 ac_cv_have_x="have_x=yes\
25063 ac_x_includes='$x_includes'\
25064 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025066$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25067fi
25068
cristy3ed852e2009-09-05 21:47:34 +000025069if test "$no_x" = yes; then
25070 # Not all programs may use this symbol, but it does not hurt to define it.
25071
cristy8b350f62009-11-15 23:12:43 +000025072$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025073
25074 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25075else
25076 if test -n "$x_includes"; then
25077 X_CFLAGS="$X_CFLAGS -I$x_includes"
25078 fi
25079
25080 # It would also be nice to do this for all -L options, not just this one.
25081 if test -n "$x_libraries"; then
25082 X_LIBS="$X_LIBS -L$x_libraries"
25083 # For Solaris; some versions of Sun CC require a space after -R and
25084 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025086$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25087 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25088 ac_xsave_c_werror_flag=$ac_c_werror_flag
25089 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025091/* end confdefs.h. */
25092
25093int
25094main ()
25095{
25096
25097 ;
25098 return 0;
25099}
25100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025101if ac_fn_c_try_link "$LINENO"; then :
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025103$as_echo "no" >&6; }
25104 X_LIBS="$X_LIBS -R$x_libraries"
25105else
cristy8b350f62009-11-15 23:12:43 +000025106 LIBS="$ac_xsave_LIBS -R $x_libraries"
25107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025108/* end confdefs.h. */
25109
25110int
25111main ()
25112{
25113
25114 ;
25115 return 0;
25116}
25117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025118if ac_fn_c_try_link "$LINENO"; then :
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "yes" >&6; }
25121 X_LIBS="$X_LIBS -R $x_libraries"
25122else
cristy8b350f62009-11-15 23:12:43 +000025123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025124$as_echo "neither works" >&6; }
25125fi
cristy8b350f62009-11-15 23:12:43 +000025126rm -f core conftest.err conftest.$ac_objext \
25127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025128fi
cristy8b350f62009-11-15 23:12:43 +000025129rm -f core conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025131 ac_c_werror_flag=$ac_xsave_c_werror_flag
25132 LIBS=$ac_xsave_LIBS
25133 fi
25134
25135 # Check for system-dependent libraries X programs must link with.
25136 # Do this before checking for the system-independent R6 libraries
25137 # (-lICE), since we may need -lsocket or whatever for X linking.
25138
25139 if test "$ISC" = yes; then
25140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25141 else
25142 # Martyn Johnson says this is needed for Ultrix, if the X
25143 # libraries were built with DECnet support. And Karl Berry says
25144 # the Alpha needs dnet_stub (dnet does not exist).
25145 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025147/* end confdefs.h. */
25148
25149/* Override any GCC internal prototype to avoid an error.
25150 Use char because int might match the return type of a GCC
25151 builtin and then its argument prototype would still apply. */
25152#ifdef __cplusplus
25153extern "C"
25154#endif
25155char XOpenDisplay ();
25156int
25157main ()
25158{
25159return XOpenDisplay ();
25160 ;
25161 return 0;
25162}
25163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025165
cristy8b350f62009-11-15 23:12:43 +000025166else
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025168$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025169if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025170 $as_echo_n "(cached) " >&6
25171else
25172 ac_check_lib_save_LIBS=$LIBS
25173LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025175/* end confdefs.h. */
25176
25177/* Override any GCC internal prototype to avoid an error.
25178 Use char because int might match the return type of a GCC
25179 builtin and then its argument prototype would still apply. */
25180#ifdef __cplusplus
25181extern "C"
25182#endif
25183char dnet_ntoa ();
25184int
25185main ()
25186{
25187return dnet_ntoa ();
25188 ;
25189 return 0;
25190}
25191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025193 ac_cv_lib_dnet_dnet_ntoa=yes
25194else
cristy8b350f62009-11-15 23:12:43 +000025195 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025196fi
cristy8b350f62009-11-15 23:12:43 +000025197rm -f core conftest.err conftest.$ac_objext \
25198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025199LIBS=$ac_check_lib_save_LIBS
25200fi
cristy8b350f62009-11-15 23:12:43 +000025201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025202$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025203if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25205fi
25206
25207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025209$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025210if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 $as_echo_n "(cached) " >&6
25212else
25213 ac_check_lib_save_LIBS=$LIBS
25214LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025216/* end confdefs.h. */
25217
25218/* Override any GCC internal prototype to avoid an error.
25219 Use char because int might match the return type of a GCC
25220 builtin and then its argument prototype would still apply. */
25221#ifdef __cplusplus
25222extern "C"
25223#endif
25224char dnet_ntoa ();
25225int
25226main ()
25227{
25228return dnet_ntoa ();
25229 ;
25230 return 0;
25231}
25232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25235else
cristy8b350f62009-11-15 23:12:43 +000025236 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025237fi
cristy8b350f62009-11-15 23:12:43 +000025238rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025240LIBS=$ac_check_lib_save_LIBS
25241fi
cristy8b350f62009-11-15 23:12:43 +000025242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025243$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025244if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25246fi
25247
25248 fi
25249fi
cristy8b350f62009-11-15 23:12:43 +000025250rm -f core conftest.err conftest.$ac_objext \
25251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025252 LIBS="$ac_xsave_LIBS"
25253
25254 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25255 # to get the SysV transport functions.
25256 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25257 # needs -lnsl.
25258 # The nsl library prevents programs from opening the X display
25259 # on Irix 5.2, according to T.E. Dickey.
25260 # The functions gethostbyname, getservbyname, and inet_addr are
25261 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025262 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25263if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025264
cristy3ed852e2009-09-05 21:47:34 +000025265fi
25266
cristy3ed852e2009-09-05 21:47:34 +000025267 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025270if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025271 $as_echo_n "(cached) " >&6
25272else
25273 ac_check_lib_save_LIBS=$LIBS
25274LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025276/* end confdefs.h. */
25277
25278/* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284char gethostbyname ();
25285int
25286main ()
25287{
25288return gethostbyname ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025294 ac_cv_lib_nsl_gethostbyname=yes
25295else
cristy8b350f62009-11-15 23:12:43 +000025296 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025297fi
cristy8b350f62009-11-15 23:12:43 +000025298rm -f core conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025300LIBS=$ac_check_lib_save_LIBS
25301fi
cristy8b350f62009-11-15 23:12:43 +000025302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025303$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025304if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25306fi
25307
25308 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025310$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025311if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 $as_echo_n "(cached) " >&6
25313else
25314 ac_check_lib_save_LIBS=$LIBS
25315LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025317/* end confdefs.h. */
25318
25319/* Override any GCC internal prototype to avoid an error.
25320 Use char because int might match the return type of a GCC
25321 builtin and then its argument prototype would still apply. */
25322#ifdef __cplusplus
25323extern "C"
25324#endif
25325char gethostbyname ();
25326int
25327main ()
25328{
25329return gethostbyname ();
25330 ;
25331 return 0;
25332}
25333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025335 ac_cv_lib_bsd_gethostbyname=yes
25336else
cristy8b350f62009-11-15 23:12:43 +000025337 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025338fi
cristy8b350f62009-11-15 23:12:43 +000025339rm -f core conftest.err conftest.$ac_objext \
25340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025341LIBS=$ac_check_lib_save_LIBS
25342fi
cristy8b350f62009-11-15 23:12:43 +000025343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025344$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025345if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25347fi
25348
25349 fi
25350 fi
25351
25352 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25353 # socket/setsockopt and other routines are undefined under SCO ODT
25354 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25355 # on later versions), says Simon Leinen: it contains gethostby*
25356 # variants that don't use the name server (or something). -lsocket
25357 # must be given before -lnsl if both are needed. We assume that
25358 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025359 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25360if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361
cristy3ed852e2009-09-05 21:47:34 +000025362fi
25363
cristy3ed852e2009-09-05 21:47:34 +000025364 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025367if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 $as_echo_n "(cached) " >&6
25369else
25370 ac_check_lib_save_LIBS=$LIBS
25371LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025373/* end confdefs.h. */
25374
25375/* Override any GCC internal prototype to avoid an error.
25376 Use char because int might match the return type of a GCC
25377 builtin and then its argument prototype would still apply. */
25378#ifdef __cplusplus
25379extern "C"
25380#endif
25381char connect ();
25382int
25383main ()
25384{
25385return connect ();
25386 ;
25387 return 0;
25388}
25389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025391 ac_cv_lib_socket_connect=yes
25392else
cristy8b350f62009-11-15 23:12:43 +000025393 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025394fi
cristy8b350f62009-11-15 23:12:43 +000025395rm -f core conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025397LIBS=$ac_check_lib_save_LIBS
25398fi
cristy8b350f62009-11-15 23:12:43 +000025399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025401if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025402 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25403fi
25404
25405 fi
25406
25407 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025408 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25409if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025410
cristy3ed852e2009-09-05 21:47:34 +000025411fi
25412
cristy3ed852e2009-09-05 21:47:34 +000025413 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025415$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025416if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 $as_echo_n "(cached) " >&6
25418else
25419 ac_check_lib_save_LIBS=$LIBS
25420LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025422/* end confdefs.h. */
25423
25424/* Override any GCC internal prototype to avoid an error.
25425 Use char because int might match the return type of a GCC
25426 builtin and then its argument prototype would still apply. */
25427#ifdef __cplusplus
25428extern "C"
25429#endif
25430char remove ();
25431int
25432main ()
25433{
25434return remove ();
25435 ;
25436 return 0;
25437}
25438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 ac_cv_lib_posix_remove=yes
25441else
cristy8b350f62009-11-15 23:12:43 +000025442 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025443fi
cristy8b350f62009-11-15 23:12:43 +000025444rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025446LIBS=$ac_check_lib_save_LIBS
25447fi
cristy8b350f62009-11-15 23:12:43 +000025448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025450if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25452fi
25453
25454 fi
25455
25456 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025457 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25458if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025459
cristy3ed852e2009-09-05 21:47:34 +000025460fi
25461
cristy3ed852e2009-09-05 21:47:34 +000025462 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025464$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025465if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025466 $as_echo_n "(cached) " >&6
25467else
25468 ac_check_lib_save_LIBS=$LIBS
25469LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025471/* end confdefs.h. */
25472
25473/* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479char shmat ();
25480int
25481main ()
25482{
25483return shmat ();
25484 ;
25485 return 0;
25486}
25487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 ac_cv_lib_ipc_shmat=yes
25490else
cristy8b350f62009-11-15 23:12:43 +000025491 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025492fi
cristy8b350f62009-11-15 23:12:43 +000025493rm -f core conftest.err conftest.$ac_objext \
25494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025495LIBS=$ac_check_lib_save_LIBS
25496fi
cristy8b350f62009-11-15 23:12:43 +000025497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025499if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25501fi
25502
25503 fi
25504 fi
25505
25506 # Check for libraries that X11R6 Xt/Xaw programs need.
25507 ac_save_LDFLAGS=$LDFLAGS
25508 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25509 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25510 # check for ICE first), but we must link in the order -lSM -lICE or
25511 # we get undefined symbols. So assume we have SM if we have ICE.
25512 # These have to be linked with before -lX11, unlike the other
25513 # libraries we check for below, so use a different variable.
25514 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025516$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025517if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025518 $as_echo_n "(cached) " >&6
25519else
25520 ac_check_lib_save_LIBS=$LIBS
25521LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025523/* end confdefs.h. */
25524
25525/* Override any GCC internal prototype to avoid an error.
25526 Use char because int might match the return type of a GCC
25527 builtin and then its argument prototype would still apply. */
25528#ifdef __cplusplus
25529extern "C"
25530#endif
25531char IceConnectionNumber ();
25532int
25533main ()
25534{
25535return IceConnectionNumber ();
25536 ;
25537 return 0;
25538}
25539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 ac_cv_lib_ICE_IceConnectionNumber=yes
25542else
cristy8b350f62009-11-15 23:12:43 +000025543 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025544fi
cristy8b350f62009-11-15 23:12:43 +000025545rm -f core conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025547LIBS=$ac_check_lib_save_LIBS
25548fi
cristy8b350f62009-11-15 23:12:43 +000025549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025551if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025552 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25553fi
25554
25555 LDFLAGS=$ac_save_LDFLAGS
25556
25557fi
25558
25559if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025563$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo "" >&6; }
25566 LDFLAGS="$LDFLAGS $X_LIBS"
25567 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25568 LIBS="$X11_LIBS $LIBS"
25569 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25570
25571
cristy8b350f62009-11-15 23:12:43 +000025572$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025573
25574 #
25575 # Check for X11 shared memory extension
25576 #
25577 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025578 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25579if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025580 have_shmctl='yes'
25581fi
25582
25583 if test "$have_shmctl" != 'yes'; then
25584 PERSIST_LIBS=$LIBS
25585 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025587/* end confdefs.h. */
25588
25589/* Override any GCC internal prototype to avoid an error.
25590 Use char because int might match the return type of a GCC
25591 builtin and then its argument prototype would still apply. */
25592#ifdef __cplusplus
25593extern "C"
25594#endif
25595char shmctl ();
25596int
25597main ()
25598{
25599return shmctl ();
25600 ;
25601 return 0;
25602}
25603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025605 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025606fi
cristy8b350f62009-11-15 23:12:43 +000025607rm -f core conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025609 LIBS=$PERSIST_LIBS
25610 fi
25611
25612 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025614$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025615if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025616 $as_echo_n "(cached) " >&6
25617else
25618 ac_check_lib_save_LIBS=$LIBS
25619LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025621/* end confdefs.h. */
25622
25623/* Override any GCC internal prototype to avoid an error.
25624 Use char because int might match the return type of a GCC
25625 builtin and then its argument prototype would still apply. */
25626#ifdef __cplusplus
25627extern "C"
25628#endif
25629char XShmAttach ();
25630int
25631main ()
25632{
25633return XShmAttach ();
25634 ;
25635 return 0;
25636}
25637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 ac_cv_lib_Xext_XShmAttach=yes
25640else
cristy8b350f62009-11-15 23:12:43 +000025641 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025642fi
cristy8b350f62009-11-15 23:12:43 +000025643rm -f core conftest.err conftest.$ac_objext \
25644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025645LIBS=$ac_check_lib_save_LIBS
25646fi
cristy8b350f62009-11-15 23:12:43 +000025647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025649if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025651$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025652
25653fi
25654
25655 fi
25656
25657 #
25658 # Check for X11 shape extension
25659 #
cristy8b350f62009-11-15 23:12:43 +000025660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025661$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025662if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025663 $as_echo_n "(cached) " >&6
25664else
25665 ac_check_lib_save_LIBS=$LIBS
25666LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025668/* end confdefs.h. */
25669
25670/* Override any GCC internal prototype to avoid an error.
25671 Use char because int might match the return type of a GCC
25672 builtin and then its argument prototype would still apply. */
25673#ifdef __cplusplus
25674extern "C"
25675#endif
25676char XShapeCombineMask ();
25677int
25678main ()
25679{
25680return XShapeCombineMask ();
25681 ;
25682 return 0;
25683}
25684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025686 ac_cv_lib_Xext_XShapeCombineMask=yes
25687else
cristy8b350f62009-11-15 23:12:43 +000025688 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025689fi
cristy8b350f62009-11-15 23:12:43 +000025690rm -f core conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025692LIBS=$ac_check_lib_save_LIBS
25693fi
cristy8b350f62009-11-15 23:12:43 +000025694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025695$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025696if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025697 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025698$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025699
25700fi
25701
cristy8b350f62009-11-15 23:12:43 +000025702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025703$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025704if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025705 $as_echo_n "(cached) " >&6
25706else
25707 ac_check_lib_save_LIBS=$LIBS
25708LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025710/* end confdefs.h. */
25711
25712/* Override any GCC internal prototype to avoid an error.
25713 Use char because int might match the return type of a GCC
25714 builtin and then its argument prototype would still apply. */
25715#ifdef __cplusplus
25716extern "C"
25717#endif
25718char XtSetEventDispatcher ();
25719int
25720main ()
25721{
25722return XtSetEventDispatcher ();
25723 ;
25724 return 0;
25725}
25726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25729else
cristy8b350f62009-11-15 23:12:43 +000025730 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025731fi
cristy8b350f62009-11-15 23:12:43 +000025732rm -f core conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025734LIBS=$ac_check_lib_save_LIBS
25735fi
cristy8b350f62009-11-15 23:12:43 +000025736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025737$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025738if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025739 XT_LIBS='-lXt'
25740fi
25741
25742 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25743fi
25744if test "$no_x" != 'yes'; then
25745 have_x='yes'
25746else
25747 have_x='no'
25748fi
cristy73bd4a52010-10-05 11:24:23 +000025749 if test "$have_x" = 'yes'; then
25750 X11_DELEGATE_TRUE=
25751 X11_DELEGATE_FALSE='#'
25752else
25753 X11_DELEGATE_TRUE='#'
25754 X11_DELEGATE_FALSE=
25755fi
25756
cristy3ed852e2009-09-05 21:47:34 +000025757
25758
25759
25760
25761#
25762# Check for ZLIB
25763#
25764
25765# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025766if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 withval=$with_zlib; with_zlib=$withval
25768else
25769 with_zlib='yes'
25770fi
25771
25772
25773if test "$with_zlib" != 'yes'; then
25774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25775fi
25776
25777have_zlib='no'
25778ZLIB_LIBS=''
25779if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025781$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025783$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025785$as_echo "" >&6; }
25786 ZLIB_LIBS=''
25787 failed=0
25788 passed=0
cristy8b350f62009-11-15 23:12:43 +000025789 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25790if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025791 passed=`expr $passed + 1`
25792else
25793 failed=`expr $failed + 1`
25794fi
25795
25796
cristy8b350f62009-11-15 23:12:43 +000025797 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25798if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025799 passed=`expr $passed + 1`
25800else
25801 failed=`expr $failed + 1`
25802fi
25803
25804
cristy8b350f62009-11-15 23:12:43 +000025805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025807if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025808 $as_echo_n "(cached) " >&6
25809else
25810 ac_check_lib_save_LIBS=$LIBS
25811LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025813/* end confdefs.h. */
25814
25815/* Override any GCC internal prototype to avoid an error.
25816 Use char because int might match the return type of a GCC
25817 builtin and then its argument prototype would still apply. */
25818#ifdef __cplusplus
25819extern "C"
25820#endif
25821char compress ();
25822int
25823main ()
25824{
25825return compress ();
25826 ;
25827 return 0;
25828}
25829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 ac_cv_lib_z_compress=yes
25832else
cristy8b350f62009-11-15 23:12:43 +000025833 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025834fi
cristy8b350f62009-11-15 23:12:43 +000025835rm -f core conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025837LIBS=$ac_check_lib_save_LIBS
25838fi
cristy8b350f62009-11-15 23:12:43 +000025839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025841if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 passed=`expr $passed + 1`
25843else
25844 failed=`expr $failed + 1`
25845fi
25846
cristy8b350f62009-11-15 23:12:43 +000025847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025848$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025849if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025850 $as_echo_n "(cached) " >&6
25851else
25852 ac_check_lib_save_LIBS=$LIBS
25853LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025855/* end confdefs.h. */
25856
25857/* Override any GCC internal prototype to avoid an error.
25858 Use char because int might match the return type of a GCC
25859 builtin and then its argument prototype would still apply. */
25860#ifdef __cplusplus
25861extern "C"
25862#endif
25863char uncompress ();
25864int
25865main ()
25866{
25867return uncompress ();
25868 ;
25869 return 0;
25870}
25871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 ac_cv_lib_z_uncompress=yes
25874else
cristy8b350f62009-11-15 23:12:43 +000025875 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025876fi
cristy8b350f62009-11-15 23:12:43 +000025877rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025879LIBS=$ac_check_lib_save_LIBS
25880fi
cristy8b350f62009-11-15 23:12:43 +000025881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025883if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 passed=`expr $passed + 1`
25885else
25886 failed=`expr $failed + 1`
25887fi
25888
cristy8b350f62009-11-15 23:12:43 +000025889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025890$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025891if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 $as_echo_n "(cached) " >&6
25893else
25894 ac_check_lib_save_LIBS=$LIBS
25895LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025897/* end confdefs.h. */
25898
25899/* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25902#ifdef __cplusplus
25903extern "C"
25904#endif
25905char deflate ();
25906int
25907main ()
25908{
25909return deflate ();
25910 ;
25911 return 0;
25912}
25913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 ac_cv_lib_z_deflate=yes
25916else
cristy8b350f62009-11-15 23:12:43 +000025917 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025918fi
cristy8b350f62009-11-15 23:12:43 +000025919rm -f core conftest.err conftest.$ac_objext \
25920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025921LIBS=$ac_check_lib_save_LIBS
25922fi
cristy8b350f62009-11-15 23:12:43 +000025923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025924$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025925if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025926 passed=`expr $passed + 1`
25927else
25928 failed=`expr $failed + 1`
25929fi
25930
cristy8b350f62009-11-15 23:12:43 +000025931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025933if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 $as_echo_n "(cached) " >&6
25935else
25936 ac_check_lib_save_LIBS=$LIBS
25937LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025939/* end confdefs.h. */
25940
25941/* Override any GCC internal prototype to avoid an error.
25942 Use char because int might match the return type of a GCC
25943 builtin and then its argument prototype would still apply. */
25944#ifdef __cplusplus
25945extern "C"
25946#endif
25947char inflate ();
25948int
25949main ()
25950{
25951return inflate ();
25952 ;
25953 return 0;
25954}
25955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 ac_cv_lib_z_inflate=yes
25958else
cristy8b350f62009-11-15 23:12:43 +000025959 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025960fi
cristy8b350f62009-11-15 23:12:43 +000025961rm -f core conftest.err conftest.$ac_objext \
25962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025963LIBS=$ac_check_lib_save_LIBS
25964fi
cristy8b350f62009-11-15 23:12:43 +000025965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025967if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 passed=`expr $passed + 1`
25969else
25970 failed=`expr $failed + 1`
25971fi
25972
cristy8b350f62009-11-15 23:12:43 +000025973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025975if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025976 $as_echo_n "(cached) " >&6
25977else
25978 ac_check_lib_save_LIBS=$LIBS
25979LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025981/* end confdefs.h. */
25982
25983/* Override any GCC internal prototype to avoid an error.
25984 Use char because int might match the return type of a GCC
25985 builtin and then its argument prototype would still apply. */
25986#ifdef __cplusplus
25987extern "C"
25988#endif
25989char gzseek ();
25990int
25991main ()
25992{
25993return gzseek ();
25994 ;
25995 return 0;
25996}
25997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 ac_cv_lib_z_gzseek=yes
26000else
cristy8b350f62009-11-15 23:12:43 +000026001 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026002fi
cristy8b350f62009-11-15 23:12:43 +000026003rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026005LIBS=$ac_check_lib_save_LIBS
26006fi
cristy8b350f62009-11-15 23:12:43 +000026007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026009if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 passed=`expr $passed + 1`
26011else
26012 failed=`expr $failed + 1`
26013fi
26014
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026017if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 $as_echo_n "(cached) " >&6
26019else
26020 ac_check_lib_save_LIBS=$LIBS
26021LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026023/* end confdefs.h. */
26024
26025/* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26028#ifdef __cplusplus
26029extern "C"
26030#endif
26031char gztell ();
26032int
26033main ()
26034{
26035return gztell ();
26036 ;
26037 return 0;
26038}
26039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 ac_cv_lib_z_gztell=yes
26042else
cristy8b350f62009-11-15 23:12:43 +000026043 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026044fi
cristy8b350f62009-11-15 23:12:43 +000026045rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026047LIBS=$ac_check_lib_save_LIBS
26048fi
cristy8b350f62009-11-15 23:12:43 +000026049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026051if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026052 passed=`expr $passed + 1`
26053else
26054 failed=`expr $failed + 1`
26055fi
26056
cristy8b350f62009-11-15 23:12:43 +000026057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026058$as_echo_n "checking if ZLIB package is complete... " >&6; }
26059 if test $passed -gt 0; then
26060 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026062$as_echo "no -- some components failed test" >&6; }
26063 have_zlib='no (failed tests)'
26064 else
26065 ZLIB_LIBS='-lz'
26066 LIBS="$ZLIB_LIBS $LIBS"
26067
cristy8b350f62009-11-15 23:12:43 +000026068$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026069
cristy8b350f62009-11-15 23:12:43 +000026070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo "yes" >&6; }
26072 have_zlib='yes'
26073 fi
26074 else
cristy8b350f62009-11-15 23:12:43 +000026075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo "no" >&6; }
26077 fi
26078fi
cristy73bd4a52010-10-05 11:24:23 +000026079 if test "$have_zlib" = 'yes'; then
26080 ZLIB_DELEGATE_TRUE=
26081 ZLIB_DELEGATE_FALSE='#'
26082else
26083 ZLIB_DELEGATE_TRUE='#'
26084 ZLIB_DELEGATE_FALSE=
26085fi
26086
cristy3ed852e2009-09-05 21:47:34 +000026087
26088
26089#
26090# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26091#
26092LIB_DL=''
26093if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026095$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026096if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026097 $as_echo_n "(cached) " >&6
26098else
26099 ac_check_lib_save_LIBS=$LIBS
26100LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026102/* end confdefs.h. */
26103
26104/* Override any GCC internal prototype to avoid an error.
26105 Use char because int might match the return type of a GCC
26106 builtin and then its argument prototype would still apply. */
26107#ifdef __cplusplus
26108extern "C"
26109#endif
26110char dlopen ();
26111int
26112main ()
26113{
26114return dlopen ();
26115 ;
26116 return 0;
26117}
26118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026119if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026120 ac_cv_lib_dl_dlopen=yes
26121else
cristy8b350f62009-11-15 23:12:43 +000026122 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026123fi
cristy8b350f62009-11-15 23:12:43 +000026124rm -f core conftest.err conftest.$ac_objext \
26125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026126LIBS=$ac_check_lib_save_LIBS
26127fi
cristy8b350f62009-11-15 23:12:43 +000026128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026129$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026130if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026131 LIB_DL='-ldl'
26132fi
26133
26134 LIBS="$LIB_DL $LIBS"
26135fi
26136
26137
26138
26139#
26140# Check for Autotrace delegate library.
26141#
26142
26143# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026144if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026145 withval=$with_autotrace; with_autotrace=$withval
26146else
26147 with_autotrace='no'
26148fi
26149
26150
26151if test "$with_autotrace" != 'yes'; then
26152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26153fi
26154
26155have_autotrace='no'
26156AUTOTRACE_CFLAGS=""
26157AUTOTRACE_LIBS=""
26158AUTOTRACE_PKG=""
26159if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026162
26163pkg_failed=no
26164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26165$as_echo_n "checking for AUTOTRACE... " >&6; }
26166
26167if test -n "$AUTOTRACE_CFLAGS"; then
26168 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26169 elif test -n "$PKG_CONFIG"; then
26170 if test -n "$PKG_CONFIG" && \
26171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26172 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26173 ac_status=$?
26174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175 test $ac_status = 0; }; then
26176 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26177else
26178 pkg_failed=yes
26179fi
26180 else
26181 pkg_failed=untried
26182fi
26183if test -n "$AUTOTRACE_LIBS"; then
26184 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26185 elif test -n "$PKG_CONFIG"; then
26186 if test -n "$PKG_CONFIG" && \
26187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26188 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; then
26192 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26193else
26194 pkg_failed=yes
26195fi
26196 else
26197 pkg_failed=untried
26198fi
26199
26200
26201
26202if test $pkg_failed = yes; then
26203
26204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26205 _pkg_short_errors_supported=yes
26206else
26207 _pkg_short_errors_supported=no
26208fi
26209 if test $_pkg_short_errors_supported = yes; then
26210 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26211 else
26212 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26213 fi
26214 # Put the nasty error message in config.log where it belongs
26215 echo "$AUTOTRACE_PKG_ERRORS" >&5
26216
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218$as_echo "no" >&6; }
26219 have_autotrace=no
26220elif test $pkg_failed = untried; then
26221 have_autotrace=no
26222else
26223 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26224 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26226$as_echo "yes" >&6; }
26227 have_autotrace=yes
26228fi
cristy8b350f62009-11-15 23:12:43 +000026229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026230$as_echo "" >&6; }
26231fi
26232
26233if test "$have_autotrace" = 'yes'; then
26234 failed=0
26235
cristy8b350f62009-11-15 23:12:43 +000026236$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026237
26238 if test "$with_modules" = 'no'; then
26239 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26240 fi
26241fi
26242
cristy73bd4a52010-10-05 11:24:23 +000026243 if test "$have_autotrace" = 'yes'; then
26244 AUTOTRACE_DELEGATE_TRUE=
26245 AUTOTRACE_DELEGATE_FALSE='#'
26246else
26247 AUTOTRACE_DELEGATE_TRUE='#'
26248 AUTOTRACE_DELEGATE_FALSE=
26249fi
26250
cristy3ed852e2009-09-05 21:47:34 +000026251
26252
26253
26254
26255#
26256# Check for Display Postscript delegate library.
26257#
26258
26259# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026260if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026261 withval=$with_dps; with_dps=$withval
26262else
26263 with_dps='yes'
26264fi
26265
26266
26267if test "$with_dps" != 'yes'; then
26268 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26269fi
26270
26271have_dps='no'
26272DPS_LIBS=''
26273if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026275$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026279$as_echo "" >&6; }
26280 failed=0
26281 passed=0
26282 PERSIST_CPPFLAGS="$CPPFLAGS"
26283 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026284 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26285if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026286 passed=`expr $passed + 1`
26287else
26288 failed=`expr $failed + 1`
26289fi
26290
26291
26292 # DPS issues:
26293 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26294 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26295 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26296 # ImageMagick itself doesn't use -lXt.
26297 have_libdps='no'
26298 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026301if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026302 $as_echo_n "(cached) " >&6
26303else
26304 ac_check_lib_save_LIBS=$LIBS
26305LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026307/* end confdefs.h. */
26308
26309/* Override any GCC internal prototype to avoid an error.
26310 Use char because int might match the return type of a GCC
26311 builtin and then its argument prototype would still apply. */
26312#ifdef __cplusplus
26313extern "C"
26314#endif
26315char DPSInitialize ();
26316int
26317main ()
26318{
26319return DPSInitialize ();
26320 ;
26321 return 0;
26322}
26323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026325 ac_cv_lib_dps_DPSInitialize=yes
26326else
cristy8b350f62009-11-15 23:12:43 +000026327 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026328fi
cristy8b350f62009-11-15 23:12:43 +000026329rm -f core conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026331LIBS=$ac_check_lib_save_LIBS
26332fi
cristy8b350f62009-11-15 23:12:43 +000026333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026334$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026335if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 have_libdps='yes'
26337else
26338 have_libdps='no'
26339fi
26340
26341 if test "$have_libdps" != 'yes'; then
26342 # Unset cache variable so we can try again.
26343 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026346if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 $as_echo_n "(cached) " >&6
26348else
26349 ac_check_lib_save_LIBS=$LIBS
26350LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026352/* end confdefs.h. */
26353
26354/* Override any GCC internal prototype to avoid an error.
26355 Use char because int might match the return type of a GCC
26356 builtin and then its argument prototype would still apply. */
26357#ifdef __cplusplus
26358extern "C"
26359#endif
26360char DPSInitialize ();
26361int
26362main ()
26363{
26364return DPSInitialize ();
26365 ;
26366 return 0;
26367}
26368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026370 ac_cv_lib_dps_DPSInitialize=yes
26371else
cristy8b350f62009-11-15 23:12:43 +000026372 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026373fi
cristy8b350f62009-11-15 23:12:43 +000026374rm -f core conftest.err conftest.$ac_objext \
26375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026376LIBS=$ac_check_lib_save_LIBS
26377fi
cristy8b350f62009-11-15 23:12:43 +000026378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026380if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 have_libdps='yes'
26382else
26383 have_libdps='no'
26384fi
26385
26386 if test "$have_libdps" = 'yes'; then
26387 LIBDPS_XT='-lXt'
26388 fi
26389 fi
26390 if test "$have_libdps" = 'yes'; then
26391 passed=`expr $passed + 1`
26392 else
26393 failed=`expr $failed + 1`
26394 fi
cristy8b350f62009-11-15 23:12:43 +000026395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026397if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026398 $as_echo_n "(cached) " >&6
26399else
26400 ac_check_lib_save_LIBS=$LIBS
26401LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026403/* end confdefs.h. */
26404
26405/* Override any GCC internal prototype to avoid an error.
26406 Use char because int might match the return type of a GCC
26407 builtin and then its argument prototype would still apply. */
26408#ifdef __cplusplus
26409extern "C"
26410#endif
26411char XDPSPixelsPerPoint ();
26412int
26413main ()
26414{
26415return XDPSPixelsPerPoint ();
26416 ;
26417 return 0;
26418}
26419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026421 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26422else
cristy8b350f62009-11-15 23:12:43 +000026423 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026424fi
cristy8b350f62009-11-15 23:12:43 +000026425rm -f core conftest.err conftest.$ac_objext \
26426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026427LIBS=$ac_check_lib_save_LIBS
26428fi
cristy8b350f62009-11-15 23:12:43 +000026429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026431if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026432 passed=`expr $passed + 1`
26433else
26434 failed=`expr $failed + 1`
26435fi
26436
cristy8b350f62009-11-15 23:12:43 +000026437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo_n "checking if DPS package is complete... " >&6; }
26439 if test $passed -gt 0; then
26440 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026442$as_echo "no -- some components failed test" >&6; }
26443 have_dps='no (failed tests)'
26444 CPPFLAGS="$PERSIST_CPPFLAGS"
26445 else
26446 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26447 LIBS="$DPS_LIBS $LIBS"
26448
cristy8b350f62009-11-15 23:12:43 +000026449$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026450
cristy8b350f62009-11-15 23:12:43 +000026451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026452$as_echo "yes" >&6; }
26453 have_dps='yes'
26454 fi
26455 else
cristy8b350f62009-11-15 23:12:43 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo "no" >&6; }
26458 CPPFLAGS=$PERSIST_CPPFLAGS
26459 fi
26460fi
cristy73bd4a52010-10-05 11:24:23 +000026461 if test "$have_dps" = 'yes'; then
26462 DPS_DELEGATE_TRUE=
26463 DPS_DELEGATE_FALSE='#'
26464else
26465 DPS_DELEGATE_TRUE='#'
26466 DPS_DELEGATE_FALSE=
26467fi
26468
cristy3ed852e2009-09-05 21:47:34 +000026469
26470
26471
26472#
26473# Check for DJVU delegate library.
26474#
26475
26476# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026477if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 withval=$with_djvu; with_djvu=$withval
26479else
26480 with_djvu='yes'
26481fi
26482
26483
26484if test "$with_djvu" != 'yes'; then
26485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26486fi
26487
26488have_djvu='no'
26489DJVU_LIBS=''
26490if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo "" >&6; }
26497 failed=0
26498 passed=0
cristy8b350f62009-11-15 23:12:43 +000026499 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26500if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026501 passed=`expr $passed + 1`
26502else
26503 failed=`expr $failed + 1`
26504fi
26505
26506
cristy8b350f62009-11-15 23:12:43 +000026507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026508$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026509if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 $as_echo_n "(cached) " >&6
26511else
26512 ac_check_lib_save_LIBS=$LIBS
26513LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026515/* end confdefs.h. */
26516
26517/* Override any GCC internal prototype to avoid an error.
26518 Use char because int might match the return type of a GCC
26519 builtin and then its argument prototype would still apply. */
26520#ifdef __cplusplus
26521extern "C"
26522#endif
26523char ddjvu_context_create ();
26524int
26525main ()
26526{
26527return ddjvu_context_create ();
26528 ;
26529 return 0;
26530}
26531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026533 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26534else
cristy8b350f62009-11-15 23:12:43 +000026535 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026536fi
cristy8b350f62009-11-15 23:12:43 +000026537rm -f core conftest.err conftest.$ac_objext \
26538 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026539LIBS=$ac_check_lib_save_LIBS
26540fi
cristy8b350f62009-11-15 23:12:43 +000026541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026543if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026544 passed=`expr $passed + 1`
26545else
26546 failed=`expr $failed + 1`
26547fi
26548
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo_n "checking if DJVU package is complete... " >&6; }
26551 if test $passed -gt 0; then
26552 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026554$as_echo "no -- some components failed test" >&6; }
26555 have_djvu='no (failed tests)'
26556 else
26557 DJVU_LIBS='-ldjvulibre'
26558 LIBS="$DJVU_LIBS $LIBS"
26559
cristy8b350f62009-11-15 23:12:43 +000026560$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026561
cristy8b350f62009-11-15 23:12:43 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026563$as_echo "yes" >&6; }
26564 have_djvu='yes'
26565 fi
26566 else
cristy8b350f62009-11-15 23:12:43 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo "no" >&6; }
26569 fi
26570fi
cristy73bd4a52010-10-05 11:24:23 +000026571 if test "$have_djvu" = 'yes'; then
26572 DJVU_DELEGATE_TRUE=
26573 DJVU_DELEGATE_FALSE='#'
26574else
26575 DJVU_DELEGATE_TRUE='#'
26576 DJVU_DELEGATE_FALSE=
26577fi
26578
cristy3ed852e2009-09-05 21:47:34 +000026579
26580
26581
26582#
cristy430a7312010-01-21 20:44:04 +000026583# Set DejaVu font directory.
26584#
26585
26586# Check whether --with-dejavu-font-dir was given.
26587if test "${with_dejavu_font_dir+set}" = set; then :
26588 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26589else
26590 with_dejavu_font_dir='default'
26591fi
26592
26593
26594if test "$with_dejavu_font_dir" != 'default'; then
26595 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26596fi
26597
26598
26599#
cristy3ed852e2009-09-05 21:47:34 +000026600# Check for FFTW delegate library.
26601#
26602
26603# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026604if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 withval=$with_fftw; with_fftw=$withval
26606else
26607 with_fftw='yes'
26608fi
26609
26610
26611if test "$with_fftw" != 'yes'; then
26612 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26613fi
26614
26615have_fftw='no'
26616FFTW_LIBS=''
26617if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026623$as_echo "" >&6; }
26624 failed=0
26625 passed=0
cristy8b350f62009-11-15 23:12:43 +000026626 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26627if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 passed=`expr $passed + 1`
26629else
26630 failed=`expr $failed + 1`
26631fi
26632
26633
cristy8b350f62009-11-15 23:12:43 +000026634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026635$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026636if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 $as_echo_n "(cached) " >&6
26638else
26639 ac_check_lib_save_LIBS=$LIBS
26640LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026642/* end confdefs.h. */
26643
26644/* Override any GCC internal prototype to avoid an error.
26645 Use char because int might match the return type of a GCC
26646 builtin and then its argument prototype would still apply. */
26647#ifdef __cplusplus
26648extern "C"
26649#endif
26650char fftw_execute ();
26651int
26652main ()
26653{
26654return fftw_execute ();
26655 ;
26656 return 0;
26657}
26658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 ac_cv_lib_fftw3_fftw_execute=yes
26661else
cristy8b350f62009-11-15 23:12:43 +000026662 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026663fi
cristy8b350f62009-11-15 23:12:43 +000026664rm -f core conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026666LIBS=$ac_check_lib_save_LIBS
26667fi
cristy8b350f62009-11-15 23:12:43 +000026668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026670if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026671 passed=`expr $passed + 1`
26672else
26673 failed=`expr $failed + 1`
26674fi
26675
cristy8b350f62009-11-15 23:12:43 +000026676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo_n "checking if FFTW package is complete... " >&6; }
26678 if test $passed -gt 0; then
26679 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "no -- some components failed test" >&6; }
26682 have_fftw='no (failed tests)'
26683 else
26684 FFTW_LIBS='-lfftw3'
26685 LIBS="$FFTW_LIBS $LIBS"
26686
cristy8b350f62009-11-15 23:12:43 +000026687$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026688
cristy8b350f62009-11-15 23:12:43 +000026689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "yes" >&6; }
26691 have_fftw='yes'
26692 fi
26693 else
cristy8b350f62009-11-15 23:12:43 +000026694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026695$as_echo "no" >&6; }
26696 fi
26697fi
cristy73bd4a52010-10-05 11:24:23 +000026698 if test "$have_fftw" = 'yes'; then
26699 FFTW_DELEGATE_TRUE=
26700 FFTW_DELEGATE_FALSE='#'
26701else
26702 FFTW_DELEGATE_TRUE='#'
26703 FFTW_DELEGATE_FALSE=
26704fi
26705
cristy3ed852e2009-09-05 21:47:34 +000026706
26707
26708
26709#
26710# Check for FlashPIX delegate library.
26711#
26712
26713# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026714if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026715 withval=$with_fpx; with_fpx=$withval
26716else
26717 with_fpx='yes'
26718fi
26719
26720
26721if test "$with_fpx" != 'yes'; then
26722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26723fi
26724
26725have_fpx='no'
26726FPX_LIBS=''
26727if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "" >&6; }
26734 failed=0
26735 passed=0
26736 ac_ext=cpp
26737ac_cpp='$CXXCPP $CPPFLAGS'
26738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26741
26742
cristy8b350f62009-11-15 23:12:43 +000026743ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26744if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026745 passed=`expr $passed + 1`
26746else
26747 failed=`expr $failed + 1`
26748fi
26749
26750
cristy8b350f62009-11-15 23:12:43 +000026751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026752$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026753if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 $as_echo_n "(cached) " >&6
26755else
26756 ac_check_lib_save_LIBS=$LIBS
26757LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026759/* end confdefs.h. */
26760
26761/* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26764#ifdef __cplusplus
26765extern "C"
26766#endif
26767char FPX_OpenImageByFilename ();
26768int
26769main ()
26770{
26771return FPX_OpenImageByFilename ();
26772 ;
26773 return 0;
26774}
26775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026776if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26778else
cristy8b350f62009-11-15 23:12:43 +000026779 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026780fi
cristy8b350f62009-11-15 23:12:43 +000026781rm -f core conftest.err conftest.$ac_objext \
26782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026783LIBS=$ac_check_lib_save_LIBS
26784fi
cristy8b350f62009-11-15 23:12:43 +000026785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026786$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026787if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 passed=`expr $passed + 1`
26789else
26790 failed=`expr $failed + 1`
26791fi
26792
26793 ac_ext=c
26794ac_cpp='$CPP $CPPFLAGS'
26795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797ac_compiler_gnu=$ac_cv_c_compiler_gnu
26798
cristy8b350f62009-11-15 23:12:43 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26801 if test $passed -gt 0; then
26802 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "no -- some components failed test" >&6; }
26805 have_fpx='no (failed tests)'
26806 else
26807 FPX_LIBS='-lfpx'
26808
cristy8b350f62009-11-15 23:12:43 +000026809$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026810
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo "yes" >&6; }
26813 have_fpx='yes'
26814 PERLMAINCC="$CXX"
26815 fi
26816 else
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo "no" >&6; }
26819 fi
26820fi
cristy73bd4a52010-10-05 11:24:23 +000026821 if test "$have_fpx" = 'yes'; then
26822 FPX_DELEGATE_TRUE=
26823 FPX_DELEGATE_FALSE='#'
26824else
26825 FPX_DELEGATE_TRUE='#'
26826 FPX_DELEGATE_FALSE=
26827fi
26828
cristy3ed852e2009-09-05 21:47:34 +000026829
26830
26831
26832#
26833# Check for fontconfig delegate library.
26834#
26835
26836# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026837if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 withval=$with_fontconfig; with_fontconfig=$withval
26839else
26840 with_fontconfig=$have_x
26841fi
26842
26843
26844if test "$with_fontconfig" != 'yes'; then
26845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26846fi
26847
26848have_fontconfig='no'
26849FONTCONFIG_CFLAGS=""
26850FONTCONFIG_LIBS=""
26851FONTCONFIG_PKG=""
26852if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026854$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026855
26856pkg_failed=no
26857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26858$as_echo_n "checking for FONTCONFIG... " >&6; }
26859
26860if test -n "$FONTCONFIG_CFLAGS"; then
26861 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26862 elif test -n "$PKG_CONFIG"; then
26863 if test -n "$PKG_CONFIG" && \
26864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26865 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26866 ac_status=$?
26867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; then
26869 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26870else
26871 pkg_failed=yes
26872fi
26873 else
26874 pkg_failed=untried
26875fi
26876if test -n "$FONTCONFIG_LIBS"; then
26877 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26878 elif test -n "$PKG_CONFIG"; then
26879 if test -n "$PKG_CONFIG" && \
26880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26881 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26882 ac_status=$?
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; then
26885 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26886else
26887 pkg_failed=yes
26888fi
26889 else
26890 pkg_failed=untried
26891fi
26892
26893
26894
26895if test $pkg_failed = yes; then
26896
26897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26898 _pkg_short_errors_supported=yes
26899else
26900 _pkg_short_errors_supported=no
26901fi
26902 if test $_pkg_short_errors_supported = yes; then
26903 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26904 else
26905 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26906 fi
26907 # Put the nasty error message in config.log where it belongs
26908 echo "$FONTCONFIG_PKG_ERRORS" >&5
26909
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26911$as_echo "no" >&6; }
26912 have_fontconfig=no
26913elif test $pkg_failed = untried; then
26914 have_fontconfig=no
26915else
26916 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26917 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26919$as_echo "yes" >&6; }
26920 have_fontconfig=yes
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "" >&6; }
26924fi
26925
26926if test "$have_fontconfig" = 'yes'; then
26927
cristy8b350f62009-11-15 23:12:43 +000026928$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026929
cristyd09bcf92010-03-25 03:04:45 +000026930 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026931 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026932 fi
cristy3ed852e2009-09-05 21:47:34 +000026933fi
26934
cristy73bd4a52010-10-05 11:24:23 +000026935 if test "$have_fontconfig" = 'yes'; then
26936 FONTCONFIG_DELEGATE_TRUE=
26937 FONTCONFIG_DELEGATE_FALSE='#'
26938else
26939 FONTCONFIG_DELEGATE_TRUE='#'
26940 FONTCONFIG_DELEGATE_FALSE=
26941fi
26942
cristy3ed852e2009-09-05 21:47:34 +000026943
26944
26945
26946
26947#
26948# Check for freetype delegate library.
26949#
26950
26951# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026952if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026953 withval=$with_freetype; with_freetype=$withval
26954else
26955 with_freetype='yes'
26956fi
26957
26958
26959
26960if test "$with_freetype" != 'yes'; then
26961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26962fi
26963
26964have_freetype='no'
26965FREETYPE_LIBS=''
26966if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026972$as_echo "" >&6; }
26973 failed=0
26974 passed=0
cristy66291112009-10-03 22:44:36 +000026975 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026976 PERSIST_CPPFLAGS="$CPPFLAGS"
26977 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26978 :
26979 else
26980 freetype_config=''
26981 for ac_prog in freetype-config
26982do
26983 # Extract the first word of "$ac_prog", so it can be a program name with args.
26984set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026987if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026988 $as_echo_n "(cached) " >&6
26989else
26990 if test -n "$freetype_config"; then
26991 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26992else
26993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994for as_dir in $PATH
26995do
26996 IFS=$as_save_IFS
26997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27000 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027002 break 2
27003 fi
27004done
cristy8b350f62009-11-15 23:12:43 +000027005 done
cristy3ed852e2009-09-05 21:47:34 +000027006IFS=$as_save_IFS
27007
27008fi
27009fi
27010freetype_config=$ac_cv_prog_freetype_config
27011if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "$freetype_config" >&6; }
27014else
cristy8b350f62009-11-15 23:12:43 +000027015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027016$as_echo "no" >&6; }
27017fi
27018
27019
27020 test -n "$freetype_config" && break
27021done
27022 if test -n "$freetype_config"; then
27023 freetype_cflags=`$freetype_config --cflags`
27024 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027025 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027026 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27027 fi
27028 fi
27029
27030 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027032$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027033if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027034 $as_echo_n "(cached) " >&6
27035else
27036 ac_check_lib_save_LIBS=$LIBS
27037LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027039/* end confdefs.h. */
27040
27041/* Override any GCC internal prototype to avoid an error.
27042 Use char because int might match the return type of a GCC
27043 builtin and then its argument prototype would still apply. */
27044#ifdef __cplusplus
27045extern "C"
27046#endif
27047char FT_Init_FreeType ();
27048int
27049main ()
27050{
27051return FT_Init_FreeType ();
27052 ;
27053 return 0;
27054}
27055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 ac_cv_lib_freetype_FT_Init_FreeType=yes
27058else
cristy8b350f62009-11-15 23:12:43 +000027059 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027060fi
cristy8b350f62009-11-15 23:12:43 +000027061rm -f core conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027063LIBS=$ac_check_lib_save_LIBS
27064fi
cristy8b350f62009-11-15 23:12:43 +000027065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027066$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027067if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 FREETYPE_LIBS='-lfreetype'
27069fi
27070
27071 if test "$FREETYPE_LIBS" != ''; then
27072 passed=`expr $passed + 1`
27073 else
27074 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027075 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027076 fi
27077 fi
27078
cristy8b350f62009-11-15 23:12:43 +000027079 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27080if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 FT2BUILD_H='#include <ft2build.h>'
27082else
27083 ft2build=''
27084fi
27085
27086
cristy8b350f62009-11-15 23:12:43 +000027087 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27088"
27089if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027090 have_freetype_h='yes'
27091else
27092 have_freetype_h='no'
27093fi
27094
27095
27096 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27097 passed=`expr $passed + 1`
27098 else
27099 failed=`expr $failed + 1`
27100 CPPFLAGS="$PERSIST_CPPFLAGS"
27101 fi
27102
cristy8b350f62009-11-15 23:12:43 +000027103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo_n "checking if FreeType package is complete... " >&6; }
27105 if test $passed -gt 0; then
27106 if test $failed -gt 0; then
27107 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027109$as_echo "no -- some components failed test" >&6; }
27110 have_freetype='no (failed tests)'
27111 else
27112 LIBS="$FREETYPE_LIBS $LIBS"
27113
cristy8b350f62009-11-15 23:12:43 +000027114$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027115
27116 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27117
cristy8b350f62009-11-15 23:12:43 +000027118$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027119
27120 fi
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo "yes" >&6; }
27123 have_freetype='yes'
27124 fi
27125 else
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "no" >&6; }
27128 fi
27129fi
cristy73bd4a52010-10-05 11:24:23 +000027130 if test "$have_freetype" = 'yes'; then
27131 FREETYPE_DELEGATE_TRUE=
27132 FREETYPE_DELEGATE_FALSE='#'
27133else
27134 FREETYPE_DELEGATE_TRUE='#'
27135 FREETYPE_DELEGATE_FALSE=
27136fi
27137
cristy3ed852e2009-09-05 21:47:34 +000027138
27139
27140
27141
27142#
27143# Check for Ghostscript library or framework.
27144#
27145# Test for iapi.h & test for gsapi_new_instance in -lgs
27146# or -framework Ghostscript
27147
27148
27149# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027150if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027151 withval=$with_gslib; with_gslib=$withval
27152else
27153 with_gslib='no'
27154fi
27155
27156
cristyb7931f12009-09-25 10:22:21 +000027157gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027158if test "$with_gslib" != 'yes'; then
27159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27160fi
27161
27162have_gslib='no'
27163GS_LIBS=''
27164if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027171 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027172 failed=0
27173 passed=0
cristy8b350f62009-11-15 23:12:43 +000027174 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27175if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 passed=`expr $passed + 1`
27177else
27178 failed=`expr $failed + 1`
27179fi
27180
27181
cristy8b350f62009-11-15 23:12:43 +000027182 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27183if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 passed=`expr $passed + 1`
27185else
27186 failed=`expr $failed + 1`
27187fi
27188
27189
cristy73bd4a52010-10-05 11:24:23 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27191$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27192if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27193 $as_echo_n "(cached) " >&6
27194else
27195 ac_check_framework_save_LIBS=$LIBS
27196LIBS="-framework Ghostscript $LIBS"
27197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198/* end confdefs.h. */
27199
27200/* Override any GCC internal prototype to avoid an error.
27201 Use char because int might match the return type of a GCC
27202 builtin and then its argument prototype would still apply. */
27203#ifdef __cplusplus
27204extern "C"
27205#endif
27206char gsapi_new_instance ();
27207int
27208main ()
27209{
27210return gsapi_new_instance ();
27211 ;
27212 return 0;
27213}
27214_ACEOF
27215if ac_fn_c_try_link "$LINENO"; then :
27216 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27217else
27218 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27219fi
27220rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
27222LIBS=$ac_check_framework_save_LIBS
27223fi
27224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27225$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27226if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27227 framework=`expr $framework + 1`
27228else
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027231if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 $as_echo_n "(cached) " >&6
27233else
27234 ac_check_lib_save_LIBS=$LIBS
27235LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027237/* end confdefs.h. */
27238
27239/* Override any GCC internal prototype to avoid an error.
27240 Use char because int might match the return type of a GCC
27241 builtin and then its argument prototype would still apply. */
27242#ifdef __cplusplus
27243extern "C"
27244#endif
27245char gsapi_new_instance ();
27246int
27247main ()
27248{
27249return gsapi_new_instance ();
27250 ;
27251 return 0;
27252}
27253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 ac_cv_lib_gs_gsapi_new_instance=yes
27256else
cristy8b350f62009-11-15 23:12:43 +000027257 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027258fi
cristy8b350f62009-11-15 23:12:43 +000027259rm -f core conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027261LIBS=$ac_check_lib_save_LIBS
27262fi
cristy8b350f62009-11-15 23:12:43 +000027263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027265if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 passed=`expr $passed + 1`
27267else
27268 failed=`expr $failed + 1`
27269fi
cristy73bd4a52010-10-05 11:24:23 +000027270
27271fi
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27274 if test $passed -gt 0; then
27275 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027277$as_echo "no -- some components failed test" >&6; }
27278 have_gslib='no (failed tests)'
27279 else
27280 if test $framework -gt 0; then
27281 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027282 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027284$as_echo "yes, using framework." >&6; }
27285 else
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo "yes, using library." >&6; }
27288 GS_LIBS='-lgs'
27289 fi
27290 LIBS="$GS_LIBS $LIBS"
27291
cristy8b350f62009-11-15 23:12:43 +000027292$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027293
27294 have_gslib='yes'
27295 fi
27296 else
cristy8b350f62009-11-15 23:12:43 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo "no" >&6; }
27299 fi
27300fi
cristy73bd4a52010-10-05 11:24:23 +000027301 if test "$have_gslib" = 'yes'; then
27302 GS_DELEGATE_TRUE=
27303 GS_DELEGATE_FALSE='#'
27304else
27305 GS_DELEGATE_TRUE='#'
27306 GS_DELEGATE_FALSE=
27307fi
27308
cristy3ed852e2009-09-05 21:47:34 +000027309
27310
27311# Set default font search path
27312
27313# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027314if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 withval=$with_fontpath; with_fontpath=$withval
27316else
27317 with_fontpath=''
27318fi
27319
27320
27321if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27322 with_fontpath=''
27323else
27324
27325cat >>confdefs.h <<_ACEOF
27326#define MAGICK_FONT_PATH "$with_fontpath"
27327_ACEOF
27328
27329fi
27330if test "$with_fontpath=" != ''; then
27331 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27332fi
27333
27334# Set Ghostscript font directory
27335
27336# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027337if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27339else
27340 with_gs_font_dir='default'
27341fi
27342
27343
27344if test "$with_gs_font_dir" != 'default'; then
27345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27346fi
27347
27348
27349#
27350# Check for GVC delegate library.
27351#
27352
27353# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027354if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 withval=$with_gvc; with_gvc=$withval
27356else
27357 with_gvc='yes'
27358fi
27359
27360
27361if test "$with_gvc" != 'yes'; then
27362 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27363fi
27364
27365GVC_PKG=""
27366if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027368$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027369
27370pkg_failed=no
27371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27372$as_echo_n "checking for GVC... " >&6; }
27373
27374if test -n "$GVC_CFLAGS"; then
27375 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27376 elif test -n "$PKG_CONFIG"; then
27377 if test -n "$PKG_CONFIG" && \
27378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27379 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27380 ac_status=$?
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; then
27383 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27384else
27385 pkg_failed=yes
27386fi
27387 else
27388 pkg_failed=untried
27389fi
27390if test -n "$GVC_LIBS"; then
27391 pkg_cv_GVC_LIBS="$GVC_LIBS"
27392 elif test -n "$PKG_CONFIG"; then
27393 if test -n "$PKG_CONFIG" && \
27394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27395 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27396 ac_status=$?
27397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398 test $ac_status = 0; }; then
27399 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27400else
27401 pkg_failed=yes
27402fi
27403 else
27404 pkg_failed=untried
27405fi
27406
27407
27408
27409if test $pkg_failed = yes; then
27410
27411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27412 _pkg_short_errors_supported=yes
27413else
27414 _pkg_short_errors_supported=no
27415fi
27416 if test $_pkg_short_errors_supported = yes; then
27417 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27418 else
27419 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27420 fi
27421 # Put the nasty error message in config.log where it belongs
27422 echo "$GVC_PKG_ERRORS" >&5
27423
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27425$as_echo "no" >&6; }
27426 have_gvc=no
27427elif test $pkg_failed = untried; then
27428 have_gvc=no
27429else
27430 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27431 GVC_LIBS=$pkg_cv_GVC_LIBS
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27433$as_echo "yes" >&6; }
27434 have_gvc=yes
27435fi
cristy8b350f62009-11-15 23:12:43 +000027436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo "" >&6; }
27438fi
27439
27440if test "$have_gvc" = 'yes'; then
27441
cristy8b350f62009-11-15 23:12:43 +000027442$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027443
27444 if test "$with_modules" = 'no'; then
27445 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27446 fi
27447fi
27448
cristy73bd4a52010-10-05 11:24:23 +000027449 if test "$have_gvc" = 'yes'; then
27450 GVC_DELEGATE_TRUE=
27451 GVC_DELEGATE_FALSE='#'
27452else
27453 GVC_DELEGATE_TRUE='#'
27454 GVC_DELEGATE_FALSE=
27455fi
27456
cristy3ed852e2009-09-05 21:47:34 +000027457
27458
27459
27460
27461#
27462# Check for JBIG delegate library.
27463#
27464
27465
27466# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027467if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027468 withval=$with_jbig; with_jbig=$withval
27469else
27470 with_jbig='yes'
27471fi
27472
27473
27474have_jbig='no'
27475JBIG_LIBS=''
27476if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027480$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo "" >&6; }
27483 failed=0
27484 passed=0
cristy8b350f62009-11-15 23:12:43 +000027485 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27486if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 passed=`expr $passed + 1`
27488else
27489 failed=`expr $failed + 1`
27490fi
27491
27492
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027495if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 $as_echo_n "(cached) " >&6
27497else
27498 ac_check_lib_save_LIBS=$LIBS
27499LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501/* end confdefs.h. */
27502
27503/* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27506#ifdef __cplusplus
27507extern "C"
27508#endif
27509char jbg_dec_init ();
27510int
27511main ()
27512{
27513return jbg_dec_init ();
27514 ;
27515 return 0;
27516}
27517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 ac_cv_lib_jbig_jbg_dec_init=yes
27520else
cristy8b350f62009-11-15 23:12:43 +000027521 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027522fi
cristy8b350f62009-11-15 23:12:43 +000027523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027525LIBS=$ac_check_lib_save_LIBS
27526fi
cristy8b350f62009-11-15 23:12:43 +000027527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027529if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 passed=`expr $passed + 1`
27531else
27532 failed=`expr $failed + 1`
27533fi
27534
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo_n "checking if JBIG package is complete... " >&6; }
27537 if test $passed -gt 0; then
27538 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo "no -- some components failed test" >&6; }
27541 have_jbig='no (failed tests)'
27542 else
27543 JBIG_LIBS='-ljbig'
27544 LIBS="$JBIG_LIBS $LIBS"
27545
cristy8b350f62009-11-15 23:12:43 +000027546$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027547
cristy8b350f62009-11-15 23:12:43 +000027548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027549$as_echo "yes" >&6; }
27550 have_jbig='yes'
27551 fi
27552 else
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo "no" >&6; }
27555 fi
27556fi
cristy73bd4a52010-10-05 11:24:23 +000027557 if test "$have_jbig" = 'yes'; then
27558 JBIG_DELEGATE_TRUE=
27559 JBIG_DELEGATE_FALSE='#'
27560else
27561 JBIG_DELEGATE_TRUE='#'
27562 JBIG_DELEGATE_FALSE=
27563fi
27564
cristy3ed852e2009-09-05 21:47:34 +000027565
27566
27567
27568#
27569# Check for JPEG delegate library.
27570#
27571
27572# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027573if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 withval=$with_jpeg; with_jpeg=$withval
27575else
27576 with_jpeg='yes'
27577fi
27578
27579
27580if test "$with_jpeg" != 'yes'; then
27581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27582fi
27583
27584have_jpeg='no'
27585JPEG_LIBS=''
27586if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027590$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo "" >&6; }
27593 failed=0
27594 passed=0
cristy8b350f62009-11-15 23:12:43 +000027595 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27596if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 passed=`expr $passed + 1`
27598else
27599 failed=`expr $failed + 1`
27600fi
27601
27602
cristy8b350f62009-11-15 23:12:43 +000027603 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27604if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 passed=`expr $passed + 1`
27606else
27607 failed=`expr $failed + 1`
27608fi
27609
27610
cristy8b350f62009-11-15 23:12:43 +000027611 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27612if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027613 passed=`expr $passed + 1`
27614else
27615 failed=`expr $failed + 1`
27616fi
27617
27618
cristy8b350f62009-11-15 23:12:43 +000027619 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27620if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 passed=`expr $passed + 1`
27622else
27623 failed=`expr $failed + 1`
27624fi
27625
27626
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027629if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 $as_echo_n "(cached) " >&6
27631else
27632 ac_check_lib_save_LIBS=$LIBS
27633LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027635/* end confdefs.h. */
27636
27637/* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27640#ifdef __cplusplus
27641extern "C"
27642#endif
27643char jpeg_read_header ();
27644int
27645main ()
27646{
27647return jpeg_read_header ();
27648 ;
27649 return 0;
27650}
27651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027652if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 ac_cv_lib_jpeg_jpeg_read_header=yes
27654else
cristy8b350f62009-11-15 23:12:43 +000027655 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027656fi
cristy8b350f62009-11-15 23:12:43 +000027657rm -f core conftest.err conftest.$ac_objext \
27658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027659LIBS=$ac_check_lib_save_LIBS
27660fi
cristy8b350f62009-11-15 23:12:43 +000027661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027663if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 passed=`expr $passed + 1`
27665else
27666 failed=`expr $failed + 1`
27667fi
27668
27669
27670# Test for compatible JPEG library
27671if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027674if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 $as_echo_n "(cached) " >&6
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027678/* end confdefs.h. */
27679#include <stdio.h>
27680#include <stdlib.h>
27681#include <jpeglib.h>
27682
27683int
27684main ()
27685{
27686
27687#if JPEG_LIB_VERSION < 62
27688#error IJG JPEG library must be version 6b or newer!
27689#endif
27690return 0;
27691
27692 ;
27693 return 0;
27694}
27695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27698else
cristy8b350f62009-11-15 23:12:43 +000027699 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027700fi
cristy3ed852e2009-09-05 21:47:34 +000027701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27702fi
cristy8b350f62009-11-15 23:12:43 +000027703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27705fi
cristy8b350f62009-11-15 23:12:43 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo_n "checking if JPEG package is complete... " >&6; }
27708 if test $passed -gt 0; then
27709 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027711$as_echo "no -- some components failed test" >&6; }
27712 have_jpeg='no (failed tests)'
27713 else
27714 JPEG_LIBS='-ljpeg'
27715 LIBS="$JPEG_LIBS $LIBS"
27716
cristy8b350f62009-11-15 23:12:43 +000027717$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027718
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "yes" >&6; }
27721 have_jpeg='yes'
27722 fi
27723 else
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "no" >&6; }
27726 fi
27727fi
cristy73bd4a52010-10-05 11:24:23 +000027728 if test "$have_jpeg" = 'yes'; then
27729 JPEG_DELEGATE_TRUE=
27730 JPEG_DELEGATE_FALSE='#'
27731else
27732 JPEG_DELEGATE_TRUE='#'
27733 JPEG_DELEGATE_FALSE=
27734fi
27735
cristy3ed852e2009-09-05 21:47:34 +000027736
27737
27738
27739#
27740# Check for JPEG Version 2 delegate library.
27741#
27742
27743# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027744if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027745 withval=$with_jp2; with_jp2=$withval
27746else
27747 with_jp2='yes'
27748fi
27749
27750
27751if test "$with_jp2" != 'yes'; then
27752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27753fi
27754
27755have_jp2='no'
27756JP2_LIBS=''
27757if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "" >&6; }
27764 failed=0
27765 passed=0
cristy8b350f62009-11-15 23:12:43 +000027766 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27767if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
27773
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027776if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027777 $as_echo_n "(cached) " >&6
27778else
27779 ac_check_lib_save_LIBS=$LIBS
27780LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782/* end confdefs.h. */
27783
27784/* Override any GCC internal prototype to avoid an error.
27785 Use char because int might match the return type of a GCC
27786 builtin and then its argument prototype would still apply. */
27787#ifdef __cplusplus
27788extern "C"
27789#endif
27790char jas_stream_fopen ();
27791int
27792main ()
27793{
27794return jas_stream_fopen ();
27795 ;
27796 return 0;
27797}
27798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027800 ac_cv_lib_jasper_jas_stream_fopen=yes
27801else
cristy8b350f62009-11-15 23:12:43 +000027802 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027803fi
cristy8b350f62009-11-15 23:12:43 +000027804rm -f core conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027806LIBS=$ac_check_lib_save_LIBS
27807fi
cristy8b350f62009-11-15 23:12:43 +000027808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027810if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 passed=`expr $passed + 1`
27812else
27813 failed=`expr $failed + 1`
27814fi
27815
cristy8b350f62009-11-15 23:12:43 +000027816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27818 if test $passed -gt 0; then
27819 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo "no -- some components failed test" >&6; }
27822 have_jp2='no (failed tests)'
27823 else
27824 JP2_LIBS='-ljasper'
27825 LIBS="$JP2_LIBS $LIBS"
27826
cristy8b350f62009-11-15 23:12:43 +000027827$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027828
cristy8b350f62009-11-15 23:12:43 +000027829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027830$as_echo "yes" >&6; }
27831 have_jp2='yes'
27832 fi
27833 else
cristy8b350f62009-11-15 23:12:43 +000027834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo "no" >&6; }
27836 fi
27837fi
cristy73bd4a52010-10-05 11:24:23 +000027838 if test "$have_jp2" = 'yes'; then
27839 JP2_DELEGATE_TRUE=
27840 JP2_DELEGATE_FALSE='#'
27841else
27842 JP2_DELEGATE_TRUE='#'
27843 JP2_DELEGATE_FALSE=
27844fi
27845
cristy3ed852e2009-09-05 21:47:34 +000027846
27847
27848
27849#
27850# Check for LCMS delegate library.
27851#
cristy71203402010-06-18 13:12:03 +000027852# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027853
27854# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027855if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 withval=$with_lcms; with_lcms=$withval
27857else
27858 with_lcms='yes'
27859fi
27860
cristy71203402010-06-18 13:12:03 +000027861if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27863fi
27864
cristy71203402010-06-18 13:12:03 +000027865# Disable LCMS2.
27866
27867# Check whether --with-lcms2 was given.
27868if test "${with_lcms2+set}" = set; then :
27869 withval=$with_lcms2; with_lcms2=$withval
27870else
27871 with_lcms2='yes'
27872fi
27873
27874if test "$with_lcms2" != 'yes' ; then
27875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27876fi
27877
27878have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027879LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027880if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27884$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027886$as_echo "" >&6; }
27887 failed=0
27888 passed=0
27889 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027890
27891 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027892 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27893if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27894 have_lcms_header='yes'
27895fi
27896
27897
27898 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027899
27900$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27901
cristy71203402010-06-18 13:12:03 +000027902 passed=`expr $passed + 1`
27903 fi
27904
27905 # Check for <lcms2/lcms2.h)
27906 if test "$have_lcms_header" != 'yes'; then
27907 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27908if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027909 have_lcms_header='yes'
27910fi
27911
27912
cristy71203402010-06-18 13:12:03 +000027913 if test "$have_lcms_header" = 'yes'; then
27914 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027915
cristy71203402010-06-18 13:12:03 +000027916$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027917
cristy71203402010-06-18 13:12:03 +000027918 fi
cristyd09bcf92010-03-25 03:04:45 +000027919 fi
cristy71203402010-06-18 13:12:03 +000027920
27921 # Failed to find lcms header?
27922 if test "$have_lcms_header" != 'yes'; then
27923 failed=`expr $failed + 1`
27924 fi
27925
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27927$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27928if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027929 $as_echo_n "(cached) " >&6
27930else
27931 ac_check_lib_save_LIBS=$LIBS
27932LIBS="-llcms2 $LIBS"
27933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934/* end confdefs.h. */
27935
27936/* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
cristy71203402010-06-18 13:12:03 +000027942char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027943int
27944main ()
27945{
cristy71203402010-06-18 13:12:03 +000027946return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027947 ;
27948 return 0;
27949}
27950_ACEOF
27951if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027952 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027953else
cristy71203402010-06-18 13:12:03 +000027954 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027955fi
27956rm -f core conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
27958LIBS=$ac_check_lib_save_LIBS
27959fi
cristy71203402010-06-18 13:12:03 +000027960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27961$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27962if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027963 passed=`expr $passed + 1`
27964else
27965 failed=`expr $failed + 1`
27966fi
27967
cristy71203402010-06-18 13:12:03 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27969$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027970 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027971 if test $failed -gt 0; then
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027973$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027974 have_lcms2='no (failed tests)'
27975 else
27976 LCMS_LIBS='-llcms2'
27977 LIBS="$LCMS_LIBS $LIBS"
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027979$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027980 have_lcms2='yes'
27981 fi
cristyd09bcf92010-03-25 03:04:45 +000027982 else
cristy71203402010-06-18 13:12:03 +000027983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027984$as_echo "no" >&6; }
27985 fi
27986fi
27987
cristy71203402010-06-18 13:12:03 +000027988#
27989# Check for LCMS v1 (1.11 or later)
27990#
27991if test $have_lcms2 = 'yes'; then
27992 with_lcms='no'
27993fi
27994
27995have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027996if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27998$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28000$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28002$as_echo "" >&6; }
28003 failed=0
28004 passed=0
28005 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028006
28007 # Check for <lcms.h>
28008 if test "$have_lcms_header" != 'yes'; then
28009 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028010if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 have_lcms_header='yes'
28012fi
28013
28014
cristy71203402010-06-18 13:12:03 +000028015 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028016 passed=`expr $passed + 1`
28017
cristy8b350f62009-11-15 23:12:43 +000028018$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028019
cristy71203402010-06-18 13:12:03 +000028020 fi
28021 fi
28022
28023 # Check for <lcms/lcms.h>
28024 if test "$have_lcms_header" != 'yes'; then
28025 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 +000028026if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 have_lcms_header='yes'
28028fi
28029
28030
cristy71203402010-06-18 13:12:03 +000028031 if test "$have_lcms_header" = 'yes'; then
28032 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028033
cristy8b350f62009-11-15 23:12:43 +000028034$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028035
cristy71203402010-06-18 13:12:03 +000028036 fi
cristy3ed852e2009-09-05 21:47:34 +000028037 fi
cristy71203402010-06-18 13:12:03 +000028038
28039 # Failed to find lcms header?
28040 if test "$have_lcms_header" != 'yes'; then
28041 failed=`expr $failed + 1`
28042 fi
28043
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28045$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28046if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 $as_echo_n "(cached) " >&6
28048else
28049 ac_check_lib_save_LIBS=$LIBS
28050LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028052/* end confdefs.h. */
28053
28054/* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply. */
28057#ifdef __cplusplus
28058extern "C"
28059#endif
cristy71203402010-06-18 13:12:03 +000028060char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028061int
28062main ()
28063{
cristy71203402010-06-18 13:12:03 +000028064return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028065 ;
28066 return 0;
28067}
28068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028069if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028070 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028071else
cristy71203402010-06-18 13:12:03 +000028072 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028073fi
cristy8b350f62009-11-15 23:12:43 +000028074rm -f core conftest.err conftest.$ac_objext \
28075 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028076LIBS=$ac_check_lib_save_LIBS
28077fi
cristy71203402010-06-18 13:12:03 +000028078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28079$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28080if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 passed=`expr $passed + 1`
28082else
28083 failed=`expr $failed + 1`
28084fi
28085
cristy8b350f62009-11-15 23:12:43 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo_n "checking if LCMS package is complete... " >&6; }
28088 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028089 if test $failed -gt 0; then
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028092 have_lcms='no (failed tests)'
28093 else
28094 LCMS_LIBS='-llcms'
28095 LIBS="$LCMS_LIBS $LIBS"
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028098 have_lcms='yes'
28099 fi
cristy3ed852e2009-09-05 21:47:34 +000028100 else
cristy71203402010-06-18 13:12:03 +000028101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028102$as_echo "no" >&6; }
28103 fi
28104fi
cristy71203402010-06-18 13:12:03 +000028105
cristy73bd4a52010-10-05 11:24:23 +000028106 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28107 LCMS_DELEGATE_TRUE=
28108 LCMS_DELEGATE_FALSE='#'
28109else
28110 LCMS_DELEGATE_TRUE='#'
28111 LCMS_DELEGATE_FALSE=
28112fi
28113
cristy71203402010-06-18 13:12:03 +000028114if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28115
28116$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28117
28118fi
28119
cristy3ed852e2009-09-05 21:47:34 +000028120
28121
28122
28123#
28124# Check for the LQR (Liquid Rescale) delegate library.
28125#
28126
28127# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028128if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 withval=$with_lqr; with_lqr=$withval
28130else
28131 with_lqr='yes'
28132fi
28133
28134
28135if test "$with_lqr" != 'yes'; then
28136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28137fi
28138
28139have_lqr='no'
28140LQR_CFLAGS=""
28141LQR_LIBS=""
28142LQR_PKG=""
28143if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028146
28147pkg_failed=no
28148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28149$as_echo_n "checking for LQR... " >&6; }
28150
28151if test -n "$LQR_CFLAGS"; then
28152 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28153 elif test -n "$PKG_CONFIG"; then
28154 if test -n "$PKG_CONFIG" && \
28155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28156 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28157 ac_status=$?
28158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159 test $ac_status = 0; }; then
28160 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28161else
28162 pkg_failed=yes
28163fi
28164 else
28165 pkg_failed=untried
28166fi
28167if test -n "$LQR_LIBS"; then
28168 pkg_cv_LQR_LIBS="$LQR_LIBS"
28169 elif test -n "$PKG_CONFIG"; then
28170 if test -n "$PKG_CONFIG" && \
28171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28172 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28173 ac_status=$?
28174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28175 test $ac_status = 0; }; then
28176 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28177else
28178 pkg_failed=yes
28179fi
28180 else
28181 pkg_failed=untried
28182fi
28183
28184
28185
28186if test $pkg_failed = yes; then
28187
28188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28189 _pkg_short_errors_supported=yes
28190else
28191 _pkg_short_errors_supported=no
28192fi
28193 if test $_pkg_short_errors_supported = yes; then
28194 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28195 else
28196 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28197 fi
28198 # Put the nasty error message in config.log where it belongs
28199 echo "$LQR_PKG_ERRORS" >&5
28200
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202$as_echo "no" >&6; }
28203 have_lqr=no
28204elif test $pkg_failed = untried; then
28205 have_lqr=no
28206else
28207 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28208 LQR_LIBS=$pkg_cv_LQR_LIBS
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210$as_echo "yes" >&6; }
28211 have_lqr=yes
28212fi
cristy8b350f62009-11-15 23:12:43 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028214$as_echo "" >&6; }
28215fi
28216
28217if test "$have_lqr" = 'yes'; then
28218
cristy8b350f62009-11-15 23:12:43 +000028219$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028220
28221 CFLAGS="$LQR_CFLAGS $CFLAGS"
28222fi
28223
cristy73bd4a52010-10-05 11:24:23 +000028224 if test "$have_lqr" = 'yes'; then
28225 LQR_DELEGATE_TRUE=
28226 LQR_DELEGATE_FALSE='#'
28227else
28228 LQR_DELEGATE_TRUE='#'
28229 LQR_DELEGATE_FALSE=
28230fi
28231
cristy3ed852e2009-09-05 21:47:34 +000028232
28233
28234
28235
cristyfbb0ef02010-12-19 02:32:11 +000028236# Disable LZMA (lzma library)
28237
28238# Check whether --with-lzma was given.
28239if test "${with_lzma+set}" = set; then :
28240 withval=$with_lzma; with_lzma=$withval
28241else
28242 with_lzma='yes'
28243fi
28244
28245if test "$with_lzma" != 'yes' ; then
28246 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
28247fi
28248
28249#
28250# Check for LZMA
28251#
28252have_lzma='no'
28253LZMA_LIBS=''
28254if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28256$as_echo "-------------------------------------------------------------" >&6; }
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
28258$as_echo_n "checking for LZMA... " >&6; }
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28260$as_echo "" >&6; }
28261 failed=0
28262 passed=0
28263 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
28264if test "x$ac_cv_header_lzma_h" = x""yes; then :
28265 passed=`expr $passed + 1`
28266else
28267 failed=`expr $failed + 1`
28268fi
28269
28270
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
28272$as_echo_n "checking for lzma_code in -llzma... " >&6; }
28273if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
28274 $as_echo_n "(cached) " >&6
28275else
28276 ac_check_lib_save_LIBS=$LIBS
28277LIBS="-llzma $LIBS"
28278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28279/* end confdefs.h. */
28280
28281/* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
28284#ifdef __cplusplus
28285extern "C"
28286#endif
28287char lzma_code ();
28288int
28289main ()
28290{
28291return lzma_code ();
28292 ;
28293 return 0;
28294}
28295_ACEOF
28296if ac_fn_c_try_link "$LINENO"; then :
28297 ac_cv_lib_lzma_lzma_code=yes
28298else
28299 ac_cv_lib_lzma_lzma_code=no
28300fi
28301rm -f core conftest.err conftest.$ac_objext \
28302 conftest$ac_exeext conftest.$ac_ext
28303LIBS=$ac_check_lib_save_LIBS
28304fi
28305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
28306$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
28307if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
28308 passed=`expr $passed + 1`
28309else
28310 failed=`expr $failed + 1`
28311fi
28312
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
28314$as_echo_n "checking if LZMA package is complete... " >&6; }
28315 if test $passed -gt 0; then
28316 if test $failed -gt 0; then
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28318$as_echo "no -- some components failed test" >&6; }
28319 have_lzma='no (failed tests)'
28320 else
28321 LZMA_LIBS='-llzma'
28322 LIBS="$LZMA_LIBS $LIBS"
28323
28324$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
28325
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28327$as_echo "yes" >&6; }
28328 have_lzma='yes'
28329 fi
28330 else
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28332$as_echo "no" >&6; }
28333 fi
28334fi
28335 if test "$have_lzma" = 'yes'; then
28336 LZMA_DELEGATE_TRUE=
28337 LZMA_DELEGATE_FALSE='#'
28338else
28339 LZMA_DELEGATE_TRUE='#'
28340 LZMA_DELEGATE_FALSE=
28341fi
28342
28343
28344
28345
cristy3ed852e2009-09-05 21:47:34 +000028346#
28347# Check for the OpenEXR delegate library.
28348#
28349
28350# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028351if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 withval=$with_openexr; with_openexr=$withval
28353else
28354 with_openexr='yes'
28355fi
28356
28357
28358if test "$with_openexr" != 'yes'; then
28359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28360fi
28361
28362have_openexr='no'
28363OPENEXR_CFLAGS=""
28364OPENEXR_LIBS=""
28365OPENEXR_PKG=""
28366if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028369
28370pkg_failed=no
28371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28372$as_echo_n "checking for OPENEXR... " >&6; }
28373
28374if test -n "$OPENEXR_CFLAGS"; then
28375 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28376 elif test -n "$PKG_CONFIG"; then
28377 if test -n "$PKG_CONFIG" && \
28378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28379 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28380 ac_status=$?
28381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28382 test $ac_status = 0; }; then
28383 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28384else
28385 pkg_failed=yes
28386fi
28387 else
28388 pkg_failed=untried
28389fi
28390if test -n "$OPENEXR_LIBS"; then
28391 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28392 elif test -n "$PKG_CONFIG"; then
28393 if test -n "$PKG_CONFIG" && \
28394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28395 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28396 ac_status=$?
28397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28398 test $ac_status = 0; }; then
28399 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28400else
28401 pkg_failed=yes
28402fi
28403 else
28404 pkg_failed=untried
28405fi
28406
28407
28408
28409if test $pkg_failed = yes; then
28410
28411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28412 _pkg_short_errors_supported=yes
28413else
28414 _pkg_short_errors_supported=no
28415fi
28416 if test $_pkg_short_errors_supported = yes; then
28417 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28418 else
28419 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28420 fi
28421 # Put the nasty error message in config.log where it belongs
28422 echo "$OPENEXR_PKG_ERRORS" >&5
28423
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28425$as_echo "no" >&6; }
28426 have_openexr=no
28427elif test $pkg_failed = untried; then
28428 have_openexr=no
28429else
28430 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28431 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28433$as_echo "yes" >&6; }
28434 have_openexr=yes
28435fi
cristy8b350f62009-11-15 23:12:43 +000028436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028437$as_echo "" >&6; }
28438fi
28439
28440if test "$have_openexr" = 'yes'; then
28441
cristy8b350f62009-11-15 23:12:43 +000028442$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028443
28444 if test "$with_modules" = 'no'; then
28445 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28446 fi
28447fi
28448
cristy73bd4a52010-10-05 11:24:23 +000028449 if test "$have_openexr" = 'yes'; then
28450 OPENEXR_DELEGATE_TRUE=
28451 OPENEXR_DELEGATE_FALSE='#'
28452else
28453 OPENEXR_DELEGATE_TRUE='#'
28454 OPENEXR_DELEGATE_FALSE=
28455fi
28456
cristy3ed852e2009-09-05 21:47:34 +000028457
28458
28459
28460
28461#
28462# Check for PNG delegate library.
28463#
28464
28465# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028466if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028467 withval=$with_png; with_png=$withval
28468else
28469 with_png='yes'
28470fi
28471
28472
28473if test "$with_png" != 'yes'; then
28474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28475fi
28476
28477have_png='no'
28478PNG_LIBS=''
28479if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028481$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028483$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028485$as_echo "" >&6; }
28486 failed=0
28487 passed=0
cristy8b350f62009-11-15 23:12:43 +000028488 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28489if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028490 passed=`expr $passed + 1`
28491else
28492 failed=`expr $failed + 1`
28493fi
28494
28495
cristy8b350f62009-11-15 23:12:43 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028497$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028498if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 $as_echo_n "(cached) " >&6
28500else
28501 ac_check_lib_save_LIBS=$LIBS
28502LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028504/* end confdefs.h. */
28505
28506/* Override any GCC internal prototype to avoid an error.
28507 Use char because int might match the return type of a GCC
28508 builtin and then its argument prototype would still apply. */
28509#ifdef __cplusplus
28510extern "C"
28511#endif
28512char png_get_io_ptr ();
28513int
28514main ()
28515{
28516return png_get_io_ptr ();
28517 ;
28518 return 0;
28519}
28520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 ac_cv_lib_png_png_get_io_ptr=yes
28523else
cristy8b350f62009-11-15 23:12:43 +000028524 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028525fi
cristy8b350f62009-11-15 23:12:43 +000028526rm -f core conftest.err conftest.$ac_objext \
28527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028528LIBS=$ac_check_lib_save_LIBS
28529fi
cristy8b350f62009-11-15 23:12:43 +000028530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028532if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028533 passed=`expr $passed + 1`
28534else
28535 failed=`expr $failed + 1`
28536fi
28537
cristy8b350f62009-11-15 23:12:43 +000028538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo_n "checking if PNG package is complete... " >&6; }
28540 if test $passed -gt 0; then
28541 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028543$as_echo "no -- some components failed test" >&6; }
28544 have_png='no (failed tests)'
28545 else
28546 PNG_LIBS='-lpng'
28547 LIBS="$PNG_LIBS $LIBS"
28548
cristy8b350f62009-11-15 23:12:43 +000028549$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028550
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo "yes" >&6; }
28553 have_png='yes'
28554 fi
28555 else
cristy8b350f62009-11-15 23:12:43 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028557$as_echo "no" >&6; }
28558 fi
28559fi
cristy73bd4a52010-10-05 11:24:23 +000028560 if test "$have_png" = 'yes'; then
28561 PNG_DELEGATE_TRUE=
28562 PNG_DELEGATE_FALSE='#'
28563else
28564 PNG_DELEGATE_TRUE='#'
28565 PNG_DELEGATE_FALSE=
28566fi
28567
cristy3ed852e2009-09-05 21:47:34 +000028568
28569
28570
28571#
28572# Check for RSVG delegate library.
28573#
28574
28575# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028576if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 withval=$with_rsvg; with_rsvg=$withval
28578else
28579 with_rsvg=$have_x
28580fi
28581
28582
28583if test "$with_rsvg" != 'yes'; then
28584 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28585fi
28586
28587have_rsvg='no'
28588have_cairo='no'
28589RSVG_CFLAGS=""
28590RSVG_LIBS=""
28591RSVG_PKG=""
28592if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028595
28596pkg_failed=no
28597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28598$as_echo_n "checking for RSVG... " >&6; }
28599
28600if test -n "$RSVG_CFLAGS"; then
28601 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28602 elif test -n "$PKG_CONFIG"; then
28603 if test -n "$PKG_CONFIG" && \
28604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28605 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28606 ac_status=$?
28607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28608 test $ac_status = 0; }; then
28609 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28610else
28611 pkg_failed=yes
28612fi
28613 else
28614 pkg_failed=untried
28615fi
28616if test -n "$RSVG_LIBS"; then
28617 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28618 elif test -n "$PKG_CONFIG"; then
28619 if test -n "$PKG_CONFIG" && \
28620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28621 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28622 ac_status=$?
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; then
28625 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28626else
28627 pkg_failed=yes
28628fi
28629 else
28630 pkg_failed=untried
28631fi
28632
28633
28634
28635if test $pkg_failed = yes; then
28636
28637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28638 _pkg_short_errors_supported=yes
28639else
28640 _pkg_short_errors_supported=no
28641fi
28642 if test $_pkg_short_errors_supported = yes; then
28643 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28644 else
28645 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28646 fi
28647 # Put the nasty error message in config.log where it belongs
28648 echo "$RSVG_PKG_ERRORS" >&5
28649
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28651$as_echo "no" >&6; }
28652 have_rsvg=no
28653elif test $pkg_failed = untried; then
28654 have_rsvg=no
28655else
28656 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28657 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28659$as_echo "yes" >&6; }
28660 have_rsvg=yes
28661fi
cristy8b350f62009-11-15 23:12:43 +000028662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028663$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028664
28665pkg_failed=no
28666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28667$as_echo_n "checking for CAIRO_SVG... " >&6; }
28668
28669if test -n "$CAIRO_SVG_CFLAGS"; then
28670 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28671 elif test -n "$PKG_CONFIG"; then
28672 if test -n "$PKG_CONFIG" && \
28673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28674 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28675 ac_status=$?
28676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28677 test $ac_status = 0; }; then
28678 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28679else
28680 pkg_failed=yes
28681fi
28682 else
28683 pkg_failed=untried
28684fi
28685if test -n "$CAIRO_SVG_LIBS"; then
28686 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28687 elif test -n "$PKG_CONFIG"; then
28688 if test -n "$PKG_CONFIG" && \
28689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28690 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28691 ac_status=$?
28692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693 test $ac_status = 0; }; then
28694 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28695else
28696 pkg_failed=yes
28697fi
28698 else
28699 pkg_failed=untried
28700fi
28701
28702
28703
28704if test $pkg_failed = yes; then
28705
28706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28707 _pkg_short_errors_supported=yes
28708else
28709 _pkg_short_errors_supported=no
28710fi
28711 if test $_pkg_short_errors_supported = yes; then
28712 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28713 else
28714 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28715 fi
28716 # Put the nasty error message in config.log where it belongs
28717 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28718
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28720$as_echo "no" >&6; }
28721 have_cairo=no
28722elif test $pkg_failed = untried; then
28723 have_cairo=no
28724else
28725 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28726 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28728$as_echo "yes" >&6; }
28729 have_cairo=yes
28730fi
cristy8b350f62009-11-15 23:12:43 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo "" >&6; }
28733fi
28734
28735if test "$have_rsvg" = 'yes'; then
28736
cristy8b350f62009-11-15 23:12:43 +000028737$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028738
28739 if test "$with_modules" = 'no'; then
28740 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28741 fi
28742fi
28743
28744if test "$have_cairo" = 'yes'; then
28745
cristy8b350f62009-11-15 23:12:43 +000028746$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028747
28748 if test "$with_modules" = 'no'; then
28749 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28750 fi
28751fi
28752
cristy73bd4a52010-10-05 11:24:23 +000028753 if test "$have_rsvg" = 'yes'; then
28754 RSVG_DELEGATE_TRUE=
28755 RSVG_DELEGATE_FALSE='#'
28756else
28757 RSVG_DELEGATE_TRUE='#'
28758 RSVG_DELEGATE_FALSE=
28759fi
28760
28761 if test "$have_cairo" = 'yes'; then
28762 CAIRO_DELEGATE_TRUE=
28763 CAIRO_DELEGATE_FALSE='#'
28764else
28765 CAIRO_DELEGATE_TRUE='#'
28766 CAIRO_DELEGATE_FALSE=
28767fi
28768
cristy3ed852e2009-09-05 21:47:34 +000028769
28770
28771
28772
28773#
28774# Check for TIFF delegate library.
28775#
28776
28777# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028778if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028779 withval=$with_tiff; with_tiff=$withval
28780else
28781 with_tiff='yes'
28782fi
28783
28784
28785if test "$with_tiff" != 'yes'; then
28786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28787fi
28788
28789have_tiff='no'
28790TIFF_LIBS=''
28791if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028793$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028795$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028797$as_echo "" >&6; }
28798 failed=0
28799 passed=0
cristy8b350f62009-11-15 23:12:43 +000028800 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28801if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028802 passed=`expr $passed + 1`
28803else
28804 failed=`expr $failed + 1`
28805fi
28806
28807
cristy8b350f62009-11-15 23:12:43 +000028808 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28809if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028810 passed=`expr $passed + 1`
28811else
28812 failed=`expr $failed + 1`
28813fi
28814
28815
cristy8b350f62009-11-15 23:12:43 +000028816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028817$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028818if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028819 $as_echo_n "(cached) " >&6
28820else
28821 ac_check_lib_save_LIBS=$LIBS
28822LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028824/* end confdefs.h. */
28825
28826/* Override any GCC internal prototype to avoid an error.
28827 Use char because int might match the return type of a GCC
28828 builtin and then its argument prototype would still apply. */
28829#ifdef __cplusplus
28830extern "C"
28831#endif
28832char TIFFOpen ();
28833int
28834main ()
28835{
28836return TIFFOpen ();
28837 ;
28838 return 0;
28839}
28840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028842 ac_cv_lib_tiff_TIFFOpen=yes
28843else
cristy8b350f62009-11-15 23:12:43 +000028844 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028845fi
cristy8b350f62009-11-15 23:12:43 +000028846rm -f core conftest.err conftest.$ac_objext \
28847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028848LIBS=$ac_check_lib_save_LIBS
28849fi
cristy8b350f62009-11-15 23:12:43 +000028850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028851$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028852if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028853 passed=`expr $passed + 1`
28854else
28855 failed=`expr $failed + 1`
28856fi
28857
cristy8b350f62009-11-15 23:12:43 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028860if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 $as_echo_n "(cached) " >&6
28862else
28863 ac_check_lib_save_LIBS=$LIBS
28864LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028866/* end confdefs.h. */
28867
28868/* Override any GCC internal prototype to avoid an error.
28869 Use char because int might match the return type of a GCC
28870 builtin and then its argument prototype would still apply. */
28871#ifdef __cplusplus
28872extern "C"
28873#endif
28874char TIFFClientOpen ();
28875int
28876main ()
28877{
28878return TIFFClientOpen ();
28879 ;
28880 return 0;
28881}
28882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 ac_cv_lib_tiff_TIFFClientOpen=yes
28885else
cristy8b350f62009-11-15 23:12:43 +000028886 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028887fi
cristy8b350f62009-11-15 23:12:43 +000028888rm -f core conftest.err conftest.$ac_objext \
28889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028890LIBS=$ac_check_lib_save_LIBS
28891fi
cristy8b350f62009-11-15 23:12:43 +000028892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028894if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 passed=`expr $passed + 1`
28896else
28897 failed=`expr $failed + 1`
28898fi
28899
cristyb97f1002010-07-26 14:02:57 +000028900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28901$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28902if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28903 $as_echo_n "(cached) " >&6
28904else
28905 ac_check_lib_save_LIBS=$LIBS
28906LIBS="-ltiff $LIBS"
28907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28908/* end confdefs.h. */
28909
28910/* Override any GCC internal prototype to avoid an error.
28911 Use char because int might match the return type of a GCC
28912 builtin and then its argument prototype would still apply. */
28913#ifdef __cplusplus
28914extern "C"
28915#endif
28916char TIFFIsBigEndian ();
28917int
28918main ()
28919{
28920return TIFFIsBigEndian ();
28921 ;
28922 return 0;
28923}
28924_ACEOF
28925if ac_fn_c_try_link "$LINENO"; then :
28926 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28927else
28928 ac_cv_lib_tiff_TIFFIsBigEndian=no
28929fi
28930rm -f core conftest.err conftest.$ac_objext \
28931 conftest$ac_exeext conftest.$ac_ext
28932LIBS=$ac_check_lib_save_LIBS
28933fi
28934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28935$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28936if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28937 passed=`expr $passed + 1`
28938else
28939 failed=`expr $failed + 1`
28940fi
28941
cristy8b350f62009-11-15 23:12:43 +000028942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028943$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028944if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028945 $as_echo_n "(cached) " >&6
28946else
28947 ac_check_lib_save_LIBS=$LIBS
28948LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028950/* end confdefs.h. */
28951
28952/* Override any GCC internal prototype to avoid an error.
28953 Use char because int might match the return type of a GCC
28954 builtin and then its argument prototype would still apply. */
28955#ifdef __cplusplus
28956extern "C"
28957#endif
28958char TIFFIsByteSwapped ();
28959int
28960main ()
28961{
28962return TIFFIsByteSwapped ();
28963 ;
28964 return 0;
28965}
28966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028967if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028968 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28969else
cristy8b350f62009-11-15 23:12:43 +000028970 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028971fi
cristy8b350f62009-11-15 23:12:43 +000028972rm -f core conftest.err conftest.$ac_objext \
28973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028974LIBS=$ac_check_lib_save_LIBS
28975fi
cristy8b350f62009-11-15 23:12:43 +000028976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028977$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028978if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028979 passed=`expr $passed + 1`
28980else
28981 failed=`expr $failed + 1`
28982fi
28983
cristy8b350f62009-11-15 23:12:43 +000028984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028986if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028987 $as_echo_n "(cached) " >&6
28988else
28989 ac_check_lib_save_LIBS=$LIBS
28990LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028992/* end confdefs.h. */
28993
28994/* Override any GCC internal prototype to avoid an error.
28995 Use char because int might match the return type of a GCC
28996 builtin and then its argument prototype would still apply. */
28997#ifdef __cplusplus
28998extern "C"
28999#endif
29000char TIFFReadRGBATile ();
29001int
29002main ()
29003{
29004return TIFFReadRGBATile ();
29005 ;
29006 return 0;
29007}
29008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29011else
cristy8b350f62009-11-15 23:12:43 +000029012 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029013fi
cristy8b350f62009-11-15 23:12:43 +000029014rm -f core conftest.err conftest.$ac_objext \
29015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029016LIBS=$ac_check_lib_save_LIBS
29017fi
cristy8b350f62009-11-15 23:12:43 +000029018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029020if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 passed=`expr $passed + 1`
29022else
29023 failed=`expr $failed + 1`
29024fi
29025
cristy8b350f62009-11-15 23:12:43 +000029026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029027$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029028if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029029 $as_echo_n "(cached) " >&6
29030else
29031 ac_check_lib_save_LIBS=$LIBS
29032LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029034/* end confdefs.h. */
29035
29036/* Override any GCC internal prototype to avoid an error.
29037 Use char because int might match the return type of a GCC
29038 builtin and then its argument prototype would still apply. */
29039#ifdef __cplusplus
29040extern "C"
29041#endif
29042char TIFFReadRGBAStrip ();
29043int
29044main ()
29045{
29046return TIFFReadRGBAStrip ();
29047 ;
29048 return 0;
29049}
29050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029052 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29053else
cristy8b350f62009-11-15 23:12:43 +000029054 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029055fi
cristy8b350f62009-11-15 23:12:43 +000029056rm -f core conftest.err conftest.$ac_objext \
29057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029058LIBS=$ac_check_lib_save_LIBS
29059fi
cristy8b350f62009-11-15 23:12:43 +000029060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029061$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029062if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029063 passed=`expr $passed + 1`
29064else
29065 failed=`expr $failed + 1`
29066fi
29067
cristy8b350f62009-11-15 23:12:43 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029069$as_echo_n "checking if TIFF package is complete... " >&6; }
29070 if test $passed -gt 0; then
29071 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029073$as_echo "no -- some components failed test" >&6; }
29074 have_tiff='no (failed tests)'
29075 else
29076 TIFF_LIBS='-ltiff'
29077 LIBS="$TIFF_LIBS $LIBS"
29078
cristy8b350f62009-11-15 23:12:43 +000029079$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029080
cristy8b350f62009-11-15 23:12:43 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029082$as_echo "yes" >&6; }
29083 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029084 for ac_header in tiffconf.h
29085do :
29086 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29087if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029088 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029089#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029090_ACEOF
29091
29092fi
29093
29094done
29095
cristy8b350f62009-11-15 23:12:43 +000029096 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029097 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29098 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029099do :
29100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029102if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029103 cat >>confdefs.h <<_ACEOF
29104#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29105_ACEOF
29106
29107fi
29108done
29109
29110 fi
29111 else
cristy8b350f62009-11-15 23:12:43 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029113$as_echo "no" >&6; }
29114 fi
29115fi
cristy73bd4a52010-10-05 11:24:23 +000029116 if test "$have_tiff" = 'yes'; then
29117 TIFF_DELEGATE_TRUE=
29118 TIFF_DELEGATE_FALSE='#'
29119else
29120 TIFF_DELEGATE_TRUE='#'
29121 TIFF_DELEGATE_FALSE=
29122fi
29123
cristy3ed852e2009-09-05 21:47:34 +000029124
29125
29126
29127#
29128# Set Windows font directory.
29129#
29130
29131# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029132if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29134else
29135 with_windows_font_dir=''
29136fi
29137
29138if test "$with_windows_font_dir" != '' ; then
29139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29140fi
29141
29142
29143#
29144# Check for WMF delegate library.
29145#
29146
29147# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029148if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029149 withval=$with_wmf; with_wmf=$withval
29150else
cristy8d63d1d2010-01-06 20:38:37 +000029151 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029152fi
29153
29154
29155if test "$with_wmf" != 'yes'; then
29156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29157fi
29158
29159have_wmf='no'
29160WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029161if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029167$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029168 failed=0
29169 passed=0
29170 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29171if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29172 passed=`expr $passed + 1`
29173else
29174 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029175fi
29176
29177
cristy735e8942010-04-02 20:32:57 +000029178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29179$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29180if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029181 $as_echo_n "(cached) " >&6
29182else
29183 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029184LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029186/* end confdefs.h. */
29187
29188/* Override any GCC internal prototype to avoid an error.
29189 Use char because int might match the return type of a GCC
29190 builtin and then its argument prototype would still apply. */
29191#ifdef __cplusplus
29192extern "C"
29193#endif
cristy735e8942010-04-02 20:32:57 +000029194char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029195int
29196main ()
29197{
cristy735e8942010-04-02 20:32:57 +000029198return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029199 ;
29200 return 0;
29201}
29202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029203if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029204 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029205else
cristy735e8942010-04-02 20:32:57 +000029206 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029207fi
cristy8b350f62009-11-15 23:12:43 +000029208rm -f core conftest.err conftest.$ac_objext \
29209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029210LIBS=$ac_check_lib_save_LIBS
29211fi
cristy735e8942010-04-02 20:32:57 +000029212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29213$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29214if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29215 passed=`expr $passed + 1`
29216else
29217 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029218fi
29219
cristy735e8942010-04-02 20:32:57 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29221$as_echo_n "checking if WMF package is complete... " >&6; }
29222 if test $passed -gt 0; then
29223 if test $failed -gt 0; then
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29225$as_echo "no -- some components failed test" >&6; }
29226 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029227 else
cristy735e8942010-04-02 20:32:57 +000029228 WMF_LIBS='-lwmf -lwmflite'
29229 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029230
cristy8b350f62009-11-15 23:12:43 +000029231$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029232
cristy735e8942010-04-02 20:32:57 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029235 have_wmf='yes'
29236 fi
cristy3ed852e2009-09-05 21:47:34 +000029237 else
cristy8b350f62009-11-15 23:12:43 +000029238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029239$as_echo "no" >&6; }
29240 fi
29241fi
cristy73bd4a52010-10-05 11:24:23 +000029242 if test "$have_wmf" = 'yes'; then
29243 WMF_DELEGATE_TRUE=
29244 WMF_DELEGATE_FALSE='#'
29245else
29246 WMF_DELEGATE_TRUE='#'
29247 WMF_DELEGATE_FALSE=
29248fi
29249
cristy3ed852e2009-09-05 21:47:34 +000029250
29251
29252
29253
cristy735e8942010-04-02 20:32:57 +000029254
cristy3ed852e2009-09-05 21:47:34 +000029255#
29256# Check for XML delegate library.
29257#
29258
29259# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029260if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 withval=$with_xml; with_xml=$withval
29262else
29263 with_xml=$have_x
29264fi
29265
29266
29267if test "$with_xml" != 'yes' ; then
29268 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29269fi
29270
29271have_xml='no'
29272XML_LIBS=''
29273if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029275$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029277$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029279$as_echo "" >&6; }
29280 PERSIST_LDFLAGS=$LDFLAGS
29281 PERSIST_CPPFLAGS=$CPPFLAGS
29282 xml2_config=''
29283 for ac_prog in xml2-config
29284do
29285 # Extract the first word of "$ac_prog", so it can be a program name with args.
29286set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029289if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029290 $as_echo_n "(cached) " >&6
29291else
29292 if test -n "$xml2_config"; then
29293 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29294else
29295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29296for as_dir in $PATH
29297do
29298 IFS=$as_save_IFS
29299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29302 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029304 break 2
29305 fi
29306done
cristy8b350f62009-11-15 23:12:43 +000029307 done
cristy3ed852e2009-09-05 21:47:34 +000029308IFS=$as_save_IFS
29309
29310fi
29311fi
29312xml2_config=$ac_cv_prog_xml2_config
29313if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029315$as_echo "$xml2_config" >&6; }
29316else
cristy8b350f62009-11-15 23:12:43 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029318$as_echo "no" >&6; }
29319fi
29320
29321
29322 test -n "$xml2_config" && break
29323done
29324 if test -n "$xml2_config"; then
29325 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29326 # the shared library installed under /usr/lib, whereas the package
29327 # installs itself under $prefix/libxml and $prefix/lib.
29328 xml2_prefix=`xml2-config --prefix`
29329 if test -d "${xml2_prefix}/include/libxml2"; then
29330 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29331 fi
29332 if test "${xml2_prefix}" != '/usr'; then
29333 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29334 fi
29335 fi
29336 failed=0
29337 passed=0
cristy8b350f62009-11-15 23:12:43 +000029338 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29339if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029340 passed=`expr $passed + 1`
29341else
29342 failed=`expr $failed + 1`
29343fi
29344
29345
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029348if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029349 $as_echo_n "(cached) " >&6
29350else
29351 ac_check_lib_save_LIBS=$LIBS
29352LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029354/* end confdefs.h. */
29355
29356/* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29359#ifdef __cplusplus
29360extern "C"
29361#endif
29362char xmlParseExternalEntity ();
29363int
29364main ()
29365{
29366return xmlParseExternalEntity ();
29367 ;
29368 return 0;
29369}
29370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029371if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29373else
cristy8b350f62009-11-15 23:12:43 +000029374 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029375fi
cristy8b350f62009-11-15 23:12:43 +000029376rm -f core conftest.err conftest.$ac_objext \
29377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029378LIBS=$ac_check_lib_save_LIBS
29379fi
cristy8b350f62009-11-15 23:12:43 +000029380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029382if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029383 passed=`expr $passed + 1`
29384else
29385 failed=`expr $failed + 1`
29386fi
29387
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking if XML package is complete... " >&6; }
29390 if test $passed -gt 0; then
29391 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393$as_echo "no -- some components failed test" >&6; }
29394 have_xml='no (failed tests)'
29395 LDFLAGS="$PERSIST_LDFLAGS"
29396 CPPFLAGS="$PERSIST_CPPFLAGS"
29397 else
29398 XML_LIBS='-lxml2'
29399 LIBS="$XML_LIBS $LIBS"
29400
cristy8b350f62009-11-15 23:12:43 +000029401$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029402
cristy8b350f62009-11-15 23:12:43 +000029403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029404$as_echo "yes" >&6; }
29405 have_xml='yes'
29406 fi
29407 else
cristy8b350f62009-11-15 23:12:43 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo "no" >&6; }
29410 fi
29411fi
cristy73bd4a52010-10-05 11:24:23 +000029412 if test "$have_xml" = 'yes'; then
29413 XML_DELEGATE_TRUE=
29414 XML_DELEGATE_FALSE='#'
29415else
29416 XML_DELEGATE_TRUE='#'
29417 XML_DELEGATE_FALSE=
29418fi
29419
cristy3ed852e2009-09-05 21:47:34 +000029420
29421
29422
29423# Substitute compiler name to build/link PerlMagick
29424#
29425
29426
29427#
29428# Configure install Paths
29429#
29430
29431# Subdirectory under lib to place ImageMagick lib files
29432LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29433
29434cat >>confdefs.h <<_ACEOF
29435#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29436_ACEOF
29437
29438
29439# Path to ImageMagick bin directory
29440EXECUTABLE_PATH="${BIN_DIR}"
29441DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29442case "${build_os}" in
29443 mingw* )
29444 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29445 ;;
29446esac
29447
29448cat >>confdefs.h <<_ACEOF
29449#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29450_ACEOF
29451
29452
29453
29454# Path to ImageMagick lib
29455LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29456DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29457case "${build_os}" in
29458 mingw* )
29459 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29460 ;;
29461esac
29462
29463cat >>confdefs.h <<_ACEOF
29464#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29465_ACEOF
29466
29467
29468
29469# Subdirectory under lib to place ImageMagick configuration files
29470CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29471
29472cat >>confdefs.h <<_ACEOF
29473#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29474_ACEOF
29475
29476CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29477DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29478case "${build_os}" in
29479 mingw* )
29480 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29481 ;;
29482esac
29483
29484cat >>confdefs.h <<_ACEOF
29485#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29486_ACEOF
29487
29488
29489
29490#
29491# Subdirectory under lib to place ImageMagick coder module files
29492CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29493
29494cat >>confdefs.h <<_ACEOF
29495#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29496_ACEOF
29497
29498CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29499DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29500case "${build_os}" in
29501 mingw* )
29502 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29503 ;;
29504esac
29505
29506cat >>confdefs.h <<_ACEOF
29507#define CODER_PATH "$DEFINE_CODER_PATH"
29508_ACEOF
29509
29510
29511
29512#
29513# Subdirectory under lib to place ImageMagick filter module files
29514FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29515
29516cat >>confdefs.h <<_ACEOF
29517#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29518_ACEOF
29519
29520FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29521DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29522case "${build_os}" in
29523 mingw* )
29524 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29525 ;;
29526esac
29527
29528cat >>confdefs.h <<_ACEOF
29529#define FILTER_PATH "$DEFINE_FILTER_PATH"
29530_ACEOF
29531
29532
29533
29534#
29535# Path to ImageMagick documentation files
29536DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29537DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29538DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29539case "${build_os}" in
29540 mingw* )
29541 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29542 ;;
29543esac
29544
29545cat >>confdefs.h <<_ACEOF
29546#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29547_ACEOF
29548
29549
29550
29551#
29552# Path to ImageMagick share files
29553SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29554SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29555DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29556case "${build_os}" in
29557 mingw* )
29558 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29559 ;;
29560esac
29561
29562cat >>confdefs.h <<_ACEOF
29563#define SHARE_PATH "$DEFINE_SHARE_PATH"
29564_ACEOF
29565
29566
29567
29568# Subdirectory under share to place ImageMagick configuration files
29569SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29570
29571cat >>confdefs.h <<_ACEOF
29572#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29573_ACEOF
29574
29575SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29576DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29577case "${build_os}" in
29578 mingw* )
29579 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29580 ;;
29581esac
29582
29583cat >>confdefs.h <<_ACEOF
29584#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29585_ACEOF
29586
29587
29588
29589#
29590# program_transform_name is formed for use in a Makefile, so create a
29591# modified version for use in a shell script.
29592configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29593
29594# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029596$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo "" >&6; }
29601AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000029602BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029603BZIPDelegateDefault='bzip2'
29604BrowseDelegateDefault='xdg-open'
29605CGMDecodeDelegateDefault='ralcgm'
29606CatDelegateDefault='cat'
29607DNGDecodeDelegateDefault='ufraw-batch'
29608GVCDecodeDelegateDefault='dot'
29609DVIDecodeDelegateDefault='dvips'
29610EchoDelegateDefault='echo'
29611EditorDelegateDefault='xterm'
29612FIGDecodeDelegateDefault='fig2dev'
29613ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29614DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29615MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29616GnuplotDecodeDelegateDefault='gnuplot'
29617HDRDecodeDelegateDefault='ra_pfm'
29618HPGLDecodeDelegateDefault='hp2xx'
29619HTMLDecodeDelegateDefault='html2ps'
29620ILBMDecodeDelegateDefault='ilbmtoppm'
29621ILBMEncodeDelegateDefault='ppmtoilbm'
29622LPDelegateDefault='lp'
29623LPRDelegateDefault='lpr'
29624LZWDecodeDelegateDefault='uncompress'
29625LZWEncodeDelegateDefault='compress'
29626LaunchDelegateDefault='gimp'
29627MANDelegateDefault='groff'
29628MPEGDecodeDelegateDefault='ffmpeg'
29629MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029630MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029631MVDelegateDefault='mv'
29632PCLDelegateDefault='pcl6'
29633PGPDecodeDelegateDefault='pgpv'
29634POVDelegateDefault='povray'
29635if test "$native_win32_build" = 'yes'; then
29636 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029637elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029638 PSDelegateDefault='gsc'
29639else
29640 PSDelegateDefault='gs'
29641fi
29642RLEEncodeDelegateDefault='rawtorle'
29643RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029644RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029645SCANDecodeDelegateDefault='scanimage'
29646TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029647UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000029648WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000029649WMFDecodeDelegateDefault='wmf2eps'
29650WWWDecodeDelegateDefault='curl'
29651XPSDelegateDefault='gxps'
29652ZipDelegateDefault='gzip'
29653
29654# Search for delegates
29655# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29656set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029659if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029660 $as_echo_n "(cached) " >&6
29661else
29662 case $AutotraceDecodeDelegate in
29663 [\\/]* | ?:[\\/]*)
29664 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29665 ;;
29666 *)
29667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29668for as_dir in $PATH
29669do
29670 IFS=$as_save_IFS
29671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29674 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029676 break 2
29677 fi
29678done
cristy8b350f62009-11-15 23:12:43 +000029679 done
cristy3ed852e2009-09-05 21:47:34 +000029680IFS=$as_save_IFS
29681
29682 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29683 ;;
29684esac
29685fi
29686AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29687if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029689$as_echo "$AutotraceDecodeDelegate" >&6; }
29690else
cristy8b350f62009-11-15 23:12:43 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029692$as_echo "no" >&6; }
29693fi
29694
29695
cristy3ed852e2009-09-05 21:47:34 +000029696# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29697set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029700if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029701 $as_echo_n "(cached) " >&6
29702else
29703 case $BlenderDecodeDelegate in
29704 [\\/]* | ?:[\\/]*)
29705 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29706 ;;
29707 *)
29708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29709for as_dir in $PATH
29710do
29711 IFS=$as_save_IFS
29712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29715 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029717 break 2
29718 fi
29719done
cristy8b350f62009-11-15 23:12:43 +000029720 done
cristy3ed852e2009-09-05 21:47:34 +000029721IFS=$as_save_IFS
29722
29723 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29724 ;;
29725esac
29726fi
29727BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29728if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo "$BlenderDecodeDelegate" >&6; }
29731else
cristy8b350f62009-11-15 23:12:43 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733$as_echo "no" >&6; }
29734fi
29735
29736
29737# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29738set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029741if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 $as_echo_n "(cached) " >&6
29743else
29744 case $BZIPDelegate in
29745 [\\/]* | ?:[\\/]*)
29746 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29747 ;;
29748 *)
29749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29750for as_dir in $PATH
29751do
29752 IFS=$as_save_IFS
29753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29756 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758 break 2
29759 fi
29760done
cristy8b350f62009-11-15 23:12:43 +000029761 done
cristy3ed852e2009-09-05 21:47:34 +000029762IFS=$as_save_IFS
29763
29764 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29765 ;;
29766esac
29767fi
29768BZIPDelegate=$ac_cv_path_BZIPDelegate
29769if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029771$as_echo "$BZIPDelegate" >&6; }
29772else
cristy8b350f62009-11-15 23:12:43 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo "no" >&6; }
29775fi
29776
29777
29778# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29779set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029782if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 $as_echo_n "(cached) " >&6
29784else
29785 case $BrowseDelegate in
29786 [\\/]* | ?:[\\/]*)
29787 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29788 ;;
29789 *)
29790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29791for as_dir in $PATH
29792do
29793 IFS=$as_save_IFS
29794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29797 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799 break 2
29800 fi
29801done
cristy8b350f62009-11-15 23:12:43 +000029802 done
cristy3ed852e2009-09-05 21:47:34 +000029803IFS=$as_save_IFS
29804
29805 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29806 ;;
29807esac
29808fi
29809BrowseDelegate=$ac_cv_path_BrowseDelegate
29810if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo "$BrowseDelegate" >&6; }
29813else
cristy8b350f62009-11-15 23:12:43 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815$as_echo "no" >&6; }
29816fi
29817
29818
29819# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29820set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029823if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029824 $as_echo_n "(cached) " >&6
29825else
29826 case $CGMDecodeDelegate in
29827 [\\/]* | ?:[\\/]*)
29828 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29829 ;;
29830 *)
29831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29832for as_dir in $PATH
29833do
29834 IFS=$as_save_IFS
29835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29838 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029840 break 2
29841 fi
29842done
cristy8b350f62009-11-15 23:12:43 +000029843 done
cristy3ed852e2009-09-05 21:47:34 +000029844IFS=$as_save_IFS
29845
29846 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29847 ;;
29848esac
29849fi
29850CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29851if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo "$CGMDecodeDelegate" >&6; }
29854else
cristy8b350f62009-11-15 23:12:43 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo "no" >&6; }
29857fi
29858
29859
29860# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29861set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029863$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029864if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029865 $as_echo_n "(cached) " >&6
29866else
29867 case $CatDelegate in
29868 [\\/]* | ?:[\\/]*)
29869 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29870 ;;
29871 *)
29872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29873for as_dir in $PATH
29874do
29875 IFS=$as_save_IFS
29876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29879 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881 break 2
29882 fi
29883done
cristy8b350f62009-11-15 23:12:43 +000029884 done
cristy3ed852e2009-09-05 21:47:34 +000029885IFS=$as_save_IFS
29886
29887 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29888 ;;
29889esac
29890fi
29891CatDelegate=$ac_cv_path_CatDelegate
29892if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo "$CatDelegate" >&6; }
29895else
cristy8b350f62009-11-15 23:12:43 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029897$as_echo "no" >&6; }
29898fi
29899
29900
29901# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29902set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029905if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029906 $as_echo_n "(cached) " >&6
29907else
29908 case $DNGDecodeDelegate in
29909 [\\/]* | ?:[\\/]*)
29910 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29911 ;;
29912 *)
29913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914for as_dir in $PATH
29915do
29916 IFS=$as_save_IFS
29917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29920 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922 break 2
29923 fi
29924done
cristy8b350f62009-11-15 23:12:43 +000029925 done
cristy3ed852e2009-09-05 21:47:34 +000029926IFS=$as_save_IFS
29927
29928 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29929 ;;
29930esac
29931fi
29932DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29933if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo "$DNGDecodeDelegate" >&6; }
29936else
cristy8b350f62009-11-15 23:12:43 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029938$as_echo "no" >&6; }
29939fi
29940
29941
29942# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29943set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029946if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 $as_echo_n "(cached) " >&6
29948else
29949 case $GVCDecodeDelegate in
29950 [\\/]* | ?:[\\/]*)
29951 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29952 ;;
29953 *)
29954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29955for as_dir in $PATH
29956do
29957 IFS=$as_save_IFS
29958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29961 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029963 break 2
29964 fi
29965done
cristy8b350f62009-11-15 23:12:43 +000029966 done
cristy3ed852e2009-09-05 21:47:34 +000029967IFS=$as_save_IFS
29968
29969 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29970 ;;
29971esac
29972fi
29973GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29974if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976$as_echo "$GVCDecodeDelegate" >&6; }
29977else
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo "no" >&6; }
29980fi
29981
29982
29983# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29984set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029987if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029988 $as_echo_n "(cached) " >&6
29989else
29990 case $DVIDecodeDelegate in
29991 [\\/]* | ?:[\\/]*)
29992 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29993 ;;
29994 *)
29995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29996for as_dir in $PATH
29997do
29998 IFS=$as_save_IFS
29999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30002 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004 break 2
30005 fi
30006done
cristy8b350f62009-11-15 23:12:43 +000030007 done
cristy3ed852e2009-09-05 21:47:34 +000030008IFS=$as_save_IFS
30009
30010 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30011 ;;
30012esac
30013fi
30014DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30015if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017$as_echo "$DVIDecodeDelegate" >&6; }
30018else
cristy8b350f62009-11-15 23:12:43 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020$as_echo "no" >&6; }
30021fi
30022
30023
30024# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30025set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030028if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030029 $as_echo_n "(cached) " >&6
30030else
30031 case $EchoDelegate in
30032 [\\/]* | ?:[\\/]*)
30033 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30034 ;;
30035 *)
30036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037for as_dir in $PATH
30038do
30039 IFS=$as_save_IFS
30040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30043 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045 break 2
30046 fi
30047done
cristy8b350f62009-11-15 23:12:43 +000030048 done
cristy3ed852e2009-09-05 21:47:34 +000030049IFS=$as_save_IFS
30050
30051 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30052 ;;
30053esac
30054fi
30055EchoDelegate=$ac_cv_path_EchoDelegate
30056if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo "$EchoDelegate" >&6; }
30059else
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "no" >&6; }
30062fi
30063
30064
30065# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30066set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030069if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030070 $as_echo_n "(cached) " >&6
30071else
30072 case $EditorDelegate in
30073 [\\/]* | ?:[\\/]*)
30074 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30075 ;;
30076 *)
30077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30078for as_dir in $PATH
30079do
30080 IFS=$as_save_IFS
30081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30084 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030086 break 2
30087 fi
30088done
cristy8b350f62009-11-15 23:12:43 +000030089 done
cristy3ed852e2009-09-05 21:47:34 +000030090IFS=$as_save_IFS
30091
30092 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30093 ;;
30094esac
30095fi
30096EditorDelegate=$ac_cv_path_EditorDelegate
30097if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo "$EditorDelegate" >&6; }
30100else
cristy8b350f62009-11-15 23:12:43 +000030101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030102$as_echo "no" >&6; }
30103fi
30104
30105
30106# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30107set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030110if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030111 $as_echo_n "(cached) " >&6
30112else
30113 case $FIGDecodeDelegate in
30114 [\\/]* | ?:[\\/]*)
30115 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30116 ;;
30117 *)
30118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30119for as_dir in $PATH
30120do
30121 IFS=$as_save_IFS
30122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30125 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127 break 2
30128 fi
30129done
cristy8b350f62009-11-15 23:12:43 +000030130 done
cristy3ed852e2009-09-05 21:47:34 +000030131IFS=$as_save_IFS
30132
30133 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30134 ;;
30135esac
30136fi
30137FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30138if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030140$as_echo "$FIGDecodeDelegate" >&6; }
30141else
cristy8b350f62009-11-15 23:12:43 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo "no" >&6; }
30144fi
30145
30146
30147# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30148set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030151if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 $as_echo_n "(cached) " >&6
30153else
30154 case $ConvertDelegate in
30155 [\\/]* | ?:[\\/]*)
30156 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30157 ;;
30158 *)
30159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30160for as_dir in $PATH
30161do
30162 IFS=$as_save_IFS
30163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30166 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168 break 2
30169 fi
30170done
cristy8b350f62009-11-15 23:12:43 +000030171 done
cristy3ed852e2009-09-05 21:47:34 +000030172IFS=$as_save_IFS
30173
30174 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30175 ;;
30176esac
30177fi
30178ConvertDelegate=$ac_cv_path_ConvertDelegate
30179if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181$as_echo "$ConvertDelegate" >&6; }
30182else
cristy8b350f62009-11-15 23:12:43 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030184$as_echo "no" >&6; }
30185fi
30186
30187
30188# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30189set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030192if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030193 $as_echo_n "(cached) " >&6
30194else
30195 case $DisplayDelegate in
30196 [\\/]* | ?:[\\/]*)
30197 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30198 ;;
30199 *)
30200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30201for as_dir in $PATH
30202do
30203 IFS=$as_save_IFS
30204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30207 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209 break 2
30210 fi
30211done
cristy8b350f62009-11-15 23:12:43 +000030212 done
cristy3ed852e2009-09-05 21:47:34 +000030213IFS=$as_save_IFS
30214
30215 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30216 ;;
30217esac
30218fi
30219DisplayDelegate=$ac_cv_path_DisplayDelegate
30220if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo "$DisplayDelegate" >&6; }
30223else
cristy8b350f62009-11-15 23:12:43 +000030224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225$as_echo "no" >&6; }
30226fi
30227
30228
30229# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30230set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030233if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030234 $as_echo_n "(cached) " >&6
30235else
30236 case $MogrifyDelegate in
30237 [\\/]* | ?:[\\/]*)
30238 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30239 ;;
30240 *)
30241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30242for as_dir in $PATH
30243do
30244 IFS=$as_save_IFS
30245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30248 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030250 break 2
30251 fi
30252done
cristy8b350f62009-11-15 23:12:43 +000030253 done
cristy3ed852e2009-09-05 21:47:34 +000030254IFS=$as_save_IFS
30255
30256 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30257 ;;
30258esac
30259fi
30260MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30261if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "$MogrifyDelegate" >&6; }
30264else
cristy8b350f62009-11-15 23:12:43 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030266$as_echo "no" >&6; }
30267fi
30268
30269
30270# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30271set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030274if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030275 $as_echo_n "(cached) " >&6
30276else
30277 case $GnuplotDecodeDelegate in
30278 [\\/]* | ?:[\\/]*)
30279 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30280 ;;
30281 *)
30282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30283for as_dir in $PATH
30284do
30285 IFS=$as_save_IFS
30286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30289 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030291 break 2
30292 fi
30293done
cristy8b350f62009-11-15 23:12:43 +000030294 done
cristy3ed852e2009-09-05 21:47:34 +000030295IFS=$as_save_IFS
30296
30297 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30298 ;;
30299esac
30300fi
30301GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30302if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo "$GnuplotDecodeDelegate" >&6; }
30305else
cristy8b350f62009-11-15 23:12:43 +000030306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030307$as_echo "no" >&6; }
30308fi
30309
30310
30311# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30312set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030315if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030316 $as_echo_n "(cached) " >&6
30317else
30318 case $HDRDecodeDelegate in
30319 [\\/]* | ?:[\\/]*)
30320 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30321 ;;
30322 *)
30323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30324for as_dir in $PATH
30325do
30326 IFS=$as_save_IFS
30327 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30330 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332 break 2
30333 fi
30334done
cristy8b350f62009-11-15 23:12:43 +000030335 done
cristy3ed852e2009-09-05 21:47:34 +000030336IFS=$as_save_IFS
30337
30338 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30339 ;;
30340esac
30341fi
30342HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30343if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo "$HDRDecodeDelegate" >&6; }
30346else
cristy8b350f62009-11-15 23:12:43 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo "no" >&6; }
30349fi
30350
30351
30352# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30353set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030355$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030356if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030357 $as_echo_n "(cached) " >&6
30358else
30359 case $HPGLDecodeDelegate in
30360 [\\/]* | ?:[\\/]*)
30361 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30362 ;;
30363 *)
30364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30365for as_dir in $PATH
30366do
30367 IFS=$as_save_IFS
30368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30371 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373 break 2
30374 fi
30375done
cristy8b350f62009-11-15 23:12:43 +000030376 done
cristy3ed852e2009-09-05 21:47:34 +000030377IFS=$as_save_IFS
30378
30379 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30380 ;;
30381esac
30382fi
30383HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30384if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "$HPGLDecodeDelegate" >&6; }
30387else
cristy8b350f62009-11-15 23:12:43 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030389$as_echo "no" >&6; }
30390fi
30391
30392
30393# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30394set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030397if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030398 $as_echo_n "(cached) " >&6
30399else
30400 case $HTMLDecodeDelegate in
30401 [\\/]* | ?:[\\/]*)
30402 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30403 ;;
30404 *)
30405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406for as_dir in $PATH
30407do
30408 IFS=$as_save_IFS
30409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414 break 2
30415 fi
30416done
cristy8b350f62009-11-15 23:12:43 +000030417 done
cristy3ed852e2009-09-05 21:47:34 +000030418IFS=$as_save_IFS
30419
30420 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30421 ;;
30422esac
30423fi
30424HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30425if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030427$as_echo "$HTMLDecodeDelegate" >&6; }
30428else
cristy8b350f62009-11-15 23:12:43 +000030429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030430$as_echo "no" >&6; }
30431fi
30432
30433
30434# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30435set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030438if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030439 $as_echo_n "(cached) " >&6
30440else
30441 case $ILBMDecodeDelegate in
30442 [\\/]* | ?:[\\/]*)
30443 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30444 ;;
30445 *)
30446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30447for as_dir in $PATH
30448do
30449 IFS=$as_save_IFS
30450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30453 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455 break 2
30456 fi
30457done
cristy8b350f62009-11-15 23:12:43 +000030458 done
cristy3ed852e2009-09-05 21:47:34 +000030459IFS=$as_save_IFS
30460
30461 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30462 ;;
30463esac
30464fi
30465ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30466if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468$as_echo "$ILBMDecodeDelegate" >&6; }
30469else
cristy8b350f62009-11-15 23:12:43 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030471$as_echo "no" >&6; }
30472fi
30473
30474
30475# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30476set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030479if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030480 $as_echo_n "(cached) " >&6
30481else
30482 case $ILBMEncodeDelegate in
30483 [\\/]* | ?:[\\/]*)
30484 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30485 ;;
30486 *)
30487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30488for as_dir in $PATH
30489do
30490 IFS=$as_save_IFS
30491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30494 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496 break 2
30497 fi
30498done
cristy8b350f62009-11-15 23:12:43 +000030499 done
cristy3ed852e2009-09-05 21:47:34 +000030500IFS=$as_save_IFS
30501
30502 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30503 ;;
30504esac
30505fi
30506ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30507if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "$ILBMEncodeDelegate" >&6; }
30510else
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo "no" >&6; }
30513fi
30514
30515
30516# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30517set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030520if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030521 $as_echo_n "(cached) " >&6
30522else
30523 case $LPDelegate in
30524 [\\/]* | ?:[\\/]*)
30525 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30526 ;;
30527 *)
30528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30529for as_dir in $PATH
30530do
30531 IFS=$as_save_IFS
30532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30535 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030537 break 2
30538 fi
30539done
cristy8b350f62009-11-15 23:12:43 +000030540 done
cristy3ed852e2009-09-05 21:47:34 +000030541IFS=$as_save_IFS
30542
30543 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30544 ;;
30545esac
30546fi
30547LPDelegate=$ac_cv_path_LPDelegate
30548if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo "$LPDelegate" >&6; }
30551else
cristy8b350f62009-11-15 23:12:43 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030553$as_echo "no" >&6; }
30554fi
30555
30556
30557# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30558set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030561if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030562 $as_echo_n "(cached) " >&6
30563else
30564 case $LPRDelegate in
30565 [\\/]* | ?:[\\/]*)
30566 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30567 ;;
30568 *)
30569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570for as_dir in $PATH
30571do
30572 IFS=$as_save_IFS
30573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30576 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578 break 2
30579 fi
30580done
cristy8b350f62009-11-15 23:12:43 +000030581 done
cristy3ed852e2009-09-05 21:47:34 +000030582IFS=$as_save_IFS
30583
30584 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30585 ;;
30586esac
30587fi
30588LPRDelegate=$ac_cv_path_LPRDelegate
30589if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo "$LPRDelegate" >&6; }
30592else
cristy8b350f62009-11-15 23:12:43 +000030593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030594$as_echo "no" >&6; }
30595fi
30596
30597
30598# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30599set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030602if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030603 $as_echo_n "(cached) " >&6
30604else
30605 case $LZWDecodeDelegate in
30606 [\\/]* | ?:[\\/]*)
30607 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30608 ;;
30609 *)
30610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611for as_dir in $PATH
30612do
30613 IFS=$as_save_IFS
30614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619 break 2
30620 fi
30621done
cristy8b350f62009-11-15 23:12:43 +000030622 done
cristy3ed852e2009-09-05 21:47:34 +000030623IFS=$as_save_IFS
30624
30625 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30626 ;;
30627esac
30628fi
30629LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30630if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo "$LZWDecodeDelegate" >&6; }
30633else
cristy8b350f62009-11-15 23:12:43 +000030634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030635$as_echo "no" >&6; }
30636fi
30637
30638
30639# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30640set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030643if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030644 $as_echo_n "(cached) " >&6
30645else
30646 case $LZWEncodeDelegate in
30647 [\\/]* | ?:[\\/]*)
30648 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30649 ;;
30650 *)
30651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30652for as_dir in $PATH
30653do
30654 IFS=$as_save_IFS
30655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30658 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660 break 2
30661 fi
30662done
cristy8b350f62009-11-15 23:12:43 +000030663 done
cristy3ed852e2009-09-05 21:47:34 +000030664IFS=$as_save_IFS
30665
30666 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30667 ;;
30668esac
30669fi
30670LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30671if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo "$LZWEncodeDelegate" >&6; }
30674else
cristy8b350f62009-11-15 23:12:43 +000030675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030676$as_echo "no" >&6; }
30677fi
30678
30679
30680# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30681set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030684if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030685 $as_echo_n "(cached) " >&6
30686else
30687 case $LaunchDelegate in
30688 [\\/]* | ?:[\\/]*)
30689 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30690 ;;
30691 *)
30692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30693for as_dir in $PATH
30694do
30695 IFS=$as_save_IFS
30696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30699 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701 break 2
30702 fi
30703done
cristy8b350f62009-11-15 23:12:43 +000030704 done
cristy3ed852e2009-09-05 21:47:34 +000030705IFS=$as_save_IFS
30706
30707 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30708 ;;
30709esac
30710fi
30711LaunchDelegate=$ac_cv_path_LaunchDelegate
30712if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714$as_echo "$LaunchDelegate" >&6; }
30715else
cristy8b350f62009-11-15 23:12:43 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030717$as_echo "no" >&6; }
30718fi
30719
30720
30721# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30722set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030724$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030725if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030726 $as_echo_n "(cached) " >&6
30727else
30728 case $MANDelegate in
30729 [\\/]* | ?:[\\/]*)
30730 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30731 ;;
30732 *)
30733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30734for as_dir in $PATH
30735do
30736 IFS=$as_save_IFS
30737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30740 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030742 break 2
30743 fi
30744done
cristy8b350f62009-11-15 23:12:43 +000030745 done
cristy3ed852e2009-09-05 21:47:34 +000030746IFS=$as_save_IFS
30747
30748 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30749 ;;
30750esac
30751fi
30752MANDelegate=$ac_cv_path_MANDelegate
30753if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755$as_echo "$MANDelegate" >&6; }
30756else
cristy8b350f62009-11-15 23:12:43 +000030757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030758$as_echo "no" >&6; }
30759fi
30760
30761
30762# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30763set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030765$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030766if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030767 $as_echo_n "(cached) " >&6
30768else
30769 case $MPEGDecodeDelegate in
30770 [\\/]* | ?:[\\/]*)
30771 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30772 ;;
30773 *)
30774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30775for as_dir in $PATH
30776do
30777 IFS=$as_save_IFS
30778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30781 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783 break 2
30784 fi
30785done
cristy8b350f62009-11-15 23:12:43 +000030786 done
cristy3ed852e2009-09-05 21:47:34 +000030787IFS=$as_save_IFS
30788
30789 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30790 ;;
30791esac
30792fi
30793MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30794if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796$as_echo "$MPEGDecodeDelegate" >&6; }
30797else
cristy8b350f62009-11-15 23:12:43 +000030798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030799$as_echo "no" >&6; }
30800fi
30801
30802
30803# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30804set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030807if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030808 $as_echo_n "(cached) " >&6
30809else
30810 case $MPEGEncodeDelegate in
30811 [\\/]* | ?:[\\/]*)
30812 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30813 ;;
30814 *)
30815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30816for as_dir in $PATH
30817do
30818 IFS=$as_save_IFS
30819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30822 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030824 break 2
30825 fi
30826done
cristy8b350f62009-11-15 23:12:43 +000030827 done
cristy3ed852e2009-09-05 21:47:34 +000030828IFS=$as_save_IFS
30829
30830 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30831 ;;
30832esac
30833fi
30834MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30835if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo "$MPEGEncodeDelegate" >&6; }
30838else
cristy8b350f62009-11-15 23:12:43 +000030839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030840$as_echo "no" >&6; }
30841fi
30842
30843
cristy935c86e2010-06-05 23:50:07 +000030844# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30845set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30847$as_echo_n "checking for $ac_word... " >&6; }
30848if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30849 $as_echo_n "(cached) " >&6
30850else
30851 case $MrSIDDecodeDelegate in
30852 [\\/]* | ?:[\\/]*)
30853 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30854 ;;
30855 *)
30856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30857for as_dir in $PATH
30858do
30859 IFS=$as_save_IFS
30860 test -z "$as_dir" && as_dir=.
30861 for ac_exec_ext in '' $ac_executable_extensions; do
30862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30863 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30865 break 2
30866 fi
30867done
30868 done
30869IFS=$as_save_IFS
30870
30871 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30872 ;;
30873esac
30874fi
30875MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30876if test -n "$MrSIDDecodeDelegate"; then
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30878$as_echo "$MrSIDDecodeDelegate" >&6; }
30879else
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30881$as_echo "no" >&6; }
30882fi
30883
30884
cristy3ed852e2009-09-05 21:47:34 +000030885# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30886set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030888$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030889if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030890 $as_echo_n "(cached) " >&6
30891else
30892 case $MVDelegate in
30893 [\\/]* | ?:[\\/]*)
30894 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30895 ;;
30896 *)
30897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898for as_dir in $PATH
30899do
30900 IFS=$as_save_IFS
30901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30904 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906 break 2
30907 fi
30908done
cristy8b350f62009-11-15 23:12:43 +000030909 done
cristy3ed852e2009-09-05 21:47:34 +000030910IFS=$as_save_IFS
30911
30912 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30913 ;;
30914esac
30915fi
30916MVDelegate=$ac_cv_path_MVDelegate
30917if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919$as_echo "$MVDelegate" >&6; }
30920else
cristy8b350f62009-11-15 23:12:43 +000030921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030922$as_echo "no" >&6; }
30923fi
30924
30925
30926# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30927set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030930if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030931 $as_echo_n "(cached) " >&6
30932else
30933 case $PCLDelegate in
30934 [\\/]* | ?:[\\/]*)
30935 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30936 ;;
30937 *)
30938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30939for as_dir in $PATH
30940do
30941 IFS=$as_save_IFS
30942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30945 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030947 break 2
30948 fi
30949done
cristy8b350f62009-11-15 23:12:43 +000030950 done
cristy3ed852e2009-09-05 21:47:34 +000030951IFS=$as_save_IFS
30952
30953 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30954 ;;
30955esac
30956fi
30957PCLDelegate=$ac_cv_path_PCLDelegate
30958if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030960$as_echo "$PCLDelegate" >&6; }
30961else
cristy8b350f62009-11-15 23:12:43 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030963$as_echo "no" >&6; }
30964fi
30965
30966
30967# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30968set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030970$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030971if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030972 $as_echo_n "(cached) " >&6
30973else
30974 case $PGPDecodeDelegate in
30975 [\\/]* | ?:[\\/]*)
30976 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30977 ;;
30978 *)
30979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30980for as_dir in $PATH
30981do
30982 IFS=$as_save_IFS
30983 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30986 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030988 break 2
30989 fi
30990done
cristy8b350f62009-11-15 23:12:43 +000030991 done
cristy3ed852e2009-09-05 21:47:34 +000030992IFS=$as_save_IFS
30993
30994 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30995 ;;
30996esac
30997fi
30998PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30999if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031001$as_echo "$PGPDecodeDelegate" >&6; }
31002else
cristy8b350f62009-11-15 23:12:43 +000031003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031004$as_echo "no" >&6; }
31005fi
31006
31007
31008# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31009set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031011$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031012if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031013 $as_echo_n "(cached) " >&6
31014else
31015 case $POVDelegate in
31016 [\\/]* | ?:[\\/]*)
31017 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31018 ;;
31019 *)
31020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31021for as_dir in $PATH
31022do
31023 IFS=$as_save_IFS
31024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31027 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031029 break 2
31030 fi
31031done
cristy8b350f62009-11-15 23:12:43 +000031032 done
cristy3ed852e2009-09-05 21:47:34 +000031033IFS=$as_save_IFS
31034
31035 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31036 ;;
31037esac
31038fi
31039POVDelegate=$ac_cv_path_POVDelegate
31040if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042$as_echo "$POVDelegate" >&6; }
31043else
cristy8b350f62009-11-15 23:12:43 +000031044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031045$as_echo "no" >&6; }
31046fi
31047
31048
31049for ac_prog in gsx gsc "$PSDelegateDefault"
31050do
31051 # Extract the first word of "$ac_prog", so it can be a program name with args.
31052set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031054$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031055if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031056 $as_echo_n "(cached) " >&6
31057else
31058 case $PSDelegate in
31059 [\\/]* | ?:[\\/]*)
31060 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31061 ;;
31062 *)
31063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31064for as_dir in $PATH
31065do
31066 IFS=$as_save_IFS
31067 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31070 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031072 break 2
31073 fi
31074done
cristy8b350f62009-11-15 23:12:43 +000031075 done
cristy3ed852e2009-09-05 21:47:34 +000031076IFS=$as_save_IFS
31077
31078 ;;
31079esac
31080fi
31081PSDelegate=$ac_cv_path_PSDelegate
31082if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031084$as_echo "$PSDelegate" >&6; }
31085else
cristy8b350f62009-11-15 23:12:43 +000031086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031087$as_echo "no" >&6; }
31088fi
31089
31090
31091 test -n "$PSDelegate" && break
31092done
31093test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31094
31095# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31096set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031099if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 $as_echo_n "(cached) " >&6
31101else
31102 case $RLEEncodeDelegate in
31103 [\\/]* | ?:[\\/]*)
31104 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31105 ;;
31106 *)
31107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31108for as_dir in $PATH
31109do
31110 IFS=$as_save_IFS
31111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31114 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116 break 2
31117 fi
31118done
cristy8b350f62009-11-15 23:12:43 +000031119 done
cristy3ed852e2009-09-05 21:47:34 +000031120IFS=$as_save_IFS
31121
31122 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31123 ;;
31124esac
31125fi
31126RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31127if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo "$RLEEncodeDelegate" >&6; }
31130else
cristy8b350f62009-11-15 23:12:43 +000031131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031132$as_echo "no" >&6; }
31133fi
31134
31135
31136# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31137set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031139$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031140if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031141 $as_echo_n "(cached) " >&6
31142else
31143 case $RMDelegate in
31144 [\\/]* | ?:[\\/]*)
31145 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31146 ;;
31147 *)
31148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149for as_dir in $PATH
31150do
31151 IFS=$as_save_IFS
31152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31155 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031157 break 2
31158 fi
31159done
cristy8b350f62009-11-15 23:12:43 +000031160 done
cristy3ed852e2009-09-05 21:47:34 +000031161IFS=$as_save_IFS
31162
31163 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31164 ;;
31165esac
31166fi
31167RMDelegate=$ac_cv_path_RMDelegate
31168if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170$as_echo "$RMDelegate" >&6; }
31171else
cristy8b350f62009-11-15 23:12:43 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031173$as_echo "no" >&6; }
31174fi
31175
31176
cristy4689cf02010-02-17 21:15:45 +000031177# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31178set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31180$as_echo_n "checking for $ac_word... " >&6; }
31181if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31182 $as_echo_n "(cached) " >&6
31183else
31184 case $RSVGDecodeDelegate in
31185 [\\/]* | ?:[\\/]*)
31186 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31187 ;;
31188 *)
31189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31190for as_dir in $PATH
31191do
31192 IFS=$as_save_IFS
31193 test -z "$as_dir" && as_dir=.
31194 for ac_exec_ext in '' $ac_executable_extensions; do
31195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31196 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31198 break 2
31199 fi
31200done
31201 done
31202IFS=$as_save_IFS
31203
31204 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31205 ;;
31206esac
31207fi
31208RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31209if test -n "$RSVGDecodeDelegate"; then
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31211$as_echo "$RSVGDecodeDelegate" >&6; }
31212else
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31214$as_echo "no" >&6; }
31215fi
31216
31217
cristy3ed852e2009-09-05 21:47:34 +000031218# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31219set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031222if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031223 $as_echo_n "(cached) " >&6
31224else
31225 case $SCANDecodeDelegate in
31226 [\\/]* | ?:[\\/]*)
31227 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31228 ;;
31229 *)
31230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31231for as_dir in $PATH
31232do
31233 IFS=$as_save_IFS
31234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31237 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031239 break 2
31240 fi
31241done
cristy8b350f62009-11-15 23:12:43 +000031242 done
cristy3ed852e2009-09-05 21:47:34 +000031243IFS=$as_save_IFS
31244
31245 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31246 ;;
31247esac
31248fi
31249SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31250if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo "$SCANDecodeDelegate" >&6; }
31253else
cristy8b350f62009-11-15 23:12:43 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031255$as_echo "no" >&6; }
31256fi
31257
31258
31259# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31260set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031263if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031264 $as_echo_n "(cached) " >&6
31265else
31266 case $TXTDelegate in
31267 [\\/]* | ?:[\\/]*)
31268 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31269 ;;
31270 *)
31271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31272for as_dir in $PATH
31273do
31274 IFS=$as_save_IFS
31275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31278 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031280 break 2
31281 fi
31282done
cristy8b350f62009-11-15 23:12:43 +000031283 done
cristy3ed852e2009-09-05 21:47:34 +000031284IFS=$as_save_IFS
31285
31286 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31287 ;;
31288esac
31289fi
31290TXTDelegate=$ac_cv_path_TXTDelegate
31291if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293$as_echo "$TXTDelegate" >&6; }
31294else
cristy8b350f62009-11-15 23:12:43 +000031295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031296$as_echo "no" >&6; }
31297fi
31298
31299
cristy5ac9ac82010-07-29 13:24:24 +000031300# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31301set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31303$as_echo_n "checking for $ac_word... " >&6; }
31304if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31305 $as_echo_n "(cached) " >&6
31306else
31307 case $UniconvertorDelegate in
31308 [\\/]* | ?:[\\/]*)
31309 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31310 ;;
31311 *)
31312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313for as_dir in $PATH
31314do
31315 IFS=$as_save_IFS
31316 test -z "$as_dir" && as_dir=.
31317 for ac_exec_ext in '' $ac_executable_extensions; do
31318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31319 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31321 break 2
31322 fi
31323done
31324 done
31325IFS=$as_save_IFS
31326
31327 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31328 ;;
31329esac
31330fi
31331UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31332if test -n "$UniconvertorDelegate"; then
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31334$as_echo "$UniconvertorDelegate" >&6; }
31335else
31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31337$as_echo "no" >&6; }
31338fi
31339
31340
cristy23f7a922010-10-11 00:27:48 +000031341# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31342set dummy "$WEBPDelegateDefault"; ac_word=$2
31343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31344$as_echo_n "checking for $ac_word... " >&6; }
31345if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31346 $as_echo_n "(cached) " >&6
31347else
31348 case $WEBPDelegate in
31349 [\\/]* | ?:[\\/]*)
31350 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31351 ;;
31352 *)
31353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31354for as_dir in $PATH
31355do
31356 IFS=$as_save_IFS
31357 test -z "$as_dir" && as_dir=.
31358 for ac_exec_ext in '' $ac_executable_extensions; do
31359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31360 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31362 break 2
31363 fi
31364done
31365 done
31366IFS=$as_save_IFS
31367
31368 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31369 ;;
31370esac
31371fi
31372WEBPDelegate=$ac_cv_path_WEBPDelegate
31373if test -n "$WEBPDelegate"; then
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31375$as_echo "$WEBPDelegate" >&6; }
31376else
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31378$as_echo "no" >&6; }
31379fi
31380
31381
cristy3ed852e2009-09-05 21:47:34 +000031382# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31383set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031386if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031387 $as_echo_n "(cached) " >&6
31388else
31389 case $WMFDecodeDelegate in
31390 [\\/]* | ?:[\\/]*)
31391 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31392 ;;
31393 *)
31394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31395for as_dir in $PATH
31396do
31397 IFS=$as_save_IFS
31398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31401 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403 break 2
31404 fi
31405done
cristy8b350f62009-11-15 23:12:43 +000031406 done
cristy3ed852e2009-09-05 21:47:34 +000031407IFS=$as_save_IFS
31408
31409 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31410 ;;
31411esac
31412fi
31413WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31414if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "$WMFDecodeDelegate" >&6; }
31417else
cristy8b350f62009-11-15 23:12:43 +000031418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031419$as_echo "no" >&6; }
31420fi
31421
31422
31423# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31424set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031427if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031428 $as_echo_n "(cached) " >&6
31429else
31430 case $WWWDecodeDelegate in
31431 [\\/]* | ?:[\\/]*)
31432 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31433 ;;
31434 *)
31435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31436for as_dir in $PATH
31437do
31438 IFS=$as_save_IFS
31439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31442 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031444 break 2
31445 fi
31446done
cristy8b350f62009-11-15 23:12:43 +000031447 done
cristy3ed852e2009-09-05 21:47:34 +000031448IFS=$as_save_IFS
31449
31450 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31451 ;;
31452esac
31453fi
31454WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31455if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo "$WWWDecodeDelegate" >&6; }
31458else
cristy8b350f62009-11-15 23:12:43 +000031459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031460$as_echo "no" >&6; }
31461fi
31462
31463
31464# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31465set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031468if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031469 $as_echo_n "(cached) " >&6
31470else
31471 case $XPSDelegate in
31472 [\\/]* | ?:[\\/]*)
31473 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31474 ;;
31475 *)
31476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31477for as_dir in $PATH
31478do
31479 IFS=$as_save_IFS
31480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31483 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031485 break 2
31486 fi
31487done
cristy8b350f62009-11-15 23:12:43 +000031488 done
cristy3ed852e2009-09-05 21:47:34 +000031489IFS=$as_save_IFS
31490
31491 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31492 ;;
31493esac
31494fi
31495XPSDelegate=$ac_cv_path_XPSDelegate
31496if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo "$XPSDelegate" >&6; }
31499else
cristy8b350f62009-11-15 23:12:43 +000031500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031501$as_echo "no" >&6; }
31502fi
31503
31504
31505# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31506set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031509if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031510 $as_echo_n "(cached) " >&6
31511else
31512 case $ZipDelegate in
31513 [\\/]* | ?:[\\/]*)
31514 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31515 ;;
31516 *)
31517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31518for as_dir in $PATH
31519do
31520 IFS=$as_save_IFS
31521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31524 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031526 break 2
31527 fi
31528done
cristy8b350f62009-11-15 23:12:43 +000031529 done
cristy3ed852e2009-09-05 21:47:34 +000031530IFS=$as_save_IFS
31531
31532 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31533 ;;
31534esac
31535fi
31536ZipDelegate=$ac_cv_path_ZipDelegate
31537if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "$ZipDelegate" >&6; }
31540else
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "no" >&6; }
31543fi
31544
31545
31546
31547# Prefer lpr to lp; lp needs options tacked on.
31548if test "$LPRDelegate" != no; then
31549 PrintDelegate="$LPRDelegate"
31550else
31551 PrintDelegate="$LPDelegate -c -s"
31552fi
31553
31554
31555# Installed ImageMagick utiltity paths
31556ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31557DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31558MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31559
31560# Set delegate booleans
31561have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31562have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31563have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31564have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31565have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031566have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031567have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31568have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31569have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31570have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31571have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31572
31573#
31574# Test for font directories
31575#
31576type_include_files=''
31577
cristy430a7312010-01-21 20:44:04 +000031578# Dejavu fonts.
31579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31580$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31581dejavu_font_dir=''
31582if test "${with_dejavu_font_dir}" != 'default'; then
31583 dejavu_font_dir="${with_dejavu_font_dir}/"
31584else
31585 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31586 if test -f "${font_dir}DejaVuSerif.ttf"; then
31587 dejavu_font_dir="${font_dir}"
31588 break 1
31589 fi
31590 done
31591fi
31592if test "${dejavu_font_dir}x" != 'x'; then
31593 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31595$as_echo "$dejavu_font_dir" >&6; }
31596else
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31598$as_echo "not found!" >&6; };
31599fi
31600
31601
cristy3ed852e2009-09-05 21:47:34 +000031602# Windows
31603windows_font_dir=''
31604if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31605 windows_font_dir="${with_windows_font_dir}/"
31606fi
cristy430a7312010-01-21 20:44:04 +000031607if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031608 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31609 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31610 fi
31611 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31612 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31613 fi
31614 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31615 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31616 fi
31617fi
cristy430a7312010-01-21 20:44:04 +000031618if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031619 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31620fi
31621
31622
31623# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31626ghostscript_font_dir=''
31627if test "${with_gs_font_dir}" != 'default'; then
31628 ghostscript_font_dir="${with_gs_font_dir}/"
31629else
31630 if test "${native_win32_build}" = 'yes'; then
31631 # Native Windows Build
31632 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31633 if test -f "${font_dir}a010013l.pfb"; then
31634 ghostscript_font_dir="$font_dir"
31635 break 1
31636 fi
31637 done
31638 if test "${PSDelegate}" != 'gswin32c'; then
31639 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31640 fi
31641 else
31642 # Linux / Mac OS X / Unix Build
31643 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
31644 if test -f "${font_dir}a010013l.pfb"; then
31645 ghostscript_font_dir="${font_dir}"
31646 break 1
31647 fi
31648 done
31649 if test "${ghostscript_font_dir}x" = 'x'; then
31650 if test "$PSDelegate" != 'gs'; then
31651 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31652 fi
31653 fi
31654 fi
31655fi
31656if test "${ghostscript_font_dir}x" != 'x'; then
31657 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031659$as_echo "$ghostscript_font_dir" >&6; }
31660else
cristy8b350f62009-11-15 23:12:43 +000031661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo "not found!" >&6; };
31663fi
31664
31665case "${build_os}" in
31666 mingw* )
31667 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31668 ;;
31669esac
31670
31671
31672
31673#
31674# Handle case where user doesn't want frozen paths
31675#
31676if test "$with_frozenpaths" != 'yes'; then
31677 # Re-set delegate definitions to default (no paths)
31678 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031679 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31680 BZIPDelegate="$BZIPDelegateDefault"
31681 BrowseDelegate="$BrowseDelegateDefault"
31682 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31683 CatDelegate="$CatDelegateDefault"
31684 ConvertDelegate="$ConvertDelegateDefault"
31685 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31686 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31687 EchoDelegate="$EchoDelegateDefault"
31688 EditorDelegate="$EditorDelegateDefault"
31689 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31690 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31691 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31692 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31693 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31694 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31695 LPDelegate="$LPDelegateDefault"
31696 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31697 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31698 LaunchDelegate="$LaunchDelegateDefault"
31699 MANDelegate="$MANDelegateDefault"
31700 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31701 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031702 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031703 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31704 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031705 PCLDelegate="$PCLDelegateDefault"
31706 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31707 POVDelegate="$POVDelegateDefault"
31708 PSDelegate="$PSDelegateDefault"
31709 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31710 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31711 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031712 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031713 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31714 ShowImageDelegate="$ShowImageDelegateDefault"
31715 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031716 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000031717 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031718 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31719 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31720 XPSDelegate="$XPSDelegateDefault"
31721 ZipDelegate="$ZipDelegateDefault"
31722fi
31723
31724# Delegate substitutions
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
cristy935c86e2010-06-05 23:50:07 +000031767
cristy5ac9ac82010-07-29 13:24:24 +000031768
cristy3ed852e2009-09-05 21:47:34 +000031769#
31770# RPM support.
31771#
31772RPM=''
31773for ac_prog in gnutar gtar tar
31774do
31775 # Extract the first word of "$ac_prog", so it can be a program name with args.
31776set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031778$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031779if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031780 $as_echo_n "(cached) " >&6
31781else
31782 if test -n "$TAR"; then
31783 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31784else
31785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31786for as_dir in $PATH
31787do
31788 IFS=$as_save_IFS
31789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31792 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031794 break 2
31795 fi
31796done
cristy8b350f62009-11-15 23:12:43 +000031797 done
cristy3ed852e2009-09-05 21:47:34 +000031798IFS=$as_save_IFS
31799
31800fi
31801fi
31802TAR=$ac_cv_prog_TAR
31803if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031805$as_echo "$TAR" >&6; }
31806else
cristy8b350f62009-11-15 23:12:43 +000031807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031808$as_echo "no" >&6; }
31809fi
31810
31811
31812 test -n "$TAR" && break
31813done
31814
31815for ac_prog in perl
31816do
31817 # Extract the first word of "$ac_prog", so it can be a program name with args.
31818set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031820$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031821if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031822 $as_echo_n "(cached) " >&6
31823else
31824 if test -n "$PERL"; then
31825 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31826else
31827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31828for as_dir in $PATH
31829do
31830 IFS=$as_save_IFS
31831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31834 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836 break 2
31837 fi
31838done
cristy8b350f62009-11-15 23:12:43 +000031839 done
cristy3ed852e2009-09-05 21:47:34 +000031840IFS=$as_save_IFS
31841
31842fi
31843fi
31844PERL=$ac_cv_prog_PERL
31845if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031847$as_echo "$PERL" >&6; }
31848else
cristy8b350f62009-11-15 23:12:43 +000031849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031850$as_echo "no" >&6; }
31851fi
31852
31853
31854 test -n "$PERL" && break
31855done
31856
31857for ac_prog in rpmbuild rpm
31858do
31859 # Extract the first word of "$ac_prog", so it can be a program name with args.
31860set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031862$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031863if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031864 $as_echo_n "(cached) " >&6
31865else
31866 if test -n "$RPM"; then
31867 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31868else
31869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31870for as_dir in $PATH
31871do
31872 IFS=$as_save_IFS
31873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31876 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031878 break 2
31879 fi
31880done
cristy8b350f62009-11-15 23:12:43 +000031881 done
cristy3ed852e2009-09-05 21:47:34 +000031882IFS=$as_save_IFS
31883
31884fi
31885fi
31886RPM=$ac_cv_prog_RPM
31887if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031889$as_echo "$RPM" >&6; }
31890else
cristy8b350f62009-11-15 23:12:43 +000031891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031892$as_echo "no" >&6; }
31893fi
31894
31895
31896 test -n "$RPM" && break
31897done
31898
31899
cristy73bd4a52010-10-05 11:24:23 +000031900ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31901
31902
31903AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31904
31905
31906AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31907
31908
31909AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31910
31911
31912 if test "x$RPM" != "x" ; then
31913 RPM_DELEGATE_TRUE=
31914 RPM_DELEGATE_FALSE='#'
31915else
31916 RPM_DELEGATE_TRUE='#'
31917 RPM_DELEGATE_FALSE=
31918fi
31919
cristy3ed852e2009-09-05 21:47:34 +000031920
31921#
31922# 7ZIP support (http://p7zip.sourceforge.net/)
31923#
31924P7ZIP=''
31925for ac_prog in 7za
31926do
31927 # Extract the first word of "$ac_prog", so it can be a program name with args.
31928set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031931if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031932 $as_echo_n "(cached) " >&6
31933else
31934 if test -n "$P7ZIP"; then
31935 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31936else
31937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938for as_dir in $PATH
31939do
31940 IFS=$as_save_IFS
31941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946 break 2
31947 fi
31948done
cristy8b350f62009-11-15 23:12:43 +000031949 done
cristy3ed852e2009-09-05 21:47:34 +000031950IFS=$as_save_IFS
31951
31952fi
31953fi
31954P7ZIP=$ac_cv_prog_P7ZIP
31955if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031957$as_echo "$P7ZIP" >&6; }
31958else
cristy8b350f62009-11-15 23:12:43 +000031959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031960$as_echo "no" >&6; }
31961fi
31962
31963
31964 test -n "$P7ZIP" && break
31965done
31966
31967
cristy73bd4a52010-10-05 11:24:23 +000031968 if test "x$P7ZIP" != "x" ; then
31969 P7ZIP_DELEGATE_TRUE=
31970 P7ZIP_DELEGATE_FALSE='#'
31971else
31972 P7ZIP_DELEGATE_TRUE='#'
31973 P7ZIP_DELEGATE_FALSE=
31974fi
31975
cristy3ed852e2009-09-05 21:47:34 +000031976
31977#
31978# ZIP support (http://www.info-zip.org/Zip.html)
31979#
31980ZIP=''
31981for ac_prog in zip
31982do
31983 # Extract the first word of "$ac_prog", so it can be a program name with args.
31984set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031987if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031988 $as_echo_n "(cached) " >&6
31989else
31990 if test -n "$ZIP"; then
31991 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31992else
31993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31994for as_dir in $PATH
31995do
31996 IFS=$as_save_IFS
31997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32000 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032002 break 2
32003 fi
32004done
cristy8b350f62009-11-15 23:12:43 +000032005 done
cristy3ed852e2009-09-05 21:47:34 +000032006IFS=$as_save_IFS
32007
32008fi
32009fi
32010ZIP=$ac_cv_prog_ZIP
32011if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo "$ZIP" >&6; }
32014else
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo "no" >&6; }
32017fi
32018
32019
32020 test -n "$ZIP" && break
32021done
32022
32023
cristy73bd4a52010-10-05 11:24:23 +000032024 if test "x$ZIP" != "x" ; then
32025 ZIP_DELEGATE_TRUE=
32026 ZIP_DELEGATE_FALSE='#'
32027else
32028 ZIP_DELEGATE_TRUE='#'
32029 ZIP_DELEGATE_FALSE=
32030fi
32031
cristy3ed852e2009-09-05 21:47:34 +000032032
32033#
32034# GhostPCL related configuration.
32035#
32036PCLColorDevice=ppmraw
32037PCLCMYKDevice=bmpsep8
32038PCLMonoDevice=pbmraw
32039if test -z "$PCLVersion"; then
32040 PCLVersion='unknown'
32041fi
32042if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032046$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo "" >&6; }
32049 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo_n "checking for pcl color device... " >&6; }
32052 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32053 :
32054 else
32055 PCLColorDevice=ppmraw
32056 fi
cristy8b350f62009-11-15 23:12:43 +000032057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032058$as_echo "$PCLColorDevice" >&6; }
32059
32060 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032062$as_echo_n "checking for pcl CMYK device... " >&6; }
32063 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32064 :
32065 else
32066 PCLCMYKDevice=$PCLColorDevice
32067 fi
cristy8b350f62009-11-15 23:12:43 +000032068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo "$PCLCMYKDevice" >&6; }
32070
32071 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032073$as_echo_n "checking for pcl mono device... " >&6; }
32074 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32075 :
32076 else
32077 PCLMonoDevice=$PCLColorDevice
32078 fi
cristy8b350f62009-11-15 23:12:43 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032080$as_echo "$PCLMonoDevice" >&6; }
32081fi
32082
32083
32084
32085
32086
32087
32088#
32089# GhostXPS related configuration.
32090#
32091XPSColorDevice=ppmraw
32092XPSCMYKDevice=bmpsep8
32093XPSMonoDevice=pbmraw
32094if test -z "$XPSVersion"; then
32095 XPSVersion='unknown'
32096fi
32097if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032099$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032101$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo "" >&6; }
32104 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032106$as_echo_n "checking for xps color device... " >&6; }
32107 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32108 :
32109 else
32110 XPSColorDevice=ppmraw
32111 fi
cristy8b350f62009-11-15 23:12:43 +000032112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113$as_echo "$XPSColorDevice" >&6; }
32114
32115 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032117$as_echo_n "checking for xps CMYK device... " >&6; }
32118 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32119 :
32120 else
32121 XPSCMYKDevice=$XPSColorDevice
32122 fi
cristy8b350f62009-11-15 23:12:43 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032124$as_echo "$XPSCMYKDevice" >&6; }
32125
32126 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032128$as_echo_n "checking for xps mono device... " >&6; }
32129 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32130 :
32131 else
32132 XPSMonoDevice=$XPSColorDevice
32133 fi
cristy8b350f62009-11-15 23:12:43 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135$as_echo "$XPSMonoDevice" >&6; }
32136fi
32137
32138
32139
32140
32141
32142
32143#
32144# Ghostscript related configuration.
32145#
32146if test "$have_png" = 'yes'; then
32147 GSAlphaDevice=pngalpha
32148else
32149 GSAlphaDevice=pnmraw
32150fi
32151GSColorDevice=pnmraw
32152GSCMYKDevice=pam
32153GSMonoDevice=pbmraw
32154GSPDFDevice=pdfwrite
32155GSPSDevice=pswrite
32156GSEPSDevice=epswrite
32157GSVersion='unknown'
32158if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032166$as_echo_n "checking for Ghostscript version... " >&6; }
32167 if GSVersion=`$PSDelegate --version`; then
32168 :
32169 else
32170 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32171 fi
cristy8b350f62009-11-15 23:12:43 +000032172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo "$GSVersion" >&6; }
32174
32175 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032177$as_echo_n "checking for gs alpha device... " >&6; }
32178 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32179 :
32180 else
32181 GSAlphaDevice=pnmraw
32182 fi
cristy8b350f62009-11-15 23:12:43 +000032183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032184$as_echo "$GSAlphaDevice" >&6; }
32185
32186 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032188$as_echo_n "checking for gs color device... " >&6; }
32189 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32190 :
32191 else
32192 GSColorDevice=pnmraw
32193 fi
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "$GSColorDevice" >&6; }
32196
32197 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032199$as_echo_n "checking for gs CMYK device... " >&6; }
32200 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32201 :
32202 else
32203 GSCMYKDevice=bmpsep8
32204 fi
cristy8b350f62009-11-15 23:12:43 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo "$GSCMYKDevice" >&6; }
32207
32208 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210$as_echo_n "checking for gs mono device... " >&6; }
32211 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32212 :
32213 else
32214 GSMonoDevice=$GSColorDevice
32215 fi
cristy8b350f62009-11-15 23:12:43 +000032216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032217$as_echo "$GSMonoDevice" >&6; }
32218
32219 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032221$as_echo_n "checking for gs PDF writing device... " >&6; }
32222 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32223 :
32224 else
32225 GSPDFDevice=nodevice
32226 fi
cristy8b350f62009-11-15 23:12:43 +000032227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032228$as_echo "$GSPDFDevice" >&6; }
32229
32230 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232$as_echo_n "checking for gs PS writing device... " >&6; }
32233 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32234 :
32235 else
32236 GSPSDevice=nodevice
32237 fi
cristy8b350f62009-11-15 23:12:43 +000032238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo "$GSPSDevice" >&6; }
32240
32241 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo_n "checking for gs EPS writing device... " >&6; }
32244 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32245 :
32246 else
32247 GSEPSDevice=nodevice
32248 fi
cristy8b350f62009-11-15 23:12:43 +000032249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032250$as_echo "$GSEPSDevice" >&6; }
32251fi
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262#
32263# PerlMagick-related configuration
32264#
32265
32266# Look for PERL if PerlMagick requested
32267# If name/path of desired PERL interpreter is specified, look for that one first
32268have_perl='no'
32269if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032275$as_echo "" >&6; }
32276 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032279if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032280 $as_echo_n "(cached) " >&6
32281else
32282 ac_cv_path_PERL="$with_perl"
32283fi
cristy8b350f62009-11-15 23:12:43 +000032284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo "$ac_cv_path_PERL" >&6; };
32286 PERL=$ac_cv_path_PERL
32287 have_perl="$ac_cv_path_PERL"
32288 else
32289 for ac_prog in perl perl5
32290do
32291 # Extract the first word of "$ac_prog", so it can be a program name with args.
32292set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032295if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032296 $as_echo_n "(cached) " >&6
32297else
32298 case $PERL in
32299 [\\/]* | ?:[\\/]*)
32300 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32301 ;;
32302 *)
32303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32304for as_dir in $PATH
32305do
32306 IFS=$as_save_IFS
32307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32310 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312 break 2
32313 fi
32314done
cristy8b350f62009-11-15 23:12:43 +000032315 done
cristy3ed852e2009-09-05 21:47:34 +000032316IFS=$as_save_IFS
32317
32318 ;;
32319esac
32320fi
32321PERL=$ac_cv_path_PERL
32322if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032324$as_echo "$PERL" >&6; }
32325else
cristy8b350f62009-11-15 23:12:43 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032327$as_echo "no" >&6; }
32328fi
32329
32330
32331 test -n "$PERL" && break
32332done
32333 if test "$ac_cv_path_PERL"; then
32334 have_perl="$ac_cv_path_PERL"
32335 fi
32336 fi
32337fi
32338
cristy949301e2010-01-06 01:38:40 +000032339if test "$with_perl" != 'yes' ; then
32340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32341fi
32342
32343PERL_SUPPORTS_DESTDIR='no'
32344
cristy3ed852e2009-09-05 21:47:34 +000032345with_perl_static='no'
32346with_perl_dynamic='no'
32347if test "$have_perl" != 'no'; then
32348 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32349 with_perl_static='yes'
32350 fi
32351 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32352 with_perl_dynamic='yes'
32353 fi
32354 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000032355
32356
32357
32358
32359 if test -n "$PERL"; then :
32360
32361 ax_perl_version="5.8.1"
32362
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32364$as_echo_n "checking for perl version... " >&6; }
32365
32366 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32367
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32369$as_echo "$perl_version" >&6; }
32370
32371 PERL_VERSION=$perl_version
32372
32373
32374
32375
32376
32377 # Used to indicate true or false condition
32378 ax_compare_version=false
32379
32380 # Convert the two version strings to be compared into a format that
32381 # allows a simple string comparison. The end result is that a version
32382 # string of the form 1.12.5-r617 will be converted to the form
32383 # 0001001200050617. In other words, each number is zero padded to four
32384 # digits, and non digits are removed.
32385
32386 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32387 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32388 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32389 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32390 -e 's/[^0-9]//g'`
32391
32392
32393 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32394 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32395 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32396 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32397 -e 's/[^0-9]//g'`
32398
32399
32400 ax_compare_version=`echo "x$ax_compare_version_A
32401x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32402
32403
32404
32405 if test "$ax_compare_version" = "true" ; then
32406
32407 :
32408 PERL_SUPPORTS_DESTDIR='yes'
32409
32410 else
32411 :
32412 PERL_SUPPORTS_DESTDIR='no'
32413
32414 fi
32415
32416
32417else
32418
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32420$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32421 PERL_SUPPORTS_DESTDIR='no'
32422
cristy3ed852e2009-09-05 21:47:34 +000032423fi
cristy73bd4a52010-10-05 11:24:23 +000032424
32425fi
32426 if test "$have_perl" != 'no'; then
32427 WITH_PERL_TRUE=
32428 WITH_PERL_FALSE='#'
32429else
32430 WITH_PERL_TRUE='#'
32431 WITH_PERL_FALSE=
32432fi
32433
32434 if test $with_perl_static = 'yes'; then
32435 WITH_PERL_STATIC_TRUE=
32436 WITH_PERL_STATIC_FALSE='#'
32437else
32438 WITH_PERL_STATIC_TRUE='#'
32439 WITH_PERL_STATIC_FALSE=
32440fi
32441
32442 if test $with_perl_dynamic = 'yes'; then
32443 WITH_PERL_DYNAMIC_TRUE=
32444 WITH_PERL_DYNAMIC_FALSE='#'
32445else
32446 WITH_PERL_DYNAMIC_TRUE='#'
32447 WITH_PERL_DYNAMIC_FALSE=
32448fi
32449
cristy3ed852e2009-09-05 21:47:34 +000032450
32451
32452# Determine path to pick up MagickCore library from for use with building PerlMagick
32453MAGICKCORE_PATH="${LIB_DIR}"
32454if test $with_perl_static = 'yes'; then
32455 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32456 libtool_objdir=$objdir
32457
32458 # Linker search path to library, followed by -lMagickCore
32459 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32460fi
32461
32462
32463# Create a simple string containing format names for all delegate libraries
32464DELEGATES=''
32465if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32466if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32467if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32468if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32469if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32470if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32471if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32472if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32473if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32474if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32475if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32476if test "$have_jpeg" = 'yes'; then
32477 DELEGATES="$DELEGATES jpeg";
32478 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32479fi
32480if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032481if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032482if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32483if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000032484if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000032485if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32486if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32487if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32488if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32489if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32490if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32491if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32492if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32493if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32494
32495
32496
32497#
32498# Handle special compiler flags
32499#
32500
32501# Add '-p' if prof source profiling support enabled
32502if test "$enable_prof" = 'yes'; then
32503 CFLAGS="-p $CFLAGS"
32504 CXXFLAGS="-p $CXXFLAGS"
32505 LDFLAGS="-p $LDFLAGS"
32506fi
32507
32508# Add '-pg' if gprof source profiling support enabled
32509if test "$enable_gprof" = 'yes'; then
32510 CFLAGS="-pg $CFLAGS"
32511 CXXFLAGS="-pg $CXXFLAGS"
32512 LDFLAGS="-pg $LDFLAGS"
32513fi
32514
32515# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32516# This is a gcc-specific feature
32517if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032519$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032520if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032521 $as_echo_n "(cached) " >&6
32522else
32523 ac_check_lib_save_LIBS=$LIBS
32524LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032526/* end confdefs.h. */
32527
32528/* Override any GCC internal prototype to avoid an error.
32529 Use char because int might match the return type of a GCC
32530 builtin and then its argument prototype would still apply. */
32531#ifdef __cplusplus
32532extern "C"
32533#endif
32534char _gcov_init ();
32535int
32536main ()
32537{
32538return _gcov_init ();
32539 ;
32540 return 0;
32541}
32542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032544 ac_cv_lib_gcov__gcov_init=yes
32545else
cristy8b350f62009-11-15 23:12:43 +000032546 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032547fi
cristy8b350f62009-11-15 23:12:43 +000032548rm -f core conftest.err conftest.$ac_objext \
32549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032550LIBS=$ac_check_lib_save_LIBS
32551fi
cristy8b350f62009-11-15 23:12:43 +000032552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032553$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032554if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032555 cat >>confdefs.h <<_ACEOF
32556#define HAVE_LIBGCOV 1
32557_ACEOF
32558
32559 LIBS="-lgcov $LIBS"
32560
32561fi
32562
cristy8b350f62009-11-15 23:12:43 +000032563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032565if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032566 $as_echo_n "(cached) " >&6
32567else
32568 ac_check_lib_save_LIBS=$LIBS
32569LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032571/* end confdefs.h. */
32572
32573/* Override any GCC internal prototype to avoid an error.
32574 Use char because int might match the return type of a GCC
32575 builtin and then its argument prototype would still apply. */
32576#ifdef __cplusplus
32577extern "C"
32578#endif
32579char __gcov_init ();
32580int
32581main ()
32582{
32583return __gcov_init ();
32584 ;
32585 return 0;
32586}
32587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032589 ac_cv_lib_gcov___gcov_init=yes
32590else
cristy8b350f62009-11-15 23:12:43 +000032591 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032592fi
cristy8b350f62009-11-15 23:12:43 +000032593rm -f core conftest.err conftest.$ac_objext \
32594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032595LIBS=$ac_check_lib_save_LIBS
32596fi
cristy8b350f62009-11-15 23:12:43 +000032597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032599if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032600 cat >>confdefs.h <<_ACEOF
32601#define HAVE_LIBGCOV 1
32602_ACEOF
32603
32604 LIBS="-lgcov $LIBS"
32605
32606fi
32607
32608 case "$target_os" in
32609 darwin*)
32610 OSX_GCOV_LDFLAG="-Wl,-single_module"
32611 ;;
32612 *)
32613 OSX_GCOV_LDFLAG=""
32614 ;;
32615 esac
32616
32617 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32618 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32619 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32620fi
32621
32622#
32623# Build library dependency list for libMagickCore
32624#
32625
32626MAGICK_LIBLTDL='' # Libltdl for build
32627MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32628MAGICK_LTDLDEPS='' # extra libltdl dependencies
32629if test "$with_ltdl" != 'no'
32630then
32631 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32632 MAGICK_API_LIBLTDL='-lltdl'
32633 fi
32634 MAGICK_LIBLTDL=${LIBLTDL}
32635 MAGICK_LTDLDEPS=${LTDLDEPS}
32636fi
32637
32638
32639
32640if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000032641 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 $LZMA_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 +000032642else
cristyfbb0ef02010-12-19 02:32:11 +000032643 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 $LZMA_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 +000032644fi
32645
32646
32647#
32648# Remove extraneous spaces from output variables (asthetic)
32649#
32650X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32651X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32652X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32653X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32654
32655CC=`echo $CC | sed -e 's/ */ /g'`
32656CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32657CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32658CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32659DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32660DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32661LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32662TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32663MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32664#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32665
32666# Pass only user-provided LIBS as "global" libraries
32667LIBS=$USER_LIBS
32668
32669#AC_SUBST(CPPFLAGS)
32670
32671#AC_SUBST(LDFLAGS)
32672#AC_SUBST(X_PRE_LIBS)
32673#AC_SUBST(X_LIBS)
32674#AC_SUBST(X_EXTRA_LIBS)
32675
32676MAGICK_CFLAGS=$CFLAGS
32677MAGICK_CXXFLAGS="$CXXFLAGS"
32678MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32679MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32680MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32681MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32682
32683
32684
32685
32686
32687
32688
32689
cristyfd9dcd42010-08-08 18:07:02 +000032690
cristy3ed852e2009-09-05 21:47:34 +000032691# Set configured scripts to executable.
32692ac_config_commands="$ac_config_commands default"
32693
32694ac_config_commands="$ac_config_commands MagickCore-config.in"
32695
32696ac_config_commands="$ac_config_commands Magick-config.in"
32697
32698ac_config_commands="$ac_config_commands MagickWand-config.in"
32699
32700ac_config_commands="$ac_config_commands Wand-config.in"
32701
32702ac_config_commands="$ac_config_commands Magick++-config.in"
32703
32704ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32705
32706
cristy8b350f62009-11-15 23:12:43 +000032707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032708$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032710$as_echo "Update ImageMagick configuration" >&6; }
32711cat >confcache <<\_ACEOF
32712# This file is a shell script that caches the results of configure
32713# tests run on this system so they can be shared between configure
32714# scripts and configure runs, see configure's option --config-cache.
32715# It is not useful on other systems. If it contains results you don't
32716# want to keep, you may remove or edit it.
32717#
32718# config.status only pays attention to the cache file if you give it
32719# the --recheck option to rerun configure.
32720#
32721# `ac_cv_env_foo' variables (set or unset) will be overridden when
32722# loading this file, other *unset* `ac_cv_foo' will be assigned the
32723# following values.
32724
32725_ACEOF
32726
32727# The following way of writing the cache mishandles newlines in values,
32728# but we know of no workaround that is simple, portable, and efficient.
32729# So, we kill variables containing newlines.
32730# Ultrix sh set writes to stderr and can't be redirected directly,
32731# and sets the high bit in the cache file unless we assign to the vars.
32732(
32733 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32734 eval ac_val=\$$ac_var
32735 case $ac_val in #(
32736 *${as_nl}*)
32737 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032739$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32740 esac
32741 case $ac_var in #(
32742 _ | IFS | as_nl) ;; #(
32743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032744 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032745 esac ;;
32746 esac
32747 done
32748
32749 (set) 2>&1 |
32750 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32751 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032752 # `set' does not quote correctly, so add quotes: double-quote
32753 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032754 sed -n \
32755 "s/'/'\\\\''/g;
32756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32757 ;; #(
32758 *)
32759 # `set' quotes correctly as required by POSIX, so do not add quotes.
32760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32761 ;;
32762 esac |
32763 sort
32764) |
32765 sed '
32766 /^ac_cv_env_/b end
32767 t clear
32768 :clear
32769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32770 t end
32771 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32772 :end' >>confcache
32773if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32774 if test -w "$cache_file"; then
32775 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032776 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032777$as_echo "$as_me: updating cache $cache_file" >&6;}
32778 cat confcache >$cache_file
32779 else
cristy8b350f62009-11-15 23:12:43 +000032780 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32782 fi
32783fi
32784rm -f confcache
32785
32786test "x$prefix" = xNONE && prefix=$ac_default_prefix
32787# Let make expand exec_prefix.
32788test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32789
32790DEFS=-DHAVE_CONFIG_H
32791
32792ac_libobjs=
32793ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000032794U=
cristy3ed852e2009-09-05 21:47:34 +000032795for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32796 # 1. Remove the extension, and $U if already installed.
32797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32800 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032803done
32804LIBOBJS=$ac_libobjs
32805
32806LTLIBOBJS=$ac_ltlibobjs
32807
32808
cristy73bd4a52010-10-05 11:24:23 +000032809 if test -n "$EXEEXT"; then
32810 am__EXEEXT_TRUE=
32811 am__EXEEXT_FALSE='#'
32812else
32813 am__EXEEXT_TRUE='#'
32814 am__EXEEXT_FALSE=
32815fi
cristy3ed852e2009-09-05 21:47:34 +000032816
cristy73bd4a52010-10-05 11:24:23 +000032817if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032818 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032819Usually this means the macro was only invoked conditionally." "$LINENO" 5
32820fi
32821if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032822 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032823Usually this means the macro was only invoked conditionally." "$LINENO" 5
32824fi
32825if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032826 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032827Usually this means the macro was only invoked conditionally." "$LINENO" 5
32828fi
32829if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032830 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032831Usually this means the macro was only invoked conditionally." "$LINENO" 5
32832fi
32833if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032834 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032835Usually this means the macro was only invoked conditionally." "$LINENO" 5
32836fi
32837if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032838 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032839Usually this means the macro was only invoked conditionally." "$LINENO" 5
32840fi
32841if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032842 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032843Usually this means the macro was only invoked conditionally." "$LINENO" 5
32844fi
32845if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032846 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032847Usually this means the macro was only invoked conditionally." "$LINENO" 5
32848fi
cristy73bd4a52010-10-05 11:24:23 +000032849if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032850 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032851Usually this means the macro was only invoked conditionally." "$LINENO" 5
32852fi
32853if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032854 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032855Usually this means the macro was only invoked conditionally." "$LINENO" 5
32856fi
32857LT_CONFIG_H=config/config.h
32858
32859 _ltdl_libobjs=
32860 _ltdl_ltlibobjs=
32861 if test -n "$_LT_LIBOBJS"; then
32862 # Remove the extension.
32863 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32864 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32865 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32866 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32867 done
32868 fi
32869 ltdl_LIBOBJS=$_ltdl_libobjs
32870
32871 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32872
32873
32874if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032875 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032876Usually this means the macro was only invoked conditionally." "$LINENO" 5
32877fi
32878if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032879 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032880Usually this means the macro was only invoked conditionally." "$LINENO" 5
32881fi
32882if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032883 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032884Usually this means the macro was only invoked conditionally." "$LINENO" 5
32885fi
32886if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032887 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032888Usually this means the macro was only invoked conditionally." "$LINENO" 5
32889fi
32890
32891if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032892 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032893Usually this means the macro was only invoked conditionally." "$LINENO" 5
32894fi
32895if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032896 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032897Usually this means the macro was only invoked conditionally." "$LINENO" 5
32898fi
32899if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032900 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032901Usually this means the macro was only invoked conditionally." "$LINENO" 5
32902fi
32903if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032904 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032905Usually this means the macro was only invoked conditionally." "$LINENO" 5
32906fi
32907if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032908 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032909Usually this means the macro was only invoked conditionally." "$LINENO" 5
32910fi
32911if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032912 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032913Usually this means the macro was only invoked conditionally." "$LINENO" 5
32914fi
32915if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032916 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032917Usually this means the macro was only invoked conditionally." "$LINENO" 5
32918fi
32919if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032920 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032921Usually this means the macro was only invoked conditionally." "$LINENO" 5
32922fi
32923if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032924 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032925Usually this means the macro was only invoked conditionally." "$LINENO" 5
32926fi
32927if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032928 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032929Usually this means the macro was only invoked conditionally." "$LINENO" 5
32930fi
32931if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032932 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032933Usually this means the macro was only invoked conditionally." "$LINENO" 5
32934fi
32935if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032936 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032937Usually this means the macro was only invoked conditionally." "$LINENO" 5
32938fi
32939if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032940 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032941Usually this means the macro was only invoked conditionally." "$LINENO" 5
32942fi
32943if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032944 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032945Usually this means the macro was only invoked conditionally." "$LINENO" 5
32946fi
32947if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032948 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032949Usually this means the macro was only invoked conditionally." "$LINENO" 5
32950fi
32951if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032952 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032953Usually this means the macro was only invoked conditionally." "$LINENO" 5
32954fi
32955if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032956 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032957Usually this means the macro was only invoked conditionally." "$LINENO" 5
32958fi
32959if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032960 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032961Usually this means the macro was only invoked conditionally." "$LINENO" 5
32962fi
32963if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032964 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032965Usually this means the macro was only invoked conditionally." "$LINENO" 5
32966fi
32967if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032968 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032969Usually this means the macro was only invoked conditionally." "$LINENO" 5
32970fi
cristyfbb0ef02010-12-19 02:32:11 +000032971if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
32972 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
32973Usually this means the macro was only invoked conditionally." "$LINENO" 5
32974fi
cristy73bd4a52010-10-05 11:24:23 +000032975if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032976 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032977Usually this means the macro was only invoked conditionally." "$LINENO" 5
32978fi
32979if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032980 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032981Usually this means the macro was only invoked conditionally." "$LINENO" 5
32982fi
32983if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032984 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032985Usually this means the macro was only invoked conditionally." "$LINENO" 5
32986fi
32987if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032988 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032989Usually this means the macro was only invoked conditionally." "$LINENO" 5
32990fi
32991if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032992 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032993Usually this means the macro was only invoked conditionally." "$LINENO" 5
32994fi
32995if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032996 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032997Usually this means the macro was only invoked conditionally." "$LINENO" 5
32998fi
32999if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033000 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033001Usually this means the macro was only invoked conditionally." "$LINENO" 5
33002fi
33003if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033004 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033005Usually this means the macro was only invoked conditionally." "$LINENO" 5
33006fi
33007if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033008 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033009Usually this means the macro was only invoked conditionally." "$LINENO" 5
33010fi
33011if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033012 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033013Usually this means the macro was only invoked conditionally." "$LINENO" 5
33014fi
33015if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033016 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033017Usually this means the macro was only invoked conditionally." "$LINENO" 5
33018fi
33019if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033020 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033021Usually this means the macro was only invoked conditionally." "$LINENO" 5
33022fi
33023if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033024 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033025Usually this means the macro was only invoked conditionally." "$LINENO" 5
33026fi
cristy3ed852e2009-09-05 21:47:34 +000033027
33028: ${CONFIG_STATUS=./config.status}
33029ac_write_fail=0
33030ac_clean_files_save=$ac_clean_files
33031ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033032{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033034as_write_fail=0
33035cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033036#! $SHELL
33037# Generated by $as_me.
33038# Run this file to recreate the current configuration.
33039# Compiler output produced by configure, useful for debugging
33040# configure, is in config.log if it exists.
33041
33042debug=false
33043ac_cs_recheck=false
33044ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033045
cristy8b350f62009-11-15 23:12:43 +000033046SHELL=\${CONFIG_SHELL-$SHELL}
33047export SHELL
33048_ASEOF
33049cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33050## -------------------- ##
33051## M4sh Initialization. ##
33052## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033053
33054# Be more Bourne compatible
33055DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033056if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033057 emulate sh
33058 NULLCMD=:
33059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33060 # is contrary to our usage. Disable this feature.
33061 alias -g '${1+"$@"}'='"$@"'
33062 setopt NO_GLOB_SUBST
33063else
cristy8b350f62009-11-15 23:12:43 +000033064 case `(set -o) 2>/dev/null` in #(
33065 *posix*) :
33066 set -o posix ;; #(
33067 *) :
33068 ;;
cristy3ed852e2009-09-05 21:47:34 +000033069esac
cristy3ed852e2009-09-05 21:47:34 +000033070fi
33071
33072
cristy3ed852e2009-09-05 21:47:34 +000033073as_nl='
33074'
33075export as_nl
33076# Printing a long string crashes Solaris 7 /usr/bin/printf.
33077as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33078as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33079as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033080# Prefer a ksh shell builtin over an external printf program on Solaris,
33081# but without wasting forks for bash or zsh.
33082if test -z "$BASH_VERSION$ZSH_VERSION" \
33083 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33084 as_echo='print -r --'
33085 as_echo_n='print -rn --'
33086elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033087 as_echo='printf %s\n'
33088 as_echo_n='printf %s'
33089else
33090 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33091 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33092 as_echo_n='/usr/ucb/echo -n'
33093 else
33094 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33095 as_echo_n_body='eval
33096 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033097 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033098 *"$as_nl"*)
33099 expr "X$arg" : "X\\(.*\\)$as_nl";
33100 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33101 esac;
33102 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33103 '
33104 export as_echo_n_body
33105 as_echo_n='sh -c $as_echo_n_body as_echo'
33106 fi
33107 export as_echo_body
33108 as_echo='sh -c $as_echo_body as_echo'
33109fi
33110
33111# The user is always right.
33112if test "${PATH_SEPARATOR+set}" != set; then
33113 PATH_SEPARATOR=:
33114 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33115 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33116 PATH_SEPARATOR=';'
33117 }
33118fi
33119
cristy3ed852e2009-09-05 21:47:34 +000033120
33121# IFS
33122# We need space, tab and new line, in precisely that order. Quoting is
33123# there to prevent editors from complaining about space-tab.
33124# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33125# splitting by setting IFS to empty value.)
33126IFS=" "" $as_nl"
33127
33128# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033129case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033130 *[\\/]* ) as_myself=$0 ;;
33131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132for as_dir in $PATH
33133do
33134 IFS=$as_save_IFS
33135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33137 done
cristy3ed852e2009-09-05 21:47:34 +000033138IFS=$as_save_IFS
33139
33140 ;;
33141esac
33142# We did not find ourselves, most probably we were run as `sh COMMAND'
33143# in which case we are not to be found in the path.
33144if test "x$as_myself" = x; then
33145 as_myself=$0
33146fi
33147if test ! -f "$as_myself"; then
33148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033149 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033150fi
33151
cristy8b350f62009-11-15 23:12:43 +000033152# Unset variables that we do not need and which cause bugs (e.g. in
33153# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33154# suppresses any "Segmentation fault" message there. '((' could
33155# trigger a bug in pdksh 5.2.14.
33156for as_var in BASH_ENV ENV MAIL MAILPATH
33157do eval test x\${$as_var+set} = xset \
33158 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033159done
33160PS1='$ '
33161PS2='> '
33162PS4='+ '
33163
33164# NLS nuisances.
33165LC_ALL=C
33166export LC_ALL
33167LANGUAGE=C
33168export LANGUAGE
33169
cristy8b350f62009-11-15 23:12:43 +000033170# CDPATH.
33171(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33172
33173
cristy98dddb52010-11-04 00:30:15 +000033174# as_fn_error STATUS ERROR [LINENO LOG_FD]
33175# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033176# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33177# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033178# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033179as_fn_error ()
33180{
cristy98dddb52010-11-04 00:30:15 +000033181 as_status=$1; test $as_status -eq 0 && as_status=1
33182 if test "$4"; then
33183 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33184 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033185 fi
cristy98dddb52010-11-04 00:30:15 +000033186 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033187 as_fn_exit $as_status
33188} # as_fn_error
33189
33190
33191# as_fn_set_status STATUS
33192# -----------------------
33193# Set $? to STATUS, without forking.
33194as_fn_set_status ()
33195{
33196 return $1
33197} # as_fn_set_status
33198
33199# as_fn_exit STATUS
33200# -----------------
33201# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33202as_fn_exit ()
33203{
33204 set +e
33205 as_fn_set_status $1
33206 exit $1
33207} # as_fn_exit
33208
33209# as_fn_unset VAR
33210# ---------------
33211# Portably unset VAR.
33212as_fn_unset ()
33213{
33214 { eval $1=; unset $1;}
33215}
33216as_unset=as_fn_unset
33217# as_fn_append VAR VALUE
33218# ----------------------
33219# Append the text in VALUE to the end of the definition contained in VAR. Take
33220# advantage of any shell optimizations that allow amortized linear growth over
33221# repeated appends, instead of the typical quadratic growth present in naive
33222# implementations.
33223if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33224 eval 'as_fn_append ()
33225 {
33226 eval $1+=\$2
33227 }'
33228else
33229 as_fn_append ()
33230 {
33231 eval $1=\$$1\$2
33232 }
33233fi # as_fn_append
33234
33235# as_fn_arith ARG...
33236# ------------------
33237# Perform arithmetic evaluation on the ARGs, and store the result in the
33238# global $as_val. Take advantage of shells that can avoid forks. The arguments
33239# must be portable across $(()) and expr.
33240if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33241 eval 'as_fn_arith ()
33242 {
33243 as_val=$(( $* ))
33244 }'
33245else
33246 as_fn_arith ()
33247 {
33248 as_val=`expr "$@" || test $? -eq 1`
33249 }
33250fi # as_fn_arith
33251
33252
cristy3ed852e2009-09-05 21:47:34 +000033253if expr a : '\(a\)' >/dev/null 2>&1 &&
33254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33255 as_expr=expr
33256else
33257 as_expr=false
33258fi
33259
33260if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33261 as_basename=basename
33262else
33263 as_basename=false
33264fi
33265
cristy8b350f62009-11-15 23:12:43 +000033266if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33267 as_dirname=dirname
33268else
33269 as_dirname=false
33270fi
cristy3ed852e2009-09-05 21:47:34 +000033271
cristy3ed852e2009-09-05 21:47:34 +000033272as_me=`$as_basename -- "$0" ||
33273$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33274 X"$0" : 'X\(//\)$' \| \
33275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33276$as_echo X/"$0" |
33277 sed '/^.*\/\([^/][^/]*\)\/*$/{
33278 s//\1/
33279 q
33280 }
33281 /^X\/\(\/\/\)$/{
33282 s//\1/
33283 q
33284 }
33285 /^X\/\(\/\).*/{
33286 s//\1/
33287 q
33288 }
33289 s/.*/./; q'`
33290
cristy8b350f62009-11-15 23:12:43 +000033291# Avoid depending upon Character Ranges.
33292as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33293as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33294as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33295as_cr_digits='0123456789'
33296as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033297
33298ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033299case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033300-n*)
cristy8b350f62009-11-15 23:12:43 +000033301 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033302 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033303 xy) ECHO_C='\c';;
33304 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33305 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033306 esac;;
33307*)
33308 ECHO_N='-n';;
33309esac
cristy3ed852e2009-09-05 21:47:34 +000033310
33311rm -f conf$$ conf$$.exe conf$$.file
33312if test -d conf$$.dir; then
33313 rm -f conf$$.dir/conf$$.file
33314else
33315 rm -f conf$$.dir
33316 mkdir conf$$.dir 2>/dev/null
33317fi
33318if (echo >conf$$.file) 2>/dev/null; then
33319 if ln -s conf$$.file conf$$ 2>/dev/null; then
33320 as_ln_s='ln -s'
33321 # ... but there are two gotchas:
33322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33324 # In both cases, we have to default to `cp -p'.
33325 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33326 as_ln_s='cp -p'
33327 elif ln conf$$.file conf$$ 2>/dev/null; then
33328 as_ln_s=ln
33329 else
33330 as_ln_s='cp -p'
33331 fi
33332else
33333 as_ln_s='cp -p'
33334fi
33335rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33336rmdir conf$$.dir 2>/dev/null
33337
cristy8b350f62009-11-15 23:12:43 +000033338
33339# as_fn_mkdir_p
33340# -------------
33341# Create "$as_dir" as a directory, including parents if necessary.
33342as_fn_mkdir_p ()
33343{
33344
33345 case $as_dir in #(
33346 -*) as_dir=./$as_dir;;
33347 esac
33348 test -d "$as_dir" || eval $as_mkdir_p || {
33349 as_dirs=
33350 while :; do
33351 case $as_dir in #(
33352 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33353 *) as_qdir=$as_dir;;
33354 esac
33355 as_dirs="'$as_qdir' $as_dirs"
33356 as_dir=`$as_dirname -- "$as_dir" ||
33357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33358 X"$as_dir" : 'X\(//\)[^/]' \| \
33359 X"$as_dir" : 'X\(//\)$' \| \
33360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33361$as_echo X"$as_dir" |
33362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33363 s//\1/
33364 q
33365 }
33366 /^X\(\/\/\)[^/].*/{
33367 s//\1/
33368 q
33369 }
33370 /^X\(\/\/\)$/{
33371 s//\1/
33372 q
33373 }
33374 /^X\(\/\).*/{
33375 s//\1/
33376 q
33377 }
33378 s/.*/./; q'`
33379 test -d "$as_dir" && break
33380 done
33381 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000033382 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033383
33384
33385} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033386if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033387 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033388else
33389 test -d ./-p && rmdir ./-p
33390 as_mkdir_p=false
33391fi
33392
33393if test -x / >/dev/null 2>&1; then
33394 as_test_x='test -x'
33395else
33396 if ls -dL / >/dev/null 2>&1; then
33397 as_ls_L_option=L
33398 else
33399 as_ls_L_option=
33400 fi
33401 as_test_x='
33402 eval sh -c '\''
33403 if test -d "$1"; then
33404 test -d "$1/.";
33405 else
cristy8b350f62009-11-15 23:12:43 +000033406 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033407 -*)set "./$1";;
33408 esac;
cristy8b350f62009-11-15 23:12:43 +000033409 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033410 ???[sx]*):;;*)false;;esac;fi
33411 '\'' sh
33412 '
33413fi
33414as_executable_p=$as_test_x
33415
33416# Sed expression to map a string onto a valid CPP name.
33417as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33418
33419# Sed expression to map a string onto a valid variable name.
33420as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33421
33422
33423exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033424## ----------------------------------- ##
33425## Main body of $CONFIG_STATUS script. ##
33426## ----------------------------------- ##
33427_ASEOF
33428test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033429
cristy8b350f62009-11-15 23:12:43 +000033430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33431# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033432# report actual input values of CONFIG_FILES etc. instead of their
33433# values after options handling.
33434ac_log="
cristy0805e062011-01-30 02:56:36 +000033435This file was extended by ImageMagick $as_me 6.6.7, which was
cristy98dddb52010-11-04 00:30:15 +000033436generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033437
33438 CONFIG_FILES = $CONFIG_FILES
33439 CONFIG_HEADERS = $CONFIG_HEADERS
33440 CONFIG_LINKS = $CONFIG_LINKS
33441 CONFIG_COMMANDS = $CONFIG_COMMANDS
33442 $ $0 $@
33443
33444on `(hostname || uname -n) 2>/dev/null | sed 1q`
33445"
33446
33447_ACEOF
33448
33449case $ac_config_files in *"
33450"*) set x $ac_config_files; shift; ac_config_files=$*;;
33451esac
33452
33453case $ac_config_headers in *"
33454"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33455esac
33456
33457
33458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33459# Files that config.status was made for.
33460config_files="$ac_config_files"
33461config_headers="$ac_config_headers"
33462config_commands="$ac_config_commands"
33463
33464_ACEOF
33465
33466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33467ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033468\`$as_me' instantiates files and other configuration actions
33469from templates according to the current configuration. Unless the files
33470and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033471
cristy8b350f62009-11-15 23:12:43 +000033472Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033473
33474 -h, --help print this help, then exit
33475 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033476 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033477 -q, --quiet, --silent
33478 do not print progress messages
33479 -d, --debug don't remove temporary files
33480 --recheck update $as_me by reconfiguring in the same conditions
33481 --file=FILE[:TEMPLATE]
33482 instantiate the configuration file FILE
33483 --header=FILE[:TEMPLATE]
33484 instantiate the configuration header FILE
33485
33486Configuration files:
33487$config_files
33488
33489Configuration headers:
33490$config_headers
33491
33492Configuration commands:
33493$config_commands
33494
cristy8b350f62009-11-15 23:12:43 +000033495Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033496
33497_ACEOF
33498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033499ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033500ac_cs_version="\\
cristy0805e062011-01-30 02:56:36 +000033501ImageMagick config.status 6.6.7
cristy98dddb52010-11-04 00:30:15 +000033502configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033503 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033504
cristy98dddb52010-11-04 00:30:15 +000033505Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033506This config.status script is free software; the Free Software Foundation
33507gives unlimited permission to copy, distribute and modify it."
33508
33509ac_pwd='$ac_pwd'
33510srcdir='$srcdir'
33511INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000033512MKDIR_P='$MKDIR_P'
33513AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000033514test -n "\$AWK" || AWK=awk
33515_ACEOF
33516
33517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33518# The default lists apply if the user does not specify any file.
33519ac_need_defaults=:
33520while test $# != 0
33521do
33522 case $1 in
33523 --*=*)
33524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33526 ac_shift=:
33527 ;;
33528 *)
33529 ac_option=$1
33530 ac_optarg=$2
33531 ac_shift=shift
33532 ;;
33533 esac
33534
33535 case $ac_option in
33536 # Handling of the options.
33537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33538 ac_cs_recheck=: ;;
33539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33540 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033541 --config | --confi | --conf | --con | --co | --c )
33542 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033543 --debug | --debu | --deb | --de | --d | -d )
33544 debug=: ;;
33545 --file | --fil | --fi | --f )
33546 $ac_shift
33547 case $ac_optarg in
33548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33549 esac
cristy8b350f62009-11-15 23:12:43 +000033550 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033551 ac_need_defaults=false;;
33552 --header | --heade | --head | --hea )
33553 $ac_shift
33554 case $ac_optarg in
33555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33556 esac
cristy8b350f62009-11-15 23:12:43 +000033557 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033558 ac_need_defaults=false;;
33559 --he | --h)
33560 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000033561 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033562Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033563 --help | --hel | -h )
33564 $as_echo "$ac_cs_usage"; exit ;;
33565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33567 ac_cs_silent=: ;;
33568
33569 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000033570 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033571Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033572
cristy8b350f62009-11-15 23:12:43 +000033573 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033574 ac_need_defaults=false ;;
33575
33576 esac
33577 shift
33578done
33579
33580ac_configure_extra_args=
33581
33582if $ac_cs_silent; then
33583 exec 6>/dev/null
33584 ac_configure_extra_args="$ac_configure_extra_args --silent"
33585fi
33586
33587_ACEOF
33588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33589if \$ac_cs_recheck; then
33590 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33591 shift
33592 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33593 CONFIG_SHELL='$SHELL'
33594 export CONFIG_SHELL
33595 exec "\$@"
33596fi
33597
33598_ACEOF
33599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33600exec 5>>config.log
33601{
33602 echo
33603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33604## Running $as_me. ##
33605_ASBOX
33606 $as_echo "$ac_log"
33607} >&5
33608
33609_ACEOF
33610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000033611#
33612# INIT-COMMANDS
33613#
33614PACKAGE="$PACKAGE"
33615AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33616
33617
33618# The HP-UX ksh and POSIX shell print the target directory to stdout
33619# if CDPATH is set.
33620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33621
33622sed_quote_subst='$sed_quote_subst'
33623double_quote_subst='$double_quote_subst'
33624delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000033625SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33626Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33627GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33628EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33629FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33630SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33631ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33632LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33633macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33634macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33635AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33636DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33637OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33638enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33639enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33640pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33641enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33642host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33643host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33644host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33645build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33646build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33647build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33648NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33649LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33650max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33651ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33652exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33653lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33654lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33655lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33656reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33657reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33658deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33659file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33660AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33661AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33662STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33663RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33664old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33665old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33666old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33667lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33668CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33669CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33670compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33671GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33672lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33673lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33674lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33675lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
33676objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33677MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33678lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33679lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33680lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33681lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33682lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33683need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33684DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33685NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33686LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33687OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33688OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33689libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33690shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33691extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33692archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33693enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33694export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33695whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33696compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33697old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33698old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33699archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33700archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33701module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33702module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33703with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33704allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33705no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33706hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33707hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33708hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33709hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33710hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33711hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33712hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33713hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33714inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33715link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33716fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33717always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33718export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33719exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33720include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33721prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33722file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33723variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33724need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33725need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33726version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33727runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33728shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33729shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33730libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33731library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33732soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33733install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33734postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33735postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33736finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33737finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33738hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33739sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33740sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33741hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33742enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33743enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33744enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33745old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33746striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33747compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33748predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33749postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33750predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33751postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33752compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33753LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33754reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33755reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33756old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33757compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33758GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33759lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33760lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33761lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33762lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33763lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33764archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33765enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33766export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33767whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33768compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33769old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33770old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33771archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33772archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33773module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33774module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33775with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33776allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33777no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33778hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33779hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33780hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33781hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33782hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33783hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33784hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33785hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33786inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33787link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33788fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33789always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33790export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33791exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33792include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33793prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33794file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33795hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33796compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33797predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33798postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33799predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33800postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33801compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000033802
33803LTCC='$LTCC'
33804LTCFLAGS='$LTCFLAGS'
33805compiler='$compiler_DEFAULT'
33806
cristy0c60a692010-11-04 01:09:47 +000033807# A function that is used when there is no print builtin or printf.
33808func_fallback_echo ()
33809{
33810 eval 'cat <<_LTECHO_EOF
33811\$1
33812_LTECHO_EOF'
33813}
33814
cristy73bd4a52010-10-05 11:24:23 +000033815# Quote evaled strings.
33816for var in SED \
33817GREP \
33818EGREP \
33819FGREP \
cristy0c60a692010-11-04 01:09:47 +000033820SHELL \
33821ECHO \
cristy73bd4a52010-10-05 11:24:23 +000033822LD \
cristy0c60a692010-11-04 01:09:47 +000033823AS \
33824DLLTOOL \
33825OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000033826NM \
33827LN_S \
33828lt_SP2NL \
33829lt_NL2SP \
33830reload_flag \
33831deplibs_check_method \
33832file_magic_cmd \
33833AR \
33834AR_FLAGS \
33835STRIP \
33836RANLIB \
33837CC \
33838CFLAGS \
33839compiler \
33840lt_cv_sys_global_symbol_pipe \
33841lt_cv_sys_global_symbol_to_cdecl \
33842lt_cv_sys_global_symbol_to_c_name_address \
33843lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy73bd4a52010-10-05 11:24:23 +000033844lt_prog_compiler_no_builtin_flag \
33845lt_prog_compiler_wl \
33846lt_prog_compiler_pic \
33847lt_prog_compiler_static \
33848lt_cv_prog_compiler_c_o \
33849need_locks \
33850DSYMUTIL \
33851NMEDIT \
33852LIPO \
33853OTOOL \
33854OTOOL64 \
33855shrext_cmds \
33856export_dynamic_flag_spec \
33857whole_archive_flag_spec \
33858compiler_needs_object \
33859with_gnu_ld \
33860allow_undefined_flag \
33861no_undefined_flag \
33862hardcode_libdir_flag_spec \
33863hardcode_libdir_flag_spec_ld \
33864hardcode_libdir_separator \
33865fix_srcfile_path \
33866exclude_expsyms \
33867include_expsyms \
33868file_list_spec \
33869variables_saved_for_relink \
33870libname_spec \
33871library_names_spec \
33872soname_spec \
cristy0c60a692010-11-04 01:09:47 +000033873install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000033874finish_eval \
33875old_striplib \
33876striplib \
33877compiler_lib_search_dirs \
33878predep_objects \
33879postdep_objects \
33880predeps \
33881postdeps \
33882compiler_lib_search_path \
33883LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000033884reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000033885compiler_CXX \
33886lt_prog_compiler_no_builtin_flag_CXX \
33887lt_prog_compiler_wl_CXX \
33888lt_prog_compiler_pic_CXX \
33889lt_prog_compiler_static_CXX \
33890lt_cv_prog_compiler_c_o_CXX \
33891export_dynamic_flag_spec_CXX \
33892whole_archive_flag_spec_CXX \
33893compiler_needs_object_CXX \
33894with_gnu_ld_CXX \
33895allow_undefined_flag_CXX \
33896no_undefined_flag_CXX \
33897hardcode_libdir_flag_spec_CXX \
33898hardcode_libdir_flag_spec_ld_CXX \
33899hardcode_libdir_separator_CXX \
33900fix_srcfile_path_CXX \
33901exclude_expsyms_CXX \
33902include_expsyms_CXX \
33903file_list_spec_CXX \
33904compiler_lib_search_dirs_CXX \
33905predep_objects_CXX \
33906postdep_objects_CXX \
33907predeps_CXX \
33908postdeps_CXX \
33909compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000033910 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000033911 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000033912 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000033913 ;;
33914 *)
33915 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33916 ;;
33917 esac
33918done
33919
33920# Double-quote double-evaled strings.
33921for var in reload_cmds \
33922old_postinstall_cmds \
33923old_postuninstall_cmds \
33924old_archive_cmds \
33925extract_expsyms_cmds \
33926old_archive_from_new_cmds \
33927old_archive_from_expsyms_cmds \
33928archive_cmds \
33929archive_expsym_cmds \
33930module_cmds \
33931module_expsym_cmds \
33932export_symbols_cmds \
33933prelink_cmds \
33934postinstall_cmds \
33935postuninstall_cmds \
33936finish_cmds \
33937sys_lib_search_path_spec \
33938sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000033939reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000033940old_archive_cmds_CXX \
33941old_archive_from_new_cmds_CXX \
33942old_archive_from_expsyms_cmds_CXX \
33943archive_cmds_CXX \
33944archive_expsym_cmds_CXX \
33945module_cmds_CXX \
33946module_expsym_cmds_CXX \
33947export_symbols_cmds_CXX \
33948prelink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000033949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000033950 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000033951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000033952 ;;
33953 *)
33954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33955 ;;
33956 esac
33957done
33958
cristy73bd4a52010-10-05 11:24:23 +000033959ac_aux_dir='$ac_aux_dir'
33960xsi_shell='$xsi_shell'
33961lt_shell_append='$lt_shell_append'
33962
33963# See if we are running on zsh, and set the options which allow our
33964# commands through without removal of \ escapes INIT.
33965if test -n "\${ZSH_VERSION+set}" ; then
33966 setopt NO_GLOB_SUBST
33967fi
33968
33969
33970 PACKAGE='$PACKAGE'
33971 VERSION='$VERSION'
33972 TIMESTAMP='$TIMESTAMP'
33973 RM='$RM'
33974 ofile='$ofile'
33975
33976
33977
33978
33979
33980
cristy3ed852e2009-09-05 21:47:34 +000033981_ACEOF
33982
33983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33984
33985# Handling of arguments.
33986for ac_config_target in $ac_config_targets
33987do
33988 case $ac_config_target in
33989 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000033990 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000033991 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33992 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33993 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33994 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33995 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033996 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033997 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33998 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33999 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34000 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34001 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34002 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34003 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34004 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34005 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34006 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34007 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34008 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34010 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34011 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34012 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34013 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34014 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34015 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34016 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34017 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34018 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34019 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34020 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34021 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34022 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34023 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34024 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34025 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34026 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34027 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34028 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34029 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034032 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34033 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34034 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34035 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34036 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34037 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34038 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34039
cristy98dddb52010-11-04 00:30:15 +000034040 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034041 esac
34042done
34043
34044
34045# If the user did not use the arguments to specify the items to instantiate,
34046# then the envvar interface is used. Set only those that are not.
34047# We use the long form for the default assignment because of an extremely
34048# bizarre bug on SunOS 4.1.3.
34049if $ac_need_defaults; then
34050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34053fi
34054
34055# Have a temporary directory for convenience. Make it in the build tree
34056# simply because there is no reason against having it here, and in addition,
34057# creating and moving files from /tmp can sometimes cause problems.
34058# Hook for its removal unless debugging.
34059# Note that there is a small window in which the directory will not be cleaned:
34060# after its creation but before its name has been assigned to `$tmp'.
34061$debug ||
34062{
34063 tmp=
34064 trap 'exit_status=$?
34065 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34066' 0
cristy8b350f62009-11-15 23:12:43 +000034067 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034068}
34069# Create a (secure) tmp directory for tmp files.
34070
34071{
34072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34073 test -n "$tmp" && test -d "$tmp"
34074} ||
34075{
34076 tmp=./conf$$-$RANDOM
34077 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034079
34080# Set up the scripts for CONFIG_FILES section.
34081# No need to generate them if there are no CONFIG_FILES.
34082# This happens for instance with `./config.status config.h'.
34083if test -n "$CONFIG_FILES"; then
34084
34085
cristy8b350f62009-11-15 23:12:43 +000034086ac_cr=`echo X | tr X '\015'`
34087# On cygwin, bash can eat \r inside `` if the user requested igncr.
34088# But we know of no other shell where ac_cr would be empty at this
34089# point, so we can use a bashism as a fallback.
34090if test "x$ac_cr" = x; then
34091 eval ac_cr=\$\'\\r\'
34092fi
cristy3ed852e2009-09-05 21:47:34 +000034093ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34094if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034095 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034096else
34097 ac_cs_awk_cr=$ac_cr
34098fi
34099
34100echo 'BEGIN {' >"$tmp/subs1.awk" &&
34101_ACEOF
34102
34103
34104{
34105 echo "cat >conf$$subs.awk <<_ACEOF" &&
34106 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34107 echo "_ACEOF"
34108} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34110ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034111ac_delim='%!_!# '
34112for ac_last_try in false false false false false :; do
34113 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034115
34116 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34117 if test $ac_delim_n = $ac_delim_num; then
34118 break
34119 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034121 else
34122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34123 fi
34124done
34125rm -f conf$$subs.sh
34126
34127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34128cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34129_ACEOF
34130sed -n '
34131h
34132s/^/S["/; s/!.*/"]=/
34133p
34134g
34135s/^[^!]*!//
34136:repl
34137t repl
34138s/'"$ac_delim"'$//
34139t delim
34140:nl
34141h
cristycd4c5312009-11-22 01:19:08 +000034142s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034143t more1
34144s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34145p
34146n
34147b repl
34148:more1
34149s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34150p
34151g
34152s/.\{148\}//
34153t nl
34154:delim
34155h
cristycd4c5312009-11-22 01:19:08 +000034156s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034157t more2
34158s/["\\]/\\&/g; s/^/"/; s/$/"/
34159p
34160b
34161:more2
34162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34163p
34164g
34165s/.\{148\}//
34166t delim
34167' <conf$$subs.awk | sed '
34168/^[^""]/{
34169 N
34170 s/\n//
34171}
34172' >>$CONFIG_STATUS || ac_write_fail=1
34173rm -f conf$$subs.awk
34174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34175_ACAWK
34176cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34177 for (key in S) S_is_set[key] = 1
34178 FS = ""
34179
34180}
34181{
34182 line = $ 0
34183 nfields = split(line, field, "@")
34184 substed = 0
34185 len = length(field[1])
34186 for (i = 2; i < nfields; i++) {
34187 key = field[i]
34188 keylen = length(key)
34189 if (S_is_set[key]) {
34190 value = S[key]
34191 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34192 len += length(value) + length(field[++i])
34193 substed = 1
34194 } else
34195 len += 1 + keylen
34196 }
34197
34198 print line
34199}
34200
34201_ACAWK
34202_ACEOF
34203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34204if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34205 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34206else
34207 cat
34208fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000034209 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034210_ACEOF
34211
cristy98dddb52010-11-04 00:30:15 +000034212# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34213# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034214# trailing colons and then remove the whole line if VPATH becomes empty
34215# (actually we leave an empty line to preserve line numbers).
34216if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000034217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34218h
34219s///
34220s/^/:/
34221s/[ ]*$/:/
34222s/:\$(srcdir):/:/g
34223s/:\${srcdir}:/:/g
34224s/:@srcdir@:/:/g
34225s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034226s/:*$//
cristy98dddb52010-11-04 00:30:15 +000034227x
34228s/\(=[ ]*\).*/\1/
34229G
34230s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034231s/^[^=]*=[ ]*$//
34232}'
34233fi
34234
34235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34236fi # test -n "$CONFIG_FILES"
34237
34238# Set up the scripts for CONFIG_HEADERS section.
34239# No need to generate them if there are no CONFIG_HEADERS.
34240# This happens for instance with `./config.status Makefile'.
34241if test -n "$CONFIG_HEADERS"; then
34242cat >"$tmp/defines.awk" <<\_ACAWK ||
34243BEGIN {
34244_ACEOF
34245
34246# Transform confdefs.h into an awk script `defines.awk', embedded as
34247# here-document in config.status, that substitutes the proper values into
34248# config.h.in to produce config.h.
34249
34250# Create a delimiter string that does not exist in confdefs.h, to ease
34251# handling of long lines.
34252ac_delim='%!_!# '
34253for ac_last_try in false false :; do
34254 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34255 if test -z "$ac_t"; then
34256 break
34257 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034258 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034259 else
34260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34261 fi
34262done
34263
34264# For the awk script, D is an array of macro values keyed by name,
34265# likewise P contains macro parameters if any. Preserve backslash
34266# newline sequences.
34267
34268ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34269sed -n '
34270s/.\{148\}/&'"$ac_delim"'/g
34271t rset
34272:rset
34273s/^[ ]*#[ ]*define[ ][ ]*/ /
34274t def
34275d
34276:def
34277s/\\$//
34278t bsnl
34279s/["\\]/\\&/g
34280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34281D["\1"]=" \3"/p
34282s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34283d
34284:bsnl
34285s/["\\]/\\&/g
34286s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34287D["\1"]=" \3\\\\\\n"\\/p
34288t cont
34289s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34290t cont
34291d
34292:cont
34293n
34294s/.\{148\}/&'"$ac_delim"'/g
34295t clear
34296:clear
34297s/\\$//
34298t bsnlc
34299s/["\\]/\\&/g; s/^/"/; s/$/"/p
34300d
34301:bsnlc
34302s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34303b cont
34304' <confdefs.h | sed '
34305s/'"$ac_delim"'/"\\\
34306"/g' >>$CONFIG_STATUS || ac_write_fail=1
34307
34308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34309 for (key in D) D_is_set[key] = 1
34310 FS = ""
34311}
34312/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34313 line = \$ 0
34314 split(line, arg, " ")
34315 if (arg[1] == "#") {
34316 defundef = arg[2]
34317 mac1 = arg[3]
34318 } else {
34319 defundef = substr(arg[1], 2)
34320 mac1 = arg[2]
34321 }
34322 split(mac1, mac2, "(") #)
34323 macro = mac2[1]
34324 prefix = substr(line, 1, index(line, defundef) - 1)
34325 if (D_is_set[macro]) {
34326 # Preserve the white space surrounding the "#".
34327 print prefix "define", macro P[macro] D[macro]
34328 next
34329 } else {
34330 # Replace #undef with comments. This is necessary, for example,
34331 # in the case of _POSIX_SOURCE, which is predefined and required
34332 # on some systems where configure will not decide to define it.
34333 if (defundef == "undef") {
34334 print "/*", prefix defundef, macro, "*/"
34335 next
34336 }
34337 }
34338}
34339{ print }
34340_ACAWK
34341_ACEOF
34342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000034343 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034344fi # test -n "$CONFIG_HEADERS"
34345
34346
34347eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34348shift
34349for ac_tag
34350do
34351 case $ac_tag in
34352 :[FHLC]) ac_mode=$ac_tag; continue;;
34353 esac
34354 case $ac_mode$ac_tag in
34355 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000034356 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034357 :[FH]-) ac_tag=-:-;;
34358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34359 esac
34360 ac_save_IFS=$IFS
34361 IFS=:
34362 set x $ac_tag
34363 IFS=$ac_save_IFS
34364 shift
34365 ac_file=$1
34366 shift
34367
34368 case $ac_mode in
34369 :L) ac_source=$1;;
34370 :[FH])
34371 ac_file_inputs=
34372 for ac_f
34373 do
34374 case $ac_f in
34375 -) ac_f="$tmp/stdin";;
34376 *) # Look for the file first in the build tree, then in the source tree
34377 # (if the path is not absolute). The absolute path cannot be DOS-style,
34378 # because $ac_f cannot contain `:'.
34379 test -f "$ac_f" ||
34380 case $ac_f in
34381 [\\/$]*) false;;
34382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34383 esac ||
cristy98dddb52010-11-04 00:30:15 +000034384 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034385 esac
34386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034387 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034388 done
34389
34390 # Let's still pretend it is `configure' which instantiates (i.e., don't
34391 # use $as_me), people would be surprised to read:
34392 # /* config.h. Generated by config.status. */
34393 configure_input='Generated from '`
34394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34395 `' by configure.'
34396 if test x"$ac_file" != x-; then
34397 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399$as_echo "$as_me: creating $ac_file" >&6;}
34400 fi
34401 # Neutralize special characters interpreted by sed in replacement strings.
34402 case $configure_input in #(
34403 *\&* | *\|* | *\\* )
34404 ac_sed_conf_input=`$as_echo "$configure_input" |
34405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34406 *) ac_sed_conf_input=$configure_input;;
34407 esac
34408
34409 case $ac_tag in
34410 *:-:* | *:-) cat >"$tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000034411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034412 esac
34413 ;;
34414 esac
34415
34416 ac_dir=`$as_dirname -- "$ac_file" ||
34417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34418 X"$ac_file" : 'X\(//\)[^/]' \| \
34419 X"$ac_file" : 'X\(//\)$' \| \
34420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34421$as_echo X"$ac_file" |
34422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34423 s//\1/
34424 q
34425 }
34426 /^X\(\/\/\)[^/].*/{
34427 s//\1/
34428 q
34429 }
34430 /^X\(\/\/\)$/{
34431 s//\1/
34432 q
34433 }
34434 /^X\(\/\).*/{
34435 s//\1/
34436 q
34437 }
34438 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034439 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034440 ac_builddir=.
34441
34442case "$ac_dir" in
34443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34444*)
34445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34446 # A ".." for each directory in $ac_dir_suffix.
34447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34448 case $ac_top_builddir_sub in
34449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34451 esac ;;
34452esac
34453ac_abs_top_builddir=$ac_pwd
34454ac_abs_builddir=$ac_pwd$ac_dir_suffix
34455# for backward compatibility:
34456ac_top_builddir=$ac_top_build_prefix
34457
34458case $srcdir in
34459 .) # We are building in place.
34460 ac_srcdir=.
34461 ac_top_srcdir=$ac_top_builddir_sub
34462 ac_abs_top_srcdir=$ac_pwd ;;
34463 [\\/]* | ?:[\\/]* ) # Absolute name.
34464 ac_srcdir=$srcdir$ac_dir_suffix;
34465 ac_top_srcdir=$srcdir
34466 ac_abs_top_srcdir=$srcdir ;;
34467 *) # Relative name.
34468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34469 ac_top_srcdir=$ac_top_build_prefix$srcdir
34470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34471esac
34472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34473
34474
34475 case $ac_mode in
34476 :F)
34477 #
34478 # CONFIG_FILE
34479 #
34480
34481 case $INSTALL in
34482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34483 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34484 esac
cristy73bd4a52010-10-05 11:24:23 +000034485 ac_MKDIR_P=$MKDIR_P
34486 case $MKDIR_P in
34487 [\\/$]* | ?:[\\/]* ) ;;
34488 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34489 esac
cristy3ed852e2009-09-05 21:47:34 +000034490_ACEOF
34491
34492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34493# If the template does not know about datarootdir, expand it.
34494# FIXME: This hack should be removed a few years after 2.60.
34495ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034496ac_sed_dataroot='
34497/datarootdir/ {
34498 p
34499 q
34500}
34501/@datadir@/p
34502/@docdir@/p
34503/@infodir@/p
34504/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034505/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034506case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34507*datarootdir*) ac_datarootdir_seen=yes;;
34508*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034510$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34511_ACEOF
34512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34513 ac_datarootdir_hack='
34514 s&@datadir@&$datadir&g
34515 s&@docdir@&$docdir&g
34516 s&@infodir@&$infodir&g
34517 s&@localedir@&$localedir&g
34518 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034519 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034520esac
34521_ACEOF
34522
34523# Neutralize VPATH when `$srcdir' = `.'.
34524# Shell code in configure.ac might set extrasub.
34525# FIXME: do we really want to maintain this feature?
34526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34527ac_sed_extra="$ac_vpsub
34528$extrasub
34529_ACEOF
34530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34531:t
34532/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34533s|@configure_input@|$ac_sed_conf_input|;t t
34534s&@top_builddir@&$ac_top_builddir_sub&;t t
34535s&@top_build_prefix@&$ac_top_build_prefix&;t t
34536s&@srcdir@&$ac_srcdir&;t t
34537s&@abs_srcdir@&$ac_abs_srcdir&;t t
34538s&@top_srcdir@&$ac_top_srcdir&;t t
34539s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34540s&@builddir@&$ac_builddir&;t t
34541s&@abs_builddir@&$ac_abs_builddir&;t t
34542s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34543s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000034544s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000034545$ac_datarootdir_hack
34546"
34547eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy98dddb52010-11-04 00:30:15 +000034548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034549
34550test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34551 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34552 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034554which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034555$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034556which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034557
34558 rm -f "$tmp/stdin"
34559 case $ac_file in
34560 -) cat "$tmp/out" && rm -f "$tmp/out";;
34561 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34562 esac \
cristy98dddb52010-11-04 00:30:15 +000034563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034564 ;;
34565 :H)
34566 #
34567 # CONFIG_HEADER
34568 #
34569 if test x"$ac_file" != x-; then
34570 {
34571 $as_echo "/* $configure_input */" \
34572 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34573 } >"$tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000034574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034575 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "$as_me: $ac_file is unchanged" >&6;}
34578 else
34579 rm -f "$ac_file"
34580 mv "$tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000034581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034582 fi
34583 else
34584 $as_echo "/* $configure_input */" \
34585 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000034586 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034587 fi
cristy73bd4a52010-10-05 11:24:23 +000034588# Compute "$ac_file"'s index in $config_headers.
34589_am_arg="$ac_file"
34590_am_stamp_count=1
34591for _am_header in $config_headers :; do
34592 case $_am_header in
34593 $_am_arg | $_am_arg:* )
34594 break ;;
34595 * )
34596 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34597 esac
34598done
34599echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34600$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34601 X"$_am_arg" : 'X\(//\)[^/]' \| \
34602 X"$_am_arg" : 'X\(//\)$' \| \
34603 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34604$as_echo X"$_am_arg" |
34605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34606 s//\1/
34607 q
34608 }
34609 /^X\(\/\/\)[^/].*/{
34610 s//\1/
34611 q
34612 }
34613 /^X\(\/\/\)$/{
34614 s//\1/
34615 q
34616 }
34617 /^X\(\/\).*/{
34618 s//\1/
34619 q
34620 }
34621 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000034622 ;;
34623
cristy8b350f62009-11-15 23:12:43 +000034624 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo "$as_me: executing $ac_file commands" >&6;}
34626 ;;
34627 esac
34628
34629
34630 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000034631 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34632ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34633ac_prefix_conf_PKG=`echo MagickCore`
34634ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34635ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34636ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34637if test ".$ac_prefix_conf_INP" = "."; then
34638 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34639 case "$ac_file" in
34640 *.h) ac_prefix_conf_INP=$ac_file ;;
34641 *)
34642 esac
34643 test ".$ac_prefix_conf_INP" != "." && break
34644 done
34645fi
34646if test ".$ac_prefix_conf_INP" = "."; then
34647 case "$ac_prefix_conf_OUT" in
34648 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34649 ;;
34650 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34651 ;;
34652 *) ac_prefix_conf_INP=config.h
34653 ;;
34654 esac
34655fi
34656if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000034657 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034658else
34659 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34660 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34661 fi fi
34662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34663$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34664 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000034665 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34666 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34667 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34668 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34669 $as_echo "#endif/" >> conftest.prefix
34670 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34671 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34672 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000034673 # now executing _script on _DEF input to create _OUT output file
34674 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34675 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34676 echo ' ' >>$tmp/pconfig.h
34677 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34678
34679 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34680 echo ' ' >>$tmp/pconfig.h
34681 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34682 echo "#endif" >>$tmp/pconfig.h
34683 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34685$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34686 else
34687 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34688$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34689 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34690 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34691 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34692$as_echo X"$ac_prefix_conf_OUT" |
34693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34694 s//\1/
34695 q
34696 }
34697 /^X\(\/\/\)[^/].*/{
34698 s//\1/
34699 q
34700 }
34701 /^X\(\/\/\)$/{
34702 s//\1/
34703 q
34704 }
34705 /^X\(\/\).*/{
34706 s//\1/
34707 q
34708 }
34709 s/.*/./; q'`
34710 as_dir="$ac_dir"; as_fn_mkdir_p
34711 rm -f "$ac_prefix_conf_OUT"
34712 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34713 fi
34714 cp conftest.prefix _configs.sed
34715 else
cristy98dddb52010-11-04 00:30:15 +000034716 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034717 fi
34718 rm -f conftest.*
34719fi
34720 ;;
34721 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34722 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34723 # are listed without --file. Let's play safe and only enable the eval
34724 # if we detect the quoting.
34725 case $CONFIG_FILES in
34726 *\'*) eval set x "$CONFIG_FILES" ;;
34727 *) set x $CONFIG_FILES ;;
34728 esac
34729 shift
34730 for mf
34731 do
34732 # Strip MF so we end up with the name of the file.
34733 mf=`echo "$mf" | sed -e 's/:.*$//'`
34734 # Check whether this is an Automake generated Makefile or not.
34735 # We used to match only the files named `Makefile.in', but
34736 # some people rename them; so instead we look at the file content.
34737 # Grep'ing the first line is not enough: some people post-process
34738 # each Makefile.in and add a new line on top of each file to say so.
34739 # Grep'ing the whole file is not good either: AIX grep has a line
34740 # limit of 2048, but all sed's we know have understand at least 4000.
34741 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34742 dirpart=`$as_dirname -- "$mf" ||
34743$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34744 X"$mf" : 'X\(//\)[^/]' \| \
34745 X"$mf" : 'X\(//\)$' \| \
34746 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34747$as_echo X"$mf" |
34748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34749 s//\1/
34750 q
34751 }
34752 /^X\(\/\/\)[^/].*/{
34753 s//\1/
34754 q
34755 }
34756 /^X\(\/\/\)$/{
34757 s//\1/
34758 q
34759 }
34760 /^X\(\/\).*/{
34761 s//\1/
34762 q
34763 }
34764 s/.*/./; q'`
34765 else
34766 continue
34767 fi
34768 # Extract the definition of DEPDIR, am__include, and am__quote
34769 # from the Makefile without running `make'.
34770 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34771 test -z "$DEPDIR" && continue
34772 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34773 test -z "am__include" && continue
34774 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34775 # When using ansi2knr, U may be empty or an underscore; expand it
34776 U=`sed -n 's/^U = //p' < "$mf"`
34777 # Find all dependency output files, they are included files with
34778 # $(DEPDIR) in their names. We invoke sed twice because it is the
34779 # simplest approach to changing $(DEPDIR) to its actual value in the
34780 # expansion.
34781 for file in `sed -n "
34782 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34783 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34784 # Make sure the directory exists.
34785 test -f "$dirpart/$file" && continue
34786 fdir=`$as_dirname -- "$file" ||
34787$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34788 X"$file" : 'X\(//\)[^/]' \| \
34789 X"$file" : 'X\(//\)$' \| \
34790 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34791$as_echo X"$file" |
34792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34793 s//\1/
34794 q
34795 }
34796 /^X\(\/\/\)[^/].*/{
34797 s//\1/
34798 q
34799 }
34800 /^X\(\/\/\)$/{
34801 s//\1/
34802 q
34803 }
34804 /^X\(\/\).*/{
34805 s//\1/
34806 q
34807 }
34808 s/.*/./; q'`
34809 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34810 # echo "creating $dirpart/$file"
34811 echo '# dummy' > "$dirpart/$file"
34812 done
34813 done
34814}
34815 ;;
34816 "libtool":C)
34817
34818 # See if we are running on zsh, and set the options which allow our
34819 # commands through without removal of \ escapes.
34820 if test -n "${ZSH_VERSION+set}" ; then
34821 setopt NO_GLOB_SUBST
34822 fi
34823
34824 cfgfile="${ofile}T"
34825 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34826 $RM "$cfgfile"
34827
34828 cat <<_LT_EOF >> "$cfgfile"
34829#! $SHELL
34830
34831# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34832# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34834# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34835#
34836# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000034837# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34838# Inc.
cristy73bd4a52010-10-05 11:24:23 +000034839# Written by Gordon Matzigkeit, 1996
34840#
34841# This file is part of GNU Libtool.
34842#
34843# GNU Libtool is free software; you can redistribute it and/or
34844# modify it under the terms of the GNU General Public License as
34845# published by the Free Software Foundation; either version 2 of
34846# the License, or (at your option) any later version.
34847#
34848# As a special exception to the GNU General Public License,
34849# if you distribute this file as part of a program or library that
34850# is built using GNU Libtool, you may include this file under the
34851# same distribution terms that you use for the rest of that program.
34852#
34853# GNU Libtool is distributed in the hope that it will be useful,
34854# but WITHOUT ANY WARRANTY; without even the implied warranty of
34855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34856# GNU General Public License for more details.
34857#
34858# You should have received a copy of the GNU General Public License
34859# along with GNU Libtool; see the file COPYING. If not, a copy
34860# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34861# obtained by writing to the Free Software Foundation, Inc.,
34862# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34863
34864
34865# The names of the tagged configurations supported by this script.
34866available_tags="CXX "
34867
34868# ### BEGIN LIBTOOL CONFIG
34869
34870# A sed program that does not truncate output.
34871SED=$lt_SED
34872
34873# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34874Xsed="\$SED -e 1s/^X//"
34875
34876# A grep program that handles long lines.
34877GREP=$lt_GREP
34878
34879# An ERE matcher.
34880EGREP=$lt_EGREP
34881
34882# A literal string matcher.
34883FGREP=$lt_FGREP
34884
cristy0c60a692010-11-04 01:09:47 +000034885# Shell to use when invoking shell scripts.
34886SHELL=$lt_SHELL
34887
34888# An echo program that protects backslashes.
34889ECHO=$lt_ECHO
34890
cristy73bd4a52010-10-05 11:24:23 +000034891# Which release of libtool.m4 was used?
34892macro_version=$macro_version
34893macro_revision=$macro_revision
34894
34895# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000034896AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000034897
34898# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000034899DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000034900
34901# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000034902OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000034903
34904# Whether or not to build shared libraries.
34905build_libtool_libs=$enable_shared
34906
34907# Whether or not to build static libraries.
34908build_old_libs=$enable_static
34909
34910# What type of objects to build.
34911pic_mode=$pic_mode
34912
34913# Whether or not to optimize for fast installation.
34914fast_install=$enable_fast_install
34915
34916# The host system.
34917host_alias=$host_alias
34918host=$host
34919host_os=$host_os
34920
34921# The build system.
34922build_alias=$build_alias
34923build=$build
34924build_os=$build_os
34925
34926# A BSD- or MS-compatible name lister.
34927NM=$lt_NM
34928
34929# Whether we need soft or hard links.
34930LN_S=$lt_LN_S
34931
34932# What is the maximum length of a command?
34933max_cmd_len=$max_cmd_len
34934
34935# Object file suffix (normally "o").
34936objext=$ac_objext
34937
34938# Executable file suffix (normally "").
34939exeext=$exeext
34940
34941# whether the shell understands "unset".
34942lt_unset=$lt_unset
34943
34944# turn spaces into newlines.
34945SP2NL=$lt_lt_SP2NL
34946
34947# turn newlines into spaces.
34948NL2SP=$lt_lt_NL2SP
34949
cristy73bd4a52010-10-05 11:24:23 +000034950# Method to check whether dependent libraries are shared objects.
34951deplibs_check_method=$lt_deplibs_check_method
34952
34953# Command to use when deplibs_check_method == "file_magic".
34954file_magic_cmd=$lt_file_magic_cmd
34955
34956# The archiver.
34957AR=$lt_AR
34958AR_FLAGS=$lt_AR_FLAGS
34959
34960# A symbol stripping program.
34961STRIP=$lt_STRIP
34962
34963# Commands used to install an old-style archive.
34964RANLIB=$lt_RANLIB
34965old_postinstall_cmds=$lt_old_postinstall_cmds
34966old_postuninstall_cmds=$lt_old_postuninstall_cmds
34967
cristy0c60a692010-11-04 01:09:47 +000034968# Whether to use a lock for old archive extraction.
34969lock_old_archive_extraction=$lock_old_archive_extraction
34970
cristy73bd4a52010-10-05 11:24:23 +000034971# A C compiler.
34972LTCC=$lt_CC
34973
34974# LTCC compiler flags.
34975LTCFLAGS=$lt_CFLAGS
34976
34977# Take the output of nm and produce a listing of raw symbols and C names.
34978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34979
34980# Transform the output of nm in a proper C declaration.
34981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34982
34983# Transform the output of nm in a C name address pair.
34984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34985
34986# Transform the output of nm in a C name address pair when lib prefix is needed.
34987global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34988
34989# The name of the directory that contains temporary libtool files.
34990objdir=$objdir
34991
cristy73bd4a52010-10-05 11:24:23 +000034992# Used to examine libraries when file_magic_cmd begins with "file".
34993MAGIC_CMD=$MAGIC_CMD
34994
34995# Must we lock files when doing compilation?
34996need_locks=$lt_need_locks
34997
34998# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34999DSYMUTIL=$lt_DSYMUTIL
35000
35001# Tool to change global to local symbols on Mac OS X.
35002NMEDIT=$lt_NMEDIT
35003
35004# Tool to manipulate fat objects and archives on Mac OS X.
35005LIPO=$lt_LIPO
35006
35007# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35008OTOOL=$lt_OTOOL
35009
35010# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35011OTOOL64=$lt_OTOOL64
35012
35013# Old archive suffix (normally "a").
35014libext=$libext
35015
35016# Shared library suffix (normally ".so").
35017shrext_cmds=$lt_shrext_cmds
35018
35019# The commands to extract the exported symbol list from a shared archive.
35020extract_expsyms_cmds=$lt_extract_expsyms_cmds
35021
35022# Variables whose values should be saved in libtool wrapper scripts and
35023# restored at link time.
35024variables_saved_for_relink=$lt_variables_saved_for_relink
35025
35026# Do we need the "lib" prefix for modules?
35027need_lib_prefix=$need_lib_prefix
35028
35029# Do we need a version for libraries?
35030need_version=$need_version
35031
35032# Library versioning type.
35033version_type=$version_type
35034
35035# Shared library runtime path variable.
35036runpath_var=$runpath_var
35037
35038# Shared library path variable.
35039shlibpath_var=$shlibpath_var
35040
35041# Is shlibpath searched before the hard-coded library search path?
35042shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35043
35044# Format of library name prefix.
35045libname_spec=$lt_libname_spec
35046
35047# List of archive names. First name is the real one, the rest are links.
35048# The last name is the one that the linker finds with -lNAME
35049library_names_spec=$lt_library_names_spec
35050
35051# The coded name of the library, if different from the real name.
35052soname_spec=$lt_soname_spec
35053
cristy0c60a692010-11-04 01:09:47 +000035054# Permission mode override for installation of shared libraries.
35055install_override_mode=$lt_install_override_mode
35056
cristy73bd4a52010-10-05 11:24:23 +000035057# Command to use after installation of a shared archive.
35058postinstall_cmds=$lt_postinstall_cmds
35059
35060# Command to use after uninstallation of a shared archive.
35061postuninstall_cmds=$lt_postuninstall_cmds
35062
35063# Commands used to finish a libtool library installation in a directory.
35064finish_cmds=$lt_finish_cmds
35065
35066# As "finish_cmds", except a single script fragment to be evaled but
35067# not shown.
35068finish_eval=$lt_finish_eval
35069
35070# Whether we should hardcode library paths into libraries.
35071hardcode_into_libs=$hardcode_into_libs
35072
35073# Compile-time system search path for libraries.
35074sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35075
35076# Run-time system search path for libraries.
35077sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35078
35079# Whether dlopen is supported.
35080dlopen_support=$enable_dlopen
35081
35082# Whether dlopen of programs is supported.
35083dlopen_self=$enable_dlopen_self
35084
35085# Whether dlopen of statically linked programs is supported.
35086dlopen_self_static=$enable_dlopen_self_static
35087
35088# Commands to strip libraries.
35089old_striplib=$lt_old_striplib
35090striplib=$lt_striplib
35091
35092
35093# The linker used to build libraries.
35094LD=$lt_LD
35095
cristy0c60a692010-11-04 01:09:47 +000035096# How to create reloadable object files.
35097reload_flag=$lt_reload_flag
35098reload_cmds=$lt_reload_cmds
35099
cristy73bd4a52010-10-05 11:24:23 +000035100# Commands used to build an old-style archive.
35101old_archive_cmds=$lt_old_archive_cmds
35102
35103# A language specific compiler.
35104CC=$lt_compiler
35105
35106# Is the compiler the GNU compiler?
35107with_gcc=$GCC
35108
35109# Compiler flag to turn off builtin functions.
35110no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35111
35112# How to pass a linker flag through the compiler.
35113wl=$lt_lt_prog_compiler_wl
35114
35115# Additional compiler flags for building library objects.
35116pic_flag=$lt_lt_prog_compiler_pic
35117
35118# Compiler flag to prevent dynamic linking.
35119link_static_flag=$lt_lt_prog_compiler_static
35120
35121# Does compiler simultaneously support -c and -o options?
35122compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35123
35124# Whether or not to add -lc for building shared libraries.
35125build_libtool_need_lc=$archive_cmds_need_lc
35126
35127# Whether or not to disallow shared libs when runtime libs are static.
35128allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35129
35130# Compiler flag to allow reflexive dlopens.
35131export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35132
35133# Compiler flag to generate shared objects directly from archives.
35134whole_archive_flag_spec=$lt_whole_archive_flag_spec
35135
35136# Whether the compiler copes with passing no objects directly.
35137compiler_needs_object=$lt_compiler_needs_object
35138
35139# Create an old-style archive from a shared archive.
35140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35141
35142# Create a temporary old-style archive to link instead of a shared archive.
35143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35144
35145# Commands used to build a shared archive.
35146archive_cmds=$lt_archive_cmds
35147archive_expsym_cmds=$lt_archive_expsym_cmds
35148
35149# Commands used to build a loadable module if different from building
35150# a shared archive.
35151module_cmds=$lt_module_cmds
35152module_expsym_cmds=$lt_module_expsym_cmds
35153
35154# Whether we are building with GNU ld or not.
35155with_gnu_ld=$lt_with_gnu_ld
35156
35157# Flag that allows shared libraries with undefined symbols to be built.
35158allow_undefined_flag=$lt_allow_undefined_flag
35159
35160# Flag that enforces no undefined symbols.
35161no_undefined_flag=$lt_no_undefined_flag
35162
35163# Flag to hardcode \$libdir into a binary during linking.
35164# This must work even if \$libdir does not exist
35165hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35166
35167# If ld is used when linking, flag to hardcode \$libdir into a binary
35168# during linking. This must work even if \$libdir does not exist.
35169hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35170
35171# Whether we need a single "-rpath" flag with a separated argument.
35172hardcode_libdir_separator=$lt_hardcode_libdir_separator
35173
35174# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35175# DIR into the resulting binary.
35176hardcode_direct=$hardcode_direct
35177
35178# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35179# DIR into the resulting binary and the resulting library dependency is
35180# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35181# library is relocated.
35182hardcode_direct_absolute=$hardcode_direct_absolute
35183
35184# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35185# into the resulting binary.
35186hardcode_minus_L=$hardcode_minus_L
35187
35188# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35189# into the resulting binary.
35190hardcode_shlibpath_var=$hardcode_shlibpath_var
35191
35192# Set to "yes" if building a shared library automatically hardcodes DIR
35193# into the library and all subsequent libraries and executables linked
35194# against it.
35195hardcode_automatic=$hardcode_automatic
35196
35197# Set to yes if linker adds runtime paths of dependent libraries
35198# to runtime path list.
35199inherit_rpath=$inherit_rpath
35200
35201# Whether libtool must link a program against all its dependency libraries.
35202link_all_deplibs=$link_all_deplibs
35203
35204# Fix the shell variable \$srcfile for the compiler.
35205fix_srcfile_path=$lt_fix_srcfile_path
35206
35207# Set to "yes" if exported symbols are required.
35208always_export_symbols=$always_export_symbols
35209
35210# The commands to list exported symbols.
35211export_symbols_cmds=$lt_export_symbols_cmds
35212
35213# Symbols that should not be listed in the preloaded symbols.
35214exclude_expsyms=$lt_exclude_expsyms
35215
35216# Symbols that must always be exported.
35217include_expsyms=$lt_include_expsyms
35218
35219# Commands necessary for linking programs (against libraries) with templates.
35220prelink_cmds=$lt_prelink_cmds
35221
35222# Specify filename containing input files.
35223file_list_spec=$lt_file_list_spec
35224
35225# How to hardcode a shared library path into an executable.
35226hardcode_action=$hardcode_action
35227
35228# The directories searched by this compiler when creating a shared library.
35229compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35230
35231# Dependencies to place before and after the objects being linked to
35232# create a shared library.
35233predep_objects=$lt_predep_objects
35234postdep_objects=$lt_postdep_objects
35235predeps=$lt_predeps
35236postdeps=$lt_postdeps
35237
35238# The library search path used internally by the compiler when linking
35239# a shared library.
35240compiler_lib_search_path=$lt_compiler_lib_search_path
35241
35242# ### END LIBTOOL CONFIG
35243
35244_LT_EOF
35245
35246 case $host_os in
35247 aix3*)
35248 cat <<\_LT_EOF >> "$cfgfile"
35249# AIX sometimes has problems with the GCC collect2 program. For some
35250# reason, if we set the COLLECT_NAMES environment variable, the problems
35251# vanish in a puff of smoke.
35252if test "X${COLLECT_NAMES+set}" != Xset; then
35253 COLLECT_NAMES=
35254 export COLLECT_NAMES
35255fi
35256_LT_EOF
35257 ;;
35258 esac
35259
35260
35261ltmain="$ac_aux_dir/ltmain.sh"
35262
35263
35264 # We use sed instead of cat because bash on DJGPP gets confused if
35265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35266 # text mode, it properly converts lines to CR/LF. This bash problem
35267 # is reportedly fixed, but why not run on old versions too?
35268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35269 || (rm -f "$cfgfile"; exit 1)
35270
35271 case $xsi_shell in
35272 yes)
35273 cat << \_LT_EOF >> "$cfgfile"
35274
35275# func_dirname file append nondir_replacement
35276# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35277# otherwise set result to NONDIR_REPLACEMENT.
35278func_dirname ()
35279{
35280 case ${1} in
35281 */*) func_dirname_result="${1%/*}${2}" ;;
35282 * ) func_dirname_result="${3}" ;;
35283 esac
35284}
35285
35286# func_basename file
35287func_basename ()
35288{
35289 func_basename_result="${1##*/}"
35290}
35291
35292# func_dirname_and_basename file append nondir_replacement
35293# perform func_basename and func_dirname in a single function
35294# call:
35295# dirname: Compute the dirname of FILE. If nonempty,
35296# add APPEND to the result, otherwise set result
35297# to NONDIR_REPLACEMENT.
35298# value returned in "$func_dirname_result"
35299# basename: Compute filename of FILE.
35300# value retuned in "$func_basename_result"
35301# Implementation must be kept synchronized with func_dirname
35302# and func_basename. For efficiency, we do not delegate to
35303# those functions but instead duplicate the functionality here.
35304func_dirname_and_basename ()
35305{
35306 case ${1} in
35307 */*) func_dirname_result="${1%/*}${2}" ;;
35308 * ) func_dirname_result="${3}" ;;
35309 esac
35310 func_basename_result="${1##*/}"
35311}
35312
35313# func_stripname prefix suffix name
35314# strip PREFIX and SUFFIX off of NAME.
35315# PREFIX and SUFFIX must not contain globbing or regex special
35316# characters, hashes, percent signs, but SUFFIX may contain a leading
35317# dot (in which case that matches only a dot).
35318func_stripname ()
35319{
35320 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35321 # positional parameters, so assign one to ordinary parameter first.
35322 func_stripname_result=${3}
35323 func_stripname_result=${func_stripname_result#"${1}"}
35324 func_stripname_result=${func_stripname_result%"${2}"}
35325}
35326
35327# func_opt_split
35328func_opt_split ()
35329{
35330 func_opt_split_opt=${1%%=*}
35331 func_opt_split_arg=${1#*=}
35332}
35333
35334# func_lo2o object
35335func_lo2o ()
35336{
35337 case ${1} in
35338 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35339 *) func_lo2o_result=${1} ;;
35340 esac
35341}
35342
35343# func_xform libobj-or-source
35344func_xform ()
35345{
35346 func_xform_result=${1%.*}.lo
35347}
35348
35349# func_arith arithmetic-term...
35350func_arith ()
35351{
35352 func_arith_result=$(( $* ))
35353}
35354
35355# func_len string
35356# STRING may not start with a hyphen.
35357func_len ()
35358{
35359 func_len_result=${#1}
35360}
35361
35362_LT_EOF
35363 ;;
35364 *) # Bourne compatible functions.
35365 cat << \_LT_EOF >> "$cfgfile"
35366
35367# func_dirname file append nondir_replacement
35368# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35369# otherwise set result to NONDIR_REPLACEMENT.
35370func_dirname ()
35371{
35372 # Extract subdirectory from the argument.
cristy0c60a692010-11-04 01:09:47 +000035373 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy73bd4a52010-10-05 11:24:23 +000035374 if test "X$func_dirname_result" = "X${1}"; then
35375 func_dirname_result="${3}"
35376 else
35377 func_dirname_result="$func_dirname_result${2}"
35378 fi
35379}
35380
35381# func_basename file
35382func_basename ()
35383{
cristy0c60a692010-11-04 01:09:47 +000035384 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy73bd4a52010-10-05 11:24:23 +000035385}
35386
35387
35388# func_stripname prefix suffix name
35389# strip PREFIX and SUFFIX off of NAME.
35390# PREFIX and SUFFIX must not contain globbing or regex special
35391# characters, hashes, percent signs, but SUFFIX may contain a leading
35392# dot (in which case that matches only a dot).
35393# func_strip_suffix prefix name
35394func_stripname ()
35395{
35396 case ${2} in
cristy0c60a692010-11-04 01:09:47 +000035397 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35398 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy73bd4a52010-10-05 11:24:23 +000035399 esac
35400}
35401
35402# sed scripts:
35403my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35404my_sed_long_arg='1s/^-[^=]*=//'
35405
35406# func_opt_split
35407func_opt_split ()
35408{
cristy0c60a692010-11-04 01:09:47 +000035409 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35410 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy73bd4a52010-10-05 11:24:23 +000035411}
35412
35413# func_lo2o object
35414func_lo2o ()
35415{
cristy0c60a692010-11-04 01:09:47 +000035416 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy73bd4a52010-10-05 11:24:23 +000035417}
35418
35419# func_xform libobj-or-source
35420func_xform ()
35421{
cristy0c60a692010-11-04 01:09:47 +000035422 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy73bd4a52010-10-05 11:24:23 +000035423}
35424
35425# func_arith arithmetic-term...
35426func_arith ()
35427{
35428 func_arith_result=`expr "$@"`
35429}
35430
35431# func_len string
35432# STRING may not start with a hyphen.
35433func_len ()
35434{
35435 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35436}
35437
35438_LT_EOF
35439esac
35440
35441case $lt_shell_append in
35442 yes)
35443 cat << \_LT_EOF >> "$cfgfile"
35444
35445# func_append var value
35446# Append VALUE to the end of shell variable VAR.
35447func_append ()
35448{
35449 eval "$1+=\$2"
35450}
35451_LT_EOF
35452 ;;
35453 *)
35454 cat << \_LT_EOF >> "$cfgfile"
35455
35456# func_append var value
35457# Append VALUE to the end of shell variable VAR.
35458func_append ()
35459{
35460 eval "$1=\$$1\$2"
35461}
35462
35463_LT_EOF
35464 ;;
35465 esac
35466
35467
35468 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35469 || (rm -f "$cfgfile"; exit 1)
35470
35471 mv -f "$cfgfile" "$ofile" ||
35472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35473 chmod +x "$ofile"
35474
35475
35476 cat <<_LT_EOF >> "$ofile"
35477
35478# ### BEGIN LIBTOOL TAG CONFIG: CXX
35479
35480# The linker used to build libraries.
35481LD=$lt_LD_CXX
35482
cristy0c60a692010-11-04 01:09:47 +000035483# How to create reloadable object files.
35484reload_flag=$lt_reload_flag_CXX
35485reload_cmds=$lt_reload_cmds_CXX
35486
cristy73bd4a52010-10-05 11:24:23 +000035487# Commands used to build an old-style archive.
35488old_archive_cmds=$lt_old_archive_cmds_CXX
35489
35490# A language specific compiler.
35491CC=$lt_compiler_CXX
35492
35493# Is the compiler the GNU compiler?
35494with_gcc=$GCC_CXX
35495
35496# Compiler flag to turn off builtin functions.
35497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35498
35499# How to pass a linker flag through the compiler.
35500wl=$lt_lt_prog_compiler_wl_CXX
35501
35502# Additional compiler flags for building library objects.
35503pic_flag=$lt_lt_prog_compiler_pic_CXX
35504
35505# Compiler flag to prevent dynamic linking.
35506link_static_flag=$lt_lt_prog_compiler_static_CXX
35507
35508# Does compiler simultaneously support -c and -o options?
35509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35510
35511# Whether or not to add -lc for building shared libraries.
35512build_libtool_need_lc=$archive_cmds_need_lc_CXX
35513
35514# Whether or not to disallow shared libs when runtime libs are static.
35515allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35516
35517# Compiler flag to allow reflexive dlopens.
35518export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35519
35520# Compiler flag to generate shared objects directly from archives.
35521whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35522
35523# Whether the compiler copes with passing no objects directly.
35524compiler_needs_object=$lt_compiler_needs_object_CXX
35525
35526# Create an old-style archive from a shared archive.
35527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35528
35529# Create a temporary old-style archive to link instead of a shared archive.
35530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35531
35532# Commands used to build a shared archive.
35533archive_cmds=$lt_archive_cmds_CXX
35534archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35535
35536# Commands used to build a loadable module if different from building
35537# a shared archive.
35538module_cmds=$lt_module_cmds_CXX
35539module_expsym_cmds=$lt_module_expsym_cmds_CXX
35540
35541# Whether we are building with GNU ld or not.
35542with_gnu_ld=$lt_with_gnu_ld_CXX
35543
35544# Flag that allows shared libraries with undefined symbols to be built.
35545allow_undefined_flag=$lt_allow_undefined_flag_CXX
35546
35547# Flag that enforces no undefined symbols.
35548no_undefined_flag=$lt_no_undefined_flag_CXX
35549
35550# Flag to hardcode \$libdir into a binary during linking.
35551# This must work even if \$libdir does not exist
35552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35553
35554# If ld is used when linking, flag to hardcode \$libdir into a binary
35555# during linking. This must work even if \$libdir does not exist.
35556hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35557
35558# Whether we need a single "-rpath" flag with a separated argument.
35559hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35560
35561# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35562# DIR into the resulting binary.
35563hardcode_direct=$hardcode_direct_CXX
35564
35565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35566# DIR into the resulting binary and the resulting library dependency is
35567# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35568# library is relocated.
35569hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35570
35571# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35572# into the resulting binary.
35573hardcode_minus_L=$hardcode_minus_L_CXX
35574
35575# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35576# into the resulting binary.
35577hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35578
35579# Set to "yes" if building a shared library automatically hardcodes DIR
35580# into the library and all subsequent libraries and executables linked
35581# against it.
35582hardcode_automatic=$hardcode_automatic_CXX
35583
35584# Set to yes if linker adds runtime paths of dependent libraries
35585# to runtime path list.
35586inherit_rpath=$inherit_rpath_CXX
35587
35588# Whether libtool must link a program against all its dependency libraries.
35589link_all_deplibs=$link_all_deplibs_CXX
35590
35591# Fix the shell variable \$srcfile for the compiler.
35592fix_srcfile_path=$lt_fix_srcfile_path_CXX
35593
35594# Set to "yes" if exported symbols are required.
35595always_export_symbols=$always_export_symbols_CXX
35596
35597# The commands to list exported symbols.
35598export_symbols_cmds=$lt_export_symbols_cmds_CXX
35599
35600# Symbols that should not be listed in the preloaded symbols.
35601exclude_expsyms=$lt_exclude_expsyms_CXX
35602
35603# Symbols that must always be exported.
35604include_expsyms=$lt_include_expsyms_CXX
35605
35606# Commands necessary for linking programs (against libraries) with templates.
35607prelink_cmds=$lt_prelink_cmds_CXX
35608
35609# Specify filename containing input files.
35610file_list_spec=$lt_file_list_spec_CXX
35611
35612# How to hardcode a shared library path into an executable.
35613hardcode_action=$hardcode_action_CXX
35614
35615# The directories searched by this compiler when creating a shared library.
35616compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35617
35618# Dependencies to place before and after the objects being linked to
35619# create a shared library.
35620predep_objects=$lt_predep_objects_CXX
35621postdep_objects=$lt_postdep_objects_CXX
35622predeps=$lt_predeps_CXX
35623postdeps=$lt_postdeps_CXX
35624
35625# The library search path used internally by the compiler when linking
35626# a shared library.
35627compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35628
35629# ### END LIBTOOL TAG CONFIG: CXX
35630_LT_EOF
35631
35632 ;;
cristy3ed852e2009-09-05 21:47:34 +000035633 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35634 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35635 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35636 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35637 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35638 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35639
35640 esac
35641done # for ac_tag
35642
35643
cristy8b350f62009-11-15 23:12:43 +000035644as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035645_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035646ac_clean_files=$ac_clean_files_save
35647
35648test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000035649 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035650
35651
35652# configure is writing to config.log, and then calls config.status.
35653# config.status does its own redirection, appending to config.log.
35654# Unfortunately, on DOS this fails, as config.log is still kept open
35655# by configure, so config.status won't be able to write to it; its
35656# output is simply discarded. So we exec the FD to /dev/null,
35657# effectively closing config.log, so it can be properly (re)opened and
35658# appended to by config.status. When coming back to configure, we
35659# need to make the FD available again.
35660if test "$no_create" != yes; then
35661 ac_cs_success=:
35662 ac_config_status_args=
35663 test "$silent" = yes &&
35664 ac_config_status_args="$ac_config_status_args --quiet"
35665 exec 5>/dev/null
35666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35667 exec 5>>config.log
35668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35669 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000035670 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035671fi
35672if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035674$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35675fi
35676
35677
35678rm -f magick-version
35679
cristy430a7312010-01-21 20:44:04 +000035680result_dejavu_font_dir='none'
35681if test "${dejavu_font_dir}x" != 'x'; then
35682 result_dejavu_font_dir=$dejavu_font_dir
35683fi
35684
cristy3ed852e2009-09-05 21:47:34 +000035685result_ghostscript_font_dir='none'
35686if test "${ghostscript_font_dir}x" != 'x'; then
35687 result_ghostscript_font_dir=$ghostscript_font_dir
35688fi
35689
35690result_windows_font_dir='none'
35691if test "${windows_font_dir}x" != 'x'; then
35692 result_windows_font_dir=${windows_font_dir}
35693fi
35694
cristy8b350f62009-11-15 23:12:43 +000035695{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035696ImageMagick is configured as follows. Please verify that this configuration
35697matches your expectations.
35698
35699Host system type: $host
35700Build system type: $build
35701
35702 Option Value
35703-------------------------------------------------------------------------------
35704Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35705Static libraries --enable-static=$enable_static $libtool_build_static_libs
35706Module support --with-modules=$with_modules $with_modules
35707GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35708Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35709High Dynamic Range Imagery
35710 --enable-hdri=$enable_hdri $enable_hdri
35711
35712Delegate Configuration:
35713BZLIB --with-bzlib=$with_bzlib $have_bzlib
35714Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035715Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035716DJVU --with-djvu=$with_djvu $have_djvu
35717DPS --with-dps=$with_dps $have_dps
35718FFTW --with-fftw=$with_fftw $have_fftw
35719FlashPIX --with-fpx=$with_fpx $have_fpx
35720FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35721FreeType --with-freetype=$with_freetype $have_freetype
35722GhostPCL None $PCLDelegate ($PCLVersion)
35723GhostXPS None $XPSDelegate ($XPSVersion)
35724Ghostscript None $PSDelegate ($GSVersion)
35725Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35726Ghostscript lib --with-gslib=$with_gslib $have_gslib
35727Graphviz --with-gvc=$with_gvc $have_gvc
35728JBIG --with-jbig=$with_jbig $have_jbig
35729JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35730JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035731LCMS v1 --with-lcms=$with_lcms $have_lcms
35732LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035733LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000035734LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000035735Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35736OpenEXR --with-openexr=$with_openexr $have_openexr
35737PERL --with-perl=$with_perl $have_perl
35738PNG --with-png=$with_png $have_png
35739RSVG --with-rsvg=$with_rsvg $have_rsvg
35740TIFF --with-tiff=$with_tiff $have_tiff
35741Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35742WMF --with-wmf=$with_wmf $have_wmf
35743X11 --with-x=$with_x $have_x
35744XML --with-xml=$with_xml $have_xml
35745ZLIB --with-zlib=$with_zlib $have_zlib
35746
35747X11 Configuration:
35748 X_CFLAGS = $X_CFLAGS
35749 X_PRE_LIBS = $X_PRE_LIBS
35750 X_LIBS = $X_LIBS
35751 X_EXTRA_LIBS = $X_EXTRA_LIBS
35752
35753Options used to compile and link:
35754 PREFIX = $PREFIX_DIR
35755 EXEC-PREFIX = $EXEC_PREFIX_DIR
35756 VERSION = $PACKAGE_VERSION
35757 CC = $CC
35758 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035759 CPPFLAGS = $MAGICK_CPPFLAGS
35760 PCFLAGS = $MAGICK_PCFLAGS
35761 DEFS = $DEFS
35762 LDFLAGS = $LDFLAGS
35763 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35764 LIBS = $MAGICK_LIBS
35765 CXX = $CXX
35766 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035767 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035768" >&5
35769$as_echo "
35770ImageMagick is configured as follows. Please verify that this configuration
35771matches your expectations.
35772
35773Host system type: $host
35774Build system type: $build
35775
35776 Option Value
35777-------------------------------------------------------------------------------
35778Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35779Static libraries --enable-static=$enable_static $libtool_build_static_libs
35780Module support --with-modules=$with_modules $with_modules
35781GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35782Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35783High Dynamic Range Imagery
35784 --enable-hdri=$enable_hdri $enable_hdri
35785
35786Delegate Configuration:
35787BZLIB --with-bzlib=$with_bzlib $have_bzlib
35788Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035789Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035790DJVU --with-djvu=$with_djvu $have_djvu
35791DPS --with-dps=$with_dps $have_dps
35792FFTW --with-fftw=$with_fftw $have_fftw
35793FlashPIX --with-fpx=$with_fpx $have_fpx
35794FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35795FreeType --with-freetype=$with_freetype $have_freetype
35796GhostPCL None $PCLDelegate ($PCLVersion)
35797GhostXPS None $XPSDelegate ($XPSVersion)
35798Ghostscript None $PSDelegate ($GSVersion)
35799Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35800Ghostscript lib --with-gslib=$with_gslib $have_gslib
35801Graphviz --with-gvc=$with_gvc $have_gvc
35802JBIG --with-jbig=$with_jbig $have_jbig
35803JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35804JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035805LCMS v1 --with-lcms=$with_lcms $have_lcms
35806LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035807LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000035808LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000035809Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35810OpenEXR --with-openexr=$with_openexr $have_openexr
35811PERL --with-perl=$with_perl $have_perl
35812PNG --with-png=$with_png $have_png
35813RSVG --with-rsvg=$with_rsvg $have_rsvg
35814TIFF --with-tiff=$with_tiff $have_tiff
35815Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35816WMF --with-wmf=$with_wmf $have_wmf
35817X11 --with-x=$with_x $have_x
35818XML --with-xml=$with_xml $have_xml
35819ZLIB --with-zlib=$with_zlib $have_zlib
35820
35821X11 Configuration:
35822 X_CFLAGS = $X_CFLAGS
35823 X_PRE_LIBS = $X_PRE_LIBS
35824 X_LIBS = $X_LIBS
35825 X_EXTRA_LIBS = $X_EXTRA_LIBS
35826
35827Options used to compile and link:
35828 PREFIX = $PREFIX_DIR
35829 EXEC-PREFIX = $EXEC_PREFIX_DIR
35830 VERSION = $PACKAGE_VERSION
35831 CC = $CC
35832 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035833 CPPFLAGS = $MAGICK_CPPFLAGS
35834 PCFLAGS = $MAGICK_PCFLAGS
35835 DEFS = $DEFS
35836 LDFLAGS = $LDFLAGS
35837 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35838 LIBS = $MAGICK_LIBS
35839 CXX = $CXX
35840 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035841 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035842" >&6; }